api.go 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package ec2
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  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 opAcceptReservedInstancesExchangeQuote = "AcceptReservedInstancesExchangeQuote"
  13. // AcceptReservedInstancesExchangeQuoteRequest generates a "aws/request.Request" representing the
  14. // client's request for the AcceptReservedInstancesExchangeQuote operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // See AcceptReservedInstancesExchangeQuote for usage and error information.
  19. //
  20. // Creating a request object using this method should be used when you want to inject
  21. // custom logic into the request's lifecycle using a custom handler, or if you want to
  22. // access properties on the request object before or after sending the request. If
  23. // you just want the service response, call the AcceptReservedInstancesExchangeQuote method directly
  24. // instead.
  25. //
  26. // Note: You must call the "Send" method on the returned request object in order
  27. // to execute the request.
  28. //
  29. // // Example sending a request using the AcceptReservedInstancesExchangeQuoteRequest method.
  30. // req, resp := client.AcceptReservedInstancesExchangeQuoteRequest(params)
  31. //
  32. // err := req.Send()
  33. // if err == nil { // resp is now filled
  34. // fmt.Println(resp)
  35. // }
  36. //
  37. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuote
  38. func (c *EC2) AcceptReservedInstancesExchangeQuoteRequest(input *AcceptReservedInstancesExchangeQuoteInput) (req *request.Request, output *AcceptReservedInstancesExchangeQuoteOutput) {
  39. op := &request.Operation{
  40. Name: opAcceptReservedInstancesExchangeQuote,
  41. HTTPMethod: "POST",
  42. HTTPPath: "/",
  43. }
  44. if input == nil {
  45. input = &AcceptReservedInstancesExchangeQuoteInput{}
  46. }
  47. output = &AcceptReservedInstancesExchangeQuoteOutput{}
  48. req = c.newRequest(op, input, output)
  49. return
  50. }
  51. // AcceptReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud.
  52. //
  53. // Accepts the Convertible Reserved Instance exchange quote described in the
  54. // GetReservedInstancesExchangeQuote call.
  55. //
  56. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  57. // with awserr.Error's Code and Message methods to get detailed information about
  58. // the error.
  59. //
  60. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  61. // API operation AcceptReservedInstancesExchangeQuote for usage and error information.
  62. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuote
  63. func (c *EC2) AcceptReservedInstancesExchangeQuote(input *AcceptReservedInstancesExchangeQuoteInput) (*AcceptReservedInstancesExchangeQuoteOutput, error) {
  64. req, out := c.AcceptReservedInstancesExchangeQuoteRequest(input)
  65. return out, req.Send()
  66. }
  67. // AcceptReservedInstancesExchangeQuoteWithContext is the same as AcceptReservedInstancesExchangeQuote with the addition of
  68. // the ability to pass a context and additional request options.
  69. //
  70. // See AcceptReservedInstancesExchangeQuote for details on how to use this API operation.
  71. //
  72. // The context must be non-nil and will be used for request cancellation. If
  73. // the context is nil a panic will occur. In the future the SDK may create
  74. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  75. // for more information on using Contexts.
  76. func (c *EC2) AcceptReservedInstancesExchangeQuoteWithContext(ctx aws.Context, input *AcceptReservedInstancesExchangeQuoteInput, opts ...request.Option) (*AcceptReservedInstancesExchangeQuoteOutput, error) {
  77. req, out := c.AcceptReservedInstancesExchangeQuoteRequest(input)
  78. req.SetContext(ctx)
  79. req.ApplyOptions(opts...)
  80. return out, req.Send()
  81. }
  82. const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection"
  83. // AcceptVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  84. // client's request for the AcceptVpcPeeringConnection operation. The "output" return
  85. // value can be used to capture response data after the request's "Send" method
  86. // is called.
  87. //
  88. // See AcceptVpcPeeringConnection for usage and error information.
  89. //
  90. // Creating a request object using this method should be used when you want to inject
  91. // custom logic into the request's lifecycle using a custom handler, or if you want to
  92. // access properties on the request object before or after sending the request. If
  93. // you just want the service response, call the AcceptVpcPeeringConnection method directly
  94. // instead.
  95. //
  96. // Note: You must call the "Send" method on the returned request object in order
  97. // to execute the request.
  98. //
  99. // // Example sending a request using the AcceptVpcPeeringConnectionRequest method.
  100. // req, resp := client.AcceptVpcPeeringConnectionRequest(params)
  101. //
  102. // err := req.Send()
  103. // if err == nil { // resp is now filled
  104. // fmt.Println(resp)
  105. // }
  106. //
  107. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection
  108. func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectionInput) (req *request.Request, output *AcceptVpcPeeringConnectionOutput) {
  109. op := &request.Operation{
  110. Name: opAcceptVpcPeeringConnection,
  111. HTTPMethod: "POST",
  112. HTTPPath: "/",
  113. }
  114. if input == nil {
  115. input = &AcceptVpcPeeringConnectionInput{}
  116. }
  117. output = &AcceptVpcPeeringConnectionOutput{}
  118. req = c.newRequest(op, input, output)
  119. return
  120. }
  121. // AcceptVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  122. //
  123. // Accept a VPC peering connection request. To accept a request, the VPC peering
  124. // connection must be in the pending-acceptance state, and you must be the owner
  125. // of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding
  126. // VPC peering connection requests.
  127. //
  128. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  129. // with awserr.Error's Code and Message methods to get detailed information about
  130. // the error.
  131. //
  132. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  133. // API operation AcceptVpcPeeringConnection for usage and error information.
  134. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection
  135. func (c *EC2) AcceptVpcPeeringConnection(input *AcceptVpcPeeringConnectionInput) (*AcceptVpcPeeringConnectionOutput, error) {
  136. req, out := c.AcceptVpcPeeringConnectionRequest(input)
  137. return out, req.Send()
  138. }
  139. // AcceptVpcPeeringConnectionWithContext is the same as AcceptVpcPeeringConnection with the addition of
  140. // the ability to pass a context and additional request options.
  141. //
  142. // See AcceptVpcPeeringConnection for details on how to use this API operation.
  143. //
  144. // The context must be non-nil and will be used for request cancellation. If
  145. // the context is nil a panic will occur. In the future the SDK may create
  146. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  147. // for more information on using Contexts.
  148. func (c *EC2) AcceptVpcPeeringConnectionWithContext(ctx aws.Context, input *AcceptVpcPeeringConnectionInput, opts ...request.Option) (*AcceptVpcPeeringConnectionOutput, error) {
  149. req, out := c.AcceptVpcPeeringConnectionRequest(input)
  150. req.SetContext(ctx)
  151. req.ApplyOptions(opts...)
  152. return out, req.Send()
  153. }
  154. const opAllocateAddress = "AllocateAddress"
  155. // AllocateAddressRequest generates a "aws/request.Request" representing the
  156. // client's request for the AllocateAddress operation. The "output" return
  157. // value can be used to capture response data after the request's "Send" method
  158. // is called.
  159. //
  160. // See AllocateAddress for usage and error information.
  161. //
  162. // Creating a request object using this method should be used when you want to inject
  163. // custom logic into the request's lifecycle using a custom handler, or if you want to
  164. // access properties on the request object before or after sending the request. If
  165. // you just want the service response, call the AllocateAddress method directly
  166. // instead.
  167. //
  168. // Note: You must call the "Send" method on the returned request object in order
  169. // to execute the request.
  170. //
  171. // // Example sending a request using the AllocateAddressRequest method.
  172. // req, resp := client.AllocateAddressRequest(params)
  173. //
  174. // err := req.Send()
  175. // if err == nil { // resp is now filled
  176. // fmt.Println(resp)
  177. // }
  178. //
  179. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress
  180. func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request.Request, output *AllocateAddressOutput) {
  181. op := &request.Operation{
  182. Name: opAllocateAddress,
  183. HTTPMethod: "POST",
  184. HTTPPath: "/",
  185. }
  186. if input == nil {
  187. input = &AllocateAddressInput{}
  188. }
  189. output = &AllocateAddressOutput{}
  190. req = c.newRequest(op, input, output)
  191. return
  192. }
  193. // AllocateAddress API operation for Amazon Elastic Compute Cloud.
  194. //
  195. // Acquires an Elastic IP address.
  196. //
  197. // An Elastic IP address is for use either in the EC2-Classic platform or in
  198. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  199. // in the Amazon Elastic Compute Cloud User Guide.
  200. //
  201. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  202. // with awserr.Error's Code and Message methods to get detailed information about
  203. // the error.
  204. //
  205. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  206. // API operation AllocateAddress for usage and error information.
  207. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress
  208. func (c *EC2) AllocateAddress(input *AllocateAddressInput) (*AllocateAddressOutput, error) {
  209. req, out := c.AllocateAddressRequest(input)
  210. return out, req.Send()
  211. }
  212. // AllocateAddressWithContext is the same as AllocateAddress with the addition of
  213. // the ability to pass a context and additional request options.
  214. //
  215. // See AllocateAddress for details on how to use this API operation.
  216. //
  217. // The context must be non-nil and will be used for request cancellation. If
  218. // the context is nil a panic will occur. In the future the SDK may create
  219. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  220. // for more information on using Contexts.
  221. func (c *EC2) AllocateAddressWithContext(ctx aws.Context, input *AllocateAddressInput, opts ...request.Option) (*AllocateAddressOutput, error) {
  222. req, out := c.AllocateAddressRequest(input)
  223. req.SetContext(ctx)
  224. req.ApplyOptions(opts...)
  225. return out, req.Send()
  226. }
  227. const opAllocateHosts = "AllocateHosts"
  228. // AllocateHostsRequest generates a "aws/request.Request" representing the
  229. // client's request for the AllocateHosts operation. The "output" return
  230. // value can be used to capture response data after the request's "Send" method
  231. // is called.
  232. //
  233. // See AllocateHosts for usage and error information.
  234. //
  235. // Creating a request object using this method should be used when you want to inject
  236. // custom logic into the request's lifecycle using a custom handler, or if you want to
  237. // access properties on the request object before or after sending the request. If
  238. // you just want the service response, call the AllocateHosts method directly
  239. // instead.
  240. //
  241. // Note: You must call the "Send" method on the returned request object in order
  242. // to execute the request.
  243. //
  244. // // Example sending a request using the AllocateHostsRequest method.
  245. // req, resp := client.AllocateHostsRequest(params)
  246. //
  247. // err := req.Send()
  248. // if err == nil { // resp is now filled
  249. // fmt.Println(resp)
  250. // }
  251. //
  252. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts
  253. func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Request, output *AllocateHostsOutput) {
  254. op := &request.Operation{
  255. Name: opAllocateHosts,
  256. HTTPMethod: "POST",
  257. HTTPPath: "/",
  258. }
  259. if input == nil {
  260. input = &AllocateHostsInput{}
  261. }
  262. output = &AllocateHostsOutput{}
  263. req = c.newRequest(op, input, output)
  264. return
  265. }
  266. // AllocateHosts API operation for Amazon Elastic Compute Cloud.
  267. //
  268. // Allocates a Dedicated Host to your account. At minimum you need to specify
  269. // the instance size type, Availability Zone, and quantity of hosts you want
  270. // to allocate.
  271. //
  272. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  273. // with awserr.Error's Code and Message methods to get detailed information about
  274. // the error.
  275. //
  276. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  277. // API operation AllocateHosts for usage and error information.
  278. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts
  279. func (c *EC2) AllocateHosts(input *AllocateHostsInput) (*AllocateHostsOutput, error) {
  280. req, out := c.AllocateHostsRequest(input)
  281. return out, req.Send()
  282. }
  283. // AllocateHostsWithContext is the same as AllocateHosts with the addition of
  284. // the ability to pass a context and additional request options.
  285. //
  286. // See AllocateHosts for details on how to use this API operation.
  287. //
  288. // The context must be non-nil and will be used for request cancellation. If
  289. // the context is nil a panic will occur. In the future the SDK may create
  290. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  291. // for more information on using Contexts.
  292. func (c *EC2) AllocateHostsWithContext(ctx aws.Context, input *AllocateHostsInput, opts ...request.Option) (*AllocateHostsOutput, error) {
  293. req, out := c.AllocateHostsRequest(input)
  294. req.SetContext(ctx)
  295. req.ApplyOptions(opts...)
  296. return out, req.Send()
  297. }
  298. const opAssignIpv6Addresses = "AssignIpv6Addresses"
  299. // AssignIpv6AddressesRequest generates a "aws/request.Request" representing the
  300. // client's request for the AssignIpv6Addresses operation. The "output" return
  301. // value can be used to capture response data after the request's "Send" method
  302. // is called.
  303. //
  304. // See AssignIpv6Addresses for usage and error information.
  305. //
  306. // Creating a request object using this method should be used when you want to inject
  307. // custom logic into the request's lifecycle using a custom handler, or if you want to
  308. // access properties on the request object before or after sending the request. If
  309. // you just want the service response, call the AssignIpv6Addresses method directly
  310. // instead.
  311. //
  312. // Note: You must call the "Send" method on the returned request object in order
  313. // to execute the request.
  314. //
  315. // // Example sending a request using the AssignIpv6AddressesRequest method.
  316. // req, resp := client.AssignIpv6AddressesRequest(params)
  317. //
  318. // err := req.Send()
  319. // if err == nil { // resp is now filled
  320. // fmt.Println(resp)
  321. // }
  322. //
  323. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses
  324. func (c *EC2) AssignIpv6AddressesRequest(input *AssignIpv6AddressesInput) (req *request.Request, output *AssignIpv6AddressesOutput) {
  325. op := &request.Operation{
  326. Name: opAssignIpv6Addresses,
  327. HTTPMethod: "POST",
  328. HTTPPath: "/",
  329. }
  330. if input == nil {
  331. input = &AssignIpv6AddressesInput{}
  332. }
  333. output = &AssignIpv6AddressesOutput{}
  334. req = c.newRequest(op, input, output)
  335. return
  336. }
  337. // AssignIpv6Addresses API operation for Amazon Elastic Compute Cloud.
  338. //
  339. // Assigns one or more IPv6 addresses to the specified network interface. You
  340. // can specify one or more specific IPv6 addresses, or you can specify the number
  341. // of IPv6 addresses to be automatically assigned from within the subnet's IPv6
  342. // CIDR block range. You can assign as many IPv6 addresses to a network interface
  343. // as you can assign private IPv4 addresses, and the limit varies per instance
  344. // type. For information, see IP Addresses Per Network Interface Per Instance
  345. // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  346. // in the Amazon Elastic Compute Cloud User Guide.
  347. //
  348. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  349. // with awserr.Error's Code and Message methods to get detailed information about
  350. // the error.
  351. //
  352. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  353. // API operation AssignIpv6Addresses for usage and error information.
  354. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses
  355. func (c *EC2) AssignIpv6Addresses(input *AssignIpv6AddressesInput) (*AssignIpv6AddressesOutput, error) {
  356. req, out := c.AssignIpv6AddressesRequest(input)
  357. return out, req.Send()
  358. }
  359. // AssignIpv6AddressesWithContext is the same as AssignIpv6Addresses with the addition of
  360. // the ability to pass a context and additional request options.
  361. //
  362. // See AssignIpv6Addresses for details on how to use this API operation.
  363. //
  364. // The context must be non-nil and will be used for request cancellation. If
  365. // the context is nil a panic will occur. In the future the SDK may create
  366. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  367. // for more information on using Contexts.
  368. func (c *EC2) AssignIpv6AddressesWithContext(ctx aws.Context, input *AssignIpv6AddressesInput, opts ...request.Option) (*AssignIpv6AddressesOutput, error) {
  369. req, out := c.AssignIpv6AddressesRequest(input)
  370. req.SetContext(ctx)
  371. req.ApplyOptions(opts...)
  372. return out, req.Send()
  373. }
  374. const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses"
  375. // AssignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  376. // client's request for the AssignPrivateIpAddresses operation. The "output" return
  377. // value can be used to capture response data after the request's "Send" method
  378. // is called.
  379. //
  380. // See AssignPrivateIpAddresses for usage and error information.
  381. //
  382. // Creating a request object using this method should be used when you want to inject
  383. // custom logic into the request's lifecycle using a custom handler, or if you want to
  384. // access properties on the request object before or after sending the request. If
  385. // you just want the service response, call the AssignPrivateIpAddresses method directly
  386. // instead.
  387. //
  388. // Note: You must call the "Send" method on the returned request object in order
  389. // to execute the request.
  390. //
  391. // // Example sending a request using the AssignPrivateIpAddressesRequest method.
  392. // req, resp := client.AssignPrivateIpAddressesRequest(params)
  393. //
  394. // err := req.Send()
  395. // if err == nil { // resp is now filled
  396. // fmt.Println(resp)
  397. // }
  398. //
  399. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses
  400. func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInput) (req *request.Request, output *AssignPrivateIpAddressesOutput) {
  401. op := &request.Operation{
  402. Name: opAssignPrivateIpAddresses,
  403. HTTPMethod: "POST",
  404. HTTPPath: "/",
  405. }
  406. if input == nil {
  407. input = &AssignPrivateIpAddressesInput{}
  408. }
  409. output = &AssignPrivateIpAddressesOutput{}
  410. req = c.newRequest(op, input, output)
  411. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  412. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  413. return
  414. }
  415. // AssignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud.
  416. //
  417. // Assigns one or more secondary private IP addresses to the specified network
  418. // interface. You can specify one or more specific secondary IP addresses, or
  419. // you can specify the number of secondary IP addresses to be automatically
  420. // assigned within the subnet's CIDR block range. The number of secondary IP
  421. // addresses that you can assign to an instance varies by instance type. For
  422. // information about instance types, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  423. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  424. // Elastic IP addresses, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  425. // in the Amazon Elastic Compute Cloud User Guide.
  426. //
  427. // AssignPrivateIpAddresses is available only in EC2-VPC.
  428. //
  429. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  430. // with awserr.Error's Code and Message methods to get detailed information about
  431. // the error.
  432. //
  433. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  434. // API operation AssignPrivateIpAddresses for usage and error information.
  435. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses
  436. func (c *EC2) AssignPrivateIpAddresses(input *AssignPrivateIpAddressesInput) (*AssignPrivateIpAddressesOutput, error) {
  437. req, out := c.AssignPrivateIpAddressesRequest(input)
  438. return out, req.Send()
  439. }
  440. // AssignPrivateIpAddressesWithContext is the same as AssignPrivateIpAddresses with the addition of
  441. // the ability to pass a context and additional request options.
  442. //
  443. // See AssignPrivateIpAddresses for details on how to use this API operation.
  444. //
  445. // The context must be non-nil and will be used for request cancellation. If
  446. // the context is nil a panic will occur. In the future the SDK may create
  447. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  448. // for more information on using Contexts.
  449. func (c *EC2) AssignPrivateIpAddressesWithContext(ctx aws.Context, input *AssignPrivateIpAddressesInput, opts ...request.Option) (*AssignPrivateIpAddressesOutput, error) {
  450. req, out := c.AssignPrivateIpAddressesRequest(input)
  451. req.SetContext(ctx)
  452. req.ApplyOptions(opts...)
  453. return out, req.Send()
  454. }
  455. const opAssociateAddress = "AssociateAddress"
  456. // AssociateAddressRequest generates a "aws/request.Request" representing the
  457. // client's request for the AssociateAddress operation. The "output" return
  458. // value can be used to capture response data after the request's "Send" method
  459. // is called.
  460. //
  461. // See AssociateAddress for usage and error information.
  462. //
  463. // Creating a request object using this method should be used when you want to inject
  464. // custom logic into the request's lifecycle using a custom handler, or if you want to
  465. // access properties on the request object before or after sending the request. If
  466. // you just want the service response, call the AssociateAddress method directly
  467. // instead.
  468. //
  469. // Note: You must call the "Send" method on the returned request object in order
  470. // to execute the request.
  471. //
  472. // // Example sending a request using the AssociateAddressRequest method.
  473. // req, resp := client.AssociateAddressRequest(params)
  474. //
  475. // err := req.Send()
  476. // if err == nil { // resp is now filled
  477. // fmt.Println(resp)
  478. // }
  479. //
  480. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddress
  481. func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *request.Request, output *AssociateAddressOutput) {
  482. op := &request.Operation{
  483. Name: opAssociateAddress,
  484. HTTPMethod: "POST",
  485. HTTPPath: "/",
  486. }
  487. if input == nil {
  488. input = &AssociateAddressInput{}
  489. }
  490. output = &AssociateAddressOutput{}
  491. req = c.newRequest(op, input, output)
  492. return
  493. }
  494. // AssociateAddress API operation for Amazon Elastic Compute Cloud.
  495. //
  496. // Associates an Elastic IP address with an instance or a network interface.
  497. //
  498. // An Elastic IP address is for use in either the EC2-Classic platform or in
  499. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  500. // in the Amazon Elastic Compute Cloud User Guide.
  501. //
  502. // [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is
  503. // already associated with a different instance, it is disassociated from that
  504. // instance and associated with the specified instance. If you associate an
  505. // Elastic IP address with an instance that has an existing Elastic IP address,
  506. // the existing address is disassociated from the instance, but remains allocated
  507. // to your account.
  508. //
  509. // [VPC in an EC2-Classic account] If you don't specify a private IP address,
  510. // the Elastic IP address is associated with the primary IP address. If the
  511. // Elastic IP address is already associated with a different instance or a network
  512. // interface, you get an error unless you allow reassociation. You cannot associate
  513. // an Elastic IP address with an instance or network interface that has an existing
  514. // Elastic IP address.
  515. //
  516. // This is an idempotent operation. If you perform the operation more than once,
  517. // Amazon EC2 doesn't return an error, and you may be charged for each time
  518. // the Elastic IP address is remapped to the same instance. For more information,
  519. // see the Elastic IP Addresses section of Amazon EC2 Pricing (http://aws.amazon.com/ec2/pricing/).
  520. //
  521. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  522. // with awserr.Error's Code and Message methods to get detailed information about
  523. // the error.
  524. //
  525. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  526. // API operation AssociateAddress for usage and error information.
  527. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddress
  528. func (c *EC2) AssociateAddress(input *AssociateAddressInput) (*AssociateAddressOutput, error) {
  529. req, out := c.AssociateAddressRequest(input)
  530. return out, req.Send()
  531. }
  532. // AssociateAddressWithContext is the same as AssociateAddress with the addition of
  533. // the ability to pass a context and additional request options.
  534. //
  535. // See AssociateAddress for details on how to use this API operation.
  536. //
  537. // The context must be non-nil and will be used for request cancellation. If
  538. // the context is nil a panic will occur. In the future the SDK may create
  539. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  540. // for more information on using Contexts.
  541. func (c *EC2) AssociateAddressWithContext(ctx aws.Context, input *AssociateAddressInput, opts ...request.Option) (*AssociateAddressOutput, error) {
  542. req, out := c.AssociateAddressRequest(input)
  543. req.SetContext(ctx)
  544. req.ApplyOptions(opts...)
  545. return out, req.Send()
  546. }
  547. const opAssociateDhcpOptions = "AssociateDhcpOptions"
  548. // AssociateDhcpOptionsRequest generates a "aws/request.Request" representing the
  549. // client's request for the AssociateDhcpOptions operation. The "output" return
  550. // value can be used to capture response data after the request's "Send" method
  551. // is called.
  552. //
  553. // See AssociateDhcpOptions for usage and error information.
  554. //
  555. // Creating a request object using this method should be used when you want to inject
  556. // custom logic into the request's lifecycle using a custom handler, or if you want to
  557. // access properties on the request object before or after sending the request. If
  558. // you just want the service response, call the AssociateDhcpOptions method directly
  559. // instead.
  560. //
  561. // Note: You must call the "Send" method on the returned request object in order
  562. // to execute the request.
  563. //
  564. // // Example sending a request using the AssociateDhcpOptionsRequest method.
  565. // req, resp := client.AssociateDhcpOptionsRequest(params)
  566. //
  567. // err := req.Send()
  568. // if err == nil { // resp is now filled
  569. // fmt.Println(resp)
  570. // }
  571. //
  572. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions
  573. func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req *request.Request, output *AssociateDhcpOptionsOutput) {
  574. op := &request.Operation{
  575. Name: opAssociateDhcpOptions,
  576. HTTPMethod: "POST",
  577. HTTPPath: "/",
  578. }
  579. if input == nil {
  580. input = &AssociateDhcpOptionsInput{}
  581. }
  582. output = &AssociateDhcpOptionsOutput{}
  583. req = c.newRequest(op, input, output)
  584. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  585. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  586. return
  587. }
  588. // AssociateDhcpOptions API operation for Amazon Elastic Compute Cloud.
  589. //
  590. // Associates a set of DHCP options (that you've previously created) with the
  591. // specified VPC, or associates no DHCP options with the VPC.
  592. //
  593. // After you associate the options with the VPC, any existing instances and
  594. // all new instances that you launch in that VPC use the options. You don't
  595. // need to restart or relaunch the instances. They automatically pick up the
  596. // changes within a few hours, depending on how frequently the instance renews
  597. // its DHCP lease. You can explicitly renew the lease using the operating system
  598. // on the instance.
  599. //
  600. // For more information, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  601. // in the Amazon Virtual Private Cloud User Guide.
  602. //
  603. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  604. // with awserr.Error's Code and Message methods to get detailed information about
  605. // the error.
  606. //
  607. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  608. // API operation AssociateDhcpOptions for usage and error information.
  609. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions
  610. func (c *EC2) AssociateDhcpOptions(input *AssociateDhcpOptionsInput) (*AssociateDhcpOptionsOutput, error) {
  611. req, out := c.AssociateDhcpOptionsRequest(input)
  612. return out, req.Send()
  613. }
  614. // AssociateDhcpOptionsWithContext is the same as AssociateDhcpOptions with the addition of
  615. // the ability to pass a context and additional request options.
  616. //
  617. // See AssociateDhcpOptions for details on how to use this API operation.
  618. //
  619. // The context must be non-nil and will be used for request cancellation. If
  620. // the context is nil a panic will occur. In the future the SDK may create
  621. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  622. // for more information on using Contexts.
  623. func (c *EC2) AssociateDhcpOptionsWithContext(ctx aws.Context, input *AssociateDhcpOptionsInput, opts ...request.Option) (*AssociateDhcpOptionsOutput, error) {
  624. req, out := c.AssociateDhcpOptionsRequest(input)
  625. req.SetContext(ctx)
  626. req.ApplyOptions(opts...)
  627. return out, req.Send()
  628. }
  629. const opAssociateIamInstanceProfile = "AssociateIamInstanceProfile"
  630. // AssociateIamInstanceProfileRequest generates a "aws/request.Request" representing the
  631. // client's request for the AssociateIamInstanceProfile operation. The "output" return
  632. // value can be used to capture response data after the request's "Send" method
  633. // is called.
  634. //
  635. // See AssociateIamInstanceProfile for usage and error information.
  636. //
  637. // Creating a request object using this method should be used when you want to inject
  638. // custom logic into the request's lifecycle using a custom handler, or if you want to
  639. // access properties on the request object before or after sending the request. If
  640. // you just want the service response, call the AssociateIamInstanceProfile method directly
  641. // instead.
  642. //
  643. // Note: You must call the "Send" method on the returned request object in order
  644. // to execute the request.
  645. //
  646. // // Example sending a request using the AssociateIamInstanceProfileRequest method.
  647. // req, resp := client.AssociateIamInstanceProfileRequest(params)
  648. //
  649. // err := req.Send()
  650. // if err == nil { // resp is now filled
  651. // fmt.Println(resp)
  652. // }
  653. //
  654. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile
  655. func (c *EC2) AssociateIamInstanceProfileRequest(input *AssociateIamInstanceProfileInput) (req *request.Request, output *AssociateIamInstanceProfileOutput) {
  656. op := &request.Operation{
  657. Name: opAssociateIamInstanceProfile,
  658. HTTPMethod: "POST",
  659. HTTPPath: "/",
  660. }
  661. if input == nil {
  662. input = &AssociateIamInstanceProfileInput{}
  663. }
  664. output = &AssociateIamInstanceProfileOutput{}
  665. req = c.newRequest(op, input, output)
  666. return
  667. }
  668. // AssociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud.
  669. //
  670. // Associates an IAM instance profile with a running or stopped instance. You
  671. // cannot associate more than one IAM instance profile with an instance.
  672. //
  673. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  674. // with awserr.Error's Code and Message methods to get detailed information about
  675. // the error.
  676. //
  677. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  678. // API operation AssociateIamInstanceProfile for usage and error information.
  679. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile
  680. func (c *EC2) AssociateIamInstanceProfile(input *AssociateIamInstanceProfileInput) (*AssociateIamInstanceProfileOutput, error) {
  681. req, out := c.AssociateIamInstanceProfileRequest(input)
  682. return out, req.Send()
  683. }
  684. // AssociateIamInstanceProfileWithContext is the same as AssociateIamInstanceProfile with the addition of
  685. // the ability to pass a context and additional request options.
  686. //
  687. // See AssociateIamInstanceProfile for details on how to use this API operation.
  688. //
  689. // The context must be non-nil and will be used for request cancellation. If
  690. // the context is nil a panic will occur. In the future the SDK may create
  691. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  692. // for more information on using Contexts.
  693. func (c *EC2) AssociateIamInstanceProfileWithContext(ctx aws.Context, input *AssociateIamInstanceProfileInput, opts ...request.Option) (*AssociateIamInstanceProfileOutput, error) {
  694. req, out := c.AssociateIamInstanceProfileRequest(input)
  695. req.SetContext(ctx)
  696. req.ApplyOptions(opts...)
  697. return out, req.Send()
  698. }
  699. const opAssociateRouteTable = "AssociateRouteTable"
  700. // AssociateRouteTableRequest generates a "aws/request.Request" representing the
  701. // client's request for the AssociateRouteTable operation. The "output" return
  702. // value can be used to capture response data after the request's "Send" method
  703. // is called.
  704. //
  705. // See AssociateRouteTable for usage and error information.
  706. //
  707. // Creating a request object using this method should be used when you want to inject
  708. // custom logic into the request's lifecycle using a custom handler, or if you want to
  709. // access properties on the request object before or after sending the request. If
  710. // you just want the service response, call the AssociateRouteTable method directly
  711. // instead.
  712. //
  713. // Note: You must call the "Send" method on the returned request object in order
  714. // to execute the request.
  715. //
  716. // // Example sending a request using the AssociateRouteTableRequest method.
  717. // req, resp := client.AssociateRouteTableRequest(params)
  718. //
  719. // err := req.Send()
  720. // if err == nil { // resp is now filled
  721. // fmt.Println(resp)
  722. // }
  723. //
  724. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable
  725. func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req *request.Request, output *AssociateRouteTableOutput) {
  726. op := &request.Operation{
  727. Name: opAssociateRouteTable,
  728. HTTPMethod: "POST",
  729. HTTPPath: "/",
  730. }
  731. if input == nil {
  732. input = &AssociateRouteTableInput{}
  733. }
  734. output = &AssociateRouteTableOutput{}
  735. req = c.newRequest(op, input, output)
  736. return
  737. }
  738. // AssociateRouteTable API operation for Amazon Elastic Compute Cloud.
  739. //
  740. // Associates a subnet with a route table. The subnet and route table must be
  741. // in the same VPC. This association causes traffic originating from the subnet
  742. // to be routed according to the routes in the route table. The action returns
  743. // an association ID, which you need in order to disassociate the route table
  744. // from the subnet later. A route table can be associated with multiple subnets.
  745. //
  746. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  747. // in the Amazon Virtual Private Cloud User Guide.
  748. //
  749. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  750. // with awserr.Error's Code and Message methods to get detailed information about
  751. // the error.
  752. //
  753. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  754. // API operation AssociateRouteTable for usage and error information.
  755. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable
  756. func (c *EC2) AssociateRouteTable(input *AssociateRouteTableInput) (*AssociateRouteTableOutput, error) {
  757. req, out := c.AssociateRouteTableRequest(input)
  758. return out, req.Send()
  759. }
  760. // AssociateRouteTableWithContext is the same as AssociateRouteTable with the addition of
  761. // the ability to pass a context and additional request options.
  762. //
  763. // See AssociateRouteTable for details on how to use this API operation.
  764. //
  765. // The context must be non-nil and will be used for request cancellation. If
  766. // the context is nil a panic will occur. In the future the SDK may create
  767. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  768. // for more information on using Contexts.
  769. func (c *EC2) AssociateRouteTableWithContext(ctx aws.Context, input *AssociateRouteTableInput, opts ...request.Option) (*AssociateRouteTableOutput, error) {
  770. req, out := c.AssociateRouteTableRequest(input)
  771. req.SetContext(ctx)
  772. req.ApplyOptions(opts...)
  773. return out, req.Send()
  774. }
  775. const opAssociateSubnetCidrBlock = "AssociateSubnetCidrBlock"
  776. // AssociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the
  777. // client's request for the AssociateSubnetCidrBlock operation. The "output" return
  778. // value can be used to capture response data after the request's "Send" method
  779. // is called.
  780. //
  781. // See AssociateSubnetCidrBlock for usage and error information.
  782. //
  783. // Creating a request object using this method should be used when you want to inject
  784. // custom logic into the request's lifecycle using a custom handler, or if you want to
  785. // access properties on the request object before or after sending the request. If
  786. // you just want the service response, call the AssociateSubnetCidrBlock method directly
  787. // instead.
  788. //
  789. // Note: You must call the "Send" method on the returned request object in order
  790. // to execute the request.
  791. //
  792. // // Example sending a request using the AssociateSubnetCidrBlockRequest method.
  793. // req, resp := client.AssociateSubnetCidrBlockRequest(params)
  794. //
  795. // err := req.Send()
  796. // if err == nil { // resp is now filled
  797. // fmt.Println(resp)
  798. // }
  799. //
  800. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock
  801. func (c *EC2) AssociateSubnetCidrBlockRequest(input *AssociateSubnetCidrBlockInput) (req *request.Request, output *AssociateSubnetCidrBlockOutput) {
  802. op := &request.Operation{
  803. Name: opAssociateSubnetCidrBlock,
  804. HTTPMethod: "POST",
  805. HTTPPath: "/",
  806. }
  807. if input == nil {
  808. input = &AssociateSubnetCidrBlockInput{}
  809. }
  810. output = &AssociateSubnetCidrBlockOutput{}
  811. req = c.newRequest(op, input, output)
  812. return
  813. }
  814. // AssociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud.
  815. //
  816. // Associates a CIDR block with your subnet. You can only associate a single
  817. // IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length
  818. // of /64.
  819. //
  820. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  821. // with awserr.Error's Code and Message methods to get detailed information about
  822. // the error.
  823. //
  824. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  825. // API operation AssociateSubnetCidrBlock for usage and error information.
  826. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock
  827. func (c *EC2) AssociateSubnetCidrBlock(input *AssociateSubnetCidrBlockInput) (*AssociateSubnetCidrBlockOutput, error) {
  828. req, out := c.AssociateSubnetCidrBlockRequest(input)
  829. return out, req.Send()
  830. }
  831. // AssociateSubnetCidrBlockWithContext is the same as AssociateSubnetCidrBlock with the addition of
  832. // the ability to pass a context and additional request options.
  833. //
  834. // See AssociateSubnetCidrBlock for details on how to use this API operation.
  835. //
  836. // The context must be non-nil and will be used for request cancellation. If
  837. // the context is nil a panic will occur. In the future the SDK may create
  838. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  839. // for more information on using Contexts.
  840. func (c *EC2) AssociateSubnetCidrBlockWithContext(ctx aws.Context, input *AssociateSubnetCidrBlockInput, opts ...request.Option) (*AssociateSubnetCidrBlockOutput, error) {
  841. req, out := c.AssociateSubnetCidrBlockRequest(input)
  842. req.SetContext(ctx)
  843. req.ApplyOptions(opts...)
  844. return out, req.Send()
  845. }
  846. const opAssociateVpcCidrBlock = "AssociateVpcCidrBlock"
  847. // AssociateVpcCidrBlockRequest generates a "aws/request.Request" representing the
  848. // client's request for the AssociateVpcCidrBlock operation. The "output" return
  849. // value can be used to capture response data after the request's "Send" method
  850. // is called.
  851. //
  852. // See AssociateVpcCidrBlock for usage and error information.
  853. //
  854. // Creating a request object using this method should be used when you want to inject
  855. // custom logic into the request's lifecycle using a custom handler, or if you want to
  856. // access properties on the request object before or after sending the request. If
  857. // you just want the service response, call the AssociateVpcCidrBlock method directly
  858. // instead.
  859. //
  860. // Note: You must call the "Send" method on the returned request object in order
  861. // to execute the request.
  862. //
  863. // // Example sending a request using the AssociateVpcCidrBlockRequest method.
  864. // req, resp := client.AssociateVpcCidrBlockRequest(params)
  865. //
  866. // err := req.Send()
  867. // if err == nil { // resp is now filled
  868. // fmt.Println(resp)
  869. // }
  870. //
  871. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock
  872. func (c *EC2) AssociateVpcCidrBlockRequest(input *AssociateVpcCidrBlockInput) (req *request.Request, output *AssociateVpcCidrBlockOutput) {
  873. op := &request.Operation{
  874. Name: opAssociateVpcCidrBlock,
  875. HTTPMethod: "POST",
  876. HTTPPath: "/",
  877. }
  878. if input == nil {
  879. input = &AssociateVpcCidrBlockInput{}
  880. }
  881. output = &AssociateVpcCidrBlockOutput{}
  882. req = c.newRequest(op, input, output)
  883. return
  884. }
  885. // AssociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud.
  886. //
  887. // Associates a CIDR block with your VPC. You can only associate a single Amazon-provided
  888. // IPv6 CIDR block with your VPC. The IPv6 CIDR block size is fixed at /56.
  889. //
  890. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  891. // with awserr.Error's Code and Message methods to get detailed information about
  892. // the error.
  893. //
  894. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  895. // API operation AssociateVpcCidrBlock for usage and error information.
  896. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock
  897. func (c *EC2) AssociateVpcCidrBlock(input *AssociateVpcCidrBlockInput) (*AssociateVpcCidrBlockOutput, error) {
  898. req, out := c.AssociateVpcCidrBlockRequest(input)
  899. return out, req.Send()
  900. }
  901. // AssociateVpcCidrBlockWithContext is the same as AssociateVpcCidrBlock with the addition of
  902. // the ability to pass a context and additional request options.
  903. //
  904. // See AssociateVpcCidrBlock for details on how to use this API operation.
  905. //
  906. // The context must be non-nil and will be used for request cancellation. If
  907. // the context is nil a panic will occur. In the future the SDK may create
  908. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  909. // for more information on using Contexts.
  910. func (c *EC2) AssociateVpcCidrBlockWithContext(ctx aws.Context, input *AssociateVpcCidrBlockInput, opts ...request.Option) (*AssociateVpcCidrBlockOutput, error) {
  911. req, out := c.AssociateVpcCidrBlockRequest(input)
  912. req.SetContext(ctx)
  913. req.ApplyOptions(opts...)
  914. return out, req.Send()
  915. }
  916. const opAttachClassicLinkVpc = "AttachClassicLinkVpc"
  917. // AttachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  918. // client's request for the AttachClassicLinkVpc operation. The "output" return
  919. // value can be used to capture response data after the request's "Send" method
  920. // is called.
  921. //
  922. // See AttachClassicLinkVpc for usage and error information.
  923. //
  924. // Creating a request object using this method should be used when you want to inject
  925. // custom logic into the request's lifecycle using a custom handler, or if you want to
  926. // access properties on the request object before or after sending the request. If
  927. // you just want the service response, call the AttachClassicLinkVpc method directly
  928. // instead.
  929. //
  930. // Note: You must call the "Send" method on the returned request object in order
  931. // to execute the request.
  932. //
  933. // // Example sending a request using the AttachClassicLinkVpcRequest method.
  934. // req, resp := client.AttachClassicLinkVpcRequest(params)
  935. //
  936. // err := req.Send()
  937. // if err == nil { // resp is now filled
  938. // fmt.Println(resp)
  939. // }
  940. //
  941. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc
  942. func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req *request.Request, output *AttachClassicLinkVpcOutput) {
  943. op := &request.Operation{
  944. Name: opAttachClassicLinkVpc,
  945. HTTPMethod: "POST",
  946. HTTPPath: "/",
  947. }
  948. if input == nil {
  949. input = &AttachClassicLinkVpcInput{}
  950. }
  951. output = &AttachClassicLinkVpcOutput{}
  952. req = c.newRequest(op, input, output)
  953. return
  954. }
  955. // AttachClassicLinkVpc API operation for Amazon Elastic Compute Cloud.
  956. //
  957. // Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or
  958. // more of the VPC's security groups. You cannot link an EC2-Classic instance
  959. // to more than one VPC at a time. You can only link an instance that's in the
  960. // running state. An instance is automatically unlinked from a VPC when it's
  961. // stopped - you can link it to the VPC again when you restart it.
  962. //
  963. // After you've linked an instance, you cannot change the VPC security groups
  964. // that are associated with it. To change the security groups, you must first
  965. // unlink the instance, and then link it again.
  966. //
  967. // Linking your instance to a VPC is sometimes referred to as attaching your
  968. // instance.
  969. //
  970. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  971. // with awserr.Error's Code and Message methods to get detailed information about
  972. // the error.
  973. //
  974. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  975. // API operation AttachClassicLinkVpc for usage and error information.
  976. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc
  977. func (c *EC2) AttachClassicLinkVpc(input *AttachClassicLinkVpcInput) (*AttachClassicLinkVpcOutput, error) {
  978. req, out := c.AttachClassicLinkVpcRequest(input)
  979. return out, req.Send()
  980. }
  981. // AttachClassicLinkVpcWithContext is the same as AttachClassicLinkVpc with the addition of
  982. // the ability to pass a context and additional request options.
  983. //
  984. // See AttachClassicLinkVpc for details on how to use this API operation.
  985. //
  986. // The context must be non-nil and will be used for request cancellation. If
  987. // the context is nil a panic will occur. In the future the SDK may create
  988. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  989. // for more information on using Contexts.
  990. func (c *EC2) AttachClassicLinkVpcWithContext(ctx aws.Context, input *AttachClassicLinkVpcInput, opts ...request.Option) (*AttachClassicLinkVpcOutput, error) {
  991. req, out := c.AttachClassicLinkVpcRequest(input)
  992. req.SetContext(ctx)
  993. req.ApplyOptions(opts...)
  994. return out, req.Send()
  995. }
  996. const opAttachInternetGateway = "AttachInternetGateway"
  997. // AttachInternetGatewayRequest generates a "aws/request.Request" representing the
  998. // client's request for the AttachInternetGateway operation. The "output" return
  999. // value can be used to capture response data after the request's "Send" method
  1000. // is called.
  1001. //
  1002. // See AttachInternetGateway for usage and error information.
  1003. //
  1004. // Creating a request object using this method should be used when you want to inject
  1005. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1006. // access properties on the request object before or after sending the request. If
  1007. // you just want the service response, call the AttachInternetGateway method directly
  1008. // instead.
  1009. //
  1010. // Note: You must call the "Send" method on the returned request object in order
  1011. // to execute the request.
  1012. //
  1013. // // Example sending a request using the AttachInternetGatewayRequest method.
  1014. // req, resp := client.AttachInternetGatewayRequest(params)
  1015. //
  1016. // err := req.Send()
  1017. // if err == nil { // resp is now filled
  1018. // fmt.Println(resp)
  1019. // }
  1020. //
  1021. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway
  1022. func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (req *request.Request, output *AttachInternetGatewayOutput) {
  1023. op := &request.Operation{
  1024. Name: opAttachInternetGateway,
  1025. HTTPMethod: "POST",
  1026. HTTPPath: "/",
  1027. }
  1028. if input == nil {
  1029. input = &AttachInternetGatewayInput{}
  1030. }
  1031. output = &AttachInternetGatewayOutput{}
  1032. req = c.newRequest(op, input, output)
  1033. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1034. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1035. return
  1036. }
  1037. // AttachInternetGateway API operation for Amazon Elastic Compute Cloud.
  1038. //
  1039. // Attaches an Internet gateway to a VPC, enabling connectivity between the
  1040. // Internet and the VPC. For more information about your VPC and Internet gateway,
  1041. // see the Amazon Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  1042. //
  1043. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1044. // with awserr.Error's Code and Message methods to get detailed information about
  1045. // the error.
  1046. //
  1047. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1048. // API operation AttachInternetGateway for usage and error information.
  1049. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway
  1050. func (c *EC2) AttachInternetGateway(input *AttachInternetGatewayInput) (*AttachInternetGatewayOutput, error) {
  1051. req, out := c.AttachInternetGatewayRequest(input)
  1052. return out, req.Send()
  1053. }
  1054. // AttachInternetGatewayWithContext is the same as AttachInternetGateway with the addition of
  1055. // the ability to pass a context and additional request options.
  1056. //
  1057. // See AttachInternetGateway for details on how to use this API operation.
  1058. //
  1059. // The context must be non-nil and will be used for request cancellation. If
  1060. // the context is nil a panic will occur. In the future the SDK may create
  1061. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1062. // for more information on using Contexts.
  1063. func (c *EC2) AttachInternetGatewayWithContext(ctx aws.Context, input *AttachInternetGatewayInput, opts ...request.Option) (*AttachInternetGatewayOutput, error) {
  1064. req, out := c.AttachInternetGatewayRequest(input)
  1065. req.SetContext(ctx)
  1066. req.ApplyOptions(opts...)
  1067. return out, req.Send()
  1068. }
  1069. const opAttachNetworkInterface = "AttachNetworkInterface"
  1070. // AttachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  1071. // client's request for the AttachNetworkInterface operation. The "output" return
  1072. // value can be used to capture response data after the request's "Send" method
  1073. // is called.
  1074. //
  1075. // See AttachNetworkInterface for usage and error information.
  1076. //
  1077. // Creating a request object using this method should be used when you want to inject
  1078. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1079. // access properties on the request object before or after sending the request. If
  1080. // you just want the service response, call the AttachNetworkInterface method directly
  1081. // instead.
  1082. //
  1083. // Note: You must call the "Send" method on the returned request object in order
  1084. // to execute the request.
  1085. //
  1086. // // Example sending a request using the AttachNetworkInterfaceRequest method.
  1087. // req, resp := client.AttachNetworkInterfaceRequest(params)
  1088. //
  1089. // err := req.Send()
  1090. // if err == nil { // resp is now filled
  1091. // fmt.Println(resp)
  1092. // }
  1093. //
  1094. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface
  1095. func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) (req *request.Request, output *AttachNetworkInterfaceOutput) {
  1096. op := &request.Operation{
  1097. Name: opAttachNetworkInterface,
  1098. HTTPMethod: "POST",
  1099. HTTPPath: "/",
  1100. }
  1101. if input == nil {
  1102. input = &AttachNetworkInterfaceInput{}
  1103. }
  1104. output = &AttachNetworkInterfaceOutput{}
  1105. req = c.newRequest(op, input, output)
  1106. return
  1107. }
  1108. // AttachNetworkInterface API operation for Amazon Elastic Compute Cloud.
  1109. //
  1110. // Attaches a network interface to an instance.
  1111. //
  1112. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1113. // with awserr.Error's Code and Message methods to get detailed information about
  1114. // the error.
  1115. //
  1116. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1117. // API operation AttachNetworkInterface for usage and error information.
  1118. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface
  1119. func (c *EC2) AttachNetworkInterface(input *AttachNetworkInterfaceInput) (*AttachNetworkInterfaceOutput, error) {
  1120. req, out := c.AttachNetworkInterfaceRequest(input)
  1121. return out, req.Send()
  1122. }
  1123. // AttachNetworkInterfaceWithContext is the same as AttachNetworkInterface with the addition of
  1124. // the ability to pass a context and additional request options.
  1125. //
  1126. // See AttachNetworkInterface for details on how to use this API operation.
  1127. //
  1128. // The context must be non-nil and will be used for request cancellation. If
  1129. // the context is nil a panic will occur. In the future the SDK may create
  1130. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1131. // for more information on using Contexts.
  1132. func (c *EC2) AttachNetworkInterfaceWithContext(ctx aws.Context, input *AttachNetworkInterfaceInput, opts ...request.Option) (*AttachNetworkInterfaceOutput, error) {
  1133. req, out := c.AttachNetworkInterfaceRequest(input)
  1134. req.SetContext(ctx)
  1135. req.ApplyOptions(opts...)
  1136. return out, req.Send()
  1137. }
  1138. const opAttachVolume = "AttachVolume"
  1139. // AttachVolumeRequest generates a "aws/request.Request" representing the
  1140. // client's request for the AttachVolume operation. The "output" return
  1141. // value can be used to capture response data after the request's "Send" method
  1142. // is called.
  1143. //
  1144. // See AttachVolume for usage and error information.
  1145. //
  1146. // Creating a request object using this method should be used when you want to inject
  1147. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1148. // access properties on the request object before or after sending the request. If
  1149. // you just want the service response, call the AttachVolume method directly
  1150. // instead.
  1151. //
  1152. // Note: You must call the "Send" method on the returned request object in order
  1153. // to execute the request.
  1154. //
  1155. // // Example sending a request using the AttachVolumeRequest method.
  1156. // req, resp := client.AttachVolumeRequest(params)
  1157. //
  1158. // err := req.Send()
  1159. // if err == nil { // resp is now filled
  1160. // fmt.Println(resp)
  1161. // }
  1162. //
  1163. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume
  1164. func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  1165. op := &request.Operation{
  1166. Name: opAttachVolume,
  1167. HTTPMethod: "POST",
  1168. HTTPPath: "/",
  1169. }
  1170. if input == nil {
  1171. input = &AttachVolumeInput{}
  1172. }
  1173. output = &VolumeAttachment{}
  1174. req = c.newRequest(op, input, output)
  1175. return
  1176. }
  1177. // AttachVolume API operation for Amazon Elastic Compute Cloud.
  1178. //
  1179. // Attaches an EBS volume to a running or stopped instance and exposes it to
  1180. // the instance with the specified device name.
  1181. //
  1182. // Encrypted EBS volumes may only be attached to instances that support Amazon
  1183. // EBS encryption. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  1184. // in the Amazon Elastic Compute Cloud User Guide.
  1185. //
  1186. // For a list of supported device names, see Attaching an EBS Volume to an Instance
  1187. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html).
  1188. // Any device names that aren't reserved for instance store volumes can be used
  1189. // for EBS volumes. For more information, see Amazon EC2 Instance Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html)
  1190. // in the Amazon Elastic Compute Cloud User Guide.
  1191. //
  1192. // If a volume has an AWS Marketplace product code:
  1193. //
  1194. // * The volume can be attached only to a stopped instance.
  1195. //
  1196. // * AWS Marketplace product codes are copied from the volume to the instance.
  1197. //
  1198. // * You must be subscribed to the product.
  1199. //
  1200. // * The instance type and operating system of the instance must support
  1201. // the product. For example, you can't detach a volume from a Windows instance
  1202. // and attach it to a Linux instance.
  1203. //
  1204. // For an overview of the AWS Marketplace, see Introducing AWS Marketplace (https://aws.amazon.com/marketplace/help/200900000).
  1205. //
  1206. // For more information about EBS volumes, see Attaching Amazon EBS Volumes
  1207. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html)
  1208. // in the Amazon Elastic Compute Cloud User Guide.
  1209. //
  1210. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1211. // with awserr.Error's Code and Message methods to get detailed information about
  1212. // the error.
  1213. //
  1214. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1215. // API operation AttachVolume for usage and error information.
  1216. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume
  1217. func (c *EC2) AttachVolume(input *AttachVolumeInput) (*VolumeAttachment, error) {
  1218. req, out := c.AttachVolumeRequest(input)
  1219. return out, req.Send()
  1220. }
  1221. // AttachVolumeWithContext is the same as AttachVolume with the addition of
  1222. // the ability to pass a context and additional request options.
  1223. //
  1224. // See AttachVolume for details on how to use this API operation.
  1225. //
  1226. // The context must be non-nil and will be used for request cancellation. If
  1227. // the context is nil a panic will occur. In the future the SDK may create
  1228. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1229. // for more information on using Contexts.
  1230. func (c *EC2) AttachVolumeWithContext(ctx aws.Context, input *AttachVolumeInput, opts ...request.Option) (*VolumeAttachment, error) {
  1231. req, out := c.AttachVolumeRequest(input)
  1232. req.SetContext(ctx)
  1233. req.ApplyOptions(opts...)
  1234. return out, req.Send()
  1235. }
  1236. const opAttachVpnGateway = "AttachVpnGateway"
  1237. // AttachVpnGatewayRequest generates a "aws/request.Request" representing the
  1238. // client's request for the AttachVpnGateway operation. The "output" return
  1239. // value can be used to capture response data after the request's "Send" method
  1240. // is called.
  1241. //
  1242. // See AttachVpnGateway for usage and error information.
  1243. //
  1244. // Creating a request object using this method should be used when you want to inject
  1245. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1246. // access properties on the request object before or after sending the request. If
  1247. // you just want the service response, call the AttachVpnGateway method directly
  1248. // instead.
  1249. //
  1250. // Note: You must call the "Send" method on the returned request object in order
  1251. // to execute the request.
  1252. //
  1253. // // Example sending a request using the AttachVpnGatewayRequest method.
  1254. // req, resp := client.AttachVpnGatewayRequest(params)
  1255. //
  1256. // err := req.Send()
  1257. // if err == nil { // resp is now filled
  1258. // fmt.Println(resp)
  1259. // }
  1260. //
  1261. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway
  1262. func (c *EC2) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) (req *request.Request, output *AttachVpnGatewayOutput) {
  1263. op := &request.Operation{
  1264. Name: opAttachVpnGateway,
  1265. HTTPMethod: "POST",
  1266. HTTPPath: "/",
  1267. }
  1268. if input == nil {
  1269. input = &AttachVpnGatewayInput{}
  1270. }
  1271. output = &AttachVpnGatewayOutput{}
  1272. req = c.newRequest(op, input, output)
  1273. return
  1274. }
  1275. // AttachVpnGateway API operation for Amazon Elastic Compute Cloud.
  1276. //
  1277. // Attaches a virtual private gateway to a VPC. You can attach one virtual private
  1278. // gateway to one VPC at a time.
  1279. //
  1280. // For more information, see Adding a Hardware Virtual Private Gateway to Your
  1281. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  1282. // in the Amazon Virtual Private Cloud User Guide.
  1283. //
  1284. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1285. // with awserr.Error's Code and Message methods to get detailed information about
  1286. // the error.
  1287. //
  1288. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1289. // API operation AttachVpnGateway for usage and error information.
  1290. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway
  1291. func (c *EC2) AttachVpnGateway(input *AttachVpnGatewayInput) (*AttachVpnGatewayOutput, error) {
  1292. req, out := c.AttachVpnGatewayRequest(input)
  1293. return out, req.Send()
  1294. }
  1295. // AttachVpnGatewayWithContext is the same as AttachVpnGateway with the addition of
  1296. // the ability to pass a context and additional request options.
  1297. //
  1298. // See AttachVpnGateway for details on how to use this API operation.
  1299. //
  1300. // The context must be non-nil and will be used for request cancellation. If
  1301. // the context is nil a panic will occur. In the future the SDK may create
  1302. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1303. // for more information on using Contexts.
  1304. func (c *EC2) AttachVpnGatewayWithContext(ctx aws.Context, input *AttachVpnGatewayInput, opts ...request.Option) (*AttachVpnGatewayOutput, error) {
  1305. req, out := c.AttachVpnGatewayRequest(input)
  1306. req.SetContext(ctx)
  1307. req.ApplyOptions(opts...)
  1308. return out, req.Send()
  1309. }
  1310. const opAuthorizeSecurityGroupEgress = "AuthorizeSecurityGroupEgress"
  1311. // AuthorizeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  1312. // client's request for the AuthorizeSecurityGroupEgress operation. The "output" return
  1313. // value can be used to capture response data after the request's "Send" method
  1314. // is called.
  1315. //
  1316. // See AuthorizeSecurityGroupEgress for usage and error information.
  1317. //
  1318. // Creating a request object using this method should be used when you want to inject
  1319. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1320. // access properties on the request object before or after sending the request. If
  1321. // you just want the service response, call the AuthorizeSecurityGroupEgress method directly
  1322. // instead.
  1323. //
  1324. // Note: You must call the "Send" method on the returned request object in order
  1325. // to execute the request.
  1326. //
  1327. // // Example sending a request using the AuthorizeSecurityGroupEgressRequest method.
  1328. // req, resp := client.AuthorizeSecurityGroupEgressRequest(params)
  1329. //
  1330. // err := req.Send()
  1331. // if err == nil { // resp is now filled
  1332. // fmt.Println(resp)
  1333. // }
  1334. //
  1335. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress
  1336. func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupEgressInput) (req *request.Request, output *AuthorizeSecurityGroupEgressOutput) {
  1337. op := &request.Operation{
  1338. Name: opAuthorizeSecurityGroupEgress,
  1339. HTTPMethod: "POST",
  1340. HTTPPath: "/",
  1341. }
  1342. if input == nil {
  1343. input = &AuthorizeSecurityGroupEgressInput{}
  1344. }
  1345. output = &AuthorizeSecurityGroupEgressOutput{}
  1346. req = c.newRequest(op, input, output)
  1347. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1348. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1349. return
  1350. }
  1351. // AuthorizeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud.
  1352. //
  1353. // [EC2-VPC only] Adds one or more egress rules to a security group for use
  1354. // with a VPC. Specifically, this action permits instances to send traffic to
  1355. // one or more destination IPv4 or IPv6 CIDR address ranges, or to one or more
  1356. // destination security groups for the same VPC. This action doesn't apply to
  1357. // security groups for use in EC2-Classic. For more information, see Security
  1358. // Groups for Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  1359. // in the Amazon Virtual Private Cloud User Guide. For more information about
  1360. // security group limits, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html).
  1361. //
  1362. // Each rule consists of the protocol (for example, TCP), plus either a CIDR
  1363. // range or a source group. For the TCP and UDP protocols, you must also specify
  1364. // the destination port or port range. For the ICMP protocol, you must also
  1365. // specify the ICMP type and code. You can use -1 for the type or code to mean
  1366. // all types or all codes.
  1367. //
  1368. // Rule changes are propagated to affected instances as quickly as possible.
  1369. // However, a small delay might occur.
  1370. //
  1371. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1372. // with awserr.Error's Code and Message methods to get detailed information about
  1373. // the error.
  1374. //
  1375. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1376. // API operation AuthorizeSecurityGroupEgress for usage and error information.
  1377. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress
  1378. func (c *EC2) AuthorizeSecurityGroupEgress(input *AuthorizeSecurityGroupEgressInput) (*AuthorizeSecurityGroupEgressOutput, error) {
  1379. req, out := c.AuthorizeSecurityGroupEgressRequest(input)
  1380. return out, req.Send()
  1381. }
  1382. // AuthorizeSecurityGroupEgressWithContext is the same as AuthorizeSecurityGroupEgress with the addition of
  1383. // the ability to pass a context and additional request options.
  1384. //
  1385. // See AuthorizeSecurityGroupEgress for details on how to use this API operation.
  1386. //
  1387. // The context must be non-nil and will be used for request cancellation. If
  1388. // the context is nil a panic will occur. In the future the SDK may create
  1389. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1390. // for more information on using Contexts.
  1391. func (c *EC2) AuthorizeSecurityGroupEgressWithContext(ctx aws.Context, input *AuthorizeSecurityGroupEgressInput, opts ...request.Option) (*AuthorizeSecurityGroupEgressOutput, error) {
  1392. req, out := c.AuthorizeSecurityGroupEgressRequest(input)
  1393. req.SetContext(ctx)
  1394. req.ApplyOptions(opts...)
  1395. return out, req.Send()
  1396. }
  1397. const opAuthorizeSecurityGroupIngress = "AuthorizeSecurityGroupIngress"
  1398. // AuthorizeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  1399. // client's request for the AuthorizeSecurityGroupIngress operation. The "output" return
  1400. // value can be used to capture response data after the request's "Send" method
  1401. // is called.
  1402. //
  1403. // See AuthorizeSecurityGroupIngress for usage and error information.
  1404. //
  1405. // Creating a request object using this method should be used when you want to inject
  1406. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1407. // access properties on the request object before or after sending the request. If
  1408. // you just want the service response, call the AuthorizeSecurityGroupIngress method directly
  1409. // instead.
  1410. //
  1411. // Note: You must call the "Send" method on the returned request object in order
  1412. // to execute the request.
  1413. //
  1414. // // Example sending a request using the AuthorizeSecurityGroupIngressRequest method.
  1415. // req, resp := client.AuthorizeSecurityGroupIngressRequest(params)
  1416. //
  1417. // err := req.Send()
  1418. // if err == nil { // resp is now filled
  1419. // fmt.Println(resp)
  1420. // }
  1421. //
  1422. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress
  1423. func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroupIngressInput) (req *request.Request, output *AuthorizeSecurityGroupIngressOutput) {
  1424. op := &request.Operation{
  1425. Name: opAuthorizeSecurityGroupIngress,
  1426. HTTPMethod: "POST",
  1427. HTTPPath: "/",
  1428. }
  1429. if input == nil {
  1430. input = &AuthorizeSecurityGroupIngressInput{}
  1431. }
  1432. output = &AuthorizeSecurityGroupIngressOutput{}
  1433. req = c.newRequest(op, input, output)
  1434. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1435. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1436. return
  1437. }
  1438. // AuthorizeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud.
  1439. //
  1440. // Adds one or more ingress rules to a security group.
  1441. //
  1442. // Rule changes are propagated to instances within the security group as quickly
  1443. // as possible. However, a small delay might occur.
  1444. //
  1445. // [EC2-Classic] This action gives one or more IPv4 CIDR address ranges permission
  1446. // to access a security group in your account, or gives one or more security
  1447. // groups (called the source groups) permission to access a security group for
  1448. // your account. A source group can be for your own AWS account, or another.
  1449. // You can have up to 100 rules per group.
  1450. //
  1451. // [EC2-VPC] This action gives one or more IPv4 or IPv6 CIDR address ranges
  1452. // permission to access a security group in your VPC, or gives one or more other
  1453. // security groups (called the source groups) permission to access a security
  1454. // group for your VPC. The security groups must all be for the same VPC or a
  1455. // peer VPC in a VPC peering connection. For more information about VPC security
  1456. // group limits, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html).
  1457. //
  1458. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1459. // with awserr.Error's Code and Message methods to get detailed information about
  1460. // the error.
  1461. //
  1462. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1463. // API operation AuthorizeSecurityGroupIngress for usage and error information.
  1464. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress
  1465. func (c *EC2) AuthorizeSecurityGroupIngress(input *AuthorizeSecurityGroupIngressInput) (*AuthorizeSecurityGroupIngressOutput, error) {
  1466. req, out := c.AuthorizeSecurityGroupIngressRequest(input)
  1467. return out, req.Send()
  1468. }
  1469. // AuthorizeSecurityGroupIngressWithContext is the same as AuthorizeSecurityGroupIngress with the addition of
  1470. // the ability to pass a context and additional request options.
  1471. //
  1472. // See AuthorizeSecurityGroupIngress for details on how to use this API operation.
  1473. //
  1474. // The context must be non-nil and will be used for request cancellation. If
  1475. // the context is nil a panic will occur. In the future the SDK may create
  1476. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1477. // for more information on using Contexts.
  1478. func (c *EC2) AuthorizeSecurityGroupIngressWithContext(ctx aws.Context, input *AuthorizeSecurityGroupIngressInput, opts ...request.Option) (*AuthorizeSecurityGroupIngressOutput, error) {
  1479. req, out := c.AuthorizeSecurityGroupIngressRequest(input)
  1480. req.SetContext(ctx)
  1481. req.ApplyOptions(opts...)
  1482. return out, req.Send()
  1483. }
  1484. const opBundleInstance = "BundleInstance"
  1485. // BundleInstanceRequest generates a "aws/request.Request" representing the
  1486. // client's request for the BundleInstance operation. The "output" return
  1487. // value can be used to capture response data after the request's "Send" method
  1488. // is called.
  1489. //
  1490. // See BundleInstance for usage and error information.
  1491. //
  1492. // Creating a request object using this method should be used when you want to inject
  1493. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1494. // access properties on the request object before or after sending the request. If
  1495. // you just want the service response, call the BundleInstance method directly
  1496. // instead.
  1497. //
  1498. // Note: You must call the "Send" method on the returned request object in order
  1499. // to execute the request.
  1500. //
  1501. // // Example sending a request using the BundleInstanceRequest method.
  1502. // req, resp := client.BundleInstanceRequest(params)
  1503. //
  1504. // err := req.Send()
  1505. // if err == nil { // resp is now filled
  1506. // fmt.Println(resp)
  1507. // }
  1508. //
  1509. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance
  1510. func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Request, output *BundleInstanceOutput) {
  1511. op := &request.Operation{
  1512. Name: opBundleInstance,
  1513. HTTPMethod: "POST",
  1514. HTTPPath: "/",
  1515. }
  1516. if input == nil {
  1517. input = &BundleInstanceInput{}
  1518. }
  1519. output = &BundleInstanceOutput{}
  1520. req = c.newRequest(op, input, output)
  1521. return
  1522. }
  1523. // BundleInstance API operation for Amazon Elastic Compute Cloud.
  1524. //
  1525. // Bundles an Amazon instance store-backed Windows instance.
  1526. //
  1527. // During bundling, only the root device volume (C:\) is bundled. Data on other
  1528. // instance store volumes is not preserved.
  1529. //
  1530. // This action is not applicable for Linux/Unix instances or Windows instances
  1531. // that are backed by Amazon EBS.
  1532. //
  1533. // For more information, see Creating an Instance Store-Backed Windows AMI (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html).
  1534. //
  1535. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1536. // with awserr.Error's Code and Message methods to get detailed information about
  1537. // the error.
  1538. //
  1539. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1540. // API operation BundleInstance for usage and error information.
  1541. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance
  1542. func (c *EC2) BundleInstance(input *BundleInstanceInput) (*BundleInstanceOutput, error) {
  1543. req, out := c.BundleInstanceRequest(input)
  1544. return out, req.Send()
  1545. }
  1546. // BundleInstanceWithContext is the same as BundleInstance with the addition of
  1547. // the ability to pass a context and additional request options.
  1548. //
  1549. // See BundleInstance for details on how to use this API operation.
  1550. //
  1551. // The context must be non-nil and will be used for request cancellation. If
  1552. // the context is nil a panic will occur. In the future the SDK may create
  1553. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1554. // for more information on using Contexts.
  1555. func (c *EC2) BundleInstanceWithContext(ctx aws.Context, input *BundleInstanceInput, opts ...request.Option) (*BundleInstanceOutput, error) {
  1556. req, out := c.BundleInstanceRequest(input)
  1557. req.SetContext(ctx)
  1558. req.ApplyOptions(opts...)
  1559. return out, req.Send()
  1560. }
  1561. const opCancelBundleTask = "CancelBundleTask"
  1562. // CancelBundleTaskRequest generates a "aws/request.Request" representing the
  1563. // client's request for the CancelBundleTask operation. The "output" return
  1564. // value can be used to capture response data after the request's "Send" method
  1565. // is called.
  1566. //
  1567. // See CancelBundleTask for usage and error information.
  1568. //
  1569. // Creating a request object using this method should be used when you want to inject
  1570. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1571. // access properties on the request object before or after sending the request. If
  1572. // you just want the service response, call the CancelBundleTask method directly
  1573. // instead.
  1574. //
  1575. // Note: You must call the "Send" method on the returned request object in order
  1576. // to execute the request.
  1577. //
  1578. // // Example sending a request using the CancelBundleTaskRequest method.
  1579. // req, resp := client.CancelBundleTaskRequest(params)
  1580. //
  1581. // err := req.Send()
  1582. // if err == nil { // resp is now filled
  1583. // fmt.Println(resp)
  1584. // }
  1585. //
  1586. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask
  1587. func (c *EC2) CancelBundleTaskRequest(input *CancelBundleTaskInput) (req *request.Request, output *CancelBundleTaskOutput) {
  1588. op := &request.Operation{
  1589. Name: opCancelBundleTask,
  1590. HTTPMethod: "POST",
  1591. HTTPPath: "/",
  1592. }
  1593. if input == nil {
  1594. input = &CancelBundleTaskInput{}
  1595. }
  1596. output = &CancelBundleTaskOutput{}
  1597. req = c.newRequest(op, input, output)
  1598. return
  1599. }
  1600. // CancelBundleTask API operation for Amazon Elastic Compute Cloud.
  1601. //
  1602. // Cancels a bundling operation for an instance store-backed Windows instance.
  1603. //
  1604. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1605. // with awserr.Error's Code and Message methods to get detailed information about
  1606. // the error.
  1607. //
  1608. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1609. // API operation CancelBundleTask for usage and error information.
  1610. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask
  1611. func (c *EC2) CancelBundleTask(input *CancelBundleTaskInput) (*CancelBundleTaskOutput, error) {
  1612. req, out := c.CancelBundleTaskRequest(input)
  1613. return out, req.Send()
  1614. }
  1615. // CancelBundleTaskWithContext is the same as CancelBundleTask with the addition of
  1616. // the ability to pass a context and additional request options.
  1617. //
  1618. // See CancelBundleTask for details on how to use this API operation.
  1619. //
  1620. // The context must be non-nil and will be used for request cancellation. If
  1621. // the context is nil a panic will occur. In the future the SDK may create
  1622. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1623. // for more information on using Contexts.
  1624. func (c *EC2) CancelBundleTaskWithContext(ctx aws.Context, input *CancelBundleTaskInput, opts ...request.Option) (*CancelBundleTaskOutput, error) {
  1625. req, out := c.CancelBundleTaskRequest(input)
  1626. req.SetContext(ctx)
  1627. req.ApplyOptions(opts...)
  1628. return out, req.Send()
  1629. }
  1630. const opCancelConversionTask = "CancelConversionTask"
  1631. // CancelConversionTaskRequest generates a "aws/request.Request" representing the
  1632. // client's request for the CancelConversionTask operation. The "output" return
  1633. // value can be used to capture response data after the request's "Send" method
  1634. // is called.
  1635. //
  1636. // See CancelConversionTask for usage and error information.
  1637. //
  1638. // Creating a request object using this method should be used when you want to inject
  1639. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1640. // access properties on the request object before or after sending the request. If
  1641. // you just want the service response, call the CancelConversionTask method directly
  1642. // instead.
  1643. //
  1644. // Note: You must call the "Send" method on the returned request object in order
  1645. // to execute the request.
  1646. //
  1647. // // Example sending a request using the CancelConversionTaskRequest method.
  1648. // req, resp := client.CancelConversionTaskRequest(params)
  1649. //
  1650. // err := req.Send()
  1651. // if err == nil { // resp is now filled
  1652. // fmt.Println(resp)
  1653. // }
  1654. //
  1655. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask
  1656. func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req *request.Request, output *CancelConversionTaskOutput) {
  1657. op := &request.Operation{
  1658. Name: opCancelConversionTask,
  1659. HTTPMethod: "POST",
  1660. HTTPPath: "/",
  1661. }
  1662. if input == nil {
  1663. input = &CancelConversionTaskInput{}
  1664. }
  1665. output = &CancelConversionTaskOutput{}
  1666. req = c.newRequest(op, input, output)
  1667. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1668. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1669. return
  1670. }
  1671. // CancelConversionTask API operation for Amazon Elastic Compute Cloud.
  1672. //
  1673. // Cancels an active conversion task. The task can be the import of an instance
  1674. // or volume. The action removes all artifacts of the conversion, including
  1675. // a partially uploaded volume or instance. If the conversion is complete or
  1676. // is in the process of transferring the final disk image, the command fails
  1677. // and returns an exception.
  1678. //
  1679. // For more information, see Importing a Virtual Machine Using the Amazon EC2
  1680. // CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).
  1681. //
  1682. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1683. // with awserr.Error's Code and Message methods to get detailed information about
  1684. // the error.
  1685. //
  1686. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1687. // API operation CancelConversionTask for usage and error information.
  1688. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask
  1689. func (c *EC2) CancelConversionTask(input *CancelConversionTaskInput) (*CancelConversionTaskOutput, error) {
  1690. req, out := c.CancelConversionTaskRequest(input)
  1691. return out, req.Send()
  1692. }
  1693. // CancelConversionTaskWithContext is the same as CancelConversionTask with the addition of
  1694. // the ability to pass a context and additional request options.
  1695. //
  1696. // See CancelConversionTask for details on how to use this API operation.
  1697. //
  1698. // The context must be non-nil and will be used for request cancellation. If
  1699. // the context is nil a panic will occur. In the future the SDK may create
  1700. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1701. // for more information on using Contexts.
  1702. func (c *EC2) CancelConversionTaskWithContext(ctx aws.Context, input *CancelConversionTaskInput, opts ...request.Option) (*CancelConversionTaskOutput, error) {
  1703. req, out := c.CancelConversionTaskRequest(input)
  1704. req.SetContext(ctx)
  1705. req.ApplyOptions(opts...)
  1706. return out, req.Send()
  1707. }
  1708. const opCancelExportTask = "CancelExportTask"
  1709. // CancelExportTaskRequest generates a "aws/request.Request" representing the
  1710. // client's request for the CancelExportTask operation. The "output" return
  1711. // value can be used to capture response data after the request's "Send" method
  1712. // is called.
  1713. //
  1714. // See CancelExportTask for usage and error information.
  1715. //
  1716. // Creating a request object using this method should be used when you want to inject
  1717. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1718. // access properties on the request object before or after sending the request. If
  1719. // you just want the service response, call the CancelExportTask method directly
  1720. // instead.
  1721. //
  1722. // Note: You must call the "Send" method on the returned request object in order
  1723. // to execute the request.
  1724. //
  1725. // // Example sending a request using the CancelExportTaskRequest method.
  1726. // req, resp := client.CancelExportTaskRequest(params)
  1727. //
  1728. // err := req.Send()
  1729. // if err == nil { // resp is now filled
  1730. // fmt.Println(resp)
  1731. // }
  1732. //
  1733. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask
  1734. func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) {
  1735. op := &request.Operation{
  1736. Name: opCancelExportTask,
  1737. HTTPMethod: "POST",
  1738. HTTPPath: "/",
  1739. }
  1740. if input == nil {
  1741. input = &CancelExportTaskInput{}
  1742. }
  1743. output = &CancelExportTaskOutput{}
  1744. req = c.newRequest(op, input, output)
  1745. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1746. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1747. return
  1748. }
  1749. // CancelExportTask API operation for Amazon Elastic Compute Cloud.
  1750. //
  1751. // Cancels an active export task. The request removes all artifacts of the export,
  1752. // including any partially-created Amazon S3 objects. If the export task is
  1753. // complete or is in the process of transferring the final disk image, the command
  1754. // fails and returns an error.
  1755. //
  1756. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1757. // with awserr.Error's Code and Message methods to get detailed information about
  1758. // the error.
  1759. //
  1760. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1761. // API operation CancelExportTask for usage and error information.
  1762. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask
  1763. func (c *EC2) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) {
  1764. req, out := c.CancelExportTaskRequest(input)
  1765. return out, req.Send()
  1766. }
  1767. // CancelExportTaskWithContext is the same as CancelExportTask with the addition of
  1768. // the ability to pass a context and additional request options.
  1769. //
  1770. // See CancelExportTask for details on how to use this API operation.
  1771. //
  1772. // The context must be non-nil and will be used for request cancellation. If
  1773. // the context is nil a panic will occur. In the future the SDK may create
  1774. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1775. // for more information on using Contexts.
  1776. func (c *EC2) CancelExportTaskWithContext(ctx aws.Context, input *CancelExportTaskInput, opts ...request.Option) (*CancelExportTaskOutput, error) {
  1777. req, out := c.CancelExportTaskRequest(input)
  1778. req.SetContext(ctx)
  1779. req.ApplyOptions(opts...)
  1780. return out, req.Send()
  1781. }
  1782. const opCancelImportTask = "CancelImportTask"
  1783. // CancelImportTaskRequest generates a "aws/request.Request" representing the
  1784. // client's request for the CancelImportTask operation. The "output" return
  1785. // value can be used to capture response data after the request's "Send" method
  1786. // is called.
  1787. //
  1788. // See CancelImportTask for usage and error information.
  1789. //
  1790. // Creating a request object using this method should be used when you want to inject
  1791. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1792. // access properties on the request object before or after sending the request. If
  1793. // you just want the service response, call the CancelImportTask method directly
  1794. // instead.
  1795. //
  1796. // Note: You must call the "Send" method on the returned request object in order
  1797. // to execute the request.
  1798. //
  1799. // // Example sending a request using the CancelImportTaskRequest method.
  1800. // req, resp := client.CancelImportTaskRequest(params)
  1801. //
  1802. // err := req.Send()
  1803. // if err == nil { // resp is now filled
  1804. // fmt.Println(resp)
  1805. // }
  1806. //
  1807. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask
  1808. func (c *EC2) CancelImportTaskRequest(input *CancelImportTaskInput) (req *request.Request, output *CancelImportTaskOutput) {
  1809. op := &request.Operation{
  1810. Name: opCancelImportTask,
  1811. HTTPMethod: "POST",
  1812. HTTPPath: "/",
  1813. }
  1814. if input == nil {
  1815. input = &CancelImportTaskInput{}
  1816. }
  1817. output = &CancelImportTaskOutput{}
  1818. req = c.newRequest(op, input, output)
  1819. return
  1820. }
  1821. // CancelImportTask API operation for Amazon Elastic Compute Cloud.
  1822. //
  1823. // Cancels an in-process import virtual machine or import snapshot task.
  1824. //
  1825. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1826. // with awserr.Error's Code and Message methods to get detailed information about
  1827. // the error.
  1828. //
  1829. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1830. // API operation CancelImportTask for usage and error information.
  1831. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask
  1832. func (c *EC2) CancelImportTask(input *CancelImportTaskInput) (*CancelImportTaskOutput, error) {
  1833. req, out := c.CancelImportTaskRequest(input)
  1834. return out, req.Send()
  1835. }
  1836. // CancelImportTaskWithContext is the same as CancelImportTask with the addition of
  1837. // the ability to pass a context and additional request options.
  1838. //
  1839. // See CancelImportTask for details on how to use this API operation.
  1840. //
  1841. // The context must be non-nil and will be used for request cancellation. If
  1842. // the context is nil a panic will occur. In the future the SDK may create
  1843. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1844. // for more information on using Contexts.
  1845. func (c *EC2) CancelImportTaskWithContext(ctx aws.Context, input *CancelImportTaskInput, opts ...request.Option) (*CancelImportTaskOutput, error) {
  1846. req, out := c.CancelImportTaskRequest(input)
  1847. req.SetContext(ctx)
  1848. req.ApplyOptions(opts...)
  1849. return out, req.Send()
  1850. }
  1851. const opCancelReservedInstancesListing = "CancelReservedInstancesListing"
  1852. // CancelReservedInstancesListingRequest generates a "aws/request.Request" representing the
  1853. // client's request for the CancelReservedInstancesListing operation. The "output" return
  1854. // value can be used to capture response data after the request's "Send" method
  1855. // is called.
  1856. //
  1857. // See CancelReservedInstancesListing for usage and error information.
  1858. //
  1859. // Creating a request object using this method should be used when you want to inject
  1860. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1861. // access properties on the request object before or after sending the request. If
  1862. // you just want the service response, call the CancelReservedInstancesListing method directly
  1863. // instead.
  1864. //
  1865. // Note: You must call the "Send" method on the returned request object in order
  1866. // to execute the request.
  1867. //
  1868. // // Example sending a request using the CancelReservedInstancesListingRequest method.
  1869. // req, resp := client.CancelReservedInstancesListingRequest(params)
  1870. //
  1871. // err := req.Send()
  1872. // if err == nil { // resp is now filled
  1873. // fmt.Println(resp)
  1874. // }
  1875. //
  1876. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing
  1877. func (c *EC2) CancelReservedInstancesListingRequest(input *CancelReservedInstancesListingInput) (req *request.Request, output *CancelReservedInstancesListingOutput) {
  1878. op := &request.Operation{
  1879. Name: opCancelReservedInstancesListing,
  1880. HTTPMethod: "POST",
  1881. HTTPPath: "/",
  1882. }
  1883. if input == nil {
  1884. input = &CancelReservedInstancesListingInput{}
  1885. }
  1886. output = &CancelReservedInstancesListingOutput{}
  1887. req = c.newRequest(op, input, output)
  1888. return
  1889. }
  1890. // CancelReservedInstancesListing API operation for Amazon Elastic Compute Cloud.
  1891. //
  1892. // Cancels the specified Reserved Instance listing in the Reserved Instance
  1893. // Marketplace.
  1894. //
  1895. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  1896. // in the Amazon Elastic Compute Cloud User Guide.
  1897. //
  1898. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1899. // with awserr.Error's Code and Message methods to get detailed information about
  1900. // the error.
  1901. //
  1902. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1903. // API operation CancelReservedInstancesListing for usage and error information.
  1904. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing
  1905. func (c *EC2) CancelReservedInstancesListing(input *CancelReservedInstancesListingInput) (*CancelReservedInstancesListingOutput, error) {
  1906. req, out := c.CancelReservedInstancesListingRequest(input)
  1907. return out, req.Send()
  1908. }
  1909. // CancelReservedInstancesListingWithContext is the same as CancelReservedInstancesListing with the addition of
  1910. // the ability to pass a context and additional request options.
  1911. //
  1912. // See CancelReservedInstancesListing for details on how to use this API operation.
  1913. //
  1914. // The context must be non-nil and will be used for request cancellation. If
  1915. // the context is nil a panic will occur. In the future the SDK may create
  1916. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1917. // for more information on using Contexts.
  1918. func (c *EC2) CancelReservedInstancesListingWithContext(ctx aws.Context, input *CancelReservedInstancesListingInput, opts ...request.Option) (*CancelReservedInstancesListingOutput, error) {
  1919. req, out := c.CancelReservedInstancesListingRequest(input)
  1920. req.SetContext(ctx)
  1921. req.ApplyOptions(opts...)
  1922. return out, req.Send()
  1923. }
  1924. const opCancelSpotFleetRequests = "CancelSpotFleetRequests"
  1925. // CancelSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  1926. // client's request for the CancelSpotFleetRequests operation. The "output" return
  1927. // value can be used to capture response data after the request's "Send" method
  1928. // is called.
  1929. //
  1930. // See CancelSpotFleetRequests for usage and error information.
  1931. //
  1932. // Creating a request object using this method should be used when you want to inject
  1933. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1934. // access properties on the request object before or after sending the request. If
  1935. // you just want the service response, call the CancelSpotFleetRequests method directly
  1936. // instead.
  1937. //
  1938. // Note: You must call the "Send" method on the returned request object in order
  1939. // to execute the request.
  1940. //
  1941. // // Example sending a request using the CancelSpotFleetRequestsRequest method.
  1942. // req, resp := client.CancelSpotFleetRequestsRequest(params)
  1943. //
  1944. // err := req.Send()
  1945. // if err == nil { // resp is now filled
  1946. // fmt.Println(resp)
  1947. // }
  1948. //
  1949. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests
  1950. func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput) (req *request.Request, output *CancelSpotFleetRequestsOutput) {
  1951. op := &request.Operation{
  1952. Name: opCancelSpotFleetRequests,
  1953. HTTPMethod: "POST",
  1954. HTTPPath: "/",
  1955. }
  1956. if input == nil {
  1957. input = &CancelSpotFleetRequestsInput{}
  1958. }
  1959. output = &CancelSpotFleetRequestsOutput{}
  1960. req = c.newRequest(op, input, output)
  1961. return
  1962. }
  1963. // CancelSpotFleetRequests API operation for Amazon Elastic Compute Cloud.
  1964. //
  1965. // Cancels the specified Spot fleet requests.
  1966. //
  1967. // After you cancel a Spot fleet request, the Spot fleet launches no new Spot
  1968. // instances. You must specify whether the Spot fleet should also terminate
  1969. // its Spot instances. If you terminate the instances, the Spot fleet request
  1970. // enters the cancelled_terminating state. Otherwise, the Spot fleet request
  1971. // enters the cancelled_running state and the instances continue to run until
  1972. // they are interrupted or you terminate them manually.
  1973. //
  1974. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1975. // with awserr.Error's Code and Message methods to get detailed information about
  1976. // the error.
  1977. //
  1978. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1979. // API operation CancelSpotFleetRequests for usage and error information.
  1980. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests
  1981. func (c *EC2) CancelSpotFleetRequests(input *CancelSpotFleetRequestsInput) (*CancelSpotFleetRequestsOutput, error) {
  1982. req, out := c.CancelSpotFleetRequestsRequest(input)
  1983. return out, req.Send()
  1984. }
  1985. // CancelSpotFleetRequestsWithContext is the same as CancelSpotFleetRequests with the addition of
  1986. // the ability to pass a context and additional request options.
  1987. //
  1988. // See CancelSpotFleetRequests for details on how to use this API operation.
  1989. //
  1990. // The context must be non-nil and will be used for request cancellation. If
  1991. // the context is nil a panic will occur. In the future the SDK may create
  1992. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1993. // for more information on using Contexts.
  1994. func (c *EC2) CancelSpotFleetRequestsWithContext(ctx aws.Context, input *CancelSpotFleetRequestsInput, opts ...request.Option) (*CancelSpotFleetRequestsOutput, error) {
  1995. req, out := c.CancelSpotFleetRequestsRequest(input)
  1996. req.SetContext(ctx)
  1997. req.ApplyOptions(opts...)
  1998. return out, req.Send()
  1999. }
  2000. const opCancelSpotInstanceRequests = "CancelSpotInstanceRequests"
  2001. // CancelSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  2002. // client's request for the CancelSpotInstanceRequests operation. The "output" return
  2003. // value can be used to capture response data after the request's "Send" method
  2004. // is called.
  2005. //
  2006. // See CancelSpotInstanceRequests for usage and error information.
  2007. //
  2008. // Creating a request object using this method should be used when you want to inject
  2009. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2010. // access properties on the request object before or after sending the request. If
  2011. // you just want the service response, call the CancelSpotInstanceRequests method directly
  2012. // instead.
  2013. //
  2014. // Note: You must call the "Send" method on the returned request object in order
  2015. // to execute the request.
  2016. //
  2017. // // Example sending a request using the CancelSpotInstanceRequestsRequest method.
  2018. // req, resp := client.CancelSpotInstanceRequestsRequest(params)
  2019. //
  2020. // err := req.Send()
  2021. // if err == nil { // resp is now filled
  2022. // fmt.Println(resp)
  2023. // }
  2024. //
  2025. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests
  2026. func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequestsInput) (req *request.Request, output *CancelSpotInstanceRequestsOutput) {
  2027. op := &request.Operation{
  2028. Name: opCancelSpotInstanceRequests,
  2029. HTTPMethod: "POST",
  2030. HTTPPath: "/",
  2031. }
  2032. if input == nil {
  2033. input = &CancelSpotInstanceRequestsInput{}
  2034. }
  2035. output = &CancelSpotInstanceRequestsOutput{}
  2036. req = c.newRequest(op, input, output)
  2037. return
  2038. }
  2039. // CancelSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
  2040. //
  2041. // Cancels one or more Spot instance requests. Spot instances are instances
  2042. // that Amazon EC2 starts on your behalf when the bid price that you specify
  2043. // exceeds the current Spot price. Amazon EC2 periodically sets the Spot price
  2044. // based on available Spot instance capacity and current Spot instance requests.
  2045. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  2046. // in the Amazon Elastic Compute Cloud User Guide.
  2047. //
  2048. // Canceling a Spot instance request does not terminate running Spot instances
  2049. // associated with the request.
  2050. //
  2051. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2052. // with awserr.Error's Code and Message methods to get detailed information about
  2053. // the error.
  2054. //
  2055. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2056. // API operation CancelSpotInstanceRequests for usage and error information.
  2057. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests
  2058. func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) {
  2059. req, out := c.CancelSpotInstanceRequestsRequest(input)
  2060. return out, req.Send()
  2061. }
  2062. // CancelSpotInstanceRequestsWithContext is the same as CancelSpotInstanceRequests with the addition of
  2063. // the ability to pass a context and additional request options.
  2064. //
  2065. // See CancelSpotInstanceRequests for details on how to use this API operation.
  2066. //
  2067. // The context must be non-nil and will be used for request cancellation. If
  2068. // the context is nil a panic will occur. In the future the SDK may create
  2069. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2070. // for more information on using Contexts.
  2071. func (c *EC2) CancelSpotInstanceRequestsWithContext(ctx aws.Context, input *CancelSpotInstanceRequestsInput, opts ...request.Option) (*CancelSpotInstanceRequestsOutput, error) {
  2072. req, out := c.CancelSpotInstanceRequestsRequest(input)
  2073. req.SetContext(ctx)
  2074. req.ApplyOptions(opts...)
  2075. return out, req.Send()
  2076. }
  2077. const opConfirmProductInstance = "ConfirmProductInstance"
  2078. // ConfirmProductInstanceRequest generates a "aws/request.Request" representing the
  2079. // client's request for the ConfirmProductInstance operation. The "output" return
  2080. // value can be used to capture response data after the request's "Send" method
  2081. // is called.
  2082. //
  2083. // See ConfirmProductInstance for usage and error information.
  2084. //
  2085. // Creating a request object using this method should be used when you want to inject
  2086. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2087. // access properties on the request object before or after sending the request. If
  2088. // you just want the service response, call the ConfirmProductInstance method directly
  2089. // instead.
  2090. //
  2091. // Note: You must call the "Send" method on the returned request object in order
  2092. // to execute the request.
  2093. //
  2094. // // Example sending a request using the ConfirmProductInstanceRequest method.
  2095. // req, resp := client.ConfirmProductInstanceRequest(params)
  2096. //
  2097. // err := req.Send()
  2098. // if err == nil { // resp is now filled
  2099. // fmt.Println(resp)
  2100. // }
  2101. //
  2102. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance
  2103. func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) (req *request.Request, output *ConfirmProductInstanceOutput) {
  2104. op := &request.Operation{
  2105. Name: opConfirmProductInstance,
  2106. HTTPMethod: "POST",
  2107. HTTPPath: "/",
  2108. }
  2109. if input == nil {
  2110. input = &ConfirmProductInstanceInput{}
  2111. }
  2112. output = &ConfirmProductInstanceOutput{}
  2113. req = c.newRequest(op, input, output)
  2114. return
  2115. }
  2116. // ConfirmProductInstance API operation for Amazon Elastic Compute Cloud.
  2117. //
  2118. // Determines whether a product code is associated with an instance. This action
  2119. // can only be used by the owner of the product code. It is useful when a product
  2120. // code owner needs to verify whether another user's instance is eligible for
  2121. // support.
  2122. //
  2123. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2124. // with awserr.Error's Code and Message methods to get detailed information about
  2125. // the error.
  2126. //
  2127. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2128. // API operation ConfirmProductInstance for usage and error information.
  2129. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance
  2130. func (c *EC2) ConfirmProductInstance(input *ConfirmProductInstanceInput) (*ConfirmProductInstanceOutput, error) {
  2131. req, out := c.ConfirmProductInstanceRequest(input)
  2132. return out, req.Send()
  2133. }
  2134. // ConfirmProductInstanceWithContext is the same as ConfirmProductInstance with the addition of
  2135. // the ability to pass a context and additional request options.
  2136. //
  2137. // See ConfirmProductInstance for details on how to use this API operation.
  2138. //
  2139. // The context must be non-nil and will be used for request cancellation. If
  2140. // the context is nil a panic will occur. In the future the SDK may create
  2141. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2142. // for more information on using Contexts.
  2143. func (c *EC2) ConfirmProductInstanceWithContext(ctx aws.Context, input *ConfirmProductInstanceInput, opts ...request.Option) (*ConfirmProductInstanceOutput, error) {
  2144. req, out := c.ConfirmProductInstanceRequest(input)
  2145. req.SetContext(ctx)
  2146. req.ApplyOptions(opts...)
  2147. return out, req.Send()
  2148. }
  2149. const opCopyImage = "CopyImage"
  2150. // CopyImageRequest generates a "aws/request.Request" representing the
  2151. // client's request for the CopyImage operation. The "output" return
  2152. // value can be used to capture response data after the request's "Send" method
  2153. // is called.
  2154. //
  2155. // See CopyImage for usage and error information.
  2156. //
  2157. // Creating a request object using this method should be used when you want to inject
  2158. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2159. // access properties on the request object before or after sending the request. If
  2160. // you just want the service response, call the CopyImage method directly
  2161. // instead.
  2162. //
  2163. // Note: You must call the "Send" method on the returned request object in order
  2164. // to execute the request.
  2165. //
  2166. // // Example sending a request using the CopyImageRequest method.
  2167. // req, resp := client.CopyImageRequest(params)
  2168. //
  2169. // err := req.Send()
  2170. // if err == nil { // resp is now filled
  2171. // fmt.Println(resp)
  2172. // }
  2173. //
  2174. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage
  2175. func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) {
  2176. op := &request.Operation{
  2177. Name: opCopyImage,
  2178. HTTPMethod: "POST",
  2179. HTTPPath: "/",
  2180. }
  2181. if input == nil {
  2182. input = &CopyImageInput{}
  2183. }
  2184. output = &CopyImageOutput{}
  2185. req = c.newRequest(op, input, output)
  2186. return
  2187. }
  2188. // CopyImage API operation for Amazon Elastic Compute Cloud.
  2189. //
  2190. // Initiates the copy of an AMI from the specified source region to the current
  2191. // region. You specify the destination region by using its endpoint when making
  2192. // the request.
  2193. //
  2194. // For more information about the prerequisites and limits when copying an AMI,
  2195. // see Copying an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html)
  2196. // in the Amazon Elastic Compute Cloud User Guide.
  2197. //
  2198. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2199. // with awserr.Error's Code and Message methods to get detailed information about
  2200. // the error.
  2201. //
  2202. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2203. // API operation CopyImage for usage and error information.
  2204. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage
  2205. func (c *EC2) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) {
  2206. req, out := c.CopyImageRequest(input)
  2207. return out, req.Send()
  2208. }
  2209. // CopyImageWithContext is the same as CopyImage with the addition of
  2210. // the ability to pass a context and additional request options.
  2211. //
  2212. // See CopyImage for details on how to use this API operation.
  2213. //
  2214. // The context must be non-nil and will be used for request cancellation. If
  2215. // the context is nil a panic will occur. In the future the SDK may create
  2216. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2217. // for more information on using Contexts.
  2218. func (c *EC2) CopyImageWithContext(ctx aws.Context, input *CopyImageInput, opts ...request.Option) (*CopyImageOutput, error) {
  2219. req, out := c.CopyImageRequest(input)
  2220. req.SetContext(ctx)
  2221. req.ApplyOptions(opts...)
  2222. return out, req.Send()
  2223. }
  2224. const opCopySnapshot = "CopySnapshot"
  2225. // CopySnapshotRequest generates a "aws/request.Request" representing the
  2226. // client's request for the CopySnapshot operation. The "output" return
  2227. // value can be used to capture response data after the request's "Send" method
  2228. // is called.
  2229. //
  2230. // See CopySnapshot for usage and error information.
  2231. //
  2232. // Creating a request object using this method should be used when you want to inject
  2233. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2234. // access properties on the request object before or after sending the request. If
  2235. // you just want the service response, call the CopySnapshot method directly
  2236. // instead.
  2237. //
  2238. // Note: You must call the "Send" method on the returned request object in order
  2239. // to execute the request.
  2240. //
  2241. // // Example sending a request using the CopySnapshotRequest method.
  2242. // req, resp := client.CopySnapshotRequest(params)
  2243. //
  2244. // err := req.Send()
  2245. // if err == nil { // resp is now filled
  2246. // fmt.Println(resp)
  2247. // }
  2248. //
  2249. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot
  2250. func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Request, output *CopySnapshotOutput) {
  2251. op := &request.Operation{
  2252. Name: opCopySnapshot,
  2253. HTTPMethod: "POST",
  2254. HTTPPath: "/",
  2255. }
  2256. if input == nil {
  2257. input = &CopySnapshotInput{}
  2258. }
  2259. output = &CopySnapshotOutput{}
  2260. req = c.newRequest(op, input, output)
  2261. return
  2262. }
  2263. // CopySnapshot API operation for Amazon Elastic Compute Cloud.
  2264. //
  2265. // Copies a point-in-time snapshot of an EBS volume and stores it in Amazon
  2266. // S3. You can copy the snapshot within the same region or from one region to
  2267. // another. You can use the snapshot to create EBS volumes or Amazon Machine
  2268. // Images (AMIs). The snapshot is copied to the regional endpoint that you send
  2269. // the HTTP request to.
  2270. //
  2271. // Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted
  2272. // snapshots remain unencrypted, unless the Encrypted flag is specified during
  2273. // the snapshot copy operation. By default, encrypted snapshot copies use the
  2274. // default AWS Key Management Service (AWS KMS) customer master key (CMK); however,
  2275. // you can specify a non-default CMK with the KmsKeyId parameter.
  2276. //
  2277. // To copy an encrypted snapshot that has been shared from another account,
  2278. // you must have permissions for the CMK used to encrypt the snapshot.
  2279. //
  2280. // Snapshots created by the CopySnapshot action have an arbitrary volume ID
  2281. // that should not be used for any purpose.
  2282. //
  2283. // For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html)
  2284. // in the Amazon Elastic Compute Cloud User Guide.
  2285. //
  2286. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2287. // with awserr.Error's Code and Message methods to get detailed information about
  2288. // the error.
  2289. //
  2290. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2291. // API operation CopySnapshot for usage and error information.
  2292. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot
  2293. func (c *EC2) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) {
  2294. req, out := c.CopySnapshotRequest(input)
  2295. return out, req.Send()
  2296. }
  2297. // CopySnapshotWithContext is the same as CopySnapshot with the addition of
  2298. // the ability to pass a context and additional request options.
  2299. //
  2300. // See CopySnapshot for details on how to use this API operation.
  2301. //
  2302. // The context must be non-nil and will be used for request cancellation. If
  2303. // the context is nil a panic will occur. In the future the SDK may create
  2304. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2305. // for more information on using Contexts.
  2306. func (c *EC2) CopySnapshotWithContext(ctx aws.Context, input *CopySnapshotInput, opts ...request.Option) (*CopySnapshotOutput, error) {
  2307. req, out := c.CopySnapshotRequest(input)
  2308. req.SetContext(ctx)
  2309. req.ApplyOptions(opts...)
  2310. return out, req.Send()
  2311. }
  2312. const opCreateCustomerGateway = "CreateCustomerGateway"
  2313. // CreateCustomerGatewayRequest generates a "aws/request.Request" representing the
  2314. // client's request for the CreateCustomerGateway operation. The "output" return
  2315. // value can be used to capture response data after the request's "Send" method
  2316. // is called.
  2317. //
  2318. // See CreateCustomerGateway for usage and error information.
  2319. //
  2320. // Creating a request object using this method should be used when you want to inject
  2321. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2322. // access properties on the request object before or after sending the request. If
  2323. // you just want the service response, call the CreateCustomerGateway method directly
  2324. // instead.
  2325. //
  2326. // Note: You must call the "Send" method on the returned request object in order
  2327. // to execute the request.
  2328. //
  2329. // // Example sending a request using the CreateCustomerGatewayRequest method.
  2330. // req, resp := client.CreateCustomerGatewayRequest(params)
  2331. //
  2332. // err := req.Send()
  2333. // if err == nil { // resp is now filled
  2334. // fmt.Println(resp)
  2335. // }
  2336. //
  2337. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway
  2338. func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (req *request.Request, output *CreateCustomerGatewayOutput) {
  2339. op := &request.Operation{
  2340. Name: opCreateCustomerGateway,
  2341. HTTPMethod: "POST",
  2342. HTTPPath: "/",
  2343. }
  2344. if input == nil {
  2345. input = &CreateCustomerGatewayInput{}
  2346. }
  2347. output = &CreateCustomerGatewayOutput{}
  2348. req = c.newRequest(op, input, output)
  2349. return
  2350. }
  2351. // CreateCustomerGateway API operation for Amazon Elastic Compute Cloud.
  2352. //
  2353. // Provides information to AWS about your VPN customer gateway device. The customer
  2354. // gateway is the appliance at your end of the VPN connection. (The device on
  2355. // the AWS side of the VPN connection is the virtual private gateway.) You must
  2356. // provide the Internet-routable IP address of the customer gateway's external
  2357. // interface. The IP address must be static and may be behind a device performing
  2358. // network address translation (NAT).
  2359. //
  2360. // For devices that use Border Gateway Protocol (BGP), you can also provide
  2361. // the device's BGP Autonomous System Number (ASN). You can use an existing
  2362. // ASN assigned to your network. If you don't have an ASN already, you can use
  2363. // a private ASN (in the 64512 - 65534 range).
  2364. //
  2365. // Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with
  2366. // the exception of 7224, which is reserved in the us-east-1 region, and 9059,
  2367. // which is reserved in the eu-west-1 region.
  2368. //
  2369. // For more information about VPN customer gateways, see Adding a Hardware Virtual
  2370. // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  2371. // in the Amazon Virtual Private Cloud User Guide.
  2372. //
  2373. // You cannot create more than one customer gateway with the same VPN type,
  2374. // IP address, and BGP ASN parameter values. If you run an identical request
  2375. // more than one time, the first request creates the customer gateway, and subsequent
  2376. // requests return information about the existing customer gateway. The subsequent
  2377. // requests do not create new customer gateway resources.
  2378. //
  2379. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2380. // with awserr.Error's Code and Message methods to get detailed information about
  2381. // the error.
  2382. //
  2383. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2384. // API operation CreateCustomerGateway for usage and error information.
  2385. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway
  2386. func (c *EC2) CreateCustomerGateway(input *CreateCustomerGatewayInput) (*CreateCustomerGatewayOutput, error) {
  2387. req, out := c.CreateCustomerGatewayRequest(input)
  2388. return out, req.Send()
  2389. }
  2390. // CreateCustomerGatewayWithContext is the same as CreateCustomerGateway with the addition of
  2391. // the ability to pass a context and additional request options.
  2392. //
  2393. // See CreateCustomerGateway for details on how to use this API operation.
  2394. //
  2395. // The context must be non-nil and will be used for request cancellation. If
  2396. // the context is nil a panic will occur. In the future the SDK may create
  2397. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2398. // for more information on using Contexts.
  2399. func (c *EC2) CreateCustomerGatewayWithContext(ctx aws.Context, input *CreateCustomerGatewayInput, opts ...request.Option) (*CreateCustomerGatewayOutput, error) {
  2400. req, out := c.CreateCustomerGatewayRequest(input)
  2401. req.SetContext(ctx)
  2402. req.ApplyOptions(opts...)
  2403. return out, req.Send()
  2404. }
  2405. const opCreateDhcpOptions = "CreateDhcpOptions"
  2406. // CreateDhcpOptionsRequest generates a "aws/request.Request" representing the
  2407. // client's request for the CreateDhcpOptions operation. The "output" return
  2408. // value can be used to capture response data after the request's "Send" method
  2409. // is called.
  2410. //
  2411. // See CreateDhcpOptions for usage and error information.
  2412. //
  2413. // Creating a request object using this method should be used when you want to inject
  2414. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2415. // access properties on the request object before or after sending the request. If
  2416. // you just want the service response, call the CreateDhcpOptions method directly
  2417. // instead.
  2418. //
  2419. // Note: You must call the "Send" method on the returned request object in order
  2420. // to execute the request.
  2421. //
  2422. // // Example sending a request using the CreateDhcpOptionsRequest method.
  2423. // req, resp := client.CreateDhcpOptionsRequest(params)
  2424. //
  2425. // err := req.Send()
  2426. // if err == nil { // resp is now filled
  2427. // fmt.Println(resp)
  2428. // }
  2429. //
  2430. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions
  2431. func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *request.Request, output *CreateDhcpOptionsOutput) {
  2432. op := &request.Operation{
  2433. Name: opCreateDhcpOptions,
  2434. HTTPMethod: "POST",
  2435. HTTPPath: "/",
  2436. }
  2437. if input == nil {
  2438. input = &CreateDhcpOptionsInput{}
  2439. }
  2440. output = &CreateDhcpOptionsOutput{}
  2441. req = c.newRequest(op, input, output)
  2442. return
  2443. }
  2444. // CreateDhcpOptions API operation for Amazon Elastic Compute Cloud.
  2445. //
  2446. // Creates a set of DHCP options for your VPC. After creating the set, you must
  2447. // associate it with the VPC, causing all existing and new instances that you
  2448. // launch in the VPC to use this set of DHCP options. The following are the
  2449. // individual DHCP options you can specify. For more information about the options,
  2450. // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  2451. //
  2452. // * domain-name-servers - The IP addresses of up to four domain name servers,
  2453. // or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS.
  2454. // If specifying more than one domain name server, specify the IP addresses
  2455. // in a single parameter, separated by commas. If you want your instance
  2456. // to receive a custom DNS hostname as specified in domain-name, you must
  2457. // set domain-name-servers to a custom DNS server.
  2458. //
  2459. // * domain-name - If you're using AmazonProvidedDNS in us-east-1, specify
  2460. // ec2.internal. If you're using AmazonProvidedDNS in another region, specify
  2461. // region.compute.internal (for example, ap-northeast-1.compute.internal).
  2462. // Otherwise, specify a domain name (for example, MyCompany.com). This value
  2463. // is used to complete unqualified DNS hostnames. Important: Some Linux operating
  2464. // systems accept multiple domain names separated by spaces. However, Windows
  2465. // and other Linux operating systems treat the value as a single domain,
  2466. // which results in unexpected behavior. If your DHCP options set is associated
  2467. // with a VPC that has instances with multiple operating systems, specify
  2468. // only one domain name.
  2469. //
  2470. // * ntp-servers - The IP addresses of up to four Network Time Protocol (NTP)
  2471. // servers.
  2472. //
  2473. // * netbios-name-servers - The IP addresses of up to four NetBIOS name servers.
  2474. //
  2475. // * netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend
  2476. // that you specify 2 (broadcast and multicast are not currently supported).
  2477. // For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  2478. //
  2479. // Your VPC automatically starts out with a set of DHCP options that includes
  2480. // only a DNS server that we provide (AmazonProvidedDNS). If you create a set
  2481. // of options, and if your VPC has an Internet gateway, make sure to set the
  2482. // domain-name-servers option either to AmazonProvidedDNS or to a domain name
  2483. // server of your choice. For more information about DHCP options, see DHCP
  2484. // Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  2485. // in the Amazon Virtual Private Cloud User Guide.
  2486. //
  2487. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2488. // with awserr.Error's Code and Message methods to get detailed information about
  2489. // the error.
  2490. //
  2491. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2492. // API operation CreateDhcpOptions for usage and error information.
  2493. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions
  2494. func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) {
  2495. req, out := c.CreateDhcpOptionsRequest(input)
  2496. return out, req.Send()
  2497. }
  2498. // CreateDhcpOptionsWithContext is the same as CreateDhcpOptions with the addition of
  2499. // the ability to pass a context and additional request options.
  2500. //
  2501. // See CreateDhcpOptions for details on how to use this API operation.
  2502. //
  2503. // The context must be non-nil and will be used for request cancellation. If
  2504. // the context is nil a panic will occur. In the future the SDK may create
  2505. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2506. // for more information on using Contexts.
  2507. func (c *EC2) CreateDhcpOptionsWithContext(ctx aws.Context, input *CreateDhcpOptionsInput, opts ...request.Option) (*CreateDhcpOptionsOutput, error) {
  2508. req, out := c.CreateDhcpOptionsRequest(input)
  2509. req.SetContext(ctx)
  2510. req.ApplyOptions(opts...)
  2511. return out, req.Send()
  2512. }
  2513. const opCreateEgressOnlyInternetGateway = "CreateEgressOnlyInternetGateway"
  2514. // CreateEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the
  2515. // client's request for the CreateEgressOnlyInternetGateway operation. The "output" return
  2516. // value can be used to capture response data after the request's "Send" method
  2517. // is called.
  2518. //
  2519. // See CreateEgressOnlyInternetGateway for usage and error information.
  2520. //
  2521. // Creating a request object using this method should be used when you want to inject
  2522. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2523. // access properties on the request object before or after sending the request. If
  2524. // you just want the service response, call the CreateEgressOnlyInternetGateway method directly
  2525. // instead.
  2526. //
  2527. // Note: You must call the "Send" method on the returned request object in order
  2528. // to execute the request.
  2529. //
  2530. // // Example sending a request using the CreateEgressOnlyInternetGatewayRequest method.
  2531. // req, resp := client.CreateEgressOnlyInternetGatewayRequest(params)
  2532. //
  2533. // err := req.Send()
  2534. // if err == nil { // resp is now filled
  2535. // fmt.Println(resp)
  2536. // }
  2537. //
  2538. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway
  2539. func (c *EC2) CreateEgressOnlyInternetGatewayRequest(input *CreateEgressOnlyInternetGatewayInput) (req *request.Request, output *CreateEgressOnlyInternetGatewayOutput) {
  2540. op := &request.Operation{
  2541. Name: opCreateEgressOnlyInternetGateway,
  2542. HTTPMethod: "POST",
  2543. HTTPPath: "/",
  2544. }
  2545. if input == nil {
  2546. input = &CreateEgressOnlyInternetGatewayInput{}
  2547. }
  2548. output = &CreateEgressOnlyInternetGatewayOutput{}
  2549. req = c.newRequest(op, input, output)
  2550. return
  2551. }
  2552. // CreateEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud.
  2553. //
  2554. // [IPv6 only] Creates an egress-only Internet gateway for your VPC. An egress-only
  2555. // Internet gateway is used to enable outbound communication over IPv6 from
  2556. // instances in your VPC to the Internet, and prevents hosts outside of your
  2557. // VPC from initiating an IPv6 connection with your instance.
  2558. //
  2559. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2560. // with awserr.Error's Code and Message methods to get detailed information about
  2561. // the error.
  2562. //
  2563. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2564. // API operation CreateEgressOnlyInternetGateway for usage and error information.
  2565. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway
  2566. func (c *EC2) CreateEgressOnlyInternetGateway(input *CreateEgressOnlyInternetGatewayInput) (*CreateEgressOnlyInternetGatewayOutput, error) {
  2567. req, out := c.CreateEgressOnlyInternetGatewayRequest(input)
  2568. return out, req.Send()
  2569. }
  2570. // CreateEgressOnlyInternetGatewayWithContext is the same as CreateEgressOnlyInternetGateway with the addition of
  2571. // the ability to pass a context and additional request options.
  2572. //
  2573. // See CreateEgressOnlyInternetGateway for details on how to use this API operation.
  2574. //
  2575. // The context must be non-nil and will be used for request cancellation. If
  2576. // the context is nil a panic will occur. In the future the SDK may create
  2577. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2578. // for more information on using Contexts.
  2579. func (c *EC2) CreateEgressOnlyInternetGatewayWithContext(ctx aws.Context, input *CreateEgressOnlyInternetGatewayInput, opts ...request.Option) (*CreateEgressOnlyInternetGatewayOutput, error) {
  2580. req, out := c.CreateEgressOnlyInternetGatewayRequest(input)
  2581. req.SetContext(ctx)
  2582. req.ApplyOptions(opts...)
  2583. return out, req.Send()
  2584. }
  2585. const opCreateFlowLogs = "CreateFlowLogs"
  2586. // CreateFlowLogsRequest generates a "aws/request.Request" representing the
  2587. // client's request for the CreateFlowLogs operation. The "output" return
  2588. // value can be used to capture response data after the request's "Send" method
  2589. // is called.
  2590. //
  2591. // See CreateFlowLogs for usage and error information.
  2592. //
  2593. // Creating a request object using this method should be used when you want to inject
  2594. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2595. // access properties on the request object before or after sending the request. If
  2596. // you just want the service response, call the CreateFlowLogs method directly
  2597. // instead.
  2598. //
  2599. // Note: You must call the "Send" method on the returned request object in order
  2600. // to execute the request.
  2601. //
  2602. // // Example sending a request using the CreateFlowLogsRequest method.
  2603. // req, resp := client.CreateFlowLogsRequest(params)
  2604. //
  2605. // err := req.Send()
  2606. // if err == nil { // resp is now filled
  2607. // fmt.Println(resp)
  2608. // }
  2609. //
  2610. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs
  2611. func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Request, output *CreateFlowLogsOutput) {
  2612. op := &request.Operation{
  2613. Name: opCreateFlowLogs,
  2614. HTTPMethod: "POST",
  2615. HTTPPath: "/",
  2616. }
  2617. if input == nil {
  2618. input = &CreateFlowLogsInput{}
  2619. }
  2620. output = &CreateFlowLogsOutput{}
  2621. req = c.newRequest(op, input, output)
  2622. return
  2623. }
  2624. // CreateFlowLogs API operation for Amazon Elastic Compute Cloud.
  2625. //
  2626. // Creates one or more flow logs to capture IP traffic for a specific network
  2627. // interface, subnet, or VPC. Flow logs are delivered to a specified log group
  2628. // in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request,
  2629. // a log stream is created in CloudWatch Logs for each network interface in
  2630. // the subnet or VPC. Log streams can include information about accepted and
  2631. // rejected traffic to a network interface. You can view the data in your log
  2632. // streams using Amazon CloudWatch Logs.
  2633. //
  2634. // In your request, you must also specify an IAM role that has permission to
  2635. // publish logs to CloudWatch Logs.
  2636. //
  2637. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2638. // with awserr.Error's Code and Message methods to get detailed information about
  2639. // the error.
  2640. //
  2641. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2642. // API operation CreateFlowLogs for usage and error information.
  2643. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs
  2644. func (c *EC2) CreateFlowLogs(input *CreateFlowLogsInput) (*CreateFlowLogsOutput, error) {
  2645. req, out := c.CreateFlowLogsRequest(input)
  2646. return out, req.Send()
  2647. }
  2648. // CreateFlowLogsWithContext is the same as CreateFlowLogs with the addition of
  2649. // the ability to pass a context and additional request options.
  2650. //
  2651. // See CreateFlowLogs for details on how to use this API operation.
  2652. //
  2653. // The context must be non-nil and will be used for request cancellation. If
  2654. // the context is nil a panic will occur. In the future the SDK may create
  2655. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2656. // for more information on using Contexts.
  2657. func (c *EC2) CreateFlowLogsWithContext(ctx aws.Context, input *CreateFlowLogsInput, opts ...request.Option) (*CreateFlowLogsOutput, error) {
  2658. req, out := c.CreateFlowLogsRequest(input)
  2659. req.SetContext(ctx)
  2660. req.ApplyOptions(opts...)
  2661. return out, req.Send()
  2662. }
  2663. const opCreateFpgaImage = "CreateFpgaImage"
  2664. // CreateFpgaImageRequest generates a "aws/request.Request" representing the
  2665. // client's request for the CreateFpgaImage operation. The "output" return
  2666. // value can be used to capture response data after the request's "Send" method
  2667. // is called.
  2668. //
  2669. // See CreateFpgaImage for usage and error information.
  2670. //
  2671. // Creating a request object using this method should be used when you want to inject
  2672. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2673. // access properties on the request object before or after sending the request. If
  2674. // you just want the service response, call the CreateFpgaImage method directly
  2675. // instead.
  2676. //
  2677. // Note: You must call the "Send" method on the returned request object in order
  2678. // to execute the request.
  2679. //
  2680. // // Example sending a request using the CreateFpgaImageRequest method.
  2681. // req, resp := client.CreateFpgaImageRequest(params)
  2682. //
  2683. // err := req.Send()
  2684. // if err == nil { // resp is now filled
  2685. // fmt.Println(resp)
  2686. // }
  2687. //
  2688. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage
  2689. func (c *EC2) CreateFpgaImageRequest(input *CreateFpgaImageInput) (req *request.Request, output *CreateFpgaImageOutput) {
  2690. op := &request.Operation{
  2691. Name: opCreateFpgaImage,
  2692. HTTPMethod: "POST",
  2693. HTTPPath: "/",
  2694. }
  2695. if input == nil {
  2696. input = &CreateFpgaImageInput{}
  2697. }
  2698. output = &CreateFpgaImageOutput{}
  2699. req = c.newRequest(op, input, output)
  2700. return
  2701. }
  2702. // CreateFpgaImage API operation for Amazon Elastic Compute Cloud.
  2703. //
  2704. // Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
  2705. //
  2706. // The create operation is asynchronous. To verify that the AFI is ready for
  2707. // use, check the output logs.
  2708. //
  2709. // An AFI contains the FPGA bitstream that is ready to download to an FPGA.
  2710. // You can securely deploy an AFI on one or more FPGA-accelerated instances.
  2711. // For more information, see the AWS FPGA Hardware Development Kit (https://github.com/aws/aws-fpga/).
  2712. //
  2713. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2714. // with awserr.Error's Code and Message methods to get detailed information about
  2715. // the error.
  2716. //
  2717. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2718. // API operation CreateFpgaImage for usage and error information.
  2719. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage
  2720. func (c *EC2) CreateFpgaImage(input *CreateFpgaImageInput) (*CreateFpgaImageOutput, error) {
  2721. req, out := c.CreateFpgaImageRequest(input)
  2722. return out, req.Send()
  2723. }
  2724. // CreateFpgaImageWithContext is the same as CreateFpgaImage with the addition of
  2725. // the ability to pass a context and additional request options.
  2726. //
  2727. // See CreateFpgaImage for details on how to use this API operation.
  2728. //
  2729. // The context must be non-nil and will be used for request cancellation. If
  2730. // the context is nil a panic will occur. In the future the SDK may create
  2731. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2732. // for more information on using Contexts.
  2733. func (c *EC2) CreateFpgaImageWithContext(ctx aws.Context, input *CreateFpgaImageInput, opts ...request.Option) (*CreateFpgaImageOutput, error) {
  2734. req, out := c.CreateFpgaImageRequest(input)
  2735. req.SetContext(ctx)
  2736. req.ApplyOptions(opts...)
  2737. return out, req.Send()
  2738. }
  2739. const opCreateImage = "CreateImage"
  2740. // CreateImageRequest generates a "aws/request.Request" representing the
  2741. // client's request for the CreateImage operation. The "output" return
  2742. // value can be used to capture response data after the request's "Send" method
  2743. // is called.
  2744. //
  2745. // See CreateImage for usage and error information.
  2746. //
  2747. // Creating a request object using this method should be used when you want to inject
  2748. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2749. // access properties on the request object before or after sending the request. If
  2750. // you just want the service response, call the CreateImage method directly
  2751. // instead.
  2752. //
  2753. // Note: You must call the "Send" method on the returned request object in order
  2754. // to execute the request.
  2755. //
  2756. // // Example sending a request using the CreateImageRequest method.
  2757. // req, resp := client.CreateImageRequest(params)
  2758. //
  2759. // err := req.Send()
  2760. // if err == nil { // resp is now filled
  2761. // fmt.Println(resp)
  2762. // }
  2763. //
  2764. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage
  2765. func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, output *CreateImageOutput) {
  2766. op := &request.Operation{
  2767. Name: opCreateImage,
  2768. HTTPMethod: "POST",
  2769. HTTPPath: "/",
  2770. }
  2771. if input == nil {
  2772. input = &CreateImageInput{}
  2773. }
  2774. output = &CreateImageOutput{}
  2775. req = c.newRequest(op, input, output)
  2776. return
  2777. }
  2778. // CreateImage API operation for Amazon Elastic Compute Cloud.
  2779. //
  2780. // Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that
  2781. // is either running or stopped.
  2782. //
  2783. // If you customized your instance with instance store volumes or EBS volumes
  2784. // in addition to the root device volume, the new AMI contains block device
  2785. // mapping information for those volumes. When you launch an instance from this
  2786. // new AMI, the instance automatically launches with those additional volumes.
  2787. //
  2788. // For more information, see Creating Amazon EBS-Backed Linux AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html)
  2789. // in the Amazon Elastic Compute Cloud User Guide.
  2790. //
  2791. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2792. // with awserr.Error's Code and Message methods to get detailed information about
  2793. // the error.
  2794. //
  2795. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2796. // API operation CreateImage for usage and error information.
  2797. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage
  2798. func (c *EC2) CreateImage(input *CreateImageInput) (*CreateImageOutput, error) {
  2799. req, out := c.CreateImageRequest(input)
  2800. return out, req.Send()
  2801. }
  2802. // CreateImageWithContext is the same as CreateImage with the addition of
  2803. // the ability to pass a context and additional request options.
  2804. //
  2805. // See CreateImage for details on how to use this API operation.
  2806. //
  2807. // The context must be non-nil and will be used for request cancellation. If
  2808. // the context is nil a panic will occur. In the future the SDK may create
  2809. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2810. // for more information on using Contexts.
  2811. func (c *EC2) CreateImageWithContext(ctx aws.Context, input *CreateImageInput, opts ...request.Option) (*CreateImageOutput, error) {
  2812. req, out := c.CreateImageRequest(input)
  2813. req.SetContext(ctx)
  2814. req.ApplyOptions(opts...)
  2815. return out, req.Send()
  2816. }
  2817. const opCreateInstanceExportTask = "CreateInstanceExportTask"
  2818. // CreateInstanceExportTaskRequest generates a "aws/request.Request" representing the
  2819. // client's request for the CreateInstanceExportTask operation. The "output" return
  2820. // value can be used to capture response data after the request's "Send" method
  2821. // is called.
  2822. //
  2823. // See CreateInstanceExportTask for usage and error information.
  2824. //
  2825. // Creating a request object using this method should be used when you want to inject
  2826. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2827. // access properties on the request object before or after sending the request. If
  2828. // you just want the service response, call the CreateInstanceExportTask method directly
  2829. // instead.
  2830. //
  2831. // Note: You must call the "Send" method on the returned request object in order
  2832. // to execute the request.
  2833. //
  2834. // // Example sending a request using the CreateInstanceExportTaskRequest method.
  2835. // req, resp := client.CreateInstanceExportTaskRequest(params)
  2836. //
  2837. // err := req.Send()
  2838. // if err == nil { // resp is now filled
  2839. // fmt.Println(resp)
  2840. // }
  2841. //
  2842. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask
  2843. func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInput) (req *request.Request, output *CreateInstanceExportTaskOutput) {
  2844. op := &request.Operation{
  2845. Name: opCreateInstanceExportTask,
  2846. HTTPMethod: "POST",
  2847. HTTPPath: "/",
  2848. }
  2849. if input == nil {
  2850. input = &CreateInstanceExportTaskInput{}
  2851. }
  2852. output = &CreateInstanceExportTaskOutput{}
  2853. req = c.newRequest(op, input, output)
  2854. return
  2855. }
  2856. // CreateInstanceExportTask API operation for Amazon Elastic Compute Cloud.
  2857. //
  2858. // Exports a running or stopped instance to an S3 bucket.
  2859. //
  2860. // For information about the supported operating systems, image formats, and
  2861. // known limitations for the types of instances you can export, see Exporting
  2862. // an Instance as a VM Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html)
  2863. // in the VM Import/Export User Guide.
  2864. //
  2865. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2866. // with awserr.Error's Code and Message methods to get detailed information about
  2867. // the error.
  2868. //
  2869. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2870. // API operation CreateInstanceExportTask for usage and error information.
  2871. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask
  2872. func (c *EC2) CreateInstanceExportTask(input *CreateInstanceExportTaskInput) (*CreateInstanceExportTaskOutput, error) {
  2873. req, out := c.CreateInstanceExportTaskRequest(input)
  2874. return out, req.Send()
  2875. }
  2876. // CreateInstanceExportTaskWithContext is the same as CreateInstanceExportTask with the addition of
  2877. // the ability to pass a context and additional request options.
  2878. //
  2879. // See CreateInstanceExportTask for details on how to use this API operation.
  2880. //
  2881. // The context must be non-nil and will be used for request cancellation. If
  2882. // the context is nil a panic will occur. In the future the SDK may create
  2883. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2884. // for more information on using Contexts.
  2885. func (c *EC2) CreateInstanceExportTaskWithContext(ctx aws.Context, input *CreateInstanceExportTaskInput, opts ...request.Option) (*CreateInstanceExportTaskOutput, error) {
  2886. req, out := c.CreateInstanceExportTaskRequest(input)
  2887. req.SetContext(ctx)
  2888. req.ApplyOptions(opts...)
  2889. return out, req.Send()
  2890. }
  2891. const opCreateInternetGateway = "CreateInternetGateway"
  2892. // CreateInternetGatewayRequest generates a "aws/request.Request" representing the
  2893. // client's request for the CreateInternetGateway operation. The "output" return
  2894. // value can be used to capture response data after the request's "Send" method
  2895. // is called.
  2896. //
  2897. // See CreateInternetGateway for usage and error information.
  2898. //
  2899. // Creating a request object using this method should be used when you want to inject
  2900. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2901. // access properties on the request object before or after sending the request. If
  2902. // you just want the service response, call the CreateInternetGateway method directly
  2903. // instead.
  2904. //
  2905. // Note: You must call the "Send" method on the returned request object in order
  2906. // to execute the request.
  2907. //
  2908. // // Example sending a request using the CreateInternetGatewayRequest method.
  2909. // req, resp := client.CreateInternetGatewayRequest(params)
  2910. //
  2911. // err := req.Send()
  2912. // if err == nil { // resp is now filled
  2913. // fmt.Println(resp)
  2914. // }
  2915. //
  2916. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway
  2917. func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (req *request.Request, output *CreateInternetGatewayOutput) {
  2918. op := &request.Operation{
  2919. Name: opCreateInternetGateway,
  2920. HTTPMethod: "POST",
  2921. HTTPPath: "/",
  2922. }
  2923. if input == nil {
  2924. input = &CreateInternetGatewayInput{}
  2925. }
  2926. output = &CreateInternetGatewayOutput{}
  2927. req = c.newRequest(op, input, output)
  2928. return
  2929. }
  2930. // CreateInternetGateway API operation for Amazon Elastic Compute Cloud.
  2931. //
  2932. // Creates an Internet gateway for use with a VPC. After creating the Internet
  2933. // gateway, you attach it to a VPC using AttachInternetGateway.
  2934. //
  2935. // For more information about your VPC and Internet gateway, see the Amazon
  2936. // Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  2937. //
  2938. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2939. // with awserr.Error's Code and Message methods to get detailed information about
  2940. // the error.
  2941. //
  2942. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2943. // API operation CreateInternetGateway for usage and error information.
  2944. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway
  2945. func (c *EC2) CreateInternetGateway(input *CreateInternetGatewayInput) (*CreateInternetGatewayOutput, error) {
  2946. req, out := c.CreateInternetGatewayRequest(input)
  2947. return out, req.Send()
  2948. }
  2949. // CreateInternetGatewayWithContext is the same as CreateInternetGateway with the addition of
  2950. // the ability to pass a context and additional request options.
  2951. //
  2952. // See CreateInternetGateway for details on how to use this API operation.
  2953. //
  2954. // The context must be non-nil and will be used for request cancellation. If
  2955. // the context is nil a panic will occur. In the future the SDK may create
  2956. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2957. // for more information on using Contexts.
  2958. func (c *EC2) CreateInternetGatewayWithContext(ctx aws.Context, input *CreateInternetGatewayInput, opts ...request.Option) (*CreateInternetGatewayOutput, error) {
  2959. req, out := c.CreateInternetGatewayRequest(input)
  2960. req.SetContext(ctx)
  2961. req.ApplyOptions(opts...)
  2962. return out, req.Send()
  2963. }
  2964. const opCreateKeyPair = "CreateKeyPair"
  2965. // CreateKeyPairRequest generates a "aws/request.Request" representing the
  2966. // client's request for the CreateKeyPair operation. The "output" return
  2967. // value can be used to capture response data after the request's "Send" method
  2968. // is called.
  2969. //
  2970. // See CreateKeyPair for usage and error information.
  2971. //
  2972. // Creating a request object using this method should be used when you want to inject
  2973. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2974. // access properties on the request object before or after sending the request. If
  2975. // you just want the service response, call the CreateKeyPair method directly
  2976. // instead.
  2977. //
  2978. // Note: You must call the "Send" method on the returned request object in order
  2979. // to execute the request.
  2980. //
  2981. // // Example sending a request using the CreateKeyPairRequest method.
  2982. // req, resp := client.CreateKeyPairRequest(params)
  2983. //
  2984. // err := req.Send()
  2985. // if err == nil { // resp is now filled
  2986. // fmt.Println(resp)
  2987. // }
  2988. //
  2989. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair
  2990. func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput) {
  2991. op := &request.Operation{
  2992. Name: opCreateKeyPair,
  2993. HTTPMethod: "POST",
  2994. HTTPPath: "/",
  2995. }
  2996. if input == nil {
  2997. input = &CreateKeyPairInput{}
  2998. }
  2999. output = &CreateKeyPairOutput{}
  3000. req = c.newRequest(op, input, output)
  3001. return
  3002. }
  3003. // CreateKeyPair API operation for Amazon Elastic Compute Cloud.
  3004. //
  3005. // Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores
  3006. // the public key and displays the private key for you to save to a file. The
  3007. // private key is returned as an unencrypted PEM encoded PKCS#8 private key.
  3008. // If a key with the specified name already exists, Amazon EC2 returns an error.
  3009. //
  3010. // You can have up to five thousand key pairs per region.
  3011. //
  3012. // The key pair returned to you is available only in the region in which you
  3013. // create it. To create a key pair that is available in all regions, use ImportKeyPair.
  3014. //
  3015. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  3016. // in the Amazon Elastic Compute Cloud User Guide.
  3017. //
  3018. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3019. // with awserr.Error's Code and Message methods to get detailed information about
  3020. // the error.
  3021. //
  3022. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3023. // API operation CreateKeyPair for usage and error information.
  3024. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair
  3025. func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) {
  3026. req, out := c.CreateKeyPairRequest(input)
  3027. return out, req.Send()
  3028. }
  3029. // CreateKeyPairWithContext is the same as CreateKeyPair with the addition of
  3030. // the ability to pass a context and additional request options.
  3031. //
  3032. // See CreateKeyPair for details on how to use this API operation.
  3033. //
  3034. // The context must be non-nil and will be used for request cancellation. If
  3035. // the context is nil a panic will occur. In the future the SDK may create
  3036. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3037. // for more information on using Contexts.
  3038. func (c *EC2) CreateKeyPairWithContext(ctx aws.Context, input *CreateKeyPairInput, opts ...request.Option) (*CreateKeyPairOutput, error) {
  3039. req, out := c.CreateKeyPairRequest(input)
  3040. req.SetContext(ctx)
  3041. req.ApplyOptions(opts...)
  3042. return out, req.Send()
  3043. }
  3044. const opCreateNatGateway = "CreateNatGateway"
  3045. // CreateNatGatewayRequest generates a "aws/request.Request" representing the
  3046. // client's request for the CreateNatGateway operation. The "output" return
  3047. // value can be used to capture response data after the request's "Send" method
  3048. // is called.
  3049. //
  3050. // See CreateNatGateway for usage and error information.
  3051. //
  3052. // Creating a request object using this method should be used when you want to inject
  3053. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3054. // access properties on the request object before or after sending the request. If
  3055. // you just want the service response, call the CreateNatGateway method directly
  3056. // instead.
  3057. //
  3058. // Note: You must call the "Send" method on the returned request object in order
  3059. // to execute the request.
  3060. //
  3061. // // Example sending a request using the CreateNatGatewayRequest method.
  3062. // req, resp := client.CreateNatGatewayRequest(params)
  3063. //
  3064. // err := req.Send()
  3065. // if err == nil { // resp is now filled
  3066. // fmt.Println(resp)
  3067. // }
  3068. //
  3069. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway
  3070. func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *request.Request, output *CreateNatGatewayOutput) {
  3071. op := &request.Operation{
  3072. Name: opCreateNatGateway,
  3073. HTTPMethod: "POST",
  3074. HTTPPath: "/",
  3075. }
  3076. if input == nil {
  3077. input = &CreateNatGatewayInput{}
  3078. }
  3079. output = &CreateNatGatewayOutput{}
  3080. req = c.newRequest(op, input, output)
  3081. return
  3082. }
  3083. // CreateNatGateway API operation for Amazon Elastic Compute Cloud.
  3084. //
  3085. // Creates a NAT gateway in the specified subnet. A NAT gateway can be used
  3086. // to enable instances in a private subnet to connect to the Internet. This
  3087. // action creates a network interface in the specified subnet with a private
  3088. // IP address from the IP address range of the subnet. For more information,
  3089. // see NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html)
  3090. // in the Amazon Virtual Private Cloud User Guide.
  3091. //
  3092. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3093. // with awserr.Error's Code and Message methods to get detailed information about
  3094. // the error.
  3095. //
  3096. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3097. // API operation CreateNatGateway for usage and error information.
  3098. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway
  3099. func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) {
  3100. req, out := c.CreateNatGatewayRequest(input)
  3101. return out, req.Send()
  3102. }
  3103. // CreateNatGatewayWithContext is the same as CreateNatGateway with the addition of
  3104. // the ability to pass a context and additional request options.
  3105. //
  3106. // See CreateNatGateway for details on how to use this API operation.
  3107. //
  3108. // The context must be non-nil and will be used for request cancellation. If
  3109. // the context is nil a panic will occur. In the future the SDK may create
  3110. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3111. // for more information on using Contexts.
  3112. func (c *EC2) CreateNatGatewayWithContext(ctx aws.Context, input *CreateNatGatewayInput, opts ...request.Option) (*CreateNatGatewayOutput, error) {
  3113. req, out := c.CreateNatGatewayRequest(input)
  3114. req.SetContext(ctx)
  3115. req.ApplyOptions(opts...)
  3116. return out, req.Send()
  3117. }
  3118. const opCreateNetworkAcl = "CreateNetworkAcl"
  3119. // CreateNetworkAclRequest generates a "aws/request.Request" representing the
  3120. // client's request for the CreateNetworkAcl operation. The "output" return
  3121. // value can be used to capture response data after the request's "Send" method
  3122. // is called.
  3123. //
  3124. // See CreateNetworkAcl for usage and error information.
  3125. //
  3126. // Creating a request object using this method should be used when you want to inject
  3127. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3128. // access properties on the request object before or after sending the request. If
  3129. // you just want the service response, call the CreateNetworkAcl method directly
  3130. // instead.
  3131. //
  3132. // Note: You must call the "Send" method on the returned request object in order
  3133. // to execute the request.
  3134. //
  3135. // // Example sending a request using the CreateNetworkAclRequest method.
  3136. // req, resp := client.CreateNetworkAclRequest(params)
  3137. //
  3138. // err := req.Send()
  3139. // if err == nil { // resp is now filled
  3140. // fmt.Println(resp)
  3141. // }
  3142. //
  3143. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl
  3144. func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *request.Request, output *CreateNetworkAclOutput) {
  3145. op := &request.Operation{
  3146. Name: opCreateNetworkAcl,
  3147. HTTPMethod: "POST",
  3148. HTTPPath: "/",
  3149. }
  3150. if input == nil {
  3151. input = &CreateNetworkAclInput{}
  3152. }
  3153. output = &CreateNetworkAclOutput{}
  3154. req = c.newRequest(op, input, output)
  3155. return
  3156. }
  3157. // CreateNetworkAcl API operation for Amazon Elastic Compute Cloud.
  3158. //
  3159. // Creates a network ACL in a VPC. Network ACLs provide an optional layer of
  3160. // security (in addition to security groups) for the instances in your VPC.
  3161. //
  3162. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  3163. // in the Amazon Virtual Private Cloud User Guide.
  3164. //
  3165. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3166. // with awserr.Error's Code and Message methods to get detailed information about
  3167. // the error.
  3168. //
  3169. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3170. // API operation CreateNetworkAcl for usage and error information.
  3171. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl
  3172. func (c *EC2) CreateNetworkAcl(input *CreateNetworkAclInput) (*CreateNetworkAclOutput, error) {
  3173. req, out := c.CreateNetworkAclRequest(input)
  3174. return out, req.Send()
  3175. }
  3176. // CreateNetworkAclWithContext is the same as CreateNetworkAcl with the addition of
  3177. // the ability to pass a context and additional request options.
  3178. //
  3179. // See CreateNetworkAcl for details on how to use this API operation.
  3180. //
  3181. // The context must be non-nil and will be used for request cancellation. If
  3182. // the context is nil a panic will occur. In the future the SDK may create
  3183. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3184. // for more information on using Contexts.
  3185. func (c *EC2) CreateNetworkAclWithContext(ctx aws.Context, input *CreateNetworkAclInput, opts ...request.Option) (*CreateNetworkAclOutput, error) {
  3186. req, out := c.CreateNetworkAclRequest(input)
  3187. req.SetContext(ctx)
  3188. req.ApplyOptions(opts...)
  3189. return out, req.Send()
  3190. }
  3191. const opCreateNetworkAclEntry = "CreateNetworkAclEntry"
  3192. // CreateNetworkAclEntryRequest generates a "aws/request.Request" representing the
  3193. // client's request for the CreateNetworkAclEntry operation. The "output" return
  3194. // value can be used to capture response data after the request's "Send" method
  3195. // is called.
  3196. //
  3197. // See CreateNetworkAclEntry for usage and error information.
  3198. //
  3199. // Creating a request object using this method should be used when you want to inject
  3200. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3201. // access properties on the request object before or after sending the request. If
  3202. // you just want the service response, call the CreateNetworkAclEntry method directly
  3203. // instead.
  3204. //
  3205. // Note: You must call the "Send" method on the returned request object in order
  3206. // to execute the request.
  3207. //
  3208. // // Example sending a request using the CreateNetworkAclEntryRequest method.
  3209. // req, resp := client.CreateNetworkAclEntryRequest(params)
  3210. //
  3211. // err := req.Send()
  3212. // if err == nil { // resp is now filled
  3213. // fmt.Println(resp)
  3214. // }
  3215. //
  3216. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry
  3217. func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (req *request.Request, output *CreateNetworkAclEntryOutput) {
  3218. op := &request.Operation{
  3219. Name: opCreateNetworkAclEntry,
  3220. HTTPMethod: "POST",
  3221. HTTPPath: "/",
  3222. }
  3223. if input == nil {
  3224. input = &CreateNetworkAclEntryInput{}
  3225. }
  3226. output = &CreateNetworkAclEntryOutput{}
  3227. req = c.newRequest(op, input, output)
  3228. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3229. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3230. return
  3231. }
  3232. // CreateNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  3233. //
  3234. // Creates an entry (a rule) in a network ACL with the specified rule number.
  3235. // Each network ACL has a set of numbered ingress rules and a separate set of
  3236. // numbered egress rules. When determining whether a packet should be allowed
  3237. // in or out of a subnet associated with the ACL, we process the entries in
  3238. // the ACL according to the rule numbers, in ascending order. Each network ACL
  3239. // has a set of ingress rules and a separate set of egress rules.
  3240. //
  3241. // We recommend that you leave room between the rule numbers (for example, 100,
  3242. // 110, 120, ...), and not number them one right after the other (for example,
  3243. // 101, 102, 103, ...). This makes it easier to add a rule between existing
  3244. // ones without having to renumber the rules.
  3245. //
  3246. // After you add an entry, you can't modify it; you must either replace it,
  3247. // or create an entry and delete the old one.
  3248. //
  3249. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  3250. // in the Amazon Virtual Private Cloud User Guide.
  3251. //
  3252. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3253. // with awserr.Error's Code and Message methods to get detailed information about
  3254. // the error.
  3255. //
  3256. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3257. // API operation CreateNetworkAclEntry for usage and error information.
  3258. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry
  3259. func (c *EC2) CreateNetworkAclEntry(input *CreateNetworkAclEntryInput) (*CreateNetworkAclEntryOutput, error) {
  3260. req, out := c.CreateNetworkAclEntryRequest(input)
  3261. return out, req.Send()
  3262. }
  3263. // CreateNetworkAclEntryWithContext is the same as CreateNetworkAclEntry with the addition of
  3264. // the ability to pass a context and additional request options.
  3265. //
  3266. // See CreateNetworkAclEntry for details on how to use this API operation.
  3267. //
  3268. // The context must be non-nil and will be used for request cancellation. If
  3269. // the context is nil a panic will occur. In the future the SDK may create
  3270. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3271. // for more information on using Contexts.
  3272. func (c *EC2) CreateNetworkAclEntryWithContext(ctx aws.Context, input *CreateNetworkAclEntryInput, opts ...request.Option) (*CreateNetworkAclEntryOutput, error) {
  3273. req, out := c.CreateNetworkAclEntryRequest(input)
  3274. req.SetContext(ctx)
  3275. req.ApplyOptions(opts...)
  3276. return out, req.Send()
  3277. }
  3278. const opCreateNetworkInterface = "CreateNetworkInterface"
  3279. // CreateNetworkInterfaceRequest generates a "aws/request.Request" representing the
  3280. // client's request for the CreateNetworkInterface operation. The "output" return
  3281. // value can be used to capture response data after the request's "Send" method
  3282. // is called.
  3283. //
  3284. // See CreateNetworkInterface for usage and error information.
  3285. //
  3286. // Creating a request object using this method should be used when you want to inject
  3287. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3288. // access properties on the request object before or after sending the request. If
  3289. // you just want the service response, call the CreateNetworkInterface method directly
  3290. // instead.
  3291. //
  3292. // Note: You must call the "Send" method on the returned request object in order
  3293. // to execute the request.
  3294. //
  3295. // // Example sending a request using the CreateNetworkInterfaceRequest method.
  3296. // req, resp := client.CreateNetworkInterfaceRequest(params)
  3297. //
  3298. // err := req.Send()
  3299. // if err == nil { // resp is now filled
  3300. // fmt.Println(resp)
  3301. // }
  3302. //
  3303. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface
  3304. func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) (req *request.Request, output *CreateNetworkInterfaceOutput) {
  3305. op := &request.Operation{
  3306. Name: opCreateNetworkInterface,
  3307. HTTPMethod: "POST",
  3308. HTTPPath: "/",
  3309. }
  3310. if input == nil {
  3311. input = &CreateNetworkInterfaceInput{}
  3312. }
  3313. output = &CreateNetworkInterfaceOutput{}
  3314. req = c.newRequest(op, input, output)
  3315. return
  3316. }
  3317. // CreateNetworkInterface API operation for Amazon Elastic Compute Cloud.
  3318. //
  3319. // Creates a network interface in the specified subnet.
  3320. //
  3321. // For more information about network interfaces, see Elastic Network Interfaces
  3322. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the
  3323. // Amazon Virtual Private Cloud User Guide.
  3324. //
  3325. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3326. // with awserr.Error's Code and Message methods to get detailed information about
  3327. // the error.
  3328. //
  3329. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3330. // API operation CreateNetworkInterface for usage and error information.
  3331. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface
  3332. func (c *EC2) CreateNetworkInterface(input *CreateNetworkInterfaceInput) (*CreateNetworkInterfaceOutput, error) {
  3333. req, out := c.CreateNetworkInterfaceRequest(input)
  3334. return out, req.Send()
  3335. }
  3336. // CreateNetworkInterfaceWithContext is the same as CreateNetworkInterface with the addition of
  3337. // the ability to pass a context and additional request options.
  3338. //
  3339. // See CreateNetworkInterface for details on how to use this API operation.
  3340. //
  3341. // The context must be non-nil and will be used for request cancellation. If
  3342. // the context is nil a panic will occur. In the future the SDK may create
  3343. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3344. // for more information on using Contexts.
  3345. func (c *EC2) CreateNetworkInterfaceWithContext(ctx aws.Context, input *CreateNetworkInterfaceInput, opts ...request.Option) (*CreateNetworkInterfaceOutput, error) {
  3346. req, out := c.CreateNetworkInterfaceRequest(input)
  3347. req.SetContext(ctx)
  3348. req.ApplyOptions(opts...)
  3349. return out, req.Send()
  3350. }
  3351. const opCreatePlacementGroup = "CreatePlacementGroup"
  3352. // CreatePlacementGroupRequest generates a "aws/request.Request" representing the
  3353. // client's request for the CreatePlacementGroup operation. The "output" return
  3354. // value can be used to capture response data after the request's "Send" method
  3355. // is called.
  3356. //
  3357. // See CreatePlacementGroup for usage and error information.
  3358. //
  3359. // Creating a request object using this method should be used when you want to inject
  3360. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3361. // access properties on the request object before or after sending the request. If
  3362. // you just want the service response, call the CreatePlacementGroup method directly
  3363. // instead.
  3364. //
  3365. // Note: You must call the "Send" method on the returned request object in order
  3366. // to execute the request.
  3367. //
  3368. // // Example sending a request using the CreatePlacementGroupRequest method.
  3369. // req, resp := client.CreatePlacementGroupRequest(params)
  3370. //
  3371. // err := req.Send()
  3372. // if err == nil { // resp is now filled
  3373. // fmt.Println(resp)
  3374. // }
  3375. //
  3376. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup
  3377. func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req *request.Request, output *CreatePlacementGroupOutput) {
  3378. op := &request.Operation{
  3379. Name: opCreatePlacementGroup,
  3380. HTTPMethod: "POST",
  3381. HTTPPath: "/",
  3382. }
  3383. if input == nil {
  3384. input = &CreatePlacementGroupInput{}
  3385. }
  3386. output = &CreatePlacementGroupOutput{}
  3387. req = c.newRequest(op, input, output)
  3388. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3389. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3390. return
  3391. }
  3392. // CreatePlacementGroup API operation for Amazon Elastic Compute Cloud.
  3393. //
  3394. // Creates a placement group that you launch cluster instances into. You must
  3395. // give the group a name that's unique within the scope of your account.
  3396. //
  3397. // For more information about placement groups and cluster instances, see Cluster
  3398. // Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html)
  3399. // in the Amazon Elastic Compute Cloud User Guide.
  3400. //
  3401. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3402. // with awserr.Error's Code and Message methods to get detailed information about
  3403. // the error.
  3404. //
  3405. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3406. // API operation CreatePlacementGroup for usage and error information.
  3407. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup
  3408. func (c *EC2) CreatePlacementGroup(input *CreatePlacementGroupInput) (*CreatePlacementGroupOutput, error) {
  3409. req, out := c.CreatePlacementGroupRequest(input)
  3410. return out, req.Send()
  3411. }
  3412. // CreatePlacementGroupWithContext is the same as CreatePlacementGroup with the addition of
  3413. // the ability to pass a context and additional request options.
  3414. //
  3415. // See CreatePlacementGroup for details on how to use this API operation.
  3416. //
  3417. // The context must be non-nil and will be used for request cancellation. If
  3418. // the context is nil a panic will occur. In the future the SDK may create
  3419. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3420. // for more information on using Contexts.
  3421. func (c *EC2) CreatePlacementGroupWithContext(ctx aws.Context, input *CreatePlacementGroupInput, opts ...request.Option) (*CreatePlacementGroupOutput, error) {
  3422. req, out := c.CreatePlacementGroupRequest(input)
  3423. req.SetContext(ctx)
  3424. req.ApplyOptions(opts...)
  3425. return out, req.Send()
  3426. }
  3427. const opCreateReservedInstancesListing = "CreateReservedInstancesListing"
  3428. // CreateReservedInstancesListingRequest generates a "aws/request.Request" representing the
  3429. // client's request for the CreateReservedInstancesListing operation. The "output" return
  3430. // value can be used to capture response data after the request's "Send" method
  3431. // is called.
  3432. //
  3433. // See CreateReservedInstancesListing for usage and error information.
  3434. //
  3435. // Creating a request object using this method should be used when you want to inject
  3436. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3437. // access properties on the request object before or after sending the request. If
  3438. // you just want the service response, call the CreateReservedInstancesListing method directly
  3439. // instead.
  3440. //
  3441. // Note: You must call the "Send" method on the returned request object in order
  3442. // to execute the request.
  3443. //
  3444. // // Example sending a request using the CreateReservedInstancesListingRequest method.
  3445. // req, resp := client.CreateReservedInstancesListingRequest(params)
  3446. //
  3447. // err := req.Send()
  3448. // if err == nil { // resp is now filled
  3449. // fmt.Println(resp)
  3450. // }
  3451. //
  3452. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing
  3453. func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstancesListingInput) (req *request.Request, output *CreateReservedInstancesListingOutput) {
  3454. op := &request.Operation{
  3455. Name: opCreateReservedInstancesListing,
  3456. HTTPMethod: "POST",
  3457. HTTPPath: "/",
  3458. }
  3459. if input == nil {
  3460. input = &CreateReservedInstancesListingInput{}
  3461. }
  3462. output = &CreateReservedInstancesListingOutput{}
  3463. req = c.newRequest(op, input, output)
  3464. return
  3465. }
  3466. // CreateReservedInstancesListing API operation for Amazon Elastic Compute Cloud.
  3467. //
  3468. // Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in
  3469. // the Reserved Instance Marketplace. You can submit one Standard Reserved Instance
  3470. // listing at a time. To get a list of your Standard Reserved Instances, you
  3471. // can use the DescribeReservedInstances operation.
  3472. //
  3473. // Only Standard Reserved Instances with a capacity reservation can be sold
  3474. // in the Reserved Instance Marketplace. Convertible Reserved Instances and
  3475. // Standard Reserved Instances with a regional benefit cannot be sold.
  3476. //
  3477. // The Reserved Instance Marketplace matches sellers who want to resell Standard
  3478. // Reserved Instance capacity that they no longer need with buyers who want
  3479. // to purchase additional capacity. Reserved Instances bought and sold through
  3480. // the Reserved Instance Marketplace work like any other Reserved Instances.
  3481. //
  3482. // To sell your Standard Reserved Instances, you must first register as a seller
  3483. // in the Reserved Instance Marketplace. After completing the registration process,
  3484. // you can create a Reserved Instance Marketplace listing of some or all of
  3485. // your Standard Reserved Instances, and specify the upfront price to receive
  3486. // for them. Your Standard Reserved Instance listings then become available
  3487. // for purchase. To view the details of your Standard Reserved Instance listing,
  3488. // you can use the DescribeReservedInstancesListings operation.
  3489. //
  3490. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  3491. // in the Amazon Elastic Compute Cloud User Guide.
  3492. //
  3493. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3494. // with awserr.Error's Code and Message methods to get detailed information about
  3495. // the error.
  3496. //
  3497. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3498. // API operation CreateReservedInstancesListing for usage and error information.
  3499. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing
  3500. func (c *EC2) CreateReservedInstancesListing(input *CreateReservedInstancesListingInput) (*CreateReservedInstancesListingOutput, error) {
  3501. req, out := c.CreateReservedInstancesListingRequest(input)
  3502. return out, req.Send()
  3503. }
  3504. // CreateReservedInstancesListingWithContext is the same as CreateReservedInstancesListing with the addition of
  3505. // the ability to pass a context and additional request options.
  3506. //
  3507. // See CreateReservedInstancesListing for details on how to use this API operation.
  3508. //
  3509. // The context must be non-nil and will be used for request cancellation. If
  3510. // the context is nil a panic will occur. In the future the SDK may create
  3511. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3512. // for more information on using Contexts.
  3513. func (c *EC2) CreateReservedInstancesListingWithContext(ctx aws.Context, input *CreateReservedInstancesListingInput, opts ...request.Option) (*CreateReservedInstancesListingOutput, error) {
  3514. req, out := c.CreateReservedInstancesListingRequest(input)
  3515. req.SetContext(ctx)
  3516. req.ApplyOptions(opts...)
  3517. return out, req.Send()
  3518. }
  3519. const opCreateRoute = "CreateRoute"
  3520. // CreateRouteRequest generates a "aws/request.Request" representing the
  3521. // client's request for the CreateRoute operation. The "output" return
  3522. // value can be used to capture response data after the request's "Send" method
  3523. // is called.
  3524. //
  3525. // See CreateRoute for usage and error information.
  3526. //
  3527. // Creating a request object using this method should be used when you want to inject
  3528. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3529. // access properties on the request object before or after sending the request. If
  3530. // you just want the service response, call the CreateRoute method directly
  3531. // instead.
  3532. //
  3533. // Note: You must call the "Send" method on the returned request object in order
  3534. // to execute the request.
  3535. //
  3536. // // Example sending a request using the CreateRouteRequest method.
  3537. // req, resp := client.CreateRouteRequest(params)
  3538. //
  3539. // err := req.Send()
  3540. // if err == nil { // resp is now filled
  3541. // fmt.Println(resp)
  3542. // }
  3543. //
  3544. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute
  3545. func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, output *CreateRouteOutput) {
  3546. op := &request.Operation{
  3547. Name: opCreateRoute,
  3548. HTTPMethod: "POST",
  3549. HTTPPath: "/",
  3550. }
  3551. if input == nil {
  3552. input = &CreateRouteInput{}
  3553. }
  3554. output = &CreateRouteOutput{}
  3555. req = c.newRequest(op, input, output)
  3556. return
  3557. }
  3558. // CreateRoute API operation for Amazon Elastic Compute Cloud.
  3559. //
  3560. // Creates a route in a route table within a VPC.
  3561. //
  3562. // You must specify one of the following targets: Internet gateway or virtual
  3563. // private gateway, NAT instance, NAT gateway, VPC peering connection, network
  3564. // interface, or egress-only Internet gateway.
  3565. //
  3566. // When determining how to route traffic, we use the route with the most specific
  3567. // match. For example, traffic is destined for the IPv4 address 192.0.2.3, and
  3568. // the route table includes the following two IPv4 routes:
  3569. //
  3570. // * 192.0.2.0/24 (goes to some target A)
  3571. //
  3572. // * 192.0.2.0/28 (goes to some target B)
  3573. //
  3574. // Both routes apply to the traffic destined for 192.0.2.3. However, the second
  3575. // route in the list covers a smaller number of IP addresses and is therefore
  3576. // more specific, so we use that route to determine where to target the traffic.
  3577. //
  3578. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  3579. // in the Amazon Virtual Private Cloud User Guide.
  3580. //
  3581. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3582. // with awserr.Error's Code and Message methods to get detailed information about
  3583. // the error.
  3584. //
  3585. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3586. // API operation CreateRoute for usage and error information.
  3587. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute
  3588. func (c *EC2) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) {
  3589. req, out := c.CreateRouteRequest(input)
  3590. return out, req.Send()
  3591. }
  3592. // CreateRouteWithContext is the same as CreateRoute with the addition of
  3593. // the ability to pass a context and additional request options.
  3594. //
  3595. // See CreateRoute for details on how to use this API operation.
  3596. //
  3597. // The context must be non-nil and will be used for request cancellation. If
  3598. // the context is nil a panic will occur. In the future the SDK may create
  3599. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3600. // for more information on using Contexts.
  3601. func (c *EC2) CreateRouteWithContext(ctx aws.Context, input *CreateRouteInput, opts ...request.Option) (*CreateRouteOutput, error) {
  3602. req, out := c.CreateRouteRequest(input)
  3603. req.SetContext(ctx)
  3604. req.ApplyOptions(opts...)
  3605. return out, req.Send()
  3606. }
  3607. const opCreateRouteTable = "CreateRouteTable"
  3608. // CreateRouteTableRequest generates a "aws/request.Request" representing the
  3609. // client's request for the CreateRouteTable operation. The "output" return
  3610. // value can be used to capture response data after the request's "Send" method
  3611. // is called.
  3612. //
  3613. // See CreateRouteTable for usage and error information.
  3614. //
  3615. // Creating a request object using this method should be used when you want to inject
  3616. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3617. // access properties on the request object before or after sending the request. If
  3618. // you just want the service response, call the CreateRouteTable method directly
  3619. // instead.
  3620. //
  3621. // Note: You must call the "Send" method on the returned request object in order
  3622. // to execute the request.
  3623. //
  3624. // // Example sending a request using the CreateRouteTableRequest method.
  3625. // req, resp := client.CreateRouteTableRequest(params)
  3626. //
  3627. // err := req.Send()
  3628. // if err == nil { // resp is now filled
  3629. // fmt.Println(resp)
  3630. // }
  3631. //
  3632. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable
  3633. func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *request.Request, output *CreateRouteTableOutput) {
  3634. op := &request.Operation{
  3635. Name: opCreateRouteTable,
  3636. HTTPMethod: "POST",
  3637. HTTPPath: "/",
  3638. }
  3639. if input == nil {
  3640. input = &CreateRouteTableInput{}
  3641. }
  3642. output = &CreateRouteTableOutput{}
  3643. req = c.newRequest(op, input, output)
  3644. return
  3645. }
  3646. // CreateRouteTable API operation for Amazon Elastic Compute Cloud.
  3647. //
  3648. // Creates a route table for the specified VPC. After you create a route table,
  3649. // you can add routes and associate the table with a subnet.
  3650. //
  3651. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  3652. // in the Amazon Virtual Private Cloud User Guide.
  3653. //
  3654. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3655. // with awserr.Error's Code and Message methods to get detailed information about
  3656. // the error.
  3657. //
  3658. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3659. // API operation CreateRouteTable for usage and error information.
  3660. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable
  3661. func (c *EC2) CreateRouteTable(input *CreateRouteTableInput) (*CreateRouteTableOutput, error) {
  3662. req, out := c.CreateRouteTableRequest(input)
  3663. return out, req.Send()
  3664. }
  3665. // CreateRouteTableWithContext is the same as CreateRouteTable with the addition of
  3666. // the ability to pass a context and additional request options.
  3667. //
  3668. // See CreateRouteTable for details on how to use this API operation.
  3669. //
  3670. // The context must be non-nil and will be used for request cancellation. If
  3671. // the context is nil a panic will occur. In the future the SDK may create
  3672. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3673. // for more information on using Contexts.
  3674. func (c *EC2) CreateRouteTableWithContext(ctx aws.Context, input *CreateRouteTableInput, opts ...request.Option) (*CreateRouteTableOutput, error) {
  3675. req, out := c.CreateRouteTableRequest(input)
  3676. req.SetContext(ctx)
  3677. req.ApplyOptions(opts...)
  3678. return out, req.Send()
  3679. }
  3680. const opCreateSecurityGroup = "CreateSecurityGroup"
  3681. // CreateSecurityGroupRequest generates a "aws/request.Request" representing the
  3682. // client's request for the CreateSecurityGroup operation. The "output" return
  3683. // value can be used to capture response data after the request's "Send" method
  3684. // is called.
  3685. //
  3686. // See CreateSecurityGroup for usage and error information.
  3687. //
  3688. // Creating a request object using this method should be used when you want to inject
  3689. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3690. // access properties on the request object before or after sending the request. If
  3691. // you just want the service response, call the CreateSecurityGroup method directly
  3692. // instead.
  3693. //
  3694. // Note: You must call the "Send" method on the returned request object in order
  3695. // to execute the request.
  3696. //
  3697. // // Example sending a request using the CreateSecurityGroupRequest method.
  3698. // req, resp := client.CreateSecurityGroupRequest(params)
  3699. //
  3700. // err := req.Send()
  3701. // if err == nil { // resp is now filled
  3702. // fmt.Println(resp)
  3703. // }
  3704. //
  3705. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup
  3706. func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput) {
  3707. op := &request.Operation{
  3708. Name: opCreateSecurityGroup,
  3709. HTTPMethod: "POST",
  3710. HTTPPath: "/",
  3711. }
  3712. if input == nil {
  3713. input = &CreateSecurityGroupInput{}
  3714. }
  3715. output = &CreateSecurityGroupOutput{}
  3716. req = c.newRequest(op, input, output)
  3717. return
  3718. }
  3719. // CreateSecurityGroup API operation for Amazon Elastic Compute Cloud.
  3720. //
  3721. // Creates a security group.
  3722. //
  3723. // A security group is for use with instances either in the EC2-Classic platform
  3724. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  3725. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  3726. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  3727. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  3728. // in the Amazon Virtual Private Cloud User Guide.
  3729. //
  3730. // EC2-Classic: You can have up to 500 security groups.
  3731. //
  3732. // EC2-VPC: You can create up to 500 security groups per VPC.
  3733. //
  3734. // When you create a security group, you specify a friendly name of your choice.
  3735. // You can have a security group for use in EC2-Classic with the same name as
  3736. // a security group for use in a VPC. However, you can't have two security groups
  3737. // for use in EC2-Classic with the same name or two security groups for use
  3738. // in a VPC with the same name.
  3739. //
  3740. // You have a default security group for use in EC2-Classic and a default security
  3741. // group for use in your VPC. If you don't specify a security group when you
  3742. // launch an instance, the instance is launched into the appropriate default
  3743. // security group. A default security group includes a default rule that grants
  3744. // instances unrestricted network access to each other.
  3745. //
  3746. // You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress,
  3747. // AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
  3748. //
  3749. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3750. // with awserr.Error's Code and Message methods to get detailed information about
  3751. // the error.
  3752. //
  3753. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3754. // API operation CreateSecurityGroup for usage and error information.
  3755. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup
  3756. func (c *EC2) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error) {
  3757. req, out := c.CreateSecurityGroupRequest(input)
  3758. return out, req.Send()
  3759. }
  3760. // CreateSecurityGroupWithContext is the same as CreateSecurityGroup with the addition of
  3761. // the ability to pass a context and additional request options.
  3762. //
  3763. // See CreateSecurityGroup for details on how to use this API operation.
  3764. //
  3765. // The context must be non-nil and will be used for request cancellation. If
  3766. // the context is nil a panic will occur. In the future the SDK may create
  3767. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3768. // for more information on using Contexts.
  3769. func (c *EC2) CreateSecurityGroupWithContext(ctx aws.Context, input *CreateSecurityGroupInput, opts ...request.Option) (*CreateSecurityGroupOutput, error) {
  3770. req, out := c.CreateSecurityGroupRequest(input)
  3771. req.SetContext(ctx)
  3772. req.ApplyOptions(opts...)
  3773. return out, req.Send()
  3774. }
  3775. const opCreateSnapshot = "CreateSnapshot"
  3776. // CreateSnapshotRequest generates a "aws/request.Request" representing the
  3777. // client's request for the CreateSnapshot operation. The "output" return
  3778. // value can be used to capture response data after the request's "Send" method
  3779. // is called.
  3780. //
  3781. // See CreateSnapshot for usage and error information.
  3782. //
  3783. // Creating a request object using this method should be used when you want to inject
  3784. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3785. // access properties on the request object before or after sending the request. If
  3786. // you just want the service response, call the CreateSnapshot method directly
  3787. // instead.
  3788. //
  3789. // Note: You must call the "Send" method on the returned request object in order
  3790. // to execute the request.
  3791. //
  3792. // // Example sending a request using the CreateSnapshotRequest method.
  3793. // req, resp := client.CreateSnapshotRequest(params)
  3794. //
  3795. // err := req.Send()
  3796. // if err == nil { // resp is now filled
  3797. // fmt.Println(resp)
  3798. // }
  3799. //
  3800. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot
  3801. func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *Snapshot) {
  3802. op := &request.Operation{
  3803. Name: opCreateSnapshot,
  3804. HTTPMethod: "POST",
  3805. HTTPPath: "/",
  3806. }
  3807. if input == nil {
  3808. input = &CreateSnapshotInput{}
  3809. }
  3810. output = &Snapshot{}
  3811. req = c.newRequest(op, input, output)
  3812. return
  3813. }
  3814. // CreateSnapshot API operation for Amazon Elastic Compute Cloud.
  3815. //
  3816. // Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use
  3817. // snapshots for backups, to make copies of EBS volumes, and to save data before
  3818. // shutting down an instance.
  3819. //
  3820. // When a snapshot is created, any AWS Marketplace product codes that are associated
  3821. // with the source volume are propagated to the snapshot.
  3822. //
  3823. // You can take a snapshot of an attached volume that is in use. However, snapshots
  3824. // only capture data that has been written to your EBS volume at the time the
  3825. // snapshot command is issued; this may exclude any data that has been cached
  3826. // by any applications or the operating system. If you can pause any file systems
  3827. // on the volume long enough to take a snapshot, your snapshot should be complete.
  3828. // However, if you cannot pause all file writes to the volume, you should unmount
  3829. // the volume from within the instance, issue the snapshot command, and then
  3830. // remount the volume to ensure a consistent and complete snapshot. You may
  3831. // remount and use your volume while the snapshot status is pending.
  3832. //
  3833. // To create a snapshot for EBS volumes that serve as root devices, you should
  3834. // stop the instance before taking the snapshot.
  3835. //
  3836. // Snapshots that are taken from encrypted volumes are automatically encrypted.
  3837. // Volumes that are created from encrypted snapshots are also automatically
  3838. // encrypted. Your encrypted volumes and any associated snapshots always remain
  3839. // protected.
  3840. //
  3841. // For more information, see Amazon Elastic Block Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html)
  3842. // and Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  3843. // in the Amazon Elastic Compute Cloud User Guide.
  3844. //
  3845. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3846. // with awserr.Error's Code and Message methods to get detailed information about
  3847. // the error.
  3848. //
  3849. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3850. // API operation CreateSnapshot for usage and error information.
  3851. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot
  3852. func (c *EC2) CreateSnapshot(input *CreateSnapshotInput) (*Snapshot, error) {
  3853. req, out := c.CreateSnapshotRequest(input)
  3854. return out, req.Send()
  3855. }
  3856. // CreateSnapshotWithContext is the same as CreateSnapshot with the addition of
  3857. // the ability to pass a context and additional request options.
  3858. //
  3859. // See CreateSnapshot for details on how to use this API operation.
  3860. //
  3861. // The context must be non-nil and will be used for request cancellation. If
  3862. // the context is nil a panic will occur. In the future the SDK may create
  3863. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3864. // for more information on using Contexts.
  3865. func (c *EC2) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*Snapshot, error) {
  3866. req, out := c.CreateSnapshotRequest(input)
  3867. req.SetContext(ctx)
  3868. req.ApplyOptions(opts...)
  3869. return out, req.Send()
  3870. }
  3871. const opCreateSpotDatafeedSubscription = "CreateSpotDatafeedSubscription"
  3872. // CreateSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  3873. // client's request for the CreateSpotDatafeedSubscription operation. The "output" return
  3874. // value can be used to capture response data after the request's "Send" method
  3875. // is called.
  3876. //
  3877. // See CreateSpotDatafeedSubscription for usage and error information.
  3878. //
  3879. // Creating a request object using this method should be used when you want to inject
  3880. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3881. // access properties on the request object before or after sending the request. If
  3882. // you just want the service response, call the CreateSpotDatafeedSubscription method directly
  3883. // instead.
  3884. //
  3885. // Note: You must call the "Send" method on the returned request object in order
  3886. // to execute the request.
  3887. //
  3888. // // Example sending a request using the CreateSpotDatafeedSubscriptionRequest method.
  3889. // req, resp := client.CreateSpotDatafeedSubscriptionRequest(params)
  3890. //
  3891. // err := req.Send()
  3892. // if err == nil { // resp is now filled
  3893. // fmt.Println(resp)
  3894. // }
  3895. //
  3896. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription
  3897. func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSubscriptionInput) (req *request.Request, output *CreateSpotDatafeedSubscriptionOutput) {
  3898. op := &request.Operation{
  3899. Name: opCreateSpotDatafeedSubscription,
  3900. HTTPMethod: "POST",
  3901. HTTPPath: "/",
  3902. }
  3903. if input == nil {
  3904. input = &CreateSpotDatafeedSubscriptionInput{}
  3905. }
  3906. output = &CreateSpotDatafeedSubscriptionOutput{}
  3907. req = c.newRequest(op, input, output)
  3908. return
  3909. }
  3910. // CreateSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  3911. //
  3912. // Creates a data feed for Spot instances, enabling you to view Spot instance
  3913. // usage logs. You can create one data feed per AWS account. For more information,
  3914. // see Spot Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  3915. // in the Amazon Elastic Compute Cloud User Guide.
  3916. //
  3917. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3918. // with awserr.Error's Code and Message methods to get detailed information about
  3919. // the error.
  3920. //
  3921. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3922. // API operation CreateSpotDatafeedSubscription for usage and error information.
  3923. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription
  3924. func (c *EC2) CreateSpotDatafeedSubscription(input *CreateSpotDatafeedSubscriptionInput) (*CreateSpotDatafeedSubscriptionOutput, error) {
  3925. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  3926. return out, req.Send()
  3927. }
  3928. // CreateSpotDatafeedSubscriptionWithContext is the same as CreateSpotDatafeedSubscription with the addition of
  3929. // the ability to pass a context and additional request options.
  3930. //
  3931. // See CreateSpotDatafeedSubscription for details on how to use this API operation.
  3932. //
  3933. // The context must be non-nil and will be used for request cancellation. If
  3934. // the context is nil a panic will occur. In the future the SDK may create
  3935. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3936. // for more information on using Contexts.
  3937. func (c *EC2) CreateSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *CreateSpotDatafeedSubscriptionInput, opts ...request.Option) (*CreateSpotDatafeedSubscriptionOutput, error) {
  3938. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  3939. req.SetContext(ctx)
  3940. req.ApplyOptions(opts...)
  3941. return out, req.Send()
  3942. }
  3943. const opCreateSubnet = "CreateSubnet"
  3944. // CreateSubnetRequest generates a "aws/request.Request" representing the
  3945. // client's request for the CreateSubnet operation. The "output" return
  3946. // value can be used to capture response data after the request's "Send" method
  3947. // is called.
  3948. //
  3949. // See CreateSubnet for usage and error information.
  3950. //
  3951. // Creating a request object using this method should be used when you want to inject
  3952. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3953. // access properties on the request object before or after sending the request. If
  3954. // you just want the service response, call the CreateSubnet method directly
  3955. // instead.
  3956. //
  3957. // Note: You must call the "Send" method on the returned request object in order
  3958. // to execute the request.
  3959. //
  3960. // // Example sending a request using the CreateSubnetRequest method.
  3961. // req, resp := client.CreateSubnetRequest(params)
  3962. //
  3963. // err := req.Send()
  3964. // if err == nil { // resp is now filled
  3965. // fmt.Println(resp)
  3966. // }
  3967. //
  3968. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet
  3969. func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Request, output *CreateSubnetOutput) {
  3970. op := &request.Operation{
  3971. Name: opCreateSubnet,
  3972. HTTPMethod: "POST",
  3973. HTTPPath: "/",
  3974. }
  3975. if input == nil {
  3976. input = &CreateSubnetInput{}
  3977. }
  3978. output = &CreateSubnetOutput{}
  3979. req = c.newRequest(op, input, output)
  3980. return
  3981. }
  3982. // CreateSubnet API operation for Amazon Elastic Compute Cloud.
  3983. //
  3984. // Creates a subnet in an existing VPC.
  3985. //
  3986. // When you create each subnet, you provide the VPC ID and the CIDR block you
  3987. // want for the subnet. After you create a subnet, you can't change its CIDR
  3988. // block. The subnet's IPv4 CIDR block can be the same as the VPC's IPv4 CIDR
  3989. // block (assuming you want only a single subnet in the VPC), or a subset of
  3990. // the VPC's IPv4 CIDR block. If you create more than one subnet in a VPC, the
  3991. // subnets' CIDR blocks must not overlap. The smallest IPv4 subnet (and VPC)
  3992. // you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses
  3993. // a /16 netmask (65,536 IPv4 addresses).
  3994. //
  3995. // If you've associated an IPv6 CIDR block with your VPC, you can create a subnet
  3996. // with an IPv6 CIDR block that uses a /64 prefix length.
  3997. //
  3998. // AWS reserves both the first four and the last IPv4 address in each subnet's
  3999. // CIDR block. They're not available for use.
  4000. //
  4001. // If you add more than one subnet to a VPC, they're set up in a star topology
  4002. // with a logical router in the middle.
  4003. //
  4004. // If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP
  4005. // address doesn't change if you stop and restart the instance (unlike a similar
  4006. // instance launched outside a VPC, which gets a new IP address when restarted).
  4007. // It's therefore possible to have a subnet with no running instances (they're
  4008. // all stopped), but no remaining IP addresses available.
  4009. //
  4010. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  4011. // in the Amazon Virtual Private Cloud User Guide.
  4012. //
  4013. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4014. // with awserr.Error's Code and Message methods to get detailed information about
  4015. // the error.
  4016. //
  4017. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4018. // API operation CreateSubnet for usage and error information.
  4019. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet
  4020. func (c *EC2) CreateSubnet(input *CreateSubnetInput) (*CreateSubnetOutput, error) {
  4021. req, out := c.CreateSubnetRequest(input)
  4022. return out, req.Send()
  4023. }
  4024. // CreateSubnetWithContext is the same as CreateSubnet with the addition of
  4025. // the ability to pass a context and additional request options.
  4026. //
  4027. // See CreateSubnet for details on how to use this API operation.
  4028. //
  4029. // The context must be non-nil and will be used for request cancellation. If
  4030. // the context is nil a panic will occur. In the future the SDK may create
  4031. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4032. // for more information on using Contexts.
  4033. func (c *EC2) CreateSubnetWithContext(ctx aws.Context, input *CreateSubnetInput, opts ...request.Option) (*CreateSubnetOutput, error) {
  4034. req, out := c.CreateSubnetRequest(input)
  4035. req.SetContext(ctx)
  4036. req.ApplyOptions(opts...)
  4037. return out, req.Send()
  4038. }
  4039. const opCreateTags = "CreateTags"
  4040. // CreateTagsRequest generates a "aws/request.Request" representing the
  4041. // client's request for the CreateTags operation. The "output" return
  4042. // value can be used to capture response data after the request's "Send" method
  4043. // is called.
  4044. //
  4045. // See CreateTags for usage and error information.
  4046. //
  4047. // Creating a request object using this method should be used when you want to inject
  4048. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4049. // access properties on the request object before or after sending the request. If
  4050. // you just want the service response, call the CreateTags method directly
  4051. // instead.
  4052. //
  4053. // Note: You must call the "Send" method on the returned request object in order
  4054. // to execute the request.
  4055. //
  4056. // // Example sending a request using the CreateTagsRequest method.
  4057. // req, resp := client.CreateTagsRequest(params)
  4058. //
  4059. // err := req.Send()
  4060. // if err == nil { // resp is now filled
  4061. // fmt.Println(resp)
  4062. // }
  4063. //
  4064. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags
  4065. func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
  4066. op := &request.Operation{
  4067. Name: opCreateTags,
  4068. HTTPMethod: "POST",
  4069. HTTPPath: "/",
  4070. }
  4071. if input == nil {
  4072. input = &CreateTagsInput{}
  4073. }
  4074. output = &CreateTagsOutput{}
  4075. req = c.newRequest(op, input, output)
  4076. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  4077. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4078. return
  4079. }
  4080. // CreateTags API operation for Amazon Elastic Compute Cloud.
  4081. //
  4082. // Adds or overwrites one or more tags for the specified Amazon EC2 resource
  4083. // or resources. Each resource can have a maximum of 50 tags. Each tag consists
  4084. // of a key and optional value. Tag keys must be unique per resource.
  4085. //
  4086. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  4087. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  4088. // creating IAM policies that control users' access to resources based on tags,
  4089. // see Supported Resource-Level Permissions for Amazon EC2 API Actions (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html)
  4090. // in the Amazon Elastic Compute Cloud User Guide.
  4091. //
  4092. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4093. // with awserr.Error's Code and Message methods to get detailed information about
  4094. // the error.
  4095. //
  4096. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4097. // API operation CreateTags for usage and error information.
  4098. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags
  4099. func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
  4100. req, out := c.CreateTagsRequest(input)
  4101. return out, req.Send()
  4102. }
  4103. // CreateTagsWithContext is the same as CreateTags with the addition of
  4104. // the ability to pass a context and additional request options.
  4105. //
  4106. // See CreateTags for details on how to use this API operation.
  4107. //
  4108. // The context must be non-nil and will be used for request cancellation. If
  4109. // the context is nil a panic will occur. In the future the SDK may create
  4110. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4111. // for more information on using Contexts.
  4112. func (c *EC2) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) {
  4113. req, out := c.CreateTagsRequest(input)
  4114. req.SetContext(ctx)
  4115. req.ApplyOptions(opts...)
  4116. return out, req.Send()
  4117. }
  4118. const opCreateVolume = "CreateVolume"
  4119. // CreateVolumeRequest generates a "aws/request.Request" representing the
  4120. // client's request for the CreateVolume operation. The "output" return
  4121. // value can be used to capture response data after the request's "Send" method
  4122. // is called.
  4123. //
  4124. // See CreateVolume for usage and error information.
  4125. //
  4126. // Creating a request object using this method should be used when you want to inject
  4127. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4128. // access properties on the request object before or after sending the request. If
  4129. // you just want the service response, call the CreateVolume method directly
  4130. // instead.
  4131. //
  4132. // Note: You must call the "Send" method on the returned request object in order
  4133. // to execute the request.
  4134. //
  4135. // // Example sending a request using the CreateVolumeRequest method.
  4136. // req, resp := client.CreateVolumeRequest(params)
  4137. //
  4138. // err := req.Send()
  4139. // if err == nil { // resp is now filled
  4140. // fmt.Println(resp)
  4141. // }
  4142. //
  4143. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume
  4144. func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Request, output *Volume) {
  4145. op := &request.Operation{
  4146. Name: opCreateVolume,
  4147. HTTPMethod: "POST",
  4148. HTTPPath: "/",
  4149. }
  4150. if input == nil {
  4151. input = &CreateVolumeInput{}
  4152. }
  4153. output = &Volume{}
  4154. req = c.newRequest(op, input, output)
  4155. return
  4156. }
  4157. // CreateVolume API operation for Amazon Elastic Compute Cloud.
  4158. //
  4159. // Creates an EBS volume that can be attached to an instance in the same Availability
  4160. // Zone. The volume is created in the regional endpoint that you send the HTTP
  4161. // request to. For more information see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4162. //
  4163. // You can create a new empty volume or restore a volume from an EBS snapshot.
  4164. // Any AWS Marketplace product codes from the snapshot are propagated to the
  4165. // volume.
  4166. //
  4167. // You can create encrypted volumes with the Encrypted parameter. Encrypted
  4168. // volumes may only be attached to instances that support Amazon EBS encryption.
  4169. // Volumes that are created from encrypted snapshots are also automatically
  4170. // encrypted. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  4171. // in the Amazon Elastic Compute Cloud User Guide.
  4172. //
  4173. // You can tag your volumes during creation. For more information, see Tagging
  4174. // Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  4175. //
  4176. // For more information, see Creating an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html)
  4177. // in the Amazon Elastic Compute Cloud User Guide.
  4178. //
  4179. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4180. // with awserr.Error's Code and Message methods to get detailed information about
  4181. // the error.
  4182. //
  4183. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4184. // API operation CreateVolume for usage and error information.
  4185. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume
  4186. func (c *EC2) CreateVolume(input *CreateVolumeInput) (*Volume, error) {
  4187. req, out := c.CreateVolumeRequest(input)
  4188. return out, req.Send()
  4189. }
  4190. // CreateVolumeWithContext is the same as CreateVolume with the addition of
  4191. // the ability to pass a context and additional request options.
  4192. //
  4193. // See CreateVolume for details on how to use this API operation.
  4194. //
  4195. // The context must be non-nil and will be used for request cancellation. If
  4196. // the context is nil a panic will occur. In the future the SDK may create
  4197. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4198. // for more information on using Contexts.
  4199. func (c *EC2) CreateVolumeWithContext(ctx aws.Context, input *CreateVolumeInput, opts ...request.Option) (*Volume, error) {
  4200. req, out := c.CreateVolumeRequest(input)
  4201. req.SetContext(ctx)
  4202. req.ApplyOptions(opts...)
  4203. return out, req.Send()
  4204. }
  4205. const opCreateVpc = "CreateVpc"
  4206. // CreateVpcRequest generates a "aws/request.Request" representing the
  4207. // client's request for the CreateVpc operation. The "output" return
  4208. // value can be used to capture response data after the request's "Send" method
  4209. // is called.
  4210. //
  4211. // See CreateVpc for usage and error information.
  4212. //
  4213. // Creating a request object using this method should be used when you want to inject
  4214. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4215. // access properties on the request object before or after sending the request. If
  4216. // you just want the service response, call the CreateVpc method directly
  4217. // instead.
  4218. //
  4219. // Note: You must call the "Send" method on the returned request object in order
  4220. // to execute the request.
  4221. //
  4222. // // Example sending a request using the CreateVpcRequest method.
  4223. // req, resp := client.CreateVpcRequest(params)
  4224. //
  4225. // err := req.Send()
  4226. // if err == nil { // resp is now filled
  4227. // fmt.Println(resp)
  4228. // }
  4229. //
  4230. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc
  4231. func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, output *CreateVpcOutput) {
  4232. op := &request.Operation{
  4233. Name: opCreateVpc,
  4234. HTTPMethod: "POST",
  4235. HTTPPath: "/",
  4236. }
  4237. if input == nil {
  4238. input = &CreateVpcInput{}
  4239. }
  4240. output = &CreateVpcOutput{}
  4241. req = c.newRequest(op, input, output)
  4242. return
  4243. }
  4244. // CreateVpc API operation for Amazon Elastic Compute Cloud.
  4245. //
  4246. // Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can
  4247. // create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16
  4248. // netmask (65,536 IPv4 addresses). To help you decide how big to make your
  4249. // VPC, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  4250. // in the Amazon Virtual Private Cloud User Guide.
  4251. //
  4252. // You can optionally request an Amazon-provided IPv6 CIDR block for the VPC.
  4253. // The IPv6 CIDR block uses a /56 prefix length, and is allocated from Amazon's
  4254. // pool of IPv6 addresses. You cannot choose the IPv6 range for your VPC.
  4255. //
  4256. // By default, each instance you launch in the VPC has the default DHCP options,
  4257. // which includes only a default DNS server that we provide (AmazonProvidedDNS).
  4258. // For more information about DHCP options, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  4259. // in the Amazon Virtual Private Cloud User Guide.
  4260. //
  4261. // You can specify the instance tenancy value for the VPC when you create it.
  4262. // You can't change this value for the VPC after you create it. For more information,
  4263. // see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html)
  4264. // in the Amazon Elastic Compute Cloud User Guide.
  4265. //
  4266. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4267. // with awserr.Error's Code and Message methods to get detailed information about
  4268. // the error.
  4269. //
  4270. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4271. // API operation CreateVpc for usage and error information.
  4272. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc
  4273. func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) {
  4274. req, out := c.CreateVpcRequest(input)
  4275. return out, req.Send()
  4276. }
  4277. // CreateVpcWithContext is the same as CreateVpc with the addition of
  4278. // the ability to pass a context and additional request options.
  4279. //
  4280. // See CreateVpc for details on how to use this API operation.
  4281. //
  4282. // The context must be non-nil and will be used for request cancellation. If
  4283. // the context is nil a panic will occur. In the future the SDK may create
  4284. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4285. // for more information on using Contexts.
  4286. func (c *EC2) CreateVpcWithContext(ctx aws.Context, input *CreateVpcInput, opts ...request.Option) (*CreateVpcOutput, error) {
  4287. req, out := c.CreateVpcRequest(input)
  4288. req.SetContext(ctx)
  4289. req.ApplyOptions(opts...)
  4290. return out, req.Send()
  4291. }
  4292. const opCreateVpcEndpoint = "CreateVpcEndpoint"
  4293. // CreateVpcEndpointRequest generates a "aws/request.Request" representing the
  4294. // client's request for the CreateVpcEndpoint operation. The "output" return
  4295. // value can be used to capture response data after the request's "Send" method
  4296. // is called.
  4297. //
  4298. // See CreateVpcEndpoint for usage and error information.
  4299. //
  4300. // Creating a request object using this method should be used when you want to inject
  4301. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4302. // access properties on the request object before or after sending the request. If
  4303. // you just want the service response, call the CreateVpcEndpoint method directly
  4304. // instead.
  4305. //
  4306. // Note: You must call the "Send" method on the returned request object in order
  4307. // to execute the request.
  4308. //
  4309. // // Example sending a request using the CreateVpcEndpointRequest method.
  4310. // req, resp := client.CreateVpcEndpointRequest(params)
  4311. //
  4312. // err := req.Send()
  4313. // if err == nil { // resp is now filled
  4314. // fmt.Println(resp)
  4315. // }
  4316. //
  4317. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint
  4318. func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *request.Request, output *CreateVpcEndpointOutput) {
  4319. op := &request.Operation{
  4320. Name: opCreateVpcEndpoint,
  4321. HTTPMethod: "POST",
  4322. HTTPPath: "/",
  4323. }
  4324. if input == nil {
  4325. input = &CreateVpcEndpointInput{}
  4326. }
  4327. output = &CreateVpcEndpointOutput{}
  4328. req = c.newRequest(op, input, output)
  4329. return
  4330. }
  4331. // CreateVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  4332. //
  4333. // Creates a VPC endpoint for a specified AWS service. An endpoint enables you
  4334. // to create a private connection between your VPC and another AWS service in
  4335. // your account. You can specify an endpoint policy to attach to the endpoint
  4336. // that will control access to the service from your VPC. You can also specify
  4337. // the VPC route tables that use the endpoint.
  4338. //
  4339. // Use DescribeVpcEndpointServices to get a list of supported AWS services.
  4340. //
  4341. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4342. // with awserr.Error's Code and Message methods to get detailed information about
  4343. // the error.
  4344. //
  4345. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4346. // API operation CreateVpcEndpoint for usage and error information.
  4347. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint
  4348. func (c *EC2) CreateVpcEndpoint(input *CreateVpcEndpointInput) (*CreateVpcEndpointOutput, error) {
  4349. req, out := c.CreateVpcEndpointRequest(input)
  4350. return out, req.Send()
  4351. }
  4352. // CreateVpcEndpointWithContext is the same as CreateVpcEndpoint with the addition of
  4353. // the ability to pass a context and additional request options.
  4354. //
  4355. // See CreateVpcEndpoint for details on how to use this API operation.
  4356. //
  4357. // The context must be non-nil and will be used for request cancellation. If
  4358. // the context is nil a panic will occur. In the future the SDK may create
  4359. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4360. // for more information on using Contexts.
  4361. func (c *EC2) CreateVpcEndpointWithContext(ctx aws.Context, input *CreateVpcEndpointInput, opts ...request.Option) (*CreateVpcEndpointOutput, error) {
  4362. req, out := c.CreateVpcEndpointRequest(input)
  4363. req.SetContext(ctx)
  4364. req.ApplyOptions(opts...)
  4365. return out, req.Send()
  4366. }
  4367. const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection"
  4368. // CreateVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  4369. // client's request for the CreateVpcPeeringConnection operation. The "output" return
  4370. // value can be used to capture response data after the request's "Send" method
  4371. // is called.
  4372. //
  4373. // See CreateVpcPeeringConnection for usage and error information.
  4374. //
  4375. // Creating a request object using this method should be used when you want to inject
  4376. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4377. // access properties on the request object before or after sending the request. If
  4378. // you just want the service response, call the CreateVpcPeeringConnection method directly
  4379. // instead.
  4380. //
  4381. // Note: You must call the "Send" method on the returned request object in order
  4382. // to execute the request.
  4383. //
  4384. // // Example sending a request using the CreateVpcPeeringConnectionRequest method.
  4385. // req, resp := client.CreateVpcPeeringConnectionRequest(params)
  4386. //
  4387. // err := req.Send()
  4388. // if err == nil { // resp is now filled
  4389. // fmt.Println(resp)
  4390. // }
  4391. //
  4392. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection
  4393. func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectionInput) (req *request.Request, output *CreateVpcPeeringConnectionOutput) {
  4394. op := &request.Operation{
  4395. Name: opCreateVpcPeeringConnection,
  4396. HTTPMethod: "POST",
  4397. HTTPPath: "/",
  4398. }
  4399. if input == nil {
  4400. input = &CreateVpcPeeringConnectionInput{}
  4401. }
  4402. output = &CreateVpcPeeringConnectionOutput{}
  4403. req = c.newRequest(op, input, output)
  4404. return
  4405. }
  4406. // CreateVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  4407. //
  4408. // Requests a VPC peering connection between two VPCs: a requester VPC that
  4409. // you own and a peer VPC with which to create the connection. The peer VPC
  4410. // can belong to another AWS account. The requester VPC and peer VPC cannot
  4411. // have overlapping CIDR blocks.
  4412. //
  4413. // The owner of the peer VPC must accept the peering request to activate the
  4414. // peering connection. The VPC peering connection request expires after 7 days,
  4415. // after which it cannot be accepted or rejected.
  4416. //
  4417. // If you try to create a VPC peering connection between VPCs that have overlapping
  4418. // CIDR blocks, the VPC peering connection status goes to failed.
  4419. //
  4420. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4421. // with awserr.Error's Code and Message methods to get detailed information about
  4422. // the error.
  4423. //
  4424. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4425. // API operation CreateVpcPeeringConnection for usage and error information.
  4426. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection
  4427. func (c *EC2) CreateVpcPeeringConnection(input *CreateVpcPeeringConnectionInput) (*CreateVpcPeeringConnectionOutput, error) {
  4428. req, out := c.CreateVpcPeeringConnectionRequest(input)
  4429. return out, req.Send()
  4430. }
  4431. // CreateVpcPeeringConnectionWithContext is the same as CreateVpcPeeringConnection with the addition of
  4432. // the ability to pass a context and additional request options.
  4433. //
  4434. // See CreateVpcPeeringConnection for details on how to use this API operation.
  4435. //
  4436. // The context must be non-nil and will be used for request cancellation. If
  4437. // the context is nil a panic will occur. In the future the SDK may create
  4438. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4439. // for more information on using Contexts.
  4440. func (c *EC2) CreateVpcPeeringConnectionWithContext(ctx aws.Context, input *CreateVpcPeeringConnectionInput, opts ...request.Option) (*CreateVpcPeeringConnectionOutput, error) {
  4441. req, out := c.CreateVpcPeeringConnectionRequest(input)
  4442. req.SetContext(ctx)
  4443. req.ApplyOptions(opts...)
  4444. return out, req.Send()
  4445. }
  4446. const opCreateVpnConnection = "CreateVpnConnection"
  4447. // CreateVpnConnectionRequest generates a "aws/request.Request" representing the
  4448. // client's request for the CreateVpnConnection operation. The "output" return
  4449. // value can be used to capture response data after the request's "Send" method
  4450. // is called.
  4451. //
  4452. // See CreateVpnConnection for usage and error information.
  4453. //
  4454. // Creating a request object using this method should be used when you want to inject
  4455. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4456. // access properties on the request object before or after sending the request. If
  4457. // you just want the service response, call the CreateVpnConnection method directly
  4458. // instead.
  4459. //
  4460. // Note: You must call the "Send" method on the returned request object in order
  4461. // to execute the request.
  4462. //
  4463. // // Example sending a request using the CreateVpnConnectionRequest method.
  4464. // req, resp := client.CreateVpnConnectionRequest(params)
  4465. //
  4466. // err := req.Send()
  4467. // if err == nil { // resp is now filled
  4468. // fmt.Println(resp)
  4469. // }
  4470. //
  4471. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection
  4472. func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req *request.Request, output *CreateVpnConnectionOutput) {
  4473. op := &request.Operation{
  4474. Name: opCreateVpnConnection,
  4475. HTTPMethod: "POST",
  4476. HTTPPath: "/",
  4477. }
  4478. if input == nil {
  4479. input = &CreateVpnConnectionInput{}
  4480. }
  4481. output = &CreateVpnConnectionOutput{}
  4482. req = c.newRequest(op, input, output)
  4483. return
  4484. }
  4485. // CreateVpnConnection API operation for Amazon Elastic Compute Cloud.
  4486. //
  4487. // Creates a VPN connection between an existing virtual private gateway and
  4488. // a VPN customer gateway. The only supported connection type is ipsec.1.
  4489. //
  4490. // The response includes information that you need to give to your network administrator
  4491. // to configure your customer gateway.
  4492. //
  4493. // We strongly recommend that you use HTTPS when calling this operation because
  4494. // the response contains sensitive cryptographic information for configuring
  4495. // your customer gateway.
  4496. //
  4497. // If you decide to shut down your VPN connection for any reason and later create
  4498. // a new VPN connection, you must reconfigure your customer gateway with the
  4499. // new information returned from this call.
  4500. //
  4501. // This is an idempotent operation. If you perform the operation more than once,
  4502. // Amazon EC2 doesn't return an error.
  4503. //
  4504. // For more information about VPN connections, see Adding a Hardware Virtual
  4505. // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  4506. // in the Amazon Virtual Private Cloud User Guide.
  4507. //
  4508. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4509. // with awserr.Error's Code and Message methods to get detailed information about
  4510. // the error.
  4511. //
  4512. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4513. // API operation CreateVpnConnection for usage and error information.
  4514. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection
  4515. func (c *EC2) CreateVpnConnection(input *CreateVpnConnectionInput) (*CreateVpnConnectionOutput, error) {
  4516. req, out := c.CreateVpnConnectionRequest(input)
  4517. return out, req.Send()
  4518. }
  4519. // CreateVpnConnectionWithContext is the same as CreateVpnConnection with the addition of
  4520. // the ability to pass a context and additional request options.
  4521. //
  4522. // See CreateVpnConnection for details on how to use this API operation.
  4523. //
  4524. // The context must be non-nil and will be used for request cancellation. If
  4525. // the context is nil a panic will occur. In the future the SDK may create
  4526. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4527. // for more information on using Contexts.
  4528. func (c *EC2) CreateVpnConnectionWithContext(ctx aws.Context, input *CreateVpnConnectionInput, opts ...request.Option) (*CreateVpnConnectionOutput, error) {
  4529. req, out := c.CreateVpnConnectionRequest(input)
  4530. req.SetContext(ctx)
  4531. req.ApplyOptions(opts...)
  4532. return out, req.Send()
  4533. }
  4534. const opCreateVpnConnectionRoute = "CreateVpnConnectionRoute"
  4535. // CreateVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  4536. // client's request for the CreateVpnConnectionRoute operation. The "output" return
  4537. // value can be used to capture response data after the request's "Send" method
  4538. // is called.
  4539. //
  4540. // See CreateVpnConnectionRoute for usage and error information.
  4541. //
  4542. // Creating a request object using this method should be used when you want to inject
  4543. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4544. // access properties on the request object before or after sending the request. If
  4545. // you just want the service response, call the CreateVpnConnectionRoute method directly
  4546. // instead.
  4547. //
  4548. // Note: You must call the "Send" method on the returned request object in order
  4549. // to execute the request.
  4550. //
  4551. // // Example sending a request using the CreateVpnConnectionRouteRequest method.
  4552. // req, resp := client.CreateVpnConnectionRouteRequest(params)
  4553. //
  4554. // err := req.Send()
  4555. // if err == nil { // resp is now filled
  4556. // fmt.Println(resp)
  4557. // }
  4558. //
  4559. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute
  4560. func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInput) (req *request.Request, output *CreateVpnConnectionRouteOutput) {
  4561. op := &request.Operation{
  4562. Name: opCreateVpnConnectionRoute,
  4563. HTTPMethod: "POST",
  4564. HTTPPath: "/",
  4565. }
  4566. if input == nil {
  4567. input = &CreateVpnConnectionRouteInput{}
  4568. }
  4569. output = &CreateVpnConnectionRouteOutput{}
  4570. req = c.newRequest(op, input, output)
  4571. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  4572. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4573. return
  4574. }
  4575. // CreateVpnConnectionRoute API operation for Amazon Elastic Compute Cloud.
  4576. //
  4577. // Creates a static route associated with a VPN connection between an existing
  4578. // virtual private gateway and a VPN customer gateway. The static route allows
  4579. // traffic to be routed from the virtual private gateway to the VPN customer
  4580. // gateway.
  4581. //
  4582. // For more information about VPN connections, see Adding a Hardware Virtual
  4583. // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  4584. // in the Amazon Virtual Private Cloud User Guide.
  4585. //
  4586. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4587. // with awserr.Error's Code and Message methods to get detailed information about
  4588. // the error.
  4589. //
  4590. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4591. // API operation CreateVpnConnectionRoute for usage and error information.
  4592. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute
  4593. func (c *EC2) CreateVpnConnectionRoute(input *CreateVpnConnectionRouteInput) (*CreateVpnConnectionRouteOutput, error) {
  4594. req, out := c.CreateVpnConnectionRouteRequest(input)
  4595. return out, req.Send()
  4596. }
  4597. // CreateVpnConnectionRouteWithContext is the same as CreateVpnConnectionRoute with the addition of
  4598. // the ability to pass a context and additional request options.
  4599. //
  4600. // See CreateVpnConnectionRoute for details on how to use this API operation.
  4601. //
  4602. // The context must be non-nil and will be used for request cancellation. If
  4603. // the context is nil a panic will occur. In the future the SDK may create
  4604. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4605. // for more information on using Contexts.
  4606. func (c *EC2) CreateVpnConnectionRouteWithContext(ctx aws.Context, input *CreateVpnConnectionRouteInput, opts ...request.Option) (*CreateVpnConnectionRouteOutput, error) {
  4607. req, out := c.CreateVpnConnectionRouteRequest(input)
  4608. req.SetContext(ctx)
  4609. req.ApplyOptions(opts...)
  4610. return out, req.Send()
  4611. }
  4612. const opCreateVpnGateway = "CreateVpnGateway"
  4613. // CreateVpnGatewayRequest generates a "aws/request.Request" representing the
  4614. // client's request for the CreateVpnGateway operation. The "output" return
  4615. // value can be used to capture response data after the request's "Send" method
  4616. // is called.
  4617. //
  4618. // See CreateVpnGateway for usage and error information.
  4619. //
  4620. // Creating a request object using this method should be used when you want to inject
  4621. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4622. // access properties on the request object before or after sending the request. If
  4623. // you just want the service response, call the CreateVpnGateway method directly
  4624. // instead.
  4625. //
  4626. // Note: You must call the "Send" method on the returned request object in order
  4627. // to execute the request.
  4628. //
  4629. // // Example sending a request using the CreateVpnGatewayRequest method.
  4630. // req, resp := client.CreateVpnGatewayRequest(params)
  4631. //
  4632. // err := req.Send()
  4633. // if err == nil { // resp is now filled
  4634. // fmt.Println(resp)
  4635. // }
  4636. //
  4637. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway
  4638. func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *request.Request, output *CreateVpnGatewayOutput) {
  4639. op := &request.Operation{
  4640. Name: opCreateVpnGateway,
  4641. HTTPMethod: "POST",
  4642. HTTPPath: "/",
  4643. }
  4644. if input == nil {
  4645. input = &CreateVpnGatewayInput{}
  4646. }
  4647. output = &CreateVpnGatewayOutput{}
  4648. req = c.newRequest(op, input, output)
  4649. return
  4650. }
  4651. // CreateVpnGateway API operation for Amazon Elastic Compute Cloud.
  4652. //
  4653. // Creates a virtual private gateway. A virtual private gateway is the endpoint
  4654. // on the VPC side of your VPN connection. You can create a virtual private
  4655. // gateway before creating the VPC itself.
  4656. //
  4657. // For more information about virtual private gateways, see Adding a Hardware
  4658. // Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  4659. // in the Amazon Virtual Private Cloud User Guide.
  4660. //
  4661. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4662. // with awserr.Error's Code and Message methods to get detailed information about
  4663. // the error.
  4664. //
  4665. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4666. // API operation CreateVpnGateway for usage and error information.
  4667. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway
  4668. func (c *EC2) CreateVpnGateway(input *CreateVpnGatewayInput) (*CreateVpnGatewayOutput, error) {
  4669. req, out := c.CreateVpnGatewayRequest(input)
  4670. return out, req.Send()
  4671. }
  4672. // CreateVpnGatewayWithContext is the same as CreateVpnGateway with the addition of
  4673. // the ability to pass a context and additional request options.
  4674. //
  4675. // See CreateVpnGateway for details on how to use this API operation.
  4676. //
  4677. // The context must be non-nil and will be used for request cancellation. If
  4678. // the context is nil a panic will occur. In the future the SDK may create
  4679. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4680. // for more information on using Contexts.
  4681. func (c *EC2) CreateVpnGatewayWithContext(ctx aws.Context, input *CreateVpnGatewayInput, opts ...request.Option) (*CreateVpnGatewayOutput, error) {
  4682. req, out := c.CreateVpnGatewayRequest(input)
  4683. req.SetContext(ctx)
  4684. req.ApplyOptions(opts...)
  4685. return out, req.Send()
  4686. }
  4687. const opDeleteCustomerGateway = "DeleteCustomerGateway"
  4688. // DeleteCustomerGatewayRequest generates a "aws/request.Request" representing the
  4689. // client's request for the DeleteCustomerGateway operation. The "output" return
  4690. // value can be used to capture response data after the request's "Send" method
  4691. // is called.
  4692. //
  4693. // See DeleteCustomerGateway for usage and error information.
  4694. //
  4695. // Creating a request object using this method should be used when you want to inject
  4696. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4697. // access properties on the request object before or after sending the request. If
  4698. // you just want the service response, call the DeleteCustomerGateway method directly
  4699. // instead.
  4700. //
  4701. // Note: You must call the "Send" method on the returned request object in order
  4702. // to execute the request.
  4703. //
  4704. // // Example sending a request using the DeleteCustomerGatewayRequest method.
  4705. // req, resp := client.DeleteCustomerGatewayRequest(params)
  4706. //
  4707. // err := req.Send()
  4708. // if err == nil { // resp is now filled
  4709. // fmt.Println(resp)
  4710. // }
  4711. //
  4712. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway
  4713. func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (req *request.Request, output *DeleteCustomerGatewayOutput) {
  4714. op := &request.Operation{
  4715. Name: opDeleteCustomerGateway,
  4716. HTTPMethod: "POST",
  4717. HTTPPath: "/",
  4718. }
  4719. if input == nil {
  4720. input = &DeleteCustomerGatewayInput{}
  4721. }
  4722. output = &DeleteCustomerGatewayOutput{}
  4723. req = c.newRequest(op, input, output)
  4724. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  4725. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4726. return
  4727. }
  4728. // DeleteCustomerGateway API operation for Amazon Elastic Compute Cloud.
  4729. //
  4730. // Deletes the specified customer gateway. You must delete the VPN connection
  4731. // before you can delete the customer gateway.
  4732. //
  4733. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4734. // with awserr.Error's Code and Message methods to get detailed information about
  4735. // the error.
  4736. //
  4737. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4738. // API operation DeleteCustomerGateway for usage and error information.
  4739. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway
  4740. func (c *EC2) DeleteCustomerGateway(input *DeleteCustomerGatewayInput) (*DeleteCustomerGatewayOutput, error) {
  4741. req, out := c.DeleteCustomerGatewayRequest(input)
  4742. return out, req.Send()
  4743. }
  4744. // DeleteCustomerGatewayWithContext is the same as DeleteCustomerGateway with the addition of
  4745. // the ability to pass a context and additional request options.
  4746. //
  4747. // See DeleteCustomerGateway for details on how to use this API operation.
  4748. //
  4749. // The context must be non-nil and will be used for request cancellation. If
  4750. // the context is nil a panic will occur. In the future the SDK may create
  4751. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4752. // for more information on using Contexts.
  4753. func (c *EC2) DeleteCustomerGatewayWithContext(ctx aws.Context, input *DeleteCustomerGatewayInput, opts ...request.Option) (*DeleteCustomerGatewayOutput, error) {
  4754. req, out := c.DeleteCustomerGatewayRequest(input)
  4755. req.SetContext(ctx)
  4756. req.ApplyOptions(opts...)
  4757. return out, req.Send()
  4758. }
  4759. const opDeleteDhcpOptions = "DeleteDhcpOptions"
  4760. // DeleteDhcpOptionsRequest generates a "aws/request.Request" representing the
  4761. // client's request for the DeleteDhcpOptions operation. The "output" return
  4762. // value can be used to capture response data after the request's "Send" method
  4763. // is called.
  4764. //
  4765. // See DeleteDhcpOptions for usage and error information.
  4766. //
  4767. // Creating a request object using this method should be used when you want to inject
  4768. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4769. // access properties on the request object before or after sending the request. If
  4770. // you just want the service response, call the DeleteDhcpOptions method directly
  4771. // instead.
  4772. //
  4773. // Note: You must call the "Send" method on the returned request object in order
  4774. // to execute the request.
  4775. //
  4776. // // Example sending a request using the DeleteDhcpOptionsRequest method.
  4777. // req, resp := client.DeleteDhcpOptionsRequest(params)
  4778. //
  4779. // err := req.Send()
  4780. // if err == nil { // resp is now filled
  4781. // fmt.Println(resp)
  4782. // }
  4783. //
  4784. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions
  4785. func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *request.Request, output *DeleteDhcpOptionsOutput) {
  4786. op := &request.Operation{
  4787. Name: opDeleteDhcpOptions,
  4788. HTTPMethod: "POST",
  4789. HTTPPath: "/",
  4790. }
  4791. if input == nil {
  4792. input = &DeleteDhcpOptionsInput{}
  4793. }
  4794. output = &DeleteDhcpOptionsOutput{}
  4795. req = c.newRequest(op, input, output)
  4796. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  4797. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4798. return
  4799. }
  4800. // DeleteDhcpOptions API operation for Amazon Elastic Compute Cloud.
  4801. //
  4802. // Deletes the specified set of DHCP options. You must disassociate the set
  4803. // of DHCP options before you can delete it. You can disassociate the set of
  4804. // DHCP options by associating either a new set of options or the default set
  4805. // of options with the VPC.
  4806. //
  4807. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4808. // with awserr.Error's Code and Message methods to get detailed information about
  4809. // the error.
  4810. //
  4811. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4812. // API operation DeleteDhcpOptions for usage and error information.
  4813. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions
  4814. func (c *EC2) DeleteDhcpOptions(input *DeleteDhcpOptionsInput) (*DeleteDhcpOptionsOutput, error) {
  4815. req, out := c.DeleteDhcpOptionsRequest(input)
  4816. return out, req.Send()
  4817. }
  4818. // DeleteDhcpOptionsWithContext is the same as DeleteDhcpOptions with the addition of
  4819. // the ability to pass a context and additional request options.
  4820. //
  4821. // See DeleteDhcpOptions for details on how to use this API operation.
  4822. //
  4823. // The context must be non-nil and will be used for request cancellation. If
  4824. // the context is nil a panic will occur. In the future the SDK may create
  4825. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4826. // for more information on using Contexts.
  4827. func (c *EC2) DeleteDhcpOptionsWithContext(ctx aws.Context, input *DeleteDhcpOptionsInput, opts ...request.Option) (*DeleteDhcpOptionsOutput, error) {
  4828. req, out := c.DeleteDhcpOptionsRequest(input)
  4829. req.SetContext(ctx)
  4830. req.ApplyOptions(opts...)
  4831. return out, req.Send()
  4832. }
  4833. const opDeleteEgressOnlyInternetGateway = "DeleteEgressOnlyInternetGateway"
  4834. // DeleteEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the
  4835. // client's request for the DeleteEgressOnlyInternetGateway operation. The "output" return
  4836. // value can be used to capture response data after the request's "Send" method
  4837. // is called.
  4838. //
  4839. // See DeleteEgressOnlyInternetGateway for usage and error information.
  4840. //
  4841. // Creating a request object using this method should be used when you want to inject
  4842. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4843. // access properties on the request object before or after sending the request. If
  4844. // you just want the service response, call the DeleteEgressOnlyInternetGateway method directly
  4845. // instead.
  4846. //
  4847. // Note: You must call the "Send" method on the returned request object in order
  4848. // to execute the request.
  4849. //
  4850. // // Example sending a request using the DeleteEgressOnlyInternetGatewayRequest method.
  4851. // req, resp := client.DeleteEgressOnlyInternetGatewayRequest(params)
  4852. //
  4853. // err := req.Send()
  4854. // if err == nil { // resp is now filled
  4855. // fmt.Println(resp)
  4856. // }
  4857. //
  4858. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway
  4859. func (c *EC2) DeleteEgressOnlyInternetGatewayRequest(input *DeleteEgressOnlyInternetGatewayInput) (req *request.Request, output *DeleteEgressOnlyInternetGatewayOutput) {
  4860. op := &request.Operation{
  4861. Name: opDeleteEgressOnlyInternetGateway,
  4862. HTTPMethod: "POST",
  4863. HTTPPath: "/",
  4864. }
  4865. if input == nil {
  4866. input = &DeleteEgressOnlyInternetGatewayInput{}
  4867. }
  4868. output = &DeleteEgressOnlyInternetGatewayOutput{}
  4869. req = c.newRequest(op, input, output)
  4870. return
  4871. }
  4872. // DeleteEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud.
  4873. //
  4874. // Deletes an egress-only Internet gateway.
  4875. //
  4876. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4877. // with awserr.Error's Code and Message methods to get detailed information about
  4878. // the error.
  4879. //
  4880. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4881. // API operation DeleteEgressOnlyInternetGateway for usage and error information.
  4882. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway
  4883. func (c *EC2) DeleteEgressOnlyInternetGateway(input *DeleteEgressOnlyInternetGatewayInput) (*DeleteEgressOnlyInternetGatewayOutput, error) {
  4884. req, out := c.DeleteEgressOnlyInternetGatewayRequest(input)
  4885. return out, req.Send()
  4886. }
  4887. // DeleteEgressOnlyInternetGatewayWithContext is the same as DeleteEgressOnlyInternetGateway with the addition of
  4888. // the ability to pass a context and additional request options.
  4889. //
  4890. // See DeleteEgressOnlyInternetGateway for details on how to use this API operation.
  4891. //
  4892. // The context must be non-nil and will be used for request cancellation. If
  4893. // the context is nil a panic will occur. In the future the SDK may create
  4894. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4895. // for more information on using Contexts.
  4896. func (c *EC2) DeleteEgressOnlyInternetGatewayWithContext(ctx aws.Context, input *DeleteEgressOnlyInternetGatewayInput, opts ...request.Option) (*DeleteEgressOnlyInternetGatewayOutput, error) {
  4897. req, out := c.DeleteEgressOnlyInternetGatewayRequest(input)
  4898. req.SetContext(ctx)
  4899. req.ApplyOptions(opts...)
  4900. return out, req.Send()
  4901. }
  4902. const opDeleteFlowLogs = "DeleteFlowLogs"
  4903. // DeleteFlowLogsRequest generates a "aws/request.Request" representing the
  4904. // client's request for the DeleteFlowLogs operation. The "output" return
  4905. // value can be used to capture response data after the request's "Send" method
  4906. // is called.
  4907. //
  4908. // See DeleteFlowLogs for usage and error information.
  4909. //
  4910. // Creating a request object using this method should be used when you want to inject
  4911. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4912. // access properties on the request object before or after sending the request. If
  4913. // you just want the service response, call the DeleteFlowLogs method directly
  4914. // instead.
  4915. //
  4916. // Note: You must call the "Send" method on the returned request object in order
  4917. // to execute the request.
  4918. //
  4919. // // Example sending a request using the DeleteFlowLogsRequest method.
  4920. // req, resp := client.DeleteFlowLogsRequest(params)
  4921. //
  4922. // err := req.Send()
  4923. // if err == nil { // resp is now filled
  4924. // fmt.Println(resp)
  4925. // }
  4926. //
  4927. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs
  4928. func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Request, output *DeleteFlowLogsOutput) {
  4929. op := &request.Operation{
  4930. Name: opDeleteFlowLogs,
  4931. HTTPMethod: "POST",
  4932. HTTPPath: "/",
  4933. }
  4934. if input == nil {
  4935. input = &DeleteFlowLogsInput{}
  4936. }
  4937. output = &DeleteFlowLogsOutput{}
  4938. req = c.newRequest(op, input, output)
  4939. return
  4940. }
  4941. // DeleteFlowLogs API operation for Amazon Elastic Compute Cloud.
  4942. //
  4943. // Deletes one or more flow logs.
  4944. //
  4945. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4946. // with awserr.Error's Code and Message methods to get detailed information about
  4947. // the error.
  4948. //
  4949. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4950. // API operation DeleteFlowLogs for usage and error information.
  4951. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs
  4952. func (c *EC2) DeleteFlowLogs(input *DeleteFlowLogsInput) (*DeleteFlowLogsOutput, error) {
  4953. req, out := c.DeleteFlowLogsRequest(input)
  4954. return out, req.Send()
  4955. }
  4956. // DeleteFlowLogsWithContext is the same as DeleteFlowLogs with the addition of
  4957. // the ability to pass a context and additional request options.
  4958. //
  4959. // See DeleteFlowLogs for details on how to use this API operation.
  4960. //
  4961. // The context must be non-nil and will be used for request cancellation. If
  4962. // the context is nil a panic will occur. In the future the SDK may create
  4963. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4964. // for more information on using Contexts.
  4965. func (c *EC2) DeleteFlowLogsWithContext(ctx aws.Context, input *DeleteFlowLogsInput, opts ...request.Option) (*DeleteFlowLogsOutput, error) {
  4966. req, out := c.DeleteFlowLogsRequest(input)
  4967. req.SetContext(ctx)
  4968. req.ApplyOptions(opts...)
  4969. return out, req.Send()
  4970. }
  4971. const opDeleteInternetGateway = "DeleteInternetGateway"
  4972. // DeleteInternetGatewayRequest generates a "aws/request.Request" representing the
  4973. // client's request for the DeleteInternetGateway operation. The "output" return
  4974. // value can be used to capture response data after the request's "Send" method
  4975. // is called.
  4976. //
  4977. // See DeleteInternetGateway for usage and error information.
  4978. //
  4979. // Creating a request object using this method should be used when you want to inject
  4980. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4981. // access properties on the request object before or after sending the request. If
  4982. // you just want the service response, call the DeleteInternetGateway method directly
  4983. // instead.
  4984. //
  4985. // Note: You must call the "Send" method on the returned request object in order
  4986. // to execute the request.
  4987. //
  4988. // // Example sending a request using the DeleteInternetGatewayRequest method.
  4989. // req, resp := client.DeleteInternetGatewayRequest(params)
  4990. //
  4991. // err := req.Send()
  4992. // if err == nil { // resp is now filled
  4993. // fmt.Println(resp)
  4994. // }
  4995. //
  4996. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
  4997. func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (req *request.Request, output *DeleteInternetGatewayOutput) {
  4998. op := &request.Operation{
  4999. Name: opDeleteInternetGateway,
  5000. HTTPMethod: "POST",
  5001. HTTPPath: "/",
  5002. }
  5003. if input == nil {
  5004. input = &DeleteInternetGatewayInput{}
  5005. }
  5006. output = &DeleteInternetGatewayOutput{}
  5007. req = c.newRequest(op, input, output)
  5008. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5009. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5010. return
  5011. }
  5012. // DeleteInternetGateway API operation for Amazon Elastic Compute Cloud.
  5013. //
  5014. // Deletes the specified Internet gateway. You must detach the Internet gateway
  5015. // from the VPC before you can delete it.
  5016. //
  5017. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5018. // with awserr.Error's Code and Message methods to get detailed information about
  5019. // the error.
  5020. //
  5021. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5022. // API operation DeleteInternetGateway for usage and error information.
  5023. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
  5024. func (c *EC2) DeleteInternetGateway(input *DeleteInternetGatewayInput) (*DeleteInternetGatewayOutput, error) {
  5025. req, out := c.DeleteInternetGatewayRequest(input)
  5026. return out, req.Send()
  5027. }
  5028. // DeleteInternetGatewayWithContext is the same as DeleteInternetGateway with the addition of
  5029. // the ability to pass a context and additional request options.
  5030. //
  5031. // See DeleteInternetGateway for details on how to use this API operation.
  5032. //
  5033. // The context must be non-nil and will be used for request cancellation. If
  5034. // the context is nil a panic will occur. In the future the SDK may create
  5035. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5036. // for more information on using Contexts.
  5037. func (c *EC2) DeleteInternetGatewayWithContext(ctx aws.Context, input *DeleteInternetGatewayInput, opts ...request.Option) (*DeleteInternetGatewayOutput, error) {
  5038. req, out := c.DeleteInternetGatewayRequest(input)
  5039. req.SetContext(ctx)
  5040. req.ApplyOptions(opts...)
  5041. return out, req.Send()
  5042. }
  5043. const opDeleteKeyPair = "DeleteKeyPair"
  5044. // DeleteKeyPairRequest generates a "aws/request.Request" representing the
  5045. // client's request for the DeleteKeyPair operation. The "output" return
  5046. // value can be used to capture response data after the request's "Send" method
  5047. // is called.
  5048. //
  5049. // See DeleteKeyPair for usage and error information.
  5050. //
  5051. // Creating a request object using this method should be used when you want to inject
  5052. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5053. // access properties on the request object before or after sending the request. If
  5054. // you just want the service response, call the DeleteKeyPair method directly
  5055. // instead.
  5056. //
  5057. // Note: You must call the "Send" method on the returned request object in order
  5058. // to execute the request.
  5059. //
  5060. // // Example sending a request using the DeleteKeyPairRequest method.
  5061. // req, resp := client.DeleteKeyPairRequest(params)
  5062. //
  5063. // err := req.Send()
  5064. // if err == nil { // resp is now filled
  5065. // fmt.Println(resp)
  5066. // }
  5067. //
  5068. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair
  5069. func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput) {
  5070. op := &request.Operation{
  5071. Name: opDeleteKeyPair,
  5072. HTTPMethod: "POST",
  5073. HTTPPath: "/",
  5074. }
  5075. if input == nil {
  5076. input = &DeleteKeyPairInput{}
  5077. }
  5078. output = &DeleteKeyPairOutput{}
  5079. req = c.newRequest(op, input, output)
  5080. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5081. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5082. return
  5083. }
  5084. // DeleteKeyPair API operation for Amazon Elastic Compute Cloud.
  5085. //
  5086. // Deletes the specified key pair, by removing the public key from Amazon EC2.
  5087. //
  5088. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5089. // with awserr.Error's Code and Message methods to get detailed information about
  5090. // the error.
  5091. //
  5092. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5093. // API operation DeleteKeyPair for usage and error information.
  5094. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair
  5095. func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) {
  5096. req, out := c.DeleteKeyPairRequest(input)
  5097. return out, req.Send()
  5098. }
  5099. // DeleteKeyPairWithContext is the same as DeleteKeyPair with the addition of
  5100. // the ability to pass a context and additional request options.
  5101. //
  5102. // See DeleteKeyPair for details on how to use this API operation.
  5103. //
  5104. // The context must be non-nil and will be used for request cancellation. If
  5105. // the context is nil a panic will occur. In the future the SDK may create
  5106. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5107. // for more information on using Contexts.
  5108. func (c *EC2) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInput, opts ...request.Option) (*DeleteKeyPairOutput, error) {
  5109. req, out := c.DeleteKeyPairRequest(input)
  5110. req.SetContext(ctx)
  5111. req.ApplyOptions(opts...)
  5112. return out, req.Send()
  5113. }
  5114. const opDeleteNatGateway = "DeleteNatGateway"
  5115. // DeleteNatGatewayRequest generates a "aws/request.Request" representing the
  5116. // client's request for the DeleteNatGateway operation. The "output" return
  5117. // value can be used to capture response data after the request's "Send" method
  5118. // is called.
  5119. //
  5120. // See DeleteNatGateway for usage and error information.
  5121. //
  5122. // Creating a request object using this method should be used when you want to inject
  5123. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5124. // access properties on the request object before or after sending the request. If
  5125. // you just want the service response, call the DeleteNatGateway method directly
  5126. // instead.
  5127. //
  5128. // Note: You must call the "Send" method on the returned request object in order
  5129. // to execute the request.
  5130. //
  5131. // // Example sending a request using the DeleteNatGatewayRequest method.
  5132. // req, resp := client.DeleteNatGatewayRequest(params)
  5133. //
  5134. // err := req.Send()
  5135. // if err == nil { // resp is now filled
  5136. // fmt.Println(resp)
  5137. // }
  5138. //
  5139. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway
  5140. func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *request.Request, output *DeleteNatGatewayOutput) {
  5141. op := &request.Operation{
  5142. Name: opDeleteNatGateway,
  5143. HTTPMethod: "POST",
  5144. HTTPPath: "/",
  5145. }
  5146. if input == nil {
  5147. input = &DeleteNatGatewayInput{}
  5148. }
  5149. output = &DeleteNatGatewayOutput{}
  5150. req = c.newRequest(op, input, output)
  5151. return
  5152. }
  5153. // DeleteNatGateway API operation for Amazon Elastic Compute Cloud.
  5154. //
  5155. // Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its
  5156. // Elastic IP address, but does not release the address from your account. Deleting
  5157. // a NAT gateway does not delete any NAT gateway routes in your route tables.
  5158. //
  5159. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5160. // with awserr.Error's Code and Message methods to get detailed information about
  5161. // the error.
  5162. //
  5163. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5164. // API operation DeleteNatGateway for usage and error information.
  5165. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway
  5166. func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) {
  5167. req, out := c.DeleteNatGatewayRequest(input)
  5168. return out, req.Send()
  5169. }
  5170. // DeleteNatGatewayWithContext is the same as DeleteNatGateway with the addition of
  5171. // the ability to pass a context and additional request options.
  5172. //
  5173. // See DeleteNatGateway for details on how to use this API operation.
  5174. //
  5175. // The context must be non-nil and will be used for request cancellation. If
  5176. // the context is nil a panic will occur. In the future the SDK may create
  5177. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5178. // for more information on using Contexts.
  5179. func (c *EC2) DeleteNatGatewayWithContext(ctx aws.Context, input *DeleteNatGatewayInput, opts ...request.Option) (*DeleteNatGatewayOutput, error) {
  5180. req, out := c.DeleteNatGatewayRequest(input)
  5181. req.SetContext(ctx)
  5182. req.ApplyOptions(opts...)
  5183. return out, req.Send()
  5184. }
  5185. const opDeleteNetworkAcl = "DeleteNetworkAcl"
  5186. // DeleteNetworkAclRequest generates a "aws/request.Request" representing the
  5187. // client's request for the DeleteNetworkAcl operation. The "output" return
  5188. // value can be used to capture response data after the request's "Send" method
  5189. // is called.
  5190. //
  5191. // See DeleteNetworkAcl for usage and error information.
  5192. //
  5193. // Creating a request object using this method should be used when you want to inject
  5194. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5195. // access properties on the request object before or after sending the request. If
  5196. // you just want the service response, call the DeleteNetworkAcl method directly
  5197. // instead.
  5198. //
  5199. // Note: You must call the "Send" method on the returned request object in order
  5200. // to execute the request.
  5201. //
  5202. // // Example sending a request using the DeleteNetworkAclRequest method.
  5203. // req, resp := client.DeleteNetworkAclRequest(params)
  5204. //
  5205. // err := req.Send()
  5206. // if err == nil { // resp is now filled
  5207. // fmt.Println(resp)
  5208. // }
  5209. //
  5210. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl
  5211. func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *request.Request, output *DeleteNetworkAclOutput) {
  5212. op := &request.Operation{
  5213. Name: opDeleteNetworkAcl,
  5214. HTTPMethod: "POST",
  5215. HTTPPath: "/",
  5216. }
  5217. if input == nil {
  5218. input = &DeleteNetworkAclInput{}
  5219. }
  5220. output = &DeleteNetworkAclOutput{}
  5221. req = c.newRequest(op, input, output)
  5222. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5223. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5224. return
  5225. }
  5226. // DeleteNetworkAcl API operation for Amazon Elastic Compute Cloud.
  5227. //
  5228. // Deletes the specified network ACL. You can't delete the ACL if it's associated
  5229. // with any subnets. You can't delete the default network ACL.
  5230. //
  5231. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5232. // with awserr.Error's Code and Message methods to get detailed information about
  5233. // the error.
  5234. //
  5235. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5236. // API operation DeleteNetworkAcl for usage and error information.
  5237. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl
  5238. func (c *EC2) DeleteNetworkAcl(input *DeleteNetworkAclInput) (*DeleteNetworkAclOutput, error) {
  5239. req, out := c.DeleteNetworkAclRequest(input)
  5240. return out, req.Send()
  5241. }
  5242. // DeleteNetworkAclWithContext is the same as DeleteNetworkAcl with the addition of
  5243. // the ability to pass a context and additional request options.
  5244. //
  5245. // See DeleteNetworkAcl for details on how to use this API operation.
  5246. //
  5247. // The context must be non-nil and will be used for request cancellation. If
  5248. // the context is nil a panic will occur. In the future the SDK may create
  5249. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5250. // for more information on using Contexts.
  5251. func (c *EC2) DeleteNetworkAclWithContext(ctx aws.Context, input *DeleteNetworkAclInput, opts ...request.Option) (*DeleteNetworkAclOutput, error) {
  5252. req, out := c.DeleteNetworkAclRequest(input)
  5253. req.SetContext(ctx)
  5254. req.ApplyOptions(opts...)
  5255. return out, req.Send()
  5256. }
  5257. const opDeleteNetworkAclEntry = "DeleteNetworkAclEntry"
  5258. // DeleteNetworkAclEntryRequest generates a "aws/request.Request" representing the
  5259. // client's request for the DeleteNetworkAclEntry operation. The "output" return
  5260. // value can be used to capture response data after the request's "Send" method
  5261. // is called.
  5262. //
  5263. // See DeleteNetworkAclEntry for usage and error information.
  5264. //
  5265. // Creating a request object using this method should be used when you want to inject
  5266. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5267. // access properties on the request object before or after sending the request. If
  5268. // you just want the service response, call the DeleteNetworkAclEntry method directly
  5269. // instead.
  5270. //
  5271. // Note: You must call the "Send" method on the returned request object in order
  5272. // to execute the request.
  5273. //
  5274. // // Example sending a request using the DeleteNetworkAclEntryRequest method.
  5275. // req, resp := client.DeleteNetworkAclEntryRequest(params)
  5276. //
  5277. // err := req.Send()
  5278. // if err == nil { // resp is now filled
  5279. // fmt.Println(resp)
  5280. // }
  5281. //
  5282. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry
  5283. func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (req *request.Request, output *DeleteNetworkAclEntryOutput) {
  5284. op := &request.Operation{
  5285. Name: opDeleteNetworkAclEntry,
  5286. HTTPMethod: "POST",
  5287. HTTPPath: "/",
  5288. }
  5289. if input == nil {
  5290. input = &DeleteNetworkAclEntryInput{}
  5291. }
  5292. output = &DeleteNetworkAclEntryOutput{}
  5293. req = c.newRequest(op, input, output)
  5294. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5295. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5296. return
  5297. }
  5298. // DeleteNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  5299. //
  5300. // Deletes the specified ingress or egress entry (rule) from the specified network
  5301. // ACL.
  5302. //
  5303. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5304. // with awserr.Error's Code and Message methods to get detailed information about
  5305. // the error.
  5306. //
  5307. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5308. // API operation DeleteNetworkAclEntry for usage and error information.
  5309. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry
  5310. func (c *EC2) DeleteNetworkAclEntry(input *DeleteNetworkAclEntryInput) (*DeleteNetworkAclEntryOutput, error) {
  5311. req, out := c.DeleteNetworkAclEntryRequest(input)
  5312. return out, req.Send()
  5313. }
  5314. // DeleteNetworkAclEntryWithContext is the same as DeleteNetworkAclEntry with the addition of
  5315. // the ability to pass a context and additional request options.
  5316. //
  5317. // See DeleteNetworkAclEntry for details on how to use this API operation.
  5318. //
  5319. // The context must be non-nil and will be used for request cancellation. If
  5320. // the context is nil a panic will occur. In the future the SDK may create
  5321. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5322. // for more information on using Contexts.
  5323. func (c *EC2) DeleteNetworkAclEntryWithContext(ctx aws.Context, input *DeleteNetworkAclEntryInput, opts ...request.Option) (*DeleteNetworkAclEntryOutput, error) {
  5324. req, out := c.DeleteNetworkAclEntryRequest(input)
  5325. req.SetContext(ctx)
  5326. req.ApplyOptions(opts...)
  5327. return out, req.Send()
  5328. }
  5329. const opDeleteNetworkInterface = "DeleteNetworkInterface"
  5330. // DeleteNetworkInterfaceRequest generates a "aws/request.Request" representing the
  5331. // client's request for the DeleteNetworkInterface operation. The "output" return
  5332. // value can be used to capture response data after the request's "Send" method
  5333. // is called.
  5334. //
  5335. // See DeleteNetworkInterface for usage and error information.
  5336. //
  5337. // Creating a request object using this method should be used when you want to inject
  5338. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5339. // access properties on the request object before or after sending the request. If
  5340. // you just want the service response, call the DeleteNetworkInterface method directly
  5341. // instead.
  5342. //
  5343. // Note: You must call the "Send" method on the returned request object in order
  5344. // to execute the request.
  5345. //
  5346. // // Example sending a request using the DeleteNetworkInterfaceRequest method.
  5347. // req, resp := client.DeleteNetworkInterfaceRequest(params)
  5348. //
  5349. // err := req.Send()
  5350. // if err == nil { // resp is now filled
  5351. // fmt.Println(resp)
  5352. // }
  5353. //
  5354. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface
  5355. func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) (req *request.Request, output *DeleteNetworkInterfaceOutput) {
  5356. op := &request.Operation{
  5357. Name: opDeleteNetworkInterface,
  5358. HTTPMethod: "POST",
  5359. HTTPPath: "/",
  5360. }
  5361. if input == nil {
  5362. input = &DeleteNetworkInterfaceInput{}
  5363. }
  5364. output = &DeleteNetworkInterfaceOutput{}
  5365. req = c.newRequest(op, input, output)
  5366. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5367. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5368. return
  5369. }
  5370. // DeleteNetworkInterface API operation for Amazon Elastic Compute Cloud.
  5371. //
  5372. // Deletes the specified network interface. You must detach the network interface
  5373. // before you can delete it.
  5374. //
  5375. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5376. // with awserr.Error's Code and Message methods to get detailed information about
  5377. // the error.
  5378. //
  5379. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5380. // API operation DeleteNetworkInterface for usage and error information.
  5381. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface
  5382. func (c *EC2) DeleteNetworkInterface(input *DeleteNetworkInterfaceInput) (*DeleteNetworkInterfaceOutput, error) {
  5383. req, out := c.DeleteNetworkInterfaceRequest(input)
  5384. return out, req.Send()
  5385. }
  5386. // DeleteNetworkInterfaceWithContext is the same as DeleteNetworkInterface with the addition of
  5387. // the ability to pass a context and additional request options.
  5388. //
  5389. // See DeleteNetworkInterface for details on how to use this API operation.
  5390. //
  5391. // The context must be non-nil and will be used for request cancellation. If
  5392. // the context is nil a panic will occur. In the future the SDK may create
  5393. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5394. // for more information on using Contexts.
  5395. func (c *EC2) DeleteNetworkInterfaceWithContext(ctx aws.Context, input *DeleteNetworkInterfaceInput, opts ...request.Option) (*DeleteNetworkInterfaceOutput, error) {
  5396. req, out := c.DeleteNetworkInterfaceRequest(input)
  5397. req.SetContext(ctx)
  5398. req.ApplyOptions(opts...)
  5399. return out, req.Send()
  5400. }
  5401. const opDeletePlacementGroup = "DeletePlacementGroup"
  5402. // DeletePlacementGroupRequest generates a "aws/request.Request" representing the
  5403. // client's request for the DeletePlacementGroup operation. The "output" return
  5404. // value can be used to capture response data after the request's "Send" method
  5405. // is called.
  5406. //
  5407. // See DeletePlacementGroup for usage and error information.
  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 DeletePlacementGroup 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 DeletePlacementGroupRequest method.
  5419. // req, resp := client.DeletePlacementGroupRequest(params)
  5420. //
  5421. // err := req.Send()
  5422. // if err == nil { // resp is now filled
  5423. // fmt.Println(resp)
  5424. // }
  5425. //
  5426. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup
  5427. func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req *request.Request, output *DeletePlacementGroupOutput) {
  5428. op := &request.Operation{
  5429. Name: opDeletePlacementGroup,
  5430. HTTPMethod: "POST",
  5431. HTTPPath: "/",
  5432. }
  5433. if input == nil {
  5434. input = &DeletePlacementGroupInput{}
  5435. }
  5436. output = &DeletePlacementGroupOutput{}
  5437. req = c.newRequest(op, input, output)
  5438. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5439. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5440. return
  5441. }
  5442. // DeletePlacementGroup API operation for Amazon Elastic Compute Cloud.
  5443. //
  5444. // Deletes the specified placement group. You must terminate all instances in
  5445. // the placement group before you can delete the placement group. For more information
  5446. // about placement groups and cluster instances, see Cluster Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html)
  5447. // in the Amazon Elastic Compute Cloud User Guide.
  5448. //
  5449. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5450. // with awserr.Error's Code and Message methods to get detailed information about
  5451. // the error.
  5452. //
  5453. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5454. // API operation DeletePlacementGroup for usage and error information.
  5455. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup
  5456. func (c *EC2) DeletePlacementGroup(input *DeletePlacementGroupInput) (*DeletePlacementGroupOutput, error) {
  5457. req, out := c.DeletePlacementGroupRequest(input)
  5458. return out, req.Send()
  5459. }
  5460. // DeletePlacementGroupWithContext is the same as DeletePlacementGroup with the addition of
  5461. // the ability to pass a context and additional request options.
  5462. //
  5463. // See DeletePlacementGroup for details on how to use this API operation.
  5464. //
  5465. // The context must be non-nil and will be used for request cancellation. If
  5466. // the context is nil a panic will occur. In the future the SDK may create
  5467. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5468. // for more information on using Contexts.
  5469. func (c *EC2) DeletePlacementGroupWithContext(ctx aws.Context, input *DeletePlacementGroupInput, opts ...request.Option) (*DeletePlacementGroupOutput, error) {
  5470. req, out := c.DeletePlacementGroupRequest(input)
  5471. req.SetContext(ctx)
  5472. req.ApplyOptions(opts...)
  5473. return out, req.Send()
  5474. }
  5475. const opDeleteRoute = "DeleteRoute"
  5476. // DeleteRouteRequest generates a "aws/request.Request" representing the
  5477. // client's request for the DeleteRoute operation. The "output" return
  5478. // value can be used to capture response data after the request's "Send" method
  5479. // is called.
  5480. //
  5481. // See DeleteRoute for usage and error information.
  5482. //
  5483. // Creating a request object using this method should be used when you want to inject
  5484. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5485. // access properties on the request object before or after sending the request. If
  5486. // you just want the service response, call the DeleteRoute method directly
  5487. // instead.
  5488. //
  5489. // Note: You must call the "Send" method on the returned request object in order
  5490. // to execute the request.
  5491. //
  5492. // // Example sending a request using the DeleteRouteRequest method.
  5493. // req, resp := client.DeleteRouteRequest(params)
  5494. //
  5495. // err := req.Send()
  5496. // if err == nil { // resp is now filled
  5497. // fmt.Println(resp)
  5498. // }
  5499. //
  5500. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute
  5501. func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, output *DeleteRouteOutput) {
  5502. op := &request.Operation{
  5503. Name: opDeleteRoute,
  5504. HTTPMethod: "POST",
  5505. HTTPPath: "/",
  5506. }
  5507. if input == nil {
  5508. input = &DeleteRouteInput{}
  5509. }
  5510. output = &DeleteRouteOutput{}
  5511. req = c.newRequest(op, input, output)
  5512. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5513. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5514. return
  5515. }
  5516. // DeleteRoute API operation for Amazon Elastic Compute Cloud.
  5517. //
  5518. // Deletes the specified route from the specified route table.
  5519. //
  5520. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5521. // with awserr.Error's Code and Message methods to get detailed information about
  5522. // the error.
  5523. //
  5524. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5525. // API operation DeleteRoute for usage and error information.
  5526. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute
  5527. func (c *EC2) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) {
  5528. req, out := c.DeleteRouteRequest(input)
  5529. return out, req.Send()
  5530. }
  5531. // DeleteRouteWithContext is the same as DeleteRoute with the addition of
  5532. // the ability to pass a context and additional request options.
  5533. //
  5534. // See DeleteRoute for details on how to use this API operation.
  5535. //
  5536. // The context must be non-nil and will be used for request cancellation. If
  5537. // the context is nil a panic will occur. In the future the SDK may create
  5538. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5539. // for more information on using Contexts.
  5540. func (c *EC2) DeleteRouteWithContext(ctx aws.Context, input *DeleteRouteInput, opts ...request.Option) (*DeleteRouteOutput, error) {
  5541. req, out := c.DeleteRouteRequest(input)
  5542. req.SetContext(ctx)
  5543. req.ApplyOptions(opts...)
  5544. return out, req.Send()
  5545. }
  5546. const opDeleteRouteTable = "DeleteRouteTable"
  5547. // DeleteRouteTableRequest generates a "aws/request.Request" representing the
  5548. // client's request for the DeleteRouteTable operation. The "output" return
  5549. // value can be used to capture response data after the request's "Send" method
  5550. // is called.
  5551. //
  5552. // See DeleteRouteTable for usage and error information.
  5553. //
  5554. // Creating a request object using this method should be used when you want to inject
  5555. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5556. // access properties on the request object before or after sending the request. If
  5557. // you just want the service response, call the DeleteRouteTable method directly
  5558. // instead.
  5559. //
  5560. // Note: You must call the "Send" method on the returned request object in order
  5561. // to execute the request.
  5562. //
  5563. // // Example sending a request using the DeleteRouteTableRequest method.
  5564. // req, resp := client.DeleteRouteTableRequest(params)
  5565. //
  5566. // err := req.Send()
  5567. // if err == nil { // resp is now filled
  5568. // fmt.Println(resp)
  5569. // }
  5570. //
  5571. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable
  5572. func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *request.Request, output *DeleteRouteTableOutput) {
  5573. op := &request.Operation{
  5574. Name: opDeleteRouteTable,
  5575. HTTPMethod: "POST",
  5576. HTTPPath: "/",
  5577. }
  5578. if input == nil {
  5579. input = &DeleteRouteTableInput{}
  5580. }
  5581. output = &DeleteRouteTableOutput{}
  5582. req = c.newRequest(op, input, output)
  5583. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5584. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5585. return
  5586. }
  5587. // DeleteRouteTable API operation for Amazon Elastic Compute Cloud.
  5588. //
  5589. // Deletes the specified route table. You must disassociate the route table
  5590. // from any subnets before you can delete it. You can't delete the main route
  5591. // table.
  5592. //
  5593. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5594. // with awserr.Error's Code and Message methods to get detailed information about
  5595. // the error.
  5596. //
  5597. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5598. // API operation DeleteRouteTable for usage and error information.
  5599. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable
  5600. func (c *EC2) DeleteRouteTable(input *DeleteRouteTableInput) (*DeleteRouteTableOutput, error) {
  5601. req, out := c.DeleteRouteTableRequest(input)
  5602. return out, req.Send()
  5603. }
  5604. // DeleteRouteTableWithContext is the same as DeleteRouteTable with the addition of
  5605. // the ability to pass a context and additional request options.
  5606. //
  5607. // See DeleteRouteTable for details on how to use this API operation.
  5608. //
  5609. // The context must be non-nil and will be used for request cancellation. If
  5610. // the context is nil a panic will occur. In the future the SDK may create
  5611. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5612. // for more information on using Contexts.
  5613. func (c *EC2) DeleteRouteTableWithContext(ctx aws.Context, input *DeleteRouteTableInput, opts ...request.Option) (*DeleteRouteTableOutput, error) {
  5614. req, out := c.DeleteRouteTableRequest(input)
  5615. req.SetContext(ctx)
  5616. req.ApplyOptions(opts...)
  5617. return out, req.Send()
  5618. }
  5619. const opDeleteSecurityGroup = "DeleteSecurityGroup"
  5620. // DeleteSecurityGroupRequest generates a "aws/request.Request" representing the
  5621. // client's request for the DeleteSecurityGroup operation. The "output" return
  5622. // value can be used to capture response data after the request's "Send" method
  5623. // is called.
  5624. //
  5625. // See DeleteSecurityGroup for usage and error information.
  5626. //
  5627. // Creating a request object using this method should be used when you want to inject
  5628. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5629. // access properties on the request object before or after sending the request. If
  5630. // you just want the service response, call the DeleteSecurityGroup method directly
  5631. // instead.
  5632. //
  5633. // Note: You must call the "Send" method on the returned request object in order
  5634. // to execute the request.
  5635. //
  5636. // // Example sending a request using the DeleteSecurityGroupRequest method.
  5637. // req, resp := client.DeleteSecurityGroupRequest(params)
  5638. //
  5639. // err := req.Send()
  5640. // if err == nil { // resp is now filled
  5641. // fmt.Println(resp)
  5642. // }
  5643. //
  5644. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup
  5645. func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput) {
  5646. op := &request.Operation{
  5647. Name: opDeleteSecurityGroup,
  5648. HTTPMethod: "POST",
  5649. HTTPPath: "/",
  5650. }
  5651. if input == nil {
  5652. input = &DeleteSecurityGroupInput{}
  5653. }
  5654. output = &DeleteSecurityGroupOutput{}
  5655. req = c.newRequest(op, input, output)
  5656. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5657. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5658. return
  5659. }
  5660. // DeleteSecurityGroup API operation for Amazon Elastic Compute Cloud.
  5661. //
  5662. // Deletes a security group.
  5663. //
  5664. // If you attempt to delete a security group that is associated with an instance,
  5665. // or is referenced by another security group, the operation fails with InvalidGroup.InUse
  5666. // in EC2-Classic or DependencyViolation in EC2-VPC.
  5667. //
  5668. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5669. // with awserr.Error's Code and Message methods to get detailed information about
  5670. // the error.
  5671. //
  5672. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5673. // API operation DeleteSecurityGroup for usage and error information.
  5674. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup
  5675. func (c *EC2) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error) {
  5676. req, out := c.DeleteSecurityGroupRequest(input)
  5677. return out, req.Send()
  5678. }
  5679. // DeleteSecurityGroupWithContext is the same as DeleteSecurityGroup with the addition of
  5680. // the ability to pass a context and additional request options.
  5681. //
  5682. // See DeleteSecurityGroup for details on how to use this API operation.
  5683. //
  5684. // The context must be non-nil and will be used for request cancellation. If
  5685. // the context is nil a panic will occur. In the future the SDK may create
  5686. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5687. // for more information on using Contexts.
  5688. func (c *EC2) DeleteSecurityGroupWithContext(ctx aws.Context, input *DeleteSecurityGroupInput, opts ...request.Option) (*DeleteSecurityGroupOutput, error) {
  5689. req, out := c.DeleteSecurityGroupRequest(input)
  5690. req.SetContext(ctx)
  5691. req.ApplyOptions(opts...)
  5692. return out, req.Send()
  5693. }
  5694. const opDeleteSnapshot = "DeleteSnapshot"
  5695. // DeleteSnapshotRequest generates a "aws/request.Request" representing the
  5696. // client's request for the DeleteSnapshot operation. The "output" return
  5697. // value can be used to capture response data after the request's "Send" method
  5698. // is called.
  5699. //
  5700. // See DeleteSnapshot for usage and error information.
  5701. //
  5702. // Creating a request object using this method should be used when you want to inject
  5703. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5704. // access properties on the request object before or after sending the request. If
  5705. // you just want the service response, call the DeleteSnapshot method directly
  5706. // instead.
  5707. //
  5708. // Note: You must call the "Send" method on the returned request object in order
  5709. // to execute the request.
  5710. //
  5711. // // Example sending a request using the DeleteSnapshotRequest method.
  5712. // req, resp := client.DeleteSnapshotRequest(params)
  5713. //
  5714. // err := req.Send()
  5715. // if err == nil { // resp is now filled
  5716. // fmt.Println(resp)
  5717. // }
  5718. //
  5719. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot
  5720. func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) {
  5721. op := &request.Operation{
  5722. Name: opDeleteSnapshot,
  5723. HTTPMethod: "POST",
  5724. HTTPPath: "/",
  5725. }
  5726. if input == nil {
  5727. input = &DeleteSnapshotInput{}
  5728. }
  5729. output = &DeleteSnapshotOutput{}
  5730. req = c.newRequest(op, input, output)
  5731. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5732. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5733. return
  5734. }
  5735. // DeleteSnapshot API operation for Amazon Elastic Compute Cloud.
  5736. //
  5737. // Deletes the specified snapshot.
  5738. //
  5739. // When you make periodic snapshots of a volume, the snapshots are incremental,
  5740. // and only the blocks on the device that have changed since your last snapshot
  5741. // are saved in the new snapshot. When you delete a snapshot, only the data
  5742. // not needed for any other snapshot is removed. So regardless of which prior
  5743. // snapshots have been deleted, all active snapshots will have access to all
  5744. // the information needed to restore the volume.
  5745. //
  5746. // You cannot delete a snapshot of the root device of an EBS volume used by
  5747. // a registered AMI. You must first de-register the AMI before you can delete
  5748. // the snapshot.
  5749. //
  5750. // For more information, see Deleting an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html)
  5751. // in the Amazon Elastic Compute Cloud User Guide.
  5752. //
  5753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5754. // with awserr.Error's Code and Message methods to get detailed information about
  5755. // the error.
  5756. //
  5757. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5758. // API operation DeleteSnapshot for usage and error information.
  5759. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot
  5760. func (c *EC2) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) {
  5761. req, out := c.DeleteSnapshotRequest(input)
  5762. return out, req.Send()
  5763. }
  5764. // DeleteSnapshotWithContext is the same as DeleteSnapshot with the addition of
  5765. // the ability to pass a context and additional request options.
  5766. //
  5767. // See DeleteSnapshot for details on how to use this API operation.
  5768. //
  5769. // The context must be non-nil and will be used for request cancellation. If
  5770. // the context is nil a panic will occur. In the future the SDK may create
  5771. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5772. // for more information on using Contexts.
  5773. func (c *EC2) DeleteSnapshotWithContext(ctx aws.Context, input *DeleteSnapshotInput, opts ...request.Option) (*DeleteSnapshotOutput, error) {
  5774. req, out := c.DeleteSnapshotRequest(input)
  5775. req.SetContext(ctx)
  5776. req.ApplyOptions(opts...)
  5777. return out, req.Send()
  5778. }
  5779. const opDeleteSpotDatafeedSubscription = "DeleteSpotDatafeedSubscription"
  5780. // DeleteSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  5781. // client's request for the DeleteSpotDatafeedSubscription operation. The "output" return
  5782. // value can be used to capture response data after the request's "Send" method
  5783. // is called.
  5784. //
  5785. // See DeleteSpotDatafeedSubscription for usage and error information.
  5786. //
  5787. // Creating a request object using this method should be used when you want to inject
  5788. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5789. // access properties on the request object before or after sending the request. If
  5790. // you just want the service response, call the DeleteSpotDatafeedSubscription method directly
  5791. // instead.
  5792. //
  5793. // Note: You must call the "Send" method on the returned request object in order
  5794. // to execute the request.
  5795. //
  5796. // // Example sending a request using the DeleteSpotDatafeedSubscriptionRequest method.
  5797. // req, resp := client.DeleteSpotDatafeedSubscriptionRequest(params)
  5798. //
  5799. // err := req.Send()
  5800. // if err == nil { // resp is now filled
  5801. // fmt.Println(resp)
  5802. // }
  5803. //
  5804. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription
  5805. func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSubscriptionInput) (req *request.Request, output *DeleteSpotDatafeedSubscriptionOutput) {
  5806. op := &request.Operation{
  5807. Name: opDeleteSpotDatafeedSubscription,
  5808. HTTPMethod: "POST",
  5809. HTTPPath: "/",
  5810. }
  5811. if input == nil {
  5812. input = &DeleteSpotDatafeedSubscriptionInput{}
  5813. }
  5814. output = &DeleteSpotDatafeedSubscriptionOutput{}
  5815. req = c.newRequest(op, input, output)
  5816. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5817. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5818. return
  5819. }
  5820. // DeleteSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  5821. //
  5822. // Deletes the data feed for Spot instances.
  5823. //
  5824. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5825. // with awserr.Error's Code and Message methods to get detailed information about
  5826. // the error.
  5827. //
  5828. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5829. // API operation DeleteSpotDatafeedSubscription for usage and error information.
  5830. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription
  5831. func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  5832. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  5833. return out, req.Send()
  5834. }
  5835. // DeleteSpotDatafeedSubscriptionWithContext is the same as DeleteSpotDatafeedSubscription with the addition of
  5836. // the ability to pass a context and additional request options.
  5837. //
  5838. // See DeleteSpotDatafeedSubscription for details on how to use this API operation.
  5839. //
  5840. // The context must be non-nil and will be used for request cancellation. If
  5841. // the context is nil a panic will occur. In the future the SDK may create
  5842. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5843. // for more information on using Contexts.
  5844. func (c *EC2) DeleteSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *DeleteSpotDatafeedSubscriptionInput, opts ...request.Option) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  5845. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  5846. req.SetContext(ctx)
  5847. req.ApplyOptions(opts...)
  5848. return out, req.Send()
  5849. }
  5850. const opDeleteSubnet = "DeleteSubnet"
  5851. // DeleteSubnetRequest generates a "aws/request.Request" representing the
  5852. // client's request for the DeleteSubnet operation. The "output" return
  5853. // value can be used to capture response data after the request's "Send" method
  5854. // is called.
  5855. //
  5856. // See DeleteSubnet for usage and error information.
  5857. //
  5858. // Creating a request object using this method should be used when you want to inject
  5859. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5860. // access properties on the request object before or after sending the request. If
  5861. // you just want the service response, call the DeleteSubnet method directly
  5862. // instead.
  5863. //
  5864. // Note: You must call the "Send" method on the returned request object in order
  5865. // to execute the request.
  5866. //
  5867. // // Example sending a request using the DeleteSubnetRequest method.
  5868. // req, resp := client.DeleteSubnetRequest(params)
  5869. //
  5870. // err := req.Send()
  5871. // if err == nil { // resp is now filled
  5872. // fmt.Println(resp)
  5873. // }
  5874. //
  5875. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet
  5876. func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Request, output *DeleteSubnetOutput) {
  5877. op := &request.Operation{
  5878. Name: opDeleteSubnet,
  5879. HTTPMethod: "POST",
  5880. HTTPPath: "/",
  5881. }
  5882. if input == nil {
  5883. input = &DeleteSubnetInput{}
  5884. }
  5885. output = &DeleteSubnetOutput{}
  5886. req = c.newRequest(op, input, output)
  5887. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5888. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5889. return
  5890. }
  5891. // DeleteSubnet API operation for Amazon Elastic Compute Cloud.
  5892. //
  5893. // Deletes the specified subnet. You must terminate all running instances in
  5894. // the subnet before you can delete the subnet.
  5895. //
  5896. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5897. // with awserr.Error's Code and Message methods to get detailed information about
  5898. // the error.
  5899. //
  5900. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5901. // API operation DeleteSubnet for usage and error information.
  5902. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet
  5903. func (c *EC2) DeleteSubnet(input *DeleteSubnetInput) (*DeleteSubnetOutput, error) {
  5904. req, out := c.DeleteSubnetRequest(input)
  5905. return out, req.Send()
  5906. }
  5907. // DeleteSubnetWithContext is the same as DeleteSubnet with the addition of
  5908. // the ability to pass a context and additional request options.
  5909. //
  5910. // See DeleteSubnet for details on how to use this API operation.
  5911. //
  5912. // The context must be non-nil and will be used for request cancellation. If
  5913. // the context is nil a panic will occur. In the future the SDK may create
  5914. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5915. // for more information on using Contexts.
  5916. func (c *EC2) DeleteSubnetWithContext(ctx aws.Context, input *DeleteSubnetInput, opts ...request.Option) (*DeleteSubnetOutput, error) {
  5917. req, out := c.DeleteSubnetRequest(input)
  5918. req.SetContext(ctx)
  5919. req.ApplyOptions(opts...)
  5920. return out, req.Send()
  5921. }
  5922. const opDeleteTags = "DeleteTags"
  5923. // DeleteTagsRequest generates a "aws/request.Request" representing the
  5924. // client's request for the DeleteTags operation. The "output" return
  5925. // value can be used to capture response data after the request's "Send" method
  5926. // is called.
  5927. //
  5928. // See DeleteTags for usage and error information.
  5929. //
  5930. // Creating a request object using this method should be used when you want to inject
  5931. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5932. // access properties on the request object before or after sending the request. If
  5933. // you just want the service response, call the DeleteTags method directly
  5934. // instead.
  5935. //
  5936. // Note: You must call the "Send" method on the returned request object in order
  5937. // to execute the request.
  5938. //
  5939. // // Example sending a request using the DeleteTagsRequest method.
  5940. // req, resp := client.DeleteTagsRequest(params)
  5941. //
  5942. // err := req.Send()
  5943. // if err == nil { // resp is now filled
  5944. // fmt.Println(resp)
  5945. // }
  5946. //
  5947. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags
  5948. func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  5949. op := &request.Operation{
  5950. Name: opDeleteTags,
  5951. HTTPMethod: "POST",
  5952. HTTPPath: "/",
  5953. }
  5954. if input == nil {
  5955. input = &DeleteTagsInput{}
  5956. }
  5957. output = &DeleteTagsOutput{}
  5958. req = c.newRequest(op, input, output)
  5959. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5960. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5961. return
  5962. }
  5963. // DeleteTags API operation for Amazon Elastic Compute Cloud.
  5964. //
  5965. // Deletes the specified set of tags from the specified set of resources. This
  5966. // call is designed to follow a DescribeTags request.
  5967. //
  5968. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  5969. // in the Amazon Elastic Compute Cloud User Guide.
  5970. //
  5971. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5972. // with awserr.Error's Code and Message methods to get detailed information about
  5973. // the error.
  5974. //
  5975. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5976. // API operation DeleteTags for usage and error information.
  5977. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags
  5978. func (c *EC2) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  5979. req, out := c.DeleteTagsRequest(input)
  5980. return out, req.Send()
  5981. }
  5982. // DeleteTagsWithContext is the same as DeleteTags with the addition of
  5983. // the ability to pass a context and additional request options.
  5984. //
  5985. // See DeleteTags for details on how to use this API operation.
  5986. //
  5987. // The context must be non-nil and will be used for request cancellation. If
  5988. // the context is nil a panic will occur. In the future the SDK may create
  5989. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5990. // for more information on using Contexts.
  5991. func (c *EC2) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
  5992. req, out := c.DeleteTagsRequest(input)
  5993. req.SetContext(ctx)
  5994. req.ApplyOptions(opts...)
  5995. return out, req.Send()
  5996. }
  5997. const opDeleteVolume = "DeleteVolume"
  5998. // DeleteVolumeRequest generates a "aws/request.Request" representing the
  5999. // client's request for the DeleteVolume operation. The "output" return
  6000. // value can be used to capture response data after the request's "Send" method
  6001. // is called.
  6002. //
  6003. // See DeleteVolume for usage and error information.
  6004. //
  6005. // Creating a request object using this method should be used when you want to inject
  6006. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6007. // access properties on the request object before or after sending the request. If
  6008. // you just want the service response, call the DeleteVolume method directly
  6009. // instead.
  6010. //
  6011. // Note: You must call the "Send" method on the returned request object in order
  6012. // to execute the request.
  6013. //
  6014. // // Example sending a request using the DeleteVolumeRequest method.
  6015. // req, resp := client.DeleteVolumeRequest(params)
  6016. //
  6017. // err := req.Send()
  6018. // if err == nil { // resp is now filled
  6019. // fmt.Println(resp)
  6020. // }
  6021. //
  6022. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume
  6023. func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) {
  6024. op := &request.Operation{
  6025. Name: opDeleteVolume,
  6026. HTTPMethod: "POST",
  6027. HTTPPath: "/",
  6028. }
  6029. if input == nil {
  6030. input = &DeleteVolumeInput{}
  6031. }
  6032. output = &DeleteVolumeOutput{}
  6033. req = c.newRequest(op, input, output)
  6034. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6035. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6036. return
  6037. }
  6038. // DeleteVolume API operation for Amazon Elastic Compute Cloud.
  6039. //
  6040. // Deletes the specified EBS volume. The volume must be in the available state
  6041. // (not attached to an instance).
  6042. //
  6043. // The volume may remain in the deleting state for several minutes.
  6044. //
  6045. // For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html)
  6046. // in the Amazon Elastic Compute Cloud User Guide.
  6047. //
  6048. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6049. // with awserr.Error's Code and Message methods to get detailed information about
  6050. // the error.
  6051. //
  6052. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6053. // API operation DeleteVolume for usage and error information.
  6054. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume
  6055. func (c *EC2) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) {
  6056. req, out := c.DeleteVolumeRequest(input)
  6057. return out, req.Send()
  6058. }
  6059. // DeleteVolumeWithContext is the same as DeleteVolume with the addition of
  6060. // the ability to pass a context and additional request options.
  6061. //
  6062. // See DeleteVolume for details on how to use this API operation.
  6063. //
  6064. // The context must be non-nil and will be used for request cancellation. If
  6065. // the context is nil a panic will occur. In the future the SDK may create
  6066. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6067. // for more information on using Contexts.
  6068. func (c *EC2) DeleteVolumeWithContext(ctx aws.Context, input *DeleteVolumeInput, opts ...request.Option) (*DeleteVolumeOutput, error) {
  6069. req, out := c.DeleteVolumeRequest(input)
  6070. req.SetContext(ctx)
  6071. req.ApplyOptions(opts...)
  6072. return out, req.Send()
  6073. }
  6074. const opDeleteVpc = "DeleteVpc"
  6075. // DeleteVpcRequest generates a "aws/request.Request" representing the
  6076. // client's request for the DeleteVpc operation. The "output" return
  6077. // value can be used to capture response data after the request's "Send" method
  6078. // is called.
  6079. //
  6080. // See DeleteVpc for usage and error information.
  6081. //
  6082. // Creating a request object using this method should be used when you want to inject
  6083. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6084. // access properties on the request object before or after sending the request. If
  6085. // you just want the service response, call the DeleteVpc method directly
  6086. // instead.
  6087. //
  6088. // Note: You must call the "Send" method on the returned request object in order
  6089. // to execute the request.
  6090. //
  6091. // // Example sending a request using the DeleteVpcRequest method.
  6092. // req, resp := client.DeleteVpcRequest(params)
  6093. //
  6094. // err := req.Send()
  6095. // if err == nil { // resp is now filled
  6096. // fmt.Println(resp)
  6097. // }
  6098. //
  6099. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc
  6100. func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, output *DeleteVpcOutput) {
  6101. op := &request.Operation{
  6102. Name: opDeleteVpc,
  6103. HTTPMethod: "POST",
  6104. HTTPPath: "/",
  6105. }
  6106. if input == nil {
  6107. input = &DeleteVpcInput{}
  6108. }
  6109. output = &DeleteVpcOutput{}
  6110. req = c.newRequest(op, input, output)
  6111. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6112. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6113. return
  6114. }
  6115. // DeleteVpc API operation for Amazon Elastic Compute Cloud.
  6116. //
  6117. // Deletes the specified VPC. You must detach or delete all gateways and resources
  6118. // that are associated with the VPC before you can delete it. For example, you
  6119. // must terminate all instances running in the VPC, delete all security groups
  6120. // associated with the VPC (except the default one), delete all route tables
  6121. // associated with the VPC (except the default one), and so on.
  6122. //
  6123. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6124. // with awserr.Error's Code and Message methods to get detailed information about
  6125. // the error.
  6126. //
  6127. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6128. // API operation DeleteVpc for usage and error information.
  6129. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc
  6130. func (c *EC2) DeleteVpc(input *DeleteVpcInput) (*DeleteVpcOutput, error) {
  6131. req, out := c.DeleteVpcRequest(input)
  6132. return out, req.Send()
  6133. }
  6134. // DeleteVpcWithContext is the same as DeleteVpc with the addition of
  6135. // the ability to pass a context and additional request options.
  6136. //
  6137. // See DeleteVpc for details on how to use this API operation.
  6138. //
  6139. // The context must be non-nil and will be used for request cancellation. If
  6140. // the context is nil a panic will occur. In the future the SDK may create
  6141. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6142. // for more information on using Contexts.
  6143. func (c *EC2) DeleteVpcWithContext(ctx aws.Context, input *DeleteVpcInput, opts ...request.Option) (*DeleteVpcOutput, error) {
  6144. req, out := c.DeleteVpcRequest(input)
  6145. req.SetContext(ctx)
  6146. req.ApplyOptions(opts...)
  6147. return out, req.Send()
  6148. }
  6149. const opDeleteVpcEndpoints = "DeleteVpcEndpoints"
  6150. // DeleteVpcEndpointsRequest generates a "aws/request.Request" representing the
  6151. // client's request for the DeleteVpcEndpoints operation. The "output" return
  6152. // value can be used to capture response data after the request's "Send" method
  6153. // is called.
  6154. //
  6155. // See DeleteVpcEndpoints for usage and error information.
  6156. //
  6157. // Creating a request object using this method should be used when you want to inject
  6158. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6159. // access properties on the request object before or after sending the request. If
  6160. // you just want the service response, call the DeleteVpcEndpoints method directly
  6161. // instead.
  6162. //
  6163. // Note: You must call the "Send" method on the returned request object in order
  6164. // to execute the request.
  6165. //
  6166. // // Example sending a request using the DeleteVpcEndpointsRequest method.
  6167. // req, resp := client.DeleteVpcEndpointsRequest(params)
  6168. //
  6169. // err := req.Send()
  6170. // if err == nil { // resp is now filled
  6171. // fmt.Println(resp)
  6172. // }
  6173. //
  6174. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints
  6175. func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *request.Request, output *DeleteVpcEndpointsOutput) {
  6176. op := &request.Operation{
  6177. Name: opDeleteVpcEndpoints,
  6178. HTTPMethod: "POST",
  6179. HTTPPath: "/",
  6180. }
  6181. if input == nil {
  6182. input = &DeleteVpcEndpointsInput{}
  6183. }
  6184. output = &DeleteVpcEndpointsOutput{}
  6185. req = c.newRequest(op, input, output)
  6186. return
  6187. }
  6188. // DeleteVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  6189. //
  6190. // Deletes one or more specified VPC endpoints. Deleting the endpoint also deletes
  6191. // the endpoint routes in the route tables that were associated with the endpoint.
  6192. //
  6193. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6194. // with awserr.Error's Code and Message methods to get detailed information about
  6195. // the error.
  6196. //
  6197. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6198. // API operation DeleteVpcEndpoints for usage and error information.
  6199. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints
  6200. func (c *EC2) DeleteVpcEndpoints(input *DeleteVpcEndpointsInput) (*DeleteVpcEndpointsOutput, error) {
  6201. req, out := c.DeleteVpcEndpointsRequest(input)
  6202. return out, req.Send()
  6203. }
  6204. // DeleteVpcEndpointsWithContext is the same as DeleteVpcEndpoints with the addition of
  6205. // the ability to pass a context and additional request options.
  6206. //
  6207. // See DeleteVpcEndpoints for details on how to use this API operation.
  6208. //
  6209. // The context must be non-nil and will be used for request cancellation. If
  6210. // the context is nil a panic will occur. In the future the SDK may create
  6211. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6212. // for more information on using Contexts.
  6213. func (c *EC2) DeleteVpcEndpointsWithContext(ctx aws.Context, input *DeleteVpcEndpointsInput, opts ...request.Option) (*DeleteVpcEndpointsOutput, error) {
  6214. req, out := c.DeleteVpcEndpointsRequest(input)
  6215. req.SetContext(ctx)
  6216. req.ApplyOptions(opts...)
  6217. return out, req.Send()
  6218. }
  6219. const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection"
  6220. // DeleteVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  6221. // client's request for the DeleteVpcPeeringConnection operation. The "output" return
  6222. // value can be used to capture response data after the request's "Send" method
  6223. // is called.
  6224. //
  6225. // See DeleteVpcPeeringConnection for usage and error information.
  6226. //
  6227. // Creating a request object using this method should be used when you want to inject
  6228. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6229. // access properties on the request object before or after sending the request. If
  6230. // you just want the service response, call the DeleteVpcPeeringConnection method directly
  6231. // instead.
  6232. //
  6233. // Note: You must call the "Send" method on the returned request object in order
  6234. // to execute the request.
  6235. //
  6236. // // Example sending a request using the DeleteVpcPeeringConnectionRequest method.
  6237. // req, resp := client.DeleteVpcPeeringConnectionRequest(params)
  6238. //
  6239. // err := req.Send()
  6240. // if err == nil { // resp is now filled
  6241. // fmt.Println(resp)
  6242. // }
  6243. //
  6244. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection
  6245. func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectionInput) (req *request.Request, output *DeleteVpcPeeringConnectionOutput) {
  6246. op := &request.Operation{
  6247. Name: opDeleteVpcPeeringConnection,
  6248. HTTPMethod: "POST",
  6249. HTTPPath: "/",
  6250. }
  6251. if input == nil {
  6252. input = &DeleteVpcPeeringConnectionInput{}
  6253. }
  6254. output = &DeleteVpcPeeringConnectionOutput{}
  6255. req = c.newRequest(op, input, output)
  6256. return
  6257. }
  6258. // DeleteVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  6259. //
  6260. // Deletes a VPC peering connection. Either the owner of the requester VPC or
  6261. // the owner of the peer VPC can delete the VPC peering connection if it's in
  6262. // the active state. The owner of the requester VPC can delete a VPC peering
  6263. // connection in the pending-acceptance state.
  6264. //
  6265. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6266. // with awserr.Error's Code and Message methods to get detailed information about
  6267. // the error.
  6268. //
  6269. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6270. // API operation DeleteVpcPeeringConnection for usage and error information.
  6271. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection
  6272. func (c *EC2) DeleteVpcPeeringConnection(input *DeleteVpcPeeringConnectionInput) (*DeleteVpcPeeringConnectionOutput, error) {
  6273. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  6274. return out, req.Send()
  6275. }
  6276. // DeleteVpcPeeringConnectionWithContext is the same as DeleteVpcPeeringConnection with the addition of
  6277. // the ability to pass a context and additional request options.
  6278. //
  6279. // See DeleteVpcPeeringConnection for details on how to use this API operation.
  6280. //
  6281. // The context must be non-nil and will be used for request cancellation. If
  6282. // the context is nil a panic will occur. In the future the SDK may create
  6283. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6284. // for more information on using Contexts.
  6285. func (c *EC2) DeleteVpcPeeringConnectionWithContext(ctx aws.Context, input *DeleteVpcPeeringConnectionInput, opts ...request.Option) (*DeleteVpcPeeringConnectionOutput, error) {
  6286. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  6287. req.SetContext(ctx)
  6288. req.ApplyOptions(opts...)
  6289. return out, req.Send()
  6290. }
  6291. const opDeleteVpnConnection = "DeleteVpnConnection"
  6292. // DeleteVpnConnectionRequest generates a "aws/request.Request" representing the
  6293. // client's request for the DeleteVpnConnection operation. The "output" return
  6294. // value can be used to capture response data after the request's "Send" method
  6295. // is called.
  6296. //
  6297. // See DeleteVpnConnection for usage and error information.
  6298. //
  6299. // Creating a request object using this method should be used when you want to inject
  6300. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6301. // access properties on the request object before or after sending the request. If
  6302. // you just want the service response, call the DeleteVpnConnection method directly
  6303. // instead.
  6304. //
  6305. // Note: You must call the "Send" method on the returned request object in order
  6306. // to execute the request.
  6307. //
  6308. // // Example sending a request using the DeleteVpnConnectionRequest method.
  6309. // req, resp := client.DeleteVpnConnectionRequest(params)
  6310. //
  6311. // err := req.Send()
  6312. // if err == nil { // resp is now filled
  6313. // fmt.Println(resp)
  6314. // }
  6315. //
  6316. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection
  6317. func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req *request.Request, output *DeleteVpnConnectionOutput) {
  6318. op := &request.Operation{
  6319. Name: opDeleteVpnConnection,
  6320. HTTPMethod: "POST",
  6321. HTTPPath: "/",
  6322. }
  6323. if input == nil {
  6324. input = &DeleteVpnConnectionInput{}
  6325. }
  6326. output = &DeleteVpnConnectionOutput{}
  6327. req = c.newRequest(op, input, output)
  6328. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6329. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6330. return
  6331. }
  6332. // DeleteVpnConnection API operation for Amazon Elastic Compute Cloud.
  6333. //
  6334. // Deletes the specified VPN connection.
  6335. //
  6336. // If you're deleting the VPC and its associated components, we recommend that
  6337. // you detach the virtual private gateway from the VPC and delete the VPC before
  6338. // deleting the VPN connection. If you believe that the tunnel credentials for
  6339. // your VPN connection have been compromised, you can delete the VPN connection
  6340. // and create a new one that has new keys, without needing to delete the VPC
  6341. // or virtual private gateway. If you create a new VPN connection, you must
  6342. // reconfigure the customer gateway using the new configuration information
  6343. // returned with the new VPN connection ID.
  6344. //
  6345. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6346. // with awserr.Error's Code and Message methods to get detailed information about
  6347. // the error.
  6348. //
  6349. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6350. // API operation DeleteVpnConnection for usage and error information.
  6351. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection
  6352. func (c *EC2) DeleteVpnConnection(input *DeleteVpnConnectionInput) (*DeleteVpnConnectionOutput, error) {
  6353. req, out := c.DeleteVpnConnectionRequest(input)
  6354. return out, req.Send()
  6355. }
  6356. // DeleteVpnConnectionWithContext is the same as DeleteVpnConnection with the addition of
  6357. // the ability to pass a context and additional request options.
  6358. //
  6359. // See DeleteVpnConnection for details on how to use this API operation.
  6360. //
  6361. // The context must be non-nil and will be used for request cancellation. If
  6362. // the context is nil a panic will occur. In the future the SDK may create
  6363. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6364. // for more information on using Contexts.
  6365. func (c *EC2) DeleteVpnConnectionWithContext(ctx aws.Context, input *DeleteVpnConnectionInput, opts ...request.Option) (*DeleteVpnConnectionOutput, error) {
  6366. req, out := c.DeleteVpnConnectionRequest(input)
  6367. req.SetContext(ctx)
  6368. req.ApplyOptions(opts...)
  6369. return out, req.Send()
  6370. }
  6371. const opDeleteVpnConnectionRoute = "DeleteVpnConnectionRoute"
  6372. // DeleteVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  6373. // client's request for the DeleteVpnConnectionRoute operation. The "output" return
  6374. // value can be used to capture response data after the request's "Send" method
  6375. // is called.
  6376. //
  6377. // See DeleteVpnConnectionRoute for usage and error information.
  6378. //
  6379. // Creating a request object using this method should be used when you want to inject
  6380. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6381. // access properties on the request object before or after sending the request. If
  6382. // you just want the service response, call the DeleteVpnConnectionRoute method directly
  6383. // instead.
  6384. //
  6385. // Note: You must call the "Send" method on the returned request object in order
  6386. // to execute the request.
  6387. //
  6388. // // Example sending a request using the DeleteVpnConnectionRouteRequest method.
  6389. // req, resp := client.DeleteVpnConnectionRouteRequest(params)
  6390. //
  6391. // err := req.Send()
  6392. // if err == nil { // resp is now filled
  6393. // fmt.Println(resp)
  6394. // }
  6395. //
  6396. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute
  6397. func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInput) (req *request.Request, output *DeleteVpnConnectionRouteOutput) {
  6398. op := &request.Operation{
  6399. Name: opDeleteVpnConnectionRoute,
  6400. HTTPMethod: "POST",
  6401. HTTPPath: "/",
  6402. }
  6403. if input == nil {
  6404. input = &DeleteVpnConnectionRouteInput{}
  6405. }
  6406. output = &DeleteVpnConnectionRouteOutput{}
  6407. req = c.newRequest(op, input, output)
  6408. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6409. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6410. return
  6411. }
  6412. // DeleteVpnConnectionRoute API operation for Amazon Elastic Compute Cloud.
  6413. //
  6414. // Deletes the specified static route associated with a VPN connection between
  6415. // an existing virtual private gateway and a VPN customer gateway. The static
  6416. // route allows traffic to be routed from the virtual private gateway to the
  6417. // VPN customer gateway.
  6418. //
  6419. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6420. // with awserr.Error's Code and Message methods to get detailed information about
  6421. // the error.
  6422. //
  6423. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6424. // API operation DeleteVpnConnectionRoute for usage and error information.
  6425. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute
  6426. func (c *EC2) DeleteVpnConnectionRoute(input *DeleteVpnConnectionRouteInput) (*DeleteVpnConnectionRouteOutput, error) {
  6427. req, out := c.DeleteVpnConnectionRouteRequest(input)
  6428. return out, req.Send()
  6429. }
  6430. // DeleteVpnConnectionRouteWithContext is the same as DeleteVpnConnectionRoute with the addition of
  6431. // the ability to pass a context and additional request options.
  6432. //
  6433. // See DeleteVpnConnectionRoute for details on how to use this API operation.
  6434. //
  6435. // The context must be non-nil and will be used for request cancellation. If
  6436. // the context is nil a panic will occur. In the future the SDK may create
  6437. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6438. // for more information on using Contexts.
  6439. func (c *EC2) DeleteVpnConnectionRouteWithContext(ctx aws.Context, input *DeleteVpnConnectionRouteInput, opts ...request.Option) (*DeleteVpnConnectionRouteOutput, error) {
  6440. req, out := c.DeleteVpnConnectionRouteRequest(input)
  6441. req.SetContext(ctx)
  6442. req.ApplyOptions(opts...)
  6443. return out, req.Send()
  6444. }
  6445. const opDeleteVpnGateway = "DeleteVpnGateway"
  6446. // DeleteVpnGatewayRequest generates a "aws/request.Request" representing the
  6447. // client's request for the DeleteVpnGateway operation. The "output" return
  6448. // value can be used to capture response data after the request's "Send" method
  6449. // is called.
  6450. //
  6451. // See DeleteVpnGateway for usage and error information.
  6452. //
  6453. // Creating a request object using this method should be used when you want to inject
  6454. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6455. // access properties on the request object before or after sending the request. If
  6456. // you just want the service response, call the DeleteVpnGateway method directly
  6457. // instead.
  6458. //
  6459. // Note: You must call the "Send" method on the returned request object in order
  6460. // to execute the request.
  6461. //
  6462. // // Example sending a request using the DeleteVpnGatewayRequest method.
  6463. // req, resp := client.DeleteVpnGatewayRequest(params)
  6464. //
  6465. // err := req.Send()
  6466. // if err == nil { // resp is now filled
  6467. // fmt.Println(resp)
  6468. // }
  6469. //
  6470. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway
  6471. func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *request.Request, output *DeleteVpnGatewayOutput) {
  6472. op := &request.Operation{
  6473. Name: opDeleteVpnGateway,
  6474. HTTPMethod: "POST",
  6475. HTTPPath: "/",
  6476. }
  6477. if input == nil {
  6478. input = &DeleteVpnGatewayInput{}
  6479. }
  6480. output = &DeleteVpnGatewayOutput{}
  6481. req = c.newRequest(op, input, output)
  6482. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6483. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6484. return
  6485. }
  6486. // DeleteVpnGateway API operation for Amazon Elastic Compute Cloud.
  6487. //
  6488. // Deletes the specified virtual private gateway. We recommend that before you
  6489. // delete a virtual private gateway, you detach it from the VPC and delete the
  6490. // VPN connection. Note that you don't need to delete the virtual private gateway
  6491. // if you plan to delete and recreate the VPN connection between your VPC and
  6492. // your network.
  6493. //
  6494. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6495. // with awserr.Error's Code and Message methods to get detailed information about
  6496. // the error.
  6497. //
  6498. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6499. // API operation DeleteVpnGateway for usage and error information.
  6500. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway
  6501. func (c *EC2) DeleteVpnGateway(input *DeleteVpnGatewayInput) (*DeleteVpnGatewayOutput, error) {
  6502. req, out := c.DeleteVpnGatewayRequest(input)
  6503. return out, req.Send()
  6504. }
  6505. // DeleteVpnGatewayWithContext is the same as DeleteVpnGateway with the addition of
  6506. // the ability to pass a context and additional request options.
  6507. //
  6508. // See DeleteVpnGateway for details on how to use this API operation.
  6509. //
  6510. // The context must be non-nil and will be used for request cancellation. If
  6511. // the context is nil a panic will occur. In the future the SDK may create
  6512. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6513. // for more information on using Contexts.
  6514. func (c *EC2) DeleteVpnGatewayWithContext(ctx aws.Context, input *DeleteVpnGatewayInput, opts ...request.Option) (*DeleteVpnGatewayOutput, error) {
  6515. req, out := c.DeleteVpnGatewayRequest(input)
  6516. req.SetContext(ctx)
  6517. req.ApplyOptions(opts...)
  6518. return out, req.Send()
  6519. }
  6520. const opDeregisterImage = "DeregisterImage"
  6521. // DeregisterImageRequest generates a "aws/request.Request" representing the
  6522. // client's request for the DeregisterImage operation. The "output" return
  6523. // value can be used to capture response data after the request's "Send" method
  6524. // is called.
  6525. //
  6526. // See DeregisterImage for usage and error information.
  6527. //
  6528. // Creating a request object using this method should be used when you want to inject
  6529. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6530. // access properties on the request object before or after sending the request. If
  6531. // you just want the service response, call the DeregisterImage method directly
  6532. // instead.
  6533. //
  6534. // Note: You must call the "Send" method on the returned request object in order
  6535. // to execute the request.
  6536. //
  6537. // // Example sending a request using the DeregisterImageRequest method.
  6538. // req, resp := client.DeregisterImageRequest(params)
  6539. //
  6540. // err := req.Send()
  6541. // if err == nil { // resp is now filled
  6542. // fmt.Println(resp)
  6543. // }
  6544. //
  6545. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage
  6546. func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request.Request, output *DeregisterImageOutput) {
  6547. op := &request.Operation{
  6548. Name: opDeregisterImage,
  6549. HTTPMethod: "POST",
  6550. HTTPPath: "/",
  6551. }
  6552. if input == nil {
  6553. input = &DeregisterImageInput{}
  6554. }
  6555. output = &DeregisterImageOutput{}
  6556. req = c.newRequest(op, input, output)
  6557. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6558. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6559. return
  6560. }
  6561. // DeregisterImage API operation for Amazon Elastic Compute Cloud.
  6562. //
  6563. // Deregisters the specified AMI. After you deregister an AMI, it can't be used
  6564. // to launch new instances.
  6565. //
  6566. // This command does not delete the AMI.
  6567. //
  6568. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6569. // with awserr.Error's Code and Message methods to get detailed information about
  6570. // the error.
  6571. //
  6572. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6573. // API operation DeregisterImage for usage and error information.
  6574. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage
  6575. func (c *EC2) DeregisterImage(input *DeregisterImageInput) (*DeregisterImageOutput, error) {
  6576. req, out := c.DeregisterImageRequest(input)
  6577. return out, req.Send()
  6578. }
  6579. // DeregisterImageWithContext is the same as DeregisterImage with the addition of
  6580. // the ability to pass a context and additional request options.
  6581. //
  6582. // See DeregisterImage for details on how to use this API operation.
  6583. //
  6584. // The context must be non-nil and will be used for request cancellation. If
  6585. // the context is nil a panic will occur. In the future the SDK may create
  6586. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6587. // for more information on using Contexts.
  6588. func (c *EC2) DeregisterImageWithContext(ctx aws.Context, input *DeregisterImageInput, opts ...request.Option) (*DeregisterImageOutput, error) {
  6589. req, out := c.DeregisterImageRequest(input)
  6590. req.SetContext(ctx)
  6591. req.ApplyOptions(opts...)
  6592. return out, req.Send()
  6593. }
  6594. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  6595. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  6596. // client's request for the DescribeAccountAttributes operation. The "output" return
  6597. // value can be used to capture response data after the request's "Send" method
  6598. // is called.
  6599. //
  6600. // See DescribeAccountAttributes for usage and error information.
  6601. //
  6602. // Creating a request object using this method should be used when you want to inject
  6603. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6604. // access properties on the request object before or after sending the request. If
  6605. // you just want the service response, call the DescribeAccountAttributes method directly
  6606. // instead.
  6607. //
  6608. // Note: You must call the "Send" method on the returned request object in order
  6609. // to execute the request.
  6610. //
  6611. // // Example sending a request using the DescribeAccountAttributesRequest method.
  6612. // req, resp := client.DescribeAccountAttributesRequest(params)
  6613. //
  6614. // err := req.Send()
  6615. // if err == nil { // resp is now filled
  6616. // fmt.Println(resp)
  6617. // }
  6618. //
  6619. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes
  6620. func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  6621. op := &request.Operation{
  6622. Name: opDescribeAccountAttributes,
  6623. HTTPMethod: "POST",
  6624. HTTPPath: "/",
  6625. }
  6626. if input == nil {
  6627. input = &DescribeAccountAttributesInput{}
  6628. }
  6629. output = &DescribeAccountAttributesOutput{}
  6630. req = c.newRequest(op, input, output)
  6631. return
  6632. }
  6633. // DescribeAccountAttributes API operation for Amazon Elastic Compute Cloud.
  6634. //
  6635. // Describes attributes of your AWS account. The following are the supported
  6636. // account attributes:
  6637. //
  6638. // * supported-platforms: Indicates whether your account can launch instances
  6639. // into EC2-Classic and EC2-VPC, or only into EC2-VPC.
  6640. //
  6641. // * default-vpc: The ID of the default VPC for your account, or none.
  6642. //
  6643. // * max-instances: The maximum number of On-Demand instances that you can
  6644. // run.
  6645. //
  6646. // * vpc-max-security-groups-per-interface: The maximum number of security
  6647. // groups that you can assign to a network interface.
  6648. //
  6649. // * max-elastic-ips: The maximum number of Elastic IP addresses that you
  6650. // can allocate for use with EC2-Classic.
  6651. //
  6652. // * vpc-max-elastic-ips: The maximum number of Elastic IP addresses that
  6653. // you can allocate for use with EC2-VPC.
  6654. //
  6655. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6656. // with awserr.Error's Code and Message methods to get detailed information about
  6657. // the error.
  6658. //
  6659. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6660. // API operation DescribeAccountAttributes for usage and error information.
  6661. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes
  6662. func (c *EC2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  6663. req, out := c.DescribeAccountAttributesRequest(input)
  6664. return out, req.Send()
  6665. }
  6666. // DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of
  6667. // the ability to pass a context and additional request options.
  6668. //
  6669. // See DescribeAccountAttributes for details on how to use this API operation.
  6670. //
  6671. // The context must be non-nil and will be used for request cancellation. If
  6672. // the context is nil a panic will occur. In the future the SDK may create
  6673. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6674. // for more information on using Contexts.
  6675. func (c *EC2) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error) {
  6676. req, out := c.DescribeAccountAttributesRequest(input)
  6677. req.SetContext(ctx)
  6678. req.ApplyOptions(opts...)
  6679. return out, req.Send()
  6680. }
  6681. const opDescribeAddresses = "DescribeAddresses"
  6682. // DescribeAddressesRequest generates a "aws/request.Request" representing the
  6683. // client's request for the DescribeAddresses operation. The "output" return
  6684. // value can be used to capture response data after the request's "Send" method
  6685. // is called.
  6686. //
  6687. // See DescribeAddresses for usage and error information.
  6688. //
  6689. // Creating a request object using this method should be used when you want to inject
  6690. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6691. // access properties on the request object before or after sending the request. If
  6692. // you just want the service response, call the DescribeAddresses method directly
  6693. // instead.
  6694. //
  6695. // Note: You must call the "Send" method on the returned request object in order
  6696. // to execute the request.
  6697. //
  6698. // // Example sending a request using the DescribeAddressesRequest method.
  6699. // req, resp := client.DescribeAddressesRequest(params)
  6700. //
  6701. // err := req.Send()
  6702. // if err == nil { // resp is now filled
  6703. // fmt.Println(resp)
  6704. // }
  6705. //
  6706. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses
  6707. func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *request.Request, output *DescribeAddressesOutput) {
  6708. op := &request.Operation{
  6709. Name: opDescribeAddresses,
  6710. HTTPMethod: "POST",
  6711. HTTPPath: "/",
  6712. }
  6713. if input == nil {
  6714. input = &DescribeAddressesInput{}
  6715. }
  6716. output = &DescribeAddressesOutput{}
  6717. req = c.newRequest(op, input, output)
  6718. return
  6719. }
  6720. // DescribeAddresses API operation for Amazon Elastic Compute Cloud.
  6721. //
  6722. // Describes one or more of your Elastic IP addresses.
  6723. //
  6724. // An Elastic IP address is for use in either the EC2-Classic platform or in
  6725. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  6726. // in the Amazon Elastic Compute Cloud User Guide.
  6727. //
  6728. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6729. // with awserr.Error's Code and Message methods to get detailed information about
  6730. // the error.
  6731. //
  6732. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6733. // API operation DescribeAddresses for usage and error information.
  6734. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses
  6735. func (c *EC2) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) {
  6736. req, out := c.DescribeAddressesRequest(input)
  6737. return out, req.Send()
  6738. }
  6739. // DescribeAddressesWithContext is the same as DescribeAddresses with the addition of
  6740. // the ability to pass a context and additional request options.
  6741. //
  6742. // See DescribeAddresses for details on how to use this API operation.
  6743. //
  6744. // The context must be non-nil and will be used for request cancellation. If
  6745. // the context is nil a panic will occur. In the future the SDK may create
  6746. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6747. // for more information on using Contexts.
  6748. func (c *EC2) DescribeAddressesWithContext(ctx aws.Context, input *DescribeAddressesInput, opts ...request.Option) (*DescribeAddressesOutput, error) {
  6749. req, out := c.DescribeAddressesRequest(input)
  6750. req.SetContext(ctx)
  6751. req.ApplyOptions(opts...)
  6752. return out, req.Send()
  6753. }
  6754. const opDescribeAvailabilityZones = "DescribeAvailabilityZones"
  6755. // DescribeAvailabilityZonesRequest generates a "aws/request.Request" representing the
  6756. // client's request for the DescribeAvailabilityZones operation. The "output" return
  6757. // value can be used to capture response data after the request's "Send" method
  6758. // is called.
  6759. //
  6760. // See DescribeAvailabilityZones for usage and error information.
  6761. //
  6762. // Creating a request object using this method should be used when you want to inject
  6763. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6764. // access properties on the request object before or after sending the request. If
  6765. // you just want the service response, call the DescribeAvailabilityZones method directly
  6766. // instead.
  6767. //
  6768. // Note: You must call the "Send" method on the returned request object in order
  6769. // to execute the request.
  6770. //
  6771. // // Example sending a request using the DescribeAvailabilityZonesRequest method.
  6772. // req, resp := client.DescribeAvailabilityZonesRequest(params)
  6773. //
  6774. // err := req.Send()
  6775. // if err == nil { // resp is now filled
  6776. // fmt.Println(resp)
  6777. // }
  6778. //
  6779. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones
  6780. func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesInput) (req *request.Request, output *DescribeAvailabilityZonesOutput) {
  6781. op := &request.Operation{
  6782. Name: opDescribeAvailabilityZones,
  6783. HTTPMethod: "POST",
  6784. HTTPPath: "/",
  6785. }
  6786. if input == nil {
  6787. input = &DescribeAvailabilityZonesInput{}
  6788. }
  6789. output = &DescribeAvailabilityZonesOutput{}
  6790. req = c.newRequest(op, input, output)
  6791. return
  6792. }
  6793. // DescribeAvailabilityZones API operation for Amazon Elastic Compute Cloud.
  6794. //
  6795. // Describes one or more of the Availability Zones that are available to you.
  6796. // The results include zones only for the region you're currently using. If
  6797. // there is an event impacting an Availability Zone, you can use this request
  6798. // to view the state and any provided message for that Availability Zone.
  6799. //
  6800. // For more information, see Regions and Availability Zones (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html)
  6801. // in the Amazon Elastic Compute Cloud User Guide.
  6802. //
  6803. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6804. // with awserr.Error's Code and Message methods to get detailed information about
  6805. // the error.
  6806. //
  6807. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6808. // API operation DescribeAvailabilityZones for usage and error information.
  6809. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones
  6810. func (c *EC2) DescribeAvailabilityZones(input *DescribeAvailabilityZonesInput) (*DescribeAvailabilityZonesOutput, error) {
  6811. req, out := c.DescribeAvailabilityZonesRequest(input)
  6812. return out, req.Send()
  6813. }
  6814. // DescribeAvailabilityZonesWithContext is the same as DescribeAvailabilityZones with the addition of
  6815. // the ability to pass a context and additional request options.
  6816. //
  6817. // See DescribeAvailabilityZones for details on how to use this API operation.
  6818. //
  6819. // The context must be non-nil and will be used for request cancellation. If
  6820. // the context is nil a panic will occur. In the future the SDK may create
  6821. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6822. // for more information on using Contexts.
  6823. func (c *EC2) DescribeAvailabilityZonesWithContext(ctx aws.Context, input *DescribeAvailabilityZonesInput, opts ...request.Option) (*DescribeAvailabilityZonesOutput, error) {
  6824. req, out := c.DescribeAvailabilityZonesRequest(input)
  6825. req.SetContext(ctx)
  6826. req.ApplyOptions(opts...)
  6827. return out, req.Send()
  6828. }
  6829. const opDescribeBundleTasks = "DescribeBundleTasks"
  6830. // DescribeBundleTasksRequest generates a "aws/request.Request" representing the
  6831. // client's request for the DescribeBundleTasks operation. The "output" return
  6832. // value can be used to capture response data after the request's "Send" method
  6833. // is called.
  6834. //
  6835. // See DescribeBundleTasks for usage and error information.
  6836. //
  6837. // Creating a request object using this method should be used when you want to inject
  6838. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6839. // access properties on the request object before or after sending the request. If
  6840. // you just want the service response, call the DescribeBundleTasks method directly
  6841. // instead.
  6842. //
  6843. // Note: You must call the "Send" method on the returned request object in order
  6844. // to execute the request.
  6845. //
  6846. // // Example sending a request using the DescribeBundleTasksRequest method.
  6847. // req, resp := client.DescribeBundleTasksRequest(params)
  6848. //
  6849. // err := req.Send()
  6850. // if err == nil { // resp is now filled
  6851. // fmt.Println(resp)
  6852. // }
  6853. //
  6854. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks
  6855. func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req *request.Request, output *DescribeBundleTasksOutput) {
  6856. op := &request.Operation{
  6857. Name: opDescribeBundleTasks,
  6858. HTTPMethod: "POST",
  6859. HTTPPath: "/",
  6860. }
  6861. if input == nil {
  6862. input = &DescribeBundleTasksInput{}
  6863. }
  6864. output = &DescribeBundleTasksOutput{}
  6865. req = c.newRequest(op, input, output)
  6866. return
  6867. }
  6868. // DescribeBundleTasks API operation for Amazon Elastic Compute Cloud.
  6869. //
  6870. // Describes one or more of your bundling tasks.
  6871. //
  6872. // Completed bundle tasks are listed for only a limited time. If your bundle
  6873. // task is no longer in the list, you can still register an AMI from it. Just
  6874. // use RegisterImage with the Amazon S3 bucket name and image manifest name
  6875. // you provided to the bundle task.
  6876. //
  6877. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6878. // with awserr.Error's Code and Message methods to get detailed information about
  6879. // the error.
  6880. //
  6881. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6882. // API operation DescribeBundleTasks for usage and error information.
  6883. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks
  6884. func (c *EC2) DescribeBundleTasks(input *DescribeBundleTasksInput) (*DescribeBundleTasksOutput, error) {
  6885. req, out := c.DescribeBundleTasksRequest(input)
  6886. return out, req.Send()
  6887. }
  6888. // DescribeBundleTasksWithContext is the same as DescribeBundleTasks with the addition of
  6889. // the ability to pass a context and additional request options.
  6890. //
  6891. // See DescribeBundleTasks for details on how to use this API operation.
  6892. //
  6893. // The context must be non-nil and will be used for request cancellation. If
  6894. // the context is nil a panic will occur. In the future the SDK may create
  6895. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6896. // for more information on using Contexts.
  6897. func (c *EC2) DescribeBundleTasksWithContext(ctx aws.Context, input *DescribeBundleTasksInput, opts ...request.Option) (*DescribeBundleTasksOutput, error) {
  6898. req, out := c.DescribeBundleTasksRequest(input)
  6899. req.SetContext(ctx)
  6900. req.ApplyOptions(opts...)
  6901. return out, req.Send()
  6902. }
  6903. const opDescribeClassicLinkInstances = "DescribeClassicLinkInstances"
  6904. // DescribeClassicLinkInstancesRequest generates a "aws/request.Request" representing the
  6905. // client's request for the DescribeClassicLinkInstances operation. The "output" return
  6906. // value can be used to capture response data after the request's "Send" method
  6907. // is called.
  6908. //
  6909. // See DescribeClassicLinkInstances for usage and error information.
  6910. //
  6911. // Creating a request object using this method should be used when you want to inject
  6912. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6913. // access properties on the request object before or after sending the request. If
  6914. // you just want the service response, call the DescribeClassicLinkInstances method directly
  6915. // instead.
  6916. //
  6917. // Note: You must call the "Send" method on the returned request object in order
  6918. // to execute the request.
  6919. //
  6920. // // Example sending a request using the DescribeClassicLinkInstancesRequest method.
  6921. // req, resp := client.DescribeClassicLinkInstancesRequest(params)
  6922. //
  6923. // err := req.Send()
  6924. // if err == nil { // resp is now filled
  6925. // fmt.Println(resp)
  6926. // }
  6927. //
  6928. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances
  6929. func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInstancesInput) (req *request.Request, output *DescribeClassicLinkInstancesOutput) {
  6930. op := &request.Operation{
  6931. Name: opDescribeClassicLinkInstances,
  6932. HTTPMethod: "POST",
  6933. HTTPPath: "/",
  6934. }
  6935. if input == nil {
  6936. input = &DescribeClassicLinkInstancesInput{}
  6937. }
  6938. output = &DescribeClassicLinkInstancesOutput{}
  6939. req = c.newRequest(op, input, output)
  6940. return
  6941. }
  6942. // DescribeClassicLinkInstances API operation for Amazon Elastic Compute Cloud.
  6943. //
  6944. // Describes one or more of your linked EC2-Classic instances. This request
  6945. // only returns information about EC2-Classic instances linked to a VPC through
  6946. // ClassicLink; you cannot use this request to return information about other
  6947. // instances.
  6948. //
  6949. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6950. // with awserr.Error's Code and Message methods to get detailed information about
  6951. // the error.
  6952. //
  6953. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6954. // API operation DescribeClassicLinkInstances for usage and error information.
  6955. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances
  6956. func (c *EC2) DescribeClassicLinkInstances(input *DescribeClassicLinkInstancesInput) (*DescribeClassicLinkInstancesOutput, error) {
  6957. req, out := c.DescribeClassicLinkInstancesRequest(input)
  6958. return out, req.Send()
  6959. }
  6960. // DescribeClassicLinkInstancesWithContext is the same as DescribeClassicLinkInstances with the addition of
  6961. // the ability to pass a context and additional request options.
  6962. //
  6963. // See DescribeClassicLinkInstances for details on how to use this API operation.
  6964. //
  6965. // The context must be non-nil and will be used for request cancellation. If
  6966. // the context is nil a panic will occur. In the future the SDK may create
  6967. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6968. // for more information on using Contexts.
  6969. func (c *EC2) DescribeClassicLinkInstancesWithContext(ctx aws.Context, input *DescribeClassicLinkInstancesInput, opts ...request.Option) (*DescribeClassicLinkInstancesOutput, error) {
  6970. req, out := c.DescribeClassicLinkInstancesRequest(input)
  6971. req.SetContext(ctx)
  6972. req.ApplyOptions(opts...)
  6973. return out, req.Send()
  6974. }
  6975. const opDescribeConversionTasks = "DescribeConversionTasks"
  6976. // DescribeConversionTasksRequest generates a "aws/request.Request" representing the
  6977. // client's request for the DescribeConversionTasks operation. The "output" return
  6978. // value can be used to capture response data after the request's "Send" method
  6979. // is called.
  6980. //
  6981. // See DescribeConversionTasks for usage and error information.
  6982. //
  6983. // Creating a request object using this method should be used when you want to inject
  6984. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6985. // access properties on the request object before or after sending the request. If
  6986. // you just want the service response, call the DescribeConversionTasks method directly
  6987. // instead.
  6988. //
  6989. // Note: You must call the "Send" method on the returned request object in order
  6990. // to execute the request.
  6991. //
  6992. // // Example sending a request using the DescribeConversionTasksRequest method.
  6993. // req, resp := client.DescribeConversionTasksRequest(params)
  6994. //
  6995. // err := req.Send()
  6996. // if err == nil { // resp is now filled
  6997. // fmt.Println(resp)
  6998. // }
  6999. //
  7000. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks
  7001. func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput) (req *request.Request, output *DescribeConversionTasksOutput) {
  7002. op := &request.Operation{
  7003. Name: opDescribeConversionTasks,
  7004. HTTPMethod: "POST",
  7005. HTTPPath: "/",
  7006. }
  7007. if input == nil {
  7008. input = &DescribeConversionTasksInput{}
  7009. }
  7010. output = &DescribeConversionTasksOutput{}
  7011. req = c.newRequest(op, input, output)
  7012. return
  7013. }
  7014. // DescribeConversionTasks API operation for Amazon Elastic Compute Cloud.
  7015. //
  7016. // Describes one or more of your conversion tasks. For more information, see
  7017. // the VM Import/Export User Guide (http://docs.aws.amazon.com/vm-import/latest/userguide/).
  7018. //
  7019. // For information about the import manifest referenced by this API action,
  7020. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  7021. //
  7022. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7023. // with awserr.Error's Code and Message methods to get detailed information about
  7024. // the error.
  7025. //
  7026. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7027. // API operation DescribeConversionTasks for usage and error information.
  7028. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks
  7029. func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) {
  7030. req, out := c.DescribeConversionTasksRequest(input)
  7031. return out, req.Send()
  7032. }
  7033. // DescribeConversionTasksWithContext is the same as DescribeConversionTasks with the addition of
  7034. // the ability to pass a context and additional request options.
  7035. //
  7036. // See DescribeConversionTasks for details on how to use this API operation.
  7037. //
  7038. // The context must be non-nil and will be used for request cancellation. If
  7039. // the context is nil a panic will occur. In the future the SDK may create
  7040. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7041. // for more information on using Contexts.
  7042. func (c *EC2) DescribeConversionTasksWithContext(ctx aws.Context, input *DescribeConversionTasksInput, opts ...request.Option) (*DescribeConversionTasksOutput, error) {
  7043. req, out := c.DescribeConversionTasksRequest(input)
  7044. req.SetContext(ctx)
  7045. req.ApplyOptions(opts...)
  7046. return out, req.Send()
  7047. }
  7048. const opDescribeCustomerGateways = "DescribeCustomerGateways"
  7049. // DescribeCustomerGatewaysRequest generates a "aws/request.Request" representing the
  7050. // client's request for the DescribeCustomerGateways operation. The "output" return
  7051. // value can be used to capture response data after the request's "Send" method
  7052. // is called.
  7053. //
  7054. // See DescribeCustomerGateways for usage and error information.
  7055. //
  7056. // Creating a request object using this method should be used when you want to inject
  7057. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7058. // access properties on the request object before or after sending the request. If
  7059. // you just want the service response, call the DescribeCustomerGateways method directly
  7060. // instead.
  7061. //
  7062. // Note: You must call the "Send" method on the returned request object in order
  7063. // to execute the request.
  7064. //
  7065. // // Example sending a request using the DescribeCustomerGatewaysRequest method.
  7066. // req, resp := client.DescribeCustomerGatewaysRequest(params)
  7067. //
  7068. // err := req.Send()
  7069. // if err == nil { // resp is now filled
  7070. // fmt.Println(resp)
  7071. // }
  7072. //
  7073. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways
  7074. func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInput) (req *request.Request, output *DescribeCustomerGatewaysOutput) {
  7075. op := &request.Operation{
  7076. Name: opDescribeCustomerGateways,
  7077. HTTPMethod: "POST",
  7078. HTTPPath: "/",
  7079. }
  7080. if input == nil {
  7081. input = &DescribeCustomerGatewaysInput{}
  7082. }
  7083. output = &DescribeCustomerGatewaysOutput{}
  7084. req = c.newRequest(op, input, output)
  7085. return
  7086. }
  7087. // DescribeCustomerGateways API operation for Amazon Elastic Compute Cloud.
  7088. //
  7089. // Describes one or more of your VPN customer gateways.
  7090. //
  7091. // For more information about VPN customer gateways, see Adding a Hardware Virtual
  7092. // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  7093. // in the Amazon Virtual Private Cloud User Guide.
  7094. //
  7095. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7096. // with awserr.Error's Code and Message methods to get detailed information about
  7097. // the error.
  7098. //
  7099. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7100. // API operation DescribeCustomerGateways for usage and error information.
  7101. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways
  7102. func (c *EC2) DescribeCustomerGateways(input *DescribeCustomerGatewaysInput) (*DescribeCustomerGatewaysOutput, error) {
  7103. req, out := c.DescribeCustomerGatewaysRequest(input)
  7104. return out, req.Send()
  7105. }
  7106. // DescribeCustomerGatewaysWithContext is the same as DescribeCustomerGateways with the addition of
  7107. // the ability to pass a context and additional request options.
  7108. //
  7109. // See DescribeCustomerGateways for details on how to use this API operation.
  7110. //
  7111. // The context must be non-nil and will be used for request cancellation. If
  7112. // the context is nil a panic will occur. In the future the SDK may create
  7113. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7114. // for more information on using Contexts.
  7115. func (c *EC2) DescribeCustomerGatewaysWithContext(ctx aws.Context, input *DescribeCustomerGatewaysInput, opts ...request.Option) (*DescribeCustomerGatewaysOutput, error) {
  7116. req, out := c.DescribeCustomerGatewaysRequest(input)
  7117. req.SetContext(ctx)
  7118. req.ApplyOptions(opts...)
  7119. return out, req.Send()
  7120. }
  7121. const opDescribeDhcpOptions = "DescribeDhcpOptions"
  7122. // DescribeDhcpOptionsRequest generates a "aws/request.Request" representing the
  7123. // client's request for the DescribeDhcpOptions operation. The "output" return
  7124. // value can be used to capture response data after the request's "Send" method
  7125. // is called.
  7126. //
  7127. // See DescribeDhcpOptions for usage and error information.
  7128. //
  7129. // Creating a request object using this method should be used when you want to inject
  7130. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7131. // access properties on the request object before or after sending the request. If
  7132. // you just want the service response, call the DescribeDhcpOptions method directly
  7133. // instead.
  7134. //
  7135. // Note: You must call the "Send" method on the returned request object in order
  7136. // to execute the request.
  7137. //
  7138. // // Example sending a request using the DescribeDhcpOptionsRequest method.
  7139. // req, resp := client.DescribeDhcpOptionsRequest(params)
  7140. //
  7141. // err := req.Send()
  7142. // if err == nil { // resp is now filled
  7143. // fmt.Println(resp)
  7144. // }
  7145. //
  7146. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions
  7147. func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req *request.Request, output *DescribeDhcpOptionsOutput) {
  7148. op := &request.Operation{
  7149. Name: opDescribeDhcpOptions,
  7150. HTTPMethod: "POST",
  7151. HTTPPath: "/",
  7152. }
  7153. if input == nil {
  7154. input = &DescribeDhcpOptionsInput{}
  7155. }
  7156. output = &DescribeDhcpOptionsOutput{}
  7157. req = c.newRequest(op, input, output)
  7158. return
  7159. }
  7160. // DescribeDhcpOptions API operation for Amazon Elastic Compute Cloud.
  7161. //
  7162. // Describes one or more of your DHCP options sets.
  7163. //
  7164. // For more information about DHCP options sets, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  7165. // in the Amazon Virtual Private Cloud User Guide.
  7166. //
  7167. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7168. // with awserr.Error's Code and Message methods to get detailed information about
  7169. // the error.
  7170. //
  7171. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7172. // API operation DescribeDhcpOptions for usage and error information.
  7173. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions
  7174. func (c *EC2) DescribeDhcpOptions(input *DescribeDhcpOptionsInput) (*DescribeDhcpOptionsOutput, error) {
  7175. req, out := c.DescribeDhcpOptionsRequest(input)
  7176. return out, req.Send()
  7177. }
  7178. // DescribeDhcpOptionsWithContext is the same as DescribeDhcpOptions with the addition of
  7179. // the ability to pass a context and additional request options.
  7180. //
  7181. // See DescribeDhcpOptions for details on how to use this API operation.
  7182. //
  7183. // The context must be non-nil and will be used for request cancellation. If
  7184. // the context is nil a panic will occur. In the future the SDK may create
  7185. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7186. // for more information on using Contexts.
  7187. func (c *EC2) DescribeDhcpOptionsWithContext(ctx aws.Context, input *DescribeDhcpOptionsInput, opts ...request.Option) (*DescribeDhcpOptionsOutput, error) {
  7188. req, out := c.DescribeDhcpOptionsRequest(input)
  7189. req.SetContext(ctx)
  7190. req.ApplyOptions(opts...)
  7191. return out, req.Send()
  7192. }
  7193. const opDescribeEgressOnlyInternetGateways = "DescribeEgressOnlyInternetGateways"
  7194. // DescribeEgressOnlyInternetGatewaysRequest generates a "aws/request.Request" representing the
  7195. // client's request for the DescribeEgressOnlyInternetGateways operation. The "output" return
  7196. // value can be used to capture response data after the request's "Send" method
  7197. // is called.
  7198. //
  7199. // See DescribeEgressOnlyInternetGateways for usage and error information.
  7200. //
  7201. // Creating a request object using this method should be used when you want to inject
  7202. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7203. // access properties on the request object before or after sending the request. If
  7204. // you just want the service response, call the DescribeEgressOnlyInternetGateways method directly
  7205. // instead.
  7206. //
  7207. // Note: You must call the "Send" method on the returned request object in order
  7208. // to execute the request.
  7209. //
  7210. // // Example sending a request using the DescribeEgressOnlyInternetGatewaysRequest method.
  7211. // req, resp := client.DescribeEgressOnlyInternetGatewaysRequest(params)
  7212. //
  7213. // err := req.Send()
  7214. // if err == nil { // resp is now filled
  7215. // fmt.Println(resp)
  7216. // }
  7217. //
  7218. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways
  7219. func (c *EC2) DescribeEgressOnlyInternetGatewaysRequest(input *DescribeEgressOnlyInternetGatewaysInput) (req *request.Request, output *DescribeEgressOnlyInternetGatewaysOutput) {
  7220. op := &request.Operation{
  7221. Name: opDescribeEgressOnlyInternetGateways,
  7222. HTTPMethod: "POST",
  7223. HTTPPath: "/",
  7224. }
  7225. if input == nil {
  7226. input = &DescribeEgressOnlyInternetGatewaysInput{}
  7227. }
  7228. output = &DescribeEgressOnlyInternetGatewaysOutput{}
  7229. req = c.newRequest(op, input, output)
  7230. return
  7231. }
  7232. // DescribeEgressOnlyInternetGateways API operation for Amazon Elastic Compute Cloud.
  7233. //
  7234. // Describes one or more of your egress-only Internet gateways.
  7235. //
  7236. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7237. // with awserr.Error's Code and Message methods to get detailed information about
  7238. // the error.
  7239. //
  7240. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7241. // API operation DescribeEgressOnlyInternetGateways for usage and error information.
  7242. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways
  7243. func (c *EC2) DescribeEgressOnlyInternetGateways(input *DescribeEgressOnlyInternetGatewaysInput) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
  7244. req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input)
  7245. return out, req.Send()
  7246. }
  7247. // DescribeEgressOnlyInternetGatewaysWithContext is the same as DescribeEgressOnlyInternetGateways with the addition of
  7248. // the ability to pass a context and additional request options.
  7249. //
  7250. // See DescribeEgressOnlyInternetGateways for details on how to use this API operation.
  7251. //
  7252. // The context must be non-nil and will be used for request cancellation. If
  7253. // the context is nil a panic will occur. In the future the SDK may create
  7254. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7255. // for more information on using Contexts.
  7256. func (c *EC2) DescribeEgressOnlyInternetGatewaysWithContext(ctx aws.Context, input *DescribeEgressOnlyInternetGatewaysInput, opts ...request.Option) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
  7257. req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input)
  7258. req.SetContext(ctx)
  7259. req.ApplyOptions(opts...)
  7260. return out, req.Send()
  7261. }
  7262. const opDescribeExportTasks = "DescribeExportTasks"
  7263. // DescribeExportTasksRequest generates a "aws/request.Request" representing the
  7264. // client's request for the DescribeExportTasks operation. The "output" return
  7265. // value can be used to capture response data after the request's "Send" method
  7266. // is called.
  7267. //
  7268. // See DescribeExportTasks for usage and error information.
  7269. //
  7270. // Creating a request object using this method should be used when you want to inject
  7271. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7272. // access properties on the request object before or after sending the request. If
  7273. // you just want the service response, call the DescribeExportTasks method directly
  7274. // instead.
  7275. //
  7276. // Note: You must call the "Send" method on the returned request object in order
  7277. // to execute the request.
  7278. //
  7279. // // Example sending a request using the DescribeExportTasksRequest method.
  7280. // req, resp := client.DescribeExportTasksRequest(params)
  7281. //
  7282. // err := req.Send()
  7283. // if err == nil { // resp is now filled
  7284. // fmt.Println(resp)
  7285. // }
  7286. //
  7287. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks
  7288. func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
  7289. op := &request.Operation{
  7290. Name: opDescribeExportTasks,
  7291. HTTPMethod: "POST",
  7292. HTTPPath: "/",
  7293. }
  7294. if input == nil {
  7295. input = &DescribeExportTasksInput{}
  7296. }
  7297. output = &DescribeExportTasksOutput{}
  7298. req = c.newRequest(op, input, output)
  7299. return
  7300. }
  7301. // DescribeExportTasks API operation for Amazon Elastic Compute Cloud.
  7302. //
  7303. // Describes one or more of your export tasks.
  7304. //
  7305. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7306. // with awserr.Error's Code and Message methods to get detailed information about
  7307. // the error.
  7308. //
  7309. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7310. // API operation DescribeExportTasks for usage and error information.
  7311. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks
  7312. func (c *EC2) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
  7313. req, out := c.DescribeExportTasksRequest(input)
  7314. return out, req.Send()
  7315. }
  7316. // DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
  7317. // the ability to pass a context and additional request options.
  7318. //
  7319. // See DescribeExportTasks for details on how to use this API operation.
  7320. //
  7321. // The context must be non-nil and will be used for request cancellation. If
  7322. // the context is nil a panic will occur. In the future the SDK may create
  7323. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7324. // for more information on using Contexts.
  7325. func (c *EC2) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
  7326. req, out := c.DescribeExportTasksRequest(input)
  7327. req.SetContext(ctx)
  7328. req.ApplyOptions(opts...)
  7329. return out, req.Send()
  7330. }
  7331. const opDescribeFlowLogs = "DescribeFlowLogs"
  7332. // DescribeFlowLogsRequest generates a "aws/request.Request" representing the
  7333. // client's request for the DescribeFlowLogs operation. The "output" return
  7334. // value can be used to capture response data after the request's "Send" method
  7335. // is called.
  7336. //
  7337. // See DescribeFlowLogs for usage and error information.
  7338. //
  7339. // Creating a request object using this method should be used when you want to inject
  7340. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7341. // access properties on the request object before or after sending the request. If
  7342. // you just want the service response, call the DescribeFlowLogs method directly
  7343. // instead.
  7344. //
  7345. // Note: You must call the "Send" method on the returned request object in order
  7346. // to execute the request.
  7347. //
  7348. // // Example sending a request using the DescribeFlowLogsRequest method.
  7349. // req, resp := client.DescribeFlowLogsRequest(params)
  7350. //
  7351. // err := req.Send()
  7352. // if err == nil { // resp is now filled
  7353. // fmt.Println(resp)
  7354. // }
  7355. //
  7356. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs
  7357. func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *request.Request, output *DescribeFlowLogsOutput) {
  7358. op := &request.Operation{
  7359. Name: opDescribeFlowLogs,
  7360. HTTPMethod: "POST",
  7361. HTTPPath: "/",
  7362. }
  7363. if input == nil {
  7364. input = &DescribeFlowLogsInput{}
  7365. }
  7366. output = &DescribeFlowLogsOutput{}
  7367. req = c.newRequest(op, input, output)
  7368. return
  7369. }
  7370. // DescribeFlowLogs API operation for Amazon Elastic Compute Cloud.
  7371. //
  7372. // Describes one or more flow logs. To view the information in your flow logs
  7373. // (the log streams for the network interfaces), you must use the CloudWatch
  7374. // Logs console or the CloudWatch Logs API.
  7375. //
  7376. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7377. // with awserr.Error's Code and Message methods to get detailed information about
  7378. // the error.
  7379. //
  7380. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7381. // API operation DescribeFlowLogs for usage and error information.
  7382. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs
  7383. func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsOutput, error) {
  7384. req, out := c.DescribeFlowLogsRequest(input)
  7385. return out, req.Send()
  7386. }
  7387. // DescribeFlowLogsWithContext is the same as DescribeFlowLogs with the addition of
  7388. // the ability to pass a context and additional request options.
  7389. //
  7390. // See DescribeFlowLogs for details on how to use this API operation.
  7391. //
  7392. // The context must be non-nil and will be used for request cancellation. If
  7393. // the context is nil a panic will occur. In the future the SDK may create
  7394. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7395. // for more information on using Contexts.
  7396. func (c *EC2) DescribeFlowLogsWithContext(ctx aws.Context, input *DescribeFlowLogsInput, opts ...request.Option) (*DescribeFlowLogsOutput, error) {
  7397. req, out := c.DescribeFlowLogsRequest(input)
  7398. req.SetContext(ctx)
  7399. req.ApplyOptions(opts...)
  7400. return out, req.Send()
  7401. }
  7402. const opDescribeFpgaImages = "DescribeFpgaImages"
  7403. // DescribeFpgaImagesRequest generates a "aws/request.Request" representing the
  7404. // client's request for the DescribeFpgaImages operation. The "output" return
  7405. // value can be used to capture response data after the request's "Send" method
  7406. // is called.
  7407. //
  7408. // See DescribeFpgaImages for usage and error information.
  7409. //
  7410. // Creating a request object using this method should be used when you want to inject
  7411. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7412. // access properties on the request object before or after sending the request. If
  7413. // you just want the service response, call the DescribeFpgaImages method directly
  7414. // instead.
  7415. //
  7416. // Note: You must call the "Send" method on the returned request object in order
  7417. // to execute the request.
  7418. //
  7419. // // Example sending a request using the DescribeFpgaImagesRequest method.
  7420. // req, resp := client.DescribeFpgaImagesRequest(params)
  7421. //
  7422. // err := req.Send()
  7423. // if err == nil { // resp is now filled
  7424. // fmt.Println(resp)
  7425. // }
  7426. //
  7427. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages
  7428. func (c *EC2) DescribeFpgaImagesRequest(input *DescribeFpgaImagesInput) (req *request.Request, output *DescribeFpgaImagesOutput) {
  7429. op := &request.Operation{
  7430. Name: opDescribeFpgaImages,
  7431. HTTPMethod: "POST",
  7432. HTTPPath: "/",
  7433. }
  7434. if input == nil {
  7435. input = &DescribeFpgaImagesInput{}
  7436. }
  7437. output = &DescribeFpgaImagesOutput{}
  7438. req = c.newRequest(op, input, output)
  7439. return
  7440. }
  7441. // DescribeFpgaImages API operation for Amazon Elastic Compute Cloud.
  7442. //
  7443. // Describes one or more available Amazon FPGA Images (AFIs). These include
  7444. // public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts
  7445. // for which you have load permissions.
  7446. //
  7447. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7448. // with awserr.Error's Code and Message methods to get detailed information about
  7449. // the error.
  7450. //
  7451. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7452. // API operation DescribeFpgaImages for usage and error information.
  7453. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages
  7454. func (c *EC2) DescribeFpgaImages(input *DescribeFpgaImagesInput) (*DescribeFpgaImagesOutput, error) {
  7455. req, out := c.DescribeFpgaImagesRequest(input)
  7456. return out, req.Send()
  7457. }
  7458. // DescribeFpgaImagesWithContext is the same as DescribeFpgaImages with the addition of
  7459. // the ability to pass a context and additional request options.
  7460. //
  7461. // See DescribeFpgaImages for details on how to use this API operation.
  7462. //
  7463. // The context must be non-nil and will be used for request cancellation. If
  7464. // the context is nil a panic will occur. In the future the SDK may create
  7465. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7466. // for more information on using Contexts.
  7467. func (c *EC2) DescribeFpgaImagesWithContext(ctx aws.Context, input *DescribeFpgaImagesInput, opts ...request.Option) (*DescribeFpgaImagesOutput, error) {
  7468. req, out := c.DescribeFpgaImagesRequest(input)
  7469. req.SetContext(ctx)
  7470. req.ApplyOptions(opts...)
  7471. return out, req.Send()
  7472. }
  7473. const opDescribeHostReservationOfferings = "DescribeHostReservationOfferings"
  7474. // DescribeHostReservationOfferingsRequest generates a "aws/request.Request" representing the
  7475. // client's request for the DescribeHostReservationOfferings operation. The "output" return
  7476. // value can be used to capture response data after the request's "Send" method
  7477. // is called.
  7478. //
  7479. // See DescribeHostReservationOfferings for usage and error information.
  7480. //
  7481. // Creating a request object using this method should be used when you want to inject
  7482. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7483. // access properties on the request object before or after sending the request. If
  7484. // you just want the service response, call the DescribeHostReservationOfferings method directly
  7485. // instead.
  7486. //
  7487. // Note: You must call the "Send" method on the returned request object in order
  7488. // to execute the request.
  7489. //
  7490. // // Example sending a request using the DescribeHostReservationOfferingsRequest method.
  7491. // req, resp := client.DescribeHostReservationOfferingsRequest(params)
  7492. //
  7493. // err := req.Send()
  7494. // if err == nil { // resp is now filled
  7495. // fmt.Println(resp)
  7496. // }
  7497. //
  7498. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings
  7499. func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReservationOfferingsInput) (req *request.Request, output *DescribeHostReservationOfferingsOutput) {
  7500. op := &request.Operation{
  7501. Name: opDescribeHostReservationOfferings,
  7502. HTTPMethod: "POST",
  7503. HTTPPath: "/",
  7504. }
  7505. if input == nil {
  7506. input = &DescribeHostReservationOfferingsInput{}
  7507. }
  7508. output = &DescribeHostReservationOfferingsOutput{}
  7509. req = c.newRequest(op, input, output)
  7510. return
  7511. }
  7512. // DescribeHostReservationOfferings API operation for Amazon Elastic Compute Cloud.
  7513. //
  7514. // Describes the Dedicated Host Reservations that are available to purchase.
  7515. //
  7516. // The results describe all the Dedicated Host Reservation offerings, including
  7517. // offerings that may not match the instance family and region of your Dedicated
  7518. // Hosts. When purchasing an offering, ensure that the the instance family and
  7519. // region of the offering matches that of the Dedicated Host/s it will be associated
  7520. // with. For an overview of supported instance types, see Dedicated Hosts Overview
  7521. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html)
  7522. // in the Amazon Elastic Compute Cloud User Guide.
  7523. //
  7524. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7525. // with awserr.Error's Code and Message methods to get detailed information about
  7526. // the error.
  7527. //
  7528. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7529. // API operation DescribeHostReservationOfferings for usage and error information.
  7530. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings
  7531. func (c *EC2) DescribeHostReservationOfferings(input *DescribeHostReservationOfferingsInput) (*DescribeHostReservationOfferingsOutput, error) {
  7532. req, out := c.DescribeHostReservationOfferingsRequest(input)
  7533. return out, req.Send()
  7534. }
  7535. // DescribeHostReservationOfferingsWithContext is the same as DescribeHostReservationOfferings with the addition of
  7536. // the ability to pass a context and additional request options.
  7537. //
  7538. // See DescribeHostReservationOfferings for details on how to use this API operation.
  7539. //
  7540. // The context must be non-nil and will be used for request cancellation. If
  7541. // the context is nil a panic will occur. In the future the SDK may create
  7542. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7543. // for more information on using Contexts.
  7544. func (c *EC2) DescribeHostReservationOfferingsWithContext(ctx aws.Context, input *DescribeHostReservationOfferingsInput, opts ...request.Option) (*DescribeHostReservationOfferingsOutput, error) {
  7545. req, out := c.DescribeHostReservationOfferingsRequest(input)
  7546. req.SetContext(ctx)
  7547. req.ApplyOptions(opts...)
  7548. return out, req.Send()
  7549. }
  7550. const opDescribeHostReservations = "DescribeHostReservations"
  7551. // DescribeHostReservationsRequest generates a "aws/request.Request" representing the
  7552. // client's request for the DescribeHostReservations operation. The "output" return
  7553. // value can be used to capture response data after the request's "Send" method
  7554. // is called.
  7555. //
  7556. // See DescribeHostReservations for usage and error information.
  7557. //
  7558. // Creating a request object using this method should be used when you want to inject
  7559. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7560. // access properties on the request object before or after sending the request. If
  7561. // you just want the service response, call the DescribeHostReservations method directly
  7562. // instead.
  7563. //
  7564. // Note: You must call the "Send" method on the returned request object in order
  7565. // to execute the request.
  7566. //
  7567. // // Example sending a request using the DescribeHostReservationsRequest method.
  7568. // req, resp := client.DescribeHostReservationsRequest(params)
  7569. //
  7570. // err := req.Send()
  7571. // if err == nil { // resp is now filled
  7572. // fmt.Println(resp)
  7573. // }
  7574. //
  7575. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations
  7576. func (c *EC2) DescribeHostReservationsRequest(input *DescribeHostReservationsInput) (req *request.Request, output *DescribeHostReservationsOutput) {
  7577. op := &request.Operation{
  7578. Name: opDescribeHostReservations,
  7579. HTTPMethod: "POST",
  7580. HTTPPath: "/",
  7581. }
  7582. if input == nil {
  7583. input = &DescribeHostReservationsInput{}
  7584. }
  7585. output = &DescribeHostReservationsOutput{}
  7586. req = c.newRequest(op, input, output)
  7587. return
  7588. }
  7589. // DescribeHostReservations API operation for Amazon Elastic Compute Cloud.
  7590. //
  7591. // Describes Dedicated Host Reservations which are associated with Dedicated
  7592. // Hosts in your account.
  7593. //
  7594. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7595. // with awserr.Error's Code and Message methods to get detailed information about
  7596. // the error.
  7597. //
  7598. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7599. // API operation DescribeHostReservations for usage and error information.
  7600. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations
  7601. func (c *EC2) DescribeHostReservations(input *DescribeHostReservationsInput) (*DescribeHostReservationsOutput, error) {
  7602. req, out := c.DescribeHostReservationsRequest(input)
  7603. return out, req.Send()
  7604. }
  7605. // DescribeHostReservationsWithContext is the same as DescribeHostReservations with the addition of
  7606. // the ability to pass a context and additional request options.
  7607. //
  7608. // See DescribeHostReservations for details on how to use this API operation.
  7609. //
  7610. // The context must be non-nil and will be used for request cancellation. If
  7611. // the context is nil a panic will occur. In the future the SDK may create
  7612. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7613. // for more information on using Contexts.
  7614. func (c *EC2) DescribeHostReservationsWithContext(ctx aws.Context, input *DescribeHostReservationsInput, opts ...request.Option) (*DescribeHostReservationsOutput, error) {
  7615. req, out := c.DescribeHostReservationsRequest(input)
  7616. req.SetContext(ctx)
  7617. req.ApplyOptions(opts...)
  7618. return out, req.Send()
  7619. }
  7620. const opDescribeHosts = "DescribeHosts"
  7621. // DescribeHostsRequest generates a "aws/request.Request" representing the
  7622. // client's request for the DescribeHosts operation. The "output" return
  7623. // value can be used to capture response data after the request's "Send" method
  7624. // is called.
  7625. //
  7626. // See DescribeHosts for usage and error information.
  7627. //
  7628. // Creating a request object using this method should be used when you want to inject
  7629. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7630. // access properties on the request object before or after sending the request. If
  7631. // you just want the service response, call the DescribeHosts method directly
  7632. // instead.
  7633. //
  7634. // Note: You must call the "Send" method on the returned request object in order
  7635. // to execute the request.
  7636. //
  7637. // // Example sending a request using the DescribeHostsRequest method.
  7638. // req, resp := client.DescribeHostsRequest(params)
  7639. //
  7640. // err := req.Send()
  7641. // if err == nil { // resp is now filled
  7642. // fmt.Println(resp)
  7643. // }
  7644. //
  7645. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts
  7646. func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Request, output *DescribeHostsOutput) {
  7647. op := &request.Operation{
  7648. Name: opDescribeHosts,
  7649. HTTPMethod: "POST",
  7650. HTTPPath: "/",
  7651. }
  7652. if input == nil {
  7653. input = &DescribeHostsInput{}
  7654. }
  7655. output = &DescribeHostsOutput{}
  7656. req = c.newRequest(op, input, output)
  7657. return
  7658. }
  7659. // DescribeHosts API operation for Amazon Elastic Compute Cloud.
  7660. //
  7661. // Describes one or more of your Dedicated Hosts.
  7662. //
  7663. // The results describe only the Dedicated Hosts in the region you're currently
  7664. // using. All listed instances consume capacity on your Dedicated Host. Dedicated
  7665. // Hosts that have recently been released will be listed with the state released.
  7666. //
  7667. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7668. // with awserr.Error's Code and Message methods to get detailed information about
  7669. // the error.
  7670. //
  7671. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7672. // API operation DescribeHosts for usage and error information.
  7673. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts
  7674. func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) {
  7675. req, out := c.DescribeHostsRequest(input)
  7676. return out, req.Send()
  7677. }
  7678. // DescribeHostsWithContext is the same as DescribeHosts with the addition of
  7679. // the ability to pass a context and additional request options.
  7680. //
  7681. // See DescribeHosts for details on how to use this API operation.
  7682. //
  7683. // The context must be non-nil and will be used for request cancellation. If
  7684. // the context is nil a panic will occur. In the future the SDK may create
  7685. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7686. // for more information on using Contexts.
  7687. func (c *EC2) DescribeHostsWithContext(ctx aws.Context, input *DescribeHostsInput, opts ...request.Option) (*DescribeHostsOutput, error) {
  7688. req, out := c.DescribeHostsRequest(input)
  7689. req.SetContext(ctx)
  7690. req.ApplyOptions(opts...)
  7691. return out, req.Send()
  7692. }
  7693. const opDescribeIamInstanceProfileAssociations = "DescribeIamInstanceProfileAssociations"
  7694. // DescribeIamInstanceProfileAssociationsRequest generates a "aws/request.Request" representing the
  7695. // client's request for the DescribeIamInstanceProfileAssociations operation. The "output" return
  7696. // value can be used to capture response data after the request's "Send" method
  7697. // is called.
  7698. //
  7699. // See DescribeIamInstanceProfileAssociations for usage and error information.
  7700. //
  7701. // Creating a request object using this method should be used when you want to inject
  7702. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7703. // access properties on the request object before or after sending the request. If
  7704. // you just want the service response, call the DescribeIamInstanceProfileAssociations method directly
  7705. // instead.
  7706. //
  7707. // Note: You must call the "Send" method on the returned request object in order
  7708. // to execute the request.
  7709. //
  7710. // // Example sending a request using the DescribeIamInstanceProfileAssociationsRequest method.
  7711. // req, resp := client.DescribeIamInstanceProfileAssociationsRequest(params)
  7712. //
  7713. // err := req.Send()
  7714. // if err == nil { // resp is now filled
  7715. // fmt.Println(resp)
  7716. // }
  7717. //
  7718. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations
  7719. func (c *EC2) DescribeIamInstanceProfileAssociationsRequest(input *DescribeIamInstanceProfileAssociationsInput) (req *request.Request, output *DescribeIamInstanceProfileAssociationsOutput) {
  7720. op := &request.Operation{
  7721. Name: opDescribeIamInstanceProfileAssociations,
  7722. HTTPMethod: "POST",
  7723. HTTPPath: "/",
  7724. }
  7725. if input == nil {
  7726. input = &DescribeIamInstanceProfileAssociationsInput{}
  7727. }
  7728. output = &DescribeIamInstanceProfileAssociationsOutput{}
  7729. req = c.newRequest(op, input, output)
  7730. return
  7731. }
  7732. // DescribeIamInstanceProfileAssociations API operation for Amazon Elastic Compute Cloud.
  7733. //
  7734. // Describes your IAM instance profile associations.
  7735. //
  7736. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7737. // with awserr.Error's Code and Message methods to get detailed information about
  7738. // the error.
  7739. //
  7740. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7741. // API operation DescribeIamInstanceProfileAssociations for usage and error information.
  7742. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations
  7743. func (c *EC2) DescribeIamInstanceProfileAssociations(input *DescribeIamInstanceProfileAssociationsInput) (*DescribeIamInstanceProfileAssociationsOutput, error) {
  7744. req, out := c.DescribeIamInstanceProfileAssociationsRequest(input)
  7745. return out, req.Send()
  7746. }
  7747. // DescribeIamInstanceProfileAssociationsWithContext is the same as DescribeIamInstanceProfileAssociations with the addition of
  7748. // the ability to pass a context and additional request options.
  7749. //
  7750. // See DescribeIamInstanceProfileAssociations for details on how to use this API operation.
  7751. //
  7752. // The context must be non-nil and will be used for request cancellation. If
  7753. // the context is nil a panic will occur. In the future the SDK may create
  7754. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7755. // for more information on using Contexts.
  7756. func (c *EC2) DescribeIamInstanceProfileAssociationsWithContext(ctx aws.Context, input *DescribeIamInstanceProfileAssociationsInput, opts ...request.Option) (*DescribeIamInstanceProfileAssociationsOutput, error) {
  7757. req, out := c.DescribeIamInstanceProfileAssociationsRequest(input)
  7758. req.SetContext(ctx)
  7759. req.ApplyOptions(opts...)
  7760. return out, req.Send()
  7761. }
  7762. const opDescribeIdFormat = "DescribeIdFormat"
  7763. // DescribeIdFormatRequest generates a "aws/request.Request" representing the
  7764. // client's request for the DescribeIdFormat operation. The "output" return
  7765. // value can be used to capture response data after the request's "Send" method
  7766. // is called.
  7767. //
  7768. // See DescribeIdFormat for usage and error information.
  7769. //
  7770. // Creating a request object using this method should be used when you want to inject
  7771. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7772. // access properties on the request object before or after sending the request. If
  7773. // you just want the service response, call the DescribeIdFormat method directly
  7774. // instead.
  7775. //
  7776. // Note: You must call the "Send" method on the returned request object in order
  7777. // to execute the request.
  7778. //
  7779. // // Example sending a request using the DescribeIdFormatRequest method.
  7780. // req, resp := client.DescribeIdFormatRequest(params)
  7781. //
  7782. // err := req.Send()
  7783. // if err == nil { // resp is now filled
  7784. // fmt.Println(resp)
  7785. // }
  7786. //
  7787. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat
  7788. func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *request.Request, output *DescribeIdFormatOutput) {
  7789. op := &request.Operation{
  7790. Name: opDescribeIdFormat,
  7791. HTTPMethod: "POST",
  7792. HTTPPath: "/",
  7793. }
  7794. if input == nil {
  7795. input = &DescribeIdFormatInput{}
  7796. }
  7797. output = &DescribeIdFormatOutput{}
  7798. req = c.newRequest(op, input, output)
  7799. return
  7800. }
  7801. // DescribeIdFormat API operation for Amazon Elastic Compute Cloud.
  7802. //
  7803. // Describes the ID format settings for your resources on a per-region basis,
  7804. // for example, to view which resource types are enabled for longer IDs. This
  7805. // request only returns information about resource types whose ID formats can
  7806. // be modified; it does not return information about other resource types.
  7807. //
  7808. // The following resource types support longer IDs: instance | reservation |
  7809. // snapshot | volume.
  7810. //
  7811. // These settings apply to the IAM user who makes the request; they do not apply
  7812. // to the entire AWS account. By default, an IAM user defaults to the same settings
  7813. // as the root user, unless they explicitly override the settings by running
  7814. // the ModifyIdFormat command. Resources created with longer IDs are visible
  7815. // to all IAM users, regardless of these settings and provided that they have
  7816. // permission to use the relevant Describe command for the resource type.
  7817. //
  7818. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7819. // with awserr.Error's Code and Message methods to get detailed information about
  7820. // the error.
  7821. //
  7822. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7823. // API operation DescribeIdFormat for usage and error information.
  7824. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat
  7825. func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) {
  7826. req, out := c.DescribeIdFormatRequest(input)
  7827. return out, req.Send()
  7828. }
  7829. // DescribeIdFormatWithContext is the same as DescribeIdFormat with the addition of
  7830. // the ability to pass a context and additional request options.
  7831. //
  7832. // See DescribeIdFormat for details on how to use this API operation.
  7833. //
  7834. // The context must be non-nil and will be used for request cancellation. If
  7835. // the context is nil a panic will occur. In the future the SDK may create
  7836. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7837. // for more information on using Contexts.
  7838. func (c *EC2) DescribeIdFormatWithContext(ctx aws.Context, input *DescribeIdFormatInput, opts ...request.Option) (*DescribeIdFormatOutput, error) {
  7839. req, out := c.DescribeIdFormatRequest(input)
  7840. req.SetContext(ctx)
  7841. req.ApplyOptions(opts...)
  7842. return out, req.Send()
  7843. }
  7844. const opDescribeIdentityIdFormat = "DescribeIdentityIdFormat"
  7845. // DescribeIdentityIdFormatRequest generates a "aws/request.Request" representing the
  7846. // client's request for the DescribeIdentityIdFormat operation. The "output" return
  7847. // value can be used to capture response data after the request's "Send" method
  7848. // is called.
  7849. //
  7850. // See DescribeIdentityIdFormat for usage and error information.
  7851. //
  7852. // Creating a request object using this method should be used when you want to inject
  7853. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7854. // access properties on the request object before or after sending the request. If
  7855. // you just want the service response, call the DescribeIdentityIdFormat method directly
  7856. // instead.
  7857. //
  7858. // Note: You must call the "Send" method on the returned request object in order
  7859. // to execute the request.
  7860. //
  7861. // // Example sending a request using the DescribeIdentityIdFormatRequest method.
  7862. // req, resp := client.DescribeIdentityIdFormatRequest(params)
  7863. //
  7864. // err := req.Send()
  7865. // if err == nil { // resp is now filled
  7866. // fmt.Println(resp)
  7867. // }
  7868. //
  7869. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat
  7870. func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInput) (req *request.Request, output *DescribeIdentityIdFormatOutput) {
  7871. op := &request.Operation{
  7872. Name: opDescribeIdentityIdFormat,
  7873. HTTPMethod: "POST",
  7874. HTTPPath: "/",
  7875. }
  7876. if input == nil {
  7877. input = &DescribeIdentityIdFormatInput{}
  7878. }
  7879. output = &DescribeIdentityIdFormatOutput{}
  7880. req = c.newRequest(op, input, output)
  7881. return
  7882. }
  7883. // DescribeIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  7884. //
  7885. // Describes the ID format settings for resources for the specified IAM user,
  7886. // IAM role, or root user. For example, you can view the resource types that
  7887. // are enabled for longer IDs. This request only returns information about resource
  7888. // types whose ID formats can be modified; it does not return information about
  7889. // other resource types. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  7890. // in the Amazon Elastic Compute Cloud User Guide.
  7891. //
  7892. // The following resource types support longer IDs: instance | reservation |
  7893. // snapshot | volume.
  7894. //
  7895. // These settings apply to the principal specified in the request. They do not
  7896. // apply to the principal that makes the request.
  7897. //
  7898. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7899. // with awserr.Error's Code and Message methods to get detailed information about
  7900. // the error.
  7901. //
  7902. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7903. // API operation DescribeIdentityIdFormat for usage and error information.
  7904. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat
  7905. func (c *EC2) DescribeIdentityIdFormat(input *DescribeIdentityIdFormatInput) (*DescribeIdentityIdFormatOutput, error) {
  7906. req, out := c.DescribeIdentityIdFormatRequest(input)
  7907. return out, req.Send()
  7908. }
  7909. // DescribeIdentityIdFormatWithContext is the same as DescribeIdentityIdFormat with the addition of
  7910. // the ability to pass a context and additional request options.
  7911. //
  7912. // See DescribeIdentityIdFormat for details on how to use this API operation.
  7913. //
  7914. // The context must be non-nil and will be used for request cancellation. If
  7915. // the context is nil a panic will occur. In the future the SDK may create
  7916. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7917. // for more information on using Contexts.
  7918. func (c *EC2) DescribeIdentityIdFormatWithContext(ctx aws.Context, input *DescribeIdentityIdFormatInput, opts ...request.Option) (*DescribeIdentityIdFormatOutput, error) {
  7919. req, out := c.DescribeIdentityIdFormatRequest(input)
  7920. req.SetContext(ctx)
  7921. req.ApplyOptions(opts...)
  7922. return out, req.Send()
  7923. }
  7924. const opDescribeImageAttribute = "DescribeImageAttribute"
  7925. // DescribeImageAttributeRequest generates a "aws/request.Request" representing the
  7926. // client's request for the DescribeImageAttribute operation. The "output" return
  7927. // value can be used to capture response data after the request's "Send" method
  7928. // is called.
  7929. //
  7930. // See DescribeImageAttribute for usage and error information.
  7931. //
  7932. // Creating a request object using this method should be used when you want to inject
  7933. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7934. // access properties on the request object before or after sending the request. If
  7935. // you just want the service response, call the DescribeImageAttribute method directly
  7936. // instead.
  7937. //
  7938. // Note: You must call the "Send" method on the returned request object in order
  7939. // to execute the request.
  7940. //
  7941. // // Example sending a request using the DescribeImageAttributeRequest method.
  7942. // req, resp := client.DescribeImageAttributeRequest(params)
  7943. //
  7944. // err := req.Send()
  7945. // if err == nil { // resp is now filled
  7946. // fmt.Println(resp)
  7947. // }
  7948. //
  7949. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute
  7950. func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) (req *request.Request, output *DescribeImageAttributeOutput) {
  7951. op := &request.Operation{
  7952. Name: opDescribeImageAttribute,
  7953. HTTPMethod: "POST",
  7954. HTTPPath: "/",
  7955. }
  7956. if input == nil {
  7957. input = &DescribeImageAttributeInput{}
  7958. }
  7959. output = &DescribeImageAttributeOutput{}
  7960. req = c.newRequest(op, input, output)
  7961. return
  7962. }
  7963. // DescribeImageAttribute API operation for Amazon Elastic Compute Cloud.
  7964. //
  7965. // Describes the specified attribute of the specified AMI. You can specify only
  7966. // one attribute at a time.
  7967. //
  7968. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7969. // with awserr.Error's Code and Message methods to get detailed information about
  7970. // the error.
  7971. //
  7972. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7973. // API operation DescribeImageAttribute for usage and error information.
  7974. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute
  7975. func (c *EC2) DescribeImageAttribute(input *DescribeImageAttributeInput) (*DescribeImageAttributeOutput, error) {
  7976. req, out := c.DescribeImageAttributeRequest(input)
  7977. return out, req.Send()
  7978. }
  7979. // DescribeImageAttributeWithContext is the same as DescribeImageAttribute with the addition of
  7980. // the ability to pass a context and additional request options.
  7981. //
  7982. // See DescribeImageAttribute for details on how to use this API operation.
  7983. //
  7984. // The context must be non-nil and will be used for request cancellation. If
  7985. // the context is nil a panic will occur. In the future the SDK may create
  7986. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7987. // for more information on using Contexts.
  7988. func (c *EC2) DescribeImageAttributeWithContext(ctx aws.Context, input *DescribeImageAttributeInput, opts ...request.Option) (*DescribeImageAttributeOutput, error) {
  7989. req, out := c.DescribeImageAttributeRequest(input)
  7990. req.SetContext(ctx)
  7991. req.ApplyOptions(opts...)
  7992. return out, req.Send()
  7993. }
  7994. const opDescribeImages = "DescribeImages"
  7995. // DescribeImagesRequest generates a "aws/request.Request" representing the
  7996. // client's request for the DescribeImages operation. The "output" return
  7997. // value can be used to capture response data after the request's "Send" method
  7998. // is called.
  7999. //
  8000. // See DescribeImages for usage and error information.
  8001. //
  8002. // Creating a request object using this method should be used when you want to inject
  8003. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8004. // access properties on the request object before or after sending the request. If
  8005. // you just want the service response, call the DescribeImages method directly
  8006. // instead.
  8007. //
  8008. // Note: You must call the "Send" method on the returned request object in order
  8009. // to execute the request.
  8010. //
  8011. // // Example sending a request using the DescribeImagesRequest method.
  8012. // req, resp := client.DescribeImagesRequest(params)
  8013. //
  8014. // err := req.Send()
  8015. // if err == nil { // resp is now filled
  8016. // fmt.Println(resp)
  8017. // }
  8018. //
  8019. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages
  8020. func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) {
  8021. op := &request.Operation{
  8022. Name: opDescribeImages,
  8023. HTTPMethod: "POST",
  8024. HTTPPath: "/",
  8025. }
  8026. if input == nil {
  8027. input = &DescribeImagesInput{}
  8028. }
  8029. output = &DescribeImagesOutput{}
  8030. req = c.newRequest(op, input, output)
  8031. return
  8032. }
  8033. // DescribeImages API operation for Amazon Elastic Compute Cloud.
  8034. //
  8035. // Describes one or more of the images (AMIs, AKIs, and ARIs) available to you.
  8036. // Images available to you include public images, private images that you own,
  8037. // and private images owned by other AWS accounts but for which you have explicit
  8038. // launch permissions.
  8039. //
  8040. // Deregistered images are included in the returned results for an unspecified
  8041. // interval after deregistration.
  8042. //
  8043. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8044. // with awserr.Error's Code and Message methods to get detailed information about
  8045. // the error.
  8046. //
  8047. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8048. // API operation DescribeImages for usage and error information.
  8049. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages
  8050. func (c *EC2) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) {
  8051. req, out := c.DescribeImagesRequest(input)
  8052. return out, req.Send()
  8053. }
  8054. // DescribeImagesWithContext is the same as DescribeImages with the addition of
  8055. // the ability to pass a context and additional request options.
  8056. //
  8057. // See DescribeImages for details on how to use this API operation.
  8058. //
  8059. // The context must be non-nil and will be used for request cancellation. If
  8060. // the context is nil a panic will occur. In the future the SDK may create
  8061. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8062. // for more information on using Contexts.
  8063. func (c *EC2) DescribeImagesWithContext(ctx aws.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error) {
  8064. req, out := c.DescribeImagesRequest(input)
  8065. req.SetContext(ctx)
  8066. req.ApplyOptions(opts...)
  8067. return out, req.Send()
  8068. }
  8069. const opDescribeImportImageTasks = "DescribeImportImageTasks"
  8070. // DescribeImportImageTasksRequest generates a "aws/request.Request" representing the
  8071. // client's request for the DescribeImportImageTasks operation. The "output" return
  8072. // value can be used to capture response data after the request's "Send" method
  8073. // is called.
  8074. //
  8075. // See DescribeImportImageTasks for usage and error information.
  8076. //
  8077. // Creating a request object using this method should be used when you want to inject
  8078. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8079. // access properties on the request object before or after sending the request. If
  8080. // you just want the service response, call the DescribeImportImageTasks method directly
  8081. // instead.
  8082. //
  8083. // Note: You must call the "Send" method on the returned request object in order
  8084. // to execute the request.
  8085. //
  8086. // // Example sending a request using the DescribeImportImageTasksRequest method.
  8087. // req, resp := client.DescribeImportImageTasksRequest(params)
  8088. //
  8089. // err := req.Send()
  8090. // if err == nil { // resp is now filled
  8091. // fmt.Println(resp)
  8092. // }
  8093. //
  8094. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks
  8095. func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInput) (req *request.Request, output *DescribeImportImageTasksOutput) {
  8096. op := &request.Operation{
  8097. Name: opDescribeImportImageTasks,
  8098. HTTPMethod: "POST",
  8099. HTTPPath: "/",
  8100. }
  8101. if input == nil {
  8102. input = &DescribeImportImageTasksInput{}
  8103. }
  8104. output = &DescribeImportImageTasksOutput{}
  8105. req = c.newRequest(op, input, output)
  8106. return
  8107. }
  8108. // DescribeImportImageTasks API operation for Amazon Elastic Compute Cloud.
  8109. //
  8110. // Displays details about an import virtual machine or import snapshot tasks
  8111. // that are already created.
  8112. //
  8113. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8114. // with awserr.Error's Code and Message methods to get detailed information about
  8115. // the error.
  8116. //
  8117. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8118. // API operation DescribeImportImageTasks for usage and error information.
  8119. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks
  8120. func (c *EC2) DescribeImportImageTasks(input *DescribeImportImageTasksInput) (*DescribeImportImageTasksOutput, error) {
  8121. req, out := c.DescribeImportImageTasksRequest(input)
  8122. return out, req.Send()
  8123. }
  8124. // DescribeImportImageTasksWithContext is the same as DescribeImportImageTasks with the addition of
  8125. // the ability to pass a context and additional request options.
  8126. //
  8127. // See DescribeImportImageTasks for details on how to use this API operation.
  8128. //
  8129. // The context must be non-nil and will be used for request cancellation. If
  8130. // the context is nil a panic will occur. In the future the SDK may create
  8131. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8132. // for more information on using Contexts.
  8133. func (c *EC2) DescribeImportImageTasksWithContext(ctx aws.Context, input *DescribeImportImageTasksInput, opts ...request.Option) (*DescribeImportImageTasksOutput, error) {
  8134. req, out := c.DescribeImportImageTasksRequest(input)
  8135. req.SetContext(ctx)
  8136. req.ApplyOptions(opts...)
  8137. return out, req.Send()
  8138. }
  8139. const opDescribeImportSnapshotTasks = "DescribeImportSnapshotTasks"
  8140. // DescribeImportSnapshotTasksRequest generates a "aws/request.Request" representing the
  8141. // client's request for the DescribeImportSnapshotTasks operation. The "output" return
  8142. // value can be used to capture response data after the request's "Send" method
  8143. // is called.
  8144. //
  8145. // See DescribeImportSnapshotTasks for usage and error information.
  8146. //
  8147. // Creating a request object using this method should be used when you want to inject
  8148. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8149. // access properties on the request object before or after sending the request. If
  8150. // you just want the service response, call the DescribeImportSnapshotTasks method directly
  8151. // instead.
  8152. //
  8153. // Note: You must call the "Send" method on the returned request object in order
  8154. // to execute the request.
  8155. //
  8156. // // Example sending a request using the DescribeImportSnapshotTasksRequest method.
  8157. // req, resp := client.DescribeImportSnapshotTasksRequest(params)
  8158. //
  8159. // err := req.Send()
  8160. // if err == nil { // resp is now filled
  8161. // fmt.Println(resp)
  8162. // }
  8163. //
  8164. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks
  8165. func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTasksInput) (req *request.Request, output *DescribeImportSnapshotTasksOutput) {
  8166. op := &request.Operation{
  8167. Name: opDescribeImportSnapshotTasks,
  8168. HTTPMethod: "POST",
  8169. HTTPPath: "/",
  8170. }
  8171. if input == nil {
  8172. input = &DescribeImportSnapshotTasksInput{}
  8173. }
  8174. output = &DescribeImportSnapshotTasksOutput{}
  8175. req = c.newRequest(op, input, output)
  8176. return
  8177. }
  8178. // DescribeImportSnapshotTasks API operation for Amazon Elastic Compute Cloud.
  8179. //
  8180. // Describes your import snapshot tasks.
  8181. //
  8182. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8183. // with awserr.Error's Code and Message methods to get detailed information about
  8184. // the error.
  8185. //
  8186. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8187. // API operation DescribeImportSnapshotTasks for usage and error information.
  8188. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks
  8189. func (c *EC2) DescribeImportSnapshotTasks(input *DescribeImportSnapshotTasksInput) (*DescribeImportSnapshotTasksOutput, error) {
  8190. req, out := c.DescribeImportSnapshotTasksRequest(input)
  8191. return out, req.Send()
  8192. }
  8193. // DescribeImportSnapshotTasksWithContext is the same as DescribeImportSnapshotTasks with the addition of
  8194. // the ability to pass a context and additional request options.
  8195. //
  8196. // See DescribeImportSnapshotTasks for details on how to use this API operation.
  8197. //
  8198. // The context must be non-nil and will be used for request cancellation. If
  8199. // the context is nil a panic will occur. In the future the SDK may create
  8200. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8201. // for more information on using Contexts.
  8202. func (c *EC2) DescribeImportSnapshotTasksWithContext(ctx aws.Context, input *DescribeImportSnapshotTasksInput, opts ...request.Option) (*DescribeImportSnapshotTasksOutput, error) {
  8203. req, out := c.DescribeImportSnapshotTasksRequest(input)
  8204. req.SetContext(ctx)
  8205. req.ApplyOptions(opts...)
  8206. return out, req.Send()
  8207. }
  8208. const opDescribeInstanceAttribute = "DescribeInstanceAttribute"
  8209. // DescribeInstanceAttributeRequest generates a "aws/request.Request" representing the
  8210. // client's request for the DescribeInstanceAttribute operation. The "output" return
  8211. // value can be used to capture response data after the request's "Send" method
  8212. // is called.
  8213. //
  8214. // See DescribeInstanceAttribute for usage and error information.
  8215. //
  8216. // Creating a request object using this method should be used when you want to inject
  8217. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8218. // access properties on the request object before or after sending the request. If
  8219. // you just want the service response, call the DescribeInstanceAttribute method directly
  8220. // instead.
  8221. //
  8222. // Note: You must call the "Send" method on the returned request object in order
  8223. // to execute the request.
  8224. //
  8225. // // Example sending a request using the DescribeInstanceAttributeRequest method.
  8226. // req, resp := client.DescribeInstanceAttributeRequest(params)
  8227. //
  8228. // err := req.Send()
  8229. // if err == nil { // resp is now filled
  8230. // fmt.Println(resp)
  8231. // }
  8232. //
  8233. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute
  8234. func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeInput) (req *request.Request, output *DescribeInstanceAttributeOutput) {
  8235. op := &request.Operation{
  8236. Name: opDescribeInstanceAttribute,
  8237. HTTPMethod: "POST",
  8238. HTTPPath: "/",
  8239. }
  8240. if input == nil {
  8241. input = &DescribeInstanceAttributeInput{}
  8242. }
  8243. output = &DescribeInstanceAttributeOutput{}
  8244. req = c.newRequest(op, input, output)
  8245. return
  8246. }
  8247. // DescribeInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  8248. //
  8249. // Describes the specified attribute of the specified instance. You can specify
  8250. // only one attribute at a time. Valid attribute values are: instanceType |
  8251. // kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior
  8252. // | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck |
  8253. // groupSet | ebsOptimized | sriovNetSupport
  8254. //
  8255. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8256. // with awserr.Error's Code and Message methods to get detailed information about
  8257. // the error.
  8258. //
  8259. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8260. // API operation DescribeInstanceAttribute for usage and error information.
  8261. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute
  8262. func (c *EC2) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) {
  8263. req, out := c.DescribeInstanceAttributeRequest(input)
  8264. return out, req.Send()
  8265. }
  8266. // DescribeInstanceAttributeWithContext is the same as DescribeInstanceAttribute with the addition of
  8267. // the ability to pass a context and additional request options.
  8268. //
  8269. // See DescribeInstanceAttribute for details on how to use this API operation.
  8270. //
  8271. // The context must be non-nil and will be used for request cancellation. If
  8272. // the context is nil a panic will occur. In the future the SDK may create
  8273. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8274. // for more information on using Contexts.
  8275. func (c *EC2) DescribeInstanceAttributeWithContext(ctx aws.Context, input *DescribeInstanceAttributeInput, opts ...request.Option) (*DescribeInstanceAttributeOutput, error) {
  8276. req, out := c.DescribeInstanceAttributeRequest(input)
  8277. req.SetContext(ctx)
  8278. req.ApplyOptions(opts...)
  8279. return out, req.Send()
  8280. }
  8281. const opDescribeInstanceStatus = "DescribeInstanceStatus"
  8282. // DescribeInstanceStatusRequest generates a "aws/request.Request" representing the
  8283. // client's request for the DescribeInstanceStatus operation. The "output" return
  8284. // value can be used to capture response data after the request's "Send" method
  8285. // is called.
  8286. //
  8287. // See DescribeInstanceStatus for usage and error information.
  8288. //
  8289. // Creating a request object using this method should be used when you want to inject
  8290. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8291. // access properties on the request object before or after sending the request. If
  8292. // you just want the service response, call the DescribeInstanceStatus method directly
  8293. // instead.
  8294. //
  8295. // Note: You must call the "Send" method on the returned request object in order
  8296. // to execute the request.
  8297. //
  8298. // // Example sending a request using the DescribeInstanceStatusRequest method.
  8299. // req, resp := client.DescribeInstanceStatusRequest(params)
  8300. //
  8301. // err := req.Send()
  8302. // if err == nil { // resp is now filled
  8303. // fmt.Println(resp)
  8304. // }
  8305. //
  8306. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus
  8307. func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) (req *request.Request, output *DescribeInstanceStatusOutput) {
  8308. op := &request.Operation{
  8309. Name: opDescribeInstanceStatus,
  8310. HTTPMethod: "POST",
  8311. HTTPPath: "/",
  8312. Paginator: &request.Paginator{
  8313. InputTokens: []string{"NextToken"},
  8314. OutputTokens: []string{"NextToken"},
  8315. LimitToken: "MaxResults",
  8316. TruncationToken: "",
  8317. },
  8318. }
  8319. if input == nil {
  8320. input = &DescribeInstanceStatusInput{}
  8321. }
  8322. output = &DescribeInstanceStatusOutput{}
  8323. req = c.newRequest(op, input, output)
  8324. return
  8325. }
  8326. // DescribeInstanceStatus API operation for Amazon Elastic Compute Cloud.
  8327. //
  8328. // Describes the status of one or more instances. By default, only running instances
  8329. // are described, unless specified otherwise.
  8330. //
  8331. // Instance status includes the following components:
  8332. //
  8333. // * Status checks - Amazon EC2 performs status checks on running EC2 instances
  8334. // to identify hardware and software issues. For more information, see Status
  8335. // Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html)
  8336. // and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html)
  8337. // in the Amazon Elastic Compute Cloud User Guide.
  8338. //
  8339. // * Scheduled events - Amazon EC2 can schedule events (such as reboot, stop,
  8340. // or terminate) for your instances related to hardware issues, software
  8341. // updates, or system maintenance. For more information, see Scheduled Events
  8342. // for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html)
  8343. // in the Amazon Elastic Compute Cloud User Guide.
  8344. //
  8345. // * Instance state - You can manage your instances from the moment you launch
  8346. // them through their termination. For more information, see Instance Lifecycle
  8347. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  8348. // in the Amazon Elastic Compute Cloud User Guide.
  8349. //
  8350. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8351. // with awserr.Error's Code and Message methods to get detailed information about
  8352. // the error.
  8353. //
  8354. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8355. // API operation DescribeInstanceStatus for usage and error information.
  8356. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus
  8357. func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*DescribeInstanceStatusOutput, error) {
  8358. req, out := c.DescribeInstanceStatusRequest(input)
  8359. return out, req.Send()
  8360. }
  8361. // DescribeInstanceStatusWithContext is the same as DescribeInstanceStatus with the addition of
  8362. // the ability to pass a context and additional request options.
  8363. //
  8364. // See DescribeInstanceStatus for details on how to use this API operation.
  8365. //
  8366. // The context must be non-nil and will be used for request cancellation. If
  8367. // the context is nil a panic will occur. In the future the SDK may create
  8368. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8369. // for more information on using Contexts.
  8370. func (c *EC2) DescribeInstanceStatusWithContext(ctx aws.Context, input *DescribeInstanceStatusInput, opts ...request.Option) (*DescribeInstanceStatusOutput, error) {
  8371. req, out := c.DescribeInstanceStatusRequest(input)
  8372. req.SetContext(ctx)
  8373. req.ApplyOptions(opts...)
  8374. return out, req.Send()
  8375. }
  8376. // DescribeInstanceStatusPages iterates over the pages of a DescribeInstanceStatus operation,
  8377. // calling the "fn" function with the response data for each page. To stop
  8378. // iterating, return false from the fn function.
  8379. //
  8380. // See DescribeInstanceStatus method for more information on how to use this operation.
  8381. //
  8382. // Note: This operation can generate multiple requests to a service.
  8383. //
  8384. // // Example iterating over at most 3 pages of a DescribeInstanceStatus operation.
  8385. // pageNum := 0
  8386. // err := client.DescribeInstanceStatusPages(params,
  8387. // func(page *DescribeInstanceStatusOutput, lastPage bool) bool {
  8388. // pageNum++
  8389. // fmt.Println(page)
  8390. // return pageNum <= 3
  8391. // })
  8392. //
  8393. func (c *EC2) DescribeInstanceStatusPages(input *DescribeInstanceStatusInput, fn func(*DescribeInstanceStatusOutput, bool) bool) error {
  8394. return c.DescribeInstanceStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  8395. }
  8396. // DescribeInstanceStatusPagesWithContext same as DescribeInstanceStatusPages except
  8397. // it takes a Context and allows setting request options on the pages.
  8398. //
  8399. // The context must be non-nil and will be used for request cancellation. If
  8400. // the context is nil a panic will occur. In the future the SDK may create
  8401. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8402. // for more information on using Contexts.
  8403. func (c *EC2) DescribeInstanceStatusPagesWithContext(ctx aws.Context, input *DescribeInstanceStatusInput, fn func(*DescribeInstanceStatusOutput, bool) bool, opts ...request.Option) error {
  8404. p := request.Pagination{
  8405. NewRequest: func() (*request.Request, error) {
  8406. var inCpy *DescribeInstanceStatusInput
  8407. if input != nil {
  8408. tmp := *input
  8409. inCpy = &tmp
  8410. }
  8411. req, _ := c.DescribeInstanceStatusRequest(inCpy)
  8412. req.SetContext(ctx)
  8413. req.ApplyOptions(opts...)
  8414. return req, nil
  8415. },
  8416. }
  8417. cont := true
  8418. for p.Next() && cont {
  8419. cont = fn(p.Page().(*DescribeInstanceStatusOutput), !p.HasNextPage())
  8420. }
  8421. return p.Err()
  8422. }
  8423. const opDescribeInstances = "DescribeInstances"
  8424. // DescribeInstancesRequest generates a "aws/request.Request" representing the
  8425. // client's request for the DescribeInstances operation. The "output" return
  8426. // value can be used to capture response data after the request's "Send" method
  8427. // is called.
  8428. //
  8429. // See DescribeInstances for usage and error information.
  8430. //
  8431. // Creating a request object using this method should be used when you want to inject
  8432. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8433. // access properties on the request object before or after sending the request. If
  8434. // you just want the service response, call the DescribeInstances method directly
  8435. // instead.
  8436. //
  8437. // Note: You must call the "Send" method on the returned request object in order
  8438. // to execute the request.
  8439. //
  8440. // // Example sending a request using the DescribeInstancesRequest method.
  8441. // req, resp := client.DescribeInstancesRequest(params)
  8442. //
  8443. // err := req.Send()
  8444. // if err == nil { // resp is now filled
  8445. // fmt.Println(resp)
  8446. // }
  8447. //
  8448. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances
  8449. func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  8450. op := &request.Operation{
  8451. Name: opDescribeInstances,
  8452. HTTPMethod: "POST",
  8453. HTTPPath: "/",
  8454. Paginator: &request.Paginator{
  8455. InputTokens: []string{"NextToken"},
  8456. OutputTokens: []string{"NextToken"},
  8457. LimitToken: "MaxResults",
  8458. TruncationToken: "",
  8459. },
  8460. }
  8461. if input == nil {
  8462. input = &DescribeInstancesInput{}
  8463. }
  8464. output = &DescribeInstancesOutput{}
  8465. req = c.newRequest(op, input, output)
  8466. return
  8467. }
  8468. // DescribeInstances API operation for Amazon Elastic Compute Cloud.
  8469. //
  8470. // Describes one or more of your instances.
  8471. //
  8472. // If you specify one or more instance IDs, Amazon EC2 returns information for
  8473. // those instances. If you do not specify instance IDs, Amazon EC2 returns information
  8474. // for all relevant instances. If you specify an instance ID that is not valid,
  8475. // an error is returned. If you specify an instance that you do not own, it
  8476. // is not included in the returned results.
  8477. //
  8478. // Recently terminated instances might appear in the returned results. This
  8479. // interval is usually less than one hour.
  8480. //
  8481. // If you describe instances in the rare case where an Availability Zone is
  8482. // experiencing a service disruption and you specify instance IDs that are in
  8483. // the affected zone, or do not specify any instance IDs at all, the call fails.
  8484. // If you describe instances and specify only instance IDs that are in an unaffected
  8485. // zone, the call works normally.
  8486. //
  8487. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8488. // with awserr.Error's Code and Message methods to get detailed information about
  8489. // the error.
  8490. //
  8491. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8492. // API operation DescribeInstances for usage and error information.
  8493. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances
  8494. func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  8495. req, out := c.DescribeInstancesRequest(input)
  8496. return out, req.Send()
  8497. }
  8498. // DescribeInstancesWithContext is the same as DescribeInstances with the addition of
  8499. // the ability to pass a context and additional request options.
  8500. //
  8501. // See DescribeInstances for details on how to use this API operation.
  8502. //
  8503. // The context must be non-nil and will be used for request cancellation. If
  8504. // the context is nil a panic will occur. In the future the SDK may create
  8505. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8506. // for more information on using Contexts.
  8507. func (c *EC2) DescribeInstancesWithContext(ctx aws.Context, input *DescribeInstancesInput, opts ...request.Option) (*DescribeInstancesOutput, error) {
  8508. req, out := c.DescribeInstancesRequest(input)
  8509. req.SetContext(ctx)
  8510. req.ApplyOptions(opts...)
  8511. return out, req.Send()
  8512. }
  8513. // DescribeInstancesPages iterates over the pages of a DescribeInstances operation,
  8514. // calling the "fn" function with the response data for each page. To stop
  8515. // iterating, return false from the fn function.
  8516. //
  8517. // See DescribeInstances method for more information on how to use this operation.
  8518. //
  8519. // Note: This operation can generate multiple requests to a service.
  8520. //
  8521. // // Example iterating over at most 3 pages of a DescribeInstances operation.
  8522. // pageNum := 0
  8523. // err := client.DescribeInstancesPages(params,
  8524. // func(page *DescribeInstancesOutput, lastPage bool) bool {
  8525. // pageNum++
  8526. // fmt.Println(page)
  8527. // return pageNum <= 3
  8528. // })
  8529. //
  8530. func (c *EC2) DescribeInstancesPages(input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool) error {
  8531. return c.DescribeInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  8532. }
  8533. // DescribeInstancesPagesWithContext same as DescribeInstancesPages except
  8534. // it takes a Context and allows setting request options on the pages.
  8535. //
  8536. // The context must be non-nil and will be used for request cancellation. If
  8537. // the context is nil a panic will occur. In the future the SDK may create
  8538. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8539. // for more information on using Contexts.
  8540. func (c *EC2) DescribeInstancesPagesWithContext(ctx aws.Context, input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool, opts ...request.Option) error {
  8541. p := request.Pagination{
  8542. NewRequest: func() (*request.Request, error) {
  8543. var inCpy *DescribeInstancesInput
  8544. if input != nil {
  8545. tmp := *input
  8546. inCpy = &tmp
  8547. }
  8548. req, _ := c.DescribeInstancesRequest(inCpy)
  8549. req.SetContext(ctx)
  8550. req.ApplyOptions(opts...)
  8551. return req, nil
  8552. },
  8553. }
  8554. cont := true
  8555. for p.Next() && cont {
  8556. cont = fn(p.Page().(*DescribeInstancesOutput), !p.HasNextPage())
  8557. }
  8558. return p.Err()
  8559. }
  8560. const opDescribeInternetGateways = "DescribeInternetGateways"
  8561. // DescribeInternetGatewaysRequest generates a "aws/request.Request" representing the
  8562. // client's request for the DescribeInternetGateways operation. The "output" return
  8563. // value can be used to capture response data after the request's "Send" method
  8564. // is called.
  8565. //
  8566. // See DescribeInternetGateways for usage and error information.
  8567. //
  8568. // Creating a request object using this method should be used when you want to inject
  8569. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8570. // access properties on the request object before or after sending the request. If
  8571. // you just want the service response, call the DescribeInternetGateways method directly
  8572. // instead.
  8573. //
  8574. // Note: You must call the "Send" method on the returned request object in order
  8575. // to execute the request.
  8576. //
  8577. // // Example sending a request using the DescribeInternetGatewaysRequest method.
  8578. // req, resp := client.DescribeInternetGatewaysRequest(params)
  8579. //
  8580. // err := req.Send()
  8581. // if err == nil { // resp is now filled
  8582. // fmt.Println(resp)
  8583. // }
  8584. //
  8585. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways
  8586. func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInput) (req *request.Request, output *DescribeInternetGatewaysOutput) {
  8587. op := &request.Operation{
  8588. Name: opDescribeInternetGateways,
  8589. HTTPMethod: "POST",
  8590. HTTPPath: "/",
  8591. }
  8592. if input == nil {
  8593. input = &DescribeInternetGatewaysInput{}
  8594. }
  8595. output = &DescribeInternetGatewaysOutput{}
  8596. req = c.newRequest(op, input, output)
  8597. return
  8598. }
  8599. // DescribeInternetGateways API operation for Amazon Elastic Compute Cloud.
  8600. //
  8601. // Describes one or more of your Internet gateways.
  8602. //
  8603. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8604. // with awserr.Error's Code and Message methods to get detailed information about
  8605. // the error.
  8606. //
  8607. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8608. // API operation DescribeInternetGateways for usage and error information.
  8609. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways
  8610. func (c *EC2) DescribeInternetGateways(input *DescribeInternetGatewaysInput) (*DescribeInternetGatewaysOutput, error) {
  8611. req, out := c.DescribeInternetGatewaysRequest(input)
  8612. return out, req.Send()
  8613. }
  8614. // DescribeInternetGatewaysWithContext is the same as DescribeInternetGateways with the addition of
  8615. // the ability to pass a context and additional request options.
  8616. //
  8617. // See DescribeInternetGateways for details on how to use this API operation.
  8618. //
  8619. // The context must be non-nil and will be used for request cancellation. If
  8620. // the context is nil a panic will occur. In the future the SDK may create
  8621. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8622. // for more information on using Contexts.
  8623. func (c *EC2) DescribeInternetGatewaysWithContext(ctx aws.Context, input *DescribeInternetGatewaysInput, opts ...request.Option) (*DescribeInternetGatewaysOutput, error) {
  8624. req, out := c.DescribeInternetGatewaysRequest(input)
  8625. req.SetContext(ctx)
  8626. req.ApplyOptions(opts...)
  8627. return out, req.Send()
  8628. }
  8629. const opDescribeKeyPairs = "DescribeKeyPairs"
  8630. // DescribeKeyPairsRequest generates a "aws/request.Request" representing the
  8631. // client's request for the DescribeKeyPairs operation. The "output" return
  8632. // value can be used to capture response data after the request's "Send" method
  8633. // is called.
  8634. //
  8635. // See DescribeKeyPairs for usage and error information.
  8636. //
  8637. // Creating a request object using this method should be used when you want to inject
  8638. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8639. // access properties on the request object before or after sending the request. If
  8640. // you just want the service response, call the DescribeKeyPairs method directly
  8641. // instead.
  8642. //
  8643. // Note: You must call the "Send" method on the returned request object in order
  8644. // to execute the request.
  8645. //
  8646. // // Example sending a request using the DescribeKeyPairsRequest method.
  8647. // req, resp := client.DescribeKeyPairsRequest(params)
  8648. //
  8649. // err := req.Send()
  8650. // if err == nil { // resp is now filled
  8651. // fmt.Println(resp)
  8652. // }
  8653. //
  8654. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs
  8655. func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *request.Request, output *DescribeKeyPairsOutput) {
  8656. op := &request.Operation{
  8657. Name: opDescribeKeyPairs,
  8658. HTTPMethod: "POST",
  8659. HTTPPath: "/",
  8660. }
  8661. if input == nil {
  8662. input = &DescribeKeyPairsInput{}
  8663. }
  8664. output = &DescribeKeyPairsOutput{}
  8665. req = c.newRequest(op, input, output)
  8666. return
  8667. }
  8668. // DescribeKeyPairs API operation for Amazon Elastic Compute Cloud.
  8669. //
  8670. // Describes one or more of your key pairs.
  8671. //
  8672. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  8673. // in the Amazon Elastic Compute Cloud User Guide.
  8674. //
  8675. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8676. // with awserr.Error's Code and Message methods to get detailed information about
  8677. // the error.
  8678. //
  8679. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8680. // API operation DescribeKeyPairs for usage and error information.
  8681. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs
  8682. func (c *EC2) DescribeKeyPairs(input *DescribeKeyPairsInput) (*DescribeKeyPairsOutput, error) {
  8683. req, out := c.DescribeKeyPairsRequest(input)
  8684. return out, req.Send()
  8685. }
  8686. // DescribeKeyPairsWithContext is the same as DescribeKeyPairs with the addition of
  8687. // the ability to pass a context and additional request options.
  8688. //
  8689. // See DescribeKeyPairs for details on how to use this API operation.
  8690. //
  8691. // The context must be non-nil and will be used for request cancellation. If
  8692. // the context is nil a panic will occur. In the future the SDK may create
  8693. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8694. // for more information on using Contexts.
  8695. func (c *EC2) DescribeKeyPairsWithContext(ctx aws.Context, input *DescribeKeyPairsInput, opts ...request.Option) (*DescribeKeyPairsOutput, error) {
  8696. req, out := c.DescribeKeyPairsRequest(input)
  8697. req.SetContext(ctx)
  8698. req.ApplyOptions(opts...)
  8699. return out, req.Send()
  8700. }
  8701. const opDescribeMovingAddresses = "DescribeMovingAddresses"
  8702. // DescribeMovingAddressesRequest generates a "aws/request.Request" representing the
  8703. // client's request for the DescribeMovingAddresses operation. The "output" return
  8704. // value can be used to capture response data after the request's "Send" method
  8705. // is called.
  8706. //
  8707. // See DescribeMovingAddresses for usage and error information.
  8708. //
  8709. // Creating a request object using this method should be used when you want to inject
  8710. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8711. // access properties on the request object before or after sending the request. If
  8712. // you just want the service response, call the DescribeMovingAddresses method directly
  8713. // instead.
  8714. //
  8715. // Note: You must call the "Send" method on the returned request object in order
  8716. // to execute the request.
  8717. //
  8718. // // Example sending a request using the DescribeMovingAddressesRequest method.
  8719. // req, resp := client.DescribeMovingAddressesRequest(params)
  8720. //
  8721. // err := req.Send()
  8722. // if err == nil { // resp is now filled
  8723. // fmt.Println(resp)
  8724. // }
  8725. //
  8726. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses
  8727. func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput) (req *request.Request, output *DescribeMovingAddressesOutput) {
  8728. op := &request.Operation{
  8729. Name: opDescribeMovingAddresses,
  8730. HTTPMethod: "POST",
  8731. HTTPPath: "/",
  8732. }
  8733. if input == nil {
  8734. input = &DescribeMovingAddressesInput{}
  8735. }
  8736. output = &DescribeMovingAddressesOutput{}
  8737. req = c.newRequest(op, input, output)
  8738. return
  8739. }
  8740. // DescribeMovingAddresses API operation for Amazon Elastic Compute Cloud.
  8741. //
  8742. // Describes your Elastic IP addresses that are being moved to the EC2-VPC platform,
  8743. // or that are being restored to the EC2-Classic platform. This request does
  8744. // not return information about any other Elastic IP addresses in your account.
  8745. //
  8746. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8747. // with awserr.Error's Code and Message methods to get detailed information about
  8748. // the error.
  8749. //
  8750. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8751. // API operation DescribeMovingAddresses for usage and error information.
  8752. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses
  8753. func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*DescribeMovingAddressesOutput, error) {
  8754. req, out := c.DescribeMovingAddressesRequest(input)
  8755. return out, req.Send()
  8756. }
  8757. // DescribeMovingAddressesWithContext is the same as DescribeMovingAddresses with the addition of
  8758. // the ability to pass a context and additional request options.
  8759. //
  8760. // See DescribeMovingAddresses for details on how to use this API operation.
  8761. //
  8762. // The context must be non-nil and will be used for request cancellation. If
  8763. // the context is nil a panic will occur. In the future the SDK may create
  8764. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8765. // for more information on using Contexts.
  8766. func (c *EC2) DescribeMovingAddressesWithContext(ctx aws.Context, input *DescribeMovingAddressesInput, opts ...request.Option) (*DescribeMovingAddressesOutput, error) {
  8767. req, out := c.DescribeMovingAddressesRequest(input)
  8768. req.SetContext(ctx)
  8769. req.ApplyOptions(opts...)
  8770. return out, req.Send()
  8771. }
  8772. const opDescribeNatGateways = "DescribeNatGateways"
  8773. // DescribeNatGatewaysRequest generates a "aws/request.Request" representing the
  8774. // client's request for the DescribeNatGateways operation. The "output" return
  8775. // value can be used to capture response data after the request's "Send" method
  8776. // is called.
  8777. //
  8778. // See DescribeNatGateways for usage and error information.
  8779. //
  8780. // Creating a request object using this method should be used when you want to inject
  8781. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8782. // access properties on the request object before or after sending the request. If
  8783. // you just want the service response, call the DescribeNatGateways method directly
  8784. // instead.
  8785. //
  8786. // Note: You must call the "Send" method on the returned request object in order
  8787. // to execute the request.
  8788. //
  8789. // // Example sending a request using the DescribeNatGatewaysRequest method.
  8790. // req, resp := client.DescribeNatGatewaysRequest(params)
  8791. //
  8792. // err := req.Send()
  8793. // if err == nil { // resp is now filled
  8794. // fmt.Println(resp)
  8795. // }
  8796. //
  8797. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways
  8798. func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req *request.Request, output *DescribeNatGatewaysOutput) {
  8799. op := &request.Operation{
  8800. Name: opDescribeNatGateways,
  8801. HTTPMethod: "POST",
  8802. HTTPPath: "/",
  8803. Paginator: &request.Paginator{
  8804. InputTokens: []string{"NextToken"},
  8805. OutputTokens: []string{"NextToken"},
  8806. LimitToken: "MaxResults",
  8807. TruncationToken: "",
  8808. },
  8809. }
  8810. if input == nil {
  8811. input = &DescribeNatGatewaysInput{}
  8812. }
  8813. output = &DescribeNatGatewaysOutput{}
  8814. req = c.newRequest(op, input, output)
  8815. return
  8816. }
  8817. // DescribeNatGateways API operation for Amazon Elastic Compute Cloud.
  8818. //
  8819. // Describes one or more of the your NAT gateways.
  8820. //
  8821. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8822. // with awserr.Error's Code and Message methods to get detailed information about
  8823. // the error.
  8824. //
  8825. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8826. // API operation DescribeNatGateways for usage and error information.
  8827. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways
  8828. func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) {
  8829. req, out := c.DescribeNatGatewaysRequest(input)
  8830. return out, req.Send()
  8831. }
  8832. // DescribeNatGatewaysWithContext is the same as DescribeNatGateways with the addition of
  8833. // the ability to pass a context and additional request options.
  8834. //
  8835. // See DescribeNatGateways for details on how to use this API operation.
  8836. //
  8837. // The context must be non-nil and will be used for request cancellation. If
  8838. // the context is nil a panic will occur. In the future the SDK may create
  8839. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8840. // for more information on using Contexts.
  8841. func (c *EC2) DescribeNatGatewaysWithContext(ctx aws.Context, input *DescribeNatGatewaysInput, opts ...request.Option) (*DescribeNatGatewaysOutput, error) {
  8842. req, out := c.DescribeNatGatewaysRequest(input)
  8843. req.SetContext(ctx)
  8844. req.ApplyOptions(opts...)
  8845. return out, req.Send()
  8846. }
  8847. // DescribeNatGatewaysPages iterates over the pages of a DescribeNatGateways operation,
  8848. // calling the "fn" function with the response data for each page. To stop
  8849. // iterating, return false from the fn function.
  8850. //
  8851. // See DescribeNatGateways method for more information on how to use this operation.
  8852. //
  8853. // Note: This operation can generate multiple requests to a service.
  8854. //
  8855. // // Example iterating over at most 3 pages of a DescribeNatGateways operation.
  8856. // pageNum := 0
  8857. // err := client.DescribeNatGatewaysPages(params,
  8858. // func(page *DescribeNatGatewaysOutput, lastPage bool) bool {
  8859. // pageNum++
  8860. // fmt.Println(page)
  8861. // return pageNum <= 3
  8862. // })
  8863. //
  8864. func (c *EC2) DescribeNatGatewaysPages(input *DescribeNatGatewaysInput, fn func(*DescribeNatGatewaysOutput, bool) bool) error {
  8865. return c.DescribeNatGatewaysPagesWithContext(aws.BackgroundContext(), input, fn)
  8866. }
  8867. // DescribeNatGatewaysPagesWithContext same as DescribeNatGatewaysPages except
  8868. // it takes a Context and allows setting request options on the pages.
  8869. //
  8870. // The context must be non-nil and will be used for request cancellation. If
  8871. // the context is nil a panic will occur. In the future the SDK may create
  8872. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8873. // for more information on using Contexts.
  8874. func (c *EC2) DescribeNatGatewaysPagesWithContext(ctx aws.Context, input *DescribeNatGatewaysInput, fn func(*DescribeNatGatewaysOutput, bool) bool, opts ...request.Option) error {
  8875. p := request.Pagination{
  8876. NewRequest: func() (*request.Request, error) {
  8877. var inCpy *DescribeNatGatewaysInput
  8878. if input != nil {
  8879. tmp := *input
  8880. inCpy = &tmp
  8881. }
  8882. req, _ := c.DescribeNatGatewaysRequest(inCpy)
  8883. req.SetContext(ctx)
  8884. req.ApplyOptions(opts...)
  8885. return req, nil
  8886. },
  8887. }
  8888. cont := true
  8889. for p.Next() && cont {
  8890. cont = fn(p.Page().(*DescribeNatGatewaysOutput), !p.HasNextPage())
  8891. }
  8892. return p.Err()
  8893. }
  8894. const opDescribeNetworkAcls = "DescribeNetworkAcls"
  8895. // DescribeNetworkAclsRequest generates a "aws/request.Request" representing the
  8896. // client's request for the DescribeNetworkAcls operation. The "output" return
  8897. // value can be used to capture response data after the request's "Send" method
  8898. // is called.
  8899. //
  8900. // See DescribeNetworkAcls for usage and error information.
  8901. //
  8902. // Creating a request object using this method should be used when you want to inject
  8903. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8904. // access properties on the request object before or after sending the request. If
  8905. // you just want the service response, call the DescribeNetworkAcls method directly
  8906. // instead.
  8907. //
  8908. // Note: You must call the "Send" method on the returned request object in order
  8909. // to execute the request.
  8910. //
  8911. // // Example sending a request using the DescribeNetworkAclsRequest method.
  8912. // req, resp := client.DescribeNetworkAclsRequest(params)
  8913. //
  8914. // err := req.Send()
  8915. // if err == nil { // resp is now filled
  8916. // fmt.Println(resp)
  8917. // }
  8918. //
  8919. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls
  8920. func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req *request.Request, output *DescribeNetworkAclsOutput) {
  8921. op := &request.Operation{
  8922. Name: opDescribeNetworkAcls,
  8923. HTTPMethod: "POST",
  8924. HTTPPath: "/",
  8925. }
  8926. if input == nil {
  8927. input = &DescribeNetworkAclsInput{}
  8928. }
  8929. output = &DescribeNetworkAclsOutput{}
  8930. req = c.newRequest(op, input, output)
  8931. return
  8932. }
  8933. // DescribeNetworkAcls API operation for Amazon Elastic Compute Cloud.
  8934. //
  8935. // Describes one or more of your network ACLs.
  8936. //
  8937. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  8938. // in the Amazon Virtual Private Cloud User Guide.
  8939. //
  8940. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8941. // with awserr.Error's Code and Message methods to get detailed information about
  8942. // the error.
  8943. //
  8944. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8945. // API operation DescribeNetworkAcls for usage and error information.
  8946. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls
  8947. func (c *EC2) DescribeNetworkAcls(input *DescribeNetworkAclsInput) (*DescribeNetworkAclsOutput, error) {
  8948. req, out := c.DescribeNetworkAclsRequest(input)
  8949. return out, req.Send()
  8950. }
  8951. // DescribeNetworkAclsWithContext is the same as DescribeNetworkAcls with the addition of
  8952. // the ability to pass a context and additional request options.
  8953. //
  8954. // See DescribeNetworkAcls for details on how to use this API operation.
  8955. //
  8956. // The context must be non-nil and will be used for request cancellation. If
  8957. // the context is nil a panic will occur. In the future the SDK may create
  8958. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8959. // for more information on using Contexts.
  8960. func (c *EC2) DescribeNetworkAclsWithContext(ctx aws.Context, input *DescribeNetworkAclsInput, opts ...request.Option) (*DescribeNetworkAclsOutput, error) {
  8961. req, out := c.DescribeNetworkAclsRequest(input)
  8962. req.SetContext(ctx)
  8963. req.ApplyOptions(opts...)
  8964. return out, req.Send()
  8965. }
  8966. const opDescribeNetworkInterfaceAttribute = "DescribeNetworkInterfaceAttribute"
  8967. // DescribeNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  8968. // client's request for the DescribeNetworkInterfaceAttribute operation. The "output" return
  8969. // value can be used to capture response data after the request's "Send" method
  8970. // is called.
  8971. //
  8972. // See DescribeNetworkInterfaceAttribute for usage and error information.
  8973. //
  8974. // Creating a request object using this method should be used when you want to inject
  8975. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8976. // access properties on the request object before or after sending the request. If
  8977. // you just want the service response, call the DescribeNetworkInterfaceAttribute method directly
  8978. // instead.
  8979. //
  8980. // Note: You must call the "Send" method on the returned request object in order
  8981. // to execute the request.
  8982. //
  8983. // // Example sending a request using the DescribeNetworkInterfaceAttributeRequest method.
  8984. // req, resp := client.DescribeNetworkInterfaceAttributeRequest(params)
  8985. //
  8986. // err := req.Send()
  8987. // if err == nil { // resp is now filled
  8988. // fmt.Println(resp)
  8989. // }
  8990. //
  8991. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute
  8992. func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInterfaceAttributeInput) (req *request.Request, output *DescribeNetworkInterfaceAttributeOutput) {
  8993. op := &request.Operation{
  8994. Name: opDescribeNetworkInterfaceAttribute,
  8995. HTTPMethod: "POST",
  8996. HTTPPath: "/",
  8997. }
  8998. if input == nil {
  8999. input = &DescribeNetworkInterfaceAttributeInput{}
  9000. }
  9001. output = &DescribeNetworkInterfaceAttributeOutput{}
  9002. req = c.newRequest(op, input, output)
  9003. return
  9004. }
  9005. // DescribeNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  9006. //
  9007. // Describes a network interface attribute. You can specify only one attribute
  9008. // at a time.
  9009. //
  9010. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9011. // with awserr.Error's Code and Message methods to get detailed information about
  9012. // the error.
  9013. //
  9014. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9015. // API operation DescribeNetworkInterfaceAttribute for usage and error information.
  9016. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute
  9017. func (c *EC2) DescribeNetworkInterfaceAttribute(input *DescribeNetworkInterfaceAttributeInput) (*DescribeNetworkInterfaceAttributeOutput, error) {
  9018. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  9019. return out, req.Send()
  9020. }
  9021. // DescribeNetworkInterfaceAttributeWithContext is the same as DescribeNetworkInterfaceAttribute with the addition of
  9022. // the ability to pass a context and additional request options.
  9023. //
  9024. // See DescribeNetworkInterfaceAttribute for details on how to use this API operation.
  9025. //
  9026. // The context must be non-nil and will be used for request cancellation. If
  9027. // the context is nil a panic will occur. In the future the SDK may create
  9028. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9029. // for more information on using Contexts.
  9030. func (c *EC2) DescribeNetworkInterfaceAttributeWithContext(ctx aws.Context, input *DescribeNetworkInterfaceAttributeInput, opts ...request.Option) (*DescribeNetworkInterfaceAttributeOutput, error) {
  9031. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  9032. req.SetContext(ctx)
  9033. req.ApplyOptions(opts...)
  9034. return out, req.Send()
  9035. }
  9036. const opDescribeNetworkInterfaces = "DescribeNetworkInterfaces"
  9037. // DescribeNetworkInterfacesRequest generates a "aws/request.Request" representing the
  9038. // client's request for the DescribeNetworkInterfaces operation. The "output" return
  9039. // value can be used to capture response data after the request's "Send" method
  9040. // is called.
  9041. //
  9042. // See DescribeNetworkInterfaces for usage and error information.
  9043. //
  9044. // Creating a request object using this method should be used when you want to inject
  9045. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9046. // access properties on the request object before or after sending the request. If
  9047. // you just want the service response, call the DescribeNetworkInterfaces method directly
  9048. // instead.
  9049. //
  9050. // Note: You must call the "Send" method on the returned request object in order
  9051. // to execute the request.
  9052. //
  9053. // // Example sending a request using the DescribeNetworkInterfacesRequest method.
  9054. // req, resp := client.DescribeNetworkInterfacesRequest(params)
  9055. //
  9056. // err := req.Send()
  9057. // if err == nil { // resp is now filled
  9058. // fmt.Println(resp)
  9059. // }
  9060. //
  9061. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces
  9062. func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesInput) (req *request.Request, output *DescribeNetworkInterfacesOutput) {
  9063. op := &request.Operation{
  9064. Name: opDescribeNetworkInterfaces,
  9065. HTTPMethod: "POST",
  9066. HTTPPath: "/",
  9067. }
  9068. if input == nil {
  9069. input = &DescribeNetworkInterfacesInput{}
  9070. }
  9071. output = &DescribeNetworkInterfacesOutput{}
  9072. req = c.newRequest(op, input, output)
  9073. return
  9074. }
  9075. // DescribeNetworkInterfaces API operation for Amazon Elastic Compute Cloud.
  9076. //
  9077. // Describes one or more of your network interfaces.
  9078. //
  9079. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9080. // with awserr.Error's Code and Message methods to get detailed information about
  9081. // the error.
  9082. //
  9083. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9084. // API operation DescribeNetworkInterfaces for usage and error information.
  9085. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces
  9086. func (c *EC2) DescribeNetworkInterfaces(input *DescribeNetworkInterfacesInput) (*DescribeNetworkInterfacesOutput, error) {
  9087. req, out := c.DescribeNetworkInterfacesRequest(input)
  9088. return out, req.Send()
  9089. }
  9090. // DescribeNetworkInterfacesWithContext is the same as DescribeNetworkInterfaces with the addition of
  9091. // the ability to pass a context and additional request options.
  9092. //
  9093. // See DescribeNetworkInterfaces for details on how to use this API operation.
  9094. //
  9095. // The context must be non-nil and will be used for request cancellation. If
  9096. // the context is nil a panic will occur. In the future the SDK may create
  9097. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9098. // for more information on using Contexts.
  9099. func (c *EC2) DescribeNetworkInterfacesWithContext(ctx aws.Context, input *DescribeNetworkInterfacesInput, opts ...request.Option) (*DescribeNetworkInterfacesOutput, error) {
  9100. req, out := c.DescribeNetworkInterfacesRequest(input)
  9101. req.SetContext(ctx)
  9102. req.ApplyOptions(opts...)
  9103. return out, req.Send()
  9104. }
  9105. const opDescribePlacementGroups = "DescribePlacementGroups"
  9106. // DescribePlacementGroupsRequest generates a "aws/request.Request" representing the
  9107. // client's request for the DescribePlacementGroups operation. The "output" return
  9108. // value can be used to capture response data after the request's "Send" method
  9109. // is called.
  9110. //
  9111. // See DescribePlacementGroups for usage and error information.
  9112. //
  9113. // Creating a request object using this method should be used when you want to inject
  9114. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9115. // access properties on the request object before or after sending the request. If
  9116. // you just want the service response, call the DescribePlacementGroups method directly
  9117. // instead.
  9118. //
  9119. // Note: You must call the "Send" method on the returned request object in order
  9120. // to execute the request.
  9121. //
  9122. // // Example sending a request using the DescribePlacementGroupsRequest method.
  9123. // req, resp := client.DescribePlacementGroupsRequest(params)
  9124. //
  9125. // err := req.Send()
  9126. // if err == nil { // resp is now filled
  9127. // fmt.Println(resp)
  9128. // }
  9129. //
  9130. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups
  9131. func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput) (req *request.Request, output *DescribePlacementGroupsOutput) {
  9132. op := &request.Operation{
  9133. Name: opDescribePlacementGroups,
  9134. HTTPMethod: "POST",
  9135. HTTPPath: "/",
  9136. }
  9137. if input == nil {
  9138. input = &DescribePlacementGroupsInput{}
  9139. }
  9140. output = &DescribePlacementGroupsOutput{}
  9141. req = c.newRequest(op, input, output)
  9142. return
  9143. }
  9144. // DescribePlacementGroups API operation for Amazon Elastic Compute Cloud.
  9145. //
  9146. // Describes one or more of your placement groups. For more information about
  9147. // placement groups and cluster instances, see Cluster Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html)
  9148. // in the Amazon Elastic Compute Cloud User Guide.
  9149. //
  9150. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9151. // with awserr.Error's Code and Message methods to get detailed information about
  9152. // the error.
  9153. //
  9154. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9155. // API operation DescribePlacementGroups for usage and error information.
  9156. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups
  9157. func (c *EC2) DescribePlacementGroups(input *DescribePlacementGroupsInput) (*DescribePlacementGroupsOutput, error) {
  9158. req, out := c.DescribePlacementGroupsRequest(input)
  9159. return out, req.Send()
  9160. }
  9161. // DescribePlacementGroupsWithContext is the same as DescribePlacementGroups with the addition of
  9162. // the ability to pass a context and additional request options.
  9163. //
  9164. // See DescribePlacementGroups for details on how to use this API operation.
  9165. //
  9166. // The context must be non-nil and will be used for request cancellation. If
  9167. // the context is nil a panic will occur. In the future the SDK may create
  9168. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9169. // for more information on using Contexts.
  9170. func (c *EC2) DescribePlacementGroupsWithContext(ctx aws.Context, input *DescribePlacementGroupsInput, opts ...request.Option) (*DescribePlacementGroupsOutput, error) {
  9171. req, out := c.DescribePlacementGroupsRequest(input)
  9172. req.SetContext(ctx)
  9173. req.ApplyOptions(opts...)
  9174. return out, req.Send()
  9175. }
  9176. const opDescribePrefixLists = "DescribePrefixLists"
  9177. // DescribePrefixListsRequest generates a "aws/request.Request" representing the
  9178. // client's request for the DescribePrefixLists operation. The "output" return
  9179. // value can be used to capture response data after the request's "Send" method
  9180. // is called.
  9181. //
  9182. // See DescribePrefixLists for usage and error information.
  9183. //
  9184. // Creating a request object using this method should be used when you want to inject
  9185. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9186. // access properties on the request object before or after sending the request. If
  9187. // you just want the service response, call the DescribePrefixLists method directly
  9188. // instead.
  9189. //
  9190. // Note: You must call the "Send" method on the returned request object in order
  9191. // to execute the request.
  9192. //
  9193. // // Example sending a request using the DescribePrefixListsRequest method.
  9194. // req, resp := client.DescribePrefixListsRequest(params)
  9195. //
  9196. // err := req.Send()
  9197. // if err == nil { // resp is now filled
  9198. // fmt.Println(resp)
  9199. // }
  9200. //
  9201. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists
  9202. func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req *request.Request, output *DescribePrefixListsOutput) {
  9203. op := &request.Operation{
  9204. Name: opDescribePrefixLists,
  9205. HTTPMethod: "POST",
  9206. HTTPPath: "/",
  9207. }
  9208. if input == nil {
  9209. input = &DescribePrefixListsInput{}
  9210. }
  9211. output = &DescribePrefixListsOutput{}
  9212. req = c.newRequest(op, input, output)
  9213. return
  9214. }
  9215. // DescribePrefixLists API operation for Amazon Elastic Compute Cloud.
  9216. //
  9217. // Describes available AWS services in a prefix list format, which includes
  9218. // the prefix list name and prefix list ID of the service and the IP address
  9219. // range for the service. A prefix list ID is required for creating an outbound
  9220. // security group rule that allows traffic from a VPC to access an AWS service
  9221. // through a VPC endpoint.
  9222. //
  9223. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9224. // with awserr.Error's Code and Message methods to get detailed information about
  9225. // the error.
  9226. //
  9227. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9228. // API operation DescribePrefixLists for usage and error information.
  9229. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists
  9230. func (c *EC2) DescribePrefixLists(input *DescribePrefixListsInput) (*DescribePrefixListsOutput, error) {
  9231. req, out := c.DescribePrefixListsRequest(input)
  9232. return out, req.Send()
  9233. }
  9234. // DescribePrefixListsWithContext is the same as DescribePrefixLists with the addition of
  9235. // the ability to pass a context and additional request options.
  9236. //
  9237. // See DescribePrefixLists for details on how to use this API operation.
  9238. //
  9239. // The context must be non-nil and will be used for request cancellation. If
  9240. // the context is nil a panic will occur. In the future the SDK may create
  9241. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9242. // for more information on using Contexts.
  9243. func (c *EC2) DescribePrefixListsWithContext(ctx aws.Context, input *DescribePrefixListsInput, opts ...request.Option) (*DescribePrefixListsOutput, error) {
  9244. req, out := c.DescribePrefixListsRequest(input)
  9245. req.SetContext(ctx)
  9246. req.ApplyOptions(opts...)
  9247. return out, req.Send()
  9248. }
  9249. const opDescribeRegions = "DescribeRegions"
  9250. // DescribeRegionsRequest generates a "aws/request.Request" representing the
  9251. // client's request for the DescribeRegions operation. The "output" return
  9252. // value can be used to capture response data after the request's "Send" method
  9253. // is called.
  9254. //
  9255. // See DescribeRegions for usage and error information.
  9256. //
  9257. // Creating a request object using this method should be used when you want to inject
  9258. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9259. // access properties on the request object before or after sending the request. If
  9260. // you just want the service response, call the DescribeRegions method directly
  9261. // instead.
  9262. //
  9263. // Note: You must call the "Send" method on the returned request object in order
  9264. // to execute the request.
  9265. //
  9266. // // Example sending a request using the DescribeRegionsRequest method.
  9267. // req, resp := client.DescribeRegionsRequest(params)
  9268. //
  9269. // err := req.Send()
  9270. // if err == nil { // resp is now filled
  9271. // fmt.Println(resp)
  9272. // }
  9273. //
  9274. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions
  9275. func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request.Request, output *DescribeRegionsOutput) {
  9276. op := &request.Operation{
  9277. Name: opDescribeRegions,
  9278. HTTPMethod: "POST",
  9279. HTTPPath: "/",
  9280. }
  9281. if input == nil {
  9282. input = &DescribeRegionsInput{}
  9283. }
  9284. output = &DescribeRegionsOutput{}
  9285. req = c.newRequest(op, input, output)
  9286. return
  9287. }
  9288. // DescribeRegions API operation for Amazon Elastic Compute Cloud.
  9289. //
  9290. // Describes one or more regions that are currently available to you.
  9291. //
  9292. // For a list of the regions supported by Amazon EC2, see Regions and Endpoints
  9293. // (http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region).
  9294. //
  9295. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9296. // with awserr.Error's Code and Message methods to get detailed information about
  9297. // the error.
  9298. //
  9299. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9300. // API operation DescribeRegions for usage and error information.
  9301. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions
  9302. func (c *EC2) DescribeRegions(input *DescribeRegionsInput) (*DescribeRegionsOutput, error) {
  9303. req, out := c.DescribeRegionsRequest(input)
  9304. return out, req.Send()
  9305. }
  9306. // DescribeRegionsWithContext is the same as DescribeRegions with the addition of
  9307. // the ability to pass a context and additional request options.
  9308. //
  9309. // See DescribeRegions for details on how to use this API operation.
  9310. //
  9311. // The context must be non-nil and will be used for request cancellation. If
  9312. // the context is nil a panic will occur. In the future the SDK may create
  9313. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9314. // for more information on using Contexts.
  9315. func (c *EC2) DescribeRegionsWithContext(ctx aws.Context, input *DescribeRegionsInput, opts ...request.Option) (*DescribeRegionsOutput, error) {
  9316. req, out := c.DescribeRegionsRequest(input)
  9317. req.SetContext(ctx)
  9318. req.ApplyOptions(opts...)
  9319. return out, req.Send()
  9320. }
  9321. const opDescribeReservedInstances = "DescribeReservedInstances"
  9322. // DescribeReservedInstancesRequest generates a "aws/request.Request" representing the
  9323. // client's request for the DescribeReservedInstances operation. The "output" return
  9324. // value can be used to capture response data after the request's "Send" method
  9325. // is called.
  9326. //
  9327. // See DescribeReservedInstances for usage and error information.
  9328. //
  9329. // Creating a request object using this method should be used when you want to inject
  9330. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9331. // access properties on the request object before or after sending the request. If
  9332. // you just want the service response, call the DescribeReservedInstances method directly
  9333. // instead.
  9334. //
  9335. // Note: You must call the "Send" method on the returned request object in order
  9336. // to execute the request.
  9337. //
  9338. // // Example sending a request using the DescribeReservedInstancesRequest method.
  9339. // req, resp := client.DescribeReservedInstancesRequest(params)
  9340. //
  9341. // err := req.Send()
  9342. // if err == nil { // resp is now filled
  9343. // fmt.Println(resp)
  9344. // }
  9345. //
  9346. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances
  9347. func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesInput) (req *request.Request, output *DescribeReservedInstancesOutput) {
  9348. op := &request.Operation{
  9349. Name: opDescribeReservedInstances,
  9350. HTTPMethod: "POST",
  9351. HTTPPath: "/",
  9352. }
  9353. if input == nil {
  9354. input = &DescribeReservedInstancesInput{}
  9355. }
  9356. output = &DescribeReservedInstancesOutput{}
  9357. req = c.newRequest(op, input, output)
  9358. return
  9359. }
  9360. // DescribeReservedInstances API operation for Amazon Elastic Compute Cloud.
  9361. //
  9362. // Describes one or more of the Reserved Instances that you purchased.
  9363. //
  9364. // For more information about Reserved Instances, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  9365. // in the Amazon Elastic Compute Cloud User Guide.
  9366. //
  9367. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9368. // with awserr.Error's Code and Message methods to get detailed information about
  9369. // the error.
  9370. //
  9371. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9372. // API operation DescribeReservedInstances for usage and error information.
  9373. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances
  9374. func (c *EC2) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) {
  9375. req, out := c.DescribeReservedInstancesRequest(input)
  9376. return out, req.Send()
  9377. }
  9378. // DescribeReservedInstancesWithContext is the same as DescribeReservedInstances with the addition of
  9379. // the ability to pass a context and additional request options.
  9380. //
  9381. // See DescribeReservedInstances for details on how to use this API operation.
  9382. //
  9383. // The context must be non-nil and will be used for request cancellation. If
  9384. // the context is nil a panic will occur. In the future the SDK may create
  9385. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9386. // for more information on using Contexts.
  9387. func (c *EC2) DescribeReservedInstancesWithContext(ctx aws.Context, input *DescribeReservedInstancesInput, opts ...request.Option) (*DescribeReservedInstancesOutput, error) {
  9388. req, out := c.DescribeReservedInstancesRequest(input)
  9389. req.SetContext(ctx)
  9390. req.ApplyOptions(opts...)
  9391. return out, req.Send()
  9392. }
  9393. const opDescribeReservedInstancesListings = "DescribeReservedInstancesListings"
  9394. // DescribeReservedInstancesListingsRequest generates a "aws/request.Request" representing the
  9395. // client's request for the DescribeReservedInstancesListings operation. The "output" return
  9396. // value can be used to capture response data after the request's "Send" method
  9397. // is called.
  9398. //
  9399. // See DescribeReservedInstancesListings for usage and error information.
  9400. //
  9401. // Creating a request object using this method should be used when you want to inject
  9402. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9403. // access properties on the request object before or after sending the request. If
  9404. // you just want the service response, call the DescribeReservedInstancesListings method directly
  9405. // instead.
  9406. //
  9407. // Note: You must call the "Send" method on the returned request object in order
  9408. // to execute the request.
  9409. //
  9410. // // Example sending a request using the DescribeReservedInstancesListingsRequest method.
  9411. // req, resp := client.DescribeReservedInstancesListingsRequest(params)
  9412. //
  9413. // err := req.Send()
  9414. // if err == nil { // resp is now filled
  9415. // fmt.Println(resp)
  9416. // }
  9417. //
  9418. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings
  9419. func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedInstancesListingsInput) (req *request.Request, output *DescribeReservedInstancesListingsOutput) {
  9420. op := &request.Operation{
  9421. Name: opDescribeReservedInstancesListings,
  9422. HTTPMethod: "POST",
  9423. HTTPPath: "/",
  9424. }
  9425. if input == nil {
  9426. input = &DescribeReservedInstancesListingsInput{}
  9427. }
  9428. output = &DescribeReservedInstancesListingsOutput{}
  9429. req = c.newRequest(op, input, output)
  9430. return
  9431. }
  9432. // DescribeReservedInstancesListings API operation for Amazon Elastic Compute Cloud.
  9433. //
  9434. // Describes your account's Reserved Instance listings in the Reserved Instance
  9435. // Marketplace.
  9436. //
  9437. // The Reserved Instance Marketplace matches sellers who want to resell Reserved
  9438. // Instance capacity that they no longer need with buyers who want to purchase
  9439. // additional capacity. Reserved Instances bought and sold through the Reserved
  9440. // Instance Marketplace work like any other Reserved Instances.
  9441. //
  9442. // As a seller, you choose to list some or all of your Reserved Instances, and
  9443. // you specify the upfront price to receive for them. Your Reserved Instances
  9444. // are then listed in the Reserved Instance Marketplace and are available for
  9445. // purchase.
  9446. //
  9447. // As a buyer, you specify the configuration of the Reserved Instance to purchase,
  9448. // and the Marketplace matches what you're searching for with what's available.
  9449. // The Marketplace first sells the lowest priced Reserved Instances to you,
  9450. // and continues to sell available Reserved Instance listings to you until your
  9451. // demand is met. You are charged based on the total price of all of the listings
  9452. // that you purchase.
  9453. //
  9454. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  9455. // in the Amazon Elastic Compute Cloud User Guide.
  9456. //
  9457. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9458. // with awserr.Error's Code and Message methods to get detailed information about
  9459. // the error.
  9460. //
  9461. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9462. // API operation DescribeReservedInstancesListings for usage and error information.
  9463. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings
  9464. func (c *EC2) DescribeReservedInstancesListings(input *DescribeReservedInstancesListingsInput) (*DescribeReservedInstancesListingsOutput, error) {
  9465. req, out := c.DescribeReservedInstancesListingsRequest(input)
  9466. return out, req.Send()
  9467. }
  9468. // DescribeReservedInstancesListingsWithContext is the same as DescribeReservedInstancesListings with the addition of
  9469. // the ability to pass a context and additional request options.
  9470. //
  9471. // See DescribeReservedInstancesListings for details on how to use this API operation.
  9472. //
  9473. // The context must be non-nil and will be used for request cancellation. If
  9474. // the context is nil a panic will occur. In the future the SDK may create
  9475. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9476. // for more information on using Contexts.
  9477. func (c *EC2) DescribeReservedInstancesListingsWithContext(ctx aws.Context, input *DescribeReservedInstancesListingsInput, opts ...request.Option) (*DescribeReservedInstancesListingsOutput, error) {
  9478. req, out := c.DescribeReservedInstancesListingsRequest(input)
  9479. req.SetContext(ctx)
  9480. req.ApplyOptions(opts...)
  9481. return out, req.Send()
  9482. }
  9483. const opDescribeReservedInstancesModifications = "DescribeReservedInstancesModifications"
  9484. // DescribeReservedInstancesModificationsRequest generates a "aws/request.Request" representing the
  9485. // client's request for the DescribeReservedInstancesModifications operation. The "output" return
  9486. // value can be used to capture response data after the request's "Send" method
  9487. // is called.
  9488. //
  9489. // See DescribeReservedInstancesModifications for usage and error information.
  9490. //
  9491. // Creating a request object using this method should be used when you want to inject
  9492. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9493. // access properties on the request object before or after sending the request. If
  9494. // you just want the service response, call the DescribeReservedInstancesModifications method directly
  9495. // instead.
  9496. //
  9497. // Note: You must call the "Send" method on the returned request object in order
  9498. // to execute the request.
  9499. //
  9500. // // Example sending a request using the DescribeReservedInstancesModificationsRequest method.
  9501. // req, resp := client.DescribeReservedInstancesModificationsRequest(params)
  9502. //
  9503. // err := req.Send()
  9504. // if err == nil { // resp is now filled
  9505. // fmt.Println(resp)
  9506. // }
  9507. //
  9508. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications
  9509. func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReservedInstancesModificationsInput) (req *request.Request, output *DescribeReservedInstancesModificationsOutput) {
  9510. op := &request.Operation{
  9511. Name: opDescribeReservedInstancesModifications,
  9512. HTTPMethod: "POST",
  9513. HTTPPath: "/",
  9514. Paginator: &request.Paginator{
  9515. InputTokens: []string{"NextToken"},
  9516. OutputTokens: []string{"NextToken"},
  9517. LimitToken: "",
  9518. TruncationToken: "",
  9519. },
  9520. }
  9521. if input == nil {
  9522. input = &DescribeReservedInstancesModificationsInput{}
  9523. }
  9524. output = &DescribeReservedInstancesModificationsOutput{}
  9525. req = c.newRequest(op, input, output)
  9526. return
  9527. }
  9528. // DescribeReservedInstancesModifications API operation for Amazon Elastic Compute Cloud.
  9529. //
  9530. // Describes the modifications made to your Reserved Instances. If no parameter
  9531. // is specified, information about all your Reserved Instances modification
  9532. // requests is returned. If a modification ID is specified, only information
  9533. // about the specific modification is returned.
  9534. //
  9535. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  9536. // in the Amazon Elastic Compute Cloud User Guide.
  9537. //
  9538. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9539. // with awserr.Error's Code and Message methods to get detailed information about
  9540. // the error.
  9541. //
  9542. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9543. // API operation DescribeReservedInstancesModifications for usage and error information.
  9544. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications
  9545. func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInstancesModificationsInput) (*DescribeReservedInstancesModificationsOutput, error) {
  9546. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  9547. return out, req.Send()
  9548. }
  9549. // DescribeReservedInstancesModificationsWithContext is the same as DescribeReservedInstancesModifications with the addition of
  9550. // the ability to pass a context and additional request options.
  9551. //
  9552. // See DescribeReservedInstancesModifications for details on how to use this API operation.
  9553. //
  9554. // The context must be non-nil and will be used for request cancellation. If
  9555. // the context is nil a panic will occur. In the future the SDK may create
  9556. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9557. // for more information on using Contexts.
  9558. func (c *EC2) DescribeReservedInstancesModificationsWithContext(ctx aws.Context, input *DescribeReservedInstancesModificationsInput, opts ...request.Option) (*DescribeReservedInstancesModificationsOutput, error) {
  9559. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  9560. req.SetContext(ctx)
  9561. req.ApplyOptions(opts...)
  9562. return out, req.Send()
  9563. }
  9564. // DescribeReservedInstancesModificationsPages iterates over the pages of a DescribeReservedInstancesModifications operation,
  9565. // calling the "fn" function with the response data for each page. To stop
  9566. // iterating, return false from the fn function.
  9567. //
  9568. // See DescribeReservedInstancesModifications method for more information on how to use this operation.
  9569. //
  9570. // Note: This operation can generate multiple requests to a service.
  9571. //
  9572. // // Example iterating over at most 3 pages of a DescribeReservedInstancesModifications operation.
  9573. // pageNum := 0
  9574. // err := client.DescribeReservedInstancesModificationsPages(params,
  9575. // func(page *DescribeReservedInstancesModificationsOutput, lastPage bool) bool {
  9576. // pageNum++
  9577. // fmt.Println(page)
  9578. // return pageNum <= 3
  9579. // })
  9580. //
  9581. func (c *EC2) DescribeReservedInstancesModificationsPages(input *DescribeReservedInstancesModificationsInput, fn func(*DescribeReservedInstancesModificationsOutput, bool) bool) error {
  9582. return c.DescribeReservedInstancesModificationsPagesWithContext(aws.BackgroundContext(), input, fn)
  9583. }
  9584. // DescribeReservedInstancesModificationsPagesWithContext same as DescribeReservedInstancesModificationsPages except
  9585. // it takes a Context and allows setting request options on the pages.
  9586. //
  9587. // The context must be non-nil and will be used for request cancellation. If
  9588. // the context is nil a panic will occur. In the future the SDK may create
  9589. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9590. // for more information on using Contexts.
  9591. func (c *EC2) DescribeReservedInstancesModificationsPagesWithContext(ctx aws.Context, input *DescribeReservedInstancesModificationsInput, fn func(*DescribeReservedInstancesModificationsOutput, bool) bool, opts ...request.Option) error {
  9592. p := request.Pagination{
  9593. NewRequest: func() (*request.Request, error) {
  9594. var inCpy *DescribeReservedInstancesModificationsInput
  9595. if input != nil {
  9596. tmp := *input
  9597. inCpy = &tmp
  9598. }
  9599. req, _ := c.DescribeReservedInstancesModificationsRequest(inCpy)
  9600. req.SetContext(ctx)
  9601. req.ApplyOptions(opts...)
  9602. return req, nil
  9603. },
  9604. }
  9605. cont := true
  9606. for p.Next() && cont {
  9607. cont = fn(p.Page().(*DescribeReservedInstancesModificationsOutput), !p.HasNextPage())
  9608. }
  9609. return p.Err()
  9610. }
  9611. const opDescribeReservedInstancesOfferings = "DescribeReservedInstancesOfferings"
  9612. // DescribeReservedInstancesOfferingsRequest generates a "aws/request.Request" representing the
  9613. // client's request for the DescribeReservedInstancesOfferings operation. The "output" return
  9614. // value can be used to capture response data after the request's "Send" method
  9615. // is called.
  9616. //
  9617. // See DescribeReservedInstancesOfferings for usage and error information.
  9618. //
  9619. // Creating a request object using this method should be used when you want to inject
  9620. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9621. // access properties on the request object before or after sending the request. If
  9622. // you just want the service response, call the DescribeReservedInstancesOfferings method directly
  9623. // instead.
  9624. //
  9625. // Note: You must call the "Send" method on the returned request object in order
  9626. // to execute the request.
  9627. //
  9628. // // Example sending a request using the DescribeReservedInstancesOfferingsRequest method.
  9629. // req, resp := client.DescribeReservedInstancesOfferingsRequest(params)
  9630. //
  9631. // err := req.Send()
  9632. // if err == nil { // resp is now filled
  9633. // fmt.Println(resp)
  9634. // }
  9635. //
  9636. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings
  9637. func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedInstancesOfferingsInput) (req *request.Request, output *DescribeReservedInstancesOfferingsOutput) {
  9638. op := &request.Operation{
  9639. Name: opDescribeReservedInstancesOfferings,
  9640. HTTPMethod: "POST",
  9641. HTTPPath: "/",
  9642. Paginator: &request.Paginator{
  9643. InputTokens: []string{"NextToken"},
  9644. OutputTokens: []string{"NextToken"},
  9645. LimitToken: "MaxResults",
  9646. TruncationToken: "",
  9647. },
  9648. }
  9649. if input == nil {
  9650. input = &DescribeReservedInstancesOfferingsInput{}
  9651. }
  9652. output = &DescribeReservedInstancesOfferingsOutput{}
  9653. req = c.newRequest(op, input, output)
  9654. return
  9655. }
  9656. // DescribeReservedInstancesOfferings API operation for Amazon Elastic Compute Cloud.
  9657. //
  9658. // Describes Reserved Instance offerings that are available for purchase. With
  9659. // Reserved Instances, you purchase the right to launch instances for a period
  9660. // of time. During that time period, you do not receive insufficient capacity
  9661. // errors, and you pay a lower usage rate than the rate charged for On-Demand
  9662. // instances for the actual time used.
  9663. //
  9664. // If you have listed your own Reserved Instances for sale in the Reserved Instance
  9665. // Marketplace, they will be excluded from these results. This is to ensure
  9666. // that you do not purchase your own Reserved Instances.
  9667. //
  9668. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  9669. // in the Amazon Elastic Compute Cloud User Guide.
  9670. //
  9671. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9672. // with awserr.Error's Code and Message methods to get detailed information about
  9673. // the error.
  9674. //
  9675. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9676. // API operation DescribeReservedInstancesOfferings for usage and error information.
  9677. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings
  9678. func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) {
  9679. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  9680. return out, req.Send()
  9681. }
  9682. // DescribeReservedInstancesOfferingsWithContext is the same as DescribeReservedInstancesOfferings with the addition of
  9683. // the ability to pass a context and additional request options.
  9684. //
  9685. // See DescribeReservedInstancesOfferings for details on how to use this API operation.
  9686. //
  9687. // The context must be non-nil and will be used for request cancellation. If
  9688. // the context is nil a panic will occur. In the future the SDK may create
  9689. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9690. // for more information on using Contexts.
  9691. func (c *EC2) DescribeReservedInstancesOfferingsWithContext(ctx aws.Context, input *DescribeReservedInstancesOfferingsInput, opts ...request.Option) (*DescribeReservedInstancesOfferingsOutput, error) {
  9692. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  9693. req.SetContext(ctx)
  9694. req.ApplyOptions(opts...)
  9695. return out, req.Send()
  9696. }
  9697. // DescribeReservedInstancesOfferingsPages iterates over the pages of a DescribeReservedInstancesOfferings operation,
  9698. // calling the "fn" function with the response data for each page. To stop
  9699. // iterating, return false from the fn function.
  9700. //
  9701. // See DescribeReservedInstancesOfferings method for more information on how to use this operation.
  9702. //
  9703. // Note: This operation can generate multiple requests to a service.
  9704. //
  9705. // // Example iterating over at most 3 pages of a DescribeReservedInstancesOfferings operation.
  9706. // pageNum := 0
  9707. // err := client.DescribeReservedInstancesOfferingsPages(params,
  9708. // func(page *DescribeReservedInstancesOfferingsOutput, lastPage bool) bool {
  9709. // pageNum++
  9710. // fmt.Println(page)
  9711. // return pageNum <= 3
  9712. // })
  9713. //
  9714. func (c *EC2) DescribeReservedInstancesOfferingsPages(input *DescribeReservedInstancesOfferingsInput, fn func(*DescribeReservedInstancesOfferingsOutput, bool) bool) error {
  9715. return c.DescribeReservedInstancesOfferingsPagesWithContext(aws.BackgroundContext(), input, fn)
  9716. }
  9717. // DescribeReservedInstancesOfferingsPagesWithContext same as DescribeReservedInstancesOfferingsPages except
  9718. // it takes a Context and allows setting request options on the pages.
  9719. //
  9720. // The context must be non-nil and will be used for request cancellation. If
  9721. // the context is nil a panic will occur. In the future the SDK may create
  9722. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9723. // for more information on using Contexts.
  9724. func (c *EC2) DescribeReservedInstancesOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedInstancesOfferingsInput, fn func(*DescribeReservedInstancesOfferingsOutput, bool) bool, opts ...request.Option) error {
  9725. p := request.Pagination{
  9726. NewRequest: func() (*request.Request, error) {
  9727. var inCpy *DescribeReservedInstancesOfferingsInput
  9728. if input != nil {
  9729. tmp := *input
  9730. inCpy = &tmp
  9731. }
  9732. req, _ := c.DescribeReservedInstancesOfferingsRequest(inCpy)
  9733. req.SetContext(ctx)
  9734. req.ApplyOptions(opts...)
  9735. return req, nil
  9736. },
  9737. }
  9738. cont := true
  9739. for p.Next() && cont {
  9740. cont = fn(p.Page().(*DescribeReservedInstancesOfferingsOutput), !p.HasNextPage())
  9741. }
  9742. return p.Err()
  9743. }
  9744. const opDescribeRouteTables = "DescribeRouteTables"
  9745. // DescribeRouteTablesRequest generates a "aws/request.Request" representing the
  9746. // client's request for the DescribeRouteTables operation. The "output" return
  9747. // value can be used to capture response data after the request's "Send" method
  9748. // is called.
  9749. //
  9750. // See DescribeRouteTables for usage and error information.
  9751. //
  9752. // Creating a request object using this method should be used when you want to inject
  9753. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9754. // access properties on the request object before or after sending the request. If
  9755. // you just want the service response, call the DescribeRouteTables method directly
  9756. // instead.
  9757. //
  9758. // Note: You must call the "Send" method on the returned request object in order
  9759. // to execute the request.
  9760. //
  9761. // // Example sending a request using the DescribeRouteTablesRequest method.
  9762. // req, resp := client.DescribeRouteTablesRequest(params)
  9763. //
  9764. // err := req.Send()
  9765. // if err == nil { // resp is now filled
  9766. // fmt.Println(resp)
  9767. // }
  9768. //
  9769. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables
  9770. func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req *request.Request, output *DescribeRouteTablesOutput) {
  9771. op := &request.Operation{
  9772. Name: opDescribeRouteTables,
  9773. HTTPMethod: "POST",
  9774. HTTPPath: "/",
  9775. }
  9776. if input == nil {
  9777. input = &DescribeRouteTablesInput{}
  9778. }
  9779. output = &DescribeRouteTablesOutput{}
  9780. req = c.newRequest(op, input, output)
  9781. return
  9782. }
  9783. // DescribeRouteTables API operation for Amazon Elastic Compute Cloud.
  9784. //
  9785. // Describes one or more of your route tables.
  9786. //
  9787. // Each subnet in your VPC must be associated with a route table. If a subnet
  9788. // is not explicitly associated with any route table, it is implicitly associated
  9789. // with the main route table. This command does not return the subnet ID for
  9790. // implicit associations.
  9791. //
  9792. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  9793. // in the Amazon Virtual Private Cloud User Guide.
  9794. //
  9795. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9796. // with awserr.Error's Code and Message methods to get detailed information about
  9797. // the error.
  9798. //
  9799. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9800. // API operation DescribeRouteTables for usage and error information.
  9801. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables
  9802. func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRouteTablesOutput, error) {
  9803. req, out := c.DescribeRouteTablesRequest(input)
  9804. return out, req.Send()
  9805. }
  9806. // DescribeRouteTablesWithContext is the same as DescribeRouteTables with the addition of
  9807. // the ability to pass a context and additional request options.
  9808. //
  9809. // See DescribeRouteTables for details on how to use this API operation.
  9810. //
  9811. // The context must be non-nil and will be used for request cancellation. If
  9812. // the context is nil a panic will occur. In the future the SDK may create
  9813. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9814. // for more information on using Contexts.
  9815. func (c *EC2) DescribeRouteTablesWithContext(ctx aws.Context, input *DescribeRouteTablesInput, opts ...request.Option) (*DescribeRouteTablesOutput, error) {
  9816. req, out := c.DescribeRouteTablesRequest(input)
  9817. req.SetContext(ctx)
  9818. req.ApplyOptions(opts...)
  9819. return out, req.Send()
  9820. }
  9821. const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvailability"
  9822. // DescribeScheduledInstanceAvailabilityRequest generates a "aws/request.Request" representing the
  9823. // client's request for the DescribeScheduledInstanceAvailability operation. The "output" return
  9824. // value can be used to capture response data after the request's "Send" method
  9825. // is called.
  9826. //
  9827. // See DescribeScheduledInstanceAvailability for usage and error information.
  9828. //
  9829. // Creating a request object using this method should be used when you want to inject
  9830. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9831. // access properties on the request object before or after sending the request. If
  9832. // you just want the service response, call the DescribeScheduledInstanceAvailability method directly
  9833. // instead.
  9834. //
  9835. // Note: You must call the "Send" method on the returned request object in order
  9836. // to execute the request.
  9837. //
  9838. // // Example sending a request using the DescribeScheduledInstanceAvailabilityRequest method.
  9839. // req, resp := client.DescribeScheduledInstanceAvailabilityRequest(params)
  9840. //
  9841. // err := req.Send()
  9842. // if err == nil { // resp is now filled
  9843. // fmt.Println(resp)
  9844. // }
  9845. //
  9846. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability
  9847. func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeScheduledInstanceAvailabilityInput) (req *request.Request, output *DescribeScheduledInstanceAvailabilityOutput) {
  9848. op := &request.Operation{
  9849. Name: opDescribeScheduledInstanceAvailability,
  9850. HTTPMethod: "POST",
  9851. HTTPPath: "/",
  9852. }
  9853. if input == nil {
  9854. input = &DescribeScheduledInstanceAvailabilityInput{}
  9855. }
  9856. output = &DescribeScheduledInstanceAvailabilityOutput{}
  9857. req = c.newRequest(op, input, output)
  9858. return
  9859. }
  9860. // DescribeScheduledInstanceAvailability API operation for Amazon Elastic Compute Cloud.
  9861. //
  9862. // Finds available schedules that meet the specified criteria.
  9863. //
  9864. // You can search for an available schedule no more than 3 months in advance.
  9865. // You must meet the minimum required duration of 1,200 hours per year. For
  9866. // example, the minimum daily schedule is 4 hours, the minimum weekly schedule
  9867. // is 24 hours, and the minimum monthly schedule is 100 hours.
  9868. //
  9869. // After you find a schedule that meets your needs, call PurchaseScheduledInstances
  9870. // to purchase Scheduled Instances with that schedule.
  9871. //
  9872. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9873. // with awserr.Error's Code and Message methods to get detailed information about
  9874. // the error.
  9875. //
  9876. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9877. // API operation DescribeScheduledInstanceAvailability for usage and error information.
  9878. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability
  9879. func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  9880. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  9881. return out, req.Send()
  9882. }
  9883. // DescribeScheduledInstanceAvailabilityWithContext is the same as DescribeScheduledInstanceAvailability with the addition of
  9884. // the ability to pass a context and additional request options.
  9885. //
  9886. // See DescribeScheduledInstanceAvailability for details on how to use this API operation.
  9887. //
  9888. // The context must be non-nil and will be used for request cancellation. If
  9889. // the context is nil a panic will occur. In the future the SDK may create
  9890. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9891. // for more information on using Contexts.
  9892. func (c *EC2) DescribeScheduledInstanceAvailabilityWithContext(ctx aws.Context, input *DescribeScheduledInstanceAvailabilityInput, opts ...request.Option) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  9893. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  9894. req.SetContext(ctx)
  9895. req.ApplyOptions(opts...)
  9896. return out, req.Send()
  9897. }
  9898. const opDescribeScheduledInstances = "DescribeScheduledInstances"
  9899. // DescribeScheduledInstancesRequest generates a "aws/request.Request" representing the
  9900. // client's request for the DescribeScheduledInstances operation. The "output" return
  9901. // value can be used to capture response data after the request's "Send" method
  9902. // is called.
  9903. //
  9904. // See DescribeScheduledInstances for usage and error information.
  9905. //
  9906. // Creating a request object using this method should be used when you want to inject
  9907. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9908. // access properties on the request object before or after sending the request. If
  9909. // you just want the service response, call the DescribeScheduledInstances method directly
  9910. // instead.
  9911. //
  9912. // Note: You must call the "Send" method on the returned request object in order
  9913. // to execute the request.
  9914. //
  9915. // // Example sending a request using the DescribeScheduledInstancesRequest method.
  9916. // req, resp := client.DescribeScheduledInstancesRequest(params)
  9917. //
  9918. // err := req.Send()
  9919. // if err == nil { // resp is now filled
  9920. // fmt.Println(resp)
  9921. // }
  9922. //
  9923. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances
  9924. func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstancesInput) (req *request.Request, output *DescribeScheduledInstancesOutput) {
  9925. op := &request.Operation{
  9926. Name: opDescribeScheduledInstances,
  9927. HTTPMethod: "POST",
  9928. HTTPPath: "/",
  9929. }
  9930. if input == nil {
  9931. input = &DescribeScheduledInstancesInput{}
  9932. }
  9933. output = &DescribeScheduledInstancesOutput{}
  9934. req = c.newRequest(op, input, output)
  9935. return
  9936. }
  9937. // DescribeScheduledInstances API operation for Amazon Elastic Compute Cloud.
  9938. //
  9939. // Describes one or more of your Scheduled Instances.
  9940. //
  9941. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9942. // with awserr.Error's Code and Message methods to get detailed information about
  9943. // the error.
  9944. //
  9945. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9946. // API operation DescribeScheduledInstances for usage and error information.
  9947. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances
  9948. func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) {
  9949. req, out := c.DescribeScheduledInstancesRequest(input)
  9950. return out, req.Send()
  9951. }
  9952. // DescribeScheduledInstancesWithContext is the same as DescribeScheduledInstances with the addition of
  9953. // the ability to pass a context and additional request options.
  9954. //
  9955. // See DescribeScheduledInstances for details on how to use this API operation.
  9956. //
  9957. // The context must be non-nil and will be used for request cancellation. If
  9958. // the context is nil a panic will occur. In the future the SDK may create
  9959. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9960. // for more information on using Contexts.
  9961. func (c *EC2) DescribeScheduledInstancesWithContext(ctx aws.Context, input *DescribeScheduledInstancesInput, opts ...request.Option) (*DescribeScheduledInstancesOutput, error) {
  9962. req, out := c.DescribeScheduledInstancesRequest(input)
  9963. req.SetContext(ctx)
  9964. req.ApplyOptions(opts...)
  9965. return out, req.Send()
  9966. }
  9967. const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences"
  9968. // DescribeSecurityGroupReferencesRequest generates a "aws/request.Request" representing the
  9969. // client's request for the DescribeSecurityGroupReferences operation. The "output" return
  9970. // value can be used to capture response data after the request's "Send" method
  9971. // is called.
  9972. //
  9973. // See DescribeSecurityGroupReferences for usage and error information.
  9974. //
  9975. // Creating a request object using this method should be used when you want to inject
  9976. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9977. // access properties on the request object before or after sending the request. If
  9978. // you just want the service response, call the DescribeSecurityGroupReferences method directly
  9979. // instead.
  9980. //
  9981. // Note: You must call the "Send" method on the returned request object in order
  9982. // to execute the request.
  9983. //
  9984. // // Example sending a request using the DescribeSecurityGroupReferencesRequest method.
  9985. // req, resp := client.DescribeSecurityGroupReferencesRequest(params)
  9986. //
  9987. // err := req.Send()
  9988. // if err == nil { // resp is now filled
  9989. // fmt.Println(resp)
  9990. // }
  9991. //
  9992. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences
  9993. func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGroupReferencesInput) (req *request.Request, output *DescribeSecurityGroupReferencesOutput) {
  9994. op := &request.Operation{
  9995. Name: opDescribeSecurityGroupReferences,
  9996. HTTPMethod: "POST",
  9997. HTTPPath: "/",
  9998. }
  9999. if input == nil {
  10000. input = &DescribeSecurityGroupReferencesInput{}
  10001. }
  10002. output = &DescribeSecurityGroupReferencesOutput{}
  10003. req = c.newRequest(op, input, output)
  10004. return
  10005. }
  10006. // DescribeSecurityGroupReferences API operation for Amazon Elastic Compute Cloud.
  10007. //
  10008. // [EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection
  10009. // that are referencing the security groups you've specified in this request.
  10010. //
  10011. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10012. // with awserr.Error's Code and Message methods to get detailed information about
  10013. // the error.
  10014. //
  10015. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10016. // API operation DescribeSecurityGroupReferences for usage and error information.
  10017. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences
  10018. func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) {
  10019. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  10020. return out, req.Send()
  10021. }
  10022. // DescribeSecurityGroupReferencesWithContext is the same as DescribeSecurityGroupReferences with the addition of
  10023. // the ability to pass a context and additional request options.
  10024. //
  10025. // See DescribeSecurityGroupReferences for details on how to use this API operation.
  10026. //
  10027. // The context must be non-nil and will be used for request cancellation. If
  10028. // the context is nil a panic will occur. In the future the SDK may create
  10029. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10030. // for more information on using Contexts.
  10031. func (c *EC2) DescribeSecurityGroupReferencesWithContext(ctx aws.Context, input *DescribeSecurityGroupReferencesInput, opts ...request.Option) (*DescribeSecurityGroupReferencesOutput, error) {
  10032. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  10033. req.SetContext(ctx)
  10034. req.ApplyOptions(opts...)
  10035. return out, req.Send()
  10036. }
  10037. const opDescribeSecurityGroups = "DescribeSecurityGroups"
  10038. // DescribeSecurityGroupsRequest generates a "aws/request.Request" representing the
  10039. // client's request for the DescribeSecurityGroups operation. The "output" return
  10040. // value can be used to capture response data after the request's "Send" method
  10041. // is called.
  10042. //
  10043. // See DescribeSecurityGroups for usage and error information.
  10044. //
  10045. // Creating a request object using this method should be used when you want to inject
  10046. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10047. // access properties on the request object before or after sending the request. If
  10048. // you just want the service response, call the DescribeSecurityGroups method directly
  10049. // instead.
  10050. //
  10051. // Note: You must call the "Send" method on the returned request object in order
  10052. // to execute the request.
  10053. //
  10054. // // Example sending a request using the DescribeSecurityGroupsRequest method.
  10055. // req, resp := client.DescribeSecurityGroupsRequest(params)
  10056. //
  10057. // err := req.Send()
  10058. // if err == nil { // resp is now filled
  10059. // fmt.Println(resp)
  10060. // }
  10061. //
  10062. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups
  10063. func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput) {
  10064. op := &request.Operation{
  10065. Name: opDescribeSecurityGroups,
  10066. HTTPMethod: "POST",
  10067. HTTPPath: "/",
  10068. }
  10069. if input == nil {
  10070. input = &DescribeSecurityGroupsInput{}
  10071. }
  10072. output = &DescribeSecurityGroupsOutput{}
  10073. req = c.newRequest(op, input, output)
  10074. return
  10075. }
  10076. // DescribeSecurityGroups API operation for Amazon Elastic Compute Cloud.
  10077. //
  10078. // Describes one or more of your security groups.
  10079. //
  10080. // A security group is for use with instances either in the EC2-Classic platform
  10081. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  10082. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  10083. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  10084. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  10085. // in the Amazon Virtual Private Cloud User Guide.
  10086. //
  10087. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10088. // with awserr.Error's Code and Message methods to get detailed information about
  10089. // the error.
  10090. //
  10091. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10092. // API operation DescribeSecurityGroups for usage and error information.
  10093. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups
  10094. func (c *EC2) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error) {
  10095. req, out := c.DescribeSecurityGroupsRequest(input)
  10096. return out, req.Send()
  10097. }
  10098. // DescribeSecurityGroupsWithContext is the same as DescribeSecurityGroups with the addition of
  10099. // the ability to pass a context and additional request options.
  10100. //
  10101. // See DescribeSecurityGroups for details on how to use this API operation.
  10102. //
  10103. // The context must be non-nil and will be used for request cancellation. If
  10104. // the context is nil a panic will occur. In the future the SDK may create
  10105. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10106. // for more information on using Contexts.
  10107. func (c *EC2) DescribeSecurityGroupsWithContext(ctx aws.Context, input *DescribeSecurityGroupsInput, opts ...request.Option) (*DescribeSecurityGroupsOutput, error) {
  10108. req, out := c.DescribeSecurityGroupsRequest(input)
  10109. req.SetContext(ctx)
  10110. req.ApplyOptions(opts...)
  10111. return out, req.Send()
  10112. }
  10113. const opDescribeSnapshotAttribute = "DescribeSnapshotAttribute"
  10114. // DescribeSnapshotAttributeRequest generates a "aws/request.Request" representing the
  10115. // client's request for the DescribeSnapshotAttribute operation. The "output" return
  10116. // value can be used to capture response data after the request's "Send" method
  10117. // is called.
  10118. //
  10119. // See DescribeSnapshotAttribute for usage and error information.
  10120. //
  10121. // Creating a request object using this method should be used when you want to inject
  10122. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10123. // access properties on the request object before or after sending the request. If
  10124. // you just want the service response, call the DescribeSnapshotAttribute method directly
  10125. // instead.
  10126. //
  10127. // Note: You must call the "Send" method on the returned request object in order
  10128. // to execute the request.
  10129. //
  10130. // // Example sending a request using the DescribeSnapshotAttributeRequest method.
  10131. // req, resp := client.DescribeSnapshotAttributeRequest(params)
  10132. //
  10133. // err := req.Send()
  10134. // if err == nil { // resp is now filled
  10135. // fmt.Println(resp)
  10136. // }
  10137. //
  10138. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute
  10139. func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeInput) (req *request.Request, output *DescribeSnapshotAttributeOutput) {
  10140. op := &request.Operation{
  10141. Name: opDescribeSnapshotAttribute,
  10142. HTTPMethod: "POST",
  10143. HTTPPath: "/",
  10144. }
  10145. if input == nil {
  10146. input = &DescribeSnapshotAttributeInput{}
  10147. }
  10148. output = &DescribeSnapshotAttributeOutput{}
  10149. req = c.newRequest(op, input, output)
  10150. return
  10151. }
  10152. // DescribeSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  10153. //
  10154. // Describes the specified attribute of the specified snapshot. You can specify
  10155. // only one attribute at a time.
  10156. //
  10157. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  10158. // in the Amazon Elastic Compute Cloud User Guide.
  10159. //
  10160. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10161. // with awserr.Error's Code and Message methods to get detailed information about
  10162. // the error.
  10163. //
  10164. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10165. // API operation DescribeSnapshotAttribute for usage and error information.
  10166. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute
  10167. func (c *EC2) DescribeSnapshotAttribute(input *DescribeSnapshotAttributeInput) (*DescribeSnapshotAttributeOutput, error) {
  10168. req, out := c.DescribeSnapshotAttributeRequest(input)
  10169. return out, req.Send()
  10170. }
  10171. // DescribeSnapshotAttributeWithContext is the same as DescribeSnapshotAttribute with the addition of
  10172. // the ability to pass a context and additional request options.
  10173. //
  10174. // See DescribeSnapshotAttribute for details on how to use this API operation.
  10175. //
  10176. // The context must be non-nil and will be used for request cancellation. If
  10177. // the context is nil a panic will occur. In the future the SDK may create
  10178. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10179. // for more information on using Contexts.
  10180. func (c *EC2) DescribeSnapshotAttributeWithContext(ctx aws.Context, input *DescribeSnapshotAttributeInput, opts ...request.Option) (*DescribeSnapshotAttributeOutput, error) {
  10181. req, out := c.DescribeSnapshotAttributeRequest(input)
  10182. req.SetContext(ctx)
  10183. req.ApplyOptions(opts...)
  10184. return out, req.Send()
  10185. }
  10186. const opDescribeSnapshots = "DescribeSnapshots"
  10187. // DescribeSnapshotsRequest generates a "aws/request.Request" representing the
  10188. // client's request for the DescribeSnapshots operation. The "output" return
  10189. // value can be used to capture response data after the request's "Send" method
  10190. // is called.
  10191. //
  10192. // See DescribeSnapshots for usage and error information.
  10193. //
  10194. // Creating a request object using this method should be used when you want to inject
  10195. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10196. // access properties on the request object before or after sending the request. If
  10197. // you just want the service response, call the DescribeSnapshots method directly
  10198. // instead.
  10199. //
  10200. // Note: You must call the "Send" method on the returned request object in order
  10201. // to execute the request.
  10202. //
  10203. // // Example sending a request using the DescribeSnapshotsRequest method.
  10204. // req, resp := client.DescribeSnapshotsRequest(params)
  10205. //
  10206. // err := req.Send()
  10207. // if err == nil { // resp is now filled
  10208. // fmt.Println(resp)
  10209. // }
  10210. //
  10211. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots
  10212. func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) {
  10213. op := &request.Operation{
  10214. Name: opDescribeSnapshots,
  10215. HTTPMethod: "POST",
  10216. HTTPPath: "/",
  10217. Paginator: &request.Paginator{
  10218. InputTokens: []string{"NextToken"},
  10219. OutputTokens: []string{"NextToken"},
  10220. LimitToken: "MaxResults",
  10221. TruncationToken: "",
  10222. },
  10223. }
  10224. if input == nil {
  10225. input = &DescribeSnapshotsInput{}
  10226. }
  10227. output = &DescribeSnapshotsOutput{}
  10228. req = c.newRequest(op, input, output)
  10229. return
  10230. }
  10231. // DescribeSnapshots API operation for Amazon Elastic Compute Cloud.
  10232. //
  10233. // Describes one or more of the EBS snapshots available to you. Available snapshots
  10234. // include public snapshots available for any AWS account to launch, private
  10235. // snapshots that you own, and private snapshots owned by another AWS account
  10236. // but for which you've been given explicit create volume permissions.
  10237. //
  10238. // The create volume permissions fall into the following categories:
  10239. //
  10240. // * public: The owner of the snapshot granted create volume permissions
  10241. // for the snapshot to the all group. All AWS accounts have create volume
  10242. // permissions for these snapshots.
  10243. //
  10244. // * explicit: The owner of the snapshot granted create volume permissions
  10245. // to a specific AWS account.
  10246. //
  10247. // * implicit: An AWS account has implicit create volume permissions for
  10248. // all snapshots it owns.
  10249. //
  10250. // The list of snapshots returned can be modified by specifying snapshot IDs,
  10251. // snapshot owners, or AWS accounts with create volume permissions. If no options
  10252. // are specified, Amazon EC2 returns all snapshots for which you have create
  10253. // volume permissions.
  10254. //
  10255. // If you specify one or more snapshot IDs, only snapshots that have the specified
  10256. // IDs are returned. If you specify an invalid snapshot ID, an error is returned.
  10257. // If you specify a snapshot ID for which you do not have access, it is not
  10258. // included in the returned results.
  10259. //
  10260. // If you specify one or more snapshot owners using the OwnerIds option, only
  10261. // snapshots from the specified owners and for which you have access are returned.
  10262. // The results can include the AWS account IDs of the specified owners, amazon
  10263. // for snapshots owned by Amazon, or self for snapshots that you own.
  10264. //
  10265. // If you specify a list of restorable users, only snapshots with create snapshot
  10266. // permissions for those users are returned. You can specify AWS account IDs
  10267. // (if you own the snapshots), self for snapshots for which you own or have
  10268. // explicit permissions, or all for public snapshots.
  10269. //
  10270. // If you are describing a long list of snapshots, you can paginate the output
  10271. // to make the list more manageable. The MaxResults parameter sets the maximum
  10272. // number of results returned in a single page. If the list of results exceeds
  10273. // your MaxResults value, then that number of results is returned along with
  10274. // a NextToken value that can be passed to a subsequent DescribeSnapshots request
  10275. // to retrieve the remaining results.
  10276. //
  10277. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  10278. // in the Amazon Elastic Compute Cloud User Guide.
  10279. //
  10280. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10281. // with awserr.Error's Code and Message methods to get detailed information about
  10282. // the error.
  10283. //
  10284. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10285. // API operation DescribeSnapshots for usage and error information.
  10286. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots
  10287. func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) {
  10288. req, out := c.DescribeSnapshotsRequest(input)
  10289. return out, req.Send()
  10290. }
  10291. // DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of
  10292. // the ability to pass a context and additional request options.
  10293. //
  10294. // See DescribeSnapshots for details on how to use this API operation.
  10295. //
  10296. // The context must be non-nil and will be used for request cancellation. If
  10297. // the context is nil a panic will occur. In the future the SDK may create
  10298. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10299. // for more information on using Contexts.
  10300. func (c *EC2) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error) {
  10301. req, out := c.DescribeSnapshotsRequest(input)
  10302. req.SetContext(ctx)
  10303. req.ApplyOptions(opts...)
  10304. return out, req.Send()
  10305. }
  10306. // DescribeSnapshotsPages iterates over the pages of a DescribeSnapshots operation,
  10307. // calling the "fn" function with the response data for each page. To stop
  10308. // iterating, return false from the fn function.
  10309. //
  10310. // See DescribeSnapshots method for more information on how to use this operation.
  10311. //
  10312. // Note: This operation can generate multiple requests to a service.
  10313. //
  10314. // // Example iterating over at most 3 pages of a DescribeSnapshots operation.
  10315. // pageNum := 0
  10316. // err := client.DescribeSnapshotsPages(params,
  10317. // func(page *DescribeSnapshotsOutput, lastPage bool) bool {
  10318. // pageNum++
  10319. // fmt.Println(page)
  10320. // return pageNum <= 3
  10321. // })
  10322. //
  10323. func (c *EC2) DescribeSnapshotsPages(input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool) error {
  10324. return c.DescribeSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn)
  10325. }
  10326. // DescribeSnapshotsPagesWithContext same as DescribeSnapshotsPages except
  10327. // it takes a Context and allows setting request options on the pages.
  10328. //
  10329. // The context must be non-nil and will be used for request cancellation. If
  10330. // the context is nil a panic will occur. In the future the SDK may create
  10331. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10332. // for more information on using Contexts.
  10333. func (c *EC2) DescribeSnapshotsPagesWithContext(ctx aws.Context, input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool, opts ...request.Option) error {
  10334. p := request.Pagination{
  10335. NewRequest: func() (*request.Request, error) {
  10336. var inCpy *DescribeSnapshotsInput
  10337. if input != nil {
  10338. tmp := *input
  10339. inCpy = &tmp
  10340. }
  10341. req, _ := c.DescribeSnapshotsRequest(inCpy)
  10342. req.SetContext(ctx)
  10343. req.ApplyOptions(opts...)
  10344. return req, nil
  10345. },
  10346. }
  10347. cont := true
  10348. for p.Next() && cont {
  10349. cont = fn(p.Page().(*DescribeSnapshotsOutput), !p.HasNextPage())
  10350. }
  10351. return p.Err()
  10352. }
  10353. const opDescribeSpotDatafeedSubscription = "DescribeSpotDatafeedSubscription"
  10354. // DescribeSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  10355. // client's request for the DescribeSpotDatafeedSubscription operation. The "output" return
  10356. // value can be used to capture response data after the request's "Send" method
  10357. // is called.
  10358. //
  10359. // See DescribeSpotDatafeedSubscription for usage and error information.
  10360. //
  10361. // Creating a request object using this method should be used when you want to inject
  10362. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10363. // access properties on the request object before or after sending the request. If
  10364. // you just want the service response, call the DescribeSpotDatafeedSubscription method directly
  10365. // instead.
  10366. //
  10367. // Note: You must call the "Send" method on the returned request object in order
  10368. // to execute the request.
  10369. //
  10370. // // Example sending a request using the DescribeSpotDatafeedSubscriptionRequest method.
  10371. // req, resp := client.DescribeSpotDatafeedSubscriptionRequest(params)
  10372. //
  10373. // err := req.Send()
  10374. // if err == nil { // resp is now filled
  10375. // fmt.Println(resp)
  10376. // }
  10377. //
  10378. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription
  10379. func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafeedSubscriptionInput) (req *request.Request, output *DescribeSpotDatafeedSubscriptionOutput) {
  10380. op := &request.Operation{
  10381. Name: opDescribeSpotDatafeedSubscription,
  10382. HTTPMethod: "POST",
  10383. HTTPPath: "/",
  10384. }
  10385. if input == nil {
  10386. input = &DescribeSpotDatafeedSubscriptionInput{}
  10387. }
  10388. output = &DescribeSpotDatafeedSubscriptionOutput{}
  10389. req = c.newRequest(op, input, output)
  10390. return
  10391. }
  10392. // DescribeSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  10393. //
  10394. // Describes the data feed for Spot instances. For more information, see Spot
  10395. // Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  10396. // in the Amazon Elastic Compute Cloud User Guide.
  10397. //
  10398. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10399. // with awserr.Error's Code and Message methods to get detailed information about
  10400. // the error.
  10401. //
  10402. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10403. // API operation DescribeSpotDatafeedSubscription for usage and error information.
  10404. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription
  10405. func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  10406. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  10407. return out, req.Send()
  10408. }
  10409. // DescribeSpotDatafeedSubscriptionWithContext is the same as DescribeSpotDatafeedSubscription with the addition of
  10410. // the ability to pass a context and additional request options.
  10411. //
  10412. // See DescribeSpotDatafeedSubscription for details on how to use this API operation.
  10413. //
  10414. // The context must be non-nil and will be used for request cancellation. If
  10415. // the context is nil a panic will occur. In the future the SDK may create
  10416. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10417. // for more information on using Contexts.
  10418. func (c *EC2) DescribeSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *DescribeSpotDatafeedSubscriptionInput, opts ...request.Option) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  10419. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  10420. req.SetContext(ctx)
  10421. req.ApplyOptions(opts...)
  10422. return out, req.Send()
  10423. }
  10424. const opDescribeSpotFleetInstances = "DescribeSpotFleetInstances"
  10425. // DescribeSpotFleetInstancesRequest generates a "aws/request.Request" representing the
  10426. // client's request for the DescribeSpotFleetInstances operation. The "output" return
  10427. // value can be used to capture response data after the request's "Send" method
  10428. // is called.
  10429. //
  10430. // See DescribeSpotFleetInstances for usage and error information.
  10431. //
  10432. // Creating a request object using this method should be used when you want to inject
  10433. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10434. // access properties on the request object before or after sending the request. If
  10435. // you just want the service response, call the DescribeSpotFleetInstances method directly
  10436. // instead.
  10437. //
  10438. // Note: You must call the "Send" method on the returned request object in order
  10439. // to execute the request.
  10440. //
  10441. // // Example sending a request using the DescribeSpotFleetInstancesRequest method.
  10442. // req, resp := client.DescribeSpotFleetInstancesRequest(params)
  10443. //
  10444. // err := req.Send()
  10445. // if err == nil { // resp is now filled
  10446. // fmt.Println(resp)
  10447. // }
  10448. //
  10449. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances
  10450. func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstancesInput) (req *request.Request, output *DescribeSpotFleetInstancesOutput) {
  10451. op := &request.Operation{
  10452. Name: opDescribeSpotFleetInstances,
  10453. HTTPMethod: "POST",
  10454. HTTPPath: "/",
  10455. }
  10456. if input == nil {
  10457. input = &DescribeSpotFleetInstancesInput{}
  10458. }
  10459. output = &DescribeSpotFleetInstancesOutput{}
  10460. req = c.newRequest(op, input, output)
  10461. return
  10462. }
  10463. // DescribeSpotFleetInstances API operation for Amazon Elastic Compute Cloud.
  10464. //
  10465. // Describes the running instances for the specified Spot fleet.
  10466. //
  10467. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10468. // with awserr.Error's Code and Message methods to get detailed information about
  10469. // the error.
  10470. //
  10471. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10472. // API operation DescribeSpotFleetInstances for usage and error information.
  10473. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances
  10474. func (c *EC2) DescribeSpotFleetInstances(input *DescribeSpotFleetInstancesInput) (*DescribeSpotFleetInstancesOutput, error) {
  10475. req, out := c.DescribeSpotFleetInstancesRequest(input)
  10476. return out, req.Send()
  10477. }
  10478. // DescribeSpotFleetInstancesWithContext is the same as DescribeSpotFleetInstances with the addition of
  10479. // the ability to pass a context and additional request options.
  10480. //
  10481. // See DescribeSpotFleetInstances for details on how to use this API operation.
  10482. //
  10483. // The context must be non-nil and will be used for request cancellation. If
  10484. // the context is nil a panic will occur. In the future the SDK may create
  10485. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10486. // for more information on using Contexts.
  10487. func (c *EC2) DescribeSpotFleetInstancesWithContext(ctx aws.Context, input *DescribeSpotFleetInstancesInput, opts ...request.Option) (*DescribeSpotFleetInstancesOutput, error) {
  10488. req, out := c.DescribeSpotFleetInstancesRequest(input)
  10489. req.SetContext(ctx)
  10490. req.ApplyOptions(opts...)
  10491. return out, req.Send()
  10492. }
  10493. const opDescribeSpotFleetRequestHistory = "DescribeSpotFleetRequestHistory"
  10494. // DescribeSpotFleetRequestHistoryRequest generates a "aws/request.Request" representing the
  10495. // client's request for the DescribeSpotFleetRequestHistory operation. The "output" return
  10496. // value can be used to capture response data after the request's "Send" method
  10497. // is called.
  10498. //
  10499. // See DescribeSpotFleetRequestHistory for usage and error information.
  10500. //
  10501. // Creating a request object using this method should be used when you want to inject
  10502. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10503. // access properties on the request object before or after sending the request. If
  10504. // you just want the service response, call the DescribeSpotFleetRequestHistory method directly
  10505. // instead.
  10506. //
  10507. // Note: You must call the "Send" method on the returned request object in order
  10508. // to execute the request.
  10509. //
  10510. // // Example sending a request using the DescribeSpotFleetRequestHistoryRequest method.
  10511. // req, resp := client.DescribeSpotFleetRequestHistoryRequest(params)
  10512. //
  10513. // err := req.Send()
  10514. // if err == nil { // resp is now filled
  10515. // fmt.Println(resp)
  10516. // }
  10517. //
  10518. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory
  10519. func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetRequestHistoryInput) (req *request.Request, output *DescribeSpotFleetRequestHistoryOutput) {
  10520. op := &request.Operation{
  10521. Name: opDescribeSpotFleetRequestHistory,
  10522. HTTPMethod: "POST",
  10523. HTTPPath: "/",
  10524. }
  10525. if input == nil {
  10526. input = &DescribeSpotFleetRequestHistoryInput{}
  10527. }
  10528. output = &DescribeSpotFleetRequestHistoryOutput{}
  10529. req = c.newRequest(op, input, output)
  10530. return
  10531. }
  10532. // DescribeSpotFleetRequestHistory API operation for Amazon Elastic Compute Cloud.
  10533. //
  10534. // Describes the events for the specified Spot fleet request during the specified
  10535. // time.
  10536. //
  10537. // Spot fleet events are delayed by up to 30 seconds before they can be described.
  10538. // This ensures that you can query by the last evaluated time and not miss a
  10539. // recorded event.
  10540. //
  10541. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10542. // with awserr.Error's Code and Message methods to get detailed information about
  10543. // the error.
  10544. //
  10545. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10546. // API operation DescribeSpotFleetRequestHistory for usage and error information.
  10547. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory
  10548. func (c *EC2) DescribeSpotFleetRequestHistory(input *DescribeSpotFleetRequestHistoryInput) (*DescribeSpotFleetRequestHistoryOutput, error) {
  10549. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  10550. return out, req.Send()
  10551. }
  10552. // DescribeSpotFleetRequestHistoryWithContext is the same as DescribeSpotFleetRequestHistory with the addition of
  10553. // the ability to pass a context and additional request options.
  10554. //
  10555. // See DescribeSpotFleetRequestHistory for details on how to use this API operation.
  10556. //
  10557. // The context must be non-nil and will be used for request cancellation. If
  10558. // the context is nil a panic will occur. In the future the SDK may create
  10559. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10560. // for more information on using Contexts.
  10561. func (c *EC2) DescribeSpotFleetRequestHistoryWithContext(ctx aws.Context, input *DescribeSpotFleetRequestHistoryInput, opts ...request.Option) (*DescribeSpotFleetRequestHistoryOutput, error) {
  10562. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  10563. req.SetContext(ctx)
  10564. req.ApplyOptions(opts...)
  10565. return out, req.Send()
  10566. }
  10567. const opDescribeSpotFleetRequests = "DescribeSpotFleetRequests"
  10568. // DescribeSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  10569. // client's request for the DescribeSpotFleetRequests operation. The "output" return
  10570. // value can be used to capture response data after the request's "Send" method
  10571. // is called.
  10572. //
  10573. // See DescribeSpotFleetRequests for usage and error information.
  10574. //
  10575. // Creating a request object using this method should be used when you want to inject
  10576. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10577. // access properties on the request object before or after sending the request. If
  10578. // you just want the service response, call the DescribeSpotFleetRequests method directly
  10579. // instead.
  10580. //
  10581. // Note: You must call the "Send" method on the returned request object in order
  10582. // to execute the request.
  10583. //
  10584. // // Example sending a request using the DescribeSpotFleetRequestsRequest method.
  10585. // req, resp := client.DescribeSpotFleetRequestsRequest(params)
  10586. //
  10587. // err := req.Send()
  10588. // if err == nil { // resp is now filled
  10589. // fmt.Println(resp)
  10590. // }
  10591. //
  10592. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests
  10593. func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsInput) (req *request.Request, output *DescribeSpotFleetRequestsOutput) {
  10594. op := &request.Operation{
  10595. Name: opDescribeSpotFleetRequests,
  10596. HTTPMethod: "POST",
  10597. HTTPPath: "/",
  10598. Paginator: &request.Paginator{
  10599. InputTokens: []string{"NextToken"},
  10600. OutputTokens: []string{"NextToken"},
  10601. LimitToken: "MaxResults",
  10602. TruncationToken: "",
  10603. },
  10604. }
  10605. if input == nil {
  10606. input = &DescribeSpotFleetRequestsInput{}
  10607. }
  10608. output = &DescribeSpotFleetRequestsOutput{}
  10609. req = c.newRequest(op, input, output)
  10610. return
  10611. }
  10612. // DescribeSpotFleetRequests API operation for Amazon Elastic Compute Cloud.
  10613. //
  10614. // Describes your Spot fleet requests.
  10615. //
  10616. // Spot fleet requests are deleted 48 hours after they are canceled and their
  10617. // instances are terminated.
  10618. //
  10619. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10620. // with awserr.Error's Code and Message methods to get detailed information about
  10621. // the error.
  10622. //
  10623. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10624. // API operation DescribeSpotFleetRequests for usage and error information.
  10625. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests
  10626. func (c *EC2) DescribeSpotFleetRequests(input *DescribeSpotFleetRequestsInput) (*DescribeSpotFleetRequestsOutput, error) {
  10627. req, out := c.DescribeSpotFleetRequestsRequest(input)
  10628. return out, req.Send()
  10629. }
  10630. // DescribeSpotFleetRequestsWithContext is the same as DescribeSpotFleetRequests with the addition of
  10631. // the ability to pass a context and additional request options.
  10632. //
  10633. // See DescribeSpotFleetRequests for details on how to use this API operation.
  10634. //
  10635. // The context must be non-nil and will be used for request cancellation. If
  10636. // the context is nil a panic will occur. In the future the SDK may create
  10637. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10638. // for more information on using Contexts.
  10639. func (c *EC2) DescribeSpotFleetRequestsWithContext(ctx aws.Context, input *DescribeSpotFleetRequestsInput, opts ...request.Option) (*DescribeSpotFleetRequestsOutput, error) {
  10640. req, out := c.DescribeSpotFleetRequestsRequest(input)
  10641. req.SetContext(ctx)
  10642. req.ApplyOptions(opts...)
  10643. return out, req.Send()
  10644. }
  10645. // DescribeSpotFleetRequestsPages iterates over the pages of a DescribeSpotFleetRequests operation,
  10646. // calling the "fn" function with the response data for each page. To stop
  10647. // iterating, return false from the fn function.
  10648. //
  10649. // See DescribeSpotFleetRequests method for more information on how to use this operation.
  10650. //
  10651. // Note: This operation can generate multiple requests to a service.
  10652. //
  10653. // // Example iterating over at most 3 pages of a DescribeSpotFleetRequests operation.
  10654. // pageNum := 0
  10655. // err := client.DescribeSpotFleetRequestsPages(params,
  10656. // func(page *DescribeSpotFleetRequestsOutput, lastPage bool) bool {
  10657. // pageNum++
  10658. // fmt.Println(page)
  10659. // return pageNum <= 3
  10660. // })
  10661. //
  10662. func (c *EC2) DescribeSpotFleetRequestsPages(input *DescribeSpotFleetRequestsInput, fn func(*DescribeSpotFleetRequestsOutput, bool) bool) error {
  10663. return c.DescribeSpotFleetRequestsPagesWithContext(aws.BackgroundContext(), input, fn)
  10664. }
  10665. // DescribeSpotFleetRequestsPagesWithContext same as DescribeSpotFleetRequestsPages except
  10666. // it takes a Context and allows setting request options on the pages.
  10667. //
  10668. // The context must be non-nil and will be used for request cancellation. If
  10669. // the context is nil a panic will occur. In the future the SDK may create
  10670. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10671. // for more information on using Contexts.
  10672. func (c *EC2) DescribeSpotFleetRequestsPagesWithContext(ctx aws.Context, input *DescribeSpotFleetRequestsInput, fn func(*DescribeSpotFleetRequestsOutput, bool) bool, opts ...request.Option) error {
  10673. p := request.Pagination{
  10674. NewRequest: func() (*request.Request, error) {
  10675. var inCpy *DescribeSpotFleetRequestsInput
  10676. if input != nil {
  10677. tmp := *input
  10678. inCpy = &tmp
  10679. }
  10680. req, _ := c.DescribeSpotFleetRequestsRequest(inCpy)
  10681. req.SetContext(ctx)
  10682. req.ApplyOptions(opts...)
  10683. return req, nil
  10684. },
  10685. }
  10686. cont := true
  10687. for p.Next() && cont {
  10688. cont = fn(p.Page().(*DescribeSpotFleetRequestsOutput), !p.HasNextPage())
  10689. }
  10690. return p.Err()
  10691. }
  10692. const opDescribeSpotInstanceRequests = "DescribeSpotInstanceRequests"
  10693. // DescribeSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  10694. // client's request for the DescribeSpotInstanceRequests operation. The "output" return
  10695. // value can be used to capture response data after the request's "Send" method
  10696. // is called.
  10697. //
  10698. // See DescribeSpotInstanceRequests for usage and error information.
  10699. //
  10700. // Creating a request object using this method should be used when you want to inject
  10701. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10702. // access properties on the request object before or after sending the request. If
  10703. // you just want the service response, call the DescribeSpotInstanceRequests method directly
  10704. // instead.
  10705. //
  10706. // Note: You must call the "Send" method on the returned request object in order
  10707. // to execute the request.
  10708. //
  10709. // // Example sending a request using the DescribeSpotInstanceRequestsRequest method.
  10710. // req, resp := client.DescribeSpotInstanceRequestsRequest(params)
  10711. //
  10712. // err := req.Send()
  10713. // if err == nil { // resp is now filled
  10714. // fmt.Println(resp)
  10715. // }
  10716. //
  10717. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  10718. func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceRequestsInput) (req *request.Request, output *DescribeSpotInstanceRequestsOutput) {
  10719. op := &request.Operation{
  10720. Name: opDescribeSpotInstanceRequests,
  10721. HTTPMethod: "POST",
  10722. HTTPPath: "/",
  10723. }
  10724. if input == nil {
  10725. input = &DescribeSpotInstanceRequestsInput{}
  10726. }
  10727. output = &DescribeSpotInstanceRequestsOutput{}
  10728. req = c.newRequest(op, input, output)
  10729. return
  10730. }
  10731. // DescribeSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
  10732. //
  10733. // Describes the Spot instance requests that belong to your account. Spot instances
  10734. // are instances that Amazon EC2 launches when the bid price that you specify
  10735. // exceeds the current Spot price. Amazon EC2 periodically sets the Spot price
  10736. // based on available Spot instance capacity and current Spot instance requests.
  10737. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  10738. // in the Amazon Elastic Compute Cloud User Guide.
  10739. //
  10740. // You can use DescribeSpotInstanceRequests to find a running Spot instance
  10741. // by examining the response. If the status of the Spot instance is fulfilled,
  10742. // the instance ID appears in the response and contains the identifier of the
  10743. // instance. Alternatively, you can use DescribeInstances with a filter to look
  10744. // for instances where the instance lifecycle is spot.
  10745. //
  10746. // Spot instance requests are deleted 4 hours after they are canceled and their
  10747. // instances are terminated.
  10748. //
  10749. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10750. // with awserr.Error's Code and Message methods to get detailed information about
  10751. // the error.
  10752. //
  10753. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10754. // API operation DescribeSpotInstanceRequests for usage and error information.
  10755. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  10756. func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) {
  10757. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  10758. return out, req.Send()
  10759. }
  10760. // DescribeSpotInstanceRequestsWithContext is the same as DescribeSpotInstanceRequests with the addition of
  10761. // the ability to pass a context and additional request options.
  10762. //
  10763. // See DescribeSpotInstanceRequests for details on how to use this API operation.
  10764. //
  10765. // The context must be non-nil and will be used for request cancellation. If
  10766. // the context is nil a panic will occur. In the future the SDK may create
  10767. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10768. // for more information on using Contexts.
  10769. func (c *EC2) DescribeSpotInstanceRequestsWithContext(ctx aws.Context, input *DescribeSpotInstanceRequestsInput, opts ...request.Option) (*DescribeSpotInstanceRequestsOutput, error) {
  10770. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  10771. req.SetContext(ctx)
  10772. req.ApplyOptions(opts...)
  10773. return out, req.Send()
  10774. }
  10775. const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory"
  10776. // DescribeSpotPriceHistoryRequest generates a "aws/request.Request" representing the
  10777. // client's request for the DescribeSpotPriceHistory operation. The "output" return
  10778. // value can be used to capture response data after the request's "Send" method
  10779. // is called.
  10780. //
  10781. // See DescribeSpotPriceHistory for usage and error information.
  10782. //
  10783. // Creating a request object using this method should be used when you want to inject
  10784. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10785. // access properties on the request object before or after sending the request. If
  10786. // you just want the service response, call the DescribeSpotPriceHistory method directly
  10787. // instead.
  10788. //
  10789. // Note: You must call the "Send" method on the returned request object in order
  10790. // to execute the request.
  10791. //
  10792. // // Example sending a request using the DescribeSpotPriceHistoryRequest method.
  10793. // req, resp := client.DescribeSpotPriceHistoryRequest(params)
  10794. //
  10795. // err := req.Send()
  10796. // if err == nil { // resp is now filled
  10797. // fmt.Println(resp)
  10798. // }
  10799. //
  10800. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  10801. func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInput) (req *request.Request, output *DescribeSpotPriceHistoryOutput) {
  10802. op := &request.Operation{
  10803. Name: opDescribeSpotPriceHistory,
  10804. HTTPMethod: "POST",
  10805. HTTPPath: "/",
  10806. Paginator: &request.Paginator{
  10807. InputTokens: []string{"NextToken"},
  10808. OutputTokens: []string{"NextToken"},
  10809. LimitToken: "MaxResults",
  10810. TruncationToken: "",
  10811. },
  10812. }
  10813. if input == nil {
  10814. input = &DescribeSpotPriceHistoryInput{}
  10815. }
  10816. output = &DescribeSpotPriceHistoryOutput{}
  10817. req = c.newRequest(op, input, output)
  10818. return
  10819. }
  10820. // DescribeSpotPriceHistory API operation for Amazon Elastic Compute Cloud.
  10821. //
  10822. // Describes the Spot price history. For more information, see Spot Instance
  10823. // Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html)
  10824. // in the Amazon Elastic Compute Cloud User Guide.
  10825. //
  10826. // When you specify a start and end time, this operation returns the prices
  10827. // of the instance types within the time range that you specified and the time
  10828. // when the price changed. The price is valid within the time period that you
  10829. // specified; the response merely indicates the last time that the price changed.
  10830. //
  10831. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10832. // with awserr.Error's Code and Message methods to get detailed information about
  10833. // the error.
  10834. //
  10835. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10836. // API operation DescribeSpotPriceHistory for usage and error information.
  10837. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  10838. func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) {
  10839. req, out := c.DescribeSpotPriceHistoryRequest(input)
  10840. return out, req.Send()
  10841. }
  10842. // DescribeSpotPriceHistoryWithContext is the same as DescribeSpotPriceHistory with the addition of
  10843. // the ability to pass a context and additional request options.
  10844. //
  10845. // See DescribeSpotPriceHistory for details on how to use this API operation.
  10846. //
  10847. // The context must be non-nil and will be used for request cancellation. If
  10848. // the context is nil a panic will occur. In the future the SDK may create
  10849. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10850. // for more information on using Contexts.
  10851. func (c *EC2) DescribeSpotPriceHistoryWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, opts ...request.Option) (*DescribeSpotPriceHistoryOutput, error) {
  10852. req, out := c.DescribeSpotPriceHistoryRequest(input)
  10853. req.SetContext(ctx)
  10854. req.ApplyOptions(opts...)
  10855. return out, req.Send()
  10856. }
  10857. // DescribeSpotPriceHistoryPages iterates over the pages of a DescribeSpotPriceHistory operation,
  10858. // calling the "fn" function with the response data for each page. To stop
  10859. // iterating, return false from the fn function.
  10860. //
  10861. // See DescribeSpotPriceHistory method for more information on how to use this operation.
  10862. //
  10863. // Note: This operation can generate multiple requests to a service.
  10864. //
  10865. // // Example iterating over at most 3 pages of a DescribeSpotPriceHistory operation.
  10866. // pageNum := 0
  10867. // err := client.DescribeSpotPriceHistoryPages(params,
  10868. // func(page *DescribeSpotPriceHistoryOutput, lastPage bool) bool {
  10869. // pageNum++
  10870. // fmt.Println(page)
  10871. // return pageNum <= 3
  10872. // })
  10873. //
  10874. func (c *EC2) DescribeSpotPriceHistoryPages(input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool) error {
  10875. return c.DescribeSpotPriceHistoryPagesWithContext(aws.BackgroundContext(), input, fn)
  10876. }
  10877. // DescribeSpotPriceHistoryPagesWithContext same as DescribeSpotPriceHistoryPages except
  10878. // it takes a Context and allows setting request options on the pages.
  10879. //
  10880. // The context must be non-nil and will be used for request cancellation. If
  10881. // the context is nil a panic will occur. In the future the SDK may create
  10882. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10883. // for more information on using Contexts.
  10884. func (c *EC2) DescribeSpotPriceHistoryPagesWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool, opts ...request.Option) error {
  10885. p := request.Pagination{
  10886. NewRequest: func() (*request.Request, error) {
  10887. var inCpy *DescribeSpotPriceHistoryInput
  10888. if input != nil {
  10889. tmp := *input
  10890. inCpy = &tmp
  10891. }
  10892. req, _ := c.DescribeSpotPriceHistoryRequest(inCpy)
  10893. req.SetContext(ctx)
  10894. req.ApplyOptions(opts...)
  10895. return req, nil
  10896. },
  10897. }
  10898. cont := true
  10899. for p.Next() && cont {
  10900. cont = fn(p.Page().(*DescribeSpotPriceHistoryOutput), !p.HasNextPage())
  10901. }
  10902. return p.Err()
  10903. }
  10904. const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups"
  10905. // DescribeStaleSecurityGroupsRequest generates a "aws/request.Request" representing the
  10906. // client's request for the DescribeStaleSecurityGroups operation. The "output" return
  10907. // value can be used to capture response data after the request's "Send" method
  10908. // is called.
  10909. //
  10910. // See DescribeStaleSecurityGroups for usage and error information.
  10911. //
  10912. // Creating a request object using this method should be used when you want to inject
  10913. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10914. // access properties on the request object before or after sending the request. If
  10915. // you just want the service response, call the DescribeStaleSecurityGroups method directly
  10916. // instead.
  10917. //
  10918. // Note: You must call the "Send" method on the returned request object in order
  10919. // to execute the request.
  10920. //
  10921. // // Example sending a request using the DescribeStaleSecurityGroupsRequest method.
  10922. // req, resp := client.DescribeStaleSecurityGroupsRequest(params)
  10923. //
  10924. // err := req.Send()
  10925. // if err == nil { // resp is now filled
  10926. // fmt.Println(resp)
  10927. // }
  10928. //
  10929. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  10930. func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) (req *request.Request, output *DescribeStaleSecurityGroupsOutput) {
  10931. op := &request.Operation{
  10932. Name: opDescribeStaleSecurityGroups,
  10933. HTTPMethod: "POST",
  10934. HTTPPath: "/",
  10935. }
  10936. if input == nil {
  10937. input = &DescribeStaleSecurityGroupsInput{}
  10938. }
  10939. output = &DescribeStaleSecurityGroupsOutput{}
  10940. req = c.newRequest(op, input, output)
  10941. return
  10942. }
  10943. // DescribeStaleSecurityGroups API operation for Amazon Elastic Compute Cloud.
  10944. //
  10945. // [EC2-VPC only] Describes the stale security group rules for security groups
  10946. // in a specified VPC. Rules are stale when they reference a deleted security
  10947. // group in a peer VPC, or a security group in a peer VPC for which the VPC
  10948. // peering connection has been deleted.
  10949. //
  10950. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10951. // with awserr.Error's Code and Message methods to get detailed information about
  10952. // the error.
  10953. //
  10954. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10955. // API operation DescribeStaleSecurityGroups for usage and error information.
  10956. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  10957. func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) {
  10958. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  10959. return out, req.Send()
  10960. }
  10961. // DescribeStaleSecurityGroupsWithContext is the same as DescribeStaleSecurityGroups with the addition of
  10962. // the ability to pass a context and additional request options.
  10963. //
  10964. // See DescribeStaleSecurityGroups for details on how to use this API operation.
  10965. //
  10966. // The context must be non-nil and will be used for request cancellation. If
  10967. // the context is nil a panic will occur. In the future the SDK may create
  10968. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10969. // for more information on using Contexts.
  10970. func (c *EC2) DescribeStaleSecurityGroupsWithContext(ctx aws.Context, input *DescribeStaleSecurityGroupsInput, opts ...request.Option) (*DescribeStaleSecurityGroupsOutput, error) {
  10971. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  10972. req.SetContext(ctx)
  10973. req.ApplyOptions(opts...)
  10974. return out, req.Send()
  10975. }
  10976. const opDescribeSubnets = "DescribeSubnets"
  10977. // DescribeSubnetsRequest generates a "aws/request.Request" representing the
  10978. // client's request for the DescribeSubnets operation. The "output" return
  10979. // value can be used to capture response data after the request's "Send" method
  10980. // is called.
  10981. //
  10982. // See DescribeSubnets for usage and error information.
  10983. //
  10984. // Creating a request object using this method should be used when you want to inject
  10985. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10986. // access properties on the request object before or after sending the request. If
  10987. // you just want the service response, call the DescribeSubnets method directly
  10988. // instead.
  10989. //
  10990. // Note: You must call the "Send" method on the returned request object in order
  10991. // to execute the request.
  10992. //
  10993. // // Example sending a request using the DescribeSubnetsRequest method.
  10994. // req, resp := client.DescribeSubnetsRequest(params)
  10995. //
  10996. // err := req.Send()
  10997. // if err == nil { // resp is now filled
  10998. // fmt.Println(resp)
  10999. // }
  11000. //
  11001. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  11002. func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request.Request, output *DescribeSubnetsOutput) {
  11003. op := &request.Operation{
  11004. Name: opDescribeSubnets,
  11005. HTTPMethod: "POST",
  11006. HTTPPath: "/",
  11007. }
  11008. if input == nil {
  11009. input = &DescribeSubnetsInput{}
  11010. }
  11011. output = &DescribeSubnetsOutput{}
  11012. req = c.newRequest(op, input, output)
  11013. return
  11014. }
  11015. // DescribeSubnets API operation for Amazon Elastic Compute Cloud.
  11016. //
  11017. // Describes one or more of your subnets.
  11018. //
  11019. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  11020. // in the Amazon Virtual Private Cloud User Guide.
  11021. //
  11022. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11023. // with awserr.Error's Code and Message methods to get detailed information about
  11024. // the error.
  11025. //
  11026. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11027. // API operation DescribeSubnets for usage and error information.
  11028. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  11029. func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) {
  11030. req, out := c.DescribeSubnetsRequest(input)
  11031. return out, req.Send()
  11032. }
  11033. // DescribeSubnetsWithContext is the same as DescribeSubnets with the addition of
  11034. // the ability to pass a context and additional request options.
  11035. //
  11036. // See DescribeSubnets for details on how to use this API operation.
  11037. //
  11038. // The context must be non-nil and will be used for request cancellation. If
  11039. // the context is nil a panic will occur. In the future the SDK may create
  11040. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11041. // for more information on using Contexts.
  11042. func (c *EC2) DescribeSubnetsWithContext(ctx aws.Context, input *DescribeSubnetsInput, opts ...request.Option) (*DescribeSubnetsOutput, error) {
  11043. req, out := c.DescribeSubnetsRequest(input)
  11044. req.SetContext(ctx)
  11045. req.ApplyOptions(opts...)
  11046. return out, req.Send()
  11047. }
  11048. const opDescribeTags = "DescribeTags"
  11049. // DescribeTagsRequest generates a "aws/request.Request" representing the
  11050. // client's request for the DescribeTags operation. The "output" return
  11051. // value can be used to capture response data after the request's "Send" method
  11052. // is called.
  11053. //
  11054. // See DescribeTags for usage and error information.
  11055. //
  11056. // Creating a request object using this method should be used when you want to inject
  11057. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11058. // access properties on the request object before or after sending the request. If
  11059. // you just want the service response, call the DescribeTags method directly
  11060. // instead.
  11061. //
  11062. // Note: You must call the "Send" method on the returned request object in order
  11063. // to execute the request.
  11064. //
  11065. // // Example sending a request using the DescribeTagsRequest method.
  11066. // req, resp := client.DescribeTagsRequest(params)
  11067. //
  11068. // err := req.Send()
  11069. // if err == nil { // resp is now filled
  11070. // fmt.Println(resp)
  11071. // }
  11072. //
  11073. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  11074. func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  11075. op := &request.Operation{
  11076. Name: opDescribeTags,
  11077. HTTPMethod: "POST",
  11078. HTTPPath: "/",
  11079. Paginator: &request.Paginator{
  11080. InputTokens: []string{"NextToken"},
  11081. OutputTokens: []string{"NextToken"},
  11082. LimitToken: "MaxResults",
  11083. TruncationToken: "",
  11084. },
  11085. }
  11086. if input == nil {
  11087. input = &DescribeTagsInput{}
  11088. }
  11089. output = &DescribeTagsOutput{}
  11090. req = c.newRequest(op, input, output)
  11091. return
  11092. }
  11093. // DescribeTags API operation for Amazon Elastic Compute Cloud.
  11094. //
  11095. // Describes one or more of the tags for your EC2 resources.
  11096. //
  11097. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  11098. // in the Amazon Elastic Compute Cloud User Guide.
  11099. //
  11100. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11101. // with awserr.Error's Code and Message methods to get detailed information about
  11102. // the error.
  11103. //
  11104. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11105. // API operation DescribeTags for usage and error information.
  11106. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  11107. func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  11108. req, out := c.DescribeTagsRequest(input)
  11109. return out, req.Send()
  11110. }
  11111. // DescribeTagsWithContext is the same as DescribeTags with the addition of
  11112. // the ability to pass a context and additional request options.
  11113. //
  11114. // See DescribeTags for details on how to use this API operation.
  11115. //
  11116. // The context must be non-nil and will be used for request cancellation. If
  11117. // the context is nil a panic will occur. In the future the SDK may create
  11118. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11119. // for more information on using Contexts.
  11120. func (c *EC2) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  11121. req, out := c.DescribeTagsRequest(input)
  11122. req.SetContext(ctx)
  11123. req.ApplyOptions(opts...)
  11124. return out, req.Send()
  11125. }
  11126. // DescribeTagsPages iterates over the pages of a DescribeTags operation,
  11127. // calling the "fn" function with the response data for each page. To stop
  11128. // iterating, return false from the fn function.
  11129. //
  11130. // See DescribeTags method for more information on how to use this operation.
  11131. //
  11132. // Note: This operation can generate multiple requests to a service.
  11133. //
  11134. // // Example iterating over at most 3 pages of a DescribeTags operation.
  11135. // pageNum := 0
  11136. // err := client.DescribeTagsPages(params,
  11137. // func(page *DescribeTagsOutput, lastPage bool) bool {
  11138. // pageNum++
  11139. // fmt.Println(page)
  11140. // return pageNum <= 3
  11141. // })
  11142. //
  11143. func (c *EC2) DescribeTagsPages(input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool) error {
  11144. return c.DescribeTagsPagesWithContext(aws.BackgroundContext(), input, fn)
  11145. }
  11146. // DescribeTagsPagesWithContext same as DescribeTagsPages except
  11147. // it takes a Context and allows setting request options on the pages.
  11148. //
  11149. // The context must be non-nil and will be used for request cancellation. If
  11150. // the context is nil a panic will occur. In the future the SDK may create
  11151. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11152. // for more information on using Contexts.
  11153. func (c *EC2) DescribeTagsPagesWithContext(ctx aws.Context, input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool, opts ...request.Option) error {
  11154. p := request.Pagination{
  11155. NewRequest: func() (*request.Request, error) {
  11156. var inCpy *DescribeTagsInput
  11157. if input != nil {
  11158. tmp := *input
  11159. inCpy = &tmp
  11160. }
  11161. req, _ := c.DescribeTagsRequest(inCpy)
  11162. req.SetContext(ctx)
  11163. req.ApplyOptions(opts...)
  11164. return req, nil
  11165. },
  11166. }
  11167. cont := true
  11168. for p.Next() && cont {
  11169. cont = fn(p.Page().(*DescribeTagsOutput), !p.HasNextPage())
  11170. }
  11171. return p.Err()
  11172. }
  11173. const opDescribeVolumeAttribute = "DescribeVolumeAttribute"
  11174. // DescribeVolumeAttributeRequest generates a "aws/request.Request" representing the
  11175. // client's request for the DescribeVolumeAttribute operation. The "output" return
  11176. // value can be used to capture response data after the request's "Send" method
  11177. // is called.
  11178. //
  11179. // See DescribeVolumeAttribute for usage and error information.
  11180. //
  11181. // Creating a request object using this method should be used when you want to inject
  11182. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11183. // access properties on the request object before or after sending the request. If
  11184. // you just want the service response, call the DescribeVolumeAttribute method directly
  11185. // instead.
  11186. //
  11187. // Note: You must call the "Send" method on the returned request object in order
  11188. // to execute the request.
  11189. //
  11190. // // Example sending a request using the DescribeVolumeAttributeRequest method.
  11191. // req, resp := client.DescribeVolumeAttributeRequest(params)
  11192. //
  11193. // err := req.Send()
  11194. // if err == nil { // resp is now filled
  11195. // fmt.Println(resp)
  11196. // }
  11197. //
  11198. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  11199. func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput) (req *request.Request, output *DescribeVolumeAttributeOutput) {
  11200. op := &request.Operation{
  11201. Name: opDescribeVolumeAttribute,
  11202. HTTPMethod: "POST",
  11203. HTTPPath: "/",
  11204. }
  11205. if input == nil {
  11206. input = &DescribeVolumeAttributeInput{}
  11207. }
  11208. output = &DescribeVolumeAttributeOutput{}
  11209. req = c.newRequest(op, input, output)
  11210. return
  11211. }
  11212. // DescribeVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  11213. //
  11214. // Describes the specified attribute of the specified volume. You can specify
  11215. // only one attribute at a time.
  11216. //
  11217. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  11218. // in the Amazon Elastic Compute Cloud User Guide.
  11219. //
  11220. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11221. // with awserr.Error's Code and Message methods to get detailed information about
  11222. // the error.
  11223. //
  11224. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11225. // API operation DescribeVolumeAttribute for usage and error information.
  11226. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  11227. func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) {
  11228. req, out := c.DescribeVolumeAttributeRequest(input)
  11229. return out, req.Send()
  11230. }
  11231. // DescribeVolumeAttributeWithContext is the same as DescribeVolumeAttribute with the addition of
  11232. // the ability to pass a context and additional request options.
  11233. //
  11234. // See DescribeVolumeAttribute for details on how to use this API operation.
  11235. //
  11236. // The context must be non-nil and will be used for request cancellation. If
  11237. // the context is nil a panic will occur. In the future the SDK may create
  11238. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11239. // for more information on using Contexts.
  11240. func (c *EC2) DescribeVolumeAttributeWithContext(ctx aws.Context, input *DescribeVolumeAttributeInput, opts ...request.Option) (*DescribeVolumeAttributeOutput, error) {
  11241. req, out := c.DescribeVolumeAttributeRequest(input)
  11242. req.SetContext(ctx)
  11243. req.ApplyOptions(opts...)
  11244. return out, req.Send()
  11245. }
  11246. const opDescribeVolumeStatus = "DescribeVolumeStatus"
  11247. // DescribeVolumeStatusRequest generates a "aws/request.Request" representing the
  11248. // client's request for the DescribeVolumeStatus operation. The "output" return
  11249. // value can be used to capture response data after the request's "Send" method
  11250. // is called.
  11251. //
  11252. // See DescribeVolumeStatus for usage and error information.
  11253. //
  11254. // Creating a request object using this method should be used when you want to inject
  11255. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11256. // access properties on the request object before or after sending the request. If
  11257. // you just want the service response, call the DescribeVolumeStatus method directly
  11258. // instead.
  11259. //
  11260. // Note: You must call the "Send" method on the returned request object in order
  11261. // to execute the request.
  11262. //
  11263. // // Example sending a request using the DescribeVolumeStatusRequest method.
  11264. // req, resp := client.DescribeVolumeStatusRequest(params)
  11265. //
  11266. // err := req.Send()
  11267. // if err == nil { // resp is now filled
  11268. // fmt.Println(resp)
  11269. // }
  11270. //
  11271. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  11272. func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req *request.Request, output *DescribeVolumeStatusOutput) {
  11273. op := &request.Operation{
  11274. Name: opDescribeVolumeStatus,
  11275. HTTPMethod: "POST",
  11276. HTTPPath: "/",
  11277. Paginator: &request.Paginator{
  11278. InputTokens: []string{"NextToken"},
  11279. OutputTokens: []string{"NextToken"},
  11280. LimitToken: "MaxResults",
  11281. TruncationToken: "",
  11282. },
  11283. }
  11284. if input == nil {
  11285. input = &DescribeVolumeStatusInput{}
  11286. }
  11287. output = &DescribeVolumeStatusOutput{}
  11288. req = c.newRequest(op, input, output)
  11289. return
  11290. }
  11291. // DescribeVolumeStatus API operation for Amazon Elastic Compute Cloud.
  11292. //
  11293. // Describes the status of the specified volumes. Volume status provides the
  11294. // result of the checks performed on your volumes to determine events that can
  11295. // impair the performance of your volumes. The performance of a volume can be
  11296. // affected if an issue occurs on the volume's underlying host. If the volume's
  11297. // underlying host experiences a power outage or system issue, after the system
  11298. // is restored, there could be data inconsistencies on the volume. Volume events
  11299. // notify you if this occurs. Volume actions notify you if any action needs
  11300. // to be taken in response to the event.
  11301. //
  11302. // The DescribeVolumeStatus operation provides the following information about
  11303. // the specified volumes:
  11304. //
  11305. // Status: Reflects the current status of the volume. The possible values are
  11306. // ok, impaired , warning, or insufficient-data. If all checks pass, the overall
  11307. // status of the volume is ok. If the check fails, the overall status is impaired.
  11308. // If the status is insufficient-data, then the checks may still be taking place
  11309. // on your volume at the time. We recommend that you retry the request. For
  11310. // more information on volume status, see Monitoring the Status of Your Volumes
  11311. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html).
  11312. //
  11313. // Events: Reflect the cause of a volume status and may require you to take
  11314. // action. For example, if your volume returns an impaired status, then the
  11315. // volume event might be potential-data-inconsistency. This means that your
  11316. // volume has been affected by an issue with the underlying host, has all I/O
  11317. // operations disabled, and may have inconsistent data.
  11318. //
  11319. // Actions: Reflect the actions you may have to take in response to an event.
  11320. // For example, if the status of the volume is impaired and the volume event
  11321. // shows potential-data-inconsistency, then the action shows enable-volume-io.
  11322. // This means that you may want to enable the I/O operations for the volume
  11323. // by calling the EnableVolumeIO action and then check the volume for data consistency.
  11324. //
  11325. // Volume status is based on the volume status checks, and does not reflect
  11326. // the volume state. Therefore, volume status does not indicate volumes in the
  11327. // error state (for example, when a volume is incapable of accepting I/O.)
  11328. //
  11329. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11330. // with awserr.Error's Code and Message methods to get detailed information about
  11331. // the error.
  11332. //
  11333. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11334. // API operation DescribeVolumeStatus for usage and error information.
  11335. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  11336. func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) {
  11337. req, out := c.DescribeVolumeStatusRequest(input)
  11338. return out, req.Send()
  11339. }
  11340. // DescribeVolumeStatusWithContext is the same as DescribeVolumeStatus with the addition of
  11341. // the ability to pass a context and additional request options.
  11342. //
  11343. // See DescribeVolumeStatus for details on how to use this API operation.
  11344. //
  11345. // The context must be non-nil and will be used for request cancellation. If
  11346. // the context is nil a panic will occur. In the future the SDK may create
  11347. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11348. // for more information on using Contexts.
  11349. func (c *EC2) DescribeVolumeStatusWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, opts ...request.Option) (*DescribeVolumeStatusOutput, error) {
  11350. req, out := c.DescribeVolumeStatusRequest(input)
  11351. req.SetContext(ctx)
  11352. req.ApplyOptions(opts...)
  11353. return out, req.Send()
  11354. }
  11355. // DescribeVolumeStatusPages iterates over the pages of a DescribeVolumeStatus operation,
  11356. // calling the "fn" function with the response data for each page. To stop
  11357. // iterating, return false from the fn function.
  11358. //
  11359. // See DescribeVolumeStatus method for more information on how to use this operation.
  11360. //
  11361. // Note: This operation can generate multiple requests to a service.
  11362. //
  11363. // // Example iterating over at most 3 pages of a DescribeVolumeStatus operation.
  11364. // pageNum := 0
  11365. // err := client.DescribeVolumeStatusPages(params,
  11366. // func(page *DescribeVolumeStatusOutput, lastPage bool) bool {
  11367. // pageNum++
  11368. // fmt.Println(page)
  11369. // return pageNum <= 3
  11370. // })
  11371. //
  11372. func (c *EC2) DescribeVolumeStatusPages(input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool) error {
  11373. return c.DescribeVolumeStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  11374. }
  11375. // DescribeVolumeStatusPagesWithContext same as DescribeVolumeStatusPages except
  11376. // it takes a Context and allows setting request options on the pages.
  11377. //
  11378. // The context must be non-nil and will be used for request cancellation. If
  11379. // the context is nil a panic will occur. In the future the SDK may create
  11380. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11381. // for more information on using Contexts.
  11382. func (c *EC2) DescribeVolumeStatusPagesWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool, opts ...request.Option) error {
  11383. p := request.Pagination{
  11384. NewRequest: func() (*request.Request, error) {
  11385. var inCpy *DescribeVolumeStatusInput
  11386. if input != nil {
  11387. tmp := *input
  11388. inCpy = &tmp
  11389. }
  11390. req, _ := c.DescribeVolumeStatusRequest(inCpy)
  11391. req.SetContext(ctx)
  11392. req.ApplyOptions(opts...)
  11393. return req, nil
  11394. },
  11395. }
  11396. cont := true
  11397. for p.Next() && cont {
  11398. cont = fn(p.Page().(*DescribeVolumeStatusOutput), !p.HasNextPage())
  11399. }
  11400. return p.Err()
  11401. }
  11402. const opDescribeVolumes = "DescribeVolumes"
  11403. // DescribeVolumesRequest generates a "aws/request.Request" representing the
  11404. // client's request for the DescribeVolumes operation. The "output" return
  11405. // value can be used to capture response data after the request's "Send" method
  11406. // is called.
  11407. //
  11408. // See DescribeVolumes for usage and error information.
  11409. //
  11410. // Creating a request object using this method should be used when you want to inject
  11411. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11412. // access properties on the request object before or after sending the request. If
  11413. // you just want the service response, call the DescribeVolumes method directly
  11414. // instead.
  11415. //
  11416. // Note: You must call the "Send" method on the returned request object in order
  11417. // to execute the request.
  11418. //
  11419. // // Example sending a request using the DescribeVolumesRequest method.
  11420. // req, resp := client.DescribeVolumesRequest(params)
  11421. //
  11422. // err := req.Send()
  11423. // if err == nil { // resp is now filled
  11424. // fmt.Println(resp)
  11425. // }
  11426. //
  11427. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  11428. func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  11429. op := &request.Operation{
  11430. Name: opDescribeVolumes,
  11431. HTTPMethod: "POST",
  11432. HTTPPath: "/",
  11433. Paginator: &request.Paginator{
  11434. InputTokens: []string{"NextToken"},
  11435. OutputTokens: []string{"NextToken"},
  11436. LimitToken: "MaxResults",
  11437. TruncationToken: "",
  11438. },
  11439. }
  11440. if input == nil {
  11441. input = &DescribeVolumesInput{}
  11442. }
  11443. output = &DescribeVolumesOutput{}
  11444. req = c.newRequest(op, input, output)
  11445. return
  11446. }
  11447. // DescribeVolumes API operation for Amazon Elastic Compute Cloud.
  11448. //
  11449. // Describes the specified EBS volumes.
  11450. //
  11451. // If you are describing a long list of volumes, you can paginate the output
  11452. // to make the list more manageable. The MaxResults parameter sets the maximum
  11453. // number of results returned in a single page. If the list of results exceeds
  11454. // your MaxResults value, then that number of results is returned along with
  11455. // a NextToken value that can be passed to a subsequent DescribeVolumes request
  11456. // to retrieve the remaining results.
  11457. //
  11458. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  11459. // in the Amazon Elastic Compute Cloud User Guide.
  11460. //
  11461. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11462. // with awserr.Error's Code and Message methods to get detailed information about
  11463. // the error.
  11464. //
  11465. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11466. // API operation DescribeVolumes for usage and error information.
  11467. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  11468. func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  11469. req, out := c.DescribeVolumesRequest(input)
  11470. return out, req.Send()
  11471. }
  11472. // DescribeVolumesWithContext is the same as DescribeVolumes with the addition of
  11473. // the ability to pass a context and additional request options.
  11474. //
  11475. // See DescribeVolumes for details on how to use this API operation.
  11476. //
  11477. // The context must be non-nil and will be used for request cancellation. If
  11478. // the context is nil a panic will occur. In the future the SDK may create
  11479. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11480. // for more information on using Contexts.
  11481. func (c *EC2) DescribeVolumesWithContext(ctx aws.Context, input *DescribeVolumesInput, opts ...request.Option) (*DescribeVolumesOutput, error) {
  11482. req, out := c.DescribeVolumesRequest(input)
  11483. req.SetContext(ctx)
  11484. req.ApplyOptions(opts...)
  11485. return out, req.Send()
  11486. }
  11487. // DescribeVolumesPages iterates over the pages of a DescribeVolumes operation,
  11488. // calling the "fn" function with the response data for each page. To stop
  11489. // iterating, return false from the fn function.
  11490. //
  11491. // See DescribeVolumes method for more information on how to use this operation.
  11492. //
  11493. // Note: This operation can generate multiple requests to a service.
  11494. //
  11495. // // Example iterating over at most 3 pages of a DescribeVolumes operation.
  11496. // pageNum := 0
  11497. // err := client.DescribeVolumesPages(params,
  11498. // func(page *DescribeVolumesOutput, lastPage bool) bool {
  11499. // pageNum++
  11500. // fmt.Println(page)
  11501. // return pageNum <= 3
  11502. // })
  11503. //
  11504. func (c *EC2) DescribeVolumesPages(input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool) error {
  11505. return c.DescribeVolumesPagesWithContext(aws.BackgroundContext(), input, fn)
  11506. }
  11507. // DescribeVolumesPagesWithContext same as DescribeVolumesPages except
  11508. // it takes a Context and allows setting request options on the pages.
  11509. //
  11510. // The context must be non-nil and will be used for request cancellation. If
  11511. // the context is nil a panic will occur. In the future the SDK may create
  11512. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11513. // for more information on using Contexts.
  11514. func (c *EC2) DescribeVolumesPagesWithContext(ctx aws.Context, input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool, opts ...request.Option) error {
  11515. p := request.Pagination{
  11516. NewRequest: func() (*request.Request, error) {
  11517. var inCpy *DescribeVolumesInput
  11518. if input != nil {
  11519. tmp := *input
  11520. inCpy = &tmp
  11521. }
  11522. req, _ := c.DescribeVolumesRequest(inCpy)
  11523. req.SetContext(ctx)
  11524. req.ApplyOptions(opts...)
  11525. return req, nil
  11526. },
  11527. }
  11528. cont := true
  11529. for p.Next() && cont {
  11530. cont = fn(p.Page().(*DescribeVolumesOutput), !p.HasNextPage())
  11531. }
  11532. return p.Err()
  11533. }
  11534. const opDescribeVolumesModifications = "DescribeVolumesModifications"
  11535. // DescribeVolumesModificationsRequest generates a "aws/request.Request" representing the
  11536. // client's request for the DescribeVolumesModifications operation. The "output" return
  11537. // value can be used to capture response data after the request's "Send" method
  11538. // is called.
  11539. //
  11540. // See DescribeVolumesModifications for usage and error information.
  11541. //
  11542. // Creating a request object using this method should be used when you want to inject
  11543. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11544. // access properties on the request object before or after sending the request. If
  11545. // you just want the service response, call the DescribeVolumesModifications method directly
  11546. // instead.
  11547. //
  11548. // Note: You must call the "Send" method on the returned request object in order
  11549. // to execute the request.
  11550. //
  11551. // // Example sending a request using the DescribeVolumesModificationsRequest method.
  11552. // req, resp := client.DescribeVolumesModificationsRequest(params)
  11553. //
  11554. // err := req.Send()
  11555. // if err == nil { // resp is now filled
  11556. // fmt.Println(resp)
  11557. // }
  11558. //
  11559. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  11560. func (c *EC2) DescribeVolumesModificationsRequest(input *DescribeVolumesModificationsInput) (req *request.Request, output *DescribeVolumesModificationsOutput) {
  11561. op := &request.Operation{
  11562. Name: opDescribeVolumesModifications,
  11563. HTTPMethod: "POST",
  11564. HTTPPath: "/",
  11565. }
  11566. if input == nil {
  11567. input = &DescribeVolumesModificationsInput{}
  11568. }
  11569. output = &DescribeVolumesModificationsOutput{}
  11570. req = c.newRequest(op, input, output)
  11571. return
  11572. }
  11573. // DescribeVolumesModifications API operation for Amazon Elastic Compute Cloud.
  11574. //
  11575. // Reports the current modification status of EBS volumes.
  11576. //
  11577. // Current-generation EBS volumes support modification of attributes including
  11578. // type, size, and (for io1 volumes) IOPS provisioning while either attached
  11579. // to or detached from an instance. Following an action from the API or the
  11580. // console to modify a volume, the status of the modification may be modifying,
  11581. // optimizing, completed, or failed. If a volume has never been modified, then
  11582. // certain elements of the returned VolumeModification objects are null.
  11583. //
  11584. // You can also use CloudWatch Events to check the status of a modification
  11585. // to an EBS volume. For information about CloudWatch Events, see the Amazon
  11586. // CloudWatch Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  11587. // For more information, see Monitoring Volume Modifications" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).
  11588. //
  11589. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11590. // with awserr.Error's Code and Message methods to get detailed information about
  11591. // the error.
  11592. //
  11593. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11594. // API operation DescribeVolumesModifications for usage and error information.
  11595. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  11596. func (c *EC2) DescribeVolumesModifications(input *DescribeVolumesModificationsInput) (*DescribeVolumesModificationsOutput, error) {
  11597. req, out := c.DescribeVolumesModificationsRequest(input)
  11598. return out, req.Send()
  11599. }
  11600. // DescribeVolumesModificationsWithContext is the same as DescribeVolumesModifications with the addition of
  11601. // the ability to pass a context and additional request options.
  11602. //
  11603. // See DescribeVolumesModifications for details on how to use this API operation.
  11604. //
  11605. // The context must be non-nil and will be used for request cancellation. If
  11606. // the context is nil a panic will occur. In the future the SDK may create
  11607. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11608. // for more information on using Contexts.
  11609. func (c *EC2) DescribeVolumesModificationsWithContext(ctx aws.Context, input *DescribeVolumesModificationsInput, opts ...request.Option) (*DescribeVolumesModificationsOutput, error) {
  11610. req, out := c.DescribeVolumesModificationsRequest(input)
  11611. req.SetContext(ctx)
  11612. req.ApplyOptions(opts...)
  11613. return out, req.Send()
  11614. }
  11615. const opDescribeVpcAttribute = "DescribeVpcAttribute"
  11616. // DescribeVpcAttributeRequest generates a "aws/request.Request" representing the
  11617. // client's request for the DescribeVpcAttribute operation. The "output" return
  11618. // value can be used to capture response data after the request's "Send" method
  11619. // is called.
  11620. //
  11621. // See DescribeVpcAttribute for usage and error information.
  11622. //
  11623. // Creating a request object using this method should be used when you want to inject
  11624. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11625. // access properties on the request object before or after sending the request. If
  11626. // you just want the service response, call the DescribeVpcAttribute method directly
  11627. // instead.
  11628. //
  11629. // Note: You must call the "Send" method on the returned request object in order
  11630. // to execute the request.
  11631. //
  11632. // // Example sending a request using the DescribeVpcAttributeRequest method.
  11633. // req, resp := client.DescribeVpcAttributeRequest(params)
  11634. //
  11635. // err := req.Send()
  11636. // if err == nil { // resp is now filled
  11637. // fmt.Println(resp)
  11638. // }
  11639. //
  11640. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  11641. func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req *request.Request, output *DescribeVpcAttributeOutput) {
  11642. op := &request.Operation{
  11643. Name: opDescribeVpcAttribute,
  11644. HTTPMethod: "POST",
  11645. HTTPPath: "/",
  11646. }
  11647. if input == nil {
  11648. input = &DescribeVpcAttributeInput{}
  11649. }
  11650. output = &DescribeVpcAttributeOutput{}
  11651. req = c.newRequest(op, input, output)
  11652. return
  11653. }
  11654. // DescribeVpcAttribute API operation for Amazon Elastic Compute Cloud.
  11655. //
  11656. // Describes the specified attribute of the specified VPC. You can specify only
  11657. // one attribute at a time.
  11658. //
  11659. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11660. // with awserr.Error's Code and Message methods to get detailed information about
  11661. // the error.
  11662. //
  11663. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11664. // API operation DescribeVpcAttribute for usage and error information.
  11665. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  11666. func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) {
  11667. req, out := c.DescribeVpcAttributeRequest(input)
  11668. return out, req.Send()
  11669. }
  11670. // DescribeVpcAttributeWithContext is the same as DescribeVpcAttribute with the addition of
  11671. // the ability to pass a context and additional request options.
  11672. //
  11673. // See DescribeVpcAttribute for details on how to use this API operation.
  11674. //
  11675. // The context must be non-nil and will be used for request cancellation. If
  11676. // the context is nil a panic will occur. In the future the SDK may create
  11677. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11678. // for more information on using Contexts.
  11679. func (c *EC2) DescribeVpcAttributeWithContext(ctx aws.Context, input *DescribeVpcAttributeInput, opts ...request.Option) (*DescribeVpcAttributeOutput, error) {
  11680. req, out := c.DescribeVpcAttributeRequest(input)
  11681. req.SetContext(ctx)
  11682. req.ApplyOptions(opts...)
  11683. return out, req.Send()
  11684. }
  11685. const opDescribeVpcClassicLink = "DescribeVpcClassicLink"
  11686. // DescribeVpcClassicLinkRequest generates a "aws/request.Request" representing the
  11687. // client's request for the DescribeVpcClassicLink operation. The "output" return
  11688. // value can be used to capture response data after the request's "Send" method
  11689. // is called.
  11690. //
  11691. // See DescribeVpcClassicLink for usage and error information.
  11692. //
  11693. // Creating a request object using this method should be used when you want to inject
  11694. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11695. // access properties on the request object before or after sending the request. If
  11696. // you just want the service response, call the DescribeVpcClassicLink method directly
  11697. // instead.
  11698. //
  11699. // Note: You must call the "Send" method on the returned request object in order
  11700. // to execute the request.
  11701. //
  11702. // // Example sending a request using the DescribeVpcClassicLinkRequest method.
  11703. // req, resp := client.DescribeVpcClassicLinkRequest(params)
  11704. //
  11705. // err := req.Send()
  11706. // if err == nil { // resp is now filled
  11707. // fmt.Println(resp)
  11708. // }
  11709. //
  11710. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  11711. func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) (req *request.Request, output *DescribeVpcClassicLinkOutput) {
  11712. op := &request.Operation{
  11713. Name: opDescribeVpcClassicLink,
  11714. HTTPMethod: "POST",
  11715. HTTPPath: "/",
  11716. }
  11717. if input == nil {
  11718. input = &DescribeVpcClassicLinkInput{}
  11719. }
  11720. output = &DescribeVpcClassicLinkOutput{}
  11721. req = c.newRequest(op, input, output)
  11722. return
  11723. }
  11724. // DescribeVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  11725. //
  11726. // Describes the ClassicLink status of one or more VPCs.
  11727. //
  11728. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11729. // with awserr.Error's Code and Message methods to get detailed information about
  11730. // the error.
  11731. //
  11732. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11733. // API operation DescribeVpcClassicLink for usage and error information.
  11734. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  11735. func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) {
  11736. req, out := c.DescribeVpcClassicLinkRequest(input)
  11737. return out, req.Send()
  11738. }
  11739. // DescribeVpcClassicLinkWithContext is the same as DescribeVpcClassicLink with the addition of
  11740. // the ability to pass a context and additional request options.
  11741. //
  11742. // See DescribeVpcClassicLink for details on how to use this API operation.
  11743. //
  11744. // The context must be non-nil and will be used for request cancellation. If
  11745. // the context is nil a panic will occur. In the future the SDK may create
  11746. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11747. // for more information on using Contexts.
  11748. func (c *EC2) DescribeVpcClassicLinkWithContext(ctx aws.Context, input *DescribeVpcClassicLinkInput, opts ...request.Option) (*DescribeVpcClassicLinkOutput, error) {
  11749. req, out := c.DescribeVpcClassicLinkRequest(input)
  11750. req.SetContext(ctx)
  11751. req.ApplyOptions(opts...)
  11752. return out, req.Send()
  11753. }
  11754. const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport"
  11755. // DescribeVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  11756. // client's request for the DescribeVpcClassicLinkDnsSupport operation. The "output" return
  11757. // value can be used to capture response data after the request's "Send" method
  11758. // is called.
  11759. //
  11760. // See DescribeVpcClassicLinkDnsSupport for usage and error information.
  11761. //
  11762. // Creating a request object using this method should be used when you want to inject
  11763. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11764. // access properties on the request object before or after sending the request. If
  11765. // you just want the service response, call the DescribeVpcClassicLinkDnsSupport method directly
  11766. // instead.
  11767. //
  11768. // Note: You must call the "Send" method on the returned request object in order
  11769. // to execute the request.
  11770. //
  11771. // // Example sending a request using the DescribeVpcClassicLinkDnsSupportRequest method.
  11772. // req, resp := client.DescribeVpcClassicLinkDnsSupportRequest(params)
  11773. //
  11774. // err := req.Send()
  11775. // if err == nil { // resp is now filled
  11776. // fmt.Println(resp)
  11777. // }
  11778. //
  11779. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  11780. func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) (req *request.Request, output *DescribeVpcClassicLinkDnsSupportOutput) {
  11781. op := &request.Operation{
  11782. Name: opDescribeVpcClassicLinkDnsSupport,
  11783. HTTPMethod: "POST",
  11784. HTTPPath: "/",
  11785. }
  11786. if input == nil {
  11787. input = &DescribeVpcClassicLinkDnsSupportInput{}
  11788. }
  11789. output = &DescribeVpcClassicLinkDnsSupportOutput{}
  11790. req = c.newRequest(op, input, output)
  11791. return
  11792. }
  11793. // DescribeVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  11794. //
  11795. // Describes the ClassicLink DNS support status of one or more VPCs. If enabled,
  11796. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  11797. // IP address when addressed from an instance in the VPC to which it's linked.
  11798. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  11799. // IP address when addressed from a linked EC2-Classic instance. For more information,
  11800. // see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  11801. // in the Amazon Elastic Compute Cloud User Guide.
  11802. //
  11803. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11804. // with awserr.Error's Code and Message methods to get detailed information about
  11805. // the error.
  11806. //
  11807. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11808. // API operation DescribeVpcClassicLinkDnsSupport for usage and error information.
  11809. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  11810. func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  11811. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  11812. return out, req.Send()
  11813. }
  11814. // DescribeVpcClassicLinkDnsSupportWithContext is the same as DescribeVpcClassicLinkDnsSupport with the addition of
  11815. // the ability to pass a context and additional request options.
  11816. //
  11817. // See DescribeVpcClassicLinkDnsSupport for details on how to use this API operation.
  11818. //
  11819. // The context must be non-nil and will be used for request cancellation. If
  11820. // the context is nil a panic will occur. In the future the SDK may create
  11821. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11822. // for more information on using Contexts.
  11823. func (c *EC2) DescribeVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DescribeVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  11824. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  11825. req.SetContext(ctx)
  11826. req.ApplyOptions(opts...)
  11827. return out, req.Send()
  11828. }
  11829. const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices"
  11830. // DescribeVpcEndpointServicesRequest generates a "aws/request.Request" representing the
  11831. // client's request for the DescribeVpcEndpointServices operation. The "output" return
  11832. // value can be used to capture response data after the request's "Send" method
  11833. // is called.
  11834. //
  11835. // See DescribeVpcEndpointServices for usage and error information.
  11836. //
  11837. // Creating a request object using this method should be used when you want to inject
  11838. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11839. // access properties on the request object before or after sending the request. If
  11840. // you just want the service response, call the DescribeVpcEndpointServices method directly
  11841. // instead.
  11842. //
  11843. // Note: You must call the "Send" method on the returned request object in order
  11844. // to execute the request.
  11845. //
  11846. // // Example sending a request using the DescribeVpcEndpointServicesRequest method.
  11847. // req, resp := client.DescribeVpcEndpointServicesRequest(params)
  11848. //
  11849. // err := req.Send()
  11850. // if err == nil { // resp is now filled
  11851. // fmt.Println(resp)
  11852. // }
  11853. //
  11854. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  11855. func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServicesInput) (req *request.Request, output *DescribeVpcEndpointServicesOutput) {
  11856. op := &request.Operation{
  11857. Name: opDescribeVpcEndpointServices,
  11858. HTTPMethod: "POST",
  11859. HTTPPath: "/",
  11860. }
  11861. if input == nil {
  11862. input = &DescribeVpcEndpointServicesInput{}
  11863. }
  11864. output = &DescribeVpcEndpointServicesOutput{}
  11865. req = c.newRequest(op, input, output)
  11866. return
  11867. }
  11868. // DescribeVpcEndpointServices API operation for Amazon Elastic Compute Cloud.
  11869. //
  11870. // Describes all supported AWS services that can be specified when creating
  11871. // a VPC endpoint.
  11872. //
  11873. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11874. // with awserr.Error's Code and Message methods to get detailed information about
  11875. // the error.
  11876. //
  11877. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11878. // API operation DescribeVpcEndpointServices for usage and error information.
  11879. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  11880. func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) {
  11881. req, out := c.DescribeVpcEndpointServicesRequest(input)
  11882. return out, req.Send()
  11883. }
  11884. // DescribeVpcEndpointServicesWithContext is the same as DescribeVpcEndpointServices with the addition of
  11885. // the ability to pass a context and additional request options.
  11886. //
  11887. // See DescribeVpcEndpointServices for details on how to use this API operation.
  11888. //
  11889. // The context must be non-nil and will be used for request cancellation. If
  11890. // the context is nil a panic will occur. In the future the SDK may create
  11891. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11892. // for more information on using Contexts.
  11893. func (c *EC2) DescribeVpcEndpointServicesWithContext(ctx aws.Context, input *DescribeVpcEndpointServicesInput, opts ...request.Option) (*DescribeVpcEndpointServicesOutput, error) {
  11894. req, out := c.DescribeVpcEndpointServicesRequest(input)
  11895. req.SetContext(ctx)
  11896. req.ApplyOptions(opts...)
  11897. return out, req.Send()
  11898. }
  11899. const opDescribeVpcEndpoints = "DescribeVpcEndpoints"
  11900. // DescribeVpcEndpointsRequest generates a "aws/request.Request" representing the
  11901. // client's request for the DescribeVpcEndpoints operation. The "output" return
  11902. // value can be used to capture response data after the request's "Send" method
  11903. // is called.
  11904. //
  11905. // See DescribeVpcEndpoints for usage and error information.
  11906. //
  11907. // Creating a request object using this method should be used when you want to inject
  11908. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11909. // access properties on the request object before or after sending the request. If
  11910. // you just want the service response, call the DescribeVpcEndpoints method directly
  11911. // instead.
  11912. //
  11913. // Note: You must call the "Send" method on the returned request object in order
  11914. // to execute the request.
  11915. //
  11916. // // Example sending a request using the DescribeVpcEndpointsRequest method.
  11917. // req, resp := client.DescribeVpcEndpointsRequest(params)
  11918. //
  11919. // err := req.Send()
  11920. // if err == nil { // resp is now filled
  11921. // fmt.Println(resp)
  11922. // }
  11923. //
  11924. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  11925. func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req *request.Request, output *DescribeVpcEndpointsOutput) {
  11926. op := &request.Operation{
  11927. Name: opDescribeVpcEndpoints,
  11928. HTTPMethod: "POST",
  11929. HTTPPath: "/",
  11930. }
  11931. if input == nil {
  11932. input = &DescribeVpcEndpointsInput{}
  11933. }
  11934. output = &DescribeVpcEndpointsOutput{}
  11935. req = c.newRequest(op, input, output)
  11936. return
  11937. }
  11938. // DescribeVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  11939. //
  11940. // Describes one or more of your VPC endpoints.
  11941. //
  11942. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11943. // with awserr.Error's Code and Message methods to get detailed information about
  11944. // the error.
  11945. //
  11946. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11947. // API operation DescribeVpcEndpoints for usage and error information.
  11948. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  11949. func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) {
  11950. req, out := c.DescribeVpcEndpointsRequest(input)
  11951. return out, req.Send()
  11952. }
  11953. // DescribeVpcEndpointsWithContext is the same as DescribeVpcEndpoints with the addition of
  11954. // the ability to pass a context and additional request options.
  11955. //
  11956. // See DescribeVpcEndpoints for details on how to use this API operation.
  11957. //
  11958. // The context must be non-nil and will be used for request cancellation. If
  11959. // the context is nil a panic will occur. In the future the SDK may create
  11960. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11961. // for more information on using Contexts.
  11962. func (c *EC2) DescribeVpcEndpointsWithContext(ctx aws.Context, input *DescribeVpcEndpointsInput, opts ...request.Option) (*DescribeVpcEndpointsOutput, error) {
  11963. req, out := c.DescribeVpcEndpointsRequest(input)
  11964. req.SetContext(ctx)
  11965. req.ApplyOptions(opts...)
  11966. return out, req.Send()
  11967. }
  11968. const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections"
  11969. // DescribeVpcPeeringConnectionsRequest generates a "aws/request.Request" representing the
  11970. // client's request for the DescribeVpcPeeringConnections operation. The "output" return
  11971. // value can be used to capture response data after the request's "Send" method
  11972. // is called.
  11973. //
  11974. // See DescribeVpcPeeringConnections for usage and error information.
  11975. //
  11976. // Creating a request object using this method should be used when you want to inject
  11977. // custom logic into the request's lifecycle using a custom handler, or if you want to
  11978. // access properties on the request object before or after sending the request. If
  11979. // you just want the service response, call the DescribeVpcPeeringConnections method directly
  11980. // instead.
  11981. //
  11982. // Note: You must call the "Send" method on the returned request object in order
  11983. // to execute the request.
  11984. //
  11985. // // Example sending a request using the DescribeVpcPeeringConnectionsRequest method.
  11986. // req, resp := client.DescribeVpcPeeringConnectionsRequest(params)
  11987. //
  11988. // err := req.Send()
  11989. // if err == nil { // resp is now filled
  11990. // fmt.Println(resp)
  11991. // }
  11992. //
  11993. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  11994. func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConnectionsInput) (req *request.Request, output *DescribeVpcPeeringConnectionsOutput) {
  11995. op := &request.Operation{
  11996. Name: opDescribeVpcPeeringConnections,
  11997. HTTPMethod: "POST",
  11998. HTTPPath: "/",
  11999. }
  12000. if input == nil {
  12001. input = &DescribeVpcPeeringConnectionsInput{}
  12002. }
  12003. output = &DescribeVpcPeeringConnectionsOutput{}
  12004. req = c.newRequest(op, input, output)
  12005. return
  12006. }
  12007. // DescribeVpcPeeringConnections API operation for Amazon Elastic Compute Cloud.
  12008. //
  12009. // Describes one or more of your VPC peering connections.
  12010. //
  12011. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12012. // with awserr.Error's Code and Message methods to get detailed information about
  12013. // the error.
  12014. //
  12015. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12016. // API operation DescribeVpcPeeringConnections for usage and error information.
  12017. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  12018. func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) {
  12019. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  12020. return out, req.Send()
  12021. }
  12022. // DescribeVpcPeeringConnectionsWithContext is the same as DescribeVpcPeeringConnections with the addition of
  12023. // the ability to pass a context and additional request options.
  12024. //
  12025. // See DescribeVpcPeeringConnections for details on how to use this API operation.
  12026. //
  12027. // The context must be non-nil and will be used for request cancellation. If
  12028. // the context is nil a panic will occur. In the future the SDK may create
  12029. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12030. // for more information on using Contexts.
  12031. func (c *EC2) DescribeVpcPeeringConnectionsWithContext(ctx aws.Context, input *DescribeVpcPeeringConnectionsInput, opts ...request.Option) (*DescribeVpcPeeringConnectionsOutput, error) {
  12032. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  12033. req.SetContext(ctx)
  12034. req.ApplyOptions(opts...)
  12035. return out, req.Send()
  12036. }
  12037. const opDescribeVpcs = "DescribeVpcs"
  12038. // DescribeVpcsRequest generates a "aws/request.Request" representing the
  12039. // client's request for the DescribeVpcs operation. The "output" return
  12040. // value can be used to capture response data after the request's "Send" method
  12041. // is called.
  12042. //
  12043. // See DescribeVpcs for usage and error information.
  12044. //
  12045. // Creating a request object using this method should be used when you want to inject
  12046. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12047. // access properties on the request object before or after sending the request. If
  12048. // you just want the service response, call the DescribeVpcs method directly
  12049. // instead.
  12050. //
  12051. // Note: You must call the "Send" method on the returned request object in order
  12052. // to execute the request.
  12053. //
  12054. // // Example sending a request using the DescribeVpcsRequest method.
  12055. // req, resp := client.DescribeVpcsRequest(params)
  12056. //
  12057. // err := req.Send()
  12058. // if err == nil { // resp is now filled
  12059. // fmt.Println(resp)
  12060. // }
  12061. //
  12062. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  12063. func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Request, output *DescribeVpcsOutput) {
  12064. op := &request.Operation{
  12065. Name: opDescribeVpcs,
  12066. HTTPMethod: "POST",
  12067. HTTPPath: "/",
  12068. }
  12069. if input == nil {
  12070. input = &DescribeVpcsInput{}
  12071. }
  12072. output = &DescribeVpcsOutput{}
  12073. req = c.newRequest(op, input, output)
  12074. return
  12075. }
  12076. // DescribeVpcs API operation for Amazon Elastic Compute Cloud.
  12077. //
  12078. // Describes one or more of your VPCs.
  12079. //
  12080. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12081. // with awserr.Error's Code and Message methods to get detailed information about
  12082. // the error.
  12083. //
  12084. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12085. // API operation DescribeVpcs for usage and error information.
  12086. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  12087. func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) {
  12088. req, out := c.DescribeVpcsRequest(input)
  12089. return out, req.Send()
  12090. }
  12091. // DescribeVpcsWithContext is the same as DescribeVpcs with the addition of
  12092. // the ability to pass a context and additional request options.
  12093. //
  12094. // See DescribeVpcs for details on how to use this API operation.
  12095. //
  12096. // The context must be non-nil and will be used for request cancellation. If
  12097. // the context is nil a panic will occur. In the future the SDK may create
  12098. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12099. // for more information on using Contexts.
  12100. func (c *EC2) DescribeVpcsWithContext(ctx aws.Context, input *DescribeVpcsInput, opts ...request.Option) (*DescribeVpcsOutput, error) {
  12101. req, out := c.DescribeVpcsRequest(input)
  12102. req.SetContext(ctx)
  12103. req.ApplyOptions(opts...)
  12104. return out, req.Send()
  12105. }
  12106. const opDescribeVpnConnections = "DescribeVpnConnections"
  12107. // DescribeVpnConnectionsRequest generates a "aws/request.Request" representing the
  12108. // client's request for the DescribeVpnConnections operation. The "output" return
  12109. // value can be used to capture response data after the request's "Send" method
  12110. // is called.
  12111. //
  12112. // See DescribeVpnConnections for usage and error information.
  12113. //
  12114. // Creating a request object using this method should be used when you want to inject
  12115. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12116. // access properties on the request object before or after sending the request. If
  12117. // you just want the service response, call the DescribeVpnConnections method directly
  12118. // instead.
  12119. //
  12120. // Note: You must call the "Send" method on the returned request object in order
  12121. // to execute the request.
  12122. //
  12123. // // Example sending a request using the DescribeVpnConnectionsRequest method.
  12124. // req, resp := client.DescribeVpnConnectionsRequest(params)
  12125. //
  12126. // err := req.Send()
  12127. // if err == nil { // resp is now filled
  12128. // fmt.Println(resp)
  12129. // }
  12130. //
  12131. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  12132. func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) (req *request.Request, output *DescribeVpnConnectionsOutput) {
  12133. op := &request.Operation{
  12134. Name: opDescribeVpnConnections,
  12135. HTTPMethod: "POST",
  12136. HTTPPath: "/",
  12137. }
  12138. if input == nil {
  12139. input = &DescribeVpnConnectionsInput{}
  12140. }
  12141. output = &DescribeVpnConnectionsOutput{}
  12142. req = c.newRequest(op, input, output)
  12143. return
  12144. }
  12145. // DescribeVpnConnections API operation for Amazon Elastic Compute Cloud.
  12146. //
  12147. // Describes one or more of your VPN connections.
  12148. //
  12149. // For more information about VPN connections, see Adding a Hardware Virtual
  12150. // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  12151. // in the Amazon Virtual Private Cloud User Guide.
  12152. //
  12153. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12154. // with awserr.Error's Code and Message methods to get detailed information about
  12155. // the error.
  12156. //
  12157. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12158. // API operation DescribeVpnConnections for usage and error information.
  12159. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  12160. func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) {
  12161. req, out := c.DescribeVpnConnectionsRequest(input)
  12162. return out, req.Send()
  12163. }
  12164. // DescribeVpnConnectionsWithContext is the same as DescribeVpnConnections with the addition of
  12165. // the ability to pass a context and additional request options.
  12166. //
  12167. // See DescribeVpnConnections for details on how to use this API operation.
  12168. //
  12169. // The context must be non-nil and will be used for request cancellation. If
  12170. // the context is nil a panic will occur. In the future the SDK may create
  12171. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12172. // for more information on using Contexts.
  12173. func (c *EC2) DescribeVpnConnectionsWithContext(ctx aws.Context, input *DescribeVpnConnectionsInput, opts ...request.Option) (*DescribeVpnConnectionsOutput, error) {
  12174. req, out := c.DescribeVpnConnectionsRequest(input)
  12175. req.SetContext(ctx)
  12176. req.ApplyOptions(opts...)
  12177. return out, req.Send()
  12178. }
  12179. const opDescribeVpnGateways = "DescribeVpnGateways"
  12180. // DescribeVpnGatewaysRequest generates a "aws/request.Request" representing the
  12181. // client's request for the DescribeVpnGateways operation. The "output" return
  12182. // value can be used to capture response data after the request's "Send" method
  12183. // is called.
  12184. //
  12185. // See DescribeVpnGateways for usage and error information.
  12186. //
  12187. // Creating a request object using this method should be used when you want to inject
  12188. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12189. // access properties on the request object before or after sending the request. If
  12190. // you just want the service response, call the DescribeVpnGateways method directly
  12191. // instead.
  12192. //
  12193. // Note: You must call the "Send" method on the returned request object in order
  12194. // to execute the request.
  12195. //
  12196. // // Example sending a request using the DescribeVpnGatewaysRequest method.
  12197. // req, resp := client.DescribeVpnGatewaysRequest(params)
  12198. //
  12199. // err := req.Send()
  12200. // if err == nil { // resp is now filled
  12201. // fmt.Println(resp)
  12202. // }
  12203. //
  12204. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  12205. func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req *request.Request, output *DescribeVpnGatewaysOutput) {
  12206. op := &request.Operation{
  12207. Name: opDescribeVpnGateways,
  12208. HTTPMethod: "POST",
  12209. HTTPPath: "/",
  12210. }
  12211. if input == nil {
  12212. input = &DescribeVpnGatewaysInput{}
  12213. }
  12214. output = &DescribeVpnGatewaysOutput{}
  12215. req = c.newRequest(op, input, output)
  12216. return
  12217. }
  12218. // DescribeVpnGateways API operation for Amazon Elastic Compute Cloud.
  12219. //
  12220. // Describes one or more of your virtual private gateways.
  12221. //
  12222. // For more information about virtual private gateways, see Adding an IPsec
  12223. // Hardware VPN to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  12224. // in the Amazon Virtual Private Cloud User Guide.
  12225. //
  12226. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12227. // with awserr.Error's Code and Message methods to get detailed information about
  12228. // the error.
  12229. //
  12230. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12231. // API operation DescribeVpnGateways for usage and error information.
  12232. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  12233. func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) {
  12234. req, out := c.DescribeVpnGatewaysRequest(input)
  12235. return out, req.Send()
  12236. }
  12237. // DescribeVpnGatewaysWithContext is the same as DescribeVpnGateways with the addition of
  12238. // the ability to pass a context and additional request options.
  12239. //
  12240. // See DescribeVpnGateways for details on how to use this API operation.
  12241. //
  12242. // The context must be non-nil and will be used for request cancellation. If
  12243. // the context is nil a panic will occur. In the future the SDK may create
  12244. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12245. // for more information on using Contexts.
  12246. func (c *EC2) DescribeVpnGatewaysWithContext(ctx aws.Context, input *DescribeVpnGatewaysInput, opts ...request.Option) (*DescribeVpnGatewaysOutput, error) {
  12247. req, out := c.DescribeVpnGatewaysRequest(input)
  12248. req.SetContext(ctx)
  12249. req.ApplyOptions(opts...)
  12250. return out, req.Send()
  12251. }
  12252. const opDetachClassicLinkVpc = "DetachClassicLinkVpc"
  12253. // DetachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  12254. // client's request for the DetachClassicLinkVpc operation. The "output" return
  12255. // value can be used to capture response data after the request's "Send" method
  12256. // is called.
  12257. //
  12258. // See DetachClassicLinkVpc for usage and error information.
  12259. //
  12260. // Creating a request object using this method should be used when you want to inject
  12261. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12262. // access properties on the request object before or after sending the request. If
  12263. // you just want the service response, call the DetachClassicLinkVpc method directly
  12264. // instead.
  12265. //
  12266. // Note: You must call the "Send" method on the returned request object in order
  12267. // to execute the request.
  12268. //
  12269. // // Example sending a request using the DetachClassicLinkVpcRequest method.
  12270. // req, resp := client.DetachClassicLinkVpcRequest(params)
  12271. //
  12272. // err := req.Send()
  12273. // if err == nil { // resp is now filled
  12274. // fmt.Println(resp)
  12275. // }
  12276. //
  12277. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  12278. func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req *request.Request, output *DetachClassicLinkVpcOutput) {
  12279. op := &request.Operation{
  12280. Name: opDetachClassicLinkVpc,
  12281. HTTPMethod: "POST",
  12282. HTTPPath: "/",
  12283. }
  12284. if input == nil {
  12285. input = &DetachClassicLinkVpcInput{}
  12286. }
  12287. output = &DetachClassicLinkVpcOutput{}
  12288. req = c.newRequest(op, input, output)
  12289. return
  12290. }
  12291. // DetachClassicLinkVpc API operation for Amazon Elastic Compute Cloud.
  12292. //
  12293. // Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance
  12294. // has been unlinked, the VPC security groups are no longer associated with
  12295. // it. An instance is automatically unlinked from a VPC when it's stopped.
  12296. //
  12297. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12298. // with awserr.Error's Code and Message methods to get detailed information about
  12299. // the error.
  12300. //
  12301. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12302. // API operation DetachClassicLinkVpc for usage and error information.
  12303. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  12304. func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) {
  12305. req, out := c.DetachClassicLinkVpcRequest(input)
  12306. return out, req.Send()
  12307. }
  12308. // DetachClassicLinkVpcWithContext is the same as DetachClassicLinkVpc with the addition of
  12309. // the ability to pass a context and additional request options.
  12310. //
  12311. // See DetachClassicLinkVpc for details on how to use this API operation.
  12312. //
  12313. // The context must be non-nil and will be used for request cancellation. If
  12314. // the context is nil a panic will occur. In the future the SDK may create
  12315. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12316. // for more information on using Contexts.
  12317. func (c *EC2) DetachClassicLinkVpcWithContext(ctx aws.Context, input *DetachClassicLinkVpcInput, opts ...request.Option) (*DetachClassicLinkVpcOutput, error) {
  12318. req, out := c.DetachClassicLinkVpcRequest(input)
  12319. req.SetContext(ctx)
  12320. req.ApplyOptions(opts...)
  12321. return out, req.Send()
  12322. }
  12323. const opDetachInternetGateway = "DetachInternetGateway"
  12324. // DetachInternetGatewayRequest generates a "aws/request.Request" representing the
  12325. // client's request for the DetachInternetGateway operation. The "output" return
  12326. // value can be used to capture response data after the request's "Send" method
  12327. // is called.
  12328. //
  12329. // See DetachInternetGateway for usage and error information.
  12330. //
  12331. // Creating a request object using this method should be used when you want to inject
  12332. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12333. // access properties on the request object before or after sending the request. If
  12334. // you just want the service response, call the DetachInternetGateway method directly
  12335. // instead.
  12336. //
  12337. // Note: You must call the "Send" method on the returned request object in order
  12338. // to execute the request.
  12339. //
  12340. // // Example sending a request using the DetachInternetGatewayRequest method.
  12341. // req, resp := client.DetachInternetGatewayRequest(params)
  12342. //
  12343. // err := req.Send()
  12344. // if err == nil { // resp is now filled
  12345. // fmt.Println(resp)
  12346. // }
  12347. //
  12348. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  12349. func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (req *request.Request, output *DetachInternetGatewayOutput) {
  12350. op := &request.Operation{
  12351. Name: opDetachInternetGateway,
  12352. HTTPMethod: "POST",
  12353. HTTPPath: "/",
  12354. }
  12355. if input == nil {
  12356. input = &DetachInternetGatewayInput{}
  12357. }
  12358. output = &DetachInternetGatewayOutput{}
  12359. req = c.newRequest(op, input, output)
  12360. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  12361. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  12362. return
  12363. }
  12364. // DetachInternetGateway API operation for Amazon Elastic Compute Cloud.
  12365. //
  12366. // Detaches an Internet gateway from a VPC, disabling connectivity between the
  12367. // Internet and the VPC. The VPC must not contain any running instances with
  12368. // Elastic IP addresses or public IPv4 addresses.
  12369. //
  12370. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12371. // with awserr.Error's Code and Message methods to get detailed information about
  12372. // the error.
  12373. //
  12374. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12375. // API operation DetachInternetGateway for usage and error information.
  12376. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  12377. func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) {
  12378. req, out := c.DetachInternetGatewayRequest(input)
  12379. return out, req.Send()
  12380. }
  12381. // DetachInternetGatewayWithContext is the same as DetachInternetGateway with the addition of
  12382. // the ability to pass a context and additional request options.
  12383. //
  12384. // See DetachInternetGateway for details on how to use this API operation.
  12385. //
  12386. // The context must be non-nil and will be used for request cancellation. If
  12387. // the context is nil a panic will occur. In the future the SDK may create
  12388. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12389. // for more information on using Contexts.
  12390. func (c *EC2) DetachInternetGatewayWithContext(ctx aws.Context, input *DetachInternetGatewayInput, opts ...request.Option) (*DetachInternetGatewayOutput, error) {
  12391. req, out := c.DetachInternetGatewayRequest(input)
  12392. req.SetContext(ctx)
  12393. req.ApplyOptions(opts...)
  12394. return out, req.Send()
  12395. }
  12396. const opDetachNetworkInterface = "DetachNetworkInterface"
  12397. // DetachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  12398. // client's request for the DetachNetworkInterface operation. The "output" return
  12399. // value can be used to capture response data after the request's "Send" method
  12400. // is called.
  12401. //
  12402. // See DetachNetworkInterface for usage and error information.
  12403. //
  12404. // Creating a request object using this method should be used when you want to inject
  12405. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12406. // access properties on the request object before or after sending the request. If
  12407. // you just want the service response, call the DetachNetworkInterface method directly
  12408. // instead.
  12409. //
  12410. // Note: You must call the "Send" method on the returned request object in order
  12411. // to execute the request.
  12412. //
  12413. // // Example sending a request using the DetachNetworkInterfaceRequest method.
  12414. // req, resp := client.DetachNetworkInterfaceRequest(params)
  12415. //
  12416. // err := req.Send()
  12417. // if err == nil { // resp is now filled
  12418. // fmt.Println(resp)
  12419. // }
  12420. //
  12421. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  12422. func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) (req *request.Request, output *DetachNetworkInterfaceOutput) {
  12423. op := &request.Operation{
  12424. Name: opDetachNetworkInterface,
  12425. HTTPMethod: "POST",
  12426. HTTPPath: "/",
  12427. }
  12428. if input == nil {
  12429. input = &DetachNetworkInterfaceInput{}
  12430. }
  12431. output = &DetachNetworkInterfaceOutput{}
  12432. req = c.newRequest(op, input, output)
  12433. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  12434. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  12435. return
  12436. }
  12437. // DetachNetworkInterface API operation for Amazon Elastic Compute Cloud.
  12438. //
  12439. // Detaches a network interface from an instance.
  12440. //
  12441. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12442. // with awserr.Error's Code and Message methods to get detailed information about
  12443. // the error.
  12444. //
  12445. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12446. // API operation DetachNetworkInterface for usage and error information.
  12447. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  12448. func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) {
  12449. req, out := c.DetachNetworkInterfaceRequest(input)
  12450. return out, req.Send()
  12451. }
  12452. // DetachNetworkInterfaceWithContext is the same as DetachNetworkInterface with the addition of
  12453. // the ability to pass a context and additional request options.
  12454. //
  12455. // See DetachNetworkInterface for details on how to use this API operation.
  12456. //
  12457. // The context must be non-nil and will be used for request cancellation. If
  12458. // the context is nil a panic will occur. In the future the SDK may create
  12459. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12460. // for more information on using Contexts.
  12461. func (c *EC2) DetachNetworkInterfaceWithContext(ctx aws.Context, input *DetachNetworkInterfaceInput, opts ...request.Option) (*DetachNetworkInterfaceOutput, error) {
  12462. req, out := c.DetachNetworkInterfaceRequest(input)
  12463. req.SetContext(ctx)
  12464. req.ApplyOptions(opts...)
  12465. return out, req.Send()
  12466. }
  12467. const opDetachVolume = "DetachVolume"
  12468. // DetachVolumeRequest generates a "aws/request.Request" representing the
  12469. // client's request for the DetachVolume operation. The "output" return
  12470. // value can be used to capture response data after the request's "Send" method
  12471. // is called.
  12472. //
  12473. // See DetachVolume for usage and error information.
  12474. //
  12475. // Creating a request object using this method should be used when you want to inject
  12476. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12477. // access properties on the request object before or after sending the request. If
  12478. // you just want the service response, call the DetachVolume method directly
  12479. // instead.
  12480. //
  12481. // Note: You must call the "Send" method on the returned request object in order
  12482. // to execute the request.
  12483. //
  12484. // // Example sending a request using the DetachVolumeRequest method.
  12485. // req, resp := client.DetachVolumeRequest(params)
  12486. //
  12487. // err := req.Send()
  12488. // if err == nil { // resp is now filled
  12489. // fmt.Println(resp)
  12490. // }
  12491. //
  12492. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  12493. func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  12494. op := &request.Operation{
  12495. Name: opDetachVolume,
  12496. HTTPMethod: "POST",
  12497. HTTPPath: "/",
  12498. }
  12499. if input == nil {
  12500. input = &DetachVolumeInput{}
  12501. }
  12502. output = &VolumeAttachment{}
  12503. req = c.newRequest(op, input, output)
  12504. return
  12505. }
  12506. // DetachVolume API operation for Amazon Elastic Compute Cloud.
  12507. //
  12508. // Detaches an EBS volume from an instance. Make sure to unmount any file systems
  12509. // on the device within your operating system before detaching the volume. Failure
  12510. // to do so can result in the volume becoming stuck in the busy state while
  12511. // detaching. If this happens, detachment can be delayed indefinitely until
  12512. // you unmount the volume, force detachment, reboot the instance, or all three.
  12513. // If an EBS volume is the root device of an instance, it can't be detached
  12514. // while the instance is running. To detach the root volume, stop the instance
  12515. // first.
  12516. //
  12517. // When a volume with an AWS Marketplace product code is detached from an instance,
  12518. // the product code is no longer associated with the instance.
  12519. //
  12520. // For more information, see Detaching an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html)
  12521. // in the Amazon Elastic Compute Cloud User Guide.
  12522. //
  12523. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12524. // with awserr.Error's Code and Message methods to get detailed information about
  12525. // the error.
  12526. //
  12527. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12528. // API operation DetachVolume for usage and error information.
  12529. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  12530. func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) {
  12531. req, out := c.DetachVolumeRequest(input)
  12532. return out, req.Send()
  12533. }
  12534. // DetachVolumeWithContext is the same as DetachVolume with the addition of
  12535. // the ability to pass a context and additional request options.
  12536. //
  12537. // See DetachVolume for details on how to use this API operation.
  12538. //
  12539. // The context must be non-nil and will be used for request cancellation. If
  12540. // the context is nil a panic will occur. In the future the SDK may create
  12541. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12542. // for more information on using Contexts.
  12543. func (c *EC2) DetachVolumeWithContext(ctx aws.Context, input *DetachVolumeInput, opts ...request.Option) (*VolumeAttachment, error) {
  12544. req, out := c.DetachVolumeRequest(input)
  12545. req.SetContext(ctx)
  12546. req.ApplyOptions(opts...)
  12547. return out, req.Send()
  12548. }
  12549. const opDetachVpnGateway = "DetachVpnGateway"
  12550. // DetachVpnGatewayRequest generates a "aws/request.Request" representing the
  12551. // client's request for the DetachVpnGateway operation. The "output" return
  12552. // value can be used to capture response data after the request's "Send" method
  12553. // is called.
  12554. //
  12555. // See DetachVpnGateway for usage and error information.
  12556. //
  12557. // Creating a request object using this method should be used when you want to inject
  12558. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12559. // access properties on the request object before or after sending the request. If
  12560. // you just want the service response, call the DetachVpnGateway method directly
  12561. // instead.
  12562. //
  12563. // Note: You must call the "Send" method on the returned request object in order
  12564. // to execute the request.
  12565. //
  12566. // // Example sending a request using the DetachVpnGatewayRequest method.
  12567. // req, resp := client.DetachVpnGatewayRequest(params)
  12568. //
  12569. // err := req.Send()
  12570. // if err == nil { // resp is now filled
  12571. // fmt.Println(resp)
  12572. // }
  12573. //
  12574. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  12575. func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *request.Request, output *DetachVpnGatewayOutput) {
  12576. op := &request.Operation{
  12577. Name: opDetachVpnGateway,
  12578. HTTPMethod: "POST",
  12579. HTTPPath: "/",
  12580. }
  12581. if input == nil {
  12582. input = &DetachVpnGatewayInput{}
  12583. }
  12584. output = &DetachVpnGatewayOutput{}
  12585. req = c.newRequest(op, input, output)
  12586. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  12587. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  12588. return
  12589. }
  12590. // DetachVpnGateway API operation for Amazon Elastic Compute Cloud.
  12591. //
  12592. // Detaches a virtual private gateway from a VPC. You do this if you're planning
  12593. // to turn off the VPC and not use it anymore. You can confirm a virtual private
  12594. // gateway has been completely detached from a VPC by describing the virtual
  12595. // private gateway (any attachments to the virtual private gateway are also
  12596. // described).
  12597. //
  12598. // You must wait for the attachment's state to switch to detached before you
  12599. // can delete the VPC or attach a different VPC to the virtual private gateway.
  12600. //
  12601. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12602. // with awserr.Error's Code and Message methods to get detailed information about
  12603. // the error.
  12604. //
  12605. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12606. // API operation DetachVpnGateway for usage and error information.
  12607. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  12608. func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) {
  12609. req, out := c.DetachVpnGatewayRequest(input)
  12610. return out, req.Send()
  12611. }
  12612. // DetachVpnGatewayWithContext is the same as DetachVpnGateway with the addition of
  12613. // the ability to pass a context and additional request options.
  12614. //
  12615. // See DetachVpnGateway for details on how to use this API operation.
  12616. //
  12617. // The context must be non-nil and will be used for request cancellation. If
  12618. // the context is nil a panic will occur. In the future the SDK may create
  12619. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12620. // for more information on using Contexts.
  12621. func (c *EC2) DetachVpnGatewayWithContext(ctx aws.Context, input *DetachVpnGatewayInput, opts ...request.Option) (*DetachVpnGatewayOutput, error) {
  12622. req, out := c.DetachVpnGatewayRequest(input)
  12623. req.SetContext(ctx)
  12624. req.ApplyOptions(opts...)
  12625. return out, req.Send()
  12626. }
  12627. const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation"
  12628. // DisableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  12629. // client's request for the DisableVgwRoutePropagation operation. The "output" return
  12630. // value can be used to capture response data after the request's "Send" method
  12631. // is called.
  12632. //
  12633. // See DisableVgwRoutePropagation for usage and error information.
  12634. //
  12635. // Creating a request object using this method should be used when you want to inject
  12636. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12637. // access properties on the request object before or after sending the request. If
  12638. // you just want the service response, call the DisableVgwRoutePropagation method directly
  12639. // instead.
  12640. //
  12641. // Note: You must call the "Send" method on the returned request object in order
  12642. // to execute the request.
  12643. //
  12644. // // Example sending a request using the DisableVgwRoutePropagationRequest method.
  12645. // req, resp := client.DisableVgwRoutePropagationRequest(params)
  12646. //
  12647. // err := req.Send()
  12648. // if err == nil { // resp is now filled
  12649. // fmt.Println(resp)
  12650. // }
  12651. //
  12652. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  12653. func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagationInput) (req *request.Request, output *DisableVgwRoutePropagationOutput) {
  12654. op := &request.Operation{
  12655. Name: opDisableVgwRoutePropagation,
  12656. HTTPMethod: "POST",
  12657. HTTPPath: "/",
  12658. }
  12659. if input == nil {
  12660. input = &DisableVgwRoutePropagationInput{}
  12661. }
  12662. output = &DisableVgwRoutePropagationOutput{}
  12663. req = c.newRequest(op, input, output)
  12664. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  12665. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  12666. return
  12667. }
  12668. // DisableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  12669. //
  12670. // Disables a virtual private gateway (VGW) from propagating routes to a specified
  12671. // route table of a VPC.
  12672. //
  12673. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12674. // with awserr.Error's Code and Message methods to get detailed information about
  12675. // the error.
  12676. //
  12677. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12678. // API operation DisableVgwRoutePropagation for usage and error information.
  12679. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  12680. func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) {
  12681. req, out := c.DisableVgwRoutePropagationRequest(input)
  12682. return out, req.Send()
  12683. }
  12684. // DisableVgwRoutePropagationWithContext is the same as DisableVgwRoutePropagation with the addition of
  12685. // the ability to pass a context and additional request options.
  12686. //
  12687. // See DisableVgwRoutePropagation for details on how to use this API operation.
  12688. //
  12689. // The context must be non-nil and will be used for request cancellation. If
  12690. // the context is nil a panic will occur. In the future the SDK may create
  12691. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12692. // for more information on using Contexts.
  12693. func (c *EC2) DisableVgwRoutePropagationWithContext(ctx aws.Context, input *DisableVgwRoutePropagationInput, opts ...request.Option) (*DisableVgwRoutePropagationOutput, error) {
  12694. req, out := c.DisableVgwRoutePropagationRequest(input)
  12695. req.SetContext(ctx)
  12696. req.ApplyOptions(opts...)
  12697. return out, req.Send()
  12698. }
  12699. const opDisableVpcClassicLink = "DisableVpcClassicLink"
  12700. // DisableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  12701. // client's request for the DisableVpcClassicLink operation. The "output" return
  12702. // value can be used to capture response data after the request's "Send" method
  12703. // is called.
  12704. //
  12705. // See DisableVpcClassicLink for usage and error information.
  12706. //
  12707. // Creating a request object using this method should be used when you want to inject
  12708. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12709. // access properties on the request object before or after sending the request. If
  12710. // you just want the service response, call the DisableVpcClassicLink method directly
  12711. // instead.
  12712. //
  12713. // Note: You must call the "Send" method on the returned request object in order
  12714. // to execute the request.
  12715. //
  12716. // // Example sending a request using the DisableVpcClassicLinkRequest method.
  12717. // req, resp := client.DisableVpcClassicLinkRequest(params)
  12718. //
  12719. // err := req.Send()
  12720. // if err == nil { // resp is now filled
  12721. // fmt.Println(resp)
  12722. // }
  12723. //
  12724. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  12725. func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (req *request.Request, output *DisableVpcClassicLinkOutput) {
  12726. op := &request.Operation{
  12727. Name: opDisableVpcClassicLink,
  12728. HTTPMethod: "POST",
  12729. HTTPPath: "/",
  12730. }
  12731. if input == nil {
  12732. input = &DisableVpcClassicLinkInput{}
  12733. }
  12734. output = &DisableVpcClassicLinkOutput{}
  12735. req = c.newRequest(op, input, output)
  12736. return
  12737. }
  12738. // DisableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  12739. //
  12740. // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC
  12741. // that has EC2-Classic instances linked to it.
  12742. //
  12743. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12744. // with awserr.Error's Code and Message methods to get detailed information about
  12745. // the error.
  12746. //
  12747. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12748. // API operation DisableVpcClassicLink for usage and error information.
  12749. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  12750. func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) {
  12751. req, out := c.DisableVpcClassicLinkRequest(input)
  12752. return out, req.Send()
  12753. }
  12754. // DisableVpcClassicLinkWithContext is the same as DisableVpcClassicLink with the addition of
  12755. // the ability to pass a context and additional request options.
  12756. //
  12757. // See DisableVpcClassicLink for details on how to use this API operation.
  12758. //
  12759. // The context must be non-nil and will be used for request cancellation. If
  12760. // the context is nil a panic will occur. In the future the SDK may create
  12761. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12762. // for more information on using Contexts.
  12763. func (c *EC2) DisableVpcClassicLinkWithContext(ctx aws.Context, input *DisableVpcClassicLinkInput, opts ...request.Option) (*DisableVpcClassicLinkOutput, error) {
  12764. req, out := c.DisableVpcClassicLinkRequest(input)
  12765. req.SetContext(ctx)
  12766. req.ApplyOptions(opts...)
  12767. return out, req.Send()
  12768. }
  12769. const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport"
  12770. // DisableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  12771. // client's request for the DisableVpcClassicLinkDnsSupport operation. The "output" return
  12772. // value can be used to capture response data after the request's "Send" method
  12773. // is called.
  12774. //
  12775. // See DisableVpcClassicLinkDnsSupport for usage and error information.
  12776. //
  12777. // Creating a request object using this method should be used when you want to inject
  12778. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12779. // access properties on the request object before or after sending the request. If
  12780. // you just want the service response, call the DisableVpcClassicLinkDnsSupport method directly
  12781. // instead.
  12782. //
  12783. // Note: You must call the "Send" method on the returned request object in order
  12784. // to execute the request.
  12785. //
  12786. // // Example sending a request using the DisableVpcClassicLinkDnsSupportRequest method.
  12787. // req, resp := client.DisableVpcClassicLinkDnsSupportRequest(params)
  12788. //
  12789. // err := req.Send()
  12790. // if err == nil { // resp is now filled
  12791. // fmt.Println(resp)
  12792. // }
  12793. //
  12794. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  12795. func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) (req *request.Request, output *DisableVpcClassicLinkDnsSupportOutput) {
  12796. op := &request.Operation{
  12797. Name: opDisableVpcClassicLinkDnsSupport,
  12798. HTTPMethod: "POST",
  12799. HTTPPath: "/",
  12800. }
  12801. if input == nil {
  12802. input = &DisableVpcClassicLinkDnsSupportInput{}
  12803. }
  12804. output = &DisableVpcClassicLinkDnsSupportOutput{}
  12805. req = c.newRequest(op, input, output)
  12806. return
  12807. }
  12808. // DisableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  12809. //
  12810. // Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve
  12811. // to public IP addresses when addressed between a linked EC2-Classic instance
  12812. // and instances in the VPC to which it's linked. For more information about
  12813. // ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  12814. // in the Amazon Elastic Compute Cloud User Guide.
  12815. //
  12816. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12817. // with awserr.Error's Code and Message methods to get detailed information about
  12818. // the error.
  12819. //
  12820. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12821. // API operation DisableVpcClassicLinkDnsSupport for usage and error information.
  12822. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  12823. func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  12824. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  12825. return out, req.Send()
  12826. }
  12827. // DisableVpcClassicLinkDnsSupportWithContext is the same as DisableVpcClassicLinkDnsSupport with the addition of
  12828. // the ability to pass a context and additional request options.
  12829. //
  12830. // See DisableVpcClassicLinkDnsSupport for details on how to use this API operation.
  12831. //
  12832. // The context must be non-nil and will be used for request cancellation. If
  12833. // the context is nil a panic will occur. In the future the SDK may create
  12834. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12835. // for more information on using Contexts.
  12836. func (c *EC2) DisableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DisableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  12837. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  12838. req.SetContext(ctx)
  12839. req.ApplyOptions(opts...)
  12840. return out, req.Send()
  12841. }
  12842. const opDisassociateAddress = "DisassociateAddress"
  12843. // DisassociateAddressRequest generates a "aws/request.Request" representing the
  12844. // client's request for the DisassociateAddress operation. The "output" return
  12845. // value can be used to capture response data after the request's "Send" method
  12846. // is called.
  12847. //
  12848. // See DisassociateAddress for usage and error information.
  12849. //
  12850. // Creating a request object using this method should be used when you want to inject
  12851. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12852. // access properties on the request object before or after sending the request. If
  12853. // you just want the service response, call the DisassociateAddress method directly
  12854. // instead.
  12855. //
  12856. // Note: You must call the "Send" method on the returned request object in order
  12857. // to execute the request.
  12858. //
  12859. // // Example sending a request using the DisassociateAddressRequest method.
  12860. // req, resp := client.DisassociateAddressRequest(params)
  12861. //
  12862. // err := req.Send()
  12863. // if err == nil { // resp is now filled
  12864. // fmt.Println(resp)
  12865. // }
  12866. //
  12867. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  12868. func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) {
  12869. op := &request.Operation{
  12870. Name: opDisassociateAddress,
  12871. HTTPMethod: "POST",
  12872. HTTPPath: "/",
  12873. }
  12874. if input == nil {
  12875. input = &DisassociateAddressInput{}
  12876. }
  12877. output = &DisassociateAddressOutput{}
  12878. req = c.newRequest(op, input, output)
  12879. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  12880. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  12881. return
  12882. }
  12883. // DisassociateAddress API operation for Amazon Elastic Compute Cloud.
  12884. //
  12885. // Disassociates an Elastic IP address from the instance or network interface
  12886. // it's associated with.
  12887. //
  12888. // An Elastic IP address is for use in either the EC2-Classic platform or in
  12889. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  12890. // in the Amazon Elastic Compute Cloud User Guide.
  12891. //
  12892. // This is an idempotent operation. If you perform the operation more than once,
  12893. // Amazon EC2 doesn't return an error.
  12894. //
  12895. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12896. // with awserr.Error's Code and Message methods to get detailed information about
  12897. // the error.
  12898. //
  12899. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12900. // API operation DisassociateAddress for usage and error information.
  12901. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  12902. func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) {
  12903. req, out := c.DisassociateAddressRequest(input)
  12904. return out, req.Send()
  12905. }
  12906. // DisassociateAddressWithContext is the same as DisassociateAddress with the addition of
  12907. // the ability to pass a context and additional request options.
  12908. //
  12909. // See DisassociateAddress for details on how to use this API operation.
  12910. //
  12911. // The context must be non-nil and will be used for request cancellation. If
  12912. // the context is nil a panic will occur. In the future the SDK may create
  12913. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12914. // for more information on using Contexts.
  12915. func (c *EC2) DisassociateAddressWithContext(ctx aws.Context, input *DisassociateAddressInput, opts ...request.Option) (*DisassociateAddressOutput, error) {
  12916. req, out := c.DisassociateAddressRequest(input)
  12917. req.SetContext(ctx)
  12918. req.ApplyOptions(opts...)
  12919. return out, req.Send()
  12920. }
  12921. const opDisassociateIamInstanceProfile = "DisassociateIamInstanceProfile"
  12922. // DisassociateIamInstanceProfileRequest generates a "aws/request.Request" representing the
  12923. // client's request for the DisassociateIamInstanceProfile operation. The "output" return
  12924. // value can be used to capture response data after the request's "Send" method
  12925. // is called.
  12926. //
  12927. // See DisassociateIamInstanceProfile for usage and error information.
  12928. //
  12929. // Creating a request object using this method should be used when you want to inject
  12930. // custom logic into the request's lifecycle using a custom handler, or if you want to
  12931. // access properties on the request object before or after sending the request. If
  12932. // you just want the service response, call the DisassociateIamInstanceProfile method directly
  12933. // instead.
  12934. //
  12935. // Note: You must call the "Send" method on the returned request object in order
  12936. // to execute the request.
  12937. //
  12938. // // Example sending a request using the DisassociateIamInstanceProfileRequest method.
  12939. // req, resp := client.DisassociateIamInstanceProfileRequest(params)
  12940. //
  12941. // err := req.Send()
  12942. // if err == nil { // resp is now filled
  12943. // fmt.Println(resp)
  12944. // }
  12945. //
  12946. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  12947. func (c *EC2) DisassociateIamInstanceProfileRequest(input *DisassociateIamInstanceProfileInput) (req *request.Request, output *DisassociateIamInstanceProfileOutput) {
  12948. op := &request.Operation{
  12949. Name: opDisassociateIamInstanceProfile,
  12950. HTTPMethod: "POST",
  12951. HTTPPath: "/",
  12952. }
  12953. if input == nil {
  12954. input = &DisassociateIamInstanceProfileInput{}
  12955. }
  12956. output = &DisassociateIamInstanceProfileOutput{}
  12957. req = c.newRequest(op, input, output)
  12958. return
  12959. }
  12960. // DisassociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud.
  12961. //
  12962. // Disassociates an IAM instance profile from a running or stopped instance.
  12963. //
  12964. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  12965. //
  12966. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12967. // with awserr.Error's Code and Message methods to get detailed information about
  12968. // the error.
  12969. //
  12970. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12971. // API operation DisassociateIamInstanceProfile for usage and error information.
  12972. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  12973. func (c *EC2) DisassociateIamInstanceProfile(input *DisassociateIamInstanceProfileInput) (*DisassociateIamInstanceProfileOutput, error) {
  12974. req, out := c.DisassociateIamInstanceProfileRequest(input)
  12975. return out, req.Send()
  12976. }
  12977. // DisassociateIamInstanceProfileWithContext is the same as DisassociateIamInstanceProfile with the addition of
  12978. // the ability to pass a context and additional request options.
  12979. //
  12980. // See DisassociateIamInstanceProfile for details on how to use this API operation.
  12981. //
  12982. // The context must be non-nil and will be used for request cancellation. If
  12983. // the context is nil a panic will occur. In the future the SDK may create
  12984. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12985. // for more information on using Contexts.
  12986. func (c *EC2) DisassociateIamInstanceProfileWithContext(ctx aws.Context, input *DisassociateIamInstanceProfileInput, opts ...request.Option) (*DisassociateIamInstanceProfileOutput, error) {
  12987. req, out := c.DisassociateIamInstanceProfileRequest(input)
  12988. req.SetContext(ctx)
  12989. req.ApplyOptions(opts...)
  12990. return out, req.Send()
  12991. }
  12992. const opDisassociateRouteTable = "DisassociateRouteTable"
  12993. // DisassociateRouteTableRequest generates a "aws/request.Request" representing the
  12994. // client's request for the DisassociateRouteTable operation. The "output" return
  12995. // value can be used to capture response data after the request's "Send" method
  12996. // is called.
  12997. //
  12998. // See DisassociateRouteTable for usage and error information.
  12999. //
  13000. // Creating a request object using this method should be used when you want to inject
  13001. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13002. // access properties on the request object before or after sending the request. If
  13003. // you just want the service response, call the DisassociateRouteTable method directly
  13004. // instead.
  13005. //
  13006. // Note: You must call the "Send" method on the returned request object in order
  13007. // to execute the request.
  13008. //
  13009. // // Example sending a request using the DisassociateRouteTableRequest method.
  13010. // req, resp := client.DisassociateRouteTableRequest(params)
  13011. //
  13012. // err := req.Send()
  13013. // if err == nil { // resp is now filled
  13014. // fmt.Println(resp)
  13015. // }
  13016. //
  13017. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  13018. func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) (req *request.Request, output *DisassociateRouteTableOutput) {
  13019. op := &request.Operation{
  13020. Name: opDisassociateRouteTable,
  13021. HTTPMethod: "POST",
  13022. HTTPPath: "/",
  13023. }
  13024. if input == nil {
  13025. input = &DisassociateRouteTableInput{}
  13026. }
  13027. output = &DisassociateRouteTableOutput{}
  13028. req = c.newRequest(op, input, output)
  13029. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  13030. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  13031. return
  13032. }
  13033. // DisassociateRouteTable API operation for Amazon Elastic Compute Cloud.
  13034. //
  13035. // Disassociates a subnet from a route table.
  13036. //
  13037. // After you perform this action, the subnet no longer uses the routes in the
  13038. // route table. Instead, it uses the routes in the VPC's main route table. For
  13039. // more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  13040. // in the Amazon Virtual Private Cloud User Guide.
  13041. //
  13042. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13043. // with awserr.Error's Code and Message methods to get detailed information about
  13044. // the error.
  13045. //
  13046. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13047. // API operation DisassociateRouteTable for usage and error information.
  13048. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  13049. func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) {
  13050. req, out := c.DisassociateRouteTableRequest(input)
  13051. return out, req.Send()
  13052. }
  13053. // DisassociateRouteTableWithContext is the same as DisassociateRouteTable with the addition of
  13054. // the ability to pass a context and additional request options.
  13055. //
  13056. // See DisassociateRouteTable for details on how to use this API operation.
  13057. //
  13058. // The context must be non-nil and will be used for request cancellation. If
  13059. // the context is nil a panic will occur. In the future the SDK may create
  13060. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13061. // for more information on using Contexts.
  13062. func (c *EC2) DisassociateRouteTableWithContext(ctx aws.Context, input *DisassociateRouteTableInput, opts ...request.Option) (*DisassociateRouteTableOutput, error) {
  13063. req, out := c.DisassociateRouteTableRequest(input)
  13064. req.SetContext(ctx)
  13065. req.ApplyOptions(opts...)
  13066. return out, req.Send()
  13067. }
  13068. const opDisassociateSubnetCidrBlock = "DisassociateSubnetCidrBlock"
  13069. // DisassociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the
  13070. // client's request for the DisassociateSubnetCidrBlock operation. The "output" return
  13071. // value can be used to capture response data after the request's "Send" method
  13072. // is called.
  13073. //
  13074. // See DisassociateSubnetCidrBlock for usage and error information.
  13075. //
  13076. // Creating a request object using this method should be used when you want to inject
  13077. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13078. // access properties on the request object before or after sending the request. If
  13079. // you just want the service response, call the DisassociateSubnetCidrBlock method directly
  13080. // instead.
  13081. //
  13082. // Note: You must call the "Send" method on the returned request object in order
  13083. // to execute the request.
  13084. //
  13085. // // Example sending a request using the DisassociateSubnetCidrBlockRequest method.
  13086. // req, resp := client.DisassociateSubnetCidrBlockRequest(params)
  13087. //
  13088. // err := req.Send()
  13089. // if err == nil { // resp is now filled
  13090. // fmt.Println(resp)
  13091. // }
  13092. //
  13093. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  13094. func (c *EC2) DisassociateSubnetCidrBlockRequest(input *DisassociateSubnetCidrBlockInput) (req *request.Request, output *DisassociateSubnetCidrBlockOutput) {
  13095. op := &request.Operation{
  13096. Name: opDisassociateSubnetCidrBlock,
  13097. HTTPMethod: "POST",
  13098. HTTPPath: "/",
  13099. }
  13100. if input == nil {
  13101. input = &DisassociateSubnetCidrBlockInput{}
  13102. }
  13103. output = &DisassociateSubnetCidrBlockOutput{}
  13104. req = c.newRequest(op, input, output)
  13105. return
  13106. }
  13107. // DisassociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud.
  13108. //
  13109. // Disassociates a CIDR block from a subnet. Currently, you can disassociate
  13110. // an IPv6 CIDR block only. You must detach or delete all gateways and resources
  13111. // that are associated with the CIDR block before you can disassociate it.
  13112. //
  13113. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13114. // with awserr.Error's Code and Message methods to get detailed information about
  13115. // the error.
  13116. //
  13117. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13118. // API operation DisassociateSubnetCidrBlock for usage and error information.
  13119. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  13120. func (c *EC2) DisassociateSubnetCidrBlock(input *DisassociateSubnetCidrBlockInput) (*DisassociateSubnetCidrBlockOutput, error) {
  13121. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  13122. return out, req.Send()
  13123. }
  13124. // DisassociateSubnetCidrBlockWithContext is the same as DisassociateSubnetCidrBlock with the addition of
  13125. // the ability to pass a context and additional request options.
  13126. //
  13127. // See DisassociateSubnetCidrBlock for details on how to use this API operation.
  13128. //
  13129. // The context must be non-nil and will be used for request cancellation. If
  13130. // the context is nil a panic will occur. In the future the SDK may create
  13131. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13132. // for more information on using Contexts.
  13133. func (c *EC2) DisassociateSubnetCidrBlockWithContext(ctx aws.Context, input *DisassociateSubnetCidrBlockInput, opts ...request.Option) (*DisassociateSubnetCidrBlockOutput, error) {
  13134. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  13135. req.SetContext(ctx)
  13136. req.ApplyOptions(opts...)
  13137. return out, req.Send()
  13138. }
  13139. const opDisassociateVpcCidrBlock = "DisassociateVpcCidrBlock"
  13140. // DisassociateVpcCidrBlockRequest generates a "aws/request.Request" representing the
  13141. // client's request for the DisassociateVpcCidrBlock operation. The "output" return
  13142. // value can be used to capture response data after the request's "Send" method
  13143. // is called.
  13144. //
  13145. // See DisassociateVpcCidrBlock for usage and error information.
  13146. //
  13147. // Creating a request object using this method should be used when you want to inject
  13148. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13149. // access properties on the request object before or after sending the request. If
  13150. // you just want the service response, call the DisassociateVpcCidrBlock method directly
  13151. // instead.
  13152. //
  13153. // Note: You must call the "Send" method on the returned request object in order
  13154. // to execute the request.
  13155. //
  13156. // // Example sending a request using the DisassociateVpcCidrBlockRequest method.
  13157. // req, resp := client.DisassociateVpcCidrBlockRequest(params)
  13158. //
  13159. // err := req.Send()
  13160. // if err == nil { // resp is now filled
  13161. // fmt.Println(resp)
  13162. // }
  13163. //
  13164. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  13165. func (c *EC2) DisassociateVpcCidrBlockRequest(input *DisassociateVpcCidrBlockInput) (req *request.Request, output *DisassociateVpcCidrBlockOutput) {
  13166. op := &request.Operation{
  13167. Name: opDisassociateVpcCidrBlock,
  13168. HTTPMethod: "POST",
  13169. HTTPPath: "/",
  13170. }
  13171. if input == nil {
  13172. input = &DisassociateVpcCidrBlockInput{}
  13173. }
  13174. output = &DisassociateVpcCidrBlockOutput{}
  13175. req = c.newRequest(op, input, output)
  13176. return
  13177. }
  13178. // DisassociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud.
  13179. //
  13180. // Disassociates a CIDR block from a VPC. Currently, you can disassociate an
  13181. // IPv6 CIDR block only. You must detach or delete all gateways and resources
  13182. // that are associated with the CIDR block before you can disassociate it.
  13183. //
  13184. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13185. // with awserr.Error's Code and Message methods to get detailed information about
  13186. // the error.
  13187. //
  13188. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13189. // API operation DisassociateVpcCidrBlock for usage and error information.
  13190. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  13191. func (c *EC2) DisassociateVpcCidrBlock(input *DisassociateVpcCidrBlockInput) (*DisassociateVpcCidrBlockOutput, error) {
  13192. req, out := c.DisassociateVpcCidrBlockRequest(input)
  13193. return out, req.Send()
  13194. }
  13195. // DisassociateVpcCidrBlockWithContext is the same as DisassociateVpcCidrBlock with the addition of
  13196. // the ability to pass a context and additional request options.
  13197. //
  13198. // See DisassociateVpcCidrBlock for details on how to use this API operation.
  13199. //
  13200. // The context must be non-nil and will be used for request cancellation. If
  13201. // the context is nil a panic will occur. In the future the SDK may create
  13202. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13203. // for more information on using Contexts.
  13204. func (c *EC2) DisassociateVpcCidrBlockWithContext(ctx aws.Context, input *DisassociateVpcCidrBlockInput, opts ...request.Option) (*DisassociateVpcCidrBlockOutput, error) {
  13205. req, out := c.DisassociateVpcCidrBlockRequest(input)
  13206. req.SetContext(ctx)
  13207. req.ApplyOptions(opts...)
  13208. return out, req.Send()
  13209. }
  13210. const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  13211. // EnableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  13212. // client's request for the EnableVgwRoutePropagation operation. The "output" return
  13213. // value can be used to capture response data after the request's "Send" method
  13214. // is called.
  13215. //
  13216. // See EnableVgwRoutePropagation for usage and error information.
  13217. //
  13218. // Creating a request object using this method should be used when you want to inject
  13219. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13220. // access properties on the request object before or after sending the request. If
  13221. // you just want the service response, call the EnableVgwRoutePropagation method directly
  13222. // instead.
  13223. //
  13224. // Note: You must call the "Send" method on the returned request object in order
  13225. // to execute the request.
  13226. //
  13227. // // Example sending a request using the EnableVgwRoutePropagationRequest method.
  13228. // req, resp := client.EnableVgwRoutePropagationRequest(params)
  13229. //
  13230. // err := req.Send()
  13231. // if err == nil { // resp is now filled
  13232. // fmt.Println(resp)
  13233. // }
  13234. //
  13235. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  13236. func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationInput) (req *request.Request, output *EnableVgwRoutePropagationOutput) {
  13237. op := &request.Operation{
  13238. Name: opEnableVgwRoutePropagation,
  13239. HTTPMethod: "POST",
  13240. HTTPPath: "/",
  13241. }
  13242. if input == nil {
  13243. input = &EnableVgwRoutePropagationInput{}
  13244. }
  13245. output = &EnableVgwRoutePropagationOutput{}
  13246. req = c.newRequest(op, input, output)
  13247. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  13248. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  13249. return
  13250. }
  13251. // EnableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  13252. //
  13253. // Enables a virtual private gateway (VGW) to propagate routes to the specified
  13254. // route table of a VPC.
  13255. //
  13256. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13257. // with awserr.Error's Code and Message methods to get detailed information about
  13258. // the error.
  13259. //
  13260. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13261. // API operation EnableVgwRoutePropagation for usage and error information.
  13262. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  13263. func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) {
  13264. req, out := c.EnableVgwRoutePropagationRequest(input)
  13265. return out, req.Send()
  13266. }
  13267. // EnableVgwRoutePropagationWithContext is the same as EnableVgwRoutePropagation with the addition of
  13268. // the ability to pass a context and additional request options.
  13269. //
  13270. // See EnableVgwRoutePropagation for details on how to use this API operation.
  13271. //
  13272. // The context must be non-nil and will be used for request cancellation. If
  13273. // the context is nil a panic will occur. In the future the SDK may create
  13274. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13275. // for more information on using Contexts.
  13276. func (c *EC2) EnableVgwRoutePropagationWithContext(ctx aws.Context, input *EnableVgwRoutePropagationInput, opts ...request.Option) (*EnableVgwRoutePropagationOutput, error) {
  13277. req, out := c.EnableVgwRoutePropagationRequest(input)
  13278. req.SetContext(ctx)
  13279. req.ApplyOptions(opts...)
  13280. return out, req.Send()
  13281. }
  13282. const opEnableVolumeIO = "EnableVolumeIO"
  13283. // EnableVolumeIORequest generates a "aws/request.Request" representing the
  13284. // client's request for the EnableVolumeIO operation. The "output" return
  13285. // value can be used to capture response data after the request's "Send" method
  13286. // is called.
  13287. //
  13288. // See EnableVolumeIO for usage and error information.
  13289. //
  13290. // Creating a request object using this method should be used when you want to inject
  13291. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13292. // access properties on the request object before or after sending the request. If
  13293. // you just want the service response, call the EnableVolumeIO method directly
  13294. // instead.
  13295. //
  13296. // Note: You must call the "Send" method on the returned request object in order
  13297. // to execute the request.
  13298. //
  13299. // // Example sending a request using the EnableVolumeIORequest method.
  13300. // req, resp := client.EnableVolumeIORequest(params)
  13301. //
  13302. // err := req.Send()
  13303. // if err == nil { // resp is now filled
  13304. // fmt.Println(resp)
  13305. // }
  13306. //
  13307. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  13308. func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Request, output *EnableVolumeIOOutput) {
  13309. op := &request.Operation{
  13310. Name: opEnableVolumeIO,
  13311. HTTPMethod: "POST",
  13312. HTTPPath: "/",
  13313. }
  13314. if input == nil {
  13315. input = &EnableVolumeIOInput{}
  13316. }
  13317. output = &EnableVolumeIOOutput{}
  13318. req = c.newRequest(op, input, output)
  13319. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  13320. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  13321. return
  13322. }
  13323. // EnableVolumeIO API operation for Amazon Elastic Compute Cloud.
  13324. //
  13325. // Enables I/O operations for a volume that had I/O operations disabled because
  13326. // the data on the volume was potentially inconsistent.
  13327. //
  13328. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13329. // with awserr.Error's Code and Message methods to get detailed information about
  13330. // the error.
  13331. //
  13332. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13333. // API operation EnableVolumeIO for usage and error information.
  13334. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  13335. func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) {
  13336. req, out := c.EnableVolumeIORequest(input)
  13337. return out, req.Send()
  13338. }
  13339. // EnableVolumeIOWithContext is the same as EnableVolumeIO with the addition of
  13340. // the ability to pass a context and additional request options.
  13341. //
  13342. // See EnableVolumeIO for details on how to use this API operation.
  13343. //
  13344. // The context must be non-nil and will be used for request cancellation. If
  13345. // the context is nil a panic will occur. In the future the SDK may create
  13346. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13347. // for more information on using Contexts.
  13348. func (c *EC2) EnableVolumeIOWithContext(ctx aws.Context, input *EnableVolumeIOInput, opts ...request.Option) (*EnableVolumeIOOutput, error) {
  13349. req, out := c.EnableVolumeIORequest(input)
  13350. req.SetContext(ctx)
  13351. req.ApplyOptions(opts...)
  13352. return out, req.Send()
  13353. }
  13354. const opEnableVpcClassicLink = "EnableVpcClassicLink"
  13355. // EnableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  13356. // client's request for the EnableVpcClassicLink operation. The "output" return
  13357. // value can be used to capture response data after the request's "Send" method
  13358. // is called.
  13359. //
  13360. // See EnableVpcClassicLink for usage and error information.
  13361. //
  13362. // Creating a request object using this method should be used when you want to inject
  13363. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13364. // access properties on the request object before or after sending the request. If
  13365. // you just want the service response, call the EnableVpcClassicLink method directly
  13366. // instead.
  13367. //
  13368. // Note: You must call the "Send" method on the returned request object in order
  13369. // to execute the request.
  13370. //
  13371. // // Example sending a request using the EnableVpcClassicLinkRequest method.
  13372. // req, resp := client.EnableVpcClassicLinkRequest(params)
  13373. //
  13374. // err := req.Send()
  13375. // if err == nil { // resp is now filled
  13376. // fmt.Println(resp)
  13377. // }
  13378. //
  13379. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  13380. func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req *request.Request, output *EnableVpcClassicLinkOutput) {
  13381. op := &request.Operation{
  13382. Name: opEnableVpcClassicLink,
  13383. HTTPMethod: "POST",
  13384. HTTPPath: "/",
  13385. }
  13386. if input == nil {
  13387. input = &EnableVpcClassicLinkInput{}
  13388. }
  13389. output = &EnableVpcClassicLinkOutput{}
  13390. req = c.newRequest(op, input, output)
  13391. return
  13392. }
  13393. // EnableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  13394. //
  13395. // Enables a VPC for ClassicLink. You can then link EC2-Classic instances to
  13396. // your ClassicLink-enabled VPC to allow communication over private IP addresses.
  13397. // You cannot enable your VPC for ClassicLink if any of your VPC's route tables
  13398. // have existing routes for address ranges within the 10.0.0.0/8 IP address
  13399. // range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16
  13400. // IP address ranges. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  13401. // in the Amazon Elastic Compute Cloud User Guide.
  13402. //
  13403. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13404. // with awserr.Error's Code and Message methods to get detailed information about
  13405. // the error.
  13406. //
  13407. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13408. // API operation EnableVpcClassicLink for usage and error information.
  13409. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  13410. func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) {
  13411. req, out := c.EnableVpcClassicLinkRequest(input)
  13412. return out, req.Send()
  13413. }
  13414. // EnableVpcClassicLinkWithContext is the same as EnableVpcClassicLink with the addition of
  13415. // the ability to pass a context and additional request options.
  13416. //
  13417. // See EnableVpcClassicLink for details on how to use this API operation.
  13418. //
  13419. // The context must be non-nil and will be used for request cancellation. If
  13420. // the context is nil a panic will occur. In the future the SDK may create
  13421. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13422. // for more information on using Contexts.
  13423. func (c *EC2) EnableVpcClassicLinkWithContext(ctx aws.Context, input *EnableVpcClassicLinkInput, opts ...request.Option) (*EnableVpcClassicLinkOutput, error) {
  13424. req, out := c.EnableVpcClassicLinkRequest(input)
  13425. req.SetContext(ctx)
  13426. req.ApplyOptions(opts...)
  13427. return out, req.Send()
  13428. }
  13429. const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport"
  13430. // EnableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  13431. // client's request for the EnableVpcClassicLinkDnsSupport operation. The "output" return
  13432. // value can be used to capture response data after the request's "Send" method
  13433. // is called.
  13434. //
  13435. // See EnableVpcClassicLinkDnsSupport for usage and error information.
  13436. //
  13437. // Creating a request object using this method should be used when you want to inject
  13438. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13439. // access properties on the request object before or after sending the request. If
  13440. // you just want the service response, call the EnableVpcClassicLinkDnsSupport method directly
  13441. // instead.
  13442. //
  13443. // Note: You must call the "Send" method on the returned request object in order
  13444. // to execute the request.
  13445. //
  13446. // // Example sending a request using the EnableVpcClassicLinkDnsSupportRequest method.
  13447. // req, resp := client.EnableVpcClassicLinkDnsSupportRequest(params)
  13448. //
  13449. // err := req.Send()
  13450. // if err == nil { // resp is now filled
  13451. // fmt.Println(resp)
  13452. // }
  13453. //
  13454. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  13455. func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) (req *request.Request, output *EnableVpcClassicLinkDnsSupportOutput) {
  13456. op := &request.Operation{
  13457. Name: opEnableVpcClassicLinkDnsSupport,
  13458. HTTPMethod: "POST",
  13459. HTTPPath: "/",
  13460. }
  13461. if input == nil {
  13462. input = &EnableVpcClassicLinkDnsSupportInput{}
  13463. }
  13464. output = &EnableVpcClassicLinkDnsSupportOutput{}
  13465. req = c.newRequest(op, input, output)
  13466. return
  13467. }
  13468. // EnableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  13469. //
  13470. // Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled,
  13471. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  13472. // IP address when addressed from an instance in the VPC to which it's linked.
  13473. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  13474. // IP address when addressed from a linked EC2-Classic instance. For more information
  13475. // about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  13476. // in the Amazon Elastic Compute Cloud User Guide.
  13477. //
  13478. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13479. // with awserr.Error's Code and Message methods to get detailed information about
  13480. // the error.
  13481. //
  13482. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13483. // API operation EnableVpcClassicLinkDnsSupport for usage and error information.
  13484. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  13485. func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  13486. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  13487. return out, req.Send()
  13488. }
  13489. // EnableVpcClassicLinkDnsSupportWithContext is the same as EnableVpcClassicLinkDnsSupport with the addition of
  13490. // the ability to pass a context and additional request options.
  13491. //
  13492. // See EnableVpcClassicLinkDnsSupport for details on how to use this API operation.
  13493. //
  13494. // The context must be non-nil and will be used for request cancellation. If
  13495. // the context is nil a panic will occur. In the future the SDK may create
  13496. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13497. // for more information on using Contexts.
  13498. func (c *EC2) EnableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *EnableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  13499. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  13500. req.SetContext(ctx)
  13501. req.ApplyOptions(opts...)
  13502. return out, req.Send()
  13503. }
  13504. const opGetConsoleOutput = "GetConsoleOutput"
  13505. // GetConsoleOutputRequest generates a "aws/request.Request" representing the
  13506. // client's request for the GetConsoleOutput operation. The "output" return
  13507. // value can be used to capture response data after the request's "Send" method
  13508. // is called.
  13509. //
  13510. // See GetConsoleOutput for usage and error information.
  13511. //
  13512. // Creating a request object using this method should be used when you want to inject
  13513. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13514. // access properties on the request object before or after sending the request. If
  13515. // you just want the service response, call the GetConsoleOutput method directly
  13516. // instead.
  13517. //
  13518. // Note: You must call the "Send" method on the returned request object in order
  13519. // to execute the request.
  13520. //
  13521. // // Example sending a request using the GetConsoleOutputRequest method.
  13522. // req, resp := client.GetConsoleOutputRequest(params)
  13523. //
  13524. // err := req.Send()
  13525. // if err == nil { // resp is now filled
  13526. // fmt.Println(resp)
  13527. // }
  13528. //
  13529. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  13530. func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *request.Request, output *GetConsoleOutputOutput) {
  13531. op := &request.Operation{
  13532. Name: opGetConsoleOutput,
  13533. HTTPMethod: "POST",
  13534. HTTPPath: "/",
  13535. }
  13536. if input == nil {
  13537. input = &GetConsoleOutputInput{}
  13538. }
  13539. output = &GetConsoleOutputOutput{}
  13540. req = c.newRequest(op, input, output)
  13541. return
  13542. }
  13543. // GetConsoleOutput API operation for Amazon Elastic Compute Cloud.
  13544. //
  13545. // Gets the console output for the specified instance.
  13546. //
  13547. // Instances do not have a physical monitor through which you can view their
  13548. // console output. They also lack physical controls that allow you to power
  13549. // up, reboot, or shut them down. To allow these actions, we provide them through
  13550. // the Amazon EC2 API and command line interface.
  13551. //
  13552. // Instance console output is buffered and posted shortly after instance boot,
  13553. // reboot, and termination. Amazon EC2 preserves the most recent 64 KB output
  13554. // which is available for at least one hour after the most recent post.
  13555. //
  13556. // For Linux instances, the instance console output displays the exact console
  13557. // output that would normally be displayed on a physical monitor attached to
  13558. // a computer. This output is buffered because the instance produces it and
  13559. // then posts it to a store where the instance's owner can retrieve it.
  13560. //
  13561. // For Windows instances, the instance console output includes output from the
  13562. // EC2Config service.
  13563. //
  13564. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13565. // with awserr.Error's Code and Message methods to get detailed information about
  13566. // the error.
  13567. //
  13568. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13569. // API operation GetConsoleOutput for usage and error information.
  13570. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  13571. func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) {
  13572. req, out := c.GetConsoleOutputRequest(input)
  13573. return out, req.Send()
  13574. }
  13575. // GetConsoleOutputWithContext is the same as GetConsoleOutput with the addition of
  13576. // the ability to pass a context and additional request options.
  13577. //
  13578. // See GetConsoleOutput for details on how to use this API operation.
  13579. //
  13580. // The context must be non-nil and will be used for request cancellation. If
  13581. // the context is nil a panic will occur. In the future the SDK may create
  13582. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13583. // for more information on using Contexts.
  13584. func (c *EC2) GetConsoleOutputWithContext(ctx aws.Context, input *GetConsoleOutputInput, opts ...request.Option) (*GetConsoleOutputOutput, error) {
  13585. req, out := c.GetConsoleOutputRequest(input)
  13586. req.SetContext(ctx)
  13587. req.ApplyOptions(opts...)
  13588. return out, req.Send()
  13589. }
  13590. const opGetConsoleScreenshot = "GetConsoleScreenshot"
  13591. // GetConsoleScreenshotRequest generates a "aws/request.Request" representing the
  13592. // client's request for the GetConsoleScreenshot operation. The "output" return
  13593. // value can be used to capture response data after the request's "Send" method
  13594. // is called.
  13595. //
  13596. // See GetConsoleScreenshot for usage and error information.
  13597. //
  13598. // Creating a request object using this method should be used when you want to inject
  13599. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13600. // access properties on the request object before or after sending the request. If
  13601. // you just want the service response, call the GetConsoleScreenshot method directly
  13602. // instead.
  13603. //
  13604. // Note: You must call the "Send" method on the returned request object in order
  13605. // to execute the request.
  13606. //
  13607. // // Example sending a request using the GetConsoleScreenshotRequest method.
  13608. // req, resp := client.GetConsoleScreenshotRequest(params)
  13609. //
  13610. // err := req.Send()
  13611. // if err == nil { // resp is now filled
  13612. // fmt.Println(resp)
  13613. // }
  13614. //
  13615. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  13616. func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req *request.Request, output *GetConsoleScreenshotOutput) {
  13617. op := &request.Operation{
  13618. Name: opGetConsoleScreenshot,
  13619. HTTPMethod: "POST",
  13620. HTTPPath: "/",
  13621. }
  13622. if input == nil {
  13623. input = &GetConsoleScreenshotInput{}
  13624. }
  13625. output = &GetConsoleScreenshotOutput{}
  13626. req = c.newRequest(op, input, output)
  13627. return
  13628. }
  13629. // GetConsoleScreenshot API operation for Amazon Elastic Compute Cloud.
  13630. //
  13631. // Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
  13632. //
  13633. // The returned content is Base64-encoded.
  13634. //
  13635. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13636. // with awserr.Error's Code and Message methods to get detailed information about
  13637. // the error.
  13638. //
  13639. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13640. // API operation GetConsoleScreenshot for usage and error information.
  13641. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  13642. func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) {
  13643. req, out := c.GetConsoleScreenshotRequest(input)
  13644. return out, req.Send()
  13645. }
  13646. // GetConsoleScreenshotWithContext is the same as GetConsoleScreenshot with the addition of
  13647. // the ability to pass a context and additional request options.
  13648. //
  13649. // See GetConsoleScreenshot for details on how to use this API operation.
  13650. //
  13651. // The context must be non-nil and will be used for request cancellation. If
  13652. // the context is nil a panic will occur. In the future the SDK may create
  13653. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13654. // for more information on using Contexts.
  13655. func (c *EC2) GetConsoleScreenshotWithContext(ctx aws.Context, input *GetConsoleScreenshotInput, opts ...request.Option) (*GetConsoleScreenshotOutput, error) {
  13656. req, out := c.GetConsoleScreenshotRequest(input)
  13657. req.SetContext(ctx)
  13658. req.ApplyOptions(opts...)
  13659. return out, req.Send()
  13660. }
  13661. const opGetHostReservationPurchasePreview = "GetHostReservationPurchasePreview"
  13662. // GetHostReservationPurchasePreviewRequest generates a "aws/request.Request" representing the
  13663. // client's request for the GetHostReservationPurchasePreview operation. The "output" return
  13664. // value can be used to capture response data after the request's "Send" method
  13665. // is called.
  13666. //
  13667. // See GetHostReservationPurchasePreview for usage and error information.
  13668. //
  13669. // Creating a request object using this method should be used when you want to inject
  13670. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13671. // access properties on the request object before or after sending the request. If
  13672. // you just want the service response, call the GetHostReservationPurchasePreview method directly
  13673. // instead.
  13674. //
  13675. // Note: You must call the "Send" method on the returned request object in order
  13676. // to execute the request.
  13677. //
  13678. // // Example sending a request using the GetHostReservationPurchasePreviewRequest method.
  13679. // req, resp := client.GetHostReservationPurchasePreviewRequest(params)
  13680. //
  13681. // err := req.Send()
  13682. // if err == nil { // resp is now filled
  13683. // fmt.Println(resp)
  13684. // }
  13685. //
  13686. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  13687. func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservationPurchasePreviewInput) (req *request.Request, output *GetHostReservationPurchasePreviewOutput) {
  13688. op := &request.Operation{
  13689. Name: opGetHostReservationPurchasePreview,
  13690. HTTPMethod: "POST",
  13691. HTTPPath: "/",
  13692. }
  13693. if input == nil {
  13694. input = &GetHostReservationPurchasePreviewInput{}
  13695. }
  13696. output = &GetHostReservationPurchasePreviewOutput{}
  13697. req = c.newRequest(op, input, output)
  13698. return
  13699. }
  13700. // GetHostReservationPurchasePreview API operation for Amazon Elastic Compute Cloud.
  13701. //
  13702. // Preview a reservation purchase with configurations that match those of your
  13703. // Dedicated Host. You must have active Dedicated Hosts in your account before
  13704. // you purchase a reservation.
  13705. //
  13706. // This is a preview of the PurchaseHostReservation action and does not result
  13707. // in the offering being purchased.
  13708. //
  13709. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13710. // with awserr.Error's Code and Message methods to get detailed information about
  13711. // the error.
  13712. //
  13713. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13714. // API operation GetHostReservationPurchasePreview for usage and error information.
  13715. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  13716. func (c *EC2) GetHostReservationPurchasePreview(input *GetHostReservationPurchasePreviewInput) (*GetHostReservationPurchasePreviewOutput, error) {
  13717. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  13718. return out, req.Send()
  13719. }
  13720. // GetHostReservationPurchasePreviewWithContext is the same as GetHostReservationPurchasePreview with the addition of
  13721. // the ability to pass a context and additional request options.
  13722. //
  13723. // See GetHostReservationPurchasePreview for details on how to use this API operation.
  13724. //
  13725. // The context must be non-nil and will be used for request cancellation. If
  13726. // the context is nil a panic will occur. In the future the SDK may create
  13727. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13728. // for more information on using Contexts.
  13729. func (c *EC2) GetHostReservationPurchasePreviewWithContext(ctx aws.Context, input *GetHostReservationPurchasePreviewInput, opts ...request.Option) (*GetHostReservationPurchasePreviewOutput, error) {
  13730. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  13731. req.SetContext(ctx)
  13732. req.ApplyOptions(opts...)
  13733. return out, req.Send()
  13734. }
  13735. const opGetPasswordData = "GetPasswordData"
  13736. // GetPasswordDataRequest generates a "aws/request.Request" representing the
  13737. // client's request for the GetPasswordData operation. The "output" return
  13738. // value can be used to capture response data after the request's "Send" method
  13739. // is called.
  13740. //
  13741. // See GetPasswordData for usage and error information.
  13742. //
  13743. // Creating a request object using this method should be used when you want to inject
  13744. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13745. // access properties on the request object before or after sending the request. If
  13746. // you just want the service response, call the GetPasswordData method directly
  13747. // instead.
  13748. //
  13749. // Note: You must call the "Send" method on the returned request object in order
  13750. // to execute the request.
  13751. //
  13752. // // Example sending a request using the GetPasswordDataRequest method.
  13753. // req, resp := client.GetPasswordDataRequest(params)
  13754. //
  13755. // err := req.Send()
  13756. // if err == nil { // resp is now filled
  13757. // fmt.Println(resp)
  13758. // }
  13759. //
  13760. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  13761. func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request.Request, output *GetPasswordDataOutput) {
  13762. op := &request.Operation{
  13763. Name: opGetPasswordData,
  13764. HTTPMethod: "POST",
  13765. HTTPPath: "/",
  13766. }
  13767. if input == nil {
  13768. input = &GetPasswordDataInput{}
  13769. }
  13770. output = &GetPasswordDataOutput{}
  13771. req = c.newRequest(op, input, output)
  13772. return
  13773. }
  13774. // GetPasswordData API operation for Amazon Elastic Compute Cloud.
  13775. //
  13776. // Retrieves the encrypted administrator password for an instance running Windows.
  13777. //
  13778. // The Windows password is generated at boot if the EC2Config service plugin,
  13779. // Ec2SetPassword, is enabled. This usually only happens the first time an AMI
  13780. // is launched, and then Ec2SetPassword is automatically disabled. The password
  13781. // is not generated for rebundled AMIs unless Ec2SetPassword is enabled before
  13782. // bundling.
  13783. //
  13784. // The password is encrypted using the key pair that you specified when you
  13785. // launched the instance. You must provide the corresponding key pair file.
  13786. //
  13787. // Password generation and encryption takes a few moments. We recommend that
  13788. // you wait up to 15 minutes after launching an instance before trying to retrieve
  13789. // the generated password.
  13790. //
  13791. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13792. // with awserr.Error's Code and Message methods to get detailed information about
  13793. // the error.
  13794. //
  13795. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13796. // API operation GetPasswordData for usage and error information.
  13797. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  13798. func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) {
  13799. req, out := c.GetPasswordDataRequest(input)
  13800. return out, req.Send()
  13801. }
  13802. // GetPasswordDataWithContext is the same as GetPasswordData with the addition of
  13803. // the ability to pass a context and additional request options.
  13804. //
  13805. // See GetPasswordData for details on how to use this API operation.
  13806. //
  13807. // The context must be non-nil and will be used for request cancellation. If
  13808. // the context is nil a panic will occur. In the future the SDK may create
  13809. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13810. // for more information on using Contexts.
  13811. func (c *EC2) GetPasswordDataWithContext(ctx aws.Context, input *GetPasswordDataInput, opts ...request.Option) (*GetPasswordDataOutput, error) {
  13812. req, out := c.GetPasswordDataRequest(input)
  13813. req.SetContext(ctx)
  13814. req.ApplyOptions(opts...)
  13815. return out, req.Send()
  13816. }
  13817. const opGetReservedInstancesExchangeQuote = "GetReservedInstancesExchangeQuote"
  13818. // GetReservedInstancesExchangeQuoteRequest generates a "aws/request.Request" representing the
  13819. // client's request for the GetReservedInstancesExchangeQuote operation. The "output" return
  13820. // value can be used to capture response data after the request's "Send" method
  13821. // is called.
  13822. //
  13823. // See GetReservedInstancesExchangeQuote for usage and error information.
  13824. //
  13825. // Creating a request object using this method should be used when you want to inject
  13826. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13827. // access properties on the request object before or after sending the request. If
  13828. // you just want the service response, call the GetReservedInstancesExchangeQuote method directly
  13829. // instead.
  13830. //
  13831. // Note: You must call the "Send" method on the returned request object in order
  13832. // to execute the request.
  13833. //
  13834. // // Example sending a request using the GetReservedInstancesExchangeQuoteRequest method.
  13835. // req, resp := client.GetReservedInstancesExchangeQuoteRequest(params)
  13836. //
  13837. // err := req.Send()
  13838. // if err == nil { // resp is now filled
  13839. // fmt.Println(resp)
  13840. // }
  13841. //
  13842. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  13843. func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstancesExchangeQuoteInput) (req *request.Request, output *GetReservedInstancesExchangeQuoteOutput) {
  13844. op := &request.Operation{
  13845. Name: opGetReservedInstancesExchangeQuote,
  13846. HTTPMethod: "POST",
  13847. HTTPPath: "/",
  13848. }
  13849. if input == nil {
  13850. input = &GetReservedInstancesExchangeQuoteInput{}
  13851. }
  13852. output = &GetReservedInstancesExchangeQuoteOutput{}
  13853. req = c.newRequest(op, input, output)
  13854. return
  13855. }
  13856. // GetReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud.
  13857. //
  13858. // Returns details about the values and term of your specified Convertible Reserved
  13859. // Instances. When a target configuration is specified, it returns information
  13860. // about whether the exchange is valid and can be performed.
  13861. //
  13862. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13863. // with awserr.Error's Code and Message methods to get detailed information about
  13864. // the error.
  13865. //
  13866. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13867. // API operation GetReservedInstancesExchangeQuote for usage and error information.
  13868. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  13869. func (c *EC2) GetReservedInstancesExchangeQuote(input *GetReservedInstancesExchangeQuoteInput) (*GetReservedInstancesExchangeQuoteOutput, error) {
  13870. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  13871. return out, req.Send()
  13872. }
  13873. // GetReservedInstancesExchangeQuoteWithContext is the same as GetReservedInstancesExchangeQuote with the addition of
  13874. // the ability to pass a context and additional request options.
  13875. //
  13876. // See GetReservedInstancesExchangeQuote for details on how to use this API operation.
  13877. //
  13878. // The context must be non-nil and will be used for request cancellation. If
  13879. // the context is nil a panic will occur. In the future the SDK may create
  13880. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13881. // for more information on using Contexts.
  13882. func (c *EC2) GetReservedInstancesExchangeQuoteWithContext(ctx aws.Context, input *GetReservedInstancesExchangeQuoteInput, opts ...request.Option) (*GetReservedInstancesExchangeQuoteOutput, error) {
  13883. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  13884. req.SetContext(ctx)
  13885. req.ApplyOptions(opts...)
  13886. return out, req.Send()
  13887. }
  13888. const opImportImage = "ImportImage"
  13889. // ImportImageRequest generates a "aws/request.Request" representing the
  13890. // client's request for the ImportImage operation. The "output" return
  13891. // value can be used to capture response data after the request's "Send" method
  13892. // is called.
  13893. //
  13894. // See ImportImage for usage and error information.
  13895. //
  13896. // Creating a request object using this method should be used when you want to inject
  13897. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13898. // access properties on the request object before or after sending the request. If
  13899. // you just want the service response, call the ImportImage method directly
  13900. // instead.
  13901. //
  13902. // Note: You must call the "Send" method on the returned request object in order
  13903. // to execute the request.
  13904. //
  13905. // // Example sending a request using the ImportImageRequest method.
  13906. // req, resp := client.ImportImageRequest(params)
  13907. //
  13908. // err := req.Send()
  13909. // if err == nil { // resp is now filled
  13910. // fmt.Println(resp)
  13911. // }
  13912. //
  13913. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  13914. func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, output *ImportImageOutput) {
  13915. op := &request.Operation{
  13916. Name: opImportImage,
  13917. HTTPMethod: "POST",
  13918. HTTPPath: "/",
  13919. }
  13920. if input == nil {
  13921. input = &ImportImageInput{}
  13922. }
  13923. output = &ImportImageOutput{}
  13924. req = c.newRequest(op, input, output)
  13925. return
  13926. }
  13927. // ImportImage API operation for Amazon Elastic Compute Cloud.
  13928. //
  13929. // Import single or multi-volume disk images or EBS snapshots into an Amazon
  13930. // Machine Image (AMI). For more information, see Importing a VM as an Image
  13931. // Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html)
  13932. // in the VM Import/Export User Guide.
  13933. //
  13934. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13935. // with awserr.Error's Code and Message methods to get detailed information about
  13936. // the error.
  13937. //
  13938. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13939. // API operation ImportImage for usage and error information.
  13940. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  13941. func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) {
  13942. req, out := c.ImportImageRequest(input)
  13943. return out, req.Send()
  13944. }
  13945. // ImportImageWithContext is the same as ImportImage with the addition of
  13946. // the ability to pass a context and additional request options.
  13947. //
  13948. // See ImportImage for details on how to use this API operation.
  13949. //
  13950. // The context must be non-nil and will be used for request cancellation. If
  13951. // the context is nil a panic will occur. In the future the SDK may create
  13952. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13953. // for more information on using Contexts.
  13954. func (c *EC2) ImportImageWithContext(ctx aws.Context, input *ImportImageInput, opts ...request.Option) (*ImportImageOutput, error) {
  13955. req, out := c.ImportImageRequest(input)
  13956. req.SetContext(ctx)
  13957. req.ApplyOptions(opts...)
  13958. return out, req.Send()
  13959. }
  13960. const opImportInstance = "ImportInstance"
  13961. // ImportInstanceRequest generates a "aws/request.Request" representing the
  13962. // client's request for the ImportInstance operation. The "output" return
  13963. // value can be used to capture response data after the request's "Send" method
  13964. // is called.
  13965. //
  13966. // See ImportInstance for usage and error information.
  13967. //
  13968. // Creating a request object using this method should be used when you want to inject
  13969. // custom logic into the request's lifecycle using a custom handler, or if you want to
  13970. // access properties on the request object before or after sending the request. If
  13971. // you just want the service response, call the ImportInstance method directly
  13972. // instead.
  13973. //
  13974. // Note: You must call the "Send" method on the returned request object in order
  13975. // to execute the request.
  13976. //
  13977. // // Example sending a request using the ImportInstanceRequest method.
  13978. // req, resp := client.ImportInstanceRequest(params)
  13979. //
  13980. // err := req.Send()
  13981. // if err == nil { // resp is now filled
  13982. // fmt.Println(resp)
  13983. // }
  13984. //
  13985. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  13986. func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Request, output *ImportInstanceOutput) {
  13987. op := &request.Operation{
  13988. Name: opImportInstance,
  13989. HTTPMethod: "POST",
  13990. HTTPPath: "/",
  13991. }
  13992. if input == nil {
  13993. input = &ImportInstanceInput{}
  13994. }
  13995. output = &ImportInstanceOutput{}
  13996. req = c.newRequest(op, input, output)
  13997. return
  13998. }
  13999. // ImportInstance API operation for Amazon Elastic Compute Cloud.
  14000. //
  14001. // Creates an import instance task using metadata from the specified disk image.
  14002. // ImportInstance only supports single-volume VMs. To import multi-volume VMs,
  14003. // use ImportImage. For more information, see Importing a Virtual Machine Using
  14004. // the Amazon EC2 CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).
  14005. //
  14006. // For information about the import manifest referenced by this API action,
  14007. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  14008. //
  14009. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14010. // with awserr.Error's Code and Message methods to get detailed information about
  14011. // the error.
  14012. //
  14013. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14014. // API operation ImportInstance for usage and error information.
  14015. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  14016. func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) {
  14017. req, out := c.ImportInstanceRequest(input)
  14018. return out, req.Send()
  14019. }
  14020. // ImportInstanceWithContext is the same as ImportInstance with the addition of
  14021. // the ability to pass a context and additional request options.
  14022. //
  14023. // See ImportInstance for details on how to use this API operation.
  14024. //
  14025. // The context must be non-nil and will be used for request cancellation. If
  14026. // the context is nil a panic will occur. In the future the SDK may create
  14027. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14028. // for more information on using Contexts.
  14029. func (c *EC2) ImportInstanceWithContext(ctx aws.Context, input *ImportInstanceInput, opts ...request.Option) (*ImportInstanceOutput, error) {
  14030. req, out := c.ImportInstanceRequest(input)
  14031. req.SetContext(ctx)
  14032. req.ApplyOptions(opts...)
  14033. return out, req.Send()
  14034. }
  14035. const opImportKeyPair = "ImportKeyPair"
  14036. // ImportKeyPairRequest generates a "aws/request.Request" representing the
  14037. // client's request for the ImportKeyPair operation. The "output" return
  14038. // value can be used to capture response data after the request's "Send" method
  14039. // is called.
  14040. //
  14041. // See ImportKeyPair for usage and error information.
  14042. //
  14043. // Creating a request object using this method should be used when you want to inject
  14044. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14045. // access properties on the request object before or after sending the request. If
  14046. // you just want the service response, call the ImportKeyPair method directly
  14047. // instead.
  14048. //
  14049. // Note: You must call the "Send" method on the returned request object in order
  14050. // to execute the request.
  14051. //
  14052. // // Example sending a request using the ImportKeyPairRequest method.
  14053. // req, resp := client.ImportKeyPairRequest(params)
  14054. //
  14055. // err := req.Send()
  14056. // if err == nil { // resp is now filled
  14057. // fmt.Println(resp)
  14058. // }
  14059. //
  14060. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  14061. func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) {
  14062. op := &request.Operation{
  14063. Name: opImportKeyPair,
  14064. HTTPMethod: "POST",
  14065. HTTPPath: "/",
  14066. }
  14067. if input == nil {
  14068. input = &ImportKeyPairInput{}
  14069. }
  14070. output = &ImportKeyPairOutput{}
  14071. req = c.newRequest(op, input, output)
  14072. return
  14073. }
  14074. // ImportKeyPair API operation for Amazon Elastic Compute Cloud.
  14075. //
  14076. // Imports the public key from an RSA key pair that you created with a third-party
  14077. // tool. Compare this with CreateKeyPair, in which AWS creates the key pair
  14078. // and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair,
  14079. // you create the key pair and give AWS just the public key. The private key
  14080. // is never transferred between you and AWS.
  14081. //
  14082. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  14083. // in the Amazon Elastic Compute Cloud User Guide.
  14084. //
  14085. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14086. // with awserr.Error's Code and Message methods to get detailed information about
  14087. // the error.
  14088. //
  14089. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14090. // API operation ImportKeyPair for usage and error information.
  14091. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  14092. func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) {
  14093. req, out := c.ImportKeyPairRequest(input)
  14094. return out, req.Send()
  14095. }
  14096. // ImportKeyPairWithContext is the same as ImportKeyPair with the addition of
  14097. // the ability to pass a context and additional request options.
  14098. //
  14099. // See ImportKeyPair for details on how to use this API operation.
  14100. //
  14101. // The context must be non-nil and will be used for request cancellation. If
  14102. // the context is nil a panic will occur. In the future the SDK may create
  14103. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14104. // for more information on using Contexts.
  14105. func (c *EC2) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error) {
  14106. req, out := c.ImportKeyPairRequest(input)
  14107. req.SetContext(ctx)
  14108. req.ApplyOptions(opts...)
  14109. return out, req.Send()
  14110. }
  14111. const opImportSnapshot = "ImportSnapshot"
  14112. // ImportSnapshotRequest generates a "aws/request.Request" representing the
  14113. // client's request for the ImportSnapshot operation. The "output" return
  14114. // value can be used to capture response data after the request's "Send" method
  14115. // is called.
  14116. //
  14117. // See ImportSnapshot for usage and error information.
  14118. //
  14119. // Creating a request object using this method should be used when you want to inject
  14120. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14121. // access properties on the request object before or after sending the request. If
  14122. // you just want the service response, call the ImportSnapshot method directly
  14123. // instead.
  14124. //
  14125. // Note: You must call the "Send" method on the returned request object in order
  14126. // to execute the request.
  14127. //
  14128. // // Example sending a request using the ImportSnapshotRequest method.
  14129. // req, resp := client.ImportSnapshotRequest(params)
  14130. //
  14131. // err := req.Send()
  14132. // if err == nil { // resp is now filled
  14133. // fmt.Println(resp)
  14134. // }
  14135. //
  14136. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  14137. func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Request, output *ImportSnapshotOutput) {
  14138. op := &request.Operation{
  14139. Name: opImportSnapshot,
  14140. HTTPMethod: "POST",
  14141. HTTPPath: "/",
  14142. }
  14143. if input == nil {
  14144. input = &ImportSnapshotInput{}
  14145. }
  14146. output = &ImportSnapshotOutput{}
  14147. req = c.newRequest(op, input, output)
  14148. return
  14149. }
  14150. // ImportSnapshot API operation for Amazon Elastic Compute Cloud.
  14151. //
  14152. // Imports a disk into an EBS snapshot.
  14153. //
  14154. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14155. // with awserr.Error's Code and Message methods to get detailed information about
  14156. // the error.
  14157. //
  14158. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14159. // API operation ImportSnapshot for usage and error information.
  14160. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  14161. func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) {
  14162. req, out := c.ImportSnapshotRequest(input)
  14163. return out, req.Send()
  14164. }
  14165. // ImportSnapshotWithContext is the same as ImportSnapshot with the addition of
  14166. // the ability to pass a context and additional request options.
  14167. //
  14168. // See ImportSnapshot for details on how to use this API operation.
  14169. //
  14170. // The context must be non-nil and will be used for request cancellation. If
  14171. // the context is nil a panic will occur. In the future the SDK may create
  14172. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14173. // for more information on using Contexts.
  14174. func (c *EC2) ImportSnapshotWithContext(ctx aws.Context, input *ImportSnapshotInput, opts ...request.Option) (*ImportSnapshotOutput, error) {
  14175. req, out := c.ImportSnapshotRequest(input)
  14176. req.SetContext(ctx)
  14177. req.ApplyOptions(opts...)
  14178. return out, req.Send()
  14179. }
  14180. const opImportVolume = "ImportVolume"
  14181. // ImportVolumeRequest generates a "aws/request.Request" representing the
  14182. // client's request for the ImportVolume operation. The "output" return
  14183. // value can be used to capture response data after the request's "Send" method
  14184. // is called.
  14185. //
  14186. // See ImportVolume for usage and error information.
  14187. //
  14188. // Creating a request object using this method should be used when you want to inject
  14189. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14190. // access properties on the request object before or after sending the request. If
  14191. // you just want the service response, call the ImportVolume method directly
  14192. // instead.
  14193. //
  14194. // Note: You must call the "Send" method on the returned request object in order
  14195. // to execute the request.
  14196. //
  14197. // // Example sending a request using the ImportVolumeRequest method.
  14198. // req, resp := client.ImportVolumeRequest(params)
  14199. //
  14200. // err := req.Send()
  14201. // if err == nil { // resp is now filled
  14202. // fmt.Println(resp)
  14203. // }
  14204. //
  14205. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  14206. func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Request, output *ImportVolumeOutput) {
  14207. op := &request.Operation{
  14208. Name: opImportVolume,
  14209. HTTPMethod: "POST",
  14210. HTTPPath: "/",
  14211. }
  14212. if input == nil {
  14213. input = &ImportVolumeInput{}
  14214. }
  14215. output = &ImportVolumeOutput{}
  14216. req = c.newRequest(op, input, output)
  14217. return
  14218. }
  14219. // ImportVolume API operation for Amazon Elastic Compute Cloud.
  14220. //
  14221. // Creates an import volume task using metadata from the specified disk image.For
  14222. // more information, see Importing Disks to Amazon EBS (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/importing-your-volumes-into-amazon-ebs.html).
  14223. //
  14224. // For information about the import manifest referenced by this API action,
  14225. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  14226. //
  14227. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14228. // with awserr.Error's Code and Message methods to get detailed information about
  14229. // the error.
  14230. //
  14231. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14232. // API operation ImportVolume for usage and error information.
  14233. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  14234. func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) {
  14235. req, out := c.ImportVolumeRequest(input)
  14236. return out, req.Send()
  14237. }
  14238. // ImportVolumeWithContext is the same as ImportVolume with the addition of
  14239. // the ability to pass a context and additional request options.
  14240. //
  14241. // See ImportVolume for details on how to use this API operation.
  14242. //
  14243. // The context must be non-nil and will be used for request cancellation. If
  14244. // the context is nil a panic will occur. In the future the SDK may create
  14245. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14246. // for more information on using Contexts.
  14247. func (c *EC2) ImportVolumeWithContext(ctx aws.Context, input *ImportVolumeInput, opts ...request.Option) (*ImportVolumeOutput, error) {
  14248. req, out := c.ImportVolumeRequest(input)
  14249. req.SetContext(ctx)
  14250. req.ApplyOptions(opts...)
  14251. return out, req.Send()
  14252. }
  14253. const opModifyHosts = "ModifyHosts"
  14254. // ModifyHostsRequest generates a "aws/request.Request" representing the
  14255. // client's request for the ModifyHosts operation. The "output" return
  14256. // value can be used to capture response data after the request's "Send" method
  14257. // is called.
  14258. //
  14259. // See ModifyHosts for usage and error information.
  14260. //
  14261. // Creating a request object using this method should be used when you want to inject
  14262. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14263. // access properties on the request object before or after sending the request. If
  14264. // you just want the service response, call the ModifyHosts method directly
  14265. // instead.
  14266. //
  14267. // Note: You must call the "Send" method on the returned request object in order
  14268. // to execute the request.
  14269. //
  14270. // // Example sending a request using the ModifyHostsRequest method.
  14271. // req, resp := client.ModifyHostsRequest(params)
  14272. //
  14273. // err := req.Send()
  14274. // if err == nil { // resp is now filled
  14275. // fmt.Println(resp)
  14276. // }
  14277. //
  14278. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  14279. func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, output *ModifyHostsOutput) {
  14280. op := &request.Operation{
  14281. Name: opModifyHosts,
  14282. HTTPMethod: "POST",
  14283. HTTPPath: "/",
  14284. }
  14285. if input == nil {
  14286. input = &ModifyHostsInput{}
  14287. }
  14288. output = &ModifyHostsOutput{}
  14289. req = c.newRequest(op, input, output)
  14290. return
  14291. }
  14292. // ModifyHosts API operation for Amazon Elastic Compute Cloud.
  14293. //
  14294. // Modify the auto-placement setting of a Dedicated Host. When auto-placement
  14295. // is enabled, AWS will place instances that you launch with a tenancy of host,
  14296. // but without targeting a specific host ID, onto any available Dedicated Host
  14297. // in your account which has auto-placement enabled. When auto-placement is
  14298. // disabled, you need to provide a host ID if you want the instance to launch
  14299. // onto a specific host. If no host ID is provided, the instance will be launched
  14300. // onto a suitable host which has auto-placement enabled.
  14301. //
  14302. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14303. // with awserr.Error's Code and Message methods to get detailed information about
  14304. // the error.
  14305. //
  14306. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14307. // API operation ModifyHosts for usage and error information.
  14308. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  14309. func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) {
  14310. req, out := c.ModifyHostsRequest(input)
  14311. return out, req.Send()
  14312. }
  14313. // ModifyHostsWithContext is the same as ModifyHosts with the addition of
  14314. // the ability to pass a context and additional request options.
  14315. //
  14316. // See ModifyHosts for details on how to use this API operation.
  14317. //
  14318. // The context must be non-nil and will be used for request cancellation. If
  14319. // the context is nil a panic will occur. In the future the SDK may create
  14320. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14321. // for more information on using Contexts.
  14322. func (c *EC2) ModifyHostsWithContext(ctx aws.Context, input *ModifyHostsInput, opts ...request.Option) (*ModifyHostsOutput, error) {
  14323. req, out := c.ModifyHostsRequest(input)
  14324. req.SetContext(ctx)
  14325. req.ApplyOptions(opts...)
  14326. return out, req.Send()
  14327. }
  14328. const opModifyIdFormat = "ModifyIdFormat"
  14329. // ModifyIdFormatRequest generates a "aws/request.Request" representing the
  14330. // client's request for the ModifyIdFormat operation. The "output" return
  14331. // value can be used to capture response data after the request's "Send" method
  14332. // is called.
  14333. //
  14334. // See ModifyIdFormat for usage and error information.
  14335. //
  14336. // Creating a request object using this method should be used when you want to inject
  14337. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14338. // access properties on the request object before or after sending the request. If
  14339. // you just want the service response, call the ModifyIdFormat method directly
  14340. // instead.
  14341. //
  14342. // Note: You must call the "Send" method on the returned request object in order
  14343. // to execute the request.
  14344. //
  14345. // // Example sending a request using the ModifyIdFormatRequest method.
  14346. // req, resp := client.ModifyIdFormatRequest(params)
  14347. //
  14348. // err := req.Send()
  14349. // if err == nil { // resp is now filled
  14350. // fmt.Println(resp)
  14351. // }
  14352. //
  14353. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  14354. func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Request, output *ModifyIdFormatOutput) {
  14355. op := &request.Operation{
  14356. Name: opModifyIdFormat,
  14357. HTTPMethod: "POST",
  14358. HTTPPath: "/",
  14359. }
  14360. if input == nil {
  14361. input = &ModifyIdFormatInput{}
  14362. }
  14363. output = &ModifyIdFormatOutput{}
  14364. req = c.newRequest(op, input, output)
  14365. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14366. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14367. return
  14368. }
  14369. // ModifyIdFormat API operation for Amazon Elastic Compute Cloud.
  14370. //
  14371. // Modifies the ID format for the specified resource on a per-region basis.
  14372. // You can specify that resources should receive longer IDs (17-character IDs)
  14373. // when they are created. The following resource types support longer IDs: instance
  14374. // | reservation | snapshot | volume.
  14375. //
  14376. // This setting applies to the IAM user who makes the request; it does not apply
  14377. // to the entire AWS account. By default, an IAM user defaults to the same settings
  14378. // as the root user. If you're using this action as the root user, then these
  14379. // settings apply to the entire account, unless an IAM user explicitly overrides
  14380. // these settings for themselves. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  14381. // in the Amazon Elastic Compute Cloud User Guide.
  14382. //
  14383. // Resources created with longer IDs are visible to all IAM roles and users,
  14384. // regardless of these settings and provided that they have permission to use
  14385. // the relevant Describe command for the resource type.
  14386. //
  14387. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14388. // with awserr.Error's Code and Message methods to get detailed information about
  14389. // the error.
  14390. //
  14391. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14392. // API operation ModifyIdFormat for usage and error information.
  14393. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  14394. func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) {
  14395. req, out := c.ModifyIdFormatRequest(input)
  14396. return out, req.Send()
  14397. }
  14398. // ModifyIdFormatWithContext is the same as ModifyIdFormat with the addition of
  14399. // the ability to pass a context and additional request options.
  14400. //
  14401. // See ModifyIdFormat for details on how to use this API operation.
  14402. //
  14403. // The context must be non-nil and will be used for request cancellation. If
  14404. // the context is nil a panic will occur. In the future the SDK may create
  14405. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14406. // for more information on using Contexts.
  14407. func (c *EC2) ModifyIdFormatWithContext(ctx aws.Context, input *ModifyIdFormatInput, opts ...request.Option) (*ModifyIdFormatOutput, error) {
  14408. req, out := c.ModifyIdFormatRequest(input)
  14409. req.SetContext(ctx)
  14410. req.ApplyOptions(opts...)
  14411. return out, req.Send()
  14412. }
  14413. const opModifyIdentityIdFormat = "ModifyIdentityIdFormat"
  14414. // ModifyIdentityIdFormatRequest generates a "aws/request.Request" representing the
  14415. // client's request for the ModifyIdentityIdFormat operation. The "output" return
  14416. // value can be used to capture response data after the request's "Send" method
  14417. // is called.
  14418. //
  14419. // See ModifyIdentityIdFormat for usage and error information.
  14420. //
  14421. // Creating a request object using this method should be used when you want to inject
  14422. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14423. // access properties on the request object before or after sending the request. If
  14424. // you just want the service response, call the ModifyIdentityIdFormat method directly
  14425. // instead.
  14426. //
  14427. // Note: You must call the "Send" method on the returned request object in order
  14428. // to execute the request.
  14429. //
  14430. // // Example sending a request using the ModifyIdentityIdFormatRequest method.
  14431. // req, resp := client.ModifyIdentityIdFormatRequest(params)
  14432. //
  14433. // err := req.Send()
  14434. // if err == nil { // resp is now filled
  14435. // fmt.Println(resp)
  14436. // }
  14437. //
  14438. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  14439. func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) (req *request.Request, output *ModifyIdentityIdFormatOutput) {
  14440. op := &request.Operation{
  14441. Name: opModifyIdentityIdFormat,
  14442. HTTPMethod: "POST",
  14443. HTTPPath: "/",
  14444. }
  14445. if input == nil {
  14446. input = &ModifyIdentityIdFormatInput{}
  14447. }
  14448. output = &ModifyIdentityIdFormatOutput{}
  14449. req = c.newRequest(op, input, output)
  14450. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14451. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14452. return
  14453. }
  14454. // ModifyIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  14455. //
  14456. // Modifies the ID format of a resource for a specified IAM user, IAM role,
  14457. // or the root user for an account; or all IAM users, IAM roles, and the root
  14458. // user for an account. You can specify that resources should receive longer
  14459. // IDs (17-character IDs) when they are created.
  14460. //
  14461. // The following resource types support longer IDs: instance | reservation |
  14462. // snapshot | volume. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  14463. // in the Amazon Elastic Compute Cloud User Guide.
  14464. //
  14465. // This setting applies to the principal specified in the request; it does not
  14466. // apply to the principal that makes the request.
  14467. //
  14468. // Resources created with longer IDs are visible to all IAM roles and users,
  14469. // regardless of these settings and provided that they have permission to use
  14470. // the relevant Describe command for the resource type.
  14471. //
  14472. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14473. // with awserr.Error's Code and Message methods to get detailed information about
  14474. // the error.
  14475. //
  14476. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14477. // API operation ModifyIdentityIdFormat for usage and error information.
  14478. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  14479. func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) {
  14480. req, out := c.ModifyIdentityIdFormatRequest(input)
  14481. return out, req.Send()
  14482. }
  14483. // ModifyIdentityIdFormatWithContext is the same as ModifyIdentityIdFormat with the addition of
  14484. // the ability to pass a context and additional request options.
  14485. //
  14486. // See ModifyIdentityIdFormat for details on how to use this API operation.
  14487. //
  14488. // The context must be non-nil and will be used for request cancellation. If
  14489. // the context is nil a panic will occur. In the future the SDK may create
  14490. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14491. // for more information on using Contexts.
  14492. func (c *EC2) ModifyIdentityIdFormatWithContext(ctx aws.Context, input *ModifyIdentityIdFormatInput, opts ...request.Option) (*ModifyIdentityIdFormatOutput, error) {
  14493. req, out := c.ModifyIdentityIdFormatRequest(input)
  14494. req.SetContext(ctx)
  14495. req.ApplyOptions(opts...)
  14496. return out, req.Send()
  14497. }
  14498. const opModifyImageAttribute = "ModifyImageAttribute"
  14499. // ModifyImageAttributeRequest generates a "aws/request.Request" representing the
  14500. // client's request for the ModifyImageAttribute operation. The "output" return
  14501. // value can be used to capture response data after the request's "Send" method
  14502. // is called.
  14503. //
  14504. // See ModifyImageAttribute for usage and error information.
  14505. //
  14506. // Creating a request object using this method should be used when you want to inject
  14507. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14508. // access properties on the request object before or after sending the request. If
  14509. // you just want the service response, call the ModifyImageAttribute method directly
  14510. // instead.
  14511. //
  14512. // Note: You must call the "Send" method on the returned request object in order
  14513. // to execute the request.
  14514. //
  14515. // // Example sending a request using the ModifyImageAttributeRequest method.
  14516. // req, resp := client.ModifyImageAttributeRequest(params)
  14517. //
  14518. // err := req.Send()
  14519. // if err == nil { // resp is now filled
  14520. // fmt.Println(resp)
  14521. // }
  14522. //
  14523. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  14524. func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req *request.Request, output *ModifyImageAttributeOutput) {
  14525. op := &request.Operation{
  14526. Name: opModifyImageAttribute,
  14527. HTTPMethod: "POST",
  14528. HTTPPath: "/",
  14529. }
  14530. if input == nil {
  14531. input = &ModifyImageAttributeInput{}
  14532. }
  14533. output = &ModifyImageAttributeOutput{}
  14534. req = c.newRequest(op, input, output)
  14535. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14536. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14537. return
  14538. }
  14539. // ModifyImageAttribute API operation for Amazon Elastic Compute Cloud.
  14540. //
  14541. // Modifies the specified attribute of the specified AMI. You can specify only
  14542. // one attribute at a time.
  14543. //
  14544. // AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace
  14545. // product code cannot be made public.
  14546. //
  14547. // The SriovNetSupport enhanced networking attribute cannot be changed using
  14548. // this command. Instead, enable SriovNetSupport on an instance and create an
  14549. // AMI from the instance. This will result in an image with SriovNetSupport
  14550. // enabled.
  14551. //
  14552. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14553. // with awserr.Error's Code and Message methods to get detailed information about
  14554. // the error.
  14555. //
  14556. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14557. // API operation ModifyImageAttribute for usage and error information.
  14558. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  14559. func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) {
  14560. req, out := c.ModifyImageAttributeRequest(input)
  14561. return out, req.Send()
  14562. }
  14563. // ModifyImageAttributeWithContext is the same as ModifyImageAttribute with the addition of
  14564. // the ability to pass a context and additional request options.
  14565. //
  14566. // See ModifyImageAttribute for details on how to use this API operation.
  14567. //
  14568. // The context must be non-nil and will be used for request cancellation. If
  14569. // the context is nil a panic will occur. In the future the SDK may create
  14570. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14571. // for more information on using Contexts.
  14572. func (c *EC2) ModifyImageAttributeWithContext(ctx aws.Context, input *ModifyImageAttributeInput, opts ...request.Option) (*ModifyImageAttributeOutput, error) {
  14573. req, out := c.ModifyImageAttributeRequest(input)
  14574. req.SetContext(ctx)
  14575. req.ApplyOptions(opts...)
  14576. return out, req.Send()
  14577. }
  14578. const opModifyInstanceAttribute = "ModifyInstanceAttribute"
  14579. // ModifyInstanceAttributeRequest generates a "aws/request.Request" representing the
  14580. // client's request for the ModifyInstanceAttribute operation. The "output" return
  14581. // value can be used to capture response data after the request's "Send" method
  14582. // is called.
  14583. //
  14584. // See ModifyInstanceAttribute for usage and error information.
  14585. //
  14586. // Creating a request object using this method should be used when you want to inject
  14587. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14588. // access properties on the request object before or after sending the request. If
  14589. // you just want the service response, call the ModifyInstanceAttribute method directly
  14590. // instead.
  14591. //
  14592. // Note: You must call the "Send" method on the returned request object in order
  14593. // to execute the request.
  14594. //
  14595. // // Example sending a request using the ModifyInstanceAttributeRequest method.
  14596. // req, resp := client.ModifyInstanceAttributeRequest(params)
  14597. //
  14598. // err := req.Send()
  14599. // if err == nil { // resp is now filled
  14600. // fmt.Println(resp)
  14601. // }
  14602. //
  14603. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  14604. func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput) (req *request.Request, output *ModifyInstanceAttributeOutput) {
  14605. op := &request.Operation{
  14606. Name: opModifyInstanceAttribute,
  14607. HTTPMethod: "POST",
  14608. HTTPPath: "/",
  14609. }
  14610. if input == nil {
  14611. input = &ModifyInstanceAttributeInput{}
  14612. }
  14613. output = &ModifyInstanceAttributeOutput{}
  14614. req = c.newRequest(op, input, output)
  14615. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14616. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14617. return
  14618. }
  14619. // ModifyInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  14620. //
  14621. // Modifies the specified attribute of the specified instance. You can specify
  14622. // only one attribute at a time.
  14623. //
  14624. // To modify some attributes, the instance must be stopped. For more information,
  14625. // see Modifying Attributes of a Stopped Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html)
  14626. // in the Amazon Elastic Compute Cloud User Guide.
  14627. //
  14628. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14629. // with awserr.Error's Code and Message methods to get detailed information about
  14630. // the error.
  14631. //
  14632. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14633. // API operation ModifyInstanceAttribute for usage and error information.
  14634. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  14635. func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) {
  14636. req, out := c.ModifyInstanceAttributeRequest(input)
  14637. return out, req.Send()
  14638. }
  14639. // ModifyInstanceAttributeWithContext is the same as ModifyInstanceAttribute with the addition of
  14640. // the ability to pass a context and additional request options.
  14641. //
  14642. // See ModifyInstanceAttribute for details on how to use this API operation.
  14643. //
  14644. // The context must be non-nil and will be used for request cancellation. If
  14645. // the context is nil a panic will occur. In the future the SDK may create
  14646. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14647. // for more information on using Contexts.
  14648. func (c *EC2) ModifyInstanceAttributeWithContext(ctx aws.Context, input *ModifyInstanceAttributeInput, opts ...request.Option) (*ModifyInstanceAttributeOutput, error) {
  14649. req, out := c.ModifyInstanceAttributeRequest(input)
  14650. req.SetContext(ctx)
  14651. req.ApplyOptions(opts...)
  14652. return out, req.Send()
  14653. }
  14654. const opModifyInstancePlacement = "ModifyInstancePlacement"
  14655. // ModifyInstancePlacementRequest generates a "aws/request.Request" representing the
  14656. // client's request for the ModifyInstancePlacement operation. The "output" return
  14657. // value can be used to capture response data after the request's "Send" method
  14658. // is called.
  14659. //
  14660. // See ModifyInstancePlacement for usage and error information.
  14661. //
  14662. // Creating a request object using this method should be used when you want to inject
  14663. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14664. // access properties on the request object before or after sending the request. If
  14665. // you just want the service response, call the ModifyInstancePlacement method directly
  14666. // instead.
  14667. //
  14668. // Note: You must call the "Send" method on the returned request object in order
  14669. // to execute the request.
  14670. //
  14671. // // Example sending a request using the ModifyInstancePlacementRequest method.
  14672. // req, resp := client.ModifyInstancePlacementRequest(params)
  14673. //
  14674. // err := req.Send()
  14675. // if err == nil { // resp is now filled
  14676. // fmt.Println(resp)
  14677. // }
  14678. //
  14679. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  14680. func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) (req *request.Request, output *ModifyInstancePlacementOutput) {
  14681. op := &request.Operation{
  14682. Name: opModifyInstancePlacement,
  14683. HTTPMethod: "POST",
  14684. HTTPPath: "/",
  14685. }
  14686. if input == nil {
  14687. input = &ModifyInstancePlacementInput{}
  14688. }
  14689. output = &ModifyInstancePlacementOutput{}
  14690. req = c.newRequest(op, input, output)
  14691. return
  14692. }
  14693. // ModifyInstancePlacement API operation for Amazon Elastic Compute Cloud.
  14694. //
  14695. // Set the instance affinity value for a specific stopped instance and modify
  14696. // the instance tenancy setting.
  14697. //
  14698. // Instance affinity is disabled by default. When instance affinity is host
  14699. // and it is not associated with a specific Dedicated Host, the next time it
  14700. // is launched it will automatically be associated with the host it lands on.
  14701. // This relationship will persist if the instance is stopped/started, or rebooted.
  14702. //
  14703. // You can modify the host ID associated with a stopped instance. If a stopped
  14704. // instance has a new host ID association, the instance will target that host
  14705. // when restarted.
  14706. //
  14707. // You can modify the tenancy of a stopped instance with a tenancy of host or
  14708. // dedicated.
  14709. //
  14710. // Affinity, hostID, and tenancy are not required parameters, but at least one
  14711. // of them must be specified in the request. Affinity and tenancy can be modified
  14712. // in the same request, but tenancy can only be modified on instances that are
  14713. // stopped.
  14714. //
  14715. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14716. // with awserr.Error's Code and Message methods to get detailed information about
  14717. // the error.
  14718. //
  14719. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14720. // API operation ModifyInstancePlacement for usage and error information.
  14721. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  14722. func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) {
  14723. req, out := c.ModifyInstancePlacementRequest(input)
  14724. return out, req.Send()
  14725. }
  14726. // ModifyInstancePlacementWithContext is the same as ModifyInstancePlacement with the addition of
  14727. // the ability to pass a context and additional request options.
  14728. //
  14729. // See ModifyInstancePlacement for details on how to use this API operation.
  14730. //
  14731. // The context must be non-nil and will be used for request cancellation. If
  14732. // the context is nil a panic will occur. In the future the SDK may create
  14733. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14734. // for more information on using Contexts.
  14735. func (c *EC2) ModifyInstancePlacementWithContext(ctx aws.Context, input *ModifyInstancePlacementInput, opts ...request.Option) (*ModifyInstancePlacementOutput, error) {
  14736. req, out := c.ModifyInstancePlacementRequest(input)
  14737. req.SetContext(ctx)
  14738. req.ApplyOptions(opts...)
  14739. return out, req.Send()
  14740. }
  14741. const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute"
  14742. // ModifyNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  14743. // client's request for the ModifyNetworkInterfaceAttribute operation. The "output" return
  14744. // value can be used to capture response data after the request's "Send" method
  14745. // is called.
  14746. //
  14747. // See ModifyNetworkInterfaceAttribute for usage and error information.
  14748. //
  14749. // Creating a request object using this method should be used when you want to inject
  14750. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14751. // access properties on the request object before or after sending the request. If
  14752. // you just want the service response, call the ModifyNetworkInterfaceAttribute method directly
  14753. // instead.
  14754. //
  14755. // Note: You must call the "Send" method on the returned request object in order
  14756. // to execute the request.
  14757. //
  14758. // // Example sending a request using the ModifyNetworkInterfaceAttributeRequest method.
  14759. // req, resp := client.ModifyNetworkInterfaceAttributeRequest(params)
  14760. //
  14761. // err := req.Send()
  14762. // if err == nil { // resp is now filled
  14763. // fmt.Println(resp)
  14764. // }
  14765. //
  14766. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  14767. func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfaceAttributeInput) (req *request.Request, output *ModifyNetworkInterfaceAttributeOutput) {
  14768. op := &request.Operation{
  14769. Name: opModifyNetworkInterfaceAttribute,
  14770. HTTPMethod: "POST",
  14771. HTTPPath: "/",
  14772. }
  14773. if input == nil {
  14774. input = &ModifyNetworkInterfaceAttributeInput{}
  14775. }
  14776. output = &ModifyNetworkInterfaceAttributeOutput{}
  14777. req = c.newRequest(op, input, output)
  14778. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14779. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14780. return
  14781. }
  14782. // ModifyNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  14783. //
  14784. // Modifies the specified network interface attribute. You can specify only
  14785. // one attribute at a time.
  14786. //
  14787. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14788. // with awserr.Error's Code and Message methods to get detailed information about
  14789. // the error.
  14790. //
  14791. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14792. // API operation ModifyNetworkInterfaceAttribute for usage and error information.
  14793. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  14794. func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) {
  14795. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  14796. return out, req.Send()
  14797. }
  14798. // ModifyNetworkInterfaceAttributeWithContext is the same as ModifyNetworkInterfaceAttribute with the addition of
  14799. // the ability to pass a context and additional request options.
  14800. //
  14801. // See ModifyNetworkInterfaceAttribute for details on how to use this API operation.
  14802. //
  14803. // The context must be non-nil and will be used for request cancellation. If
  14804. // the context is nil a panic will occur. In the future the SDK may create
  14805. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14806. // for more information on using Contexts.
  14807. func (c *EC2) ModifyNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ModifyNetworkInterfaceAttributeInput, opts ...request.Option) (*ModifyNetworkInterfaceAttributeOutput, error) {
  14808. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  14809. req.SetContext(ctx)
  14810. req.ApplyOptions(opts...)
  14811. return out, req.Send()
  14812. }
  14813. const opModifyReservedInstances = "ModifyReservedInstances"
  14814. // ModifyReservedInstancesRequest generates a "aws/request.Request" representing the
  14815. // client's request for the ModifyReservedInstances operation. The "output" return
  14816. // value can be used to capture response data after the request's "Send" method
  14817. // is called.
  14818. //
  14819. // See ModifyReservedInstances for usage and error information.
  14820. //
  14821. // Creating a request object using this method should be used when you want to inject
  14822. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14823. // access properties on the request object before or after sending the request. If
  14824. // you just want the service response, call the ModifyReservedInstances method directly
  14825. // instead.
  14826. //
  14827. // Note: You must call the "Send" method on the returned request object in order
  14828. // to execute the request.
  14829. //
  14830. // // Example sending a request using the ModifyReservedInstancesRequest method.
  14831. // req, resp := client.ModifyReservedInstancesRequest(params)
  14832. //
  14833. // err := req.Send()
  14834. // if err == nil { // resp is now filled
  14835. // fmt.Println(resp)
  14836. // }
  14837. //
  14838. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  14839. func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput) (req *request.Request, output *ModifyReservedInstancesOutput) {
  14840. op := &request.Operation{
  14841. Name: opModifyReservedInstances,
  14842. HTTPMethod: "POST",
  14843. HTTPPath: "/",
  14844. }
  14845. if input == nil {
  14846. input = &ModifyReservedInstancesInput{}
  14847. }
  14848. output = &ModifyReservedInstancesOutput{}
  14849. req = c.newRequest(op, input, output)
  14850. return
  14851. }
  14852. // ModifyReservedInstances API operation for Amazon Elastic Compute Cloud.
  14853. //
  14854. // Modifies the Availability Zone, instance count, instance type, or network
  14855. // platform (EC2-Classic or EC2-VPC) of your Standard Reserved Instances. The
  14856. // Reserved Instances to be modified must be identical, except for Availability
  14857. // Zone, network platform, and instance type.
  14858. //
  14859. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  14860. // in the Amazon Elastic Compute Cloud User Guide.
  14861. //
  14862. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14863. // with awserr.Error's Code and Message methods to get detailed information about
  14864. // the error.
  14865. //
  14866. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14867. // API operation ModifyReservedInstances for usage and error information.
  14868. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  14869. func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) {
  14870. req, out := c.ModifyReservedInstancesRequest(input)
  14871. return out, req.Send()
  14872. }
  14873. // ModifyReservedInstancesWithContext is the same as ModifyReservedInstances with the addition of
  14874. // the ability to pass a context and additional request options.
  14875. //
  14876. // See ModifyReservedInstances for details on how to use this API operation.
  14877. //
  14878. // The context must be non-nil and will be used for request cancellation. If
  14879. // the context is nil a panic will occur. In the future the SDK may create
  14880. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14881. // for more information on using Contexts.
  14882. func (c *EC2) ModifyReservedInstancesWithContext(ctx aws.Context, input *ModifyReservedInstancesInput, opts ...request.Option) (*ModifyReservedInstancesOutput, error) {
  14883. req, out := c.ModifyReservedInstancesRequest(input)
  14884. req.SetContext(ctx)
  14885. req.ApplyOptions(opts...)
  14886. return out, req.Send()
  14887. }
  14888. const opModifySnapshotAttribute = "ModifySnapshotAttribute"
  14889. // ModifySnapshotAttributeRequest generates a "aws/request.Request" representing the
  14890. // client's request for the ModifySnapshotAttribute operation. The "output" return
  14891. // value can be used to capture response data after the request's "Send" method
  14892. // is called.
  14893. //
  14894. // See ModifySnapshotAttribute for usage and error information.
  14895. //
  14896. // Creating a request object using this method should be used when you want to inject
  14897. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14898. // access properties on the request object before or after sending the request. If
  14899. // you just want the service response, call the ModifySnapshotAttribute method directly
  14900. // instead.
  14901. //
  14902. // Note: You must call the "Send" method on the returned request object in order
  14903. // to execute the request.
  14904. //
  14905. // // Example sending a request using the ModifySnapshotAttributeRequest method.
  14906. // req, resp := client.ModifySnapshotAttributeRequest(params)
  14907. //
  14908. // err := req.Send()
  14909. // if err == nil { // resp is now filled
  14910. // fmt.Println(resp)
  14911. // }
  14912. //
  14913. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  14914. func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput) (req *request.Request, output *ModifySnapshotAttributeOutput) {
  14915. op := &request.Operation{
  14916. Name: opModifySnapshotAttribute,
  14917. HTTPMethod: "POST",
  14918. HTTPPath: "/",
  14919. }
  14920. if input == nil {
  14921. input = &ModifySnapshotAttributeInput{}
  14922. }
  14923. output = &ModifySnapshotAttributeOutput{}
  14924. req = c.newRequest(op, input, output)
  14925. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14926. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14927. return
  14928. }
  14929. // ModifySnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  14930. //
  14931. // Adds or removes permission settings for the specified snapshot. You may add
  14932. // or remove specified AWS account IDs from a snapshot's list of create volume
  14933. // permissions, but you cannot do both in a single API call. If you need to
  14934. // both add and remove account IDs for a snapshot, you must use multiple API
  14935. // calls.
  14936. //
  14937. // Encrypted snapshots and snapshots with AWS Marketplace product codes cannot
  14938. // be made public. Snapshots encrypted with your default CMK cannot be shared
  14939. // with other accounts.
  14940. //
  14941. // For more information on modifying snapshot permissions, see Sharing Snapshots
  14942. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  14943. // in the Amazon Elastic Compute Cloud User Guide.
  14944. //
  14945. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14946. // with awserr.Error's Code and Message methods to get detailed information about
  14947. // the error.
  14948. //
  14949. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14950. // API operation ModifySnapshotAttribute for usage and error information.
  14951. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  14952. func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) {
  14953. req, out := c.ModifySnapshotAttributeRequest(input)
  14954. return out, req.Send()
  14955. }
  14956. // ModifySnapshotAttributeWithContext is the same as ModifySnapshotAttribute with the addition of
  14957. // the ability to pass a context and additional request options.
  14958. //
  14959. // See ModifySnapshotAttribute for details on how to use this API operation.
  14960. //
  14961. // The context must be non-nil and will be used for request cancellation. If
  14962. // the context is nil a panic will occur. In the future the SDK may create
  14963. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14964. // for more information on using Contexts.
  14965. func (c *EC2) ModifySnapshotAttributeWithContext(ctx aws.Context, input *ModifySnapshotAttributeInput, opts ...request.Option) (*ModifySnapshotAttributeOutput, error) {
  14966. req, out := c.ModifySnapshotAttributeRequest(input)
  14967. req.SetContext(ctx)
  14968. req.ApplyOptions(opts...)
  14969. return out, req.Send()
  14970. }
  14971. const opModifySpotFleetRequest = "ModifySpotFleetRequest"
  14972. // ModifySpotFleetRequestRequest generates a "aws/request.Request" representing the
  14973. // client's request for the ModifySpotFleetRequest operation. The "output" return
  14974. // value can be used to capture response data after the request's "Send" method
  14975. // is called.
  14976. //
  14977. // See ModifySpotFleetRequest for usage and error information.
  14978. //
  14979. // Creating a request object using this method should be used when you want to inject
  14980. // custom logic into the request's lifecycle using a custom handler, or if you want to
  14981. // access properties on the request object before or after sending the request. If
  14982. // you just want the service response, call the ModifySpotFleetRequest method directly
  14983. // instead.
  14984. //
  14985. // Note: You must call the "Send" method on the returned request object in order
  14986. // to execute the request.
  14987. //
  14988. // // Example sending a request using the ModifySpotFleetRequestRequest method.
  14989. // req, resp := client.ModifySpotFleetRequestRequest(params)
  14990. //
  14991. // err := req.Send()
  14992. // if err == nil { // resp is now filled
  14993. // fmt.Println(resp)
  14994. // }
  14995. //
  14996. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  14997. func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) (req *request.Request, output *ModifySpotFleetRequestOutput) {
  14998. op := &request.Operation{
  14999. Name: opModifySpotFleetRequest,
  15000. HTTPMethod: "POST",
  15001. HTTPPath: "/",
  15002. }
  15003. if input == nil {
  15004. input = &ModifySpotFleetRequestInput{}
  15005. }
  15006. output = &ModifySpotFleetRequestOutput{}
  15007. req = c.newRequest(op, input, output)
  15008. return
  15009. }
  15010. // ModifySpotFleetRequest API operation for Amazon Elastic Compute Cloud.
  15011. //
  15012. // Modifies the specified Spot fleet request.
  15013. //
  15014. // While the Spot fleet request is being modified, it is in the modifying state.
  15015. //
  15016. // To scale up your Spot fleet, increase its target capacity. The Spot fleet
  15017. // launches the additional Spot instances according to the allocation strategy
  15018. // for the Spot fleet request. If the allocation strategy is lowestPrice, the
  15019. // Spot fleet launches instances using the Spot pool with the lowest price.
  15020. // If the allocation strategy is diversified, the Spot fleet distributes the
  15021. // instances across the Spot pools.
  15022. //
  15023. // To scale down your Spot fleet, decrease its target capacity. First, the Spot
  15024. // fleet cancels any open bids that exceed the new target capacity. You can
  15025. // request that the Spot fleet terminate Spot instances until the size of the
  15026. // fleet no longer exceeds the new target capacity. If the allocation strategy
  15027. // is lowestPrice, the Spot fleet terminates the instances with the highest
  15028. // price per unit. If the allocation strategy is diversified, the Spot fleet
  15029. // terminates instances across the Spot pools. Alternatively, you can request
  15030. // that the Spot fleet keep the fleet at its current size, but not replace any
  15031. // Spot instances that are interrupted or that you terminate manually.
  15032. //
  15033. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15034. // with awserr.Error's Code and Message methods to get detailed information about
  15035. // the error.
  15036. //
  15037. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15038. // API operation ModifySpotFleetRequest for usage and error information.
  15039. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  15040. func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) {
  15041. req, out := c.ModifySpotFleetRequestRequest(input)
  15042. return out, req.Send()
  15043. }
  15044. // ModifySpotFleetRequestWithContext is the same as ModifySpotFleetRequest with the addition of
  15045. // the ability to pass a context and additional request options.
  15046. //
  15047. // See ModifySpotFleetRequest for details on how to use this API operation.
  15048. //
  15049. // The context must be non-nil and will be used for request cancellation. If
  15050. // the context is nil a panic will occur. In the future the SDK may create
  15051. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15052. // for more information on using Contexts.
  15053. func (c *EC2) ModifySpotFleetRequestWithContext(ctx aws.Context, input *ModifySpotFleetRequestInput, opts ...request.Option) (*ModifySpotFleetRequestOutput, error) {
  15054. req, out := c.ModifySpotFleetRequestRequest(input)
  15055. req.SetContext(ctx)
  15056. req.ApplyOptions(opts...)
  15057. return out, req.Send()
  15058. }
  15059. const opModifySubnetAttribute = "ModifySubnetAttribute"
  15060. // ModifySubnetAttributeRequest generates a "aws/request.Request" representing the
  15061. // client's request for the ModifySubnetAttribute operation. The "output" return
  15062. // value can be used to capture response data after the request's "Send" method
  15063. // is called.
  15064. //
  15065. // See ModifySubnetAttribute for usage and error information.
  15066. //
  15067. // Creating a request object using this method should be used when you want to inject
  15068. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15069. // access properties on the request object before or after sending the request. If
  15070. // you just want the service response, call the ModifySubnetAttribute method directly
  15071. // instead.
  15072. //
  15073. // Note: You must call the "Send" method on the returned request object in order
  15074. // to execute the request.
  15075. //
  15076. // // Example sending a request using the ModifySubnetAttributeRequest method.
  15077. // req, resp := client.ModifySubnetAttributeRequest(params)
  15078. //
  15079. // err := req.Send()
  15080. // if err == nil { // resp is now filled
  15081. // fmt.Println(resp)
  15082. // }
  15083. //
  15084. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  15085. func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (req *request.Request, output *ModifySubnetAttributeOutput) {
  15086. op := &request.Operation{
  15087. Name: opModifySubnetAttribute,
  15088. HTTPMethod: "POST",
  15089. HTTPPath: "/",
  15090. }
  15091. if input == nil {
  15092. input = &ModifySubnetAttributeInput{}
  15093. }
  15094. output = &ModifySubnetAttributeOutput{}
  15095. req = c.newRequest(op, input, output)
  15096. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  15097. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  15098. return
  15099. }
  15100. // ModifySubnetAttribute API operation for Amazon Elastic Compute Cloud.
  15101. //
  15102. // Modifies a subnet attribute. You can only modify one attribute at a time.
  15103. //
  15104. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15105. // with awserr.Error's Code and Message methods to get detailed information about
  15106. // the error.
  15107. //
  15108. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15109. // API operation ModifySubnetAttribute for usage and error information.
  15110. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  15111. func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) {
  15112. req, out := c.ModifySubnetAttributeRequest(input)
  15113. return out, req.Send()
  15114. }
  15115. // ModifySubnetAttributeWithContext is the same as ModifySubnetAttribute with the addition of
  15116. // the ability to pass a context and additional request options.
  15117. //
  15118. // See ModifySubnetAttribute for details on how to use this API operation.
  15119. //
  15120. // The context must be non-nil and will be used for request cancellation. If
  15121. // the context is nil a panic will occur. In the future the SDK may create
  15122. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15123. // for more information on using Contexts.
  15124. func (c *EC2) ModifySubnetAttributeWithContext(ctx aws.Context, input *ModifySubnetAttributeInput, opts ...request.Option) (*ModifySubnetAttributeOutput, error) {
  15125. req, out := c.ModifySubnetAttributeRequest(input)
  15126. req.SetContext(ctx)
  15127. req.ApplyOptions(opts...)
  15128. return out, req.Send()
  15129. }
  15130. const opModifyVolume = "ModifyVolume"
  15131. // ModifyVolumeRequest generates a "aws/request.Request" representing the
  15132. // client's request for the ModifyVolume operation. The "output" return
  15133. // value can be used to capture response data after the request's "Send" method
  15134. // is called.
  15135. //
  15136. // See ModifyVolume for usage and error information.
  15137. //
  15138. // Creating a request object using this method should be used when you want to inject
  15139. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15140. // access properties on the request object before or after sending the request. If
  15141. // you just want the service response, call the ModifyVolume method directly
  15142. // instead.
  15143. //
  15144. // Note: You must call the "Send" method on the returned request object in order
  15145. // to execute the request.
  15146. //
  15147. // // Example sending a request using the ModifyVolumeRequest method.
  15148. // req, resp := client.ModifyVolumeRequest(params)
  15149. //
  15150. // err := req.Send()
  15151. // if err == nil { // resp is now filled
  15152. // fmt.Println(resp)
  15153. // }
  15154. //
  15155. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  15156. func (c *EC2) ModifyVolumeRequest(input *ModifyVolumeInput) (req *request.Request, output *ModifyVolumeOutput) {
  15157. op := &request.Operation{
  15158. Name: opModifyVolume,
  15159. HTTPMethod: "POST",
  15160. HTTPPath: "/",
  15161. }
  15162. if input == nil {
  15163. input = &ModifyVolumeInput{}
  15164. }
  15165. output = &ModifyVolumeOutput{}
  15166. req = c.newRequest(op, input, output)
  15167. return
  15168. }
  15169. // ModifyVolume API operation for Amazon Elastic Compute Cloud.
  15170. //
  15171. // You can modify several parameters of an existing EBS volume, including volume
  15172. // size, volume type, and IOPS capacity. If your EBS volume is attached to a
  15173. // current-generation EC2 instance type, you may be able to apply these changes
  15174. // without stopping the instance or detaching the volume from it. For more information
  15175. // about modifying an EBS volume running Linux, see Modifying the Size, IOPS,
  15176. // or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html).
  15177. // For more information about modifying an EBS volume running Windows, see Modifying
  15178. // the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  15179. //
  15180. // When you complete a resize operation on your volume, you need to extend the
  15181. // volume's file-system size to take advantage of the new storage capacity.
  15182. // For information about extending a Linux file system, see Extending a Linux
  15183. // File System (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux).
  15184. // For information about extending a Windows file system, see Extending a Windows
  15185. // File System (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows).
  15186. //
  15187. // You can use CloudWatch Events to check the status of a modification to an
  15188. // EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch
  15189. // Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  15190. // You can also track the status of a modification using the DescribeVolumesModifications
  15191. // API. For information about tracking status changes using either method, see
  15192. // Monitoring Volume Modifications (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).
  15193. //
  15194. // With previous-generation instance types, resizing an EBS volume may require
  15195. // detaching and reattaching the volume or stopping and restarting the instance.
  15196. // For more information about modifying an EBS volume running Linux, see Modifying
  15197. // the Size, IOPS, or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html).
  15198. // For more information about modifying an EBS volume running Windows, see Modifying
  15199. // the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  15200. //
  15201. // If you reach the maximum volume modification rate per volume limit, you will
  15202. // need to wait at least six hours before applying further modifications to
  15203. // the affected EBS volume.
  15204. //
  15205. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15206. // with awserr.Error's Code and Message methods to get detailed information about
  15207. // the error.
  15208. //
  15209. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15210. // API operation ModifyVolume for usage and error information.
  15211. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  15212. func (c *EC2) ModifyVolume(input *ModifyVolumeInput) (*ModifyVolumeOutput, error) {
  15213. req, out := c.ModifyVolumeRequest(input)
  15214. return out, req.Send()
  15215. }
  15216. // ModifyVolumeWithContext is the same as ModifyVolume with the addition of
  15217. // the ability to pass a context and additional request options.
  15218. //
  15219. // See ModifyVolume for details on how to use this API operation.
  15220. //
  15221. // The context must be non-nil and will be used for request cancellation. If
  15222. // the context is nil a panic will occur. In the future the SDK may create
  15223. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15224. // for more information on using Contexts.
  15225. func (c *EC2) ModifyVolumeWithContext(ctx aws.Context, input *ModifyVolumeInput, opts ...request.Option) (*ModifyVolumeOutput, error) {
  15226. req, out := c.ModifyVolumeRequest(input)
  15227. req.SetContext(ctx)
  15228. req.ApplyOptions(opts...)
  15229. return out, req.Send()
  15230. }
  15231. const opModifyVolumeAttribute = "ModifyVolumeAttribute"
  15232. // ModifyVolumeAttributeRequest generates a "aws/request.Request" representing the
  15233. // client's request for the ModifyVolumeAttribute operation. The "output" return
  15234. // value can be used to capture response data after the request's "Send" method
  15235. // is called.
  15236. //
  15237. // See ModifyVolumeAttribute for usage and error information.
  15238. //
  15239. // Creating a request object using this method should be used when you want to inject
  15240. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15241. // access properties on the request object before or after sending the request. If
  15242. // you just want the service response, call the ModifyVolumeAttribute method directly
  15243. // instead.
  15244. //
  15245. // Note: You must call the "Send" method on the returned request object in order
  15246. // to execute the request.
  15247. //
  15248. // // Example sending a request using the ModifyVolumeAttributeRequest method.
  15249. // req, resp := client.ModifyVolumeAttributeRequest(params)
  15250. //
  15251. // err := req.Send()
  15252. // if err == nil { // resp is now filled
  15253. // fmt.Println(resp)
  15254. // }
  15255. //
  15256. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  15257. func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (req *request.Request, output *ModifyVolumeAttributeOutput) {
  15258. op := &request.Operation{
  15259. Name: opModifyVolumeAttribute,
  15260. HTTPMethod: "POST",
  15261. HTTPPath: "/",
  15262. }
  15263. if input == nil {
  15264. input = &ModifyVolumeAttributeInput{}
  15265. }
  15266. output = &ModifyVolumeAttributeOutput{}
  15267. req = c.newRequest(op, input, output)
  15268. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  15269. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  15270. return
  15271. }
  15272. // ModifyVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  15273. //
  15274. // Modifies a volume attribute.
  15275. //
  15276. // By default, all I/O operations for the volume are suspended when the data
  15277. // on the volume is determined to be potentially inconsistent, to prevent undetectable,
  15278. // latent data corruption. The I/O access to the volume can be resumed by first
  15279. // enabling I/O access and then checking the data consistency on your volume.
  15280. //
  15281. // You can change the default behavior to resume I/O operations. We recommend
  15282. // that you change this only for boot volumes or for volumes that are stateless
  15283. // or disposable.
  15284. //
  15285. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15286. // with awserr.Error's Code and Message methods to get detailed information about
  15287. // the error.
  15288. //
  15289. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15290. // API operation ModifyVolumeAttribute for usage and error information.
  15291. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  15292. func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) {
  15293. req, out := c.ModifyVolumeAttributeRequest(input)
  15294. return out, req.Send()
  15295. }
  15296. // ModifyVolumeAttributeWithContext is the same as ModifyVolumeAttribute with the addition of
  15297. // the ability to pass a context and additional request options.
  15298. //
  15299. // See ModifyVolumeAttribute for details on how to use this API operation.
  15300. //
  15301. // The context must be non-nil and will be used for request cancellation. If
  15302. // the context is nil a panic will occur. In the future the SDK may create
  15303. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15304. // for more information on using Contexts.
  15305. func (c *EC2) ModifyVolumeAttributeWithContext(ctx aws.Context, input *ModifyVolumeAttributeInput, opts ...request.Option) (*ModifyVolumeAttributeOutput, error) {
  15306. req, out := c.ModifyVolumeAttributeRequest(input)
  15307. req.SetContext(ctx)
  15308. req.ApplyOptions(opts...)
  15309. return out, req.Send()
  15310. }
  15311. const opModifyVpcAttribute = "ModifyVpcAttribute"
  15312. // ModifyVpcAttributeRequest generates a "aws/request.Request" representing the
  15313. // client's request for the ModifyVpcAttribute operation. The "output" return
  15314. // value can be used to capture response data after the request's "Send" method
  15315. // is called.
  15316. //
  15317. // See ModifyVpcAttribute for usage and error information.
  15318. //
  15319. // Creating a request object using this method should be used when you want to inject
  15320. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15321. // access properties on the request object before or after sending the request. If
  15322. // you just want the service response, call the ModifyVpcAttribute method directly
  15323. // instead.
  15324. //
  15325. // Note: You must call the "Send" method on the returned request object in order
  15326. // to execute the request.
  15327. //
  15328. // // Example sending a request using the ModifyVpcAttributeRequest method.
  15329. // req, resp := client.ModifyVpcAttributeRequest(params)
  15330. //
  15331. // err := req.Send()
  15332. // if err == nil { // resp is now filled
  15333. // fmt.Println(resp)
  15334. // }
  15335. //
  15336. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  15337. func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *request.Request, output *ModifyVpcAttributeOutput) {
  15338. op := &request.Operation{
  15339. Name: opModifyVpcAttribute,
  15340. HTTPMethod: "POST",
  15341. HTTPPath: "/",
  15342. }
  15343. if input == nil {
  15344. input = &ModifyVpcAttributeInput{}
  15345. }
  15346. output = &ModifyVpcAttributeOutput{}
  15347. req = c.newRequest(op, input, output)
  15348. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  15349. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  15350. return
  15351. }
  15352. // ModifyVpcAttribute API operation for Amazon Elastic Compute Cloud.
  15353. //
  15354. // Modifies the specified attribute of the specified VPC.
  15355. //
  15356. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15357. // with awserr.Error's Code and Message methods to get detailed information about
  15358. // the error.
  15359. //
  15360. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15361. // API operation ModifyVpcAttribute for usage and error information.
  15362. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  15363. func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) {
  15364. req, out := c.ModifyVpcAttributeRequest(input)
  15365. return out, req.Send()
  15366. }
  15367. // ModifyVpcAttributeWithContext is the same as ModifyVpcAttribute with the addition of
  15368. // the ability to pass a context and additional request options.
  15369. //
  15370. // See ModifyVpcAttribute for details on how to use this API operation.
  15371. //
  15372. // The context must be non-nil and will be used for request cancellation. If
  15373. // the context is nil a panic will occur. In the future the SDK may create
  15374. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15375. // for more information on using Contexts.
  15376. func (c *EC2) ModifyVpcAttributeWithContext(ctx aws.Context, input *ModifyVpcAttributeInput, opts ...request.Option) (*ModifyVpcAttributeOutput, error) {
  15377. req, out := c.ModifyVpcAttributeRequest(input)
  15378. req.SetContext(ctx)
  15379. req.ApplyOptions(opts...)
  15380. return out, req.Send()
  15381. }
  15382. const opModifyVpcEndpoint = "ModifyVpcEndpoint"
  15383. // ModifyVpcEndpointRequest generates a "aws/request.Request" representing the
  15384. // client's request for the ModifyVpcEndpoint operation. The "output" return
  15385. // value can be used to capture response data after the request's "Send" method
  15386. // is called.
  15387. //
  15388. // See ModifyVpcEndpoint for usage and error information.
  15389. //
  15390. // Creating a request object using this method should be used when you want to inject
  15391. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15392. // access properties on the request object before or after sending the request. If
  15393. // you just want the service response, call the ModifyVpcEndpoint method directly
  15394. // instead.
  15395. //
  15396. // Note: You must call the "Send" method on the returned request object in order
  15397. // to execute the request.
  15398. //
  15399. // // Example sending a request using the ModifyVpcEndpointRequest method.
  15400. // req, resp := client.ModifyVpcEndpointRequest(params)
  15401. //
  15402. // err := req.Send()
  15403. // if err == nil { // resp is now filled
  15404. // fmt.Println(resp)
  15405. // }
  15406. //
  15407. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  15408. func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *request.Request, output *ModifyVpcEndpointOutput) {
  15409. op := &request.Operation{
  15410. Name: opModifyVpcEndpoint,
  15411. HTTPMethod: "POST",
  15412. HTTPPath: "/",
  15413. }
  15414. if input == nil {
  15415. input = &ModifyVpcEndpointInput{}
  15416. }
  15417. output = &ModifyVpcEndpointOutput{}
  15418. req = c.newRequest(op, input, output)
  15419. return
  15420. }
  15421. // ModifyVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  15422. //
  15423. // Modifies attributes of a specified VPC endpoint. You can modify the policy
  15424. // associated with the endpoint, and you can add and remove route tables associated
  15425. // with the endpoint.
  15426. //
  15427. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15428. // with awserr.Error's Code and Message methods to get detailed information about
  15429. // the error.
  15430. //
  15431. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15432. // API operation ModifyVpcEndpoint for usage and error information.
  15433. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  15434. func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) {
  15435. req, out := c.ModifyVpcEndpointRequest(input)
  15436. return out, req.Send()
  15437. }
  15438. // ModifyVpcEndpointWithContext is the same as ModifyVpcEndpoint with the addition of
  15439. // the ability to pass a context and additional request options.
  15440. //
  15441. // See ModifyVpcEndpoint for details on how to use this API operation.
  15442. //
  15443. // The context must be non-nil and will be used for request cancellation. If
  15444. // the context is nil a panic will occur. In the future the SDK may create
  15445. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15446. // for more information on using Contexts.
  15447. func (c *EC2) ModifyVpcEndpointWithContext(ctx aws.Context, input *ModifyVpcEndpointInput, opts ...request.Option) (*ModifyVpcEndpointOutput, error) {
  15448. req, out := c.ModifyVpcEndpointRequest(input)
  15449. req.SetContext(ctx)
  15450. req.ApplyOptions(opts...)
  15451. return out, req.Send()
  15452. }
  15453. const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions"
  15454. // ModifyVpcPeeringConnectionOptionsRequest generates a "aws/request.Request" representing the
  15455. // client's request for the ModifyVpcPeeringConnectionOptions operation. The "output" return
  15456. // value can be used to capture response data after the request's "Send" method
  15457. // is called.
  15458. //
  15459. // See ModifyVpcPeeringConnectionOptions for usage and error information.
  15460. //
  15461. // Creating a request object using this method should be used when you want to inject
  15462. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15463. // access properties on the request object before or after sending the request. If
  15464. // you just want the service response, call the ModifyVpcPeeringConnectionOptions method directly
  15465. // instead.
  15466. //
  15467. // Note: You must call the "Send" method on the returned request object in order
  15468. // to execute the request.
  15469. //
  15470. // // Example sending a request using the ModifyVpcPeeringConnectionOptionsRequest method.
  15471. // req, resp := client.ModifyVpcPeeringConnectionOptionsRequest(params)
  15472. //
  15473. // err := req.Send()
  15474. // if err == nil { // resp is now filled
  15475. // fmt.Println(resp)
  15476. // }
  15477. //
  15478. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  15479. func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) (req *request.Request, output *ModifyVpcPeeringConnectionOptionsOutput) {
  15480. op := &request.Operation{
  15481. Name: opModifyVpcPeeringConnectionOptions,
  15482. HTTPMethod: "POST",
  15483. HTTPPath: "/",
  15484. }
  15485. if input == nil {
  15486. input = &ModifyVpcPeeringConnectionOptionsInput{}
  15487. }
  15488. output = &ModifyVpcPeeringConnectionOptionsOutput{}
  15489. req = c.newRequest(op, input, output)
  15490. return
  15491. }
  15492. // ModifyVpcPeeringConnectionOptions API operation for Amazon Elastic Compute Cloud.
  15493. //
  15494. // Modifies the VPC peering connection options on one side of a VPC peering
  15495. // connection. You can do the following:
  15496. //
  15497. // * Enable/disable communication over the peering connection between an
  15498. // EC2-Classic instance that's linked to your VPC (using ClassicLink) and
  15499. // instances in the peer VPC.
  15500. //
  15501. // * Enable/disable communication over the peering connection between instances
  15502. // in your VPC and an EC2-Classic instance that's linked to the peer VPC.
  15503. //
  15504. // * Enable/disable a local VPC to resolve public DNS hostnames to private
  15505. // IP addresses when queried from instances in the peer VPC.
  15506. //
  15507. // If the peered VPCs are in different accounts, each owner must initiate a
  15508. // separate request to modify the peering connection options, depending on whether
  15509. // their VPC was the requester or accepter for the VPC peering connection. If
  15510. // the peered VPCs are in the same account, you can modify the requester and
  15511. // accepter options in the same request. To confirm which VPC is the accepter
  15512. // and requester for a VPC peering connection, use the DescribeVpcPeeringConnections
  15513. // command.
  15514. //
  15515. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15516. // with awserr.Error's Code and Message methods to get detailed information about
  15517. // the error.
  15518. //
  15519. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15520. // API operation ModifyVpcPeeringConnectionOptions for usage and error information.
  15521. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  15522. func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  15523. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  15524. return out, req.Send()
  15525. }
  15526. // ModifyVpcPeeringConnectionOptionsWithContext is the same as ModifyVpcPeeringConnectionOptions with the addition of
  15527. // the ability to pass a context and additional request options.
  15528. //
  15529. // See ModifyVpcPeeringConnectionOptions for details on how to use this API operation.
  15530. //
  15531. // The context must be non-nil and will be used for request cancellation. If
  15532. // the context is nil a panic will occur. In the future the SDK may create
  15533. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15534. // for more information on using Contexts.
  15535. func (c *EC2) ModifyVpcPeeringConnectionOptionsWithContext(ctx aws.Context, input *ModifyVpcPeeringConnectionOptionsInput, opts ...request.Option) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  15536. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  15537. req.SetContext(ctx)
  15538. req.ApplyOptions(opts...)
  15539. return out, req.Send()
  15540. }
  15541. const opMonitorInstances = "MonitorInstances"
  15542. // MonitorInstancesRequest generates a "aws/request.Request" representing the
  15543. // client's request for the MonitorInstances operation. The "output" return
  15544. // value can be used to capture response data after the request's "Send" method
  15545. // is called.
  15546. //
  15547. // See MonitorInstances for usage and error information.
  15548. //
  15549. // Creating a request object using this method should be used when you want to inject
  15550. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15551. // access properties on the request object before or after sending the request. If
  15552. // you just want the service response, call the MonitorInstances method directly
  15553. // instead.
  15554. //
  15555. // Note: You must call the "Send" method on the returned request object in order
  15556. // to execute the request.
  15557. //
  15558. // // Example sending a request using the MonitorInstancesRequest method.
  15559. // req, resp := client.MonitorInstancesRequest(params)
  15560. //
  15561. // err := req.Send()
  15562. // if err == nil { // resp is now filled
  15563. // fmt.Println(resp)
  15564. // }
  15565. //
  15566. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  15567. func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *request.Request, output *MonitorInstancesOutput) {
  15568. op := &request.Operation{
  15569. Name: opMonitorInstances,
  15570. HTTPMethod: "POST",
  15571. HTTPPath: "/",
  15572. }
  15573. if input == nil {
  15574. input = &MonitorInstancesInput{}
  15575. }
  15576. output = &MonitorInstancesOutput{}
  15577. req = c.newRequest(op, input, output)
  15578. return
  15579. }
  15580. // MonitorInstances API operation for Amazon Elastic Compute Cloud.
  15581. //
  15582. // Enables detailed monitoring for a running instance. Otherwise, basic monitoring
  15583. // is enabled. For more information, see Monitoring Your Instances and Volumes
  15584. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  15585. // in the Amazon Elastic Compute Cloud User Guide.
  15586. //
  15587. // To disable detailed monitoring, see .
  15588. //
  15589. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15590. // with awserr.Error's Code and Message methods to get detailed information about
  15591. // the error.
  15592. //
  15593. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15594. // API operation MonitorInstances for usage and error information.
  15595. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  15596. func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) {
  15597. req, out := c.MonitorInstancesRequest(input)
  15598. return out, req.Send()
  15599. }
  15600. // MonitorInstancesWithContext is the same as MonitorInstances with the addition of
  15601. // the ability to pass a context and additional request options.
  15602. //
  15603. // See MonitorInstances for details on how to use this API operation.
  15604. //
  15605. // The context must be non-nil and will be used for request cancellation. If
  15606. // the context is nil a panic will occur. In the future the SDK may create
  15607. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15608. // for more information on using Contexts.
  15609. func (c *EC2) MonitorInstancesWithContext(ctx aws.Context, input *MonitorInstancesInput, opts ...request.Option) (*MonitorInstancesOutput, error) {
  15610. req, out := c.MonitorInstancesRequest(input)
  15611. req.SetContext(ctx)
  15612. req.ApplyOptions(opts...)
  15613. return out, req.Send()
  15614. }
  15615. const opMoveAddressToVpc = "MoveAddressToVpc"
  15616. // MoveAddressToVpcRequest generates a "aws/request.Request" representing the
  15617. // client's request for the MoveAddressToVpc operation. The "output" return
  15618. // value can be used to capture response data after the request's "Send" method
  15619. // is called.
  15620. //
  15621. // See MoveAddressToVpc for usage and error information.
  15622. //
  15623. // Creating a request object using this method should be used when you want to inject
  15624. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15625. // access properties on the request object before or after sending the request. If
  15626. // you just want the service response, call the MoveAddressToVpc method directly
  15627. // instead.
  15628. //
  15629. // Note: You must call the "Send" method on the returned request object in order
  15630. // to execute the request.
  15631. //
  15632. // // Example sending a request using the MoveAddressToVpcRequest method.
  15633. // req, resp := client.MoveAddressToVpcRequest(params)
  15634. //
  15635. // err := req.Send()
  15636. // if err == nil { // resp is now filled
  15637. // fmt.Println(resp)
  15638. // }
  15639. //
  15640. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  15641. func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *request.Request, output *MoveAddressToVpcOutput) {
  15642. op := &request.Operation{
  15643. Name: opMoveAddressToVpc,
  15644. HTTPMethod: "POST",
  15645. HTTPPath: "/",
  15646. }
  15647. if input == nil {
  15648. input = &MoveAddressToVpcInput{}
  15649. }
  15650. output = &MoveAddressToVpcOutput{}
  15651. req = c.newRequest(op, input, output)
  15652. return
  15653. }
  15654. // MoveAddressToVpc API operation for Amazon Elastic Compute Cloud.
  15655. //
  15656. // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC
  15657. // platform. The Elastic IP address must be allocated to your account for more
  15658. // than 24 hours, and it must not be associated with an instance. After the
  15659. // Elastic IP address is moved, it is no longer available for use in the EC2-Classic
  15660. // platform, unless you move it back using the RestoreAddressToClassic request.
  15661. // You cannot move an Elastic IP address that was originally allocated for use
  15662. // in the EC2-VPC platform to the EC2-Classic platform.
  15663. //
  15664. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15665. // with awserr.Error's Code and Message methods to get detailed information about
  15666. // the error.
  15667. //
  15668. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15669. // API operation MoveAddressToVpc for usage and error information.
  15670. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  15671. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) {
  15672. req, out := c.MoveAddressToVpcRequest(input)
  15673. return out, req.Send()
  15674. }
  15675. // MoveAddressToVpcWithContext is the same as MoveAddressToVpc with the addition of
  15676. // the ability to pass a context and additional request options.
  15677. //
  15678. // See MoveAddressToVpc for details on how to use this API operation.
  15679. //
  15680. // The context must be non-nil and will be used for request cancellation. If
  15681. // the context is nil a panic will occur. In the future the SDK may create
  15682. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15683. // for more information on using Contexts.
  15684. func (c *EC2) MoveAddressToVpcWithContext(ctx aws.Context, input *MoveAddressToVpcInput, opts ...request.Option) (*MoveAddressToVpcOutput, error) {
  15685. req, out := c.MoveAddressToVpcRequest(input)
  15686. req.SetContext(ctx)
  15687. req.ApplyOptions(opts...)
  15688. return out, req.Send()
  15689. }
  15690. const opPurchaseHostReservation = "PurchaseHostReservation"
  15691. // PurchaseHostReservationRequest generates a "aws/request.Request" representing the
  15692. // client's request for the PurchaseHostReservation operation. The "output" return
  15693. // value can be used to capture response data after the request's "Send" method
  15694. // is called.
  15695. //
  15696. // See PurchaseHostReservation for usage and error information.
  15697. //
  15698. // Creating a request object using this method should be used when you want to inject
  15699. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15700. // access properties on the request object before or after sending the request. If
  15701. // you just want the service response, call the PurchaseHostReservation method directly
  15702. // instead.
  15703. //
  15704. // Note: You must call the "Send" method on the returned request object in order
  15705. // to execute the request.
  15706. //
  15707. // // Example sending a request using the PurchaseHostReservationRequest method.
  15708. // req, resp := client.PurchaseHostReservationRequest(params)
  15709. //
  15710. // err := req.Send()
  15711. // if err == nil { // resp is now filled
  15712. // fmt.Println(resp)
  15713. // }
  15714. //
  15715. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  15716. func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput) (req *request.Request, output *PurchaseHostReservationOutput) {
  15717. op := &request.Operation{
  15718. Name: opPurchaseHostReservation,
  15719. HTTPMethod: "POST",
  15720. HTTPPath: "/",
  15721. }
  15722. if input == nil {
  15723. input = &PurchaseHostReservationInput{}
  15724. }
  15725. output = &PurchaseHostReservationOutput{}
  15726. req = c.newRequest(op, input, output)
  15727. return
  15728. }
  15729. // PurchaseHostReservation API operation for Amazon Elastic Compute Cloud.
  15730. //
  15731. // Purchase a reservation with configurations that match those of your Dedicated
  15732. // Host. You must have active Dedicated Hosts in your account before you purchase
  15733. // a reservation. This action results in the specified reservation being purchased
  15734. // and charged to your account.
  15735. //
  15736. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15737. // with awserr.Error's Code and Message methods to get detailed information about
  15738. // the error.
  15739. //
  15740. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15741. // API operation PurchaseHostReservation for usage and error information.
  15742. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  15743. func (c *EC2) PurchaseHostReservation(input *PurchaseHostReservationInput) (*PurchaseHostReservationOutput, error) {
  15744. req, out := c.PurchaseHostReservationRequest(input)
  15745. return out, req.Send()
  15746. }
  15747. // PurchaseHostReservationWithContext is the same as PurchaseHostReservation with the addition of
  15748. // the ability to pass a context and additional request options.
  15749. //
  15750. // See PurchaseHostReservation for details on how to use this API operation.
  15751. //
  15752. // The context must be non-nil and will be used for request cancellation. If
  15753. // the context is nil a panic will occur. In the future the SDK may create
  15754. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15755. // for more information on using Contexts.
  15756. func (c *EC2) PurchaseHostReservationWithContext(ctx aws.Context, input *PurchaseHostReservationInput, opts ...request.Option) (*PurchaseHostReservationOutput, error) {
  15757. req, out := c.PurchaseHostReservationRequest(input)
  15758. req.SetContext(ctx)
  15759. req.ApplyOptions(opts...)
  15760. return out, req.Send()
  15761. }
  15762. const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering"
  15763. // PurchaseReservedInstancesOfferingRequest generates a "aws/request.Request" representing the
  15764. // client's request for the PurchaseReservedInstancesOffering operation. The "output" return
  15765. // value can be used to capture response data after the request's "Send" method
  15766. // is called.
  15767. //
  15768. // See PurchaseReservedInstancesOffering for usage and error information.
  15769. //
  15770. // Creating a request object using this method should be used when you want to inject
  15771. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15772. // access properties on the request object before or after sending the request. If
  15773. // you just want the service response, call the PurchaseReservedInstancesOffering method directly
  15774. // instead.
  15775. //
  15776. // Note: You must call the "Send" method on the returned request object in order
  15777. // to execute the request.
  15778. //
  15779. // // Example sending a request using the PurchaseReservedInstancesOfferingRequest method.
  15780. // req, resp := client.PurchaseReservedInstancesOfferingRequest(params)
  15781. //
  15782. // err := req.Send()
  15783. // if err == nil { // resp is now filled
  15784. // fmt.Println(resp)
  15785. // }
  15786. //
  15787. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  15788. func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedInstancesOfferingInput) (req *request.Request, output *PurchaseReservedInstancesOfferingOutput) {
  15789. op := &request.Operation{
  15790. Name: opPurchaseReservedInstancesOffering,
  15791. HTTPMethod: "POST",
  15792. HTTPPath: "/",
  15793. }
  15794. if input == nil {
  15795. input = &PurchaseReservedInstancesOfferingInput{}
  15796. }
  15797. output = &PurchaseReservedInstancesOfferingOutput{}
  15798. req = c.newRequest(op, input, output)
  15799. return
  15800. }
  15801. // PurchaseReservedInstancesOffering API operation for Amazon Elastic Compute Cloud.
  15802. //
  15803. // Purchases a Reserved Instance for use with your account. With Reserved Instances,
  15804. // you pay a lower hourly rate compared to On-Demand instance pricing.
  15805. //
  15806. // Use DescribeReservedInstancesOfferings to get a list of Reserved Instance
  15807. // offerings that match your specifications. After you've purchased a Reserved
  15808. // Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
  15809. //
  15810. // For more information, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  15811. // and Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  15812. // in the Amazon Elastic Compute Cloud User Guide.
  15813. //
  15814. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15815. // with awserr.Error's Code and Message methods to get detailed information about
  15816. // the error.
  15817. //
  15818. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15819. // API operation PurchaseReservedInstancesOffering for usage and error information.
  15820. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  15821. func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) {
  15822. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  15823. return out, req.Send()
  15824. }
  15825. // PurchaseReservedInstancesOfferingWithContext is the same as PurchaseReservedInstancesOffering with the addition of
  15826. // the ability to pass a context and additional request options.
  15827. //
  15828. // See PurchaseReservedInstancesOffering for details on how to use this API operation.
  15829. //
  15830. // The context must be non-nil and will be used for request cancellation. If
  15831. // the context is nil a panic will occur. In the future the SDK may create
  15832. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15833. // for more information on using Contexts.
  15834. func (c *EC2) PurchaseReservedInstancesOfferingWithContext(ctx aws.Context, input *PurchaseReservedInstancesOfferingInput, opts ...request.Option) (*PurchaseReservedInstancesOfferingOutput, error) {
  15835. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  15836. req.SetContext(ctx)
  15837. req.ApplyOptions(opts...)
  15838. return out, req.Send()
  15839. }
  15840. const opPurchaseScheduledInstances = "PurchaseScheduledInstances"
  15841. // PurchaseScheduledInstancesRequest generates a "aws/request.Request" representing the
  15842. // client's request for the PurchaseScheduledInstances operation. The "output" return
  15843. // value can be used to capture response data after the request's "Send" method
  15844. // is called.
  15845. //
  15846. // See PurchaseScheduledInstances for usage and error information.
  15847. //
  15848. // Creating a request object using this method should be used when you want to inject
  15849. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15850. // access properties on the request object before or after sending the request. If
  15851. // you just want the service response, call the PurchaseScheduledInstances method directly
  15852. // instead.
  15853. //
  15854. // Note: You must call the "Send" method on the returned request object in order
  15855. // to execute the request.
  15856. //
  15857. // // Example sending a request using the PurchaseScheduledInstancesRequest method.
  15858. // req, resp := client.PurchaseScheduledInstancesRequest(params)
  15859. //
  15860. // err := req.Send()
  15861. // if err == nil { // resp is now filled
  15862. // fmt.Println(resp)
  15863. // }
  15864. //
  15865. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  15866. func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) (req *request.Request, output *PurchaseScheduledInstancesOutput) {
  15867. op := &request.Operation{
  15868. Name: opPurchaseScheduledInstances,
  15869. HTTPMethod: "POST",
  15870. HTTPPath: "/",
  15871. }
  15872. if input == nil {
  15873. input = &PurchaseScheduledInstancesInput{}
  15874. }
  15875. output = &PurchaseScheduledInstancesOutput{}
  15876. req = c.newRequest(op, input, output)
  15877. return
  15878. }
  15879. // PurchaseScheduledInstances API operation for Amazon Elastic Compute Cloud.
  15880. //
  15881. // Purchases one or more Scheduled Instances with the specified schedule.
  15882. //
  15883. // Scheduled Instances enable you to purchase Amazon EC2 compute capacity by
  15884. // the hour for a one-year term. Before you can purchase a Scheduled Instance,
  15885. // you must call DescribeScheduledInstanceAvailability to check for available
  15886. // schedules and obtain a purchase token. After you purchase a Scheduled Instance,
  15887. // you must call RunScheduledInstances during each scheduled time period.
  15888. //
  15889. // After you purchase a Scheduled Instance, you can't cancel, modify, or resell
  15890. // your purchase.
  15891. //
  15892. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15893. // with awserr.Error's Code and Message methods to get detailed information about
  15894. // the error.
  15895. //
  15896. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15897. // API operation PurchaseScheduledInstances for usage and error information.
  15898. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  15899. func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) {
  15900. req, out := c.PurchaseScheduledInstancesRequest(input)
  15901. return out, req.Send()
  15902. }
  15903. // PurchaseScheduledInstancesWithContext is the same as PurchaseScheduledInstances with the addition of
  15904. // the ability to pass a context and additional request options.
  15905. //
  15906. // See PurchaseScheduledInstances for details on how to use this API operation.
  15907. //
  15908. // The context must be non-nil and will be used for request cancellation. If
  15909. // the context is nil a panic will occur. In the future the SDK may create
  15910. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15911. // for more information on using Contexts.
  15912. func (c *EC2) PurchaseScheduledInstancesWithContext(ctx aws.Context, input *PurchaseScheduledInstancesInput, opts ...request.Option) (*PurchaseScheduledInstancesOutput, error) {
  15913. req, out := c.PurchaseScheduledInstancesRequest(input)
  15914. req.SetContext(ctx)
  15915. req.ApplyOptions(opts...)
  15916. return out, req.Send()
  15917. }
  15918. const opRebootInstances = "RebootInstances"
  15919. // RebootInstancesRequest generates a "aws/request.Request" representing the
  15920. // client's request for the RebootInstances operation. The "output" return
  15921. // value can be used to capture response data after the request's "Send" method
  15922. // is called.
  15923. //
  15924. // See RebootInstances for usage and error information.
  15925. //
  15926. // Creating a request object using this method should be used when you want to inject
  15927. // custom logic into the request's lifecycle using a custom handler, or if you want to
  15928. // access properties on the request object before or after sending the request. If
  15929. // you just want the service response, call the RebootInstances method directly
  15930. // instead.
  15931. //
  15932. // Note: You must call the "Send" method on the returned request object in order
  15933. // to execute the request.
  15934. //
  15935. // // Example sending a request using the RebootInstancesRequest method.
  15936. // req, resp := client.RebootInstancesRequest(params)
  15937. //
  15938. // err := req.Send()
  15939. // if err == nil { // resp is now filled
  15940. // fmt.Println(resp)
  15941. // }
  15942. //
  15943. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  15944. func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput) {
  15945. op := &request.Operation{
  15946. Name: opRebootInstances,
  15947. HTTPMethod: "POST",
  15948. HTTPPath: "/",
  15949. }
  15950. if input == nil {
  15951. input = &RebootInstancesInput{}
  15952. }
  15953. output = &RebootInstancesOutput{}
  15954. req = c.newRequest(op, input, output)
  15955. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  15956. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  15957. return
  15958. }
  15959. // RebootInstances API operation for Amazon Elastic Compute Cloud.
  15960. //
  15961. // Requests a reboot of one or more instances. This operation is asynchronous;
  15962. // it only queues a request to reboot the specified instances. The operation
  15963. // succeeds if the instances are valid and belong to you. Requests to reboot
  15964. // terminated instances are ignored.
  15965. //
  15966. // If an instance does not cleanly shut down within four minutes, Amazon EC2
  15967. // performs a hard reboot.
  15968. //
  15969. // For more information about troubleshooting, see Getting Console Output and
  15970. // Rebooting Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html)
  15971. // in the Amazon Elastic Compute Cloud User Guide.
  15972. //
  15973. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15974. // with awserr.Error's Code and Message methods to get detailed information about
  15975. // the error.
  15976. //
  15977. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15978. // API operation RebootInstances for usage and error information.
  15979. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  15980. func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) {
  15981. req, out := c.RebootInstancesRequest(input)
  15982. return out, req.Send()
  15983. }
  15984. // RebootInstancesWithContext is the same as RebootInstances with the addition of
  15985. // the ability to pass a context and additional request options.
  15986. //
  15987. // See RebootInstances for details on how to use this API operation.
  15988. //
  15989. // The context must be non-nil and will be used for request cancellation. If
  15990. // the context is nil a panic will occur. In the future the SDK may create
  15991. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15992. // for more information on using Contexts.
  15993. func (c *EC2) RebootInstancesWithContext(ctx aws.Context, input *RebootInstancesInput, opts ...request.Option) (*RebootInstancesOutput, error) {
  15994. req, out := c.RebootInstancesRequest(input)
  15995. req.SetContext(ctx)
  15996. req.ApplyOptions(opts...)
  15997. return out, req.Send()
  15998. }
  15999. const opRegisterImage = "RegisterImage"
  16000. // RegisterImageRequest generates a "aws/request.Request" representing the
  16001. // client's request for the RegisterImage operation. The "output" return
  16002. // value can be used to capture response data after the request's "Send" method
  16003. // is called.
  16004. //
  16005. // See RegisterImage for usage and error information.
  16006. //
  16007. // Creating a request object using this method should be used when you want to inject
  16008. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16009. // access properties on the request object before or after sending the request. If
  16010. // you just want the service response, call the RegisterImage method directly
  16011. // instead.
  16012. //
  16013. // Note: You must call the "Send" method on the returned request object in order
  16014. // to execute the request.
  16015. //
  16016. // // Example sending a request using the RegisterImageRequest method.
  16017. // req, resp := client.RegisterImageRequest(params)
  16018. //
  16019. // err := req.Send()
  16020. // if err == nil { // resp is now filled
  16021. // fmt.Println(resp)
  16022. // }
  16023. //
  16024. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  16025. func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Request, output *RegisterImageOutput) {
  16026. op := &request.Operation{
  16027. Name: opRegisterImage,
  16028. HTTPMethod: "POST",
  16029. HTTPPath: "/",
  16030. }
  16031. if input == nil {
  16032. input = &RegisterImageInput{}
  16033. }
  16034. output = &RegisterImageOutput{}
  16035. req = c.newRequest(op, input, output)
  16036. return
  16037. }
  16038. // RegisterImage API operation for Amazon Elastic Compute Cloud.
  16039. //
  16040. // Registers an AMI. When you're creating an AMI, this is the final step you
  16041. // must complete before you can launch an instance from the AMI. For more information
  16042. // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html)
  16043. // in the Amazon Elastic Compute Cloud User Guide.
  16044. //
  16045. // For Amazon EBS-backed instances, CreateImage creates and registers the AMI
  16046. // in a single request, so you don't have to register the AMI yourself.
  16047. //
  16048. // You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from
  16049. // a snapshot of a root device volume. You specify the snapshot using the block
  16050. // device mapping. For more information, see Launching a Linux Instance from
  16051. // a Backup (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-snapshot.html)
  16052. // in the Amazon Elastic Compute Cloud User Guide.
  16053. //
  16054. // You can't register an image where a secondary (non-root) snapshot has AWS
  16055. // Marketplace product codes.
  16056. //
  16057. // Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE
  16058. // Linux Enterprise Server (SLES), use the EC2 billing product code associated
  16059. // with an AMI to verify the subscription status for package updates. Creating
  16060. // an AMI from an EBS snapshot does not maintain this billing code, and subsequent
  16061. // instances launched from such an AMI will not be able to connect to package
  16062. // update infrastructure. To create an AMI that must retain billing codes, see
  16063. // CreateImage.
  16064. //
  16065. // If needed, you can deregister an AMI at any time. Any modifications you make
  16066. // to an AMI backed by an instance store volume invalidates its registration.
  16067. // If you make changes to an image, deregister the previous image and register
  16068. // the new image.
  16069. //
  16070. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16071. // with awserr.Error's Code and Message methods to get detailed information about
  16072. // the error.
  16073. //
  16074. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16075. // API operation RegisterImage for usage and error information.
  16076. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  16077. func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) {
  16078. req, out := c.RegisterImageRequest(input)
  16079. return out, req.Send()
  16080. }
  16081. // RegisterImageWithContext is the same as RegisterImage with the addition of
  16082. // the ability to pass a context and additional request options.
  16083. //
  16084. // See RegisterImage for details on how to use this API operation.
  16085. //
  16086. // The context must be non-nil and will be used for request cancellation. If
  16087. // the context is nil a panic will occur. In the future the SDK may create
  16088. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16089. // for more information on using Contexts.
  16090. func (c *EC2) RegisterImageWithContext(ctx aws.Context, input *RegisterImageInput, opts ...request.Option) (*RegisterImageOutput, error) {
  16091. req, out := c.RegisterImageRequest(input)
  16092. req.SetContext(ctx)
  16093. req.ApplyOptions(opts...)
  16094. return out, req.Send()
  16095. }
  16096. const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection"
  16097. // RejectVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  16098. // client's request for the RejectVpcPeeringConnection operation. The "output" return
  16099. // value can be used to capture response data after the request's "Send" method
  16100. // is called.
  16101. //
  16102. // See RejectVpcPeeringConnection for usage and error information.
  16103. //
  16104. // Creating a request object using this method should be used when you want to inject
  16105. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16106. // access properties on the request object before or after sending the request. If
  16107. // you just want the service response, call the RejectVpcPeeringConnection method directly
  16108. // instead.
  16109. //
  16110. // Note: You must call the "Send" method on the returned request object in order
  16111. // to execute the request.
  16112. //
  16113. // // Example sending a request using the RejectVpcPeeringConnectionRequest method.
  16114. // req, resp := client.RejectVpcPeeringConnectionRequest(params)
  16115. //
  16116. // err := req.Send()
  16117. // if err == nil { // resp is now filled
  16118. // fmt.Println(resp)
  16119. // }
  16120. //
  16121. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  16122. func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectionInput) (req *request.Request, output *RejectVpcPeeringConnectionOutput) {
  16123. op := &request.Operation{
  16124. Name: opRejectVpcPeeringConnection,
  16125. HTTPMethod: "POST",
  16126. HTTPPath: "/",
  16127. }
  16128. if input == nil {
  16129. input = &RejectVpcPeeringConnectionInput{}
  16130. }
  16131. output = &RejectVpcPeeringConnectionOutput{}
  16132. req = c.newRequest(op, input, output)
  16133. return
  16134. }
  16135. // RejectVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  16136. //
  16137. // Rejects a VPC peering connection request. The VPC peering connection must
  16138. // be in the pending-acceptance state. Use the DescribeVpcPeeringConnections
  16139. // request to view your outstanding VPC peering connection requests. To delete
  16140. // an active VPC peering connection, or to delete a VPC peering connection request
  16141. // that you initiated, use DeleteVpcPeeringConnection.
  16142. //
  16143. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16144. // with awserr.Error's Code and Message methods to get detailed information about
  16145. // the error.
  16146. //
  16147. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16148. // API operation RejectVpcPeeringConnection for usage and error information.
  16149. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  16150. func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) {
  16151. req, out := c.RejectVpcPeeringConnectionRequest(input)
  16152. return out, req.Send()
  16153. }
  16154. // RejectVpcPeeringConnectionWithContext is the same as RejectVpcPeeringConnection with the addition of
  16155. // the ability to pass a context and additional request options.
  16156. //
  16157. // See RejectVpcPeeringConnection for details on how to use this API operation.
  16158. //
  16159. // The context must be non-nil and will be used for request cancellation. If
  16160. // the context is nil a panic will occur. In the future the SDK may create
  16161. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16162. // for more information on using Contexts.
  16163. func (c *EC2) RejectVpcPeeringConnectionWithContext(ctx aws.Context, input *RejectVpcPeeringConnectionInput, opts ...request.Option) (*RejectVpcPeeringConnectionOutput, error) {
  16164. req, out := c.RejectVpcPeeringConnectionRequest(input)
  16165. req.SetContext(ctx)
  16166. req.ApplyOptions(opts...)
  16167. return out, req.Send()
  16168. }
  16169. const opReleaseAddress = "ReleaseAddress"
  16170. // ReleaseAddressRequest generates a "aws/request.Request" representing the
  16171. // client's request for the ReleaseAddress operation. The "output" return
  16172. // value can be used to capture response data after the request's "Send" method
  16173. // is called.
  16174. //
  16175. // See ReleaseAddress for usage and error information.
  16176. //
  16177. // Creating a request object using this method should be used when you want to inject
  16178. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16179. // access properties on the request object before or after sending the request. If
  16180. // you just want the service response, call the ReleaseAddress method directly
  16181. // instead.
  16182. //
  16183. // Note: You must call the "Send" method on the returned request object in order
  16184. // to execute the request.
  16185. //
  16186. // // Example sending a request using the ReleaseAddressRequest method.
  16187. // req, resp := client.ReleaseAddressRequest(params)
  16188. //
  16189. // err := req.Send()
  16190. // if err == nil { // resp is now filled
  16191. // fmt.Println(resp)
  16192. // }
  16193. //
  16194. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  16195. func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Request, output *ReleaseAddressOutput) {
  16196. op := &request.Operation{
  16197. Name: opReleaseAddress,
  16198. HTTPMethod: "POST",
  16199. HTTPPath: "/",
  16200. }
  16201. if input == nil {
  16202. input = &ReleaseAddressInput{}
  16203. }
  16204. output = &ReleaseAddressOutput{}
  16205. req = c.newRequest(op, input, output)
  16206. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16207. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16208. return
  16209. }
  16210. // ReleaseAddress API operation for Amazon Elastic Compute Cloud.
  16211. //
  16212. // Releases the specified Elastic IP address.
  16213. //
  16214. // After releasing an Elastic IP address, it is released to the IP address pool
  16215. // and might be unavailable to you. Be sure to update your DNS records and any
  16216. // servers or devices that communicate with the address. If you attempt to release
  16217. // an Elastic IP address that you already released, you'll get an AuthFailure
  16218. // error if the address is already allocated to another AWS account.
  16219. //
  16220. // [EC2-Classic, default VPC] Releasing an Elastic IP address automatically
  16221. // disassociates it from any instance that it's associated with. To disassociate
  16222. // an Elastic IP address without releasing it, use DisassociateAddress.
  16223. //
  16224. // [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic
  16225. // IP address before you try to release it. Otherwise, Amazon EC2 returns an
  16226. // error (InvalidIPAddress.InUse).
  16227. //
  16228. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16229. // with awserr.Error's Code and Message methods to get detailed information about
  16230. // the error.
  16231. //
  16232. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16233. // API operation ReleaseAddress for usage and error information.
  16234. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  16235. func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) {
  16236. req, out := c.ReleaseAddressRequest(input)
  16237. return out, req.Send()
  16238. }
  16239. // ReleaseAddressWithContext is the same as ReleaseAddress with the addition of
  16240. // the ability to pass a context and additional request options.
  16241. //
  16242. // See ReleaseAddress for details on how to use this API operation.
  16243. //
  16244. // The context must be non-nil and will be used for request cancellation. If
  16245. // the context is nil a panic will occur. In the future the SDK may create
  16246. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16247. // for more information on using Contexts.
  16248. func (c *EC2) ReleaseAddressWithContext(ctx aws.Context, input *ReleaseAddressInput, opts ...request.Option) (*ReleaseAddressOutput, error) {
  16249. req, out := c.ReleaseAddressRequest(input)
  16250. req.SetContext(ctx)
  16251. req.ApplyOptions(opts...)
  16252. return out, req.Send()
  16253. }
  16254. const opReleaseHosts = "ReleaseHosts"
  16255. // ReleaseHostsRequest generates a "aws/request.Request" representing the
  16256. // client's request for the ReleaseHosts operation. The "output" return
  16257. // value can be used to capture response data after the request's "Send" method
  16258. // is called.
  16259. //
  16260. // See ReleaseHosts for usage and error information.
  16261. //
  16262. // Creating a request object using this method should be used when you want to inject
  16263. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16264. // access properties on the request object before or after sending the request. If
  16265. // you just want the service response, call the ReleaseHosts method directly
  16266. // instead.
  16267. //
  16268. // Note: You must call the "Send" method on the returned request object in order
  16269. // to execute the request.
  16270. //
  16271. // // Example sending a request using the ReleaseHostsRequest method.
  16272. // req, resp := client.ReleaseHostsRequest(params)
  16273. //
  16274. // err := req.Send()
  16275. // if err == nil { // resp is now filled
  16276. // fmt.Println(resp)
  16277. // }
  16278. //
  16279. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  16280. func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Request, output *ReleaseHostsOutput) {
  16281. op := &request.Operation{
  16282. Name: opReleaseHosts,
  16283. HTTPMethod: "POST",
  16284. HTTPPath: "/",
  16285. }
  16286. if input == nil {
  16287. input = &ReleaseHostsInput{}
  16288. }
  16289. output = &ReleaseHostsOutput{}
  16290. req = c.newRequest(op, input, output)
  16291. return
  16292. }
  16293. // ReleaseHosts API operation for Amazon Elastic Compute Cloud.
  16294. //
  16295. // When you no longer want to use an On-Demand Dedicated Host it can be released.
  16296. // On-Demand billing is stopped and the host goes into released state. The host
  16297. // ID of Dedicated Hosts that have been released can no longer be specified
  16298. // in another request, e.g., ModifyHosts. You must stop or terminate all instances
  16299. // on a host before it can be released.
  16300. //
  16301. // When Dedicated Hosts are released, it make take some time for them to stop
  16302. // counting toward your limit and you may receive capacity errors when trying
  16303. // to allocate new Dedicated hosts. Try waiting a few minutes, and then try
  16304. // again.
  16305. //
  16306. // Released hosts will still appear in a DescribeHosts response.
  16307. //
  16308. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16309. // with awserr.Error's Code and Message methods to get detailed information about
  16310. // the error.
  16311. //
  16312. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16313. // API operation ReleaseHosts for usage and error information.
  16314. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  16315. func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) {
  16316. req, out := c.ReleaseHostsRequest(input)
  16317. return out, req.Send()
  16318. }
  16319. // ReleaseHostsWithContext is the same as ReleaseHosts with the addition of
  16320. // the ability to pass a context and additional request options.
  16321. //
  16322. // See ReleaseHosts for details on how to use this API operation.
  16323. //
  16324. // The context must be non-nil and will be used for request cancellation. If
  16325. // the context is nil a panic will occur. In the future the SDK may create
  16326. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16327. // for more information on using Contexts.
  16328. func (c *EC2) ReleaseHostsWithContext(ctx aws.Context, input *ReleaseHostsInput, opts ...request.Option) (*ReleaseHostsOutput, error) {
  16329. req, out := c.ReleaseHostsRequest(input)
  16330. req.SetContext(ctx)
  16331. req.ApplyOptions(opts...)
  16332. return out, req.Send()
  16333. }
  16334. const opReplaceIamInstanceProfileAssociation = "ReplaceIamInstanceProfileAssociation"
  16335. // ReplaceIamInstanceProfileAssociationRequest generates a "aws/request.Request" representing the
  16336. // client's request for the ReplaceIamInstanceProfileAssociation operation. The "output" return
  16337. // value can be used to capture response data after the request's "Send" method
  16338. // is called.
  16339. //
  16340. // See ReplaceIamInstanceProfileAssociation for usage and error information.
  16341. //
  16342. // Creating a request object using this method should be used when you want to inject
  16343. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16344. // access properties on the request object before or after sending the request. If
  16345. // you just want the service response, call the ReplaceIamInstanceProfileAssociation method directly
  16346. // instead.
  16347. //
  16348. // Note: You must call the "Send" method on the returned request object in order
  16349. // to execute the request.
  16350. //
  16351. // // Example sending a request using the ReplaceIamInstanceProfileAssociationRequest method.
  16352. // req, resp := client.ReplaceIamInstanceProfileAssociationRequest(params)
  16353. //
  16354. // err := req.Send()
  16355. // if err == nil { // resp is now filled
  16356. // fmt.Println(resp)
  16357. // }
  16358. //
  16359. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  16360. func (c *EC2) ReplaceIamInstanceProfileAssociationRequest(input *ReplaceIamInstanceProfileAssociationInput) (req *request.Request, output *ReplaceIamInstanceProfileAssociationOutput) {
  16361. op := &request.Operation{
  16362. Name: opReplaceIamInstanceProfileAssociation,
  16363. HTTPMethod: "POST",
  16364. HTTPPath: "/",
  16365. }
  16366. if input == nil {
  16367. input = &ReplaceIamInstanceProfileAssociationInput{}
  16368. }
  16369. output = &ReplaceIamInstanceProfileAssociationOutput{}
  16370. req = c.newRequest(op, input, output)
  16371. return
  16372. }
  16373. // ReplaceIamInstanceProfileAssociation API operation for Amazon Elastic Compute Cloud.
  16374. //
  16375. // Replaces an IAM instance profile for the specified running instance. You
  16376. // can use this action to change the IAM instance profile that's associated
  16377. // with an instance without having to disassociate the existing IAM instance
  16378. // profile first.
  16379. //
  16380. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  16381. //
  16382. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16383. // with awserr.Error's Code and Message methods to get detailed information about
  16384. // the error.
  16385. //
  16386. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16387. // API operation ReplaceIamInstanceProfileAssociation for usage and error information.
  16388. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  16389. func (c *EC2) ReplaceIamInstanceProfileAssociation(input *ReplaceIamInstanceProfileAssociationInput) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  16390. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  16391. return out, req.Send()
  16392. }
  16393. // ReplaceIamInstanceProfileAssociationWithContext is the same as ReplaceIamInstanceProfileAssociation with the addition of
  16394. // the ability to pass a context and additional request options.
  16395. //
  16396. // See ReplaceIamInstanceProfileAssociation for details on how to use this API operation.
  16397. //
  16398. // The context must be non-nil and will be used for request cancellation. If
  16399. // the context is nil a panic will occur. In the future the SDK may create
  16400. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16401. // for more information on using Contexts.
  16402. func (c *EC2) ReplaceIamInstanceProfileAssociationWithContext(ctx aws.Context, input *ReplaceIamInstanceProfileAssociationInput, opts ...request.Option) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  16403. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  16404. req.SetContext(ctx)
  16405. req.ApplyOptions(opts...)
  16406. return out, req.Send()
  16407. }
  16408. const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation"
  16409. // ReplaceNetworkAclAssociationRequest generates a "aws/request.Request" representing the
  16410. // client's request for the ReplaceNetworkAclAssociation operation. The "output" return
  16411. // value can be used to capture response data after the request's "Send" method
  16412. // is called.
  16413. //
  16414. // See ReplaceNetworkAclAssociation for usage and error information.
  16415. //
  16416. // Creating a request object using this method should be used when you want to inject
  16417. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16418. // access properties on the request object before or after sending the request. If
  16419. // you just want the service response, call the ReplaceNetworkAclAssociation method directly
  16420. // instead.
  16421. //
  16422. // Note: You must call the "Send" method on the returned request object in order
  16423. // to execute the request.
  16424. //
  16425. // // Example sending a request using the ReplaceNetworkAclAssociationRequest method.
  16426. // req, resp := client.ReplaceNetworkAclAssociationRequest(params)
  16427. //
  16428. // err := req.Send()
  16429. // if err == nil { // resp is now filled
  16430. // fmt.Println(resp)
  16431. // }
  16432. //
  16433. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  16434. func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssociationInput) (req *request.Request, output *ReplaceNetworkAclAssociationOutput) {
  16435. op := &request.Operation{
  16436. Name: opReplaceNetworkAclAssociation,
  16437. HTTPMethod: "POST",
  16438. HTTPPath: "/",
  16439. }
  16440. if input == nil {
  16441. input = &ReplaceNetworkAclAssociationInput{}
  16442. }
  16443. output = &ReplaceNetworkAclAssociationOutput{}
  16444. req = c.newRequest(op, input, output)
  16445. return
  16446. }
  16447. // ReplaceNetworkAclAssociation API operation for Amazon Elastic Compute Cloud.
  16448. //
  16449. // Changes which network ACL a subnet is associated with. By default when you
  16450. // create a subnet, it's automatically associated with the default network ACL.
  16451. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  16452. // in the Amazon Virtual Private Cloud User Guide.
  16453. //
  16454. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16455. // with awserr.Error's Code and Message methods to get detailed information about
  16456. // the error.
  16457. //
  16458. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16459. // API operation ReplaceNetworkAclAssociation for usage and error information.
  16460. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  16461. func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) {
  16462. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  16463. return out, req.Send()
  16464. }
  16465. // ReplaceNetworkAclAssociationWithContext is the same as ReplaceNetworkAclAssociation with the addition of
  16466. // the ability to pass a context and additional request options.
  16467. //
  16468. // See ReplaceNetworkAclAssociation for details on how to use this API operation.
  16469. //
  16470. // The context must be non-nil and will be used for request cancellation. If
  16471. // the context is nil a panic will occur. In the future the SDK may create
  16472. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16473. // for more information on using Contexts.
  16474. func (c *EC2) ReplaceNetworkAclAssociationWithContext(ctx aws.Context, input *ReplaceNetworkAclAssociationInput, opts ...request.Option) (*ReplaceNetworkAclAssociationOutput, error) {
  16475. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  16476. req.SetContext(ctx)
  16477. req.ApplyOptions(opts...)
  16478. return out, req.Send()
  16479. }
  16480. const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry"
  16481. // ReplaceNetworkAclEntryRequest generates a "aws/request.Request" representing the
  16482. // client's request for the ReplaceNetworkAclEntry operation. The "output" return
  16483. // value can be used to capture response data after the request's "Send" method
  16484. // is called.
  16485. //
  16486. // See ReplaceNetworkAclEntry for usage and error information.
  16487. //
  16488. // Creating a request object using this method should be used when you want to inject
  16489. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16490. // access properties on the request object before or after sending the request. If
  16491. // you just want the service response, call the ReplaceNetworkAclEntry method directly
  16492. // instead.
  16493. //
  16494. // Note: You must call the "Send" method on the returned request object in order
  16495. // to execute the request.
  16496. //
  16497. // // Example sending a request using the ReplaceNetworkAclEntryRequest method.
  16498. // req, resp := client.ReplaceNetworkAclEntryRequest(params)
  16499. //
  16500. // err := req.Send()
  16501. // if err == nil { // resp is now filled
  16502. // fmt.Println(resp)
  16503. // }
  16504. //
  16505. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  16506. func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) (req *request.Request, output *ReplaceNetworkAclEntryOutput) {
  16507. op := &request.Operation{
  16508. Name: opReplaceNetworkAclEntry,
  16509. HTTPMethod: "POST",
  16510. HTTPPath: "/",
  16511. }
  16512. if input == nil {
  16513. input = &ReplaceNetworkAclEntryInput{}
  16514. }
  16515. output = &ReplaceNetworkAclEntryOutput{}
  16516. req = c.newRequest(op, input, output)
  16517. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16518. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16519. return
  16520. }
  16521. // ReplaceNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  16522. //
  16523. // Replaces an entry (rule) in a network ACL. For more information about network
  16524. // ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  16525. // in the Amazon Virtual Private Cloud User Guide.
  16526. //
  16527. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16528. // with awserr.Error's Code and Message methods to get detailed information about
  16529. // the error.
  16530. //
  16531. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16532. // API operation ReplaceNetworkAclEntry for usage and error information.
  16533. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  16534. func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) {
  16535. req, out := c.ReplaceNetworkAclEntryRequest(input)
  16536. return out, req.Send()
  16537. }
  16538. // ReplaceNetworkAclEntryWithContext is the same as ReplaceNetworkAclEntry with the addition of
  16539. // the ability to pass a context and additional request options.
  16540. //
  16541. // See ReplaceNetworkAclEntry for details on how to use this API operation.
  16542. //
  16543. // The context must be non-nil and will be used for request cancellation. If
  16544. // the context is nil a panic will occur. In the future the SDK may create
  16545. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16546. // for more information on using Contexts.
  16547. func (c *EC2) ReplaceNetworkAclEntryWithContext(ctx aws.Context, input *ReplaceNetworkAclEntryInput, opts ...request.Option) (*ReplaceNetworkAclEntryOutput, error) {
  16548. req, out := c.ReplaceNetworkAclEntryRequest(input)
  16549. req.SetContext(ctx)
  16550. req.ApplyOptions(opts...)
  16551. return out, req.Send()
  16552. }
  16553. const opReplaceRoute = "ReplaceRoute"
  16554. // ReplaceRouteRequest generates a "aws/request.Request" representing the
  16555. // client's request for the ReplaceRoute operation. The "output" return
  16556. // value can be used to capture response data after the request's "Send" method
  16557. // is called.
  16558. //
  16559. // See ReplaceRoute for usage and error information.
  16560. //
  16561. // Creating a request object using this method should be used when you want to inject
  16562. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16563. // access properties on the request object before or after sending the request. If
  16564. // you just want the service response, call the ReplaceRoute method directly
  16565. // instead.
  16566. //
  16567. // Note: You must call the "Send" method on the returned request object in order
  16568. // to execute the request.
  16569. //
  16570. // // Example sending a request using the ReplaceRouteRequest method.
  16571. // req, resp := client.ReplaceRouteRequest(params)
  16572. //
  16573. // err := req.Send()
  16574. // if err == nil { // resp is now filled
  16575. // fmt.Println(resp)
  16576. // }
  16577. //
  16578. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  16579. func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Request, output *ReplaceRouteOutput) {
  16580. op := &request.Operation{
  16581. Name: opReplaceRoute,
  16582. HTTPMethod: "POST",
  16583. HTTPPath: "/",
  16584. }
  16585. if input == nil {
  16586. input = &ReplaceRouteInput{}
  16587. }
  16588. output = &ReplaceRouteOutput{}
  16589. req = c.newRequest(op, input, output)
  16590. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16591. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16592. return
  16593. }
  16594. // ReplaceRoute API operation for Amazon Elastic Compute Cloud.
  16595. //
  16596. // Replaces an existing route within a route table in a VPC. You must provide
  16597. // only one of the following: Internet gateway or virtual private gateway, NAT
  16598. // instance, NAT gateway, VPC peering connection, network interface, or egress-only
  16599. // Internet gateway.
  16600. //
  16601. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  16602. // in the Amazon Virtual Private Cloud User Guide.
  16603. //
  16604. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16605. // with awserr.Error's Code and Message methods to get detailed information about
  16606. // the error.
  16607. //
  16608. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16609. // API operation ReplaceRoute for usage and error information.
  16610. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  16611. func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) {
  16612. req, out := c.ReplaceRouteRequest(input)
  16613. return out, req.Send()
  16614. }
  16615. // ReplaceRouteWithContext is the same as ReplaceRoute with the addition of
  16616. // the ability to pass a context and additional request options.
  16617. //
  16618. // See ReplaceRoute for details on how to use this API operation.
  16619. //
  16620. // The context must be non-nil and will be used for request cancellation. If
  16621. // the context is nil a panic will occur. In the future the SDK may create
  16622. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16623. // for more information on using Contexts.
  16624. func (c *EC2) ReplaceRouteWithContext(ctx aws.Context, input *ReplaceRouteInput, opts ...request.Option) (*ReplaceRouteOutput, error) {
  16625. req, out := c.ReplaceRouteRequest(input)
  16626. req.SetContext(ctx)
  16627. req.ApplyOptions(opts...)
  16628. return out, req.Send()
  16629. }
  16630. const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation"
  16631. // ReplaceRouteTableAssociationRequest generates a "aws/request.Request" representing the
  16632. // client's request for the ReplaceRouteTableAssociation operation. The "output" return
  16633. // value can be used to capture response data after the request's "Send" method
  16634. // is called.
  16635. //
  16636. // See ReplaceRouteTableAssociation for usage and error information.
  16637. //
  16638. // Creating a request object using this method should be used when you want to inject
  16639. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16640. // access properties on the request object before or after sending the request. If
  16641. // you just want the service response, call the ReplaceRouteTableAssociation method directly
  16642. // instead.
  16643. //
  16644. // Note: You must call the "Send" method on the returned request object in order
  16645. // to execute the request.
  16646. //
  16647. // // Example sending a request using the ReplaceRouteTableAssociationRequest method.
  16648. // req, resp := client.ReplaceRouteTableAssociationRequest(params)
  16649. //
  16650. // err := req.Send()
  16651. // if err == nil { // resp is now filled
  16652. // fmt.Println(resp)
  16653. // }
  16654. //
  16655. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  16656. func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssociationInput) (req *request.Request, output *ReplaceRouteTableAssociationOutput) {
  16657. op := &request.Operation{
  16658. Name: opReplaceRouteTableAssociation,
  16659. HTTPMethod: "POST",
  16660. HTTPPath: "/",
  16661. }
  16662. if input == nil {
  16663. input = &ReplaceRouteTableAssociationInput{}
  16664. }
  16665. output = &ReplaceRouteTableAssociationOutput{}
  16666. req = c.newRequest(op, input, output)
  16667. return
  16668. }
  16669. // ReplaceRouteTableAssociation API operation for Amazon Elastic Compute Cloud.
  16670. //
  16671. // Changes the route table associated with a given subnet in a VPC. After the
  16672. // operation completes, the subnet uses the routes in the new route table it's
  16673. // associated with. For more information about route tables, see Route Tables
  16674. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  16675. // in the Amazon Virtual Private Cloud User Guide.
  16676. //
  16677. // You can also use ReplaceRouteTableAssociation to change which table is the
  16678. // main route table in the VPC. You just specify the main route table's association
  16679. // ID and the route table to be the new main route table.
  16680. //
  16681. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16682. // with awserr.Error's Code and Message methods to get detailed information about
  16683. // the error.
  16684. //
  16685. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16686. // API operation ReplaceRouteTableAssociation for usage and error information.
  16687. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  16688. func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) {
  16689. req, out := c.ReplaceRouteTableAssociationRequest(input)
  16690. return out, req.Send()
  16691. }
  16692. // ReplaceRouteTableAssociationWithContext is the same as ReplaceRouteTableAssociation with the addition of
  16693. // the ability to pass a context and additional request options.
  16694. //
  16695. // See ReplaceRouteTableAssociation for details on how to use this API operation.
  16696. //
  16697. // The context must be non-nil and will be used for request cancellation. If
  16698. // the context is nil a panic will occur. In the future the SDK may create
  16699. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16700. // for more information on using Contexts.
  16701. func (c *EC2) ReplaceRouteTableAssociationWithContext(ctx aws.Context, input *ReplaceRouteTableAssociationInput, opts ...request.Option) (*ReplaceRouteTableAssociationOutput, error) {
  16702. req, out := c.ReplaceRouteTableAssociationRequest(input)
  16703. req.SetContext(ctx)
  16704. req.ApplyOptions(opts...)
  16705. return out, req.Send()
  16706. }
  16707. const opReportInstanceStatus = "ReportInstanceStatus"
  16708. // ReportInstanceStatusRequest generates a "aws/request.Request" representing the
  16709. // client's request for the ReportInstanceStatus operation. The "output" return
  16710. // value can be used to capture response data after the request's "Send" method
  16711. // is called.
  16712. //
  16713. // See ReportInstanceStatus for usage and error information.
  16714. //
  16715. // Creating a request object using this method should be used when you want to inject
  16716. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16717. // access properties on the request object before or after sending the request. If
  16718. // you just want the service response, call the ReportInstanceStatus method directly
  16719. // instead.
  16720. //
  16721. // Note: You must call the "Send" method on the returned request object in order
  16722. // to execute the request.
  16723. //
  16724. // // Example sending a request using the ReportInstanceStatusRequest method.
  16725. // req, resp := client.ReportInstanceStatusRequest(params)
  16726. //
  16727. // err := req.Send()
  16728. // if err == nil { // resp is now filled
  16729. // fmt.Println(resp)
  16730. // }
  16731. //
  16732. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  16733. func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req *request.Request, output *ReportInstanceStatusOutput) {
  16734. op := &request.Operation{
  16735. Name: opReportInstanceStatus,
  16736. HTTPMethod: "POST",
  16737. HTTPPath: "/",
  16738. }
  16739. if input == nil {
  16740. input = &ReportInstanceStatusInput{}
  16741. }
  16742. output = &ReportInstanceStatusOutput{}
  16743. req = c.newRequest(op, input, output)
  16744. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16745. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16746. return
  16747. }
  16748. // ReportInstanceStatus API operation for Amazon Elastic Compute Cloud.
  16749. //
  16750. // Submits feedback about the status of an instance. The instance must be in
  16751. // the running state. If your experience with the instance differs from the
  16752. // instance status returned by DescribeInstanceStatus, use ReportInstanceStatus
  16753. // to report your experience with the instance. Amazon EC2 collects this information
  16754. // to improve the accuracy of status checks.
  16755. //
  16756. // Use of this action does not change the value returned by DescribeInstanceStatus.
  16757. //
  16758. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16759. // with awserr.Error's Code and Message methods to get detailed information about
  16760. // the error.
  16761. //
  16762. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16763. // API operation ReportInstanceStatus for usage and error information.
  16764. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  16765. func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) {
  16766. req, out := c.ReportInstanceStatusRequest(input)
  16767. return out, req.Send()
  16768. }
  16769. // ReportInstanceStatusWithContext is the same as ReportInstanceStatus with the addition of
  16770. // the ability to pass a context and additional request options.
  16771. //
  16772. // See ReportInstanceStatus for details on how to use this API operation.
  16773. //
  16774. // The context must be non-nil and will be used for request cancellation. If
  16775. // the context is nil a panic will occur. In the future the SDK may create
  16776. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16777. // for more information on using Contexts.
  16778. func (c *EC2) ReportInstanceStatusWithContext(ctx aws.Context, input *ReportInstanceStatusInput, opts ...request.Option) (*ReportInstanceStatusOutput, error) {
  16779. req, out := c.ReportInstanceStatusRequest(input)
  16780. req.SetContext(ctx)
  16781. req.ApplyOptions(opts...)
  16782. return out, req.Send()
  16783. }
  16784. const opRequestSpotFleet = "RequestSpotFleet"
  16785. // RequestSpotFleetRequest generates a "aws/request.Request" representing the
  16786. // client's request for the RequestSpotFleet operation. The "output" return
  16787. // value can be used to capture response data after the request's "Send" method
  16788. // is called.
  16789. //
  16790. // See RequestSpotFleet for usage and error information.
  16791. //
  16792. // Creating a request object using this method should be used when you want to inject
  16793. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16794. // access properties on the request object before or after sending the request. If
  16795. // you just want the service response, call the RequestSpotFleet method directly
  16796. // instead.
  16797. //
  16798. // Note: You must call the "Send" method on the returned request object in order
  16799. // to execute the request.
  16800. //
  16801. // // Example sending a request using the RequestSpotFleetRequest method.
  16802. // req, resp := client.RequestSpotFleetRequest(params)
  16803. //
  16804. // err := req.Send()
  16805. // if err == nil { // resp is now filled
  16806. // fmt.Println(resp)
  16807. // }
  16808. //
  16809. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  16810. func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *request.Request, output *RequestSpotFleetOutput) {
  16811. op := &request.Operation{
  16812. Name: opRequestSpotFleet,
  16813. HTTPMethod: "POST",
  16814. HTTPPath: "/",
  16815. }
  16816. if input == nil {
  16817. input = &RequestSpotFleetInput{}
  16818. }
  16819. output = &RequestSpotFleetOutput{}
  16820. req = c.newRequest(op, input, output)
  16821. return
  16822. }
  16823. // RequestSpotFleet API operation for Amazon Elastic Compute Cloud.
  16824. //
  16825. // Creates a Spot fleet request.
  16826. //
  16827. // You can submit a single request that includes multiple launch specifications
  16828. // that vary by instance type, AMI, Availability Zone, or subnet.
  16829. //
  16830. // By default, the Spot fleet requests Spot instances in the Spot pool where
  16831. // the price per unit is the lowest. Each launch specification can include its
  16832. // own instance weighting that reflects the value of the instance type to your
  16833. // application workload.
  16834. //
  16835. // Alternatively, you can specify that the Spot fleet distribute the target
  16836. // capacity across the Spot pools included in its launch specifications. By
  16837. // ensuring that the Spot instances in your Spot fleet are in different Spot
  16838. // pools, you can improve the availability of your fleet.
  16839. //
  16840. // For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html)
  16841. // in the Amazon Elastic Compute Cloud User Guide.
  16842. //
  16843. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16844. // with awserr.Error's Code and Message methods to get detailed information about
  16845. // the error.
  16846. //
  16847. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16848. // API operation RequestSpotFleet for usage and error information.
  16849. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  16850. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) {
  16851. req, out := c.RequestSpotFleetRequest(input)
  16852. return out, req.Send()
  16853. }
  16854. // RequestSpotFleetWithContext is the same as RequestSpotFleet with the addition of
  16855. // the ability to pass a context and additional request options.
  16856. //
  16857. // See RequestSpotFleet for details on how to use this API operation.
  16858. //
  16859. // The context must be non-nil and will be used for request cancellation. If
  16860. // the context is nil a panic will occur. In the future the SDK may create
  16861. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16862. // for more information on using Contexts.
  16863. func (c *EC2) RequestSpotFleetWithContext(ctx aws.Context, input *RequestSpotFleetInput, opts ...request.Option) (*RequestSpotFleetOutput, error) {
  16864. req, out := c.RequestSpotFleetRequest(input)
  16865. req.SetContext(ctx)
  16866. req.ApplyOptions(opts...)
  16867. return out, req.Send()
  16868. }
  16869. const opRequestSpotInstances = "RequestSpotInstances"
  16870. // RequestSpotInstancesRequest generates a "aws/request.Request" representing the
  16871. // client's request for the RequestSpotInstances operation. The "output" return
  16872. // value can be used to capture response data after the request's "Send" method
  16873. // is called.
  16874. //
  16875. // See RequestSpotInstances for usage and error information.
  16876. //
  16877. // Creating a request object using this method should be used when you want to inject
  16878. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16879. // access properties on the request object before or after sending the request. If
  16880. // you just want the service response, call the RequestSpotInstances method directly
  16881. // instead.
  16882. //
  16883. // Note: You must call the "Send" method on the returned request object in order
  16884. // to execute the request.
  16885. //
  16886. // // Example sending a request using the RequestSpotInstancesRequest method.
  16887. // req, resp := client.RequestSpotInstancesRequest(params)
  16888. //
  16889. // err := req.Send()
  16890. // if err == nil { // resp is now filled
  16891. // fmt.Println(resp)
  16892. // }
  16893. //
  16894. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  16895. func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req *request.Request, output *RequestSpotInstancesOutput) {
  16896. op := &request.Operation{
  16897. Name: opRequestSpotInstances,
  16898. HTTPMethod: "POST",
  16899. HTTPPath: "/",
  16900. }
  16901. if input == nil {
  16902. input = &RequestSpotInstancesInput{}
  16903. }
  16904. output = &RequestSpotInstancesOutput{}
  16905. req = c.newRequest(op, input, output)
  16906. return
  16907. }
  16908. // RequestSpotInstances API operation for Amazon Elastic Compute Cloud.
  16909. //
  16910. // Creates a Spot instance request. Spot instances are instances that Amazon
  16911. // EC2 launches when the bid price that you specify exceeds the current Spot
  16912. // price. Amazon EC2 periodically sets the Spot price based on available Spot
  16913. // Instance capacity and current Spot instance requests. For more information,
  16914. // see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  16915. // in the Amazon Elastic Compute Cloud User Guide.
  16916. //
  16917. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16918. // with awserr.Error's Code and Message methods to get detailed information about
  16919. // the error.
  16920. //
  16921. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16922. // API operation RequestSpotInstances for usage and error information.
  16923. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  16924. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) {
  16925. req, out := c.RequestSpotInstancesRequest(input)
  16926. return out, req.Send()
  16927. }
  16928. // RequestSpotInstancesWithContext is the same as RequestSpotInstances with the addition of
  16929. // the ability to pass a context and additional request options.
  16930. //
  16931. // See RequestSpotInstances for details on how to use this API operation.
  16932. //
  16933. // The context must be non-nil and will be used for request cancellation. If
  16934. // the context is nil a panic will occur. In the future the SDK may create
  16935. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16936. // for more information on using Contexts.
  16937. func (c *EC2) RequestSpotInstancesWithContext(ctx aws.Context, input *RequestSpotInstancesInput, opts ...request.Option) (*RequestSpotInstancesOutput, error) {
  16938. req, out := c.RequestSpotInstancesRequest(input)
  16939. req.SetContext(ctx)
  16940. req.ApplyOptions(opts...)
  16941. return out, req.Send()
  16942. }
  16943. const opResetImageAttribute = "ResetImageAttribute"
  16944. // ResetImageAttributeRequest generates a "aws/request.Request" representing the
  16945. // client's request for the ResetImageAttribute operation. The "output" return
  16946. // value can be used to capture response data after the request's "Send" method
  16947. // is called.
  16948. //
  16949. // See ResetImageAttribute for usage and error information.
  16950. //
  16951. // Creating a request object using this method should be used when you want to inject
  16952. // custom logic into the request's lifecycle using a custom handler, or if you want to
  16953. // access properties on the request object before or after sending the request. If
  16954. // you just want the service response, call the ResetImageAttribute method directly
  16955. // instead.
  16956. //
  16957. // Note: You must call the "Send" method on the returned request object in order
  16958. // to execute the request.
  16959. //
  16960. // // Example sending a request using the ResetImageAttributeRequest method.
  16961. // req, resp := client.ResetImageAttributeRequest(params)
  16962. //
  16963. // err := req.Send()
  16964. // if err == nil { // resp is now filled
  16965. // fmt.Println(resp)
  16966. // }
  16967. //
  16968. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  16969. func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req *request.Request, output *ResetImageAttributeOutput) {
  16970. op := &request.Operation{
  16971. Name: opResetImageAttribute,
  16972. HTTPMethod: "POST",
  16973. HTTPPath: "/",
  16974. }
  16975. if input == nil {
  16976. input = &ResetImageAttributeInput{}
  16977. }
  16978. output = &ResetImageAttributeOutput{}
  16979. req = c.newRequest(op, input, output)
  16980. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16981. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16982. return
  16983. }
  16984. // ResetImageAttribute API operation for Amazon Elastic Compute Cloud.
  16985. //
  16986. // Resets an attribute of an AMI to its default value.
  16987. //
  16988. // The productCodes attribute can't be reset.
  16989. //
  16990. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16991. // with awserr.Error's Code and Message methods to get detailed information about
  16992. // the error.
  16993. //
  16994. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16995. // API operation ResetImageAttribute for usage and error information.
  16996. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  16997. func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) {
  16998. req, out := c.ResetImageAttributeRequest(input)
  16999. return out, req.Send()
  17000. }
  17001. // ResetImageAttributeWithContext is the same as ResetImageAttribute with the addition of
  17002. // the ability to pass a context and additional request options.
  17003. //
  17004. // See ResetImageAttribute for details on how to use this API operation.
  17005. //
  17006. // The context must be non-nil and will be used for request cancellation. If
  17007. // the context is nil a panic will occur. In the future the SDK may create
  17008. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17009. // for more information on using Contexts.
  17010. func (c *EC2) ResetImageAttributeWithContext(ctx aws.Context, input *ResetImageAttributeInput, opts ...request.Option) (*ResetImageAttributeOutput, error) {
  17011. req, out := c.ResetImageAttributeRequest(input)
  17012. req.SetContext(ctx)
  17013. req.ApplyOptions(opts...)
  17014. return out, req.Send()
  17015. }
  17016. const opResetInstanceAttribute = "ResetInstanceAttribute"
  17017. // ResetInstanceAttributeRequest generates a "aws/request.Request" representing the
  17018. // client's request for the ResetInstanceAttribute operation. The "output" return
  17019. // value can be used to capture response data after the request's "Send" method
  17020. // is called.
  17021. //
  17022. // See ResetInstanceAttribute for usage and error information.
  17023. //
  17024. // Creating a request object using this method should be used when you want to inject
  17025. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17026. // access properties on the request object before or after sending the request. If
  17027. // you just want the service response, call the ResetInstanceAttribute method directly
  17028. // instead.
  17029. //
  17030. // Note: You must call the "Send" method on the returned request object in order
  17031. // to execute the request.
  17032. //
  17033. // // Example sending a request using the ResetInstanceAttributeRequest method.
  17034. // req, resp := client.ResetInstanceAttributeRequest(params)
  17035. //
  17036. // err := req.Send()
  17037. // if err == nil { // resp is now filled
  17038. // fmt.Println(resp)
  17039. // }
  17040. //
  17041. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  17042. func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) (req *request.Request, output *ResetInstanceAttributeOutput) {
  17043. op := &request.Operation{
  17044. Name: opResetInstanceAttribute,
  17045. HTTPMethod: "POST",
  17046. HTTPPath: "/",
  17047. }
  17048. if input == nil {
  17049. input = &ResetInstanceAttributeInput{}
  17050. }
  17051. output = &ResetInstanceAttributeOutput{}
  17052. req = c.newRequest(op, input, output)
  17053. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17054. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17055. return
  17056. }
  17057. // ResetInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  17058. //
  17059. // Resets an attribute of an instance to its default value. To reset the kernel
  17060. // or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck,
  17061. // the instance can be either running or stopped.
  17062. //
  17063. // The sourceDestCheck attribute controls whether source/destination checking
  17064. // is enabled. The default value is true, which means checking is enabled. This
  17065. // value must be false for a NAT instance to perform NAT. For more information,
  17066. // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  17067. // in the Amazon Virtual Private Cloud User Guide.
  17068. //
  17069. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17070. // with awserr.Error's Code and Message methods to get detailed information about
  17071. // the error.
  17072. //
  17073. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17074. // API operation ResetInstanceAttribute for usage and error information.
  17075. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  17076. func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) {
  17077. req, out := c.ResetInstanceAttributeRequest(input)
  17078. return out, req.Send()
  17079. }
  17080. // ResetInstanceAttributeWithContext is the same as ResetInstanceAttribute with the addition of
  17081. // the ability to pass a context and additional request options.
  17082. //
  17083. // See ResetInstanceAttribute for details on how to use this API operation.
  17084. //
  17085. // The context must be non-nil and will be used for request cancellation. If
  17086. // the context is nil a panic will occur. In the future the SDK may create
  17087. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17088. // for more information on using Contexts.
  17089. func (c *EC2) ResetInstanceAttributeWithContext(ctx aws.Context, input *ResetInstanceAttributeInput, opts ...request.Option) (*ResetInstanceAttributeOutput, error) {
  17090. req, out := c.ResetInstanceAttributeRequest(input)
  17091. req.SetContext(ctx)
  17092. req.ApplyOptions(opts...)
  17093. return out, req.Send()
  17094. }
  17095. const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute"
  17096. // ResetNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  17097. // client's request for the ResetNetworkInterfaceAttribute operation. The "output" return
  17098. // value can be used to capture response data after the request's "Send" method
  17099. // is called.
  17100. //
  17101. // See ResetNetworkInterfaceAttribute for usage and error information.
  17102. //
  17103. // Creating a request object using this method should be used when you want to inject
  17104. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17105. // access properties on the request object before or after sending the request. If
  17106. // you just want the service response, call the ResetNetworkInterfaceAttribute method directly
  17107. // instead.
  17108. //
  17109. // Note: You must call the "Send" method on the returned request object in order
  17110. // to execute the request.
  17111. //
  17112. // // Example sending a request using the ResetNetworkInterfaceAttributeRequest method.
  17113. // req, resp := client.ResetNetworkInterfaceAttributeRequest(params)
  17114. //
  17115. // err := req.Send()
  17116. // if err == nil { // resp is now filled
  17117. // fmt.Println(resp)
  17118. // }
  17119. //
  17120. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  17121. func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterfaceAttributeInput) (req *request.Request, output *ResetNetworkInterfaceAttributeOutput) {
  17122. op := &request.Operation{
  17123. Name: opResetNetworkInterfaceAttribute,
  17124. HTTPMethod: "POST",
  17125. HTTPPath: "/",
  17126. }
  17127. if input == nil {
  17128. input = &ResetNetworkInterfaceAttributeInput{}
  17129. }
  17130. output = &ResetNetworkInterfaceAttributeOutput{}
  17131. req = c.newRequest(op, input, output)
  17132. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17133. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17134. return
  17135. }
  17136. // ResetNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  17137. //
  17138. // Resets a network interface attribute. You can specify only one attribute
  17139. // at a time.
  17140. //
  17141. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17142. // with awserr.Error's Code and Message methods to get detailed information about
  17143. // the error.
  17144. //
  17145. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17146. // API operation ResetNetworkInterfaceAttribute for usage and error information.
  17147. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  17148. func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) {
  17149. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  17150. return out, req.Send()
  17151. }
  17152. // ResetNetworkInterfaceAttributeWithContext is the same as ResetNetworkInterfaceAttribute with the addition of
  17153. // the ability to pass a context and additional request options.
  17154. //
  17155. // See ResetNetworkInterfaceAttribute for details on how to use this API operation.
  17156. //
  17157. // The context must be non-nil and will be used for request cancellation. If
  17158. // the context is nil a panic will occur. In the future the SDK may create
  17159. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17160. // for more information on using Contexts.
  17161. func (c *EC2) ResetNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ResetNetworkInterfaceAttributeInput, opts ...request.Option) (*ResetNetworkInterfaceAttributeOutput, error) {
  17162. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  17163. req.SetContext(ctx)
  17164. req.ApplyOptions(opts...)
  17165. return out, req.Send()
  17166. }
  17167. const opResetSnapshotAttribute = "ResetSnapshotAttribute"
  17168. // ResetSnapshotAttributeRequest generates a "aws/request.Request" representing the
  17169. // client's request for the ResetSnapshotAttribute operation. The "output" return
  17170. // value can be used to capture response data after the request's "Send" method
  17171. // is called.
  17172. //
  17173. // See ResetSnapshotAttribute for usage and error information.
  17174. //
  17175. // Creating a request object using this method should be used when you want to inject
  17176. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17177. // access properties on the request object before or after sending the request. If
  17178. // you just want the service response, call the ResetSnapshotAttribute method directly
  17179. // instead.
  17180. //
  17181. // Note: You must call the "Send" method on the returned request object in order
  17182. // to execute the request.
  17183. //
  17184. // // Example sending a request using the ResetSnapshotAttributeRequest method.
  17185. // req, resp := client.ResetSnapshotAttributeRequest(params)
  17186. //
  17187. // err := req.Send()
  17188. // if err == nil { // resp is now filled
  17189. // fmt.Println(resp)
  17190. // }
  17191. //
  17192. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  17193. func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) (req *request.Request, output *ResetSnapshotAttributeOutput) {
  17194. op := &request.Operation{
  17195. Name: opResetSnapshotAttribute,
  17196. HTTPMethod: "POST",
  17197. HTTPPath: "/",
  17198. }
  17199. if input == nil {
  17200. input = &ResetSnapshotAttributeInput{}
  17201. }
  17202. output = &ResetSnapshotAttributeOutput{}
  17203. req = c.newRequest(op, input, output)
  17204. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17205. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17206. return
  17207. }
  17208. // ResetSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  17209. //
  17210. // Resets permission settings for the specified snapshot.
  17211. //
  17212. // For more information on modifying snapshot permissions, see Sharing Snapshots
  17213. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  17214. // in the Amazon Elastic Compute Cloud User Guide.
  17215. //
  17216. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17217. // with awserr.Error's Code and Message methods to get detailed information about
  17218. // the error.
  17219. //
  17220. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17221. // API operation ResetSnapshotAttribute for usage and error information.
  17222. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  17223. func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) {
  17224. req, out := c.ResetSnapshotAttributeRequest(input)
  17225. return out, req.Send()
  17226. }
  17227. // ResetSnapshotAttributeWithContext is the same as ResetSnapshotAttribute with the addition of
  17228. // the ability to pass a context and additional request options.
  17229. //
  17230. // See ResetSnapshotAttribute for details on how to use this API operation.
  17231. //
  17232. // The context must be non-nil and will be used for request cancellation. If
  17233. // the context is nil a panic will occur. In the future the SDK may create
  17234. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17235. // for more information on using Contexts.
  17236. func (c *EC2) ResetSnapshotAttributeWithContext(ctx aws.Context, input *ResetSnapshotAttributeInput, opts ...request.Option) (*ResetSnapshotAttributeOutput, error) {
  17237. req, out := c.ResetSnapshotAttributeRequest(input)
  17238. req.SetContext(ctx)
  17239. req.ApplyOptions(opts...)
  17240. return out, req.Send()
  17241. }
  17242. const opRestoreAddressToClassic = "RestoreAddressToClassic"
  17243. // RestoreAddressToClassicRequest generates a "aws/request.Request" representing the
  17244. // client's request for the RestoreAddressToClassic operation. The "output" return
  17245. // value can be used to capture response data after the request's "Send" method
  17246. // is called.
  17247. //
  17248. // See RestoreAddressToClassic for usage and error information.
  17249. //
  17250. // Creating a request object using this method should be used when you want to inject
  17251. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17252. // access properties on the request object before or after sending the request. If
  17253. // you just want the service response, call the RestoreAddressToClassic method directly
  17254. // instead.
  17255. //
  17256. // Note: You must call the "Send" method on the returned request object in order
  17257. // to execute the request.
  17258. //
  17259. // // Example sending a request using the RestoreAddressToClassicRequest method.
  17260. // req, resp := client.RestoreAddressToClassicRequest(params)
  17261. //
  17262. // err := req.Send()
  17263. // if err == nil { // resp is now filled
  17264. // fmt.Println(resp)
  17265. // }
  17266. //
  17267. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  17268. func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput) (req *request.Request, output *RestoreAddressToClassicOutput) {
  17269. op := &request.Operation{
  17270. Name: opRestoreAddressToClassic,
  17271. HTTPMethod: "POST",
  17272. HTTPPath: "/",
  17273. }
  17274. if input == nil {
  17275. input = &RestoreAddressToClassicInput{}
  17276. }
  17277. output = &RestoreAddressToClassicOutput{}
  17278. req = c.newRequest(op, input, output)
  17279. return
  17280. }
  17281. // RestoreAddressToClassic API operation for Amazon Elastic Compute Cloud.
  17282. //
  17283. // Restores an Elastic IP address that was previously moved to the EC2-VPC platform
  17284. // back to the EC2-Classic platform. You cannot move an Elastic IP address that
  17285. // was originally allocated for use in EC2-VPC. The Elastic IP address must
  17286. // not be associated with an instance or network interface.
  17287. //
  17288. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17289. // with awserr.Error's Code and Message methods to get detailed information about
  17290. // the error.
  17291. //
  17292. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17293. // API operation RestoreAddressToClassic for usage and error information.
  17294. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  17295. func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) {
  17296. req, out := c.RestoreAddressToClassicRequest(input)
  17297. return out, req.Send()
  17298. }
  17299. // RestoreAddressToClassicWithContext is the same as RestoreAddressToClassic with the addition of
  17300. // the ability to pass a context and additional request options.
  17301. //
  17302. // See RestoreAddressToClassic for details on how to use this API operation.
  17303. //
  17304. // The context must be non-nil and will be used for request cancellation. If
  17305. // the context is nil a panic will occur. In the future the SDK may create
  17306. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17307. // for more information on using Contexts.
  17308. func (c *EC2) RestoreAddressToClassicWithContext(ctx aws.Context, input *RestoreAddressToClassicInput, opts ...request.Option) (*RestoreAddressToClassicOutput, error) {
  17309. req, out := c.RestoreAddressToClassicRequest(input)
  17310. req.SetContext(ctx)
  17311. req.ApplyOptions(opts...)
  17312. return out, req.Send()
  17313. }
  17314. const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress"
  17315. // RevokeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  17316. // client's request for the RevokeSecurityGroupEgress operation. The "output" return
  17317. // value can be used to capture response data after the request's "Send" method
  17318. // is called.
  17319. //
  17320. // See RevokeSecurityGroupEgress for usage and error information.
  17321. //
  17322. // Creating a request object using this method should be used when you want to inject
  17323. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17324. // access properties on the request object before or after sending the request. If
  17325. // you just want the service response, call the RevokeSecurityGroupEgress method directly
  17326. // instead.
  17327. //
  17328. // Note: You must call the "Send" method on the returned request object in order
  17329. // to execute the request.
  17330. //
  17331. // // Example sending a request using the RevokeSecurityGroupEgressRequest method.
  17332. // req, resp := client.RevokeSecurityGroupEgressRequest(params)
  17333. //
  17334. // err := req.Send()
  17335. // if err == nil { // resp is now filled
  17336. // fmt.Println(resp)
  17337. // }
  17338. //
  17339. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  17340. func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressInput) (req *request.Request, output *RevokeSecurityGroupEgressOutput) {
  17341. op := &request.Operation{
  17342. Name: opRevokeSecurityGroupEgress,
  17343. HTTPMethod: "POST",
  17344. HTTPPath: "/",
  17345. }
  17346. if input == nil {
  17347. input = &RevokeSecurityGroupEgressInput{}
  17348. }
  17349. output = &RevokeSecurityGroupEgressOutput{}
  17350. req = c.newRequest(op, input, output)
  17351. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17352. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17353. return
  17354. }
  17355. // RevokeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud.
  17356. //
  17357. // [EC2-VPC only] Removes one or more egress rules from a security group for
  17358. // EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic.
  17359. // The values that you specify in the revoke request (for example, ports) must
  17360. // match the existing rule's values for the rule to be revoked.
  17361. //
  17362. // Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source
  17363. // security group. For the TCP and UDP protocols, you must also specify the
  17364. // destination port or range of ports. For the ICMP protocol, you must also
  17365. // specify the ICMP type and code.
  17366. //
  17367. // Rule changes are propagated to instances within the security group as quickly
  17368. // as possible. However, a small delay might occur.
  17369. //
  17370. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17371. // with awserr.Error's Code and Message methods to get detailed information about
  17372. // the error.
  17373. //
  17374. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17375. // API operation RevokeSecurityGroupEgress for usage and error information.
  17376. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  17377. func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) {
  17378. req, out := c.RevokeSecurityGroupEgressRequest(input)
  17379. return out, req.Send()
  17380. }
  17381. // RevokeSecurityGroupEgressWithContext is the same as RevokeSecurityGroupEgress with the addition of
  17382. // the ability to pass a context and additional request options.
  17383. //
  17384. // See RevokeSecurityGroupEgress for details on how to use this API operation.
  17385. //
  17386. // The context must be non-nil and will be used for request cancellation. If
  17387. // the context is nil a panic will occur. In the future the SDK may create
  17388. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17389. // for more information on using Contexts.
  17390. func (c *EC2) RevokeSecurityGroupEgressWithContext(ctx aws.Context, input *RevokeSecurityGroupEgressInput, opts ...request.Option) (*RevokeSecurityGroupEgressOutput, error) {
  17391. req, out := c.RevokeSecurityGroupEgressRequest(input)
  17392. req.SetContext(ctx)
  17393. req.ApplyOptions(opts...)
  17394. return out, req.Send()
  17395. }
  17396. const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress"
  17397. // RevokeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  17398. // client's request for the RevokeSecurityGroupIngress operation. The "output" return
  17399. // value can be used to capture response data after the request's "Send" method
  17400. // is called.
  17401. //
  17402. // See RevokeSecurityGroupIngress for usage and error information.
  17403. //
  17404. // Creating a request object using this method should be used when you want to inject
  17405. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17406. // access properties on the request object before or after sending the request. If
  17407. // you just want the service response, call the RevokeSecurityGroupIngress method directly
  17408. // instead.
  17409. //
  17410. // Note: You must call the "Send" method on the returned request object in order
  17411. // to execute the request.
  17412. //
  17413. // // Example sending a request using the RevokeSecurityGroupIngressRequest method.
  17414. // req, resp := client.RevokeSecurityGroupIngressRequest(params)
  17415. //
  17416. // err := req.Send()
  17417. // if err == nil { // resp is now filled
  17418. // fmt.Println(resp)
  17419. // }
  17420. //
  17421. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  17422. func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngressInput) (req *request.Request, output *RevokeSecurityGroupIngressOutput) {
  17423. op := &request.Operation{
  17424. Name: opRevokeSecurityGroupIngress,
  17425. HTTPMethod: "POST",
  17426. HTTPPath: "/",
  17427. }
  17428. if input == nil {
  17429. input = &RevokeSecurityGroupIngressInput{}
  17430. }
  17431. output = &RevokeSecurityGroupIngressOutput{}
  17432. req = c.newRequest(op, input, output)
  17433. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17434. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17435. return
  17436. }
  17437. // RevokeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud.
  17438. //
  17439. // Removes one or more ingress rules from a security group. The values that
  17440. // you specify in the revoke request (for example, ports) must match the existing
  17441. // rule's values for the rule to be removed.
  17442. //
  17443. // Each rule consists of the protocol and the CIDR range or source security
  17444. // group. For the TCP and UDP protocols, you must also specify the destination
  17445. // port or range of ports. For the ICMP protocol, you must also specify the
  17446. // ICMP type and code.
  17447. //
  17448. // Rule changes are propagated to instances within the security group as quickly
  17449. // as possible. However, a small delay might occur.
  17450. //
  17451. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17452. // with awserr.Error's Code and Message methods to get detailed information about
  17453. // the error.
  17454. //
  17455. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17456. // API operation RevokeSecurityGroupIngress for usage and error information.
  17457. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  17458. func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) {
  17459. req, out := c.RevokeSecurityGroupIngressRequest(input)
  17460. return out, req.Send()
  17461. }
  17462. // RevokeSecurityGroupIngressWithContext is the same as RevokeSecurityGroupIngress with the addition of
  17463. // the ability to pass a context and additional request options.
  17464. //
  17465. // See RevokeSecurityGroupIngress for details on how to use this API operation.
  17466. //
  17467. // The context must be non-nil and will be used for request cancellation. If
  17468. // the context is nil a panic will occur. In the future the SDK may create
  17469. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17470. // for more information on using Contexts.
  17471. func (c *EC2) RevokeSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeSecurityGroupIngressInput, opts ...request.Option) (*RevokeSecurityGroupIngressOutput, error) {
  17472. req, out := c.RevokeSecurityGroupIngressRequest(input)
  17473. req.SetContext(ctx)
  17474. req.ApplyOptions(opts...)
  17475. return out, req.Send()
  17476. }
  17477. const opRunInstances = "RunInstances"
  17478. // RunInstancesRequest generates a "aws/request.Request" representing the
  17479. // client's request for the RunInstances operation. The "output" return
  17480. // value can be used to capture response data after the request's "Send" method
  17481. // is called.
  17482. //
  17483. // See RunInstances for usage and error information.
  17484. //
  17485. // Creating a request object using this method should be used when you want to inject
  17486. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17487. // access properties on the request object before or after sending the request. If
  17488. // you just want the service response, call the RunInstances method directly
  17489. // instead.
  17490. //
  17491. // Note: You must call the "Send" method on the returned request object in order
  17492. // to execute the request.
  17493. //
  17494. // // Example sending a request using the RunInstancesRequest method.
  17495. // req, resp := client.RunInstancesRequest(params)
  17496. //
  17497. // err := req.Send()
  17498. // if err == nil { // resp is now filled
  17499. // fmt.Println(resp)
  17500. // }
  17501. //
  17502. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  17503. func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *Reservation) {
  17504. op := &request.Operation{
  17505. Name: opRunInstances,
  17506. HTTPMethod: "POST",
  17507. HTTPPath: "/",
  17508. }
  17509. if input == nil {
  17510. input = &RunInstancesInput{}
  17511. }
  17512. output = &Reservation{}
  17513. req = c.newRequest(op, input, output)
  17514. return
  17515. }
  17516. // RunInstances API operation for Amazon Elastic Compute Cloud.
  17517. //
  17518. // Launches the specified number of instances using an AMI for which you have
  17519. // permissions.
  17520. //
  17521. // You can specify a number of options, or leave the default options. The following
  17522. // rules apply:
  17523. //
  17524. // * [EC2-VPC] If you don't specify a subnet ID, we choose a default subnet
  17525. // from your default VPC for you. If you don't have a default VPC, you must
  17526. // specify a subnet ID in the request.
  17527. //
  17528. // * [EC2-Classic] If don't specify an Availability Zone, we choose one for
  17529. // you.
  17530. //
  17531. // * Some instance types must be launched into a VPC. If you do not have
  17532. // a default VPC, or if you do not specify a subnet ID, the request fails.
  17533. // 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).
  17534. //
  17535. // * [EC2-VPC] All instances have a network interface with a primary private
  17536. // IPv4 address. If you don't specify this address, we choose one from the
  17537. // IPv4 range of your subnet.
  17538. //
  17539. // * Not all instance types support IPv6 addresses. For more information,
  17540. // see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  17541. //
  17542. // * If you don't specify a security group ID, we use the default security
  17543. // group. For more information, see Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html).
  17544. //
  17545. // * If any of the AMIs have a product code attached for which the user has
  17546. // not subscribed, the request fails.
  17547. //
  17548. // To ensure faster instance launches, break up large requests into smaller
  17549. // batches. For example, create 5 separate launch requests for 100 instances
  17550. // each instead of 1 launch request for 500 instances.
  17551. //
  17552. // An instance is ready for you to use when it's in the running state. You can
  17553. // check the state of your instance using DescribeInstances. You can tag instances
  17554. // and EBS volumes during launch, after launch, or both. For more information,
  17555. // see CreateTags and Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  17556. //
  17557. // Linux instances have access to the public key of the key pair at boot. You
  17558. // can use this key to provide secure access to the instance. Amazon EC2 public
  17559. // images use this feature to provide secure access without passwords. For more
  17560. // information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  17561. // in the Amazon Elastic Compute Cloud User Guide.
  17562. //
  17563. // For troubleshooting, see What To Do If An Instance Immediately Terminates
  17564. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html),
  17565. // and Troubleshooting Connecting to Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html)
  17566. // in the Amazon Elastic Compute Cloud User Guide.
  17567. //
  17568. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17569. // with awserr.Error's Code and Message methods to get detailed information about
  17570. // the error.
  17571. //
  17572. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17573. // API operation RunInstances for usage and error information.
  17574. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  17575. func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) {
  17576. req, out := c.RunInstancesRequest(input)
  17577. return out, req.Send()
  17578. }
  17579. // RunInstancesWithContext is the same as RunInstances with the addition of
  17580. // the ability to pass a context and additional request options.
  17581. //
  17582. // See RunInstances for details on how to use this API operation.
  17583. //
  17584. // The context must be non-nil and will be used for request cancellation. If
  17585. // the context is nil a panic will occur. In the future the SDK may create
  17586. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17587. // for more information on using Contexts.
  17588. func (c *EC2) RunInstancesWithContext(ctx aws.Context, input *RunInstancesInput, opts ...request.Option) (*Reservation, error) {
  17589. req, out := c.RunInstancesRequest(input)
  17590. req.SetContext(ctx)
  17591. req.ApplyOptions(opts...)
  17592. return out, req.Send()
  17593. }
  17594. const opRunScheduledInstances = "RunScheduledInstances"
  17595. // RunScheduledInstancesRequest generates a "aws/request.Request" representing the
  17596. // client's request for the RunScheduledInstances operation. The "output" return
  17597. // value can be used to capture response data after the request's "Send" method
  17598. // is called.
  17599. //
  17600. // See RunScheduledInstances for usage and error information.
  17601. //
  17602. // Creating a request object using this method should be used when you want to inject
  17603. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17604. // access properties on the request object before or after sending the request. If
  17605. // you just want the service response, call the RunScheduledInstances method directly
  17606. // instead.
  17607. //
  17608. // Note: You must call the "Send" method on the returned request object in order
  17609. // to execute the request.
  17610. //
  17611. // // Example sending a request using the RunScheduledInstancesRequest method.
  17612. // req, resp := client.RunScheduledInstancesRequest(params)
  17613. //
  17614. // err := req.Send()
  17615. // if err == nil { // resp is now filled
  17616. // fmt.Println(resp)
  17617. // }
  17618. //
  17619. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  17620. func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (req *request.Request, output *RunScheduledInstancesOutput) {
  17621. op := &request.Operation{
  17622. Name: opRunScheduledInstances,
  17623. HTTPMethod: "POST",
  17624. HTTPPath: "/",
  17625. }
  17626. if input == nil {
  17627. input = &RunScheduledInstancesInput{}
  17628. }
  17629. output = &RunScheduledInstancesOutput{}
  17630. req = c.newRequest(op, input, output)
  17631. return
  17632. }
  17633. // RunScheduledInstances API operation for Amazon Elastic Compute Cloud.
  17634. //
  17635. // Launches the specified Scheduled Instances.
  17636. //
  17637. // Before you can launch a Scheduled Instance, you must purchase it and obtain
  17638. // an identifier using PurchaseScheduledInstances.
  17639. //
  17640. // You must launch a Scheduled Instance during its scheduled time period. You
  17641. // can't stop or reboot a Scheduled Instance, but you can terminate it as needed.
  17642. // If you terminate a Scheduled Instance before the current scheduled time period
  17643. // ends, you can launch it again after a few minutes. For more information,
  17644. // see Scheduled Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html)
  17645. // in the Amazon Elastic Compute Cloud User Guide.
  17646. //
  17647. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17648. // with awserr.Error's Code and Message methods to get detailed information about
  17649. // the error.
  17650. //
  17651. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17652. // API operation RunScheduledInstances for usage and error information.
  17653. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  17654. func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) {
  17655. req, out := c.RunScheduledInstancesRequest(input)
  17656. return out, req.Send()
  17657. }
  17658. // RunScheduledInstancesWithContext is the same as RunScheduledInstances with the addition of
  17659. // the ability to pass a context and additional request options.
  17660. //
  17661. // See RunScheduledInstances for details on how to use this API operation.
  17662. //
  17663. // The context must be non-nil and will be used for request cancellation. If
  17664. // the context is nil a panic will occur. In the future the SDK may create
  17665. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17666. // for more information on using Contexts.
  17667. func (c *EC2) RunScheduledInstancesWithContext(ctx aws.Context, input *RunScheduledInstancesInput, opts ...request.Option) (*RunScheduledInstancesOutput, error) {
  17668. req, out := c.RunScheduledInstancesRequest(input)
  17669. req.SetContext(ctx)
  17670. req.ApplyOptions(opts...)
  17671. return out, req.Send()
  17672. }
  17673. const opStartInstances = "StartInstances"
  17674. // StartInstancesRequest generates a "aws/request.Request" representing the
  17675. // client's request for the StartInstances operation. The "output" return
  17676. // value can be used to capture response data after the request's "Send" method
  17677. // is called.
  17678. //
  17679. // See StartInstances for usage and error information.
  17680. //
  17681. // Creating a request object using this method should be used when you want to inject
  17682. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17683. // access properties on the request object before or after sending the request. If
  17684. // you just want the service response, call the StartInstances method directly
  17685. // instead.
  17686. //
  17687. // Note: You must call the "Send" method on the returned request object in order
  17688. // to execute the request.
  17689. //
  17690. // // Example sending a request using the StartInstancesRequest method.
  17691. // req, resp := client.StartInstancesRequest(params)
  17692. //
  17693. // err := req.Send()
  17694. // if err == nil { // resp is now filled
  17695. // fmt.Println(resp)
  17696. // }
  17697. //
  17698. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  17699. func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput) {
  17700. op := &request.Operation{
  17701. Name: opStartInstances,
  17702. HTTPMethod: "POST",
  17703. HTTPPath: "/",
  17704. }
  17705. if input == nil {
  17706. input = &StartInstancesInput{}
  17707. }
  17708. output = &StartInstancesOutput{}
  17709. req = c.newRequest(op, input, output)
  17710. return
  17711. }
  17712. // StartInstances API operation for Amazon Elastic Compute Cloud.
  17713. //
  17714. // Starts an Amazon EBS-backed AMI that you've previously stopped.
  17715. //
  17716. // Instances that use Amazon EBS volumes as their root devices can be quickly
  17717. // stopped and started. When an instance is stopped, the compute resources are
  17718. // released and you are not billed for hourly instance usage. However, your
  17719. // root partition Amazon EBS volume remains, continues to persist your data,
  17720. // and you are charged for Amazon EBS volume usage. You can restart your instance
  17721. // at any time. Each time you transition an instance from stopped to started,
  17722. // Amazon EC2 charges a full instance hour, even if transitions happen multiple
  17723. // times within a single hour.
  17724. //
  17725. // Before stopping an instance, make sure it is in a state from which it can
  17726. // be restarted. Stopping an instance does not preserve data stored in RAM.
  17727. //
  17728. // Performing this operation on an instance that uses an instance store as its
  17729. // root device returns an error.
  17730. //
  17731. // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html)
  17732. // in the Amazon Elastic Compute Cloud User Guide.
  17733. //
  17734. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17735. // with awserr.Error's Code and Message methods to get detailed information about
  17736. // the error.
  17737. //
  17738. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17739. // API operation StartInstances for usage and error information.
  17740. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  17741. func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) {
  17742. req, out := c.StartInstancesRequest(input)
  17743. return out, req.Send()
  17744. }
  17745. // StartInstancesWithContext is the same as StartInstances with the addition of
  17746. // the ability to pass a context and additional request options.
  17747. //
  17748. // See StartInstances for details on how to use this API operation.
  17749. //
  17750. // The context must be non-nil and will be used for request cancellation. If
  17751. // the context is nil a panic will occur. In the future the SDK may create
  17752. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17753. // for more information on using Contexts.
  17754. func (c *EC2) StartInstancesWithContext(ctx aws.Context, input *StartInstancesInput, opts ...request.Option) (*StartInstancesOutput, error) {
  17755. req, out := c.StartInstancesRequest(input)
  17756. req.SetContext(ctx)
  17757. req.ApplyOptions(opts...)
  17758. return out, req.Send()
  17759. }
  17760. const opStopInstances = "StopInstances"
  17761. // StopInstancesRequest generates a "aws/request.Request" representing the
  17762. // client's request for the StopInstances operation. The "output" return
  17763. // value can be used to capture response data after the request's "Send" method
  17764. // is called.
  17765. //
  17766. // See StopInstances for usage and error information.
  17767. //
  17768. // Creating a request object using this method should be used when you want to inject
  17769. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17770. // access properties on the request object before or after sending the request. If
  17771. // you just want the service response, call the StopInstances method directly
  17772. // instead.
  17773. //
  17774. // Note: You must call the "Send" method on the returned request object in order
  17775. // to execute the request.
  17776. //
  17777. // // Example sending a request using the StopInstancesRequest method.
  17778. // req, resp := client.StopInstancesRequest(params)
  17779. //
  17780. // err := req.Send()
  17781. // if err == nil { // resp is now filled
  17782. // fmt.Println(resp)
  17783. // }
  17784. //
  17785. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  17786. func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput) {
  17787. op := &request.Operation{
  17788. Name: opStopInstances,
  17789. HTTPMethod: "POST",
  17790. HTTPPath: "/",
  17791. }
  17792. if input == nil {
  17793. input = &StopInstancesInput{}
  17794. }
  17795. output = &StopInstancesOutput{}
  17796. req = c.newRequest(op, input, output)
  17797. return
  17798. }
  17799. // StopInstances API operation for Amazon Elastic Compute Cloud.
  17800. //
  17801. // Stops an Amazon EBS-backed instance.
  17802. //
  17803. // We don't charge hourly usage for a stopped instance, or data transfer fees;
  17804. // however, your root partition Amazon EBS volume remains, continues to persist
  17805. // your data, and you are charged for Amazon EBS volume usage. Each time you
  17806. // transition an instance from stopped to started, Amazon EC2 charges a full
  17807. // instance hour, even if transitions happen multiple times within a single
  17808. // hour.
  17809. //
  17810. // You can't start or stop Spot instances, and you can't stop instance store-backed
  17811. // instances.
  17812. //
  17813. // When you stop an instance, we shut it down. You can restart your instance
  17814. // at any time. Before stopping an instance, make sure it is in a state from
  17815. // which it can be restarted. Stopping an instance does not preserve data stored
  17816. // in RAM.
  17817. //
  17818. // Stopping an instance is different to rebooting or terminating it. For example,
  17819. // when you stop an instance, the root device and any other devices attached
  17820. // to the instance persist. When you terminate an instance, the root device
  17821. // and any other devices attached during the instance launch are automatically
  17822. // deleted. For more information about the differences between rebooting, stopping,
  17823. // and terminating instances, see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  17824. // in the Amazon Elastic Compute Cloud User Guide.
  17825. //
  17826. // When you stop an instance, we attempt to shut it down forcibly after a short
  17827. // while. If your instance appears stuck in the stopping state after a period
  17828. // of time, there may be an issue with the underlying host computer. For more
  17829. // information, see Troubleshooting Stopping Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html)
  17830. // in the Amazon Elastic Compute Cloud User Guide.
  17831. //
  17832. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17833. // with awserr.Error's Code and Message methods to get detailed information about
  17834. // the error.
  17835. //
  17836. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17837. // API operation StopInstances for usage and error information.
  17838. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  17839. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) {
  17840. req, out := c.StopInstancesRequest(input)
  17841. return out, req.Send()
  17842. }
  17843. // StopInstancesWithContext is the same as StopInstances with the addition of
  17844. // the ability to pass a context and additional request options.
  17845. //
  17846. // See StopInstances for details on how to use this API operation.
  17847. //
  17848. // The context must be non-nil and will be used for request cancellation. If
  17849. // the context is nil a panic will occur. In the future the SDK may create
  17850. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17851. // for more information on using Contexts.
  17852. func (c *EC2) StopInstancesWithContext(ctx aws.Context, input *StopInstancesInput, opts ...request.Option) (*StopInstancesOutput, error) {
  17853. req, out := c.StopInstancesRequest(input)
  17854. req.SetContext(ctx)
  17855. req.ApplyOptions(opts...)
  17856. return out, req.Send()
  17857. }
  17858. const opTerminateInstances = "TerminateInstances"
  17859. // TerminateInstancesRequest generates a "aws/request.Request" representing the
  17860. // client's request for the TerminateInstances operation. The "output" return
  17861. // value can be used to capture response data after the request's "Send" method
  17862. // is called.
  17863. //
  17864. // See TerminateInstances for usage and error information.
  17865. //
  17866. // Creating a request object using this method should be used when you want to inject
  17867. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17868. // access properties on the request object before or after sending the request. If
  17869. // you just want the service response, call the TerminateInstances method directly
  17870. // instead.
  17871. //
  17872. // Note: You must call the "Send" method on the returned request object in order
  17873. // to execute the request.
  17874. //
  17875. // // Example sending a request using the TerminateInstancesRequest method.
  17876. // req, resp := client.TerminateInstancesRequest(params)
  17877. //
  17878. // err := req.Send()
  17879. // if err == nil { // resp is now filled
  17880. // fmt.Println(resp)
  17881. // }
  17882. //
  17883. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  17884. func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput) {
  17885. op := &request.Operation{
  17886. Name: opTerminateInstances,
  17887. HTTPMethod: "POST",
  17888. HTTPPath: "/",
  17889. }
  17890. if input == nil {
  17891. input = &TerminateInstancesInput{}
  17892. }
  17893. output = &TerminateInstancesOutput{}
  17894. req = c.newRequest(op, input, output)
  17895. return
  17896. }
  17897. // TerminateInstances API operation for Amazon Elastic Compute Cloud.
  17898. //
  17899. // Shuts down one or more instances. This operation is idempotent; if you terminate
  17900. // an instance more than once, each call succeeds.
  17901. //
  17902. // If you specify multiple instances and the request fails (for example, because
  17903. // of a single incorrect instance ID), none of the instances are terminated.
  17904. //
  17905. // Terminated instances remain visible after termination (for approximately
  17906. // one hour).
  17907. //
  17908. // By default, Amazon EC2 deletes all EBS volumes that were attached when the
  17909. // instance launched. Volumes attached after instance launch continue running.
  17910. //
  17911. // You can stop, start, and terminate EBS-backed instances. You can only terminate
  17912. // instance store-backed instances. What happens to an instance differs if you
  17913. // stop it or terminate it. For example, when you stop an instance, the root
  17914. // device and any other devices attached to the instance persist. When you terminate
  17915. // an instance, any attached EBS volumes with the DeleteOnTermination block
  17916. // device mapping parameter set to true are automatically deleted. For more
  17917. // information about the differences between stopping and terminating instances,
  17918. // see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  17919. // in the Amazon Elastic Compute Cloud User Guide.
  17920. //
  17921. // For more information about troubleshooting, see Troubleshooting Terminating
  17922. // Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html)
  17923. // in the Amazon Elastic Compute Cloud User Guide.
  17924. //
  17925. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17926. // with awserr.Error's Code and Message methods to get detailed information about
  17927. // the error.
  17928. //
  17929. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17930. // API operation TerminateInstances for usage and error information.
  17931. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  17932. func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) {
  17933. req, out := c.TerminateInstancesRequest(input)
  17934. return out, req.Send()
  17935. }
  17936. // TerminateInstancesWithContext is the same as TerminateInstances with the addition of
  17937. // the ability to pass a context and additional request options.
  17938. //
  17939. // See TerminateInstances for details on how to use this API operation.
  17940. //
  17941. // The context must be non-nil and will be used for request cancellation. If
  17942. // the context is nil a panic will occur. In the future the SDK may create
  17943. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17944. // for more information on using Contexts.
  17945. func (c *EC2) TerminateInstancesWithContext(ctx aws.Context, input *TerminateInstancesInput, opts ...request.Option) (*TerminateInstancesOutput, error) {
  17946. req, out := c.TerminateInstancesRequest(input)
  17947. req.SetContext(ctx)
  17948. req.ApplyOptions(opts...)
  17949. return out, req.Send()
  17950. }
  17951. const opUnassignIpv6Addresses = "UnassignIpv6Addresses"
  17952. // UnassignIpv6AddressesRequest generates a "aws/request.Request" representing the
  17953. // client's request for the UnassignIpv6Addresses operation. The "output" return
  17954. // value can be used to capture response data after the request's "Send" method
  17955. // is called.
  17956. //
  17957. // See UnassignIpv6Addresses for usage and error information.
  17958. //
  17959. // Creating a request object using this method should be used when you want to inject
  17960. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17961. // access properties on the request object before or after sending the request. If
  17962. // you just want the service response, call the UnassignIpv6Addresses method directly
  17963. // instead.
  17964. //
  17965. // Note: You must call the "Send" method on the returned request object in order
  17966. // to execute the request.
  17967. //
  17968. // // Example sending a request using the UnassignIpv6AddressesRequest method.
  17969. // req, resp := client.UnassignIpv6AddressesRequest(params)
  17970. //
  17971. // err := req.Send()
  17972. // if err == nil { // resp is now filled
  17973. // fmt.Println(resp)
  17974. // }
  17975. //
  17976. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  17977. func (c *EC2) UnassignIpv6AddressesRequest(input *UnassignIpv6AddressesInput) (req *request.Request, output *UnassignIpv6AddressesOutput) {
  17978. op := &request.Operation{
  17979. Name: opUnassignIpv6Addresses,
  17980. HTTPMethod: "POST",
  17981. HTTPPath: "/",
  17982. }
  17983. if input == nil {
  17984. input = &UnassignIpv6AddressesInput{}
  17985. }
  17986. output = &UnassignIpv6AddressesOutput{}
  17987. req = c.newRequest(op, input, output)
  17988. return
  17989. }
  17990. // UnassignIpv6Addresses API operation for Amazon Elastic Compute Cloud.
  17991. //
  17992. // Unassigns one or more IPv6 addresses from a network interface.
  17993. //
  17994. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17995. // with awserr.Error's Code and Message methods to get detailed information about
  17996. // the error.
  17997. //
  17998. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17999. // API operation UnassignIpv6Addresses for usage and error information.
  18000. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  18001. func (c *EC2) UnassignIpv6Addresses(input *UnassignIpv6AddressesInput) (*UnassignIpv6AddressesOutput, error) {
  18002. req, out := c.UnassignIpv6AddressesRequest(input)
  18003. return out, req.Send()
  18004. }
  18005. // UnassignIpv6AddressesWithContext is the same as UnassignIpv6Addresses with the addition of
  18006. // the ability to pass a context and additional request options.
  18007. //
  18008. // See UnassignIpv6Addresses for details on how to use this API operation.
  18009. //
  18010. // The context must be non-nil and will be used for request cancellation. If
  18011. // the context is nil a panic will occur. In the future the SDK may create
  18012. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18013. // for more information on using Contexts.
  18014. func (c *EC2) UnassignIpv6AddressesWithContext(ctx aws.Context, input *UnassignIpv6AddressesInput, opts ...request.Option) (*UnassignIpv6AddressesOutput, error) {
  18015. req, out := c.UnassignIpv6AddressesRequest(input)
  18016. req.SetContext(ctx)
  18017. req.ApplyOptions(opts...)
  18018. return out, req.Send()
  18019. }
  18020. const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses"
  18021. // UnassignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  18022. // client's request for the UnassignPrivateIpAddresses operation. The "output" return
  18023. // value can be used to capture response data after the request's "Send" method
  18024. // is called.
  18025. //
  18026. // See UnassignPrivateIpAddresses for usage and error information.
  18027. //
  18028. // Creating a request object using this method should be used when you want to inject
  18029. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18030. // access properties on the request object before or after sending the request. If
  18031. // you just want the service response, call the UnassignPrivateIpAddresses method directly
  18032. // instead.
  18033. //
  18034. // Note: You must call the "Send" method on the returned request object in order
  18035. // to execute the request.
  18036. //
  18037. // // Example sending a request using the UnassignPrivateIpAddressesRequest method.
  18038. // req, resp := client.UnassignPrivateIpAddressesRequest(params)
  18039. //
  18040. // err := req.Send()
  18041. // if err == nil { // resp is now filled
  18042. // fmt.Println(resp)
  18043. // }
  18044. //
  18045. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  18046. func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddressesInput) (req *request.Request, output *UnassignPrivateIpAddressesOutput) {
  18047. op := &request.Operation{
  18048. Name: opUnassignPrivateIpAddresses,
  18049. HTTPMethod: "POST",
  18050. HTTPPath: "/",
  18051. }
  18052. if input == nil {
  18053. input = &UnassignPrivateIpAddressesInput{}
  18054. }
  18055. output = &UnassignPrivateIpAddressesOutput{}
  18056. req = c.newRequest(op, input, output)
  18057. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  18058. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  18059. return
  18060. }
  18061. // UnassignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud.
  18062. //
  18063. // Unassigns one or more secondary private IP addresses from a network interface.
  18064. //
  18065. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18066. // with awserr.Error's Code and Message methods to get detailed information about
  18067. // the error.
  18068. //
  18069. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18070. // API operation UnassignPrivateIpAddresses for usage and error information.
  18071. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  18072. func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) {
  18073. req, out := c.UnassignPrivateIpAddressesRequest(input)
  18074. return out, req.Send()
  18075. }
  18076. // UnassignPrivateIpAddressesWithContext is the same as UnassignPrivateIpAddresses with the addition of
  18077. // the ability to pass a context and additional request options.
  18078. //
  18079. // See UnassignPrivateIpAddresses for details on how to use this API operation.
  18080. //
  18081. // The context must be non-nil and will be used for request cancellation. If
  18082. // the context is nil a panic will occur. In the future the SDK may create
  18083. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18084. // for more information on using Contexts.
  18085. func (c *EC2) UnassignPrivateIpAddressesWithContext(ctx aws.Context, input *UnassignPrivateIpAddressesInput, opts ...request.Option) (*UnassignPrivateIpAddressesOutput, error) {
  18086. req, out := c.UnassignPrivateIpAddressesRequest(input)
  18087. req.SetContext(ctx)
  18088. req.ApplyOptions(opts...)
  18089. return out, req.Send()
  18090. }
  18091. const opUnmonitorInstances = "UnmonitorInstances"
  18092. // UnmonitorInstancesRequest generates a "aws/request.Request" representing the
  18093. // client's request for the UnmonitorInstances operation. The "output" return
  18094. // value can be used to capture response data after the request's "Send" method
  18095. // is called.
  18096. //
  18097. // See UnmonitorInstances for usage and error information.
  18098. //
  18099. // Creating a request object using this method should be used when you want to inject
  18100. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18101. // access properties on the request object before or after sending the request. If
  18102. // you just want the service response, call the UnmonitorInstances method directly
  18103. // instead.
  18104. //
  18105. // Note: You must call the "Send" method on the returned request object in order
  18106. // to execute the request.
  18107. //
  18108. // // Example sending a request using the UnmonitorInstancesRequest method.
  18109. // req, resp := client.UnmonitorInstancesRequest(params)
  18110. //
  18111. // err := req.Send()
  18112. // if err == nil { // resp is now filled
  18113. // fmt.Println(resp)
  18114. // }
  18115. //
  18116. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  18117. func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *request.Request, output *UnmonitorInstancesOutput) {
  18118. op := &request.Operation{
  18119. Name: opUnmonitorInstances,
  18120. HTTPMethod: "POST",
  18121. HTTPPath: "/",
  18122. }
  18123. if input == nil {
  18124. input = &UnmonitorInstancesInput{}
  18125. }
  18126. output = &UnmonitorInstancesOutput{}
  18127. req = c.newRequest(op, input, output)
  18128. return
  18129. }
  18130. // UnmonitorInstances API operation for Amazon Elastic Compute Cloud.
  18131. //
  18132. // Disables detailed monitoring for a running instance. For more information,
  18133. // see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  18134. // in the Amazon Elastic Compute Cloud User Guide.
  18135. //
  18136. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18137. // with awserr.Error's Code and Message methods to get detailed information about
  18138. // the error.
  18139. //
  18140. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18141. // API operation UnmonitorInstances for usage and error information.
  18142. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  18143. func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInstancesOutput, error) {
  18144. req, out := c.UnmonitorInstancesRequest(input)
  18145. return out, req.Send()
  18146. }
  18147. // UnmonitorInstancesWithContext is the same as UnmonitorInstances with the addition of
  18148. // the ability to pass a context and additional request options.
  18149. //
  18150. // See UnmonitorInstances for details on how to use this API operation.
  18151. //
  18152. // The context must be non-nil and will be used for request cancellation. If
  18153. // the context is nil a panic will occur. In the future the SDK may create
  18154. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18155. // for more information on using Contexts.
  18156. func (c *EC2) UnmonitorInstancesWithContext(ctx aws.Context, input *UnmonitorInstancesInput, opts ...request.Option) (*UnmonitorInstancesOutput, error) {
  18157. req, out := c.UnmonitorInstancesRequest(input)
  18158. req.SetContext(ctx)
  18159. req.ApplyOptions(opts...)
  18160. return out, req.Send()
  18161. }
  18162. // Contains the parameters for accepting the quote.
  18163. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuoteRequest
  18164. type AcceptReservedInstancesExchangeQuoteInput struct {
  18165. _ struct{} `type:"structure"`
  18166. // Checks whether you have the required permissions for the action, without
  18167. // actually making the request, and provides an error response. If you have
  18168. // the required permissions, the error response is DryRunOperation. Otherwise,
  18169. // it is UnauthorizedOperation.
  18170. DryRun *bool `type:"boolean"`
  18171. // The IDs of the Convertible Reserved Instances to exchange for other Convertible
  18172. // Reserved Instances of the same or higher value.
  18173. //
  18174. // ReservedInstanceIds is a required field
  18175. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  18176. // The configurations of the Convertible Reserved Instance offerings that you
  18177. // are purchasing in this exchange.
  18178. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  18179. }
  18180. // String returns the string representation
  18181. func (s AcceptReservedInstancesExchangeQuoteInput) String() string {
  18182. return awsutil.Prettify(s)
  18183. }
  18184. // GoString returns the string representation
  18185. func (s AcceptReservedInstancesExchangeQuoteInput) GoString() string {
  18186. return s.String()
  18187. }
  18188. // Validate inspects the fields of the type to determine if they are valid.
  18189. func (s *AcceptReservedInstancesExchangeQuoteInput) Validate() error {
  18190. invalidParams := request.ErrInvalidParams{Context: "AcceptReservedInstancesExchangeQuoteInput"}
  18191. if s.ReservedInstanceIds == nil {
  18192. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  18193. }
  18194. if s.TargetConfigurations != nil {
  18195. for i, v := range s.TargetConfigurations {
  18196. if v == nil {
  18197. continue
  18198. }
  18199. if err := v.Validate(); err != nil {
  18200. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  18201. }
  18202. }
  18203. }
  18204. if invalidParams.Len() > 0 {
  18205. return invalidParams
  18206. }
  18207. return nil
  18208. }
  18209. // SetDryRun sets the DryRun field's value.
  18210. func (s *AcceptReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *AcceptReservedInstancesExchangeQuoteInput {
  18211. s.DryRun = &v
  18212. return s
  18213. }
  18214. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  18215. func (s *AcceptReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *AcceptReservedInstancesExchangeQuoteInput {
  18216. s.ReservedInstanceIds = v
  18217. return s
  18218. }
  18219. // SetTargetConfigurations sets the TargetConfigurations field's value.
  18220. func (s *AcceptReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *AcceptReservedInstancesExchangeQuoteInput {
  18221. s.TargetConfigurations = v
  18222. return s
  18223. }
  18224. // The result of the exchange and whether it was successful.
  18225. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuoteResult
  18226. type AcceptReservedInstancesExchangeQuoteOutput struct {
  18227. _ struct{} `type:"structure"`
  18228. // The ID of the successful exchange.
  18229. ExchangeId *string `locationName:"exchangeId" type:"string"`
  18230. }
  18231. // String returns the string representation
  18232. func (s AcceptReservedInstancesExchangeQuoteOutput) String() string {
  18233. return awsutil.Prettify(s)
  18234. }
  18235. // GoString returns the string representation
  18236. func (s AcceptReservedInstancesExchangeQuoteOutput) GoString() string {
  18237. return s.String()
  18238. }
  18239. // SetExchangeId sets the ExchangeId field's value.
  18240. func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *AcceptReservedInstancesExchangeQuoteOutput {
  18241. s.ExchangeId = &v
  18242. return s
  18243. }
  18244. // Contains the parameters for AcceptVpcPeeringConnection.
  18245. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnectionRequest
  18246. type AcceptVpcPeeringConnectionInput struct {
  18247. _ struct{} `type:"structure"`
  18248. // Checks whether you have the required permissions for the action, without
  18249. // actually making the request, and provides an error response. If you have
  18250. // the required permissions, the error response is DryRunOperation. Otherwise,
  18251. // it is UnauthorizedOperation.
  18252. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18253. // The ID of the VPC peering connection.
  18254. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  18255. }
  18256. // String returns the string representation
  18257. func (s AcceptVpcPeeringConnectionInput) String() string {
  18258. return awsutil.Prettify(s)
  18259. }
  18260. // GoString returns the string representation
  18261. func (s AcceptVpcPeeringConnectionInput) GoString() string {
  18262. return s.String()
  18263. }
  18264. // SetDryRun sets the DryRun field's value.
  18265. func (s *AcceptVpcPeeringConnectionInput) SetDryRun(v bool) *AcceptVpcPeeringConnectionInput {
  18266. s.DryRun = &v
  18267. return s
  18268. }
  18269. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  18270. func (s *AcceptVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *AcceptVpcPeeringConnectionInput {
  18271. s.VpcPeeringConnectionId = &v
  18272. return s
  18273. }
  18274. // Contains the output of AcceptVpcPeeringConnection.
  18275. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnectionResult
  18276. type AcceptVpcPeeringConnectionOutput struct {
  18277. _ struct{} `type:"structure"`
  18278. // Information about the VPC peering connection.
  18279. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  18280. }
  18281. // String returns the string representation
  18282. func (s AcceptVpcPeeringConnectionOutput) String() string {
  18283. return awsutil.Prettify(s)
  18284. }
  18285. // GoString returns the string representation
  18286. func (s AcceptVpcPeeringConnectionOutput) GoString() string {
  18287. return s.String()
  18288. }
  18289. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  18290. func (s *AcceptVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *AcceptVpcPeeringConnectionOutput {
  18291. s.VpcPeeringConnection = v
  18292. return s
  18293. }
  18294. // Describes an account attribute.
  18295. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AccountAttribute
  18296. type AccountAttribute struct {
  18297. _ struct{} `type:"structure"`
  18298. // The name of the account attribute.
  18299. AttributeName *string `locationName:"attributeName" type:"string"`
  18300. // One or more values for the account attribute.
  18301. AttributeValues []*AccountAttributeValue `locationName:"attributeValueSet" locationNameList:"item" type:"list"`
  18302. }
  18303. // String returns the string representation
  18304. func (s AccountAttribute) String() string {
  18305. return awsutil.Prettify(s)
  18306. }
  18307. // GoString returns the string representation
  18308. func (s AccountAttribute) GoString() string {
  18309. return s.String()
  18310. }
  18311. // SetAttributeName sets the AttributeName field's value.
  18312. func (s *AccountAttribute) SetAttributeName(v string) *AccountAttribute {
  18313. s.AttributeName = &v
  18314. return s
  18315. }
  18316. // SetAttributeValues sets the AttributeValues field's value.
  18317. func (s *AccountAttribute) SetAttributeValues(v []*AccountAttributeValue) *AccountAttribute {
  18318. s.AttributeValues = v
  18319. return s
  18320. }
  18321. // Describes a value of an account attribute.
  18322. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AccountAttributeValue
  18323. type AccountAttributeValue struct {
  18324. _ struct{} `type:"structure"`
  18325. // The value of the attribute.
  18326. AttributeValue *string `locationName:"attributeValue" type:"string"`
  18327. }
  18328. // String returns the string representation
  18329. func (s AccountAttributeValue) String() string {
  18330. return awsutil.Prettify(s)
  18331. }
  18332. // GoString returns the string representation
  18333. func (s AccountAttributeValue) GoString() string {
  18334. return s.String()
  18335. }
  18336. // SetAttributeValue sets the AttributeValue field's value.
  18337. func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeValue {
  18338. s.AttributeValue = &v
  18339. return s
  18340. }
  18341. // Describes a running instance in a Spot fleet.
  18342. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ActiveInstance
  18343. type ActiveInstance struct {
  18344. _ struct{} `type:"structure"`
  18345. // The health status of the instance. If the status of either the instance status
  18346. // check or the system status check is impaired, the health status of the instance
  18347. // is unhealthy. Otherwise, the health status is healthy.
  18348. InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthStatus"`
  18349. // The ID of the instance.
  18350. InstanceId *string `locationName:"instanceId" type:"string"`
  18351. // The instance type.
  18352. InstanceType *string `locationName:"instanceType" type:"string"`
  18353. // The ID of the Spot instance request.
  18354. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  18355. }
  18356. // String returns the string representation
  18357. func (s ActiveInstance) String() string {
  18358. return awsutil.Prettify(s)
  18359. }
  18360. // GoString returns the string representation
  18361. func (s ActiveInstance) GoString() string {
  18362. return s.String()
  18363. }
  18364. // SetInstanceHealth sets the InstanceHealth field's value.
  18365. func (s *ActiveInstance) SetInstanceHealth(v string) *ActiveInstance {
  18366. s.InstanceHealth = &v
  18367. return s
  18368. }
  18369. // SetInstanceId sets the InstanceId field's value.
  18370. func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance {
  18371. s.InstanceId = &v
  18372. return s
  18373. }
  18374. // SetInstanceType sets the InstanceType field's value.
  18375. func (s *ActiveInstance) SetInstanceType(v string) *ActiveInstance {
  18376. s.InstanceType = &v
  18377. return s
  18378. }
  18379. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  18380. func (s *ActiveInstance) SetSpotInstanceRequestId(v string) *ActiveInstance {
  18381. s.SpotInstanceRequestId = &v
  18382. return s
  18383. }
  18384. // Describes an Elastic IP address.
  18385. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Address
  18386. type Address struct {
  18387. _ struct{} `type:"structure"`
  18388. // The ID representing the allocation of the address for use with EC2-VPC.
  18389. AllocationId *string `locationName:"allocationId" type:"string"`
  18390. // The ID representing the association of the address with an instance in a
  18391. // VPC.
  18392. AssociationId *string `locationName:"associationId" type:"string"`
  18393. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  18394. // (standard) or instances in a VPC (vpc).
  18395. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  18396. // The ID of the instance that the address is associated with (if any).
  18397. InstanceId *string `locationName:"instanceId" type:"string"`
  18398. // The ID of the network interface.
  18399. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  18400. // The ID of the AWS account that owns the network interface.
  18401. NetworkInterfaceOwnerId *string `locationName:"networkInterfaceOwnerId" type:"string"`
  18402. // The private IP address associated with the Elastic IP address.
  18403. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  18404. // The Elastic IP address.
  18405. PublicIp *string `locationName:"publicIp" type:"string"`
  18406. }
  18407. // String returns the string representation
  18408. func (s Address) String() string {
  18409. return awsutil.Prettify(s)
  18410. }
  18411. // GoString returns the string representation
  18412. func (s Address) GoString() string {
  18413. return s.String()
  18414. }
  18415. // SetAllocationId sets the AllocationId field's value.
  18416. func (s *Address) SetAllocationId(v string) *Address {
  18417. s.AllocationId = &v
  18418. return s
  18419. }
  18420. // SetAssociationId sets the AssociationId field's value.
  18421. func (s *Address) SetAssociationId(v string) *Address {
  18422. s.AssociationId = &v
  18423. return s
  18424. }
  18425. // SetDomain sets the Domain field's value.
  18426. func (s *Address) SetDomain(v string) *Address {
  18427. s.Domain = &v
  18428. return s
  18429. }
  18430. // SetInstanceId sets the InstanceId field's value.
  18431. func (s *Address) SetInstanceId(v string) *Address {
  18432. s.InstanceId = &v
  18433. return s
  18434. }
  18435. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  18436. func (s *Address) SetNetworkInterfaceId(v string) *Address {
  18437. s.NetworkInterfaceId = &v
  18438. return s
  18439. }
  18440. // SetNetworkInterfaceOwnerId sets the NetworkInterfaceOwnerId field's value.
  18441. func (s *Address) SetNetworkInterfaceOwnerId(v string) *Address {
  18442. s.NetworkInterfaceOwnerId = &v
  18443. return s
  18444. }
  18445. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  18446. func (s *Address) SetPrivateIpAddress(v string) *Address {
  18447. s.PrivateIpAddress = &v
  18448. return s
  18449. }
  18450. // SetPublicIp sets the PublicIp field's value.
  18451. func (s *Address) SetPublicIp(v string) *Address {
  18452. s.PublicIp = &v
  18453. return s
  18454. }
  18455. // Contains the parameters for AllocateAddress.
  18456. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddressRequest
  18457. type AllocateAddressInput struct {
  18458. _ struct{} `type:"structure"`
  18459. // Set to vpc to allocate the address for use with instances in a VPC.
  18460. //
  18461. // Default: The address is for use with instances in EC2-Classic.
  18462. Domain *string `type:"string" enum:"DomainType"`
  18463. // Checks whether you have the required permissions for the action, without
  18464. // actually making the request, and provides an error response. If you have
  18465. // the required permissions, the error response is DryRunOperation. Otherwise,
  18466. // it is UnauthorizedOperation.
  18467. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18468. }
  18469. // String returns the string representation
  18470. func (s AllocateAddressInput) String() string {
  18471. return awsutil.Prettify(s)
  18472. }
  18473. // GoString returns the string representation
  18474. func (s AllocateAddressInput) GoString() string {
  18475. return s.String()
  18476. }
  18477. // SetDomain sets the Domain field's value.
  18478. func (s *AllocateAddressInput) SetDomain(v string) *AllocateAddressInput {
  18479. s.Domain = &v
  18480. return s
  18481. }
  18482. // SetDryRun sets the DryRun field's value.
  18483. func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput {
  18484. s.DryRun = &v
  18485. return s
  18486. }
  18487. // Contains the output of AllocateAddress.
  18488. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddressResult
  18489. type AllocateAddressOutput struct {
  18490. _ struct{} `type:"structure"`
  18491. // [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic
  18492. // IP address for use with instances in a VPC.
  18493. AllocationId *string `locationName:"allocationId" type:"string"`
  18494. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  18495. // (standard) or instances in a VPC (vpc).
  18496. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  18497. // The Elastic IP address.
  18498. PublicIp *string `locationName:"publicIp" type:"string"`
  18499. }
  18500. // String returns the string representation
  18501. func (s AllocateAddressOutput) String() string {
  18502. return awsutil.Prettify(s)
  18503. }
  18504. // GoString returns the string representation
  18505. func (s AllocateAddressOutput) GoString() string {
  18506. return s.String()
  18507. }
  18508. // SetAllocationId sets the AllocationId field's value.
  18509. func (s *AllocateAddressOutput) SetAllocationId(v string) *AllocateAddressOutput {
  18510. s.AllocationId = &v
  18511. return s
  18512. }
  18513. // SetDomain sets the Domain field's value.
  18514. func (s *AllocateAddressOutput) SetDomain(v string) *AllocateAddressOutput {
  18515. s.Domain = &v
  18516. return s
  18517. }
  18518. // SetPublicIp sets the PublicIp field's value.
  18519. func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput {
  18520. s.PublicIp = &v
  18521. return s
  18522. }
  18523. // Contains the parameters for AllocateHosts.
  18524. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHostsRequest
  18525. type AllocateHostsInput struct {
  18526. _ struct{} `type:"structure"`
  18527. // This is enabled by default. This property allows instances to be automatically
  18528. // placed onto available Dedicated Hosts, when you are launching instances without
  18529. // specifying a host ID.
  18530. //
  18531. // Default: Enabled
  18532. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  18533. // The Availability Zone for the Dedicated Hosts.
  18534. //
  18535. // AvailabilityZone is a required field
  18536. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  18537. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  18538. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  18539. // in the Amazon Elastic Compute Cloud User Guide.
  18540. ClientToken *string `locationName:"clientToken" type:"string"`
  18541. // Specify the instance type that you want your Dedicated Hosts to be configured
  18542. // for. When you specify the instance type, that is the only instance type that
  18543. // you can launch onto that host.
  18544. //
  18545. // InstanceType is a required field
  18546. InstanceType *string `locationName:"instanceType" type:"string" required:"true"`
  18547. // The number of Dedicated Hosts you want to allocate to your account with these
  18548. // parameters.
  18549. //
  18550. // Quantity is a required field
  18551. Quantity *int64 `locationName:"quantity" type:"integer" required:"true"`
  18552. }
  18553. // String returns the string representation
  18554. func (s AllocateHostsInput) String() string {
  18555. return awsutil.Prettify(s)
  18556. }
  18557. // GoString returns the string representation
  18558. func (s AllocateHostsInput) GoString() string {
  18559. return s.String()
  18560. }
  18561. // Validate inspects the fields of the type to determine if they are valid.
  18562. func (s *AllocateHostsInput) Validate() error {
  18563. invalidParams := request.ErrInvalidParams{Context: "AllocateHostsInput"}
  18564. if s.AvailabilityZone == nil {
  18565. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  18566. }
  18567. if s.InstanceType == nil {
  18568. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  18569. }
  18570. if s.Quantity == nil {
  18571. invalidParams.Add(request.NewErrParamRequired("Quantity"))
  18572. }
  18573. if invalidParams.Len() > 0 {
  18574. return invalidParams
  18575. }
  18576. return nil
  18577. }
  18578. // SetAutoPlacement sets the AutoPlacement field's value.
  18579. func (s *AllocateHostsInput) SetAutoPlacement(v string) *AllocateHostsInput {
  18580. s.AutoPlacement = &v
  18581. return s
  18582. }
  18583. // SetAvailabilityZone sets the AvailabilityZone field's value.
  18584. func (s *AllocateHostsInput) SetAvailabilityZone(v string) *AllocateHostsInput {
  18585. s.AvailabilityZone = &v
  18586. return s
  18587. }
  18588. // SetClientToken sets the ClientToken field's value.
  18589. func (s *AllocateHostsInput) SetClientToken(v string) *AllocateHostsInput {
  18590. s.ClientToken = &v
  18591. return s
  18592. }
  18593. // SetInstanceType sets the InstanceType field's value.
  18594. func (s *AllocateHostsInput) SetInstanceType(v string) *AllocateHostsInput {
  18595. s.InstanceType = &v
  18596. return s
  18597. }
  18598. // SetQuantity sets the Quantity field's value.
  18599. func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput {
  18600. s.Quantity = &v
  18601. return s
  18602. }
  18603. // Contains the output of AllocateHosts.
  18604. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHostsResult
  18605. type AllocateHostsOutput struct {
  18606. _ struct{} `type:"structure"`
  18607. // The ID of the allocated Dedicated Host. This is used when you want to launch
  18608. // an instance onto a specific host.
  18609. HostIds []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  18610. }
  18611. // String returns the string representation
  18612. func (s AllocateHostsOutput) String() string {
  18613. return awsutil.Prettify(s)
  18614. }
  18615. // GoString returns the string representation
  18616. func (s AllocateHostsOutput) GoString() string {
  18617. return s.String()
  18618. }
  18619. // SetHostIds sets the HostIds field's value.
  18620. func (s *AllocateHostsOutput) SetHostIds(v []*string) *AllocateHostsOutput {
  18621. s.HostIds = v
  18622. return s
  18623. }
  18624. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6AddressesRequest
  18625. type AssignIpv6AddressesInput struct {
  18626. _ struct{} `type:"structure"`
  18627. // The number of IPv6 addresses to assign to the network interface. Amazon EC2
  18628. // automatically selects the IPv6 addresses from the subnet range. You can't
  18629. // use this option if specifying specific IPv6 addresses.
  18630. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  18631. // One or more specific IPv6 addresses to be assigned to the network interface.
  18632. // You can't use this option if you're specifying a number of IPv6 addresses.
  18633. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  18634. // The ID of the network interface.
  18635. //
  18636. // NetworkInterfaceId is a required field
  18637. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  18638. }
  18639. // String returns the string representation
  18640. func (s AssignIpv6AddressesInput) String() string {
  18641. return awsutil.Prettify(s)
  18642. }
  18643. // GoString returns the string representation
  18644. func (s AssignIpv6AddressesInput) GoString() string {
  18645. return s.String()
  18646. }
  18647. // Validate inspects the fields of the type to determine if they are valid.
  18648. func (s *AssignIpv6AddressesInput) Validate() error {
  18649. invalidParams := request.ErrInvalidParams{Context: "AssignIpv6AddressesInput"}
  18650. if s.NetworkInterfaceId == nil {
  18651. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  18652. }
  18653. if invalidParams.Len() > 0 {
  18654. return invalidParams
  18655. }
  18656. return nil
  18657. }
  18658. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  18659. func (s *AssignIpv6AddressesInput) SetIpv6AddressCount(v int64) *AssignIpv6AddressesInput {
  18660. s.Ipv6AddressCount = &v
  18661. return s
  18662. }
  18663. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  18664. func (s *AssignIpv6AddressesInput) SetIpv6Addresses(v []*string) *AssignIpv6AddressesInput {
  18665. s.Ipv6Addresses = v
  18666. return s
  18667. }
  18668. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  18669. func (s *AssignIpv6AddressesInput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesInput {
  18670. s.NetworkInterfaceId = &v
  18671. return s
  18672. }
  18673. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6AddressesResult
  18674. type AssignIpv6AddressesOutput struct {
  18675. _ struct{} `type:"structure"`
  18676. // The IPv6 addresses assigned to the network interface.
  18677. AssignedIpv6Addresses []*string `locationName:"assignedIpv6Addresses" locationNameList:"item" type:"list"`
  18678. // The ID of the network interface.
  18679. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  18680. }
  18681. // String returns the string representation
  18682. func (s AssignIpv6AddressesOutput) String() string {
  18683. return awsutil.Prettify(s)
  18684. }
  18685. // GoString returns the string representation
  18686. func (s AssignIpv6AddressesOutput) GoString() string {
  18687. return s.String()
  18688. }
  18689. // SetAssignedIpv6Addresses sets the AssignedIpv6Addresses field's value.
  18690. func (s *AssignIpv6AddressesOutput) SetAssignedIpv6Addresses(v []*string) *AssignIpv6AddressesOutput {
  18691. s.AssignedIpv6Addresses = v
  18692. return s
  18693. }
  18694. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  18695. func (s *AssignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesOutput {
  18696. s.NetworkInterfaceId = &v
  18697. return s
  18698. }
  18699. // Contains the parameters for AssignPrivateIpAddresses.
  18700. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddressesRequest
  18701. type AssignPrivateIpAddressesInput struct {
  18702. _ struct{} `type:"structure"`
  18703. // Indicates whether to allow an IP address that is already assigned to another
  18704. // network interface or instance to be reassigned to the specified network interface.
  18705. AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"`
  18706. // The ID of the network interface.
  18707. //
  18708. // NetworkInterfaceId is a required field
  18709. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  18710. // One or more IP addresses to be assigned as a secondary private IP address
  18711. // to the network interface. You can't specify this parameter when also specifying
  18712. // a number of secondary IP addresses.
  18713. //
  18714. // If you don't specify an IP address, Amazon EC2 automatically selects an IP
  18715. // address within the subnet range.
  18716. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"`
  18717. // The number of secondary IP addresses to assign to the network interface.
  18718. // You can't specify this parameter when also specifying private IP addresses.
  18719. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  18720. }
  18721. // String returns the string representation
  18722. func (s AssignPrivateIpAddressesInput) String() string {
  18723. return awsutil.Prettify(s)
  18724. }
  18725. // GoString returns the string representation
  18726. func (s AssignPrivateIpAddressesInput) GoString() string {
  18727. return s.String()
  18728. }
  18729. // Validate inspects the fields of the type to determine if they are valid.
  18730. func (s *AssignPrivateIpAddressesInput) Validate() error {
  18731. invalidParams := request.ErrInvalidParams{Context: "AssignPrivateIpAddressesInput"}
  18732. if s.NetworkInterfaceId == nil {
  18733. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  18734. }
  18735. if invalidParams.Len() > 0 {
  18736. return invalidParams
  18737. }
  18738. return nil
  18739. }
  18740. // SetAllowReassignment sets the AllowReassignment field's value.
  18741. func (s *AssignPrivateIpAddressesInput) SetAllowReassignment(v bool) *AssignPrivateIpAddressesInput {
  18742. s.AllowReassignment = &v
  18743. return s
  18744. }
  18745. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  18746. func (s *AssignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesInput {
  18747. s.NetworkInterfaceId = &v
  18748. return s
  18749. }
  18750. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  18751. func (s *AssignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *AssignPrivateIpAddressesInput {
  18752. s.PrivateIpAddresses = v
  18753. return s
  18754. }
  18755. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  18756. func (s *AssignPrivateIpAddressesInput) SetSecondaryPrivateIpAddressCount(v int64) *AssignPrivateIpAddressesInput {
  18757. s.SecondaryPrivateIpAddressCount = &v
  18758. return s
  18759. }
  18760. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddressesOutput
  18761. type AssignPrivateIpAddressesOutput struct {
  18762. _ struct{} `type:"structure"`
  18763. }
  18764. // String returns the string representation
  18765. func (s AssignPrivateIpAddressesOutput) String() string {
  18766. return awsutil.Prettify(s)
  18767. }
  18768. // GoString returns the string representation
  18769. func (s AssignPrivateIpAddressesOutput) GoString() string {
  18770. return s.String()
  18771. }
  18772. // Contains the parameters for AssociateAddress.
  18773. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddressRequest
  18774. type AssociateAddressInput struct {
  18775. _ struct{} `type:"structure"`
  18776. // [EC2-VPC] The allocation ID. This is required for EC2-VPC.
  18777. AllocationId *string `type:"string"`
  18778. // [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic
  18779. // IP address that is already associated with an instance or network interface
  18780. // to be reassociated with the specified instance or network interface. Otherwise,
  18781. // the operation fails. In a VPC in an EC2-VPC-only account, reassociation is
  18782. // automatic, therefore you can specify false to ensure the operation fails
  18783. // if the Elastic IP address is already associated with another resource.
  18784. AllowReassociation *bool `locationName:"allowReassociation" type:"boolean"`
  18785. // Checks whether you have the required permissions for the action, without
  18786. // actually making the request, and provides an error response. If you have
  18787. // the required permissions, the error response is DryRunOperation. Otherwise,
  18788. // it is UnauthorizedOperation.
  18789. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18790. // The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you
  18791. // can specify either the instance ID or the network interface ID, but not both.
  18792. // The operation fails if you specify an instance ID unless exactly one network
  18793. // interface is attached.
  18794. InstanceId *string `type:"string"`
  18795. // [EC2-VPC] The ID of the network interface. If the instance has more than
  18796. // one network interface, you must specify a network interface ID.
  18797. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  18798. // [EC2-VPC] The primary or secondary private IP address to associate with the
  18799. // Elastic IP address. If no private IP address is specified, the Elastic IP
  18800. // address is associated with the primary private IP address.
  18801. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  18802. // The Elastic IP address. This is required for EC2-Classic.
  18803. PublicIp *string `type:"string"`
  18804. }
  18805. // String returns the string representation
  18806. func (s AssociateAddressInput) String() string {
  18807. return awsutil.Prettify(s)
  18808. }
  18809. // GoString returns the string representation
  18810. func (s AssociateAddressInput) GoString() string {
  18811. return s.String()
  18812. }
  18813. // SetAllocationId sets the AllocationId field's value.
  18814. func (s *AssociateAddressInput) SetAllocationId(v string) *AssociateAddressInput {
  18815. s.AllocationId = &v
  18816. return s
  18817. }
  18818. // SetAllowReassociation sets the AllowReassociation field's value.
  18819. func (s *AssociateAddressInput) SetAllowReassociation(v bool) *AssociateAddressInput {
  18820. s.AllowReassociation = &v
  18821. return s
  18822. }
  18823. // SetDryRun sets the DryRun field's value.
  18824. func (s *AssociateAddressInput) SetDryRun(v bool) *AssociateAddressInput {
  18825. s.DryRun = &v
  18826. return s
  18827. }
  18828. // SetInstanceId sets the InstanceId field's value.
  18829. func (s *AssociateAddressInput) SetInstanceId(v string) *AssociateAddressInput {
  18830. s.InstanceId = &v
  18831. return s
  18832. }
  18833. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  18834. func (s *AssociateAddressInput) SetNetworkInterfaceId(v string) *AssociateAddressInput {
  18835. s.NetworkInterfaceId = &v
  18836. return s
  18837. }
  18838. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  18839. func (s *AssociateAddressInput) SetPrivateIpAddress(v string) *AssociateAddressInput {
  18840. s.PrivateIpAddress = &v
  18841. return s
  18842. }
  18843. // SetPublicIp sets the PublicIp field's value.
  18844. func (s *AssociateAddressInput) SetPublicIp(v string) *AssociateAddressInput {
  18845. s.PublicIp = &v
  18846. return s
  18847. }
  18848. // Contains the output of AssociateAddress.
  18849. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddressResult
  18850. type AssociateAddressOutput struct {
  18851. _ struct{} `type:"structure"`
  18852. // [EC2-VPC] The ID that represents the association of the Elastic IP address
  18853. // with an instance.
  18854. AssociationId *string `locationName:"associationId" type:"string"`
  18855. }
  18856. // String returns the string representation
  18857. func (s AssociateAddressOutput) String() string {
  18858. return awsutil.Prettify(s)
  18859. }
  18860. // GoString returns the string representation
  18861. func (s AssociateAddressOutput) GoString() string {
  18862. return s.String()
  18863. }
  18864. // SetAssociationId sets the AssociationId field's value.
  18865. func (s *AssociateAddressOutput) SetAssociationId(v string) *AssociateAddressOutput {
  18866. s.AssociationId = &v
  18867. return s
  18868. }
  18869. // Contains the parameters for AssociateDhcpOptions.
  18870. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptionsRequest
  18871. type AssociateDhcpOptionsInput struct {
  18872. _ struct{} `type:"structure"`
  18873. // The ID of the DHCP options set, or default to associate no DHCP options with
  18874. // the VPC.
  18875. //
  18876. // DhcpOptionsId is a required field
  18877. DhcpOptionsId *string `type:"string" required:"true"`
  18878. // Checks whether you have the required permissions for the action, without
  18879. // actually making the request, and provides an error response. If you have
  18880. // the required permissions, the error response is DryRunOperation. Otherwise,
  18881. // it is UnauthorizedOperation.
  18882. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18883. // The ID of the VPC.
  18884. //
  18885. // VpcId is a required field
  18886. VpcId *string `type:"string" required:"true"`
  18887. }
  18888. // String returns the string representation
  18889. func (s AssociateDhcpOptionsInput) String() string {
  18890. return awsutil.Prettify(s)
  18891. }
  18892. // GoString returns the string representation
  18893. func (s AssociateDhcpOptionsInput) GoString() string {
  18894. return s.String()
  18895. }
  18896. // Validate inspects the fields of the type to determine if they are valid.
  18897. func (s *AssociateDhcpOptionsInput) Validate() error {
  18898. invalidParams := request.ErrInvalidParams{Context: "AssociateDhcpOptionsInput"}
  18899. if s.DhcpOptionsId == nil {
  18900. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  18901. }
  18902. if s.VpcId == nil {
  18903. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  18904. }
  18905. if invalidParams.Len() > 0 {
  18906. return invalidParams
  18907. }
  18908. return nil
  18909. }
  18910. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  18911. func (s *AssociateDhcpOptionsInput) SetDhcpOptionsId(v string) *AssociateDhcpOptionsInput {
  18912. s.DhcpOptionsId = &v
  18913. return s
  18914. }
  18915. // SetDryRun sets the DryRun field's value.
  18916. func (s *AssociateDhcpOptionsInput) SetDryRun(v bool) *AssociateDhcpOptionsInput {
  18917. s.DryRun = &v
  18918. return s
  18919. }
  18920. // SetVpcId sets the VpcId field's value.
  18921. func (s *AssociateDhcpOptionsInput) SetVpcId(v string) *AssociateDhcpOptionsInput {
  18922. s.VpcId = &v
  18923. return s
  18924. }
  18925. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptionsOutput
  18926. type AssociateDhcpOptionsOutput struct {
  18927. _ struct{} `type:"structure"`
  18928. }
  18929. // String returns the string representation
  18930. func (s AssociateDhcpOptionsOutput) String() string {
  18931. return awsutil.Prettify(s)
  18932. }
  18933. // GoString returns the string representation
  18934. func (s AssociateDhcpOptionsOutput) GoString() string {
  18935. return s.String()
  18936. }
  18937. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfileRequest
  18938. type AssociateIamInstanceProfileInput struct {
  18939. _ struct{} `type:"structure"`
  18940. // The IAM instance profile.
  18941. //
  18942. // IamInstanceProfile is a required field
  18943. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  18944. // The ID of the instance.
  18945. //
  18946. // InstanceId is a required field
  18947. InstanceId *string `type:"string" required:"true"`
  18948. }
  18949. // String returns the string representation
  18950. func (s AssociateIamInstanceProfileInput) String() string {
  18951. return awsutil.Prettify(s)
  18952. }
  18953. // GoString returns the string representation
  18954. func (s AssociateIamInstanceProfileInput) GoString() string {
  18955. return s.String()
  18956. }
  18957. // Validate inspects the fields of the type to determine if they are valid.
  18958. func (s *AssociateIamInstanceProfileInput) Validate() error {
  18959. invalidParams := request.ErrInvalidParams{Context: "AssociateIamInstanceProfileInput"}
  18960. if s.IamInstanceProfile == nil {
  18961. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  18962. }
  18963. if s.InstanceId == nil {
  18964. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  18965. }
  18966. if invalidParams.Len() > 0 {
  18967. return invalidParams
  18968. }
  18969. return nil
  18970. }
  18971. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  18972. func (s *AssociateIamInstanceProfileInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *AssociateIamInstanceProfileInput {
  18973. s.IamInstanceProfile = v
  18974. return s
  18975. }
  18976. // SetInstanceId sets the InstanceId field's value.
  18977. func (s *AssociateIamInstanceProfileInput) SetInstanceId(v string) *AssociateIamInstanceProfileInput {
  18978. s.InstanceId = &v
  18979. return s
  18980. }
  18981. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfileResult
  18982. type AssociateIamInstanceProfileOutput struct {
  18983. _ struct{} `type:"structure"`
  18984. // Information about the IAM instance profile association.
  18985. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  18986. }
  18987. // String returns the string representation
  18988. func (s AssociateIamInstanceProfileOutput) String() string {
  18989. return awsutil.Prettify(s)
  18990. }
  18991. // GoString returns the string representation
  18992. func (s AssociateIamInstanceProfileOutput) GoString() string {
  18993. return s.String()
  18994. }
  18995. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  18996. func (s *AssociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *AssociateIamInstanceProfileOutput {
  18997. s.IamInstanceProfileAssociation = v
  18998. return s
  18999. }
  19000. // Contains the parameters for AssociateRouteTable.
  19001. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTableRequest
  19002. type AssociateRouteTableInput struct {
  19003. _ struct{} `type:"structure"`
  19004. // Checks whether you have the required permissions for the action, without
  19005. // actually making the request, and provides an error response. If you have
  19006. // the required permissions, the error response is DryRunOperation. Otherwise,
  19007. // it is UnauthorizedOperation.
  19008. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19009. // The ID of the route table.
  19010. //
  19011. // RouteTableId is a required field
  19012. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  19013. // The ID of the subnet.
  19014. //
  19015. // SubnetId is a required field
  19016. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  19017. }
  19018. // String returns the string representation
  19019. func (s AssociateRouteTableInput) String() string {
  19020. return awsutil.Prettify(s)
  19021. }
  19022. // GoString returns the string representation
  19023. func (s AssociateRouteTableInput) GoString() string {
  19024. return s.String()
  19025. }
  19026. // Validate inspects the fields of the type to determine if they are valid.
  19027. func (s *AssociateRouteTableInput) Validate() error {
  19028. invalidParams := request.ErrInvalidParams{Context: "AssociateRouteTableInput"}
  19029. if s.RouteTableId == nil {
  19030. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  19031. }
  19032. if s.SubnetId == nil {
  19033. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  19034. }
  19035. if invalidParams.Len() > 0 {
  19036. return invalidParams
  19037. }
  19038. return nil
  19039. }
  19040. // SetDryRun sets the DryRun field's value.
  19041. func (s *AssociateRouteTableInput) SetDryRun(v bool) *AssociateRouteTableInput {
  19042. s.DryRun = &v
  19043. return s
  19044. }
  19045. // SetRouteTableId sets the RouteTableId field's value.
  19046. func (s *AssociateRouteTableInput) SetRouteTableId(v string) *AssociateRouteTableInput {
  19047. s.RouteTableId = &v
  19048. return s
  19049. }
  19050. // SetSubnetId sets the SubnetId field's value.
  19051. func (s *AssociateRouteTableInput) SetSubnetId(v string) *AssociateRouteTableInput {
  19052. s.SubnetId = &v
  19053. return s
  19054. }
  19055. // Contains the output of AssociateRouteTable.
  19056. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTableResult
  19057. type AssociateRouteTableOutput struct {
  19058. _ struct{} `type:"structure"`
  19059. // The route table association ID (needed to disassociate the route table).
  19060. AssociationId *string `locationName:"associationId" type:"string"`
  19061. }
  19062. // String returns the string representation
  19063. func (s AssociateRouteTableOutput) String() string {
  19064. return awsutil.Prettify(s)
  19065. }
  19066. // GoString returns the string representation
  19067. func (s AssociateRouteTableOutput) GoString() string {
  19068. return s.String()
  19069. }
  19070. // SetAssociationId sets the AssociationId field's value.
  19071. func (s *AssociateRouteTableOutput) SetAssociationId(v string) *AssociateRouteTableOutput {
  19072. s.AssociationId = &v
  19073. return s
  19074. }
  19075. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockRequest
  19076. type AssociateSubnetCidrBlockInput struct {
  19077. _ struct{} `type:"structure"`
  19078. // The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length.
  19079. //
  19080. // Ipv6CidrBlock is a required field
  19081. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string" required:"true"`
  19082. // The ID of your subnet.
  19083. //
  19084. // SubnetId is a required field
  19085. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  19086. }
  19087. // String returns the string representation
  19088. func (s AssociateSubnetCidrBlockInput) String() string {
  19089. return awsutil.Prettify(s)
  19090. }
  19091. // GoString returns the string representation
  19092. func (s AssociateSubnetCidrBlockInput) GoString() string {
  19093. return s.String()
  19094. }
  19095. // Validate inspects the fields of the type to determine if they are valid.
  19096. func (s *AssociateSubnetCidrBlockInput) Validate() error {
  19097. invalidParams := request.ErrInvalidParams{Context: "AssociateSubnetCidrBlockInput"}
  19098. if s.Ipv6CidrBlock == nil {
  19099. invalidParams.Add(request.NewErrParamRequired("Ipv6CidrBlock"))
  19100. }
  19101. if s.SubnetId == nil {
  19102. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  19103. }
  19104. if invalidParams.Len() > 0 {
  19105. return invalidParams
  19106. }
  19107. return nil
  19108. }
  19109. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  19110. func (s *AssociateSubnetCidrBlockInput) SetIpv6CidrBlock(v string) *AssociateSubnetCidrBlockInput {
  19111. s.Ipv6CidrBlock = &v
  19112. return s
  19113. }
  19114. // SetSubnetId sets the SubnetId field's value.
  19115. func (s *AssociateSubnetCidrBlockInput) SetSubnetId(v string) *AssociateSubnetCidrBlockInput {
  19116. s.SubnetId = &v
  19117. return s
  19118. }
  19119. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockResult
  19120. type AssociateSubnetCidrBlockOutput struct {
  19121. _ struct{} `type:"structure"`
  19122. // Information about the IPv6 CIDR block association.
  19123. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  19124. // The ID of the subnet.
  19125. SubnetId *string `locationName:"subnetId" type:"string"`
  19126. }
  19127. // String returns the string representation
  19128. func (s AssociateSubnetCidrBlockOutput) String() string {
  19129. return awsutil.Prettify(s)
  19130. }
  19131. // GoString returns the string representation
  19132. func (s AssociateSubnetCidrBlockOutput) GoString() string {
  19133. return s.String()
  19134. }
  19135. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  19136. func (s *AssociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *AssociateSubnetCidrBlockOutput {
  19137. s.Ipv6CidrBlockAssociation = v
  19138. return s
  19139. }
  19140. // SetSubnetId sets the SubnetId field's value.
  19141. func (s *AssociateSubnetCidrBlockOutput) SetSubnetId(v string) *AssociateSubnetCidrBlockOutput {
  19142. s.SubnetId = &v
  19143. return s
  19144. }
  19145. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlockRequest
  19146. type AssociateVpcCidrBlockInput struct {
  19147. _ struct{} `type:"structure"`
  19148. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  19149. // the VPC. You cannot specify the range of IPv6 addresses, or the size of the
  19150. // CIDR block.
  19151. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  19152. // The ID of the VPC.
  19153. //
  19154. // VpcId is a required field
  19155. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  19156. }
  19157. // String returns the string representation
  19158. func (s AssociateVpcCidrBlockInput) String() string {
  19159. return awsutil.Prettify(s)
  19160. }
  19161. // GoString returns the string representation
  19162. func (s AssociateVpcCidrBlockInput) GoString() string {
  19163. return s.String()
  19164. }
  19165. // Validate inspects the fields of the type to determine if they are valid.
  19166. func (s *AssociateVpcCidrBlockInput) Validate() error {
  19167. invalidParams := request.ErrInvalidParams{Context: "AssociateVpcCidrBlockInput"}
  19168. if s.VpcId == nil {
  19169. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19170. }
  19171. if invalidParams.Len() > 0 {
  19172. return invalidParams
  19173. }
  19174. return nil
  19175. }
  19176. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  19177. func (s *AssociateVpcCidrBlockInput) SetAmazonProvidedIpv6CidrBlock(v bool) *AssociateVpcCidrBlockInput {
  19178. s.AmazonProvidedIpv6CidrBlock = &v
  19179. return s
  19180. }
  19181. // SetVpcId sets the VpcId field's value.
  19182. func (s *AssociateVpcCidrBlockInput) SetVpcId(v string) *AssociateVpcCidrBlockInput {
  19183. s.VpcId = &v
  19184. return s
  19185. }
  19186. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlockResult
  19187. type AssociateVpcCidrBlockOutput struct {
  19188. _ struct{} `type:"structure"`
  19189. // Information about the IPv6 CIDR block association.
  19190. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  19191. // The ID of the VPC.
  19192. VpcId *string `locationName:"vpcId" type:"string"`
  19193. }
  19194. // String returns the string representation
  19195. func (s AssociateVpcCidrBlockOutput) String() string {
  19196. return awsutil.Prettify(s)
  19197. }
  19198. // GoString returns the string representation
  19199. func (s AssociateVpcCidrBlockOutput) GoString() string {
  19200. return s.String()
  19201. }
  19202. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  19203. func (s *AssociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  19204. s.Ipv6CidrBlockAssociation = v
  19205. return s
  19206. }
  19207. // SetVpcId sets the VpcId field's value.
  19208. func (s *AssociateVpcCidrBlockOutput) SetVpcId(v string) *AssociateVpcCidrBlockOutput {
  19209. s.VpcId = &v
  19210. return s
  19211. }
  19212. // Contains the parameters for AttachClassicLinkVpc.
  19213. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpcRequest
  19214. type AttachClassicLinkVpcInput struct {
  19215. _ struct{} `type:"structure"`
  19216. // Checks whether you have the required permissions for the action, without
  19217. // actually making the request, and provides an error response. If you have
  19218. // the required permissions, the error response is DryRunOperation. Otherwise,
  19219. // it is UnauthorizedOperation.
  19220. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19221. // The ID of one or more of the VPC's security groups. You cannot specify security
  19222. // groups from a different VPC.
  19223. //
  19224. // Groups is a required field
  19225. Groups []*string `locationName:"SecurityGroupId" locationNameList:"groupId" type:"list" required:"true"`
  19226. // The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
  19227. //
  19228. // InstanceId is a required field
  19229. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  19230. // The ID of a ClassicLink-enabled VPC.
  19231. //
  19232. // VpcId is a required field
  19233. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  19234. }
  19235. // String returns the string representation
  19236. func (s AttachClassicLinkVpcInput) String() string {
  19237. return awsutil.Prettify(s)
  19238. }
  19239. // GoString returns the string representation
  19240. func (s AttachClassicLinkVpcInput) GoString() string {
  19241. return s.String()
  19242. }
  19243. // Validate inspects the fields of the type to determine if they are valid.
  19244. func (s *AttachClassicLinkVpcInput) Validate() error {
  19245. invalidParams := request.ErrInvalidParams{Context: "AttachClassicLinkVpcInput"}
  19246. if s.Groups == nil {
  19247. invalidParams.Add(request.NewErrParamRequired("Groups"))
  19248. }
  19249. if s.InstanceId == nil {
  19250. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  19251. }
  19252. if s.VpcId == nil {
  19253. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19254. }
  19255. if invalidParams.Len() > 0 {
  19256. return invalidParams
  19257. }
  19258. return nil
  19259. }
  19260. // SetDryRun sets the DryRun field's value.
  19261. func (s *AttachClassicLinkVpcInput) SetDryRun(v bool) *AttachClassicLinkVpcInput {
  19262. s.DryRun = &v
  19263. return s
  19264. }
  19265. // SetGroups sets the Groups field's value.
  19266. func (s *AttachClassicLinkVpcInput) SetGroups(v []*string) *AttachClassicLinkVpcInput {
  19267. s.Groups = v
  19268. return s
  19269. }
  19270. // SetInstanceId sets the InstanceId field's value.
  19271. func (s *AttachClassicLinkVpcInput) SetInstanceId(v string) *AttachClassicLinkVpcInput {
  19272. s.InstanceId = &v
  19273. return s
  19274. }
  19275. // SetVpcId sets the VpcId field's value.
  19276. func (s *AttachClassicLinkVpcInput) SetVpcId(v string) *AttachClassicLinkVpcInput {
  19277. s.VpcId = &v
  19278. return s
  19279. }
  19280. // Contains the output of AttachClassicLinkVpc.
  19281. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpcResult
  19282. type AttachClassicLinkVpcOutput struct {
  19283. _ struct{} `type:"structure"`
  19284. // Returns true if the request succeeds; otherwise, it returns an error.
  19285. Return *bool `locationName:"return" type:"boolean"`
  19286. }
  19287. // String returns the string representation
  19288. func (s AttachClassicLinkVpcOutput) String() string {
  19289. return awsutil.Prettify(s)
  19290. }
  19291. // GoString returns the string representation
  19292. func (s AttachClassicLinkVpcOutput) GoString() string {
  19293. return s.String()
  19294. }
  19295. // SetReturn sets the Return field's value.
  19296. func (s *AttachClassicLinkVpcOutput) SetReturn(v bool) *AttachClassicLinkVpcOutput {
  19297. s.Return = &v
  19298. return s
  19299. }
  19300. // Contains the parameters for AttachInternetGateway.
  19301. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGatewayRequest
  19302. type AttachInternetGatewayInput struct {
  19303. _ struct{} `type:"structure"`
  19304. // Checks whether you have the required permissions for the action, without
  19305. // actually making the request, and provides an error response. If you have
  19306. // the required permissions, the error response is DryRunOperation. Otherwise,
  19307. // it is UnauthorizedOperation.
  19308. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19309. // The ID of the Internet gateway.
  19310. //
  19311. // InternetGatewayId is a required field
  19312. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  19313. // The ID of the VPC.
  19314. //
  19315. // VpcId is a required field
  19316. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  19317. }
  19318. // String returns the string representation
  19319. func (s AttachInternetGatewayInput) String() string {
  19320. return awsutil.Prettify(s)
  19321. }
  19322. // GoString returns the string representation
  19323. func (s AttachInternetGatewayInput) GoString() string {
  19324. return s.String()
  19325. }
  19326. // Validate inspects the fields of the type to determine if they are valid.
  19327. func (s *AttachInternetGatewayInput) Validate() error {
  19328. invalidParams := request.ErrInvalidParams{Context: "AttachInternetGatewayInput"}
  19329. if s.InternetGatewayId == nil {
  19330. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  19331. }
  19332. if s.VpcId == nil {
  19333. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19334. }
  19335. if invalidParams.Len() > 0 {
  19336. return invalidParams
  19337. }
  19338. return nil
  19339. }
  19340. // SetDryRun sets the DryRun field's value.
  19341. func (s *AttachInternetGatewayInput) SetDryRun(v bool) *AttachInternetGatewayInput {
  19342. s.DryRun = &v
  19343. return s
  19344. }
  19345. // SetInternetGatewayId sets the InternetGatewayId field's value.
  19346. func (s *AttachInternetGatewayInput) SetInternetGatewayId(v string) *AttachInternetGatewayInput {
  19347. s.InternetGatewayId = &v
  19348. return s
  19349. }
  19350. // SetVpcId sets the VpcId field's value.
  19351. func (s *AttachInternetGatewayInput) SetVpcId(v string) *AttachInternetGatewayInput {
  19352. s.VpcId = &v
  19353. return s
  19354. }
  19355. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGatewayOutput
  19356. type AttachInternetGatewayOutput struct {
  19357. _ struct{} `type:"structure"`
  19358. }
  19359. // String returns the string representation
  19360. func (s AttachInternetGatewayOutput) String() string {
  19361. return awsutil.Prettify(s)
  19362. }
  19363. // GoString returns the string representation
  19364. func (s AttachInternetGatewayOutput) GoString() string {
  19365. return s.String()
  19366. }
  19367. // Contains the parameters for AttachNetworkInterface.
  19368. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterfaceRequest
  19369. type AttachNetworkInterfaceInput struct {
  19370. _ struct{} `type:"structure"`
  19371. // The index of the device for the network interface attachment.
  19372. //
  19373. // DeviceIndex is a required field
  19374. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"`
  19375. // Checks whether you have the required permissions for the action, without
  19376. // actually making the request, and provides an error response. If you have
  19377. // the required permissions, the error response is DryRunOperation. Otherwise,
  19378. // it is UnauthorizedOperation.
  19379. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19380. // The ID of the instance.
  19381. //
  19382. // InstanceId is a required field
  19383. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  19384. // The ID of the network interface.
  19385. //
  19386. // NetworkInterfaceId is a required field
  19387. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  19388. }
  19389. // String returns the string representation
  19390. func (s AttachNetworkInterfaceInput) String() string {
  19391. return awsutil.Prettify(s)
  19392. }
  19393. // GoString returns the string representation
  19394. func (s AttachNetworkInterfaceInput) GoString() string {
  19395. return s.String()
  19396. }
  19397. // Validate inspects the fields of the type to determine if they are valid.
  19398. func (s *AttachNetworkInterfaceInput) Validate() error {
  19399. invalidParams := request.ErrInvalidParams{Context: "AttachNetworkInterfaceInput"}
  19400. if s.DeviceIndex == nil {
  19401. invalidParams.Add(request.NewErrParamRequired("DeviceIndex"))
  19402. }
  19403. if s.InstanceId == nil {
  19404. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  19405. }
  19406. if s.NetworkInterfaceId == nil {
  19407. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  19408. }
  19409. if invalidParams.Len() > 0 {
  19410. return invalidParams
  19411. }
  19412. return nil
  19413. }
  19414. // SetDeviceIndex sets the DeviceIndex field's value.
  19415. func (s *AttachNetworkInterfaceInput) SetDeviceIndex(v int64) *AttachNetworkInterfaceInput {
  19416. s.DeviceIndex = &v
  19417. return s
  19418. }
  19419. // SetDryRun sets the DryRun field's value.
  19420. func (s *AttachNetworkInterfaceInput) SetDryRun(v bool) *AttachNetworkInterfaceInput {
  19421. s.DryRun = &v
  19422. return s
  19423. }
  19424. // SetInstanceId sets the InstanceId field's value.
  19425. func (s *AttachNetworkInterfaceInput) SetInstanceId(v string) *AttachNetworkInterfaceInput {
  19426. s.InstanceId = &v
  19427. return s
  19428. }
  19429. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  19430. func (s *AttachNetworkInterfaceInput) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceInput {
  19431. s.NetworkInterfaceId = &v
  19432. return s
  19433. }
  19434. // Contains the output of AttachNetworkInterface.
  19435. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterfaceResult
  19436. type AttachNetworkInterfaceOutput struct {
  19437. _ struct{} `type:"structure"`
  19438. // The ID of the network interface attachment.
  19439. AttachmentId *string `locationName:"attachmentId" type:"string"`
  19440. }
  19441. // String returns the string representation
  19442. func (s AttachNetworkInterfaceOutput) String() string {
  19443. return awsutil.Prettify(s)
  19444. }
  19445. // GoString returns the string representation
  19446. func (s AttachNetworkInterfaceOutput) GoString() string {
  19447. return s.String()
  19448. }
  19449. // SetAttachmentId sets the AttachmentId field's value.
  19450. func (s *AttachNetworkInterfaceOutput) SetAttachmentId(v string) *AttachNetworkInterfaceOutput {
  19451. s.AttachmentId = &v
  19452. return s
  19453. }
  19454. // Contains the parameters for AttachVolume.
  19455. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolumeRequest
  19456. type AttachVolumeInput struct {
  19457. _ struct{} `type:"structure"`
  19458. // The device name to expose to the instance (for example, /dev/sdh or xvdh).
  19459. //
  19460. // Device is a required field
  19461. Device *string `type:"string" required:"true"`
  19462. // Checks whether you have the required permissions for the action, without
  19463. // actually making the request, and provides an error response. If you have
  19464. // the required permissions, the error response is DryRunOperation. Otherwise,
  19465. // it is UnauthorizedOperation.
  19466. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19467. // The ID of the instance.
  19468. //
  19469. // InstanceId is a required field
  19470. InstanceId *string `type:"string" required:"true"`
  19471. // The ID of the EBS volume. The volume and instance must be within the same
  19472. // Availability Zone.
  19473. //
  19474. // VolumeId is a required field
  19475. VolumeId *string `type:"string" required:"true"`
  19476. }
  19477. // String returns the string representation
  19478. func (s AttachVolumeInput) String() string {
  19479. return awsutil.Prettify(s)
  19480. }
  19481. // GoString returns the string representation
  19482. func (s AttachVolumeInput) GoString() string {
  19483. return s.String()
  19484. }
  19485. // Validate inspects the fields of the type to determine if they are valid.
  19486. func (s *AttachVolumeInput) Validate() error {
  19487. invalidParams := request.ErrInvalidParams{Context: "AttachVolumeInput"}
  19488. if s.Device == nil {
  19489. invalidParams.Add(request.NewErrParamRequired("Device"))
  19490. }
  19491. if s.InstanceId == nil {
  19492. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  19493. }
  19494. if s.VolumeId == nil {
  19495. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  19496. }
  19497. if invalidParams.Len() > 0 {
  19498. return invalidParams
  19499. }
  19500. return nil
  19501. }
  19502. // SetDevice sets the Device field's value.
  19503. func (s *AttachVolumeInput) SetDevice(v string) *AttachVolumeInput {
  19504. s.Device = &v
  19505. return s
  19506. }
  19507. // SetDryRun sets the DryRun field's value.
  19508. func (s *AttachVolumeInput) SetDryRun(v bool) *AttachVolumeInput {
  19509. s.DryRun = &v
  19510. return s
  19511. }
  19512. // SetInstanceId sets the InstanceId field's value.
  19513. func (s *AttachVolumeInput) SetInstanceId(v string) *AttachVolumeInput {
  19514. s.InstanceId = &v
  19515. return s
  19516. }
  19517. // SetVolumeId sets the VolumeId field's value.
  19518. func (s *AttachVolumeInput) SetVolumeId(v string) *AttachVolumeInput {
  19519. s.VolumeId = &v
  19520. return s
  19521. }
  19522. // Contains the parameters for AttachVpnGateway.
  19523. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGatewayRequest
  19524. type AttachVpnGatewayInput struct {
  19525. _ struct{} `type:"structure"`
  19526. // Checks whether you have the required permissions for the action, without
  19527. // actually making the request, and provides an error response. If you have
  19528. // the required permissions, the error response is DryRunOperation. Otherwise,
  19529. // it is UnauthorizedOperation.
  19530. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19531. // The ID of the VPC.
  19532. //
  19533. // VpcId is a required field
  19534. VpcId *string `type:"string" required:"true"`
  19535. // The ID of the virtual private gateway.
  19536. //
  19537. // VpnGatewayId is a required field
  19538. VpnGatewayId *string `type:"string" required:"true"`
  19539. }
  19540. // String returns the string representation
  19541. func (s AttachVpnGatewayInput) String() string {
  19542. return awsutil.Prettify(s)
  19543. }
  19544. // GoString returns the string representation
  19545. func (s AttachVpnGatewayInput) GoString() string {
  19546. return s.String()
  19547. }
  19548. // Validate inspects the fields of the type to determine if they are valid.
  19549. func (s *AttachVpnGatewayInput) Validate() error {
  19550. invalidParams := request.ErrInvalidParams{Context: "AttachVpnGatewayInput"}
  19551. if s.VpcId == nil {
  19552. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19553. }
  19554. if s.VpnGatewayId == nil {
  19555. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  19556. }
  19557. if invalidParams.Len() > 0 {
  19558. return invalidParams
  19559. }
  19560. return nil
  19561. }
  19562. // SetDryRun sets the DryRun field's value.
  19563. func (s *AttachVpnGatewayInput) SetDryRun(v bool) *AttachVpnGatewayInput {
  19564. s.DryRun = &v
  19565. return s
  19566. }
  19567. // SetVpcId sets the VpcId field's value.
  19568. func (s *AttachVpnGatewayInput) SetVpcId(v string) *AttachVpnGatewayInput {
  19569. s.VpcId = &v
  19570. return s
  19571. }
  19572. // SetVpnGatewayId sets the VpnGatewayId field's value.
  19573. func (s *AttachVpnGatewayInput) SetVpnGatewayId(v string) *AttachVpnGatewayInput {
  19574. s.VpnGatewayId = &v
  19575. return s
  19576. }
  19577. // Contains the output of AttachVpnGateway.
  19578. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGatewayResult
  19579. type AttachVpnGatewayOutput struct {
  19580. _ struct{} `type:"structure"`
  19581. // Information about the attachment.
  19582. VpcAttachment *VpcAttachment `locationName:"attachment" type:"structure"`
  19583. }
  19584. // String returns the string representation
  19585. func (s AttachVpnGatewayOutput) String() string {
  19586. return awsutil.Prettify(s)
  19587. }
  19588. // GoString returns the string representation
  19589. func (s AttachVpnGatewayOutput) GoString() string {
  19590. return s.String()
  19591. }
  19592. // SetVpcAttachment sets the VpcAttachment field's value.
  19593. func (s *AttachVpnGatewayOutput) SetVpcAttachment(v *VpcAttachment) *AttachVpnGatewayOutput {
  19594. s.VpcAttachment = v
  19595. return s
  19596. }
  19597. // Describes a value for a resource attribute that is a Boolean value.
  19598. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttributeBooleanValue
  19599. type AttributeBooleanValue struct {
  19600. _ struct{} `type:"structure"`
  19601. // The attribute value. The valid values are true or false.
  19602. Value *bool `locationName:"value" type:"boolean"`
  19603. }
  19604. // String returns the string representation
  19605. func (s AttributeBooleanValue) String() string {
  19606. return awsutil.Prettify(s)
  19607. }
  19608. // GoString returns the string representation
  19609. func (s AttributeBooleanValue) GoString() string {
  19610. return s.String()
  19611. }
  19612. // SetValue sets the Value field's value.
  19613. func (s *AttributeBooleanValue) SetValue(v bool) *AttributeBooleanValue {
  19614. s.Value = &v
  19615. return s
  19616. }
  19617. // Describes a value for a resource attribute that is a String.
  19618. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttributeValue
  19619. type AttributeValue struct {
  19620. _ struct{} `type:"structure"`
  19621. // The attribute value. Note that the value is case-sensitive.
  19622. Value *string `locationName:"value" type:"string"`
  19623. }
  19624. // String returns the string representation
  19625. func (s AttributeValue) String() string {
  19626. return awsutil.Prettify(s)
  19627. }
  19628. // GoString returns the string representation
  19629. func (s AttributeValue) GoString() string {
  19630. return s.String()
  19631. }
  19632. // SetValue sets the Value field's value.
  19633. func (s *AttributeValue) SetValue(v string) *AttributeValue {
  19634. s.Value = &v
  19635. return s
  19636. }
  19637. // Contains the parameters for AuthorizeSecurityGroupEgress.
  19638. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgressRequest
  19639. type AuthorizeSecurityGroupEgressInput struct {
  19640. _ struct{} `type:"structure"`
  19641. // The CIDR IPv4 address range. We recommend that you specify the CIDR range
  19642. // in a set of IP permissions instead.
  19643. CidrIp *string `locationName:"cidrIp" type:"string"`
  19644. // Checks whether you have the required permissions for the action, without
  19645. // actually making the request, and provides an error response. If you have
  19646. // the required permissions, the error response is DryRunOperation. Otherwise,
  19647. // it is UnauthorizedOperation.
  19648. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19649. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  19650. // We recommend that you specify the port range in a set of IP permissions instead.
  19651. FromPort *int64 `locationName:"fromPort" type:"integer"`
  19652. // The ID of the security group.
  19653. //
  19654. // GroupId is a required field
  19655. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  19656. // A set of IP permissions. You can't specify a destination security group and
  19657. // a CIDR IP address range.
  19658. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  19659. // The IP protocol name or number. We recommend that you specify the protocol
  19660. // in a set of IP permissions instead.
  19661. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  19662. // The name of a destination security group. To authorize outbound access to
  19663. // a destination security group, we recommend that you use a set of IP permissions
  19664. // instead.
  19665. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  19666. // The AWS account number for a destination security group. To authorize outbound
  19667. // access to a destination security group, we recommend that you use a set of
  19668. // IP permissions instead.
  19669. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  19670. // The end of port range for the TCP and UDP protocols, or an ICMP type number.
  19671. // We recommend that you specify the port range in a set of IP permissions instead.
  19672. ToPort *int64 `locationName:"toPort" type:"integer"`
  19673. }
  19674. // String returns the string representation
  19675. func (s AuthorizeSecurityGroupEgressInput) String() string {
  19676. return awsutil.Prettify(s)
  19677. }
  19678. // GoString returns the string representation
  19679. func (s AuthorizeSecurityGroupEgressInput) GoString() string {
  19680. return s.String()
  19681. }
  19682. // Validate inspects the fields of the type to determine if they are valid.
  19683. func (s *AuthorizeSecurityGroupEgressInput) Validate() error {
  19684. invalidParams := request.ErrInvalidParams{Context: "AuthorizeSecurityGroupEgressInput"}
  19685. if s.GroupId == nil {
  19686. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  19687. }
  19688. if invalidParams.Len() > 0 {
  19689. return invalidParams
  19690. }
  19691. return nil
  19692. }
  19693. // SetCidrIp sets the CidrIp field's value.
  19694. func (s *AuthorizeSecurityGroupEgressInput) SetCidrIp(v string) *AuthorizeSecurityGroupEgressInput {
  19695. s.CidrIp = &v
  19696. return s
  19697. }
  19698. // SetDryRun sets the DryRun field's value.
  19699. func (s *AuthorizeSecurityGroupEgressInput) SetDryRun(v bool) *AuthorizeSecurityGroupEgressInput {
  19700. s.DryRun = &v
  19701. return s
  19702. }
  19703. // SetFromPort sets the FromPort field's value.
  19704. func (s *AuthorizeSecurityGroupEgressInput) SetFromPort(v int64) *AuthorizeSecurityGroupEgressInput {
  19705. s.FromPort = &v
  19706. return s
  19707. }
  19708. // SetGroupId sets the GroupId field's value.
  19709. func (s *AuthorizeSecurityGroupEgressInput) SetGroupId(v string) *AuthorizeSecurityGroupEgressInput {
  19710. s.GroupId = &v
  19711. return s
  19712. }
  19713. // SetIpPermissions sets the IpPermissions field's value.
  19714. func (s *AuthorizeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupEgressInput {
  19715. s.IpPermissions = v
  19716. return s
  19717. }
  19718. // SetIpProtocol sets the IpProtocol field's value.
  19719. func (s *AuthorizeSecurityGroupEgressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressInput {
  19720. s.IpProtocol = &v
  19721. return s
  19722. }
  19723. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  19724. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupEgressInput {
  19725. s.SourceSecurityGroupName = &v
  19726. return s
  19727. }
  19728. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  19729. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupEgressInput {
  19730. s.SourceSecurityGroupOwnerId = &v
  19731. return s
  19732. }
  19733. // SetToPort sets the ToPort field's value.
  19734. func (s *AuthorizeSecurityGroupEgressInput) SetToPort(v int64) *AuthorizeSecurityGroupEgressInput {
  19735. s.ToPort = &v
  19736. return s
  19737. }
  19738. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgressOutput
  19739. type AuthorizeSecurityGroupEgressOutput struct {
  19740. _ struct{} `type:"structure"`
  19741. }
  19742. // String returns the string representation
  19743. func (s AuthorizeSecurityGroupEgressOutput) String() string {
  19744. return awsutil.Prettify(s)
  19745. }
  19746. // GoString returns the string representation
  19747. func (s AuthorizeSecurityGroupEgressOutput) GoString() string {
  19748. return s.String()
  19749. }
  19750. // Contains the parameters for AuthorizeSecurityGroupIngress.
  19751. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngressRequest
  19752. type AuthorizeSecurityGroupIngressInput struct {
  19753. _ struct{} `type:"structure"`
  19754. // The CIDR IPv4 address range. You can't specify this parameter when specifying
  19755. // a source security group.
  19756. CidrIp *string `type:"string"`
  19757. // Checks whether you have the required permissions for the action, without
  19758. // actually making the request, and provides an error response. If you have
  19759. // the required permissions, the error response is DryRunOperation. Otherwise,
  19760. // it is UnauthorizedOperation.
  19761. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19762. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  19763. // type number. For the ICMP/ICMPv6 type number, use -1 to specify all types.
  19764. FromPort *int64 `type:"integer"`
  19765. // The ID of the security group. Required for a nondefault VPC.
  19766. GroupId *string `type:"string"`
  19767. // [EC2-Classic, default VPC] The name of the security group.
  19768. GroupName *string `type:"string"`
  19769. // A set of IP permissions. Can be used to specify multiple rules in a single
  19770. // command.
  19771. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  19772. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  19773. // (VPC only) Use -1 to specify all protocols. If you specify -1, or a protocol
  19774. // number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is
  19775. // allowed, regardless of any ports you specify. For tcp, udp, and icmp, you
  19776. // must specify a port range. For protocol 58 (ICMPv6), you can optionally specify
  19777. // a port range; if you don't, traffic for all types and codes is allowed.
  19778. IpProtocol *string `type:"string"`
  19779. // [EC2-Classic, default VPC] The name of the source security group. You can't
  19780. // specify this parameter in combination with the following parameters: the
  19781. // CIDR IP address range, the start of the port range, the IP protocol, and
  19782. // the end of the port range. Creates rules that grant full ICMP, UDP, and TCP
  19783. // access. To create a rule with a specific IP protocol and port range, use
  19784. // a set of IP permissions instead. For EC2-VPC, the source security group must
  19785. // be in the same VPC.
  19786. SourceSecurityGroupName *string `type:"string"`
  19787. // [EC2-Classic] The AWS account number for the source security group, if the
  19788. // source security group is in a different account. You can't specify this parameter
  19789. // in combination with the following parameters: the CIDR IP address range,
  19790. // the IP protocol, the start of the port range, and the end of the port range.
  19791. // Creates rules that grant full ICMP, UDP, and TCP access. To create a rule
  19792. // with a specific IP protocol and port range, use a set of IP permissions instead.
  19793. SourceSecurityGroupOwnerId *string `type:"string"`
  19794. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code
  19795. // number. For the ICMP/ICMPv6 code number, use -1 to specify all codes.
  19796. ToPort *int64 `type:"integer"`
  19797. }
  19798. // String returns the string representation
  19799. func (s AuthorizeSecurityGroupIngressInput) String() string {
  19800. return awsutil.Prettify(s)
  19801. }
  19802. // GoString returns the string representation
  19803. func (s AuthorizeSecurityGroupIngressInput) GoString() string {
  19804. return s.String()
  19805. }
  19806. // SetCidrIp sets the CidrIp field's value.
  19807. func (s *AuthorizeSecurityGroupIngressInput) SetCidrIp(v string) *AuthorizeSecurityGroupIngressInput {
  19808. s.CidrIp = &v
  19809. return s
  19810. }
  19811. // SetDryRun sets the DryRun field's value.
  19812. func (s *AuthorizeSecurityGroupIngressInput) SetDryRun(v bool) *AuthorizeSecurityGroupIngressInput {
  19813. s.DryRun = &v
  19814. return s
  19815. }
  19816. // SetFromPort sets the FromPort field's value.
  19817. func (s *AuthorizeSecurityGroupIngressInput) SetFromPort(v int64) *AuthorizeSecurityGroupIngressInput {
  19818. s.FromPort = &v
  19819. return s
  19820. }
  19821. // SetGroupId sets the GroupId field's value.
  19822. func (s *AuthorizeSecurityGroupIngressInput) SetGroupId(v string) *AuthorizeSecurityGroupIngressInput {
  19823. s.GroupId = &v
  19824. return s
  19825. }
  19826. // SetGroupName sets the GroupName field's value.
  19827. func (s *AuthorizeSecurityGroupIngressInput) SetGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  19828. s.GroupName = &v
  19829. return s
  19830. }
  19831. // SetIpPermissions sets the IpPermissions field's value.
  19832. func (s *AuthorizeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupIngressInput {
  19833. s.IpPermissions = v
  19834. return s
  19835. }
  19836. // SetIpProtocol sets the IpProtocol field's value.
  19837. func (s *AuthorizeSecurityGroupIngressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupIngressInput {
  19838. s.IpProtocol = &v
  19839. return s
  19840. }
  19841. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  19842. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  19843. s.SourceSecurityGroupName = &v
  19844. return s
  19845. }
  19846. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  19847. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupIngressInput {
  19848. s.SourceSecurityGroupOwnerId = &v
  19849. return s
  19850. }
  19851. // SetToPort sets the ToPort field's value.
  19852. func (s *AuthorizeSecurityGroupIngressInput) SetToPort(v int64) *AuthorizeSecurityGroupIngressInput {
  19853. s.ToPort = &v
  19854. return s
  19855. }
  19856. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngressOutput
  19857. type AuthorizeSecurityGroupIngressOutput struct {
  19858. _ struct{} `type:"structure"`
  19859. }
  19860. // String returns the string representation
  19861. func (s AuthorizeSecurityGroupIngressOutput) String() string {
  19862. return awsutil.Prettify(s)
  19863. }
  19864. // GoString returns the string representation
  19865. func (s AuthorizeSecurityGroupIngressOutput) GoString() string {
  19866. return s.String()
  19867. }
  19868. // Describes an Availability Zone.
  19869. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailabilityZone
  19870. type AvailabilityZone struct {
  19871. _ struct{} `type:"structure"`
  19872. // Any messages about the Availability Zone.
  19873. Messages []*AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"`
  19874. // The name of the region.
  19875. RegionName *string `locationName:"regionName" type:"string"`
  19876. // The state of the Availability Zone.
  19877. State *string `locationName:"zoneState" type:"string" enum:"AvailabilityZoneState"`
  19878. // The name of the Availability Zone.
  19879. ZoneName *string `locationName:"zoneName" type:"string"`
  19880. }
  19881. // String returns the string representation
  19882. func (s AvailabilityZone) String() string {
  19883. return awsutil.Prettify(s)
  19884. }
  19885. // GoString returns the string representation
  19886. func (s AvailabilityZone) GoString() string {
  19887. return s.String()
  19888. }
  19889. // SetMessages sets the Messages field's value.
  19890. func (s *AvailabilityZone) SetMessages(v []*AvailabilityZoneMessage) *AvailabilityZone {
  19891. s.Messages = v
  19892. return s
  19893. }
  19894. // SetRegionName sets the RegionName field's value.
  19895. func (s *AvailabilityZone) SetRegionName(v string) *AvailabilityZone {
  19896. s.RegionName = &v
  19897. return s
  19898. }
  19899. // SetState sets the State field's value.
  19900. func (s *AvailabilityZone) SetState(v string) *AvailabilityZone {
  19901. s.State = &v
  19902. return s
  19903. }
  19904. // SetZoneName sets the ZoneName field's value.
  19905. func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone {
  19906. s.ZoneName = &v
  19907. return s
  19908. }
  19909. // Describes a message about an Availability Zone.
  19910. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailabilityZoneMessage
  19911. type AvailabilityZoneMessage struct {
  19912. _ struct{} `type:"structure"`
  19913. // The message about the Availability Zone.
  19914. Message *string `locationName:"message" type:"string"`
  19915. }
  19916. // String returns the string representation
  19917. func (s AvailabilityZoneMessage) String() string {
  19918. return awsutil.Prettify(s)
  19919. }
  19920. // GoString returns the string representation
  19921. func (s AvailabilityZoneMessage) GoString() string {
  19922. return s.String()
  19923. }
  19924. // SetMessage sets the Message field's value.
  19925. func (s *AvailabilityZoneMessage) SetMessage(v string) *AvailabilityZoneMessage {
  19926. s.Message = &v
  19927. return s
  19928. }
  19929. // The capacity information for instances launched onto the Dedicated Host.
  19930. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailableCapacity
  19931. type AvailableCapacity struct {
  19932. _ struct{} `type:"structure"`
  19933. // The total number of instances that the Dedicated Host supports.
  19934. AvailableInstanceCapacity []*InstanceCapacity `locationName:"availableInstanceCapacity" locationNameList:"item" type:"list"`
  19935. // The number of vCPUs available on the Dedicated Host.
  19936. AvailableVCpus *int64 `locationName:"availableVCpus" type:"integer"`
  19937. }
  19938. // String returns the string representation
  19939. func (s AvailableCapacity) String() string {
  19940. return awsutil.Prettify(s)
  19941. }
  19942. // GoString returns the string representation
  19943. func (s AvailableCapacity) GoString() string {
  19944. return s.String()
  19945. }
  19946. // SetAvailableInstanceCapacity sets the AvailableInstanceCapacity field's value.
  19947. func (s *AvailableCapacity) SetAvailableInstanceCapacity(v []*InstanceCapacity) *AvailableCapacity {
  19948. s.AvailableInstanceCapacity = v
  19949. return s
  19950. }
  19951. // SetAvailableVCpus sets the AvailableVCpus field's value.
  19952. func (s *AvailableCapacity) SetAvailableVCpus(v int64) *AvailableCapacity {
  19953. s.AvailableVCpus = &v
  19954. return s
  19955. }
  19956. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BlobAttributeValue
  19957. type BlobAttributeValue struct {
  19958. _ struct{} `type:"structure"`
  19959. // Value is automatically base64 encoded/decoded by the SDK.
  19960. Value []byte `locationName:"value" type:"blob"`
  19961. }
  19962. // String returns the string representation
  19963. func (s BlobAttributeValue) String() string {
  19964. return awsutil.Prettify(s)
  19965. }
  19966. // GoString returns the string representation
  19967. func (s BlobAttributeValue) GoString() string {
  19968. return s.String()
  19969. }
  19970. // SetValue sets the Value field's value.
  19971. func (s *BlobAttributeValue) SetValue(v []byte) *BlobAttributeValue {
  19972. s.Value = v
  19973. return s
  19974. }
  19975. // Describes a block device mapping.
  19976. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BlockDeviceMapping
  19977. type BlockDeviceMapping struct {
  19978. _ struct{} `type:"structure"`
  19979. // The device name exposed to the instance (for example, /dev/sdh or xvdh).
  19980. DeviceName *string `locationName:"deviceName" type:"string"`
  19981. // Parameters used to automatically set up EBS volumes when the instance is
  19982. // launched.
  19983. Ebs *EbsBlockDevice `locationName:"ebs" type:"structure"`
  19984. // Suppresses the specified device included in the block device mapping of the
  19985. // AMI.
  19986. NoDevice *string `locationName:"noDevice" type:"string"`
  19987. // The virtual device name (ephemeralN). Instance store volumes are numbered
  19988. // starting from 0. An instance type with 2 available instance store volumes
  19989. // can specify mappings for ephemeral0 and ephemeral1.The number of available
  19990. // instance store volumes depends on the instance type. After you connect to
  19991. // the instance, you must mount the volume.
  19992. //
  19993. // Constraints: For M3 instances, you must specify instance store volumes in
  19994. // the block device mapping for the instance. When you launch an M3 instance,
  19995. // we ignore any instance store volumes specified in the block device mapping
  19996. // for the AMI.
  19997. VirtualName *string `locationName:"virtualName" type:"string"`
  19998. }
  19999. // String returns the string representation
  20000. func (s BlockDeviceMapping) String() string {
  20001. return awsutil.Prettify(s)
  20002. }
  20003. // GoString returns the string representation
  20004. func (s BlockDeviceMapping) GoString() string {
  20005. return s.String()
  20006. }
  20007. // SetDeviceName sets the DeviceName field's value.
  20008. func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping {
  20009. s.DeviceName = &v
  20010. return s
  20011. }
  20012. // SetEbs sets the Ebs field's value.
  20013. func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping {
  20014. s.Ebs = v
  20015. return s
  20016. }
  20017. // SetNoDevice sets the NoDevice field's value.
  20018. func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping {
  20019. s.NoDevice = &v
  20020. return s
  20021. }
  20022. // SetVirtualName sets the VirtualName field's value.
  20023. func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping {
  20024. s.VirtualName = &v
  20025. return s
  20026. }
  20027. // Contains the parameters for BundleInstance.
  20028. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstanceRequest
  20029. type BundleInstanceInput struct {
  20030. _ struct{} `type:"structure"`
  20031. // Checks whether you have the required permissions for the action, without
  20032. // actually making the request, and provides an error response. If you have
  20033. // the required permissions, the error response is DryRunOperation. Otherwise,
  20034. // it is UnauthorizedOperation.
  20035. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20036. // The ID of the instance to bundle.
  20037. //
  20038. // Type: String
  20039. //
  20040. // Default: None
  20041. //
  20042. // Required: Yes
  20043. //
  20044. // InstanceId is a required field
  20045. InstanceId *string `type:"string" required:"true"`
  20046. // The bucket in which to store the AMI. You can specify a bucket that you already
  20047. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  20048. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  20049. //
  20050. // Storage is a required field
  20051. Storage *Storage `type:"structure" required:"true"`
  20052. }
  20053. // String returns the string representation
  20054. func (s BundleInstanceInput) String() string {
  20055. return awsutil.Prettify(s)
  20056. }
  20057. // GoString returns the string representation
  20058. func (s BundleInstanceInput) GoString() string {
  20059. return s.String()
  20060. }
  20061. // Validate inspects the fields of the type to determine if they are valid.
  20062. func (s *BundleInstanceInput) Validate() error {
  20063. invalidParams := request.ErrInvalidParams{Context: "BundleInstanceInput"}
  20064. if s.InstanceId == nil {
  20065. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  20066. }
  20067. if s.Storage == nil {
  20068. invalidParams.Add(request.NewErrParamRequired("Storage"))
  20069. }
  20070. if invalidParams.Len() > 0 {
  20071. return invalidParams
  20072. }
  20073. return nil
  20074. }
  20075. // SetDryRun sets the DryRun field's value.
  20076. func (s *BundleInstanceInput) SetDryRun(v bool) *BundleInstanceInput {
  20077. s.DryRun = &v
  20078. return s
  20079. }
  20080. // SetInstanceId sets the InstanceId field's value.
  20081. func (s *BundleInstanceInput) SetInstanceId(v string) *BundleInstanceInput {
  20082. s.InstanceId = &v
  20083. return s
  20084. }
  20085. // SetStorage sets the Storage field's value.
  20086. func (s *BundleInstanceInput) SetStorage(v *Storage) *BundleInstanceInput {
  20087. s.Storage = v
  20088. return s
  20089. }
  20090. // Contains the output of BundleInstance.
  20091. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstanceResult
  20092. type BundleInstanceOutput struct {
  20093. _ struct{} `type:"structure"`
  20094. // Information about the bundle task.
  20095. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  20096. }
  20097. // String returns the string representation
  20098. func (s BundleInstanceOutput) String() string {
  20099. return awsutil.Prettify(s)
  20100. }
  20101. // GoString returns the string representation
  20102. func (s BundleInstanceOutput) GoString() string {
  20103. return s.String()
  20104. }
  20105. // SetBundleTask sets the BundleTask field's value.
  20106. func (s *BundleInstanceOutput) SetBundleTask(v *BundleTask) *BundleInstanceOutput {
  20107. s.BundleTask = v
  20108. return s
  20109. }
  20110. // Describes a bundle task.
  20111. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleTask
  20112. type BundleTask struct {
  20113. _ struct{} `type:"structure"`
  20114. // The ID of the bundle task.
  20115. BundleId *string `locationName:"bundleId" type:"string"`
  20116. // If the task fails, a description of the error.
  20117. BundleTaskError *BundleTaskError `locationName:"error" type:"structure"`
  20118. // The ID of the instance associated with this bundle task.
  20119. InstanceId *string `locationName:"instanceId" type:"string"`
  20120. // The level of task completion, as a percent (for example, 20%).
  20121. Progress *string `locationName:"progress" type:"string"`
  20122. // The time this task started.
  20123. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  20124. // The state of the task.
  20125. State *string `locationName:"state" type:"string" enum:"BundleTaskState"`
  20126. // The Amazon S3 storage locations.
  20127. Storage *Storage `locationName:"storage" type:"structure"`
  20128. // The time of the most recent update for the task.
  20129. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  20130. }
  20131. // String returns the string representation
  20132. func (s BundleTask) String() string {
  20133. return awsutil.Prettify(s)
  20134. }
  20135. // GoString returns the string representation
  20136. func (s BundleTask) GoString() string {
  20137. return s.String()
  20138. }
  20139. // SetBundleId sets the BundleId field's value.
  20140. func (s *BundleTask) SetBundleId(v string) *BundleTask {
  20141. s.BundleId = &v
  20142. return s
  20143. }
  20144. // SetBundleTaskError sets the BundleTaskError field's value.
  20145. func (s *BundleTask) SetBundleTaskError(v *BundleTaskError) *BundleTask {
  20146. s.BundleTaskError = v
  20147. return s
  20148. }
  20149. // SetInstanceId sets the InstanceId field's value.
  20150. func (s *BundleTask) SetInstanceId(v string) *BundleTask {
  20151. s.InstanceId = &v
  20152. return s
  20153. }
  20154. // SetProgress sets the Progress field's value.
  20155. func (s *BundleTask) SetProgress(v string) *BundleTask {
  20156. s.Progress = &v
  20157. return s
  20158. }
  20159. // SetStartTime sets the StartTime field's value.
  20160. func (s *BundleTask) SetStartTime(v time.Time) *BundleTask {
  20161. s.StartTime = &v
  20162. return s
  20163. }
  20164. // SetState sets the State field's value.
  20165. func (s *BundleTask) SetState(v string) *BundleTask {
  20166. s.State = &v
  20167. return s
  20168. }
  20169. // SetStorage sets the Storage field's value.
  20170. func (s *BundleTask) SetStorage(v *Storage) *BundleTask {
  20171. s.Storage = v
  20172. return s
  20173. }
  20174. // SetUpdateTime sets the UpdateTime field's value.
  20175. func (s *BundleTask) SetUpdateTime(v time.Time) *BundleTask {
  20176. s.UpdateTime = &v
  20177. return s
  20178. }
  20179. // Describes an error for BundleInstance.
  20180. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleTaskError
  20181. type BundleTaskError struct {
  20182. _ struct{} `type:"structure"`
  20183. // The error code.
  20184. Code *string `locationName:"code" type:"string"`
  20185. // The error message.
  20186. Message *string `locationName:"message" type:"string"`
  20187. }
  20188. // String returns the string representation
  20189. func (s BundleTaskError) String() string {
  20190. return awsutil.Prettify(s)
  20191. }
  20192. // GoString returns the string representation
  20193. func (s BundleTaskError) GoString() string {
  20194. return s.String()
  20195. }
  20196. // SetCode sets the Code field's value.
  20197. func (s *BundleTaskError) SetCode(v string) *BundleTaskError {
  20198. s.Code = &v
  20199. return s
  20200. }
  20201. // SetMessage sets the Message field's value.
  20202. func (s *BundleTaskError) SetMessage(v string) *BundleTaskError {
  20203. s.Message = &v
  20204. return s
  20205. }
  20206. // Contains the parameters for CancelBundleTask.
  20207. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTaskRequest
  20208. type CancelBundleTaskInput struct {
  20209. _ struct{} `type:"structure"`
  20210. // The ID of the bundle task.
  20211. //
  20212. // BundleId is a required field
  20213. BundleId *string `type:"string" required:"true"`
  20214. // Checks whether you have the required permissions for the action, without
  20215. // actually making the request, and provides an error response. If you have
  20216. // the required permissions, the error response is DryRunOperation. Otherwise,
  20217. // it is UnauthorizedOperation.
  20218. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20219. }
  20220. // String returns the string representation
  20221. func (s CancelBundleTaskInput) String() string {
  20222. return awsutil.Prettify(s)
  20223. }
  20224. // GoString returns the string representation
  20225. func (s CancelBundleTaskInput) GoString() string {
  20226. return s.String()
  20227. }
  20228. // Validate inspects the fields of the type to determine if they are valid.
  20229. func (s *CancelBundleTaskInput) Validate() error {
  20230. invalidParams := request.ErrInvalidParams{Context: "CancelBundleTaskInput"}
  20231. if s.BundleId == nil {
  20232. invalidParams.Add(request.NewErrParamRequired("BundleId"))
  20233. }
  20234. if invalidParams.Len() > 0 {
  20235. return invalidParams
  20236. }
  20237. return nil
  20238. }
  20239. // SetBundleId sets the BundleId field's value.
  20240. func (s *CancelBundleTaskInput) SetBundleId(v string) *CancelBundleTaskInput {
  20241. s.BundleId = &v
  20242. return s
  20243. }
  20244. // SetDryRun sets the DryRun field's value.
  20245. func (s *CancelBundleTaskInput) SetDryRun(v bool) *CancelBundleTaskInput {
  20246. s.DryRun = &v
  20247. return s
  20248. }
  20249. // Contains the output of CancelBundleTask.
  20250. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTaskResult
  20251. type CancelBundleTaskOutput struct {
  20252. _ struct{} `type:"structure"`
  20253. // Information about the bundle task.
  20254. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  20255. }
  20256. // String returns the string representation
  20257. func (s CancelBundleTaskOutput) String() string {
  20258. return awsutil.Prettify(s)
  20259. }
  20260. // GoString returns the string representation
  20261. func (s CancelBundleTaskOutput) GoString() string {
  20262. return s.String()
  20263. }
  20264. // SetBundleTask sets the BundleTask field's value.
  20265. func (s *CancelBundleTaskOutput) SetBundleTask(v *BundleTask) *CancelBundleTaskOutput {
  20266. s.BundleTask = v
  20267. return s
  20268. }
  20269. // Contains the parameters for CancelConversionTask.
  20270. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionRequest
  20271. type CancelConversionTaskInput struct {
  20272. _ struct{} `type:"structure"`
  20273. // The ID of the conversion task.
  20274. //
  20275. // ConversionTaskId is a required field
  20276. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  20277. // Checks whether you have the required permissions for the action, without
  20278. // actually making the request, and provides an error response. If you have
  20279. // the required permissions, the error response is DryRunOperation. Otherwise,
  20280. // it is UnauthorizedOperation.
  20281. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20282. // The reason for canceling the conversion task.
  20283. ReasonMessage *string `locationName:"reasonMessage" type:"string"`
  20284. }
  20285. // String returns the string representation
  20286. func (s CancelConversionTaskInput) String() string {
  20287. return awsutil.Prettify(s)
  20288. }
  20289. // GoString returns the string representation
  20290. func (s CancelConversionTaskInput) GoString() string {
  20291. return s.String()
  20292. }
  20293. // Validate inspects the fields of the type to determine if they are valid.
  20294. func (s *CancelConversionTaskInput) Validate() error {
  20295. invalidParams := request.ErrInvalidParams{Context: "CancelConversionTaskInput"}
  20296. if s.ConversionTaskId == nil {
  20297. invalidParams.Add(request.NewErrParamRequired("ConversionTaskId"))
  20298. }
  20299. if invalidParams.Len() > 0 {
  20300. return invalidParams
  20301. }
  20302. return nil
  20303. }
  20304. // SetConversionTaskId sets the ConversionTaskId field's value.
  20305. func (s *CancelConversionTaskInput) SetConversionTaskId(v string) *CancelConversionTaskInput {
  20306. s.ConversionTaskId = &v
  20307. return s
  20308. }
  20309. // SetDryRun sets the DryRun field's value.
  20310. func (s *CancelConversionTaskInput) SetDryRun(v bool) *CancelConversionTaskInput {
  20311. s.DryRun = &v
  20312. return s
  20313. }
  20314. // SetReasonMessage sets the ReasonMessage field's value.
  20315. func (s *CancelConversionTaskInput) SetReasonMessage(v string) *CancelConversionTaskInput {
  20316. s.ReasonMessage = &v
  20317. return s
  20318. }
  20319. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTaskOutput
  20320. type CancelConversionTaskOutput struct {
  20321. _ struct{} `type:"structure"`
  20322. }
  20323. // String returns the string representation
  20324. func (s CancelConversionTaskOutput) String() string {
  20325. return awsutil.Prettify(s)
  20326. }
  20327. // GoString returns the string representation
  20328. func (s CancelConversionTaskOutput) GoString() string {
  20329. return s.String()
  20330. }
  20331. // Contains the parameters for CancelExportTask.
  20332. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTaskRequest
  20333. type CancelExportTaskInput struct {
  20334. _ struct{} `type:"structure"`
  20335. // The ID of the export task. This is the ID returned by CreateInstanceExportTask.
  20336. //
  20337. // ExportTaskId is a required field
  20338. ExportTaskId *string `locationName:"exportTaskId" type:"string" required:"true"`
  20339. }
  20340. // String returns the string representation
  20341. func (s CancelExportTaskInput) String() string {
  20342. return awsutil.Prettify(s)
  20343. }
  20344. // GoString returns the string representation
  20345. func (s CancelExportTaskInput) GoString() string {
  20346. return s.String()
  20347. }
  20348. // Validate inspects the fields of the type to determine if they are valid.
  20349. func (s *CancelExportTaskInput) Validate() error {
  20350. invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
  20351. if s.ExportTaskId == nil {
  20352. invalidParams.Add(request.NewErrParamRequired("ExportTaskId"))
  20353. }
  20354. if invalidParams.Len() > 0 {
  20355. return invalidParams
  20356. }
  20357. return nil
  20358. }
  20359. // SetExportTaskId sets the ExportTaskId field's value.
  20360. func (s *CancelExportTaskInput) SetExportTaskId(v string) *CancelExportTaskInput {
  20361. s.ExportTaskId = &v
  20362. return s
  20363. }
  20364. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTaskOutput
  20365. type CancelExportTaskOutput struct {
  20366. _ struct{} `type:"structure"`
  20367. }
  20368. // String returns the string representation
  20369. func (s CancelExportTaskOutput) String() string {
  20370. return awsutil.Prettify(s)
  20371. }
  20372. // GoString returns the string representation
  20373. func (s CancelExportTaskOutput) GoString() string {
  20374. return s.String()
  20375. }
  20376. // Contains the parameters for CancelImportTask.
  20377. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTaskRequest
  20378. type CancelImportTaskInput struct {
  20379. _ struct{} `type:"structure"`
  20380. // The reason for canceling the task.
  20381. CancelReason *string `type:"string"`
  20382. // Checks whether you have the required permissions for the action, without
  20383. // actually making the request, and provides an error response. If you have
  20384. // the required permissions, the error response is DryRunOperation. Otherwise,
  20385. // it is UnauthorizedOperation.
  20386. DryRun *bool `type:"boolean"`
  20387. // The ID of the import image or import snapshot task to be canceled.
  20388. ImportTaskId *string `type:"string"`
  20389. }
  20390. // String returns the string representation
  20391. func (s CancelImportTaskInput) String() string {
  20392. return awsutil.Prettify(s)
  20393. }
  20394. // GoString returns the string representation
  20395. func (s CancelImportTaskInput) GoString() string {
  20396. return s.String()
  20397. }
  20398. // SetCancelReason sets the CancelReason field's value.
  20399. func (s *CancelImportTaskInput) SetCancelReason(v string) *CancelImportTaskInput {
  20400. s.CancelReason = &v
  20401. return s
  20402. }
  20403. // SetDryRun sets the DryRun field's value.
  20404. func (s *CancelImportTaskInput) SetDryRun(v bool) *CancelImportTaskInput {
  20405. s.DryRun = &v
  20406. return s
  20407. }
  20408. // SetImportTaskId sets the ImportTaskId field's value.
  20409. func (s *CancelImportTaskInput) SetImportTaskId(v string) *CancelImportTaskInput {
  20410. s.ImportTaskId = &v
  20411. return s
  20412. }
  20413. // Contains the output for CancelImportTask.
  20414. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTaskResult
  20415. type CancelImportTaskOutput struct {
  20416. _ struct{} `type:"structure"`
  20417. // The ID of the task being canceled.
  20418. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  20419. // The current state of the task being canceled.
  20420. PreviousState *string `locationName:"previousState" type:"string"`
  20421. // The current state of the task being canceled.
  20422. State *string `locationName:"state" type:"string"`
  20423. }
  20424. // String returns the string representation
  20425. func (s CancelImportTaskOutput) String() string {
  20426. return awsutil.Prettify(s)
  20427. }
  20428. // GoString returns the string representation
  20429. func (s CancelImportTaskOutput) GoString() string {
  20430. return s.String()
  20431. }
  20432. // SetImportTaskId sets the ImportTaskId field's value.
  20433. func (s *CancelImportTaskOutput) SetImportTaskId(v string) *CancelImportTaskOutput {
  20434. s.ImportTaskId = &v
  20435. return s
  20436. }
  20437. // SetPreviousState sets the PreviousState field's value.
  20438. func (s *CancelImportTaskOutput) SetPreviousState(v string) *CancelImportTaskOutput {
  20439. s.PreviousState = &v
  20440. return s
  20441. }
  20442. // SetState sets the State field's value.
  20443. func (s *CancelImportTaskOutput) SetState(v string) *CancelImportTaskOutput {
  20444. s.State = &v
  20445. return s
  20446. }
  20447. // Contains the parameters for CancelReservedInstancesListing.
  20448. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListingRequest
  20449. type CancelReservedInstancesListingInput struct {
  20450. _ struct{} `type:"structure"`
  20451. // The ID of the Reserved Instance listing.
  20452. //
  20453. // ReservedInstancesListingId is a required field
  20454. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string" required:"true"`
  20455. }
  20456. // String returns the string representation
  20457. func (s CancelReservedInstancesListingInput) String() string {
  20458. return awsutil.Prettify(s)
  20459. }
  20460. // GoString returns the string representation
  20461. func (s CancelReservedInstancesListingInput) GoString() string {
  20462. return s.String()
  20463. }
  20464. // Validate inspects the fields of the type to determine if they are valid.
  20465. func (s *CancelReservedInstancesListingInput) Validate() error {
  20466. invalidParams := request.ErrInvalidParams{Context: "CancelReservedInstancesListingInput"}
  20467. if s.ReservedInstancesListingId == nil {
  20468. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesListingId"))
  20469. }
  20470. if invalidParams.Len() > 0 {
  20471. return invalidParams
  20472. }
  20473. return nil
  20474. }
  20475. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  20476. func (s *CancelReservedInstancesListingInput) SetReservedInstancesListingId(v string) *CancelReservedInstancesListingInput {
  20477. s.ReservedInstancesListingId = &v
  20478. return s
  20479. }
  20480. // Contains the output of CancelReservedInstancesListing.
  20481. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListingResult
  20482. type CancelReservedInstancesListingOutput struct {
  20483. _ struct{} `type:"structure"`
  20484. // The Reserved Instance listing.
  20485. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  20486. }
  20487. // String returns the string representation
  20488. func (s CancelReservedInstancesListingOutput) String() string {
  20489. return awsutil.Prettify(s)
  20490. }
  20491. // GoString returns the string representation
  20492. func (s CancelReservedInstancesListingOutput) GoString() string {
  20493. return s.String()
  20494. }
  20495. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  20496. func (s *CancelReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CancelReservedInstancesListingOutput {
  20497. s.ReservedInstancesListings = v
  20498. return s
  20499. }
  20500. // Describes a Spot fleet error.
  20501. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsError
  20502. type CancelSpotFleetRequestsError struct {
  20503. _ struct{} `type:"structure"`
  20504. // The error code.
  20505. //
  20506. // Code is a required field
  20507. Code *string `locationName:"code" type:"string" required:"true" enum:"CancelBatchErrorCode"`
  20508. // The description for the error code.
  20509. //
  20510. // Message is a required field
  20511. Message *string `locationName:"message" type:"string" required:"true"`
  20512. }
  20513. // String returns the string representation
  20514. func (s CancelSpotFleetRequestsError) String() string {
  20515. return awsutil.Prettify(s)
  20516. }
  20517. // GoString returns the string representation
  20518. func (s CancelSpotFleetRequestsError) GoString() string {
  20519. return s.String()
  20520. }
  20521. // SetCode sets the Code field's value.
  20522. func (s *CancelSpotFleetRequestsError) SetCode(v string) *CancelSpotFleetRequestsError {
  20523. s.Code = &v
  20524. return s
  20525. }
  20526. // SetMessage sets the Message field's value.
  20527. func (s *CancelSpotFleetRequestsError) SetMessage(v string) *CancelSpotFleetRequestsError {
  20528. s.Message = &v
  20529. return s
  20530. }
  20531. // Describes a Spot fleet request that was not successfully canceled.
  20532. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsErrorItem
  20533. type CancelSpotFleetRequestsErrorItem struct {
  20534. _ struct{} `type:"structure"`
  20535. // The error.
  20536. //
  20537. // Error is a required field
  20538. Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure" required:"true"`
  20539. // The ID of the Spot fleet request.
  20540. //
  20541. // SpotFleetRequestId is a required field
  20542. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  20543. }
  20544. // String returns the string representation
  20545. func (s CancelSpotFleetRequestsErrorItem) String() string {
  20546. return awsutil.Prettify(s)
  20547. }
  20548. // GoString returns the string representation
  20549. func (s CancelSpotFleetRequestsErrorItem) GoString() string {
  20550. return s.String()
  20551. }
  20552. // SetError sets the Error field's value.
  20553. func (s *CancelSpotFleetRequestsErrorItem) SetError(v *CancelSpotFleetRequestsError) *CancelSpotFleetRequestsErrorItem {
  20554. s.Error = v
  20555. return s
  20556. }
  20557. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  20558. func (s *CancelSpotFleetRequestsErrorItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsErrorItem {
  20559. s.SpotFleetRequestId = &v
  20560. return s
  20561. }
  20562. // Contains the parameters for CancelSpotFleetRequests.
  20563. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsRequest
  20564. type CancelSpotFleetRequestsInput struct {
  20565. _ struct{} `type:"structure"`
  20566. // Checks whether you have the required permissions for the action, without
  20567. // actually making the request, and provides an error response. If you have
  20568. // the required permissions, the error response is DryRunOperation. Otherwise,
  20569. // it is UnauthorizedOperation.
  20570. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20571. // The IDs of the Spot fleet requests.
  20572. //
  20573. // SpotFleetRequestIds is a required field
  20574. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list" required:"true"`
  20575. // Indicates whether to terminate instances for a Spot fleet request if it is
  20576. // canceled successfully.
  20577. //
  20578. // TerminateInstances is a required field
  20579. TerminateInstances *bool `locationName:"terminateInstances" type:"boolean" required:"true"`
  20580. }
  20581. // String returns the string representation
  20582. func (s CancelSpotFleetRequestsInput) String() string {
  20583. return awsutil.Prettify(s)
  20584. }
  20585. // GoString returns the string representation
  20586. func (s CancelSpotFleetRequestsInput) GoString() string {
  20587. return s.String()
  20588. }
  20589. // Validate inspects the fields of the type to determine if they are valid.
  20590. func (s *CancelSpotFleetRequestsInput) Validate() error {
  20591. invalidParams := request.ErrInvalidParams{Context: "CancelSpotFleetRequestsInput"}
  20592. if s.SpotFleetRequestIds == nil {
  20593. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestIds"))
  20594. }
  20595. if s.TerminateInstances == nil {
  20596. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  20597. }
  20598. if invalidParams.Len() > 0 {
  20599. return invalidParams
  20600. }
  20601. return nil
  20602. }
  20603. // SetDryRun sets the DryRun field's value.
  20604. func (s *CancelSpotFleetRequestsInput) SetDryRun(v bool) *CancelSpotFleetRequestsInput {
  20605. s.DryRun = &v
  20606. return s
  20607. }
  20608. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  20609. func (s *CancelSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *CancelSpotFleetRequestsInput {
  20610. s.SpotFleetRequestIds = v
  20611. return s
  20612. }
  20613. // SetTerminateInstances sets the TerminateInstances field's value.
  20614. func (s *CancelSpotFleetRequestsInput) SetTerminateInstances(v bool) *CancelSpotFleetRequestsInput {
  20615. s.TerminateInstances = &v
  20616. return s
  20617. }
  20618. // Contains the output of CancelSpotFleetRequests.
  20619. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsResponse
  20620. type CancelSpotFleetRequestsOutput struct {
  20621. _ struct{} `type:"structure"`
  20622. // Information about the Spot fleet requests that are successfully canceled.
  20623. SuccessfulFleetRequests []*CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"`
  20624. // Information about the Spot fleet requests that are not successfully canceled.
  20625. UnsuccessfulFleetRequests []*CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"`
  20626. }
  20627. // String returns the string representation
  20628. func (s CancelSpotFleetRequestsOutput) String() string {
  20629. return awsutil.Prettify(s)
  20630. }
  20631. // GoString returns the string representation
  20632. func (s CancelSpotFleetRequestsOutput) GoString() string {
  20633. return s.String()
  20634. }
  20635. // SetSuccessfulFleetRequests sets the SuccessfulFleetRequests field's value.
  20636. func (s *CancelSpotFleetRequestsOutput) SetSuccessfulFleetRequests(v []*CancelSpotFleetRequestsSuccessItem) *CancelSpotFleetRequestsOutput {
  20637. s.SuccessfulFleetRequests = v
  20638. return s
  20639. }
  20640. // SetUnsuccessfulFleetRequests sets the UnsuccessfulFleetRequests field's value.
  20641. func (s *CancelSpotFleetRequestsOutput) SetUnsuccessfulFleetRequests(v []*CancelSpotFleetRequestsErrorItem) *CancelSpotFleetRequestsOutput {
  20642. s.UnsuccessfulFleetRequests = v
  20643. return s
  20644. }
  20645. // Describes a Spot fleet request that was successfully canceled.
  20646. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsSuccessItem
  20647. type CancelSpotFleetRequestsSuccessItem struct {
  20648. _ struct{} `type:"structure"`
  20649. // The current state of the Spot fleet request.
  20650. //
  20651. // CurrentSpotFleetRequestState is a required field
  20652. CurrentSpotFleetRequestState *string `locationName:"currentSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  20653. // The previous state of the Spot fleet request.
  20654. //
  20655. // PreviousSpotFleetRequestState is a required field
  20656. PreviousSpotFleetRequestState *string `locationName:"previousSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  20657. // The ID of the Spot fleet request.
  20658. //
  20659. // SpotFleetRequestId is a required field
  20660. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  20661. }
  20662. // String returns the string representation
  20663. func (s CancelSpotFleetRequestsSuccessItem) String() string {
  20664. return awsutil.Prettify(s)
  20665. }
  20666. // GoString returns the string representation
  20667. func (s CancelSpotFleetRequestsSuccessItem) GoString() string {
  20668. return s.String()
  20669. }
  20670. // SetCurrentSpotFleetRequestState sets the CurrentSpotFleetRequestState field's value.
  20671. func (s *CancelSpotFleetRequestsSuccessItem) SetCurrentSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  20672. s.CurrentSpotFleetRequestState = &v
  20673. return s
  20674. }
  20675. // SetPreviousSpotFleetRequestState sets the PreviousSpotFleetRequestState field's value.
  20676. func (s *CancelSpotFleetRequestsSuccessItem) SetPreviousSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  20677. s.PreviousSpotFleetRequestState = &v
  20678. return s
  20679. }
  20680. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  20681. func (s *CancelSpotFleetRequestsSuccessItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsSuccessItem {
  20682. s.SpotFleetRequestId = &v
  20683. return s
  20684. }
  20685. // Contains the parameters for CancelSpotInstanceRequests.
  20686. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequestsRequest
  20687. type CancelSpotInstanceRequestsInput struct {
  20688. _ struct{} `type:"structure"`
  20689. // Checks whether you have the required permissions for the action, without
  20690. // actually making the request, and provides an error response. If you have
  20691. // the required permissions, the error response is DryRunOperation. Otherwise,
  20692. // it is UnauthorizedOperation.
  20693. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20694. // One or more Spot instance request IDs.
  20695. //
  20696. // SpotInstanceRequestIds is a required field
  20697. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"`
  20698. }
  20699. // String returns the string representation
  20700. func (s CancelSpotInstanceRequestsInput) String() string {
  20701. return awsutil.Prettify(s)
  20702. }
  20703. // GoString returns the string representation
  20704. func (s CancelSpotInstanceRequestsInput) GoString() string {
  20705. return s.String()
  20706. }
  20707. // Validate inspects the fields of the type to determine if they are valid.
  20708. func (s *CancelSpotInstanceRequestsInput) Validate() error {
  20709. invalidParams := request.ErrInvalidParams{Context: "CancelSpotInstanceRequestsInput"}
  20710. if s.SpotInstanceRequestIds == nil {
  20711. invalidParams.Add(request.NewErrParamRequired("SpotInstanceRequestIds"))
  20712. }
  20713. if invalidParams.Len() > 0 {
  20714. return invalidParams
  20715. }
  20716. return nil
  20717. }
  20718. // SetDryRun sets the DryRun field's value.
  20719. func (s *CancelSpotInstanceRequestsInput) SetDryRun(v bool) *CancelSpotInstanceRequestsInput {
  20720. s.DryRun = &v
  20721. return s
  20722. }
  20723. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  20724. func (s *CancelSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *CancelSpotInstanceRequestsInput {
  20725. s.SpotInstanceRequestIds = v
  20726. return s
  20727. }
  20728. // Contains the output of CancelSpotInstanceRequests.
  20729. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequestsResult
  20730. type CancelSpotInstanceRequestsOutput struct {
  20731. _ struct{} `type:"structure"`
  20732. // One or more Spot instance requests.
  20733. CancelledSpotInstanceRequests []*CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  20734. }
  20735. // String returns the string representation
  20736. func (s CancelSpotInstanceRequestsOutput) String() string {
  20737. return awsutil.Prettify(s)
  20738. }
  20739. // GoString returns the string representation
  20740. func (s CancelSpotInstanceRequestsOutput) GoString() string {
  20741. return s.String()
  20742. }
  20743. // SetCancelledSpotInstanceRequests sets the CancelledSpotInstanceRequests field's value.
  20744. func (s *CancelSpotInstanceRequestsOutput) SetCancelledSpotInstanceRequests(v []*CancelledSpotInstanceRequest) *CancelSpotInstanceRequestsOutput {
  20745. s.CancelledSpotInstanceRequests = v
  20746. return s
  20747. }
  20748. // Describes a request to cancel a Spot instance.
  20749. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelledSpotInstanceRequest
  20750. type CancelledSpotInstanceRequest struct {
  20751. _ struct{} `type:"structure"`
  20752. // The ID of the Spot instance request.
  20753. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  20754. // The state of the Spot instance request.
  20755. State *string `locationName:"state" type:"string" enum:"CancelSpotInstanceRequestState"`
  20756. }
  20757. // String returns the string representation
  20758. func (s CancelledSpotInstanceRequest) String() string {
  20759. return awsutil.Prettify(s)
  20760. }
  20761. // GoString returns the string representation
  20762. func (s CancelledSpotInstanceRequest) GoString() string {
  20763. return s.String()
  20764. }
  20765. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  20766. func (s *CancelledSpotInstanceRequest) SetSpotInstanceRequestId(v string) *CancelledSpotInstanceRequest {
  20767. s.SpotInstanceRequestId = &v
  20768. return s
  20769. }
  20770. // SetState sets the State field's value.
  20771. func (s *CancelledSpotInstanceRequest) SetState(v string) *CancelledSpotInstanceRequest {
  20772. s.State = &v
  20773. return s
  20774. }
  20775. // Describes the ClassicLink DNS support status of a VPC.
  20776. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLinkDnsSupport
  20777. type ClassicLinkDnsSupport struct {
  20778. _ struct{} `type:"structure"`
  20779. // Indicates whether ClassicLink DNS support is enabled for the VPC.
  20780. ClassicLinkDnsSupported *bool `locationName:"classicLinkDnsSupported" type:"boolean"`
  20781. // The ID of the VPC.
  20782. VpcId *string `locationName:"vpcId" type:"string"`
  20783. }
  20784. // String returns the string representation
  20785. func (s ClassicLinkDnsSupport) String() string {
  20786. return awsutil.Prettify(s)
  20787. }
  20788. // GoString returns the string representation
  20789. func (s ClassicLinkDnsSupport) GoString() string {
  20790. return s.String()
  20791. }
  20792. // SetClassicLinkDnsSupported sets the ClassicLinkDnsSupported field's value.
  20793. func (s *ClassicLinkDnsSupport) SetClassicLinkDnsSupported(v bool) *ClassicLinkDnsSupport {
  20794. s.ClassicLinkDnsSupported = &v
  20795. return s
  20796. }
  20797. // SetVpcId sets the VpcId field's value.
  20798. func (s *ClassicLinkDnsSupport) SetVpcId(v string) *ClassicLinkDnsSupport {
  20799. s.VpcId = &v
  20800. return s
  20801. }
  20802. // Describes a linked EC2-Classic instance.
  20803. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLinkInstance
  20804. type ClassicLinkInstance struct {
  20805. _ struct{} `type:"structure"`
  20806. // A list of security groups.
  20807. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  20808. // The ID of the instance.
  20809. InstanceId *string `locationName:"instanceId" type:"string"`
  20810. // Any tags assigned to the instance.
  20811. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  20812. // The ID of the VPC.
  20813. VpcId *string `locationName:"vpcId" type:"string"`
  20814. }
  20815. // String returns the string representation
  20816. func (s ClassicLinkInstance) String() string {
  20817. return awsutil.Prettify(s)
  20818. }
  20819. // GoString returns the string representation
  20820. func (s ClassicLinkInstance) GoString() string {
  20821. return s.String()
  20822. }
  20823. // SetGroups sets the Groups field's value.
  20824. func (s *ClassicLinkInstance) SetGroups(v []*GroupIdentifier) *ClassicLinkInstance {
  20825. s.Groups = v
  20826. return s
  20827. }
  20828. // SetInstanceId sets the InstanceId field's value.
  20829. func (s *ClassicLinkInstance) SetInstanceId(v string) *ClassicLinkInstance {
  20830. s.InstanceId = &v
  20831. return s
  20832. }
  20833. // SetTags sets the Tags field's value.
  20834. func (s *ClassicLinkInstance) SetTags(v []*Tag) *ClassicLinkInstance {
  20835. s.Tags = v
  20836. return s
  20837. }
  20838. // SetVpcId sets the VpcId field's value.
  20839. func (s *ClassicLinkInstance) SetVpcId(v string) *ClassicLinkInstance {
  20840. s.VpcId = &v
  20841. return s
  20842. }
  20843. // Describes the client-specific data.
  20844. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClientData
  20845. type ClientData struct {
  20846. _ struct{} `type:"structure"`
  20847. // A user-defined comment about the disk upload.
  20848. Comment *string `type:"string"`
  20849. // The time that the disk upload ends.
  20850. UploadEnd *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  20851. // The size of the uploaded disk image, in GiB.
  20852. UploadSize *float64 `type:"double"`
  20853. // The time that the disk upload starts.
  20854. UploadStart *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  20855. }
  20856. // String returns the string representation
  20857. func (s ClientData) String() string {
  20858. return awsutil.Prettify(s)
  20859. }
  20860. // GoString returns the string representation
  20861. func (s ClientData) GoString() string {
  20862. return s.String()
  20863. }
  20864. // SetComment sets the Comment field's value.
  20865. func (s *ClientData) SetComment(v string) *ClientData {
  20866. s.Comment = &v
  20867. return s
  20868. }
  20869. // SetUploadEnd sets the UploadEnd field's value.
  20870. func (s *ClientData) SetUploadEnd(v time.Time) *ClientData {
  20871. s.UploadEnd = &v
  20872. return s
  20873. }
  20874. // SetUploadSize sets the UploadSize field's value.
  20875. func (s *ClientData) SetUploadSize(v float64) *ClientData {
  20876. s.UploadSize = &v
  20877. return s
  20878. }
  20879. // SetUploadStart sets the UploadStart field's value.
  20880. func (s *ClientData) SetUploadStart(v time.Time) *ClientData {
  20881. s.UploadStart = &v
  20882. return s
  20883. }
  20884. // Contains the parameters for ConfirmProductInstance.
  20885. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstanceRequest
  20886. type ConfirmProductInstanceInput struct {
  20887. _ struct{} `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 `locationName:"dryRun" type:"boolean"`
  20893. // The ID of the instance.
  20894. //
  20895. // InstanceId is a required field
  20896. InstanceId *string `type:"string" required:"true"`
  20897. // The product code. This must be a product code that you own.
  20898. //
  20899. // ProductCode is a required field
  20900. ProductCode *string `type:"string" required:"true"`
  20901. }
  20902. // String returns the string representation
  20903. func (s ConfirmProductInstanceInput) String() string {
  20904. return awsutil.Prettify(s)
  20905. }
  20906. // GoString returns the string representation
  20907. func (s ConfirmProductInstanceInput) GoString() string {
  20908. return s.String()
  20909. }
  20910. // Validate inspects the fields of the type to determine if they are valid.
  20911. func (s *ConfirmProductInstanceInput) Validate() error {
  20912. invalidParams := request.ErrInvalidParams{Context: "ConfirmProductInstanceInput"}
  20913. if s.InstanceId == nil {
  20914. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  20915. }
  20916. if s.ProductCode == nil {
  20917. invalidParams.Add(request.NewErrParamRequired("ProductCode"))
  20918. }
  20919. if invalidParams.Len() > 0 {
  20920. return invalidParams
  20921. }
  20922. return nil
  20923. }
  20924. // SetDryRun sets the DryRun field's value.
  20925. func (s *ConfirmProductInstanceInput) SetDryRun(v bool) *ConfirmProductInstanceInput {
  20926. s.DryRun = &v
  20927. return s
  20928. }
  20929. // SetInstanceId sets the InstanceId field's value.
  20930. func (s *ConfirmProductInstanceInput) SetInstanceId(v string) *ConfirmProductInstanceInput {
  20931. s.InstanceId = &v
  20932. return s
  20933. }
  20934. // SetProductCode sets the ProductCode field's value.
  20935. func (s *ConfirmProductInstanceInput) SetProductCode(v string) *ConfirmProductInstanceInput {
  20936. s.ProductCode = &v
  20937. return s
  20938. }
  20939. // Contains the output of ConfirmProductInstance.
  20940. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstanceResult
  20941. type ConfirmProductInstanceOutput struct {
  20942. _ struct{} `type:"structure"`
  20943. // The AWS account ID of the instance owner. This is only present if the product
  20944. // code is attached to the instance.
  20945. OwnerId *string `locationName:"ownerId" type:"string"`
  20946. // The return value of the request. Returns true if the specified product code
  20947. // is owned by the requester and associated with the specified instance.
  20948. Return *bool `locationName:"return" type:"boolean"`
  20949. }
  20950. // String returns the string representation
  20951. func (s ConfirmProductInstanceOutput) String() string {
  20952. return awsutil.Prettify(s)
  20953. }
  20954. // GoString returns the string representation
  20955. func (s ConfirmProductInstanceOutput) GoString() string {
  20956. return s.String()
  20957. }
  20958. // SetOwnerId sets the OwnerId field's value.
  20959. func (s *ConfirmProductInstanceOutput) SetOwnerId(v string) *ConfirmProductInstanceOutput {
  20960. s.OwnerId = &v
  20961. return s
  20962. }
  20963. // SetReturn sets the Return field's value.
  20964. func (s *ConfirmProductInstanceOutput) SetReturn(v bool) *ConfirmProductInstanceOutput {
  20965. s.Return = &v
  20966. return s
  20967. }
  20968. // Describes a conversion task.
  20969. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConversionTask
  20970. type ConversionTask struct {
  20971. _ struct{} `type:"structure"`
  20972. // The ID of the conversion task.
  20973. //
  20974. // ConversionTaskId is a required field
  20975. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  20976. // The time when the task expires. If the upload isn't complete before the expiration
  20977. // time, we automatically cancel the task.
  20978. ExpirationTime *string `locationName:"expirationTime" type:"string"`
  20979. // If the task is for importing an instance, this contains information about
  20980. // the import instance task.
  20981. ImportInstance *ImportInstanceTaskDetails `locationName:"importInstance" type:"structure"`
  20982. // If the task is for importing a volume, this contains information about the
  20983. // import volume task.
  20984. ImportVolume *ImportVolumeTaskDetails `locationName:"importVolume" type:"structure"`
  20985. // The state of the conversion task.
  20986. //
  20987. // State is a required field
  20988. State *string `locationName:"state" type:"string" required:"true" enum:"ConversionTaskState"`
  20989. // The status message related to the conversion task.
  20990. StatusMessage *string `locationName:"statusMessage" type:"string"`
  20991. // Any tags assigned to the task.
  20992. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  20993. }
  20994. // String returns the string representation
  20995. func (s ConversionTask) String() string {
  20996. return awsutil.Prettify(s)
  20997. }
  20998. // GoString returns the string representation
  20999. func (s ConversionTask) GoString() string {
  21000. return s.String()
  21001. }
  21002. // SetConversionTaskId sets the ConversionTaskId field's value.
  21003. func (s *ConversionTask) SetConversionTaskId(v string) *ConversionTask {
  21004. s.ConversionTaskId = &v
  21005. return s
  21006. }
  21007. // SetExpirationTime sets the ExpirationTime field's value.
  21008. func (s *ConversionTask) SetExpirationTime(v string) *ConversionTask {
  21009. s.ExpirationTime = &v
  21010. return s
  21011. }
  21012. // SetImportInstance sets the ImportInstance field's value.
  21013. func (s *ConversionTask) SetImportInstance(v *ImportInstanceTaskDetails) *ConversionTask {
  21014. s.ImportInstance = v
  21015. return s
  21016. }
  21017. // SetImportVolume sets the ImportVolume field's value.
  21018. func (s *ConversionTask) SetImportVolume(v *ImportVolumeTaskDetails) *ConversionTask {
  21019. s.ImportVolume = v
  21020. return s
  21021. }
  21022. // SetState sets the State field's value.
  21023. func (s *ConversionTask) SetState(v string) *ConversionTask {
  21024. s.State = &v
  21025. return s
  21026. }
  21027. // SetStatusMessage sets the StatusMessage field's value.
  21028. func (s *ConversionTask) SetStatusMessage(v string) *ConversionTask {
  21029. s.StatusMessage = &v
  21030. return s
  21031. }
  21032. // SetTags sets the Tags field's value.
  21033. func (s *ConversionTask) SetTags(v []*Tag) *ConversionTask {
  21034. s.Tags = v
  21035. return s
  21036. }
  21037. // Contains the parameters for CopyImage.
  21038. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImageRequest
  21039. type CopyImageInput struct {
  21040. _ struct{} `type:"structure"`
  21041. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  21042. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  21043. // in the Amazon Elastic Compute Cloud User Guide.
  21044. ClientToken *string `type:"string"`
  21045. // A description for the new AMI in the destination region.
  21046. Description *string `type:"string"`
  21047. // Checks whether you have the required permissions for the action, without
  21048. // actually making the request, and provides an error response. If you have
  21049. // the required permissions, the error response is DryRunOperation. Otherwise,
  21050. // it is UnauthorizedOperation.
  21051. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21052. // Specifies whether the destination snapshots of the copied image should be
  21053. // encrypted. The default CMK for EBS is used unless a non-default AWS Key Management
  21054. // Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see
  21055. // Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  21056. // in the Amazon Elastic Compute Cloud User Guide.
  21057. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  21058. // The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when
  21059. // encrypting the snapshots of an image during a copy operation. This parameter
  21060. // is only required if you want to use a non-default CMK; if this parameter
  21061. // is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms
  21062. // namespace, followed by the region of the CMK, the AWS account ID of the CMK
  21063. // owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  21064. // The specified CMK must exist in the region that the snapshot is being copied
  21065. // to. If a KmsKeyId is specified, the Encrypted flag must also be set.
  21066. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  21067. // The name of the new AMI in the destination region.
  21068. //
  21069. // Name is a required field
  21070. Name *string `type:"string" required:"true"`
  21071. // The ID of the AMI to copy.
  21072. //
  21073. // SourceImageId is a required field
  21074. SourceImageId *string `type:"string" required:"true"`
  21075. // The name of the region that contains the AMI to copy.
  21076. //
  21077. // SourceRegion is a required field
  21078. SourceRegion *string `type:"string" required:"true"`
  21079. }
  21080. // String returns the string representation
  21081. func (s CopyImageInput) String() string {
  21082. return awsutil.Prettify(s)
  21083. }
  21084. // GoString returns the string representation
  21085. func (s CopyImageInput) GoString() string {
  21086. return s.String()
  21087. }
  21088. // Validate inspects the fields of the type to determine if they are valid.
  21089. func (s *CopyImageInput) Validate() error {
  21090. invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"}
  21091. if s.Name == nil {
  21092. invalidParams.Add(request.NewErrParamRequired("Name"))
  21093. }
  21094. if s.SourceImageId == nil {
  21095. invalidParams.Add(request.NewErrParamRequired("SourceImageId"))
  21096. }
  21097. if s.SourceRegion == nil {
  21098. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  21099. }
  21100. if invalidParams.Len() > 0 {
  21101. return invalidParams
  21102. }
  21103. return nil
  21104. }
  21105. // SetClientToken sets the ClientToken field's value.
  21106. func (s *CopyImageInput) SetClientToken(v string) *CopyImageInput {
  21107. s.ClientToken = &v
  21108. return s
  21109. }
  21110. // SetDescription sets the Description field's value.
  21111. func (s *CopyImageInput) SetDescription(v string) *CopyImageInput {
  21112. s.Description = &v
  21113. return s
  21114. }
  21115. // SetDryRun sets the DryRun field's value.
  21116. func (s *CopyImageInput) SetDryRun(v bool) *CopyImageInput {
  21117. s.DryRun = &v
  21118. return s
  21119. }
  21120. // SetEncrypted sets the Encrypted field's value.
  21121. func (s *CopyImageInput) SetEncrypted(v bool) *CopyImageInput {
  21122. s.Encrypted = &v
  21123. return s
  21124. }
  21125. // SetKmsKeyId sets the KmsKeyId field's value.
  21126. func (s *CopyImageInput) SetKmsKeyId(v string) *CopyImageInput {
  21127. s.KmsKeyId = &v
  21128. return s
  21129. }
  21130. // SetName sets the Name field's value.
  21131. func (s *CopyImageInput) SetName(v string) *CopyImageInput {
  21132. s.Name = &v
  21133. return s
  21134. }
  21135. // SetSourceImageId sets the SourceImageId field's value.
  21136. func (s *CopyImageInput) SetSourceImageId(v string) *CopyImageInput {
  21137. s.SourceImageId = &v
  21138. return s
  21139. }
  21140. // SetSourceRegion sets the SourceRegion field's value.
  21141. func (s *CopyImageInput) SetSourceRegion(v string) *CopyImageInput {
  21142. s.SourceRegion = &v
  21143. return s
  21144. }
  21145. // Contains the output of CopyImage.
  21146. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImageResult
  21147. type CopyImageOutput struct {
  21148. _ struct{} `type:"structure"`
  21149. // The ID of the new AMI.
  21150. ImageId *string `locationName:"imageId" type:"string"`
  21151. }
  21152. // String returns the string representation
  21153. func (s CopyImageOutput) String() string {
  21154. return awsutil.Prettify(s)
  21155. }
  21156. // GoString returns the string representation
  21157. func (s CopyImageOutput) GoString() string {
  21158. return s.String()
  21159. }
  21160. // SetImageId sets the ImageId field's value.
  21161. func (s *CopyImageOutput) SetImageId(v string) *CopyImageOutput {
  21162. s.ImageId = &v
  21163. return s
  21164. }
  21165. // Contains the parameters for CopySnapshot.
  21166. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshotRequest
  21167. type CopySnapshotInput struct {
  21168. _ struct{} `type:"structure"`
  21169. // A description for the EBS snapshot.
  21170. Description *string `type:"string"`
  21171. // The destination region to use in the PresignedUrl parameter of a snapshot
  21172. // copy operation. This parameter is only valid for specifying the destination
  21173. // region in a PresignedUrl parameter, where it is required.
  21174. //
  21175. // CopySnapshot sends the snapshot copy to the regional endpoint that you send
  21176. // the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS CLI,
  21177. // this is specified with the --region parameter or the default region in your
  21178. // AWS configuration file).
  21179. DestinationRegion *string `locationName:"destinationRegion" type:"string"`
  21180. // Checks whether you have the required permissions for the action, without
  21181. // actually making the request, and provides an error response. If you have
  21182. // the required permissions, the error response is DryRunOperation. Otherwise,
  21183. // it is UnauthorizedOperation.
  21184. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21185. // Specifies whether the destination snapshot should be encrypted. You can encrypt
  21186. // a copy of an unencrypted snapshot using this flag, but you cannot use it
  21187. // to create an unencrypted copy from an encrypted snapshot. Your default CMK
  21188. // for EBS is used unless a non-default AWS Key Management Service (AWS KMS)
  21189. // CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption
  21190. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
  21191. // the Amazon Elastic Compute Cloud User Guide.
  21192. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  21193. // The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when
  21194. // creating the snapshot copy. This parameter is only required if you want to
  21195. // use a non-default CMK; if this parameter is not specified, the default CMK
  21196. // for EBS is used. The ARN contains the arn:aws:kms namespace, followed by
  21197. // the region of the CMK, the AWS account ID of the CMK owner, the key namespace,
  21198. // and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  21199. // The specified CMK must exist in the region that the snapshot is being copied
  21200. // to. If a KmsKeyId is specified, the Encrypted flag must also be set.
  21201. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  21202. // The pre-signed URL that facilitates copying an encrypted snapshot. This parameter
  21203. // is only required when copying an encrypted snapshot with the Amazon EC2 Query
  21204. // API; it is available as an optional parameter in all other cases. The PresignedUrl
  21205. // should use the snapshot source endpoint, the CopySnapshot action, and include
  21206. // the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The
  21207. // PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots
  21208. // are stored in Amazon S3, the signing algorithm for this parameter uses the
  21209. // same logic that is described in Authenticating Requests by Using Query Parameters
  21210. // (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  21211. // in the Amazon Simple Storage Service API Reference. An invalid or improperly
  21212. // signed PresignedUrl will cause the copy operation to fail asynchronously,
  21213. // and the snapshot will move to an error state.
  21214. PresignedUrl *string `locationName:"presignedUrl" type:"string"`
  21215. // The ID of the region that contains the snapshot to be copied.
  21216. //
  21217. // SourceRegion is a required field
  21218. SourceRegion *string `type:"string" required:"true"`
  21219. // The ID of the EBS snapshot to copy.
  21220. //
  21221. // SourceSnapshotId is a required field
  21222. SourceSnapshotId *string `type:"string" required:"true"`
  21223. }
  21224. // String returns the string representation
  21225. func (s CopySnapshotInput) String() string {
  21226. return awsutil.Prettify(s)
  21227. }
  21228. // GoString returns the string representation
  21229. func (s CopySnapshotInput) GoString() string {
  21230. return s.String()
  21231. }
  21232. // Validate inspects the fields of the type to determine if they are valid.
  21233. func (s *CopySnapshotInput) Validate() error {
  21234. invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"}
  21235. if s.SourceRegion == nil {
  21236. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  21237. }
  21238. if s.SourceSnapshotId == nil {
  21239. invalidParams.Add(request.NewErrParamRequired("SourceSnapshotId"))
  21240. }
  21241. if invalidParams.Len() > 0 {
  21242. return invalidParams
  21243. }
  21244. return nil
  21245. }
  21246. // SetDescription sets the Description field's value.
  21247. func (s *CopySnapshotInput) SetDescription(v string) *CopySnapshotInput {
  21248. s.Description = &v
  21249. return s
  21250. }
  21251. // SetDestinationRegion sets the DestinationRegion field's value.
  21252. func (s *CopySnapshotInput) SetDestinationRegion(v string) *CopySnapshotInput {
  21253. s.DestinationRegion = &v
  21254. return s
  21255. }
  21256. // SetDryRun sets the DryRun field's value.
  21257. func (s *CopySnapshotInput) SetDryRun(v bool) *CopySnapshotInput {
  21258. s.DryRun = &v
  21259. return s
  21260. }
  21261. // SetEncrypted sets the Encrypted field's value.
  21262. func (s *CopySnapshotInput) SetEncrypted(v bool) *CopySnapshotInput {
  21263. s.Encrypted = &v
  21264. return s
  21265. }
  21266. // SetKmsKeyId sets the KmsKeyId field's value.
  21267. func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput {
  21268. s.KmsKeyId = &v
  21269. return s
  21270. }
  21271. // SetPresignedUrl sets the PresignedUrl field's value.
  21272. func (s *CopySnapshotInput) SetPresignedUrl(v string) *CopySnapshotInput {
  21273. s.PresignedUrl = &v
  21274. return s
  21275. }
  21276. // SetSourceRegion sets the SourceRegion field's value.
  21277. func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput {
  21278. s.SourceRegion = &v
  21279. return s
  21280. }
  21281. // SetSourceSnapshotId sets the SourceSnapshotId field's value.
  21282. func (s *CopySnapshotInput) SetSourceSnapshotId(v string) *CopySnapshotInput {
  21283. s.SourceSnapshotId = &v
  21284. return s
  21285. }
  21286. // Contains the output of CopySnapshot.
  21287. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshotResult
  21288. type CopySnapshotOutput struct {
  21289. _ struct{} `type:"structure"`
  21290. // The ID of the new snapshot.
  21291. SnapshotId *string `locationName:"snapshotId" type:"string"`
  21292. }
  21293. // String returns the string representation
  21294. func (s CopySnapshotOutput) String() string {
  21295. return awsutil.Prettify(s)
  21296. }
  21297. // GoString returns the string representation
  21298. func (s CopySnapshotOutput) GoString() string {
  21299. return s.String()
  21300. }
  21301. // SetSnapshotId sets the SnapshotId field's value.
  21302. func (s *CopySnapshotOutput) SetSnapshotId(v string) *CopySnapshotOutput {
  21303. s.SnapshotId = &v
  21304. return s
  21305. }
  21306. // Contains the parameters for CreateCustomerGateway.
  21307. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGatewayRequest
  21308. type CreateCustomerGatewayInput struct {
  21309. _ struct{} `type:"structure"`
  21310. // For devices that support BGP, the customer gateway's BGP ASN.
  21311. //
  21312. // Default: 65000
  21313. //
  21314. // BgpAsn is a required field
  21315. BgpAsn *int64 `type:"integer" required:"true"`
  21316. // Checks whether you have the required permissions for the action, without
  21317. // actually making the request, and provides an error response. If you have
  21318. // the required permissions, the error response is DryRunOperation. Otherwise,
  21319. // it is UnauthorizedOperation.
  21320. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21321. // The Internet-routable IP address for the customer gateway's outside interface.
  21322. // The address must be static.
  21323. //
  21324. // PublicIp is a required field
  21325. PublicIp *string `locationName:"IpAddress" type:"string" required:"true"`
  21326. // The type of VPN connection that this customer gateway supports (ipsec.1).
  21327. //
  21328. // Type is a required field
  21329. Type *string `type:"string" required:"true" enum:"GatewayType"`
  21330. }
  21331. // String returns the string representation
  21332. func (s CreateCustomerGatewayInput) String() string {
  21333. return awsutil.Prettify(s)
  21334. }
  21335. // GoString returns the string representation
  21336. func (s CreateCustomerGatewayInput) GoString() string {
  21337. return s.String()
  21338. }
  21339. // Validate inspects the fields of the type to determine if they are valid.
  21340. func (s *CreateCustomerGatewayInput) Validate() error {
  21341. invalidParams := request.ErrInvalidParams{Context: "CreateCustomerGatewayInput"}
  21342. if s.BgpAsn == nil {
  21343. invalidParams.Add(request.NewErrParamRequired("BgpAsn"))
  21344. }
  21345. if s.PublicIp == nil {
  21346. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  21347. }
  21348. if s.Type == nil {
  21349. invalidParams.Add(request.NewErrParamRequired("Type"))
  21350. }
  21351. if invalidParams.Len() > 0 {
  21352. return invalidParams
  21353. }
  21354. return nil
  21355. }
  21356. // SetBgpAsn sets the BgpAsn field's value.
  21357. func (s *CreateCustomerGatewayInput) SetBgpAsn(v int64) *CreateCustomerGatewayInput {
  21358. s.BgpAsn = &v
  21359. return s
  21360. }
  21361. // SetDryRun sets the DryRun field's value.
  21362. func (s *CreateCustomerGatewayInput) SetDryRun(v bool) *CreateCustomerGatewayInput {
  21363. s.DryRun = &v
  21364. return s
  21365. }
  21366. // SetPublicIp sets the PublicIp field's value.
  21367. func (s *CreateCustomerGatewayInput) SetPublicIp(v string) *CreateCustomerGatewayInput {
  21368. s.PublicIp = &v
  21369. return s
  21370. }
  21371. // SetType sets the Type field's value.
  21372. func (s *CreateCustomerGatewayInput) SetType(v string) *CreateCustomerGatewayInput {
  21373. s.Type = &v
  21374. return s
  21375. }
  21376. // Contains the output of CreateCustomerGateway.
  21377. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGatewayResult
  21378. type CreateCustomerGatewayOutput struct {
  21379. _ struct{} `type:"structure"`
  21380. // Information about the customer gateway.
  21381. CustomerGateway *CustomerGateway `locationName:"customerGateway" type:"structure"`
  21382. }
  21383. // String returns the string representation
  21384. func (s CreateCustomerGatewayOutput) String() string {
  21385. return awsutil.Prettify(s)
  21386. }
  21387. // GoString returns the string representation
  21388. func (s CreateCustomerGatewayOutput) GoString() string {
  21389. return s.String()
  21390. }
  21391. // SetCustomerGateway sets the CustomerGateway field's value.
  21392. func (s *CreateCustomerGatewayOutput) SetCustomerGateway(v *CustomerGateway) *CreateCustomerGatewayOutput {
  21393. s.CustomerGateway = v
  21394. return s
  21395. }
  21396. // Contains the parameters for CreateDhcpOptions.
  21397. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptionsRequest
  21398. type CreateDhcpOptionsInput struct {
  21399. _ struct{} `type:"structure"`
  21400. // A DHCP configuration option.
  21401. //
  21402. // DhcpConfigurations is a required field
  21403. DhcpConfigurations []*NewDhcpConfiguration `locationName:"dhcpConfiguration" locationNameList:"item" type:"list" required:"true"`
  21404. // Checks whether you have the required permissions for the action, without
  21405. // actually making the request, and provides an error response. If you have
  21406. // the required permissions, the error response is DryRunOperation. Otherwise,
  21407. // it is UnauthorizedOperation.
  21408. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21409. }
  21410. // String returns the string representation
  21411. func (s CreateDhcpOptionsInput) String() string {
  21412. return awsutil.Prettify(s)
  21413. }
  21414. // GoString returns the string representation
  21415. func (s CreateDhcpOptionsInput) GoString() string {
  21416. return s.String()
  21417. }
  21418. // Validate inspects the fields of the type to determine if they are valid.
  21419. func (s *CreateDhcpOptionsInput) Validate() error {
  21420. invalidParams := request.ErrInvalidParams{Context: "CreateDhcpOptionsInput"}
  21421. if s.DhcpConfigurations == nil {
  21422. invalidParams.Add(request.NewErrParamRequired("DhcpConfigurations"))
  21423. }
  21424. if invalidParams.Len() > 0 {
  21425. return invalidParams
  21426. }
  21427. return nil
  21428. }
  21429. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  21430. func (s *CreateDhcpOptionsInput) SetDhcpConfigurations(v []*NewDhcpConfiguration) *CreateDhcpOptionsInput {
  21431. s.DhcpConfigurations = v
  21432. return s
  21433. }
  21434. // SetDryRun sets the DryRun field's value.
  21435. func (s *CreateDhcpOptionsInput) SetDryRun(v bool) *CreateDhcpOptionsInput {
  21436. s.DryRun = &v
  21437. return s
  21438. }
  21439. // Contains the output of CreateDhcpOptions.
  21440. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptionsResult
  21441. type CreateDhcpOptionsOutput struct {
  21442. _ struct{} `type:"structure"`
  21443. // A set of DHCP options.
  21444. DhcpOptions *DhcpOptions `locationName:"dhcpOptions" type:"structure"`
  21445. }
  21446. // String returns the string representation
  21447. func (s CreateDhcpOptionsOutput) String() string {
  21448. return awsutil.Prettify(s)
  21449. }
  21450. // GoString returns the string representation
  21451. func (s CreateDhcpOptionsOutput) GoString() string {
  21452. return s.String()
  21453. }
  21454. // SetDhcpOptions sets the DhcpOptions field's value.
  21455. func (s *CreateDhcpOptionsOutput) SetDhcpOptions(v *DhcpOptions) *CreateDhcpOptionsOutput {
  21456. s.DhcpOptions = v
  21457. return s
  21458. }
  21459. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGatewayRequest
  21460. type CreateEgressOnlyInternetGatewayInput struct {
  21461. _ struct{} `type:"structure"`
  21462. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  21463. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  21464. ClientToken *string `type:"string"`
  21465. // Checks whether you have the required permissions for the action, without
  21466. // actually making the request, and provides an error response. If you have
  21467. // the required permissions, the error response is DryRunOperation. Otherwise,
  21468. // it is UnauthorizedOperation.
  21469. DryRun *bool `type:"boolean"`
  21470. // The ID of the VPC for which to create the egress-only Internet gateway.
  21471. //
  21472. // VpcId is a required field
  21473. VpcId *string `type:"string" required:"true"`
  21474. }
  21475. // String returns the string representation
  21476. func (s CreateEgressOnlyInternetGatewayInput) String() string {
  21477. return awsutil.Prettify(s)
  21478. }
  21479. // GoString returns the string representation
  21480. func (s CreateEgressOnlyInternetGatewayInput) GoString() string {
  21481. return s.String()
  21482. }
  21483. // Validate inspects the fields of the type to determine if they are valid.
  21484. func (s *CreateEgressOnlyInternetGatewayInput) Validate() error {
  21485. invalidParams := request.ErrInvalidParams{Context: "CreateEgressOnlyInternetGatewayInput"}
  21486. if s.VpcId == nil {
  21487. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  21488. }
  21489. if invalidParams.Len() > 0 {
  21490. return invalidParams
  21491. }
  21492. return nil
  21493. }
  21494. // SetClientToken sets the ClientToken field's value.
  21495. func (s *CreateEgressOnlyInternetGatewayInput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayInput {
  21496. s.ClientToken = &v
  21497. return s
  21498. }
  21499. // SetDryRun sets the DryRun field's value.
  21500. func (s *CreateEgressOnlyInternetGatewayInput) SetDryRun(v bool) *CreateEgressOnlyInternetGatewayInput {
  21501. s.DryRun = &v
  21502. return s
  21503. }
  21504. // SetVpcId sets the VpcId field's value.
  21505. func (s *CreateEgressOnlyInternetGatewayInput) SetVpcId(v string) *CreateEgressOnlyInternetGatewayInput {
  21506. s.VpcId = &v
  21507. return s
  21508. }
  21509. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGatewayResult
  21510. type CreateEgressOnlyInternetGatewayOutput struct {
  21511. _ struct{} `type:"structure"`
  21512. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  21513. // the request.
  21514. ClientToken *string `locationName:"clientToken" type:"string"`
  21515. // Information about the egress-only Internet gateway.
  21516. EgressOnlyInternetGateway *EgressOnlyInternetGateway `locationName:"egressOnlyInternetGateway" type:"structure"`
  21517. }
  21518. // String returns the string representation
  21519. func (s CreateEgressOnlyInternetGatewayOutput) String() string {
  21520. return awsutil.Prettify(s)
  21521. }
  21522. // GoString returns the string representation
  21523. func (s CreateEgressOnlyInternetGatewayOutput) GoString() string {
  21524. return s.String()
  21525. }
  21526. // SetClientToken sets the ClientToken field's value.
  21527. func (s *CreateEgressOnlyInternetGatewayOutput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayOutput {
  21528. s.ClientToken = &v
  21529. return s
  21530. }
  21531. // SetEgressOnlyInternetGateway sets the EgressOnlyInternetGateway field's value.
  21532. func (s *CreateEgressOnlyInternetGatewayOutput) SetEgressOnlyInternetGateway(v *EgressOnlyInternetGateway) *CreateEgressOnlyInternetGatewayOutput {
  21533. s.EgressOnlyInternetGateway = v
  21534. return s
  21535. }
  21536. // Contains the parameters for CreateFlowLogs.
  21537. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogsRequest
  21538. type CreateFlowLogsInput struct {
  21539. _ struct{} `type:"structure"`
  21540. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  21541. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  21542. ClientToken *string `type:"string"`
  21543. // The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs
  21544. // log group.
  21545. //
  21546. // DeliverLogsPermissionArn is a required field
  21547. DeliverLogsPermissionArn *string `type:"string" required:"true"`
  21548. // The name of the CloudWatch log group.
  21549. //
  21550. // LogGroupName is a required field
  21551. LogGroupName *string `type:"string" required:"true"`
  21552. // One or more subnet, network interface, or VPC IDs.
  21553. //
  21554. // Constraints: Maximum of 1000 resources
  21555. //
  21556. // ResourceIds is a required field
  21557. ResourceIds []*string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"`
  21558. // The type of resource on which to create the flow log.
  21559. //
  21560. // ResourceType is a required field
  21561. ResourceType *string `type:"string" required:"true" enum:"FlowLogsResourceType"`
  21562. // The type of traffic to log.
  21563. //
  21564. // TrafficType is a required field
  21565. TrafficType *string `type:"string" required:"true" enum:"TrafficType"`
  21566. }
  21567. // String returns the string representation
  21568. func (s CreateFlowLogsInput) String() string {
  21569. return awsutil.Prettify(s)
  21570. }
  21571. // GoString returns the string representation
  21572. func (s CreateFlowLogsInput) GoString() string {
  21573. return s.String()
  21574. }
  21575. // Validate inspects the fields of the type to determine if they are valid.
  21576. func (s *CreateFlowLogsInput) Validate() error {
  21577. invalidParams := request.ErrInvalidParams{Context: "CreateFlowLogsInput"}
  21578. if s.DeliverLogsPermissionArn == nil {
  21579. invalidParams.Add(request.NewErrParamRequired("DeliverLogsPermissionArn"))
  21580. }
  21581. if s.LogGroupName == nil {
  21582. invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
  21583. }
  21584. if s.ResourceIds == nil {
  21585. invalidParams.Add(request.NewErrParamRequired("ResourceIds"))
  21586. }
  21587. if s.ResourceType == nil {
  21588. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  21589. }
  21590. if s.TrafficType == nil {
  21591. invalidParams.Add(request.NewErrParamRequired("TrafficType"))
  21592. }
  21593. if invalidParams.Len() > 0 {
  21594. return invalidParams
  21595. }
  21596. return nil
  21597. }
  21598. // SetClientToken sets the ClientToken field's value.
  21599. func (s *CreateFlowLogsInput) SetClientToken(v string) *CreateFlowLogsInput {
  21600. s.ClientToken = &v
  21601. return s
  21602. }
  21603. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  21604. func (s *CreateFlowLogsInput) SetDeliverLogsPermissionArn(v string) *CreateFlowLogsInput {
  21605. s.DeliverLogsPermissionArn = &v
  21606. return s
  21607. }
  21608. // SetLogGroupName sets the LogGroupName field's value.
  21609. func (s *CreateFlowLogsInput) SetLogGroupName(v string) *CreateFlowLogsInput {
  21610. s.LogGroupName = &v
  21611. return s
  21612. }
  21613. // SetResourceIds sets the ResourceIds field's value.
  21614. func (s *CreateFlowLogsInput) SetResourceIds(v []*string) *CreateFlowLogsInput {
  21615. s.ResourceIds = v
  21616. return s
  21617. }
  21618. // SetResourceType sets the ResourceType field's value.
  21619. func (s *CreateFlowLogsInput) SetResourceType(v string) *CreateFlowLogsInput {
  21620. s.ResourceType = &v
  21621. return s
  21622. }
  21623. // SetTrafficType sets the TrafficType field's value.
  21624. func (s *CreateFlowLogsInput) SetTrafficType(v string) *CreateFlowLogsInput {
  21625. s.TrafficType = &v
  21626. return s
  21627. }
  21628. // Contains the output of CreateFlowLogs.
  21629. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogsResult
  21630. type CreateFlowLogsOutput struct {
  21631. _ struct{} `type:"structure"`
  21632. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  21633. // the request.
  21634. ClientToken *string `locationName:"clientToken" type:"string"`
  21635. // The IDs of the flow logs.
  21636. FlowLogIds []*string `locationName:"flowLogIdSet" locationNameList:"item" type:"list"`
  21637. // Information about the flow logs that could not be created successfully.
  21638. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  21639. }
  21640. // String returns the string representation
  21641. func (s CreateFlowLogsOutput) String() string {
  21642. return awsutil.Prettify(s)
  21643. }
  21644. // GoString returns the string representation
  21645. func (s CreateFlowLogsOutput) GoString() string {
  21646. return s.String()
  21647. }
  21648. // SetClientToken sets the ClientToken field's value.
  21649. func (s *CreateFlowLogsOutput) SetClientToken(v string) *CreateFlowLogsOutput {
  21650. s.ClientToken = &v
  21651. return s
  21652. }
  21653. // SetFlowLogIds sets the FlowLogIds field's value.
  21654. func (s *CreateFlowLogsOutput) SetFlowLogIds(v []*string) *CreateFlowLogsOutput {
  21655. s.FlowLogIds = v
  21656. return s
  21657. }
  21658. // SetUnsuccessful sets the Unsuccessful field's value.
  21659. func (s *CreateFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *CreateFlowLogsOutput {
  21660. s.Unsuccessful = v
  21661. return s
  21662. }
  21663. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImageRequest
  21664. type CreateFpgaImageInput struct {
  21665. _ struct{} `type:"structure"`
  21666. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  21667. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  21668. ClientToken *string `type:"string"`
  21669. // A description for the AFI.
  21670. Description *string `type:"string"`
  21671. // Checks whether you have the required permissions for the action, without
  21672. // actually making the request, and provides an error response. If you have
  21673. // the required permissions, the error response is DryRunOperation. Otherwise,
  21674. // it is UnauthorizedOperation.
  21675. DryRun *bool `type:"boolean"`
  21676. // The location of the encrypted design checkpoint in Amazon S3. The input must
  21677. // be a tarball.
  21678. //
  21679. // InputStorageLocation is a required field
  21680. InputStorageLocation *StorageLocation `type:"structure" required:"true"`
  21681. // The location in Amazon S3 for the output logs.
  21682. LogsStorageLocation *StorageLocation `type:"structure"`
  21683. // A name for the AFI.
  21684. Name *string `type:"string"`
  21685. }
  21686. // String returns the string representation
  21687. func (s CreateFpgaImageInput) String() string {
  21688. return awsutil.Prettify(s)
  21689. }
  21690. // GoString returns the string representation
  21691. func (s CreateFpgaImageInput) GoString() string {
  21692. return s.String()
  21693. }
  21694. // Validate inspects the fields of the type to determine if they are valid.
  21695. func (s *CreateFpgaImageInput) Validate() error {
  21696. invalidParams := request.ErrInvalidParams{Context: "CreateFpgaImageInput"}
  21697. if s.InputStorageLocation == nil {
  21698. invalidParams.Add(request.NewErrParamRequired("InputStorageLocation"))
  21699. }
  21700. if invalidParams.Len() > 0 {
  21701. return invalidParams
  21702. }
  21703. return nil
  21704. }
  21705. // SetClientToken sets the ClientToken field's value.
  21706. func (s *CreateFpgaImageInput) SetClientToken(v string) *CreateFpgaImageInput {
  21707. s.ClientToken = &v
  21708. return s
  21709. }
  21710. // SetDescription sets the Description field's value.
  21711. func (s *CreateFpgaImageInput) SetDescription(v string) *CreateFpgaImageInput {
  21712. s.Description = &v
  21713. return s
  21714. }
  21715. // SetDryRun sets the DryRun field's value.
  21716. func (s *CreateFpgaImageInput) SetDryRun(v bool) *CreateFpgaImageInput {
  21717. s.DryRun = &v
  21718. return s
  21719. }
  21720. // SetInputStorageLocation sets the InputStorageLocation field's value.
  21721. func (s *CreateFpgaImageInput) SetInputStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  21722. s.InputStorageLocation = v
  21723. return s
  21724. }
  21725. // SetLogsStorageLocation sets the LogsStorageLocation field's value.
  21726. func (s *CreateFpgaImageInput) SetLogsStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  21727. s.LogsStorageLocation = v
  21728. return s
  21729. }
  21730. // SetName sets the Name field's value.
  21731. func (s *CreateFpgaImageInput) SetName(v string) *CreateFpgaImageInput {
  21732. s.Name = &v
  21733. return s
  21734. }
  21735. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImageResult
  21736. type CreateFpgaImageOutput struct {
  21737. _ struct{} `type:"structure"`
  21738. // The global FPGA image identifier (AGFI ID).
  21739. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  21740. // The FPGA image identifier (AFI ID).
  21741. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  21742. }
  21743. // String returns the string representation
  21744. func (s CreateFpgaImageOutput) String() string {
  21745. return awsutil.Prettify(s)
  21746. }
  21747. // GoString returns the string representation
  21748. func (s CreateFpgaImageOutput) GoString() string {
  21749. return s.String()
  21750. }
  21751. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  21752. func (s *CreateFpgaImageOutput) SetFpgaImageGlobalId(v string) *CreateFpgaImageOutput {
  21753. s.FpgaImageGlobalId = &v
  21754. return s
  21755. }
  21756. // SetFpgaImageId sets the FpgaImageId field's value.
  21757. func (s *CreateFpgaImageOutput) SetFpgaImageId(v string) *CreateFpgaImageOutput {
  21758. s.FpgaImageId = &v
  21759. return s
  21760. }
  21761. // Contains the parameters for CreateImage.
  21762. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageRequest
  21763. type CreateImageInput struct {
  21764. _ struct{} `type:"structure"`
  21765. // Information about one or more block device mappings.
  21766. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  21767. // A description for the new image.
  21768. Description *string `locationName:"description" type:"string"`
  21769. // Checks whether you have the required permissions for the action, without
  21770. // actually making the request, and provides an error response. If you have
  21771. // the required permissions, the error response is DryRunOperation. Otherwise,
  21772. // it is UnauthorizedOperation.
  21773. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21774. // The ID of the instance.
  21775. //
  21776. // InstanceId is a required field
  21777. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  21778. // A name for the new image.
  21779. //
  21780. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  21781. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  21782. // at-signs (@), or underscores(_)
  21783. //
  21784. // Name is a required field
  21785. Name *string `locationName:"name" type:"string" required:"true"`
  21786. // By default, Amazon EC2 attempts to shut down and reboot the instance before
  21787. // creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't
  21788. // shut down the instance before creating the image. When this option is used,
  21789. // file system integrity on the created image can't be guaranteed.
  21790. NoReboot *bool `locationName:"noReboot" type:"boolean"`
  21791. }
  21792. // String returns the string representation
  21793. func (s CreateImageInput) String() string {
  21794. return awsutil.Prettify(s)
  21795. }
  21796. // GoString returns the string representation
  21797. func (s CreateImageInput) GoString() string {
  21798. return s.String()
  21799. }
  21800. // Validate inspects the fields of the type to determine if they are valid.
  21801. func (s *CreateImageInput) Validate() error {
  21802. invalidParams := request.ErrInvalidParams{Context: "CreateImageInput"}
  21803. if s.InstanceId == nil {
  21804. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  21805. }
  21806. if s.Name == nil {
  21807. invalidParams.Add(request.NewErrParamRequired("Name"))
  21808. }
  21809. if invalidParams.Len() > 0 {
  21810. return invalidParams
  21811. }
  21812. return nil
  21813. }
  21814. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  21815. func (s *CreateImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateImageInput {
  21816. s.BlockDeviceMappings = v
  21817. return s
  21818. }
  21819. // SetDescription sets the Description field's value.
  21820. func (s *CreateImageInput) SetDescription(v string) *CreateImageInput {
  21821. s.Description = &v
  21822. return s
  21823. }
  21824. // SetDryRun sets the DryRun field's value.
  21825. func (s *CreateImageInput) SetDryRun(v bool) *CreateImageInput {
  21826. s.DryRun = &v
  21827. return s
  21828. }
  21829. // SetInstanceId sets the InstanceId field's value.
  21830. func (s *CreateImageInput) SetInstanceId(v string) *CreateImageInput {
  21831. s.InstanceId = &v
  21832. return s
  21833. }
  21834. // SetName sets the Name field's value.
  21835. func (s *CreateImageInput) SetName(v string) *CreateImageInput {
  21836. s.Name = &v
  21837. return s
  21838. }
  21839. // SetNoReboot sets the NoReboot field's value.
  21840. func (s *CreateImageInput) SetNoReboot(v bool) *CreateImageInput {
  21841. s.NoReboot = &v
  21842. return s
  21843. }
  21844. // Contains the output of CreateImage.
  21845. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageResult
  21846. type CreateImageOutput struct {
  21847. _ struct{} `type:"structure"`
  21848. // The ID of the new AMI.
  21849. ImageId *string `locationName:"imageId" type:"string"`
  21850. }
  21851. // String returns the string representation
  21852. func (s CreateImageOutput) String() string {
  21853. return awsutil.Prettify(s)
  21854. }
  21855. // GoString returns the string representation
  21856. func (s CreateImageOutput) GoString() string {
  21857. return s.String()
  21858. }
  21859. // SetImageId sets the ImageId field's value.
  21860. func (s *CreateImageOutput) SetImageId(v string) *CreateImageOutput {
  21861. s.ImageId = &v
  21862. return s
  21863. }
  21864. // Contains the parameters for CreateInstanceExportTask.
  21865. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTaskRequest
  21866. type CreateInstanceExportTaskInput struct {
  21867. _ struct{} `type:"structure"`
  21868. // A description for the conversion task or the resource being exported. The
  21869. // maximum length is 255 bytes.
  21870. Description *string `locationName:"description" type:"string"`
  21871. // The format and location for an instance export task.
  21872. ExportToS3Task *ExportToS3TaskSpecification `locationName:"exportToS3" type:"structure"`
  21873. // The ID of the instance.
  21874. //
  21875. // InstanceId is a required field
  21876. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  21877. // The target virtualization environment.
  21878. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  21879. }
  21880. // String returns the string representation
  21881. func (s CreateInstanceExportTaskInput) String() string {
  21882. return awsutil.Prettify(s)
  21883. }
  21884. // GoString returns the string representation
  21885. func (s CreateInstanceExportTaskInput) GoString() string {
  21886. return s.String()
  21887. }
  21888. // Validate inspects the fields of the type to determine if they are valid.
  21889. func (s *CreateInstanceExportTaskInput) Validate() error {
  21890. invalidParams := request.ErrInvalidParams{Context: "CreateInstanceExportTaskInput"}
  21891. if s.InstanceId == nil {
  21892. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  21893. }
  21894. if invalidParams.Len() > 0 {
  21895. return invalidParams
  21896. }
  21897. return nil
  21898. }
  21899. // SetDescription sets the Description field's value.
  21900. func (s *CreateInstanceExportTaskInput) SetDescription(v string) *CreateInstanceExportTaskInput {
  21901. s.Description = &v
  21902. return s
  21903. }
  21904. // SetExportToS3Task sets the ExportToS3Task field's value.
  21905. func (s *CreateInstanceExportTaskInput) SetExportToS3Task(v *ExportToS3TaskSpecification) *CreateInstanceExportTaskInput {
  21906. s.ExportToS3Task = v
  21907. return s
  21908. }
  21909. // SetInstanceId sets the InstanceId field's value.
  21910. func (s *CreateInstanceExportTaskInput) SetInstanceId(v string) *CreateInstanceExportTaskInput {
  21911. s.InstanceId = &v
  21912. return s
  21913. }
  21914. // SetTargetEnvironment sets the TargetEnvironment field's value.
  21915. func (s *CreateInstanceExportTaskInput) SetTargetEnvironment(v string) *CreateInstanceExportTaskInput {
  21916. s.TargetEnvironment = &v
  21917. return s
  21918. }
  21919. // Contains the output for CreateInstanceExportTask.
  21920. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTaskResult
  21921. type CreateInstanceExportTaskOutput struct {
  21922. _ struct{} `type:"structure"`
  21923. // Information about the instance export task.
  21924. ExportTask *ExportTask `locationName:"exportTask" type:"structure"`
  21925. }
  21926. // String returns the string representation
  21927. func (s CreateInstanceExportTaskOutput) String() string {
  21928. return awsutil.Prettify(s)
  21929. }
  21930. // GoString returns the string representation
  21931. func (s CreateInstanceExportTaskOutput) GoString() string {
  21932. return s.String()
  21933. }
  21934. // SetExportTask sets the ExportTask field's value.
  21935. func (s *CreateInstanceExportTaskOutput) SetExportTask(v *ExportTask) *CreateInstanceExportTaskOutput {
  21936. s.ExportTask = v
  21937. return s
  21938. }
  21939. // Contains the parameters for CreateInternetGateway.
  21940. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGatewayRequest
  21941. type CreateInternetGatewayInput struct {
  21942. _ struct{} `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. }
  21949. // String returns the string representation
  21950. func (s CreateInternetGatewayInput) String() string {
  21951. return awsutil.Prettify(s)
  21952. }
  21953. // GoString returns the string representation
  21954. func (s CreateInternetGatewayInput) GoString() string {
  21955. return s.String()
  21956. }
  21957. // SetDryRun sets the DryRun field's value.
  21958. func (s *CreateInternetGatewayInput) SetDryRun(v bool) *CreateInternetGatewayInput {
  21959. s.DryRun = &v
  21960. return s
  21961. }
  21962. // Contains the output of CreateInternetGateway.
  21963. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGatewayResult
  21964. type CreateInternetGatewayOutput struct {
  21965. _ struct{} `type:"structure"`
  21966. // Information about the Internet gateway.
  21967. InternetGateway *InternetGateway `locationName:"internetGateway" type:"structure"`
  21968. }
  21969. // String returns the string representation
  21970. func (s CreateInternetGatewayOutput) String() string {
  21971. return awsutil.Prettify(s)
  21972. }
  21973. // GoString returns the string representation
  21974. func (s CreateInternetGatewayOutput) GoString() string {
  21975. return s.String()
  21976. }
  21977. // SetInternetGateway sets the InternetGateway field's value.
  21978. func (s *CreateInternetGatewayOutput) SetInternetGateway(v *InternetGateway) *CreateInternetGatewayOutput {
  21979. s.InternetGateway = v
  21980. return s
  21981. }
  21982. // Contains the parameters for CreateKeyPair.
  21983. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPairRequest
  21984. type CreateKeyPairInput struct {
  21985. _ struct{} `type:"structure"`
  21986. // Checks whether you have the required permissions for the action, without
  21987. // actually making the request, and provides an error response. If you have
  21988. // the required permissions, the error response is DryRunOperation. Otherwise,
  21989. // it is UnauthorizedOperation.
  21990. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21991. // A unique name for the key pair.
  21992. //
  21993. // Constraints: Up to 255 ASCII characters
  21994. //
  21995. // KeyName is a required field
  21996. KeyName *string `type:"string" required:"true"`
  21997. }
  21998. // String returns the string representation
  21999. func (s CreateKeyPairInput) String() string {
  22000. return awsutil.Prettify(s)
  22001. }
  22002. // GoString returns the string representation
  22003. func (s CreateKeyPairInput) GoString() string {
  22004. return s.String()
  22005. }
  22006. // Validate inspects the fields of the type to determine if they are valid.
  22007. func (s *CreateKeyPairInput) Validate() error {
  22008. invalidParams := request.ErrInvalidParams{Context: "CreateKeyPairInput"}
  22009. if s.KeyName == nil {
  22010. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  22011. }
  22012. if invalidParams.Len() > 0 {
  22013. return invalidParams
  22014. }
  22015. return nil
  22016. }
  22017. // SetDryRun sets the DryRun field's value.
  22018. func (s *CreateKeyPairInput) SetDryRun(v bool) *CreateKeyPairInput {
  22019. s.DryRun = &v
  22020. return s
  22021. }
  22022. // SetKeyName sets the KeyName field's value.
  22023. func (s *CreateKeyPairInput) SetKeyName(v string) *CreateKeyPairInput {
  22024. s.KeyName = &v
  22025. return s
  22026. }
  22027. // Describes a key pair.
  22028. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPair
  22029. type CreateKeyPairOutput struct {
  22030. _ struct{} `type:"structure"`
  22031. // The SHA-1 digest of the DER encoded private key.
  22032. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  22033. // An unencrypted PEM encoded RSA private key.
  22034. KeyMaterial *string `locationName:"keyMaterial" type:"string"`
  22035. // The name of the key pair.
  22036. KeyName *string `locationName:"keyName" type:"string"`
  22037. }
  22038. // String returns the string representation
  22039. func (s CreateKeyPairOutput) String() string {
  22040. return awsutil.Prettify(s)
  22041. }
  22042. // GoString returns the string representation
  22043. func (s CreateKeyPairOutput) GoString() string {
  22044. return s.String()
  22045. }
  22046. // SetKeyFingerprint sets the KeyFingerprint field's value.
  22047. func (s *CreateKeyPairOutput) SetKeyFingerprint(v string) *CreateKeyPairOutput {
  22048. s.KeyFingerprint = &v
  22049. return s
  22050. }
  22051. // SetKeyMaterial sets the KeyMaterial field's value.
  22052. func (s *CreateKeyPairOutput) SetKeyMaterial(v string) *CreateKeyPairOutput {
  22053. s.KeyMaterial = &v
  22054. return s
  22055. }
  22056. // SetKeyName sets the KeyName field's value.
  22057. func (s *CreateKeyPairOutput) SetKeyName(v string) *CreateKeyPairOutput {
  22058. s.KeyName = &v
  22059. return s
  22060. }
  22061. // Contains the parameters for CreateNatGateway.
  22062. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayRequest
  22063. type CreateNatGatewayInput struct {
  22064. _ struct{} `type:"structure"`
  22065. // The allocation ID of an Elastic IP address to associate with the NAT gateway.
  22066. // If the Elastic IP address is associated with another resource, you must first
  22067. // disassociate it.
  22068. //
  22069. // AllocationId is a required field
  22070. AllocationId *string `type:"string" required:"true"`
  22071. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  22072. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  22073. //
  22074. // Constraint: Maximum 64 ASCII characters.
  22075. ClientToken *string `type:"string"`
  22076. // The subnet in which to create the NAT gateway.
  22077. //
  22078. // SubnetId is a required field
  22079. SubnetId *string `type:"string" required:"true"`
  22080. }
  22081. // String returns the string representation
  22082. func (s CreateNatGatewayInput) String() string {
  22083. return awsutil.Prettify(s)
  22084. }
  22085. // GoString returns the string representation
  22086. func (s CreateNatGatewayInput) GoString() string {
  22087. return s.String()
  22088. }
  22089. // Validate inspects the fields of the type to determine if they are valid.
  22090. func (s *CreateNatGatewayInput) Validate() error {
  22091. invalidParams := request.ErrInvalidParams{Context: "CreateNatGatewayInput"}
  22092. if s.AllocationId == nil {
  22093. invalidParams.Add(request.NewErrParamRequired("AllocationId"))
  22094. }
  22095. if s.SubnetId == nil {
  22096. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  22097. }
  22098. if invalidParams.Len() > 0 {
  22099. return invalidParams
  22100. }
  22101. return nil
  22102. }
  22103. // SetAllocationId sets the AllocationId field's value.
  22104. func (s *CreateNatGatewayInput) SetAllocationId(v string) *CreateNatGatewayInput {
  22105. s.AllocationId = &v
  22106. return s
  22107. }
  22108. // SetClientToken sets the ClientToken field's value.
  22109. func (s *CreateNatGatewayInput) SetClientToken(v string) *CreateNatGatewayInput {
  22110. s.ClientToken = &v
  22111. return s
  22112. }
  22113. // SetSubnetId sets the SubnetId field's value.
  22114. func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput {
  22115. s.SubnetId = &v
  22116. return s
  22117. }
  22118. // Contains the output of CreateNatGateway.
  22119. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayResult
  22120. type CreateNatGatewayOutput struct {
  22121. _ struct{} `type:"structure"`
  22122. // Unique, case-sensitive identifier to ensure the idempotency of the request.
  22123. // Only returned if a client token was provided in the request.
  22124. ClientToken *string `locationName:"clientToken" type:"string"`
  22125. // Information about the NAT gateway.
  22126. NatGateway *NatGateway `locationName:"natGateway" type:"structure"`
  22127. }
  22128. // String returns the string representation
  22129. func (s CreateNatGatewayOutput) String() string {
  22130. return awsutil.Prettify(s)
  22131. }
  22132. // GoString returns the string representation
  22133. func (s CreateNatGatewayOutput) GoString() string {
  22134. return s.String()
  22135. }
  22136. // SetClientToken sets the ClientToken field's value.
  22137. func (s *CreateNatGatewayOutput) SetClientToken(v string) *CreateNatGatewayOutput {
  22138. s.ClientToken = &v
  22139. return s
  22140. }
  22141. // SetNatGateway sets the NatGateway field's value.
  22142. func (s *CreateNatGatewayOutput) SetNatGateway(v *NatGateway) *CreateNatGatewayOutput {
  22143. s.NatGateway = v
  22144. return s
  22145. }
  22146. // Contains the parameters for CreateNetworkAclEntry.
  22147. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntryRequest
  22148. type CreateNetworkAclEntryInput struct {
  22149. _ struct{} `type:"structure"`
  22150. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  22151. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  22152. // Checks whether you have the required permissions for the action, without
  22153. // actually making the request, and provides an error response. If you have
  22154. // the required permissions, the error response is DryRunOperation. Otherwise,
  22155. // it is UnauthorizedOperation.
  22156. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22157. // Indicates whether this is an egress rule (rule is applied to traffic leaving
  22158. // the subnet).
  22159. //
  22160. // Egress is a required field
  22161. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  22162. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the
  22163. // ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  22164. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  22165. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).
  22166. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  22167. // The ID of the network ACL.
  22168. //
  22169. // NetworkAclId is a required field
  22170. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  22171. // TCP or UDP protocols: The range of ports the rule applies to.
  22172. PortRange *PortRange `locationName:"portRange" type:"structure"`
  22173. // The protocol. A value of -1 or all means all protocols. If you specify all,
  22174. // -1, or a protocol number other than tcp, udp, or icmp, traffic on all ports
  22175. // is allowed, regardless of any ports or ICMP types or codes you specify. If
  22176. // you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, traffic
  22177. // for all ICMP types and codes allowed, regardless of any that you specify.
  22178. // If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, you must
  22179. // specify an ICMP type and code.
  22180. //
  22181. // Protocol is a required field
  22182. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  22183. // Indicates whether to allow or deny the traffic that matches the rule.
  22184. //
  22185. // RuleAction is a required field
  22186. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  22187. // The rule number for the entry (for example, 100). ACL entries are processed
  22188. // in ascending order by rule number.
  22189. //
  22190. // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is
  22191. // reserved for internal use.
  22192. //
  22193. // RuleNumber is a required field
  22194. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  22195. }
  22196. // String returns the string representation
  22197. func (s CreateNetworkAclEntryInput) String() string {
  22198. return awsutil.Prettify(s)
  22199. }
  22200. // GoString returns the string representation
  22201. func (s CreateNetworkAclEntryInput) GoString() string {
  22202. return s.String()
  22203. }
  22204. // Validate inspects the fields of the type to determine if they are valid.
  22205. func (s *CreateNetworkAclEntryInput) Validate() error {
  22206. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclEntryInput"}
  22207. if s.Egress == nil {
  22208. invalidParams.Add(request.NewErrParamRequired("Egress"))
  22209. }
  22210. if s.NetworkAclId == nil {
  22211. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  22212. }
  22213. if s.Protocol == nil {
  22214. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  22215. }
  22216. if s.RuleAction == nil {
  22217. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  22218. }
  22219. if s.RuleNumber == nil {
  22220. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  22221. }
  22222. if invalidParams.Len() > 0 {
  22223. return invalidParams
  22224. }
  22225. return nil
  22226. }
  22227. // SetCidrBlock sets the CidrBlock field's value.
  22228. func (s *CreateNetworkAclEntryInput) SetCidrBlock(v string) *CreateNetworkAclEntryInput {
  22229. s.CidrBlock = &v
  22230. return s
  22231. }
  22232. // SetDryRun sets the DryRun field's value.
  22233. func (s *CreateNetworkAclEntryInput) SetDryRun(v bool) *CreateNetworkAclEntryInput {
  22234. s.DryRun = &v
  22235. return s
  22236. }
  22237. // SetEgress sets the Egress field's value.
  22238. func (s *CreateNetworkAclEntryInput) SetEgress(v bool) *CreateNetworkAclEntryInput {
  22239. s.Egress = &v
  22240. return s
  22241. }
  22242. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  22243. func (s *CreateNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *CreateNetworkAclEntryInput {
  22244. s.IcmpTypeCode = v
  22245. return s
  22246. }
  22247. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  22248. func (s *CreateNetworkAclEntryInput) SetIpv6CidrBlock(v string) *CreateNetworkAclEntryInput {
  22249. s.Ipv6CidrBlock = &v
  22250. return s
  22251. }
  22252. // SetNetworkAclId sets the NetworkAclId field's value.
  22253. func (s *CreateNetworkAclEntryInput) SetNetworkAclId(v string) *CreateNetworkAclEntryInput {
  22254. s.NetworkAclId = &v
  22255. return s
  22256. }
  22257. // SetPortRange sets the PortRange field's value.
  22258. func (s *CreateNetworkAclEntryInput) SetPortRange(v *PortRange) *CreateNetworkAclEntryInput {
  22259. s.PortRange = v
  22260. return s
  22261. }
  22262. // SetProtocol sets the Protocol field's value.
  22263. func (s *CreateNetworkAclEntryInput) SetProtocol(v string) *CreateNetworkAclEntryInput {
  22264. s.Protocol = &v
  22265. return s
  22266. }
  22267. // SetRuleAction sets the RuleAction field's value.
  22268. func (s *CreateNetworkAclEntryInput) SetRuleAction(v string) *CreateNetworkAclEntryInput {
  22269. s.RuleAction = &v
  22270. return s
  22271. }
  22272. // SetRuleNumber sets the RuleNumber field's value.
  22273. func (s *CreateNetworkAclEntryInput) SetRuleNumber(v int64) *CreateNetworkAclEntryInput {
  22274. s.RuleNumber = &v
  22275. return s
  22276. }
  22277. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntryOutput
  22278. type CreateNetworkAclEntryOutput struct {
  22279. _ struct{} `type:"structure"`
  22280. }
  22281. // String returns the string representation
  22282. func (s CreateNetworkAclEntryOutput) String() string {
  22283. return awsutil.Prettify(s)
  22284. }
  22285. // GoString returns the string representation
  22286. func (s CreateNetworkAclEntryOutput) GoString() string {
  22287. return s.String()
  22288. }
  22289. // Contains the parameters for CreateNetworkAcl.
  22290. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclRequest
  22291. type CreateNetworkAclInput struct {
  22292. _ struct{} `type:"structure"`
  22293. // Checks whether you have the required permissions for the action, without
  22294. // actually making the request, and provides an error response. If you have
  22295. // the required permissions, the error response is DryRunOperation. Otherwise,
  22296. // it is UnauthorizedOperation.
  22297. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22298. // The ID of the VPC.
  22299. //
  22300. // VpcId is a required field
  22301. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  22302. }
  22303. // String returns the string representation
  22304. func (s CreateNetworkAclInput) String() string {
  22305. return awsutil.Prettify(s)
  22306. }
  22307. // GoString returns the string representation
  22308. func (s CreateNetworkAclInput) GoString() string {
  22309. return s.String()
  22310. }
  22311. // Validate inspects the fields of the type to determine if they are valid.
  22312. func (s *CreateNetworkAclInput) Validate() error {
  22313. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclInput"}
  22314. if s.VpcId == nil {
  22315. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22316. }
  22317. if invalidParams.Len() > 0 {
  22318. return invalidParams
  22319. }
  22320. return nil
  22321. }
  22322. // SetDryRun sets the DryRun field's value.
  22323. func (s *CreateNetworkAclInput) SetDryRun(v bool) *CreateNetworkAclInput {
  22324. s.DryRun = &v
  22325. return s
  22326. }
  22327. // SetVpcId sets the VpcId field's value.
  22328. func (s *CreateNetworkAclInput) SetVpcId(v string) *CreateNetworkAclInput {
  22329. s.VpcId = &v
  22330. return s
  22331. }
  22332. // Contains the output of CreateNetworkAcl.
  22333. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclResult
  22334. type CreateNetworkAclOutput struct {
  22335. _ struct{} `type:"structure"`
  22336. // Information about the network ACL.
  22337. NetworkAcl *NetworkAcl `locationName:"networkAcl" type:"structure"`
  22338. }
  22339. // String returns the string representation
  22340. func (s CreateNetworkAclOutput) String() string {
  22341. return awsutil.Prettify(s)
  22342. }
  22343. // GoString returns the string representation
  22344. func (s CreateNetworkAclOutput) GoString() string {
  22345. return s.String()
  22346. }
  22347. // SetNetworkAcl sets the NetworkAcl field's value.
  22348. func (s *CreateNetworkAclOutput) SetNetworkAcl(v *NetworkAcl) *CreateNetworkAclOutput {
  22349. s.NetworkAcl = v
  22350. return s
  22351. }
  22352. // Contains the parameters for CreateNetworkInterface.
  22353. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceRequest
  22354. type CreateNetworkInterfaceInput struct {
  22355. _ struct{} `type:"structure"`
  22356. // A description for the network interface.
  22357. Description *string `locationName:"description" type:"string"`
  22358. // Checks whether you have the required permissions for the action, without
  22359. // actually making the request, and provides an error response. If you have
  22360. // the required permissions, the error response is DryRunOperation. Otherwise,
  22361. // it is UnauthorizedOperation.
  22362. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22363. // The IDs of one or more security groups.
  22364. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  22365. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  22366. // automatically selects the IPv6 addresses from the subnet range. You can't
  22367. // use this option if specifying specific IPv6 addresses. If your subnet has
  22368. // the AssignIpv6AddressOnCreation attribute set to true, you can specify 0
  22369. // to override this setting.
  22370. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  22371. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  22372. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  22373. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  22374. // The primary private IPv4 address of the network interface. If you don't specify
  22375. // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR
  22376. // range. If you specify an IP address, you cannot indicate any IP addresses
  22377. // specified in privateIpAddresses as primary (only one IP address can be designated
  22378. // as primary).
  22379. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  22380. // One or more private IPv4 addresses.
  22381. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddresses" locationNameList:"item" type:"list"`
  22382. // The number of secondary private IPv4 addresses to assign to a network interface.
  22383. // When you specify a number of secondary IPv4 addresses, Amazon EC2 selects
  22384. // these IP addresses within the subnet's IPv4 CIDR range. You can't specify
  22385. // this option and specify more than one private IP address using privateIpAddresses.
  22386. //
  22387. // The number of IP addresses you can assign to a network interface varies by
  22388. // instance type. For more information, see IP Addresses Per ENI Per Instance
  22389. // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  22390. // in the Amazon Virtual Private Cloud User Guide.
  22391. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  22392. // The ID of the subnet to associate with the network interface.
  22393. //
  22394. // SubnetId is a required field
  22395. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  22396. }
  22397. // String returns the string representation
  22398. func (s CreateNetworkInterfaceInput) String() string {
  22399. return awsutil.Prettify(s)
  22400. }
  22401. // GoString returns the string representation
  22402. func (s CreateNetworkInterfaceInput) GoString() string {
  22403. return s.String()
  22404. }
  22405. // Validate inspects the fields of the type to determine if they are valid.
  22406. func (s *CreateNetworkInterfaceInput) Validate() error {
  22407. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfaceInput"}
  22408. if s.SubnetId == nil {
  22409. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  22410. }
  22411. if s.PrivateIpAddresses != nil {
  22412. for i, v := range s.PrivateIpAddresses {
  22413. if v == nil {
  22414. continue
  22415. }
  22416. if err := v.Validate(); err != nil {
  22417. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  22418. }
  22419. }
  22420. }
  22421. if invalidParams.Len() > 0 {
  22422. return invalidParams
  22423. }
  22424. return nil
  22425. }
  22426. // SetDescription sets the Description field's value.
  22427. func (s *CreateNetworkInterfaceInput) SetDescription(v string) *CreateNetworkInterfaceInput {
  22428. s.Description = &v
  22429. return s
  22430. }
  22431. // SetDryRun sets the DryRun field's value.
  22432. func (s *CreateNetworkInterfaceInput) SetDryRun(v bool) *CreateNetworkInterfaceInput {
  22433. s.DryRun = &v
  22434. return s
  22435. }
  22436. // SetGroups sets the Groups field's value.
  22437. func (s *CreateNetworkInterfaceInput) SetGroups(v []*string) *CreateNetworkInterfaceInput {
  22438. s.Groups = v
  22439. return s
  22440. }
  22441. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  22442. func (s *CreateNetworkInterfaceInput) SetIpv6AddressCount(v int64) *CreateNetworkInterfaceInput {
  22443. s.Ipv6AddressCount = &v
  22444. return s
  22445. }
  22446. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  22447. func (s *CreateNetworkInterfaceInput) SetIpv6Addresses(v []*InstanceIpv6Address) *CreateNetworkInterfaceInput {
  22448. s.Ipv6Addresses = v
  22449. return s
  22450. }
  22451. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  22452. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddress(v string) *CreateNetworkInterfaceInput {
  22453. s.PrivateIpAddress = &v
  22454. return s
  22455. }
  22456. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  22457. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *CreateNetworkInterfaceInput {
  22458. s.PrivateIpAddresses = v
  22459. return s
  22460. }
  22461. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  22462. func (s *CreateNetworkInterfaceInput) SetSecondaryPrivateIpAddressCount(v int64) *CreateNetworkInterfaceInput {
  22463. s.SecondaryPrivateIpAddressCount = &v
  22464. return s
  22465. }
  22466. // SetSubnetId sets the SubnetId field's value.
  22467. func (s *CreateNetworkInterfaceInput) SetSubnetId(v string) *CreateNetworkInterfaceInput {
  22468. s.SubnetId = &v
  22469. return s
  22470. }
  22471. // Contains the output of CreateNetworkInterface.
  22472. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceResult
  22473. type CreateNetworkInterfaceOutput struct {
  22474. _ struct{} `type:"structure"`
  22475. // Information about the network interface.
  22476. NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"`
  22477. }
  22478. // String returns the string representation
  22479. func (s CreateNetworkInterfaceOutput) String() string {
  22480. return awsutil.Prettify(s)
  22481. }
  22482. // GoString returns the string representation
  22483. func (s CreateNetworkInterfaceOutput) GoString() string {
  22484. return s.String()
  22485. }
  22486. // SetNetworkInterface sets the NetworkInterface field's value.
  22487. func (s *CreateNetworkInterfaceOutput) SetNetworkInterface(v *NetworkInterface) *CreateNetworkInterfaceOutput {
  22488. s.NetworkInterface = v
  22489. return s
  22490. }
  22491. // Contains the parameters for CreatePlacementGroup.
  22492. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroupRequest
  22493. type CreatePlacementGroupInput struct {
  22494. _ struct{} `type:"structure"`
  22495. // Checks whether you have the required permissions for the action, without
  22496. // actually making the request, and provides an error response. If you have
  22497. // the required permissions, the error response is DryRunOperation. Otherwise,
  22498. // it is UnauthorizedOperation.
  22499. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22500. // A name for the placement group.
  22501. //
  22502. // Constraints: Up to 255 ASCII characters
  22503. //
  22504. // GroupName is a required field
  22505. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  22506. // The placement strategy.
  22507. //
  22508. // Strategy is a required field
  22509. Strategy *string `locationName:"strategy" type:"string" required:"true" enum:"PlacementStrategy"`
  22510. }
  22511. // String returns the string representation
  22512. func (s CreatePlacementGroupInput) String() string {
  22513. return awsutil.Prettify(s)
  22514. }
  22515. // GoString returns the string representation
  22516. func (s CreatePlacementGroupInput) GoString() string {
  22517. return s.String()
  22518. }
  22519. // Validate inspects the fields of the type to determine if they are valid.
  22520. func (s *CreatePlacementGroupInput) Validate() error {
  22521. invalidParams := request.ErrInvalidParams{Context: "CreatePlacementGroupInput"}
  22522. if s.GroupName == nil {
  22523. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  22524. }
  22525. if s.Strategy == nil {
  22526. invalidParams.Add(request.NewErrParamRequired("Strategy"))
  22527. }
  22528. if invalidParams.Len() > 0 {
  22529. return invalidParams
  22530. }
  22531. return nil
  22532. }
  22533. // SetDryRun sets the DryRun field's value.
  22534. func (s *CreatePlacementGroupInput) SetDryRun(v bool) *CreatePlacementGroupInput {
  22535. s.DryRun = &v
  22536. return s
  22537. }
  22538. // SetGroupName sets the GroupName field's value.
  22539. func (s *CreatePlacementGroupInput) SetGroupName(v string) *CreatePlacementGroupInput {
  22540. s.GroupName = &v
  22541. return s
  22542. }
  22543. // SetStrategy sets the Strategy field's value.
  22544. func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupInput {
  22545. s.Strategy = &v
  22546. return s
  22547. }
  22548. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroupOutput
  22549. type CreatePlacementGroupOutput struct {
  22550. _ struct{} `type:"structure"`
  22551. }
  22552. // String returns the string representation
  22553. func (s CreatePlacementGroupOutput) String() string {
  22554. return awsutil.Prettify(s)
  22555. }
  22556. // GoString returns the string representation
  22557. func (s CreatePlacementGroupOutput) GoString() string {
  22558. return s.String()
  22559. }
  22560. // Contains the parameters for CreateReservedInstancesListing.
  22561. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListingRequest
  22562. type CreateReservedInstancesListingInput struct {
  22563. _ struct{} `type:"structure"`
  22564. // Unique, case-sensitive identifier you provide to ensure idempotency of your
  22565. // listings. This helps avoid duplicate listings. For more information, see
  22566. // Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  22567. //
  22568. // ClientToken is a required field
  22569. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  22570. // The number of instances that are a part of a Reserved Instance account to
  22571. // be listed in the Reserved Instance Marketplace. This number should be less
  22572. // than or equal to the instance count associated with the Reserved Instance
  22573. // ID specified in this call.
  22574. //
  22575. // InstanceCount is a required field
  22576. InstanceCount *int64 `locationName:"instanceCount" type:"integer" required:"true"`
  22577. // A list specifying the price of the Standard Reserved Instance for each month
  22578. // remaining in the Reserved Instance term.
  22579. //
  22580. // PriceSchedules is a required field
  22581. PriceSchedules []*PriceScheduleSpecification `locationName:"priceSchedules" locationNameList:"item" type:"list" required:"true"`
  22582. // The ID of the active Standard Reserved Instance.
  22583. //
  22584. // ReservedInstancesId is a required field
  22585. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"`
  22586. }
  22587. // String returns the string representation
  22588. func (s CreateReservedInstancesListingInput) String() string {
  22589. return awsutil.Prettify(s)
  22590. }
  22591. // GoString returns the string representation
  22592. func (s CreateReservedInstancesListingInput) GoString() string {
  22593. return s.String()
  22594. }
  22595. // Validate inspects the fields of the type to determine if they are valid.
  22596. func (s *CreateReservedInstancesListingInput) Validate() error {
  22597. invalidParams := request.ErrInvalidParams{Context: "CreateReservedInstancesListingInput"}
  22598. if s.ClientToken == nil {
  22599. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  22600. }
  22601. if s.InstanceCount == nil {
  22602. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  22603. }
  22604. if s.PriceSchedules == nil {
  22605. invalidParams.Add(request.NewErrParamRequired("PriceSchedules"))
  22606. }
  22607. if s.ReservedInstancesId == nil {
  22608. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesId"))
  22609. }
  22610. if invalidParams.Len() > 0 {
  22611. return invalidParams
  22612. }
  22613. return nil
  22614. }
  22615. // SetClientToken sets the ClientToken field's value.
  22616. func (s *CreateReservedInstancesListingInput) SetClientToken(v string) *CreateReservedInstancesListingInput {
  22617. s.ClientToken = &v
  22618. return s
  22619. }
  22620. // SetInstanceCount sets the InstanceCount field's value.
  22621. func (s *CreateReservedInstancesListingInput) SetInstanceCount(v int64) *CreateReservedInstancesListingInput {
  22622. s.InstanceCount = &v
  22623. return s
  22624. }
  22625. // SetPriceSchedules sets the PriceSchedules field's value.
  22626. func (s *CreateReservedInstancesListingInput) SetPriceSchedules(v []*PriceScheduleSpecification) *CreateReservedInstancesListingInput {
  22627. s.PriceSchedules = v
  22628. return s
  22629. }
  22630. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  22631. func (s *CreateReservedInstancesListingInput) SetReservedInstancesId(v string) *CreateReservedInstancesListingInput {
  22632. s.ReservedInstancesId = &v
  22633. return s
  22634. }
  22635. // Contains the output of CreateReservedInstancesListing.
  22636. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListingResult
  22637. type CreateReservedInstancesListingOutput struct {
  22638. _ struct{} `type:"structure"`
  22639. // Information about the Standard Reserved Instance listing.
  22640. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  22641. }
  22642. // String returns the string representation
  22643. func (s CreateReservedInstancesListingOutput) String() string {
  22644. return awsutil.Prettify(s)
  22645. }
  22646. // GoString returns the string representation
  22647. func (s CreateReservedInstancesListingOutput) GoString() string {
  22648. return s.String()
  22649. }
  22650. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  22651. func (s *CreateReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CreateReservedInstancesListingOutput {
  22652. s.ReservedInstancesListings = v
  22653. return s
  22654. }
  22655. // Contains the parameters for CreateRoute.
  22656. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteRequest
  22657. type CreateRouteInput struct {
  22658. _ struct{} `type:"structure"`
  22659. // The IPv4 CIDR address block used for the destination match. Routing decisions
  22660. // are based on the most specific match.
  22661. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  22662. // The IPv6 CIDR block used for the destination match. Routing decisions are
  22663. // based on the most specific match.
  22664. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  22665. // Checks whether you have the required permissions for the action, without
  22666. // actually making the request, and provides an error response. If you have
  22667. // the required permissions, the error response is DryRunOperation. Otherwise,
  22668. // it is UnauthorizedOperation.
  22669. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22670. // [IPv6 traffic only] The ID of an egress-only Internet gateway.
  22671. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  22672. // The ID of an Internet gateway or virtual private gateway attached to your
  22673. // VPC.
  22674. GatewayId *string `locationName:"gatewayId" type:"string"`
  22675. // The ID of a NAT instance in your VPC. The operation fails if you specify
  22676. // an instance ID unless exactly one network interface is attached.
  22677. InstanceId *string `locationName:"instanceId" type:"string"`
  22678. // [IPv4 traffic only] The ID of a NAT gateway.
  22679. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  22680. // The ID of a network interface.
  22681. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  22682. // The ID of the route table for the route.
  22683. //
  22684. // RouteTableId is a required field
  22685. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  22686. // The ID of a VPC peering connection.
  22687. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  22688. }
  22689. // String returns the string representation
  22690. func (s CreateRouteInput) String() string {
  22691. return awsutil.Prettify(s)
  22692. }
  22693. // GoString returns the string representation
  22694. func (s CreateRouteInput) GoString() string {
  22695. return s.String()
  22696. }
  22697. // Validate inspects the fields of the type to determine if they are valid.
  22698. func (s *CreateRouteInput) Validate() error {
  22699. invalidParams := request.ErrInvalidParams{Context: "CreateRouteInput"}
  22700. if s.RouteTableId == nil {
  22701. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  22702. }
  22703. if invalidParams.Len() > 0 {
  22704. return invalidParams
  22705. }
  22706. return nil
  22707. }
  22708. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  22709. func (s *CreateRouteInput) SetDestinationCidrBlock(v string) *CreateRouteInput {
  22710. s.DestinationCidrBlock = &v
  22711. return s
  22712. }
  22713. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  22714. func (s *CreateRouteInput) SetDestinationIpv6CidrBlock(v string) *CreateRouteInput {
  22715. s.DestinationIpv6CidrBlock = &v
  22716. return s
  22717. }
  22718. // SetDryRun sets the DryRun field's value.
  22719. func (s *CreateRouteInput) SetDryRun(v bool) *CreateRouteInput {
  22720. s.DryRun = &v
  22721. return s
  22722. }
  22723. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  22724. func (s *CreateRouteInput) SetEgressOnlyInternetGatewayId(v string) *CreateRouteInput {
  22725. s.EgressOnlyInternetGatewayId = &v
  22726. return s
  22727. }
  22728. // SetGatewayId sets the GatewayId field's value.
  22729. func (s *CreateRouteInput) SetGatewayId(v string) *CreateRouteInput {
  22730. s.GatewayId = &v
  22731. return s
  22732. }
  22733. // SetInstanceId sets the InstanceId field's value.
  22734. func (s *CreateRouteInput) SetInstanceId(v string) *CreateRouteInput {
  22735. s.InstanceId = &v
  22736. return s
  22737. }
  22738. // SetNatGatewayId sets the NatGatewayId field's value.
  22739. func (s *CreateRouteInput) SetNatGatewayId(v string) *CreateRouteInput {
  22740. s.NatGatewayId = &v
  22741. return s
  22742. }
  22743. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  22744. func (s *CreateRouteInput) SetNetworkInterfaceId(v string) *CreateRouteInput {
  22745. s.NetworkInterfaceId = &v
  22746. return s
  22747. }
  22748. // SetRouteTableId sets the RouteTableId field's value.
  22749. func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput {
  22750. s.RouteTableId = &v
  22751. return s
  22752. }
  22753. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  22754. func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput {
  22755. s.VpcPeeringConnectionId = &v
  22756. return s
  22757. }
  22758. // Contains the output of CreateRoute.
  22759. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteResult
  22760. type CreateRouteOutput struct {
  22761. _ struct{} `type:"structure"`
  22762. // Returns true if the request succeeds; otherwise, it returns an error.
  22763. Return *bool `locationName:"return" type:"boolean"`
  22764. }
  22765. // String returns the string representation
  22766. func (s CreateRouteOutput) String() string {
  22767. return awsutil.Prettify(s)
  22768. }
  22769. // GoString returns the string representation
  22770. func (s CreateRouteOutput) GoString() string {
  22771. return s.String()
  22772. }
  22773. // SetReturn sets the Return field's value.
  22774. func (s *CreateRouteOutput) SetReturn(v bool) *CreateRouteOutput {
  22775. s.Return = &v
  22776. return s
  22777. }
  22778. // Contains the parameters for CreateRouteTable.
  22779. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTableRequest
  22780. type CreateRouteTableInput struct {
  22781. _ struct{} `type:"structure"`
  22782. // Checks whether you have the required permissions for the action, without
  22783. // actually making the request, and provides an error response. If you have
  22784. // the required permissions, the error response is DryRunOperation. Otherwise,
  22785. // it is UnauthorizedOperation.
  22786. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22787. // The ID of the VPC.
  22788. //
  22789. // VpcId is a required field
  22790. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  22791. }
  22792. // String returns the string representation
  22793. func (s CreateRouteTableInput) String() string {
  22794. return awsutil.Prettify(s)
  22795. }
  22796. // GoString returns the string representation
  22797. func (s CreateRouteTableInput) GoString() string {
  22798. return s.String()
  22799. }
  22800. // Validate inspects the fields of the type to determine if they are valid.
  22801. func (s *CreateRouteTableInput) Validate() error {
  22802. invalidParams := request.ErrInvalidParams{Context: "CreateRouteTableInput"}
  22803. if s.VpcId == nil {
  22804. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22805. }
  22806. if invalidParams.Len() > 0 {
  22807. return invalidParams
  22808. }
  22809. return nil
  22810. }
  22811. // SetDryRun sets the DryRun field's value.
  22812. func (s *CreateRouteTableInput) SetDryRun(v bool) *CreateRouteTableInput {
  22813. s.DryRun = &v
  22814. return s
  22815. }
  22816. // SetVpcId sets the VpcId field's value.
  22817. func (s *CreateRouteTableInput) SetVpcId(v string) *CreateRouteTableInput {
  22818. s.VpcId = &v
  22819. return s
  22820. }
  22821. // Contains the output of CreateRouteTable.
  22822. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTableResult
  22823. type CreateRouteTableOutput struct {
  22824. _ struct{} `type:"structure"`
  22825. // Information about the route table.
  22826. RouteTable *RouteTable `locationName:"routeTable" type:"structure"`
  22827. }
  22828. // String returns the string representation
  22829. func (s CreateRouteTableOutput) String() string {
  22830. return awsutil.Prettify(s)
  22831. }
  22832. // GoString returns the string representation
  22833. func (s CreateRouteTableOutput) GoString() string {
  22834. return s.String()
  22835. }
  22836. // SetRouteTable sets the RouteTable field's value.
  22837. func (s *CreateRouteTableOutput) SetRouteTable(v *RouteTable) *CreateRouteTableOutput {
  22838. s.RouteTable = v
  22839. return s
  22840. }
  22841. // Contains the parameters for CreateSecurityGroup.
  22842. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroupRequest
  22843. type CreateSecurityGroupInput struct {
  22844. _ struct{} `type:"structure"`
  22845. // A description for the security group. This is informational only.
  22846. //
  22847. // Constraints: Up to 255 characters in length
  22848. //
  22849. // Constraints for EC2-Classic: ASCII characters
  22850. //
  22851. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  22852. //
  22853. // Description is a required field
  22854. Description *string `locationName:"GroupDescription" type:"string" required:"true"`
  22855. // Checks whether you have the required permissions for the action, without
  22856. // actually making the request, and provides an error response. If you have
  22857. // the required permissions, the error response is DryRunOperation. Otherwise,
  22858. // it is UnauthorizedOperation.
  22859. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22860. // The name of the security group.
  22861. //
  22862. // Constraints: Up to 255 characters in length
  22863. //
  22864. // Constraints for EC2-Classic: ASCII characters
  22865. //
  22866. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  22867. //
  22868. // GroupName is a required field
  22869. GroupName *string `type:"string" required:"true"`
  22870. // [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
  22871. VpcId *string `type:"string"`
  22872. }
  22873. // String returns the string representation
  22874. func (s CreateSecurityGroupInput) String() string {
  22875. return awsutil.Prettify(s)
  22876. }
  22877. // GoString returns the string representation
  22878. func (s CreateSecurityGroupInput) GoString() string {
  22879. return s.String()
  22880. }
  22881. // Validate inspects the fields of the type to determine if they are valid.
  22882. func (s *CreateSecurityGroupInput) Validate() error {
  22883. invalidParams := request.ErrInvalidParams{Context: "CreateSecurityGroupInput"}
  22884. if s.Description == nil {
  22885. invalidParams.Add(request.NewErrParamRequired("Description"))
  22886. }
  22887. if s.GroupName == nil {
  22888. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  22889. }
  22890. if invalidParams.Len() > 0 {
  22891. return invalidParams
  22892. }
  22893. return nil
  22894. }
  22895. // SetDescription sets the Description field's value.
  22896. func (s *CreateSecurityGroupInput) SetDescription(v string) *CreateSecurityGroupInput {
  22897. s.Description = &v
  22898. return s
  22899. }
  22900. // SetDryRun sets the DryRun field's value.
  22901. func (s *CreateSecurityGroupInput) SetDryRun(v bool) *CreateSecurityGroupInput {
  22902. s.DryRun = &v
  22903. return s
  22904. }
  22905. // SetGroupName sets the GroupName field's value.
  22906. func (s *CreateSecurityGroupInput) SetGroupName(v string) *CreateSecurityGroupInput {
  22907. s.GroupName = &v
  22908. return s
  22909. }
  22910. // SetVpcId sets the VpcId field's value.
  22911. func (s *CreateSecurityGroupInput) SetVpcId(v string) *CreateSecurityGroupInput {
  22912. s.VpcId = &v
  22913. return s
  22914. }
  22915. // Contains the output of CreateSecurityGroup.
  22916. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroupResult
  22917. type CreateSecurityGroupOutput struct {
  22918. _ struct{} `type:"structure"`
  22919. // The ID of the security group.
  22920. GroupId *string `locationName:"groupId" type:"string"`
  22921. }
  22922. // String returns the string representation
  22923. func (s CreateSecurityGroupOutput) String() string {
  22924. return awsutil.Prettify(s)
  22925. }
  22926. // GoString returns the string representation
  22927. func (s CreateSecurityGroupOutput) GoString() string {
  22928. return s.String()
  22929. }
  22930. // SetGroupId sets the GroupId field's value.
  22931. func (s *CreateSecurityGroupOutput) SetGroupId(v string) *CreateSecurityGroupOutput {
  22932. s.GroupId = &v
  22933. return s
  22934. }
  22935. // Contains the parameters for CreateSnapshot.
  22936. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshotRequest
  22937. type CreateSnapshotInput struct {
  22938. _ struct{} `type:"structure"`
  22939. // A description for the snapshot.
  22940. Description *string `type:"string"`
  22941. // Checks whether you have the required permissions for the action, without
  22942. // actually making the request, and provides an error response. If you have
  22943. // the required permissions, the error response is DryRunOperation. Otherwise,
  22944. // it is UnauthorizedOperation.
  22945. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22946. // The ID of the EBS volume.
  22947. //
  22948. // VolumeId is a required field
  22949. VolumeId *string `type:"string" required:"true"`
  22950. }
  22951. // String returns the string representation
  22952. func (s CreateSnapshotInput) String() string {
  22953. return awsutil.Prettify(s)
  22954. }
  22955. // GoString returns the string representation
  22956. func (s CreateSnapshotInput) GoString() string {
  22957. return s.String()
  22958. }
  22959. // Validate inspects the fields of the type to determine if they are valid.
  22960. func (s *CreateSnapshotInput) Validate() error {
  22961. invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
  22962. if s.VolumeId == nil {
  22963. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  22964. }
  22965. if invalidParams.Len() > 0 {
  22966. return invalidParams
  22967. }
  22968. return nil
  22969. }
  22970. // SetDescription sets the Description field's value.
  22971. func (s *CreateSnapshotInput) SetDescription(v string) *CreateSnapshotInput {
  22972. s.Description = &v
  22973. return s
  22974. }
  22975. // SetDryRun sets the DryRun field's value.
  22976. func (s *CreateSnapshotInput) SetDryRun(v bool) *CreateSnapshotInput {
  22977. s.DryRun = &v
  22978. return s
  22979. }
  22980. // SetVolumeId sets the VolumeId field's value.
  22981. func (s *CreateSnapshotInput) SetVolumeId(v string) *CreateSnapshotInput {
  22982. s.VolumeId = &v
  22983. return s
  22984. }
  22985. // Contains the parameters for CreateSpotDatafeedSubscription.
  22986. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscriptionRequest
  22987. type CreateSpotDatafeedSubscriptionInput struct {
  22988. _ struct{} `type:"structure"`
  22989. // The Amazon S3 bucket in which to store the Spot instance data feed.
  22990. //
  22991. // Bucket is a required field
  22992. Bucket *string `locationName:"bucket" type:"string" required:"true"`
  22993. // Checks whether you have the required permissions for the action, without
  22994. // actually making the request, and provides an error response. If you have
  22995. // the required permissions, the error response is DryRunOperation. Otherwise,
  22996. // it is UnauthorizedOperation.
  22997. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22998. // A prefix for the data feed file names.
  22999. Prefix *string `locationName:"prefix" type:"string"`
  23000. }
  23001. // String returns the string representation
  23002. func (s CreateSpotDatafeedSubscriptionInput) String() string {
  23003. return awsutil.Prettify(s)
  23004. }
  23005. // GoString returns the string representation
  23006. func (s CreateSpotDatafeedSubscriptionInput) GoString() string {
  23007. return s.String()
  23008. }
  23009. // Validate inspects the fields of the type to determine if they are valid.
  23010. func (s *CreateSpotDatafeedSubscriptionInput) Validate() error {
  23011. invalidParams := request.ErrInvalidParams{Context: "CreateSpotDatafeedSubscriptionInput"}
  23012. if s.Bucket == nil {
  23013. invalidParams.Add(request.NewErrParamRequired("Bucket"))
  23014. }
  23015. if invalidParams.Len() > 0 {
  23016. return invalidParams
  23017. }
  23018. return nil
  23019. }
  23020. // SetBucket sets the Bucket field's value.
  23021. func (s *CreateSpotDatafeedSubscriptionInput) SetBucket(v string) *CreateSpotDatafeedSubscriptionInput {
  23022. s.Bucket = &v
  23023. return s
  23024. }
  23025. // SetDryRun sets the DryRun field's value.
  23026. func (s *CreateSpotDatafeedSubscriptionInput) SetDryRun(v bool) *CreateSpotDatafeedSubscriptionInput {
  23027. s.DryRun = &v
  23028. return s
  23029. }
  23030. // SetPrefix sets the Prefix field's value.
  23031. func (s *CreateSpotDatafeedSubscriptionInput) SetPrefix(v string) *CreateSpotDatafeedSubscriptionInput {
  23032. s.Prefix = &v
  23033. return s
  23034. }
  23035. // Contains the output of CreateSpotDatafeedSubscription.
  23036. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscriptionResult
  23037. type CreateSpotDatafeedSubscriptionOutput struct {
  23038. _ struct{} `type:"structure"`
  23039. // The Spot instance data feed subscription.
  23040. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  23041. }
  23042. // String returns the string representation
  23043. func (s CreateSpotDatafeedSubscriptionOutput) String() string {
  23044. return awsutil.Prettify(s)
  23045. }
  23046. // GoString returns the string representation
  23047. func (s CreateSpotDatafeedSubscriptionOutput) GoString() string {
  23048. return s.String()
  23049. }
  23050. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  23051. func (s *CreateSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *CreateSpotDatafeedSubscriptionOutput {
  23052. s.SpotDatafeedSubscription = v
  23053. return s
  23054. }
  23055. // Contains the parameters for CreateSubnet.
  23056. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetRequest
  23057. type CreateSubnetInput struct {
  23058. _ struct{} `type:"structure"`
  23059. // The Availability Zone for the subnet.
  23060. //
  23061. // Default: AWS selects one for you. If you create more than one subnet in your
  23062. // VPC, we may not necessarily select a different zone for each subnet.
  23063. AvailabilityZone *string `type:"string"`
  23064. // The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
  23065. //
  23066. // CidrBlock is a required field
  23067. CidrBlock *string `type:"string" required:"true"`
  23068. // Checks whether you have the required permissions for the action, without
  23069. // actually making the request, and provides an error response. If you have
  23070. // the required permissions, the error response is DryRunOperation. Otherwise,
  23071. // it is UnauthorizedOperation.
  23072. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23073. // The IPv6 network range for the subnet, in CIDR notation. The subnet size
  23074. // must use a /64 prefix length.
  23075. Ipv6CidrBlock *string `type:"string"`
  23076. // The ID of the VPC.
  23077. //
  23078. // VpcId is a required field
  23079. VpcId *string `type:"string" required:"true"`
  23080. }
  23081. // String returns the string representation
  23082. func (s CreateSubnetInput) String() string {
  23083. return awsutil.Prettify(s)
  23084. }
  23085. // GoString returns the string representation
  23086. func (s CreateSubnetInput) GoString() string {
  23087. return s.String()
  23088. }
  23089. // Validate inspects the fields of the type to determine if they are valid.
  23090. func (s *CreateSubnetInput) Validate() error {
  23091. invalidParams := request.ErrInvalidParams{Context: "CreateSubnetInput"}
  23092. if s.CidrBlock == nil {
  23093. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  23094. }
  23095. if s.VpcId == nil {
  23096. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  23097. }
  23098. if invalidParams.Len() > 0 {
  23099. return invalidParams
  23100. }
  23101. return nil
  23102. }
  23103. // SetAvailabilityZone sets the AvailabilityZone field's value.
  23104. func (s *CreateSubnetInput) SetAvailabilityZone(v string) *CreateSubnetInput {
  23105. s.AvailabilityZone = &v
  23106. return s
  23107. }
  23108. // SetCidrBlock sets the CidrBlock field's value.
  23109. func (s *CreateSubnetInput) SetCidrBlock(v string) *CreateSubnetInput {
  23110. s.CidrBlock = &v
  23111. return s
  23112. }
  23113. // SetDryRun sets the DryRun field's value.
  23114. func (s *CreateSubnetInput) SetDryRun(v bool) *CreateSubnetInput {
  23115. s.DryRun = &v
  23116. return s
  23117. }
  23118. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  23119. func (s *CreateSubnetInput) SetIpv6CidrBlock(v string) *CreateSubnetInput {
  23120. s.Ipv6CidrBlock = &v
  23121. return s
  23122. }
  23123. // SetVpcId sets the VpcId field's value.
  23124. func (s *CreateSubnetInput) SetVpcId(v string) *CreateSubnetInput {
  23125. s.VpcId = &v
  23126. return s
  23127. }
  23128. // Contains the output of CreateSubnet.
  23129. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetResult
  23130. type CreateSubnetOutput struct {
  23131. _ struct{} `type:"structure"`
  23132. // Information about the subnet.
  23133. Subnet *Subnet `locationName:"subnet" type:"structure"`
  23134. }
  23135. // String returns the string representation
  23136. func (s CreateSubnetOutput) String() string {
  23137. return awsutil.Prettify(s)
  23138. }
  23139. // GoString returns the string representation
  23140. func (s CreateSubnetOutput) GoString() string {
  23141. return s.String()
  23142. }
  23143. // SetSubnet sets the Subnet field's value.
  23144. func (s *CreateSubnetOutput) SetSubnet(v *Subnet) *CreateSubnetOutput {
  23145. s.Subnet = v
  23146. return s
  23147. }
  23148. // Contains the parameters for CreateTags.
  23149. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTagsRequest
  23150. type CreateTagsInput struct {
  23151. _ struct{} `type:"structure"`
  23152. // Checks whether you have the required permissions for the action, without
  23153. // actually making the request, and provides an error response. If you have
  23154. // the required permissions, the error response is DryRunOperation. Otherwise,
  23155. // it is UnauthorizedOperation.
  23156. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23157. // The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
  23158. //
  23159. // Resources is a required field
  23160. Resources []*string `locationName:"ResourceId" type:"list" required:"true"`
  23161. // One or more tags. The value parameter is required, but if you don't want
  23162. // the tag to have a value, specify the parameter with no value, and we set
  23163. // the value to an empty string.
  23164. //
  23165. // Tags is a required field
  23166. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list" required:"true"`
  23167. }
  23168. // String returns the string representation
  23169. func (s CreateTagsInput) String() string {
  23170. return awsutil.Prettify(s)
  23171. }
  23172. // GoString returns the string representation
  23173. func (s CreateTagsInput) GoString() string {
  23174. return s.String()
  23175. }
  23176. // Validate inspects the fields of the type to determine if they are valid.
  23177. func (s *CreateTagsInput) Validate() error {
  23178. invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  23179. if s.Resources == nil {
  23180. invalidParams.Add(request.NewErrParamRequired("Resources"))
  23181. }
  23182. if s.Tags == nil {
  23183. invalidParams.Add(request.NewErrParamRequired("Tags"))
  23184. }
  23185. if invalidParams.Len() > 0 {
  23186. return invalidParams
  23187. }
  23188. return nil
  23189. }
  23190. // SetDryRun sets the DryRun field's value.
  23191. func (s *CreateTagsInput) SetDryRun(v bool) *CreateTagsInput {
  23192. s.DryRun = &v
  23193. return s
  23194. }
  23195. // SetResources sets the Resources field's value.
  23196. func (s *CreateTagsInput) SetResources(v []*string) *CreateTagsInput {
  23197. s.Resources = v
  23198. return s
  23199. }
  23200. // SetTags sets the Tags field's value.
  23201. func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
  23202. s.Tags = v
  23203. return s
  23204. }
  23205. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTagsOutput
  23206. type CreateTagsOutput struct {
  23207. _ struct{} `type:"structure"`
  23208. }
  23209. // String returns the string representation
  23210. func (s CreateTagsOutput) String() string {
  23211. return awsutil.Prettify(s)
  23212. }
  23213. // GoString returns the string representation
  23214. func (s CreateTagsOutput) GoString() string {
  23215. return s.String()
  23216. }
  23217. // Contains the parameters for CreateVolume.
  23218. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumeRequest
  23219. type CreateVolumeInput struct {
  23220. _ struct{} `type:"structure"`
  23221. // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones
  23222. // to list the Availability Zones that are currently available to you.
  23223. //
  23224. // AvailabilityZone is a required field
  23225. AvailabilityZone *string `type:"string" required:"true"`
  23226. // Checks whether you have the required permissions for the action, without
  23227. // actually making the request, and provides an error response. If you have
  23228. // the required permissions, the error response is DryRunOperation. Otherwise,
  23229. // it is UnauthorizedOperation.
  23230. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23231. // Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes
  23232. // may only be attached to instances that support Amazon EBS encryption. Volumes
  23233. // that are created from encrypted snapshots are automatically encrypted. There
  23234. // is no way to create an encrypted volume from an unencrypted snapshot or vice
  23235. // versa. If your AMI uses encrypted volumes, you can only launch it on supported
  23236. // instance types. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  23237. // in the Amazon Elastic Compute Cloud User Guide.
  23238. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  23239. // Only valid for Provisioned IOPS SSD volumes. The number of I/O operations
  23240. // per second (IOPS) to provision for the volume, with a maximum ratio of 50
  23241. // IOPS/GiB.
  23242. //
  23243. // Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes
  23244. Iops *int64 `type:"integer"`
  23245. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  23246. // key (CMK) to use when creating the encrypted volume. This parameter is only
  23247. // required if you want to use a non-default CMK; if this parameter is not specified,
  23248. // the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace,
  23249. // followed by the region of the CMK, the AWS account ID of the CMK owner, the
  23250. // key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  23251. // If a KmsKeyId is specified, the Encrypted flag must also be set.
  23252. KmsKeyId *string `type:"string"`
  23253. // The size of the volume, in GiBs.
  23254. //
  23255. // Constraints: 1-16384 for gp2, 4-16384 for io1, 500-16384 for st1, 500-16384
  23256. // for sc1, and 1-1024 for standard. If you specify a snapshot, the volume size
  23257. // must be equal to or larger than the snapshot size.
  23258. //
  23259. // Default: If you're creating the volume from a snapshot and don't specify
  23260. // a volume size, the default is the snapshot size.
  23261. Size *int64 `type:"integer"`
  23262. // The snapshot from which to create the volume.
  23263. SnapshotId *string `type:"string"`
  23264. // The tags to apply to the volume during creation.
  23265. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  23266. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  23267. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  23268. // for Magnetic volumes.
  23269. //
  23270. // Default: standard
  23271. VolumeType *string `type:"string" enum:"VolumeType"`
  23272. }
  23273. // String returns the string representation
  23274. func (s CreateVolumeInput) String() string {
  23275. return awsutil.Prettify(s)
  23276. }
  23277. // GoString returns the string representation
  23278. func (s CreateVolumeInput) GoString() string {
  23279. return s.String()
  23280. }
  23281. // Validate inspects the fields of the type to determine if they are valid.
  23282. func (s *CreateVolumeInput) Validate() error {
  23283. invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"}
  23284. if s.AvailabilityZone == nil {
  23285. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  23286. }
  23287. if invalidParams.Len() > 0 {
  23288. return invalidParams
  23289. }
  23290. return nil
  23291. }
  23292. // SetAvailabilityZone sets the AvailabilityZone field's value.
  23293. func (s *CreateVolumeInput) SetAvailabilityZone(v string) *CreateVolumeInput {
  23294. s.AvailabilityZone = &v
  23295. return s
  23296. }
  23297. // SetDryRun sets the DryRun field's value.
  23298. func (s *CreateVolumeInput) SetDryRun(v bool) *CreateVolumeInput {
  23299. s.DryRun = &v
  23300. return s
  23301. }
  23302. // SetEncrypted sets the Encrypted field's value.
  23303. func (s *CreateVolumeInput) SetEncrypted(v bool) *CreateVolumeInput {
  23304. s.Encrypted = &v
  23305. return s
  23306. }
  23307. // SetIops sets the Iops field's value.
  23308. func (s *CreateVolumeInput) SetIops(v int64) *CreateVolumeInput {
  23309. s.Iops = &v
  23310. return s
  23311. }
  23312. // SetKmsKeyId sets the KmsKeyId field's value.
  23313. func (s *CreateVolumeInput) SetKmsKeyId(v string) *CreateVolumeInput {
  23314. s.KmsKeyId = &v
  23315. return s
  23316. }
  23317. // SetSize sets the Size field's value.
  23318. func (s *CreateVolumeInput) SetSize(v int64) *CreateVolumeInput {
  23319. s.Size = &v
  23320. return s
  23321. }
  23322. // SetSnapshotId sets the SnapshotId field's value.
  23323. func (s *CreateVolumeInput) SetSnapshotId(v string) *CreateVolumeInput {
  23324. s.SnapshotId = &v
  23325. return s
  23326. }
  23327. // SetTagSpecifications sets the TagSpecifications field's value.
  23328. func (s *CreateVolumeInput) SetTagSpecifications(v []*TagSpecification) *CreateVolumeInput {
  23329. s.TagSpecifications = v
  23330. return s
  23331. }
  23332. // SetVolumeType sets the VolumeType field's value.
  23333. func (s *CreateVolumeInput) SetVolumeType(v string) *CreateVolumeInput {
  23334. s.VolumeType = &v
  23335. return s
  23336. }
  23337. // Describes the user or group to be added or removed from the permissions for
  23338. // a volume.
  23339. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumePermission
  23340. type CreateVolumePermission struct {
  23341. _ struct{} `type:"structure"`
  23342. // The specific group that is to be added or removed from a volume's list of
  23343. // create volume permissions.
  23344. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  23345. // The specific AWS account ID that is to be added or removed from a volume's
  23346. // list of create volume permissions.
  23347. UserId *string `locationName:"userId" type:"string"`
  23348. }
  23349. // String returns the string representation
  23350. func (s CreateVolumePermission) String() string {
  23351. return awsutil.Prettify(s)
  23352. }
  23353. // GoString returns the string representation
  23354. func (s CreateVolumePermission) GoString() string {
  23355. return s.String()
  23356. }
  23357. // SetGroup sets the Group field's value.
  23358. func (s *CreateVolumePermission) SetGroup(v string) *CreateVolumePermission {
  23359. s.Group = &v
  23360. return s
  23361. }
  23362. // SetUserId sets the UserId field's value.
  23363. func (s *CreateVolumePermission) SetUserId(v string) *CreateVolumePermission {
  23364. s.UserId = &v
  23365. return s
  23366. }
  23367. // Describes modifications to the permissions for a volume.
  23368. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumePermissionModifications
  23369. type CreateVolumePermissionModifications struct {
  23370. _ struct{} `type:"structure"`
  23371. // Adds a specific AWS account ID or group to a volume's list of create volume
  23372. // permissions.
  23373. Add []*CreateVolumePermission `locationNameList:"item" type:"list"`
  23374. // Removes a specific AWS account ID or group from a volume's list of create
  23375. // volume permissions.
  23376. Remove []*CreateVolumePermission `locationNameList:"item" type:"list"`
  23377. }
  23378. // String returns the string representation
  23379. func (s CreateVolumePermissionModifications) String() string {
  23380. return awsutil.Prettify(s)
  23381. }
  23382. // GoString returns the string representation
  23383. func (s CreateVolumePermissionModifications) GoString() string {
  23384. return s.String()
  23385. }
  23386. // SetAdd sets the Add field's value.
  23387. func (s *CreateVolumePermissionModifications) SetAdd(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  23388. s.Add = v
  23389. return s
  23390. }
  23391. // SetRemove sets the Remove field's value.
  23392. func (s *CreateVolumePermissionModifications) SetRemove(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  23393. s.Remove = v
  23394. return s
  23395. }
  23396. // Contains the parameters for CreateVpcEndpoint.
  23397. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointRequest
  23398. type CreateVpcEndpointInput struct {
  23399. _ struct{} `type:"structure"`
  23400. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  23401. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  23402. ClientToken *string `type:"string"`
  23403. // Checks whether you have the required permissions for the action, without
  23404. // actually making the request, and provides an error response. If you have
  23405. // the required permissions, the error response is DryRunOperation. Otherwise,
  23406. // it is UnauthorizedOperation.
  23407. DryRun *bool `type:"boolean"`
  23408. // A policy to attach to the endpoint that controls access to the service. The
  23409. // policy must be in valid JSON format. If this parameter is not specified,
  23410. // we attach a default policy that allows full access to the service.
  23411. PolicyDocument *string `type:"string"`
  23412. // One or more route table IDs.
  23413. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  23414. // The AWS service name, in the form com.amazonaws.region.service. To get a
  23415. // list of available services, use the DescribeVpcEndpointServices request.
  23416. //
  23417. // ServiceName is a required field
  23418. ServiceName *string `type:"string" required:"true"`
  23419. // The ID of the VPC in which the endpoint will be used.
  23420. //
  23421. // VpcId is a required field
  23422. VpcId *string `type:"string" required:"true"`
  23423. }
  23424. // String returns the string representation
  23425. func (s CreateVpcEndpointInput) String() string {
  23426. return awsutil.Prettify(s)
  23427. }
  23428. // GoString returns the string representation
  23429. func (s CreateVpcEndpointInput) GoString() string {
  23430. return s.String()
  23431. }
  23432. // Validate inspects the fields of the type to determine if they are valid.
  23433. func (s *CreateVpcEndpointInput) Validate() error {
  23434. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointInput"}
  23435. if s.ServiceName == nil {
  23436. invalidParams.Add(request.NewErrParamRequired("ServiceName"))
  23437. }
  23438. if s.VpcId == nil {
  23439. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  23440. }
  23441. if invalidParams.Len() > 0 {
  23442. return invalidParams
  23443. }
  23444. return nil
  23445. }
  23446. // SetClientToken sets the ClientToken field's value.
  23447. func (s *CreateVpcEndpointInput) SetClientToken(v string) *CreateVpcEndpointInput {
  23448. s.ClientToken = &v
  23449. return s
  23450. }
  23451. // SetDryRun sets the DryRun field's value.
  23452. func (s *CreateVpcEndpointInput) SetDryRun(v bool) *CreateVpcEndpointInput {
  23453. s.DryRun = &v
  23454. return s
  23455. }
  23456. // SetPolicyDocument sets the PolicyDocument field's value.
  23457. func (s *CreateVpcEndpointInput) SetPolicyDocument(v string) *CreateVpcEndpointInput {
  23458. s.PolicyDocument = &v
  23459. return s
  23460. }
  23461. // SetRouteTableIds sets the RouteTableIds field's value.
  23462. func (s *CreateVpcEndpointInput) SetRouteTableIds(v []*string) *CreateVpcEndpointInput {
  23463. s.RouteTableIds = v
  23464. return s
  23465. }
  23466. // SetServiceName sets the ServiceName field's value.
  23467. func (s *CreateVpcEndpointInput) SetServiceName(v string) *CreateVpcEndpointInput {
  23468. s.ServiceName = &v
  23469. return s
  23470. }
  23471. // SetVpcId sets the VpcId field's value.
  23472. func (s *CreateVpcEndpointInput) SetVpcId(v string) *CreateVpcEndpointInput {
  23473. s.VpcId = &v
  23474. return s
  23475. }
  23476. // Contains the output of CreateVpcEndpoint.
  23477. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointResult
  23478. type CreateVpcEndpointOutput struct {
  23479. _ struct{} `type:"structure"`
  23480. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  23481. // the request.
  23482. ClientToken *string `locationName:"clientToken" type:"string"`
  23483. // Information about the endpoint.
  23484. VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"`
  23485. }
  23486. // String returns the string representation
  23487. func (s CreateVpcEndpointOutput) String() string {
  23488. return awsutil.Prettify(s)
  23489. }
  23490. // GoString returns the string representation
  23491. func (s CreateVpcEndpointOutput) GoString() string {
  23492. return s.String()
  23493. }
  23494. // SetClientToken sets the ClientToken field's value.
  23495. func (s *CreateVpcEndpointOutput) SetClientToken(v string) *CreateVpcEndpointOutput {
  23496. s.ClientToken = &v
  23497. return s
  23498. }
  23499. // SetVpcEndpoint sets the VpcEndpoint field's value.
  23500. func (s *CreateVpcEndpointOutput) SetVpcEndpoint(v *VpcEndpoint) *CreateVpcEndpointOutput {
  23501. s.VpcEndpoint = v
  23502. return s
  23503. }
  23504. // Contains the parameters for CreateVpc.
  23505. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcRequest
  23506. type CreateVpcInput struct {
  23507. _ struct{} `type:"structure"`
  23508. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  23509. // the VPC. You cannot specify the range of IP addresses, or the size of the
  23510. // CIDR block.
  23511. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  23512. // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
  23513. //
  23514. // CidrBlock is a required field
  23515. CidrBlock *string `type:"string" required:"true"`
  23516. // Checks whether you have the required permissions for the action, without
  23517. // actually making the request, and provides an error response. If you have
  23518. // the required permissions, the error response is DryRunOperation. Otherwise,
  23519. // it is UnauthorizedOperation.
  23520. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23521. // The tenancy options for instances launched into the VPC. For default, instances
  23522. // are launched with shared tenancy by default. You can launch instances with
  23523. // any tenancy into a shared tenancy VPC. For dedicated, instances are launched
  23524. // as dedicated tenancy instances by default. You can only launch instances
  23525. // with a tenancy of dedicated or host into a dedicated tenancy VPC.
  23526. //
  23527. // Important: The host value cannot be used with this parameter. Use the default
  23528. // or dedicated values only.
  23529. //
  23530. // Default: default
  23531. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  23532. }
  23533. // String returns the string representation
  23534. func (s CreateVpcInput) String() string {
  23535. return awsutil.Prettify(s)
  23536. }
  23537. // GoString returns the string representation
  23538. func (s CreateVpcInput) GoString() string {
  23539. return s.String()
  23540. }
  23541. // Validate inspects the fields of the type to determine if they are valid.
  23542. func (s *CreateVpcInput) Validate() error {
  23543. invalidParams := request.ErrInvalidParams{Context: "CreateVpcInput"}
  23544. if s.CidrBlock == nil {
  23545. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  23546. }
  23547. if invalidParams.Len() > 0 {
  23548. return invalidParams
  23549. }
  23550. return nil
  23551. }
  23552. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  23553. func (s *CreateVpcInput) SetAmazonProvidedIpv6CidrBlock(v bool) *CreateVpcInput {
  23554. s.AmazonProvidedIpv6CidrBlock = &v
  23555. return s
  23556. }
  23557. // SetCidrBlock sets the CidrBlock field's value.
  23558. func (s *CreateVpcInput) SetCidrBlock(v string) *CreateVpcInput {
  23559. s.CidrBlock = &v
  23560. return s
  23561. }
  23562. // SetDryRun sets the DryRun field's value.
  23563. func (s *CreateVpcInput) SetDryRun(v bool) *CreateVpcInput {
  23564. s.DryRun = &v
  23565. return s
  23566. }
  23567. // SetInstanceTenancy sets the InstanceTenancy field's value.
  23568. func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput {
  23569. s.InstanceTenancy = &v
  23570. return s
  23571. }
  23572. // Contains the output of CreateVpc.
  23573. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcResult
  23574. type CreateVpcOutput struct {
  23575. _ struct{} `type:"structure"`
  23576. // Information about the VPC.
  23577. Vpc *Vpc `locationName:"vpc" type:"structure"`
  23578. }
  23579. // String returns the string representation
  23580. func (s CreateVpcOutput) String() string {
  23581. return awsutil.Prettify(s)
  23582. }
  23583. // GoString returns the string representation
  23584. func (s CreateVpcOutput) GoString() string {
  23585. return s.String()
  23586. }
  23587. // SetVpc sets the Vpc field's value.
  23588. func (s *CreateVpcOutput) SetVpc(v *Vpc) *CreateVpcOutput {
  23589. s.Vpc = v
  23590. return s
  23591. }
  23592. // Contains the parameters for CreateVpcPeeringConnection.
  23593. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnectionRequest
  23594. type CreateVpcPeeringConnectionInput struct {
  23595. _ struct{} `type:"structure"`
  23596. // Checks whether you have the required permissions for the action, without
  23597. // actually making the request, and provides an error response. If you have
  23598. // the required permissions, the error response is DryRunOperation. Otherwise,
  23599. // it is UnauthorizedOperation.
  23600. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23601. // The AWS account ID of the owner of the peer VPC.
  23602. //
  23603. // Default: Your AWS account ID
  23604. PeerOwnerId *string `locationName:"peerOwnerId" type:"string"`
  23605. // The ID of the VPC with which you are creating the VPC peering connection.
  23606. PeerVpcId *string `locationName:"peerVpcId" type:"string"`
  23607. // The ID of the requester VPC.
  23608. VpcId *string `locationName:"vpcId" type:"string"`
  23609. }
  23610. // String returns the string representation
  23611. func (s CreateVpcPeeringConnectionInput) String() string {
  23612. return awsutil.Prettify(s)
  23613. }
  23614. // GoString returns the string representation
  23615. func (s CreateVpcPeeringConnectionInput) GoString() string {
  23616. return s.String()
  23617. }
  23618. // SetDryRun sets the DryRun field's value.
  23619. func (s *CreateVpcPeeringConnectionInput) SetDryRun(v bool) *CreateVpcPeeringConnectionInput {
  23620. s.DryRun = &v
  23621. return s
  23622. }
  23623. // SetPeerOwnerId sets the PeerOwnerId field's value.
  23624. func (s *CreateVpcPeeringConnectionInput) SetPeerOwnerId(v string) *CreateVpcPeeringConnectionInput {
  23625. s.PeerOwnerId = &v
  23626. return s
  23627. }
  23628. // SetPeerVpcId sets the PeerVpcId field's value.
  23629. func (s *CreateVpcPeeringConnectionInput) SetPeerVpcId(v string) *CreateVpcPeeringConnectionInput {
  23630. s.PeerVpcId = &v
  23631. return s
  23632. }
  23633. // SetVpcId sets the VpcId field's value.
  23634. func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringConnectionInput {
  23635. s.VpcId = &v
  23636. return s
  23637. }
  23638. // Contains the output of CreateVpcPeeringConnection.
  23639. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnectionResult
  23640. type CreateVpcPeeringConnectionOutput struct {
  23641. _ struct{} `type:"structure"`
  23642. // Information about the VPC peering connection.
  23643. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  23644. }
  23645. // String returns the string representation
  23646. func (s CreateVpcPeeringConnectionOutput) String() string {
  23647. return awsutil.Prettify(s)
  23648. }
  23649. // GoString returns the string representation
  23650. func (s CreateVpcPeeringConnectionOutput) GoString() string {
  23651. return s.String()
  23652. }
  23653. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  23654. func (s *CreateVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *CreateVpcPeeringConnectionOutput {
  23655. s.VpcPeeringConnection = v
  23656. return s
  23657. }
  23658. // Contains the parameters for CreateVpnConnection.
  23659. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRequest
  23660. type CreateVpnConnectionInput struct {
  23661. _ struct{} `type:"structure"`
  23662. // The ID of the customer gateway.
  23663. //
  23664. // CustomerGatewayId is a required field
  23665. CustomerGatewayId *string `type:"string" required:"true"`
  23666. // Checks whether you have the required permissions for the action, without
  23667. // actually making the request, and provides an error response. If you have
  23668. // the required permissions, the error response is DryRunOperation. Otherwise,
  23669. // it is UnauthorizedOperation.
  23670. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23671. // Indicates whether the VPN connection requires static routes. If you are creating
  23672. // a VPN connection for a device that does not support BGP, you must specify
  23673. // true.
  23674. //
  23675. // Default: false
  23676. Options *VpnConnectionOptionsSpecification `locationName:"options" type:"structure"`
  23677. // The type of VPN connection (ipsec.1).
  23678. //
  23679. // Type is a required field
  23680. Type *string `type:"string" required:"true"`
  23681. // The ID of the virtual private gateway.
  23682. //
  23683. // VpnGatewayId is a required field
  23684. VpnGatewayId *string `type:"string" required:"true"`
  23685. }
  23686. // String returns the string representation
  23687. func (s CreateVpnConnectionInput) String() string {
  23688. return awsutil.Prettify(s)
  23689. }
  23690. // GoString returns the string representation
  23691. func (s CreateVpnConnectionInput) GoString() string {
  23692. return s.String()
  23693. }
  23694. // Validate inspects the fields of the type to determine if they are valid.
  23695. func (s *CreateVpnConnectionInput) Validate() error {
  23696. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionInput"}
  23697. if s.CustomerGatewayId == nil {
  23698. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  23699. }
  23700. if s.Type == nil {
  23701. invalidParams.Add(request.NewErrParamRequired("Type"))
  23702. }
  23703. if s.VpnGatewayId == nil {
  23704. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  23705. }
  23706. if invalidParams.Len() > 0 {
  23707. return invalidParams
  23708. }
  23709. return nil
  23710. }
  23711. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  23712. func (s *CreateVpnConnectionInput) SetCustomerGatewayId(v string) *CreateVpnConnectionInput {
  23713. s.CustomerGatewayId = &v
  23714. return s
  23715. }
  23716. // SetDryRun sets the DryRun field's value.
  23717. func (s *CreateVpnConnectionInput) SetDryRun(v bool) *CreateVpnConnectionInput {
  23718. s.DryRun = &v
  23719. return s
  23720. }
  23721. // SetOptions sets the Options field's value.
  23722. func (s *CreateVpnConnectionInput) SetOptions(v *VpnConnectionOptionsSpecification) *CreateVpnConnectionInput {
  23723. s.Options = v
  23724. return s
  23725. }
  23726. // SetType sets the Type field's value.
  23727. func (s *CreateVpnConnectionInput) SetType(v string) *CreateVpnConnectionInput {
  23728. s.Type = &v
  23729. return s
  23730. }
  23731. // SetVpnGatewayId sets the VpnGatewayId field's value.
  23732. func (s *CreateVpnConnectionInput) SetVpnGatewayId(v string) *CreateVpnConnectionInput {
  23733. s.VpnGatewayId = &v
  23734. return s
  23735. }
  23736. // Contains the output of CreateVpnConnection.
  23737. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionResult
  23738. type CreateVpnConnectionOutput struct {
  23739. _ struct{} `type:"structure"`
  23740. // Information about the VPN connection.
  23741. VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
  23742. }
  23743. // String returns the string representation
  23744. func (s CreateVpnConnectionOutput) String() string {
  23745. return awsutil.Prettify(s)
  23746. }
  23747. // GoString returns the string representation
  23748. func (s CreateVpnConnectionOutput) GoString() string {
  23749. return s.String()
  23750. }
  23751. // SetVpnConnection sets the VpnConnection field's value.
  23752. func (s *CreateVpnConnectionOutput) SetVpnConnection(v *VpnConnection) *CreateVpnConnectionOutput {
  23753. s.VpnConnection = v
  23754. return s
  23755. }
  23756. // Contains the parameters for CreateVpnConnectionRoute.
  23757. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRouteRequest
  23758. type CreateVpnConnectionRouteInput struct {
  23759. _ struct{} `type:"structure"`
  23760. // The CIDR block associated with the local subnet of the customer network.
  23761. //
  23762. // DestinationCidrBlock is a required field
  23763. DestinationCidrBlock *string `type:"string" required:"true"`
  23764. // The ID of the VPN connection.
  23765. //
  23766. // VpnConnectionId is a required field
  23767. VpnConnectionId *string `type:"string" required:"true"`
  23768. }
  23769. // String returns the string representation
  23770. func (s CreateVpnConnectionRouteInput) String() string {
  23771. return awsutil.Prettify(s)
  23772. }
  23773. // GoString returns the string representation
  23774. func (s CreateVpnConnectionRouteInput) GoString() string {
  23775. return s.String()
  23776. }
  23777. // Validate inspects the fields of the type to determine if they are valid.
  23778. func (s *CreateVpnConnectionRouteInput) Validate() error {
  23779. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionRouteInput"}
  23780. if s.DestinationCidrBlock == nil {
  23781. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  23782. }
  23783. if s.VpnConnectionId == nil {
  23784. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  23785. }
  23786. if invalidParams.Len() > 0 {
  23787. return invalidParams
  23788. }
  23789. return nil
  23790. }
  23791. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  23792. func (s *CreateVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *CreateVpnConnectionRouteInput {
  23793. s.DestinationCidrBlock = &v
  23794. return s
  23795. }
  23796. // SetVpnConnectionId sets the VpnConnectionId field's value.
  23797. func (s *CreateVpnConnectionRouteInput) SetVpnConnectionId(v string) *CreateVpnConnectionRouteInput {
  23798. s.VpnConnectionId = &v
  23799. return s
  23800. }
  23801. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRouteOutput
  23802. type CreateVpnConnectionRouteOutput struct {
  23803. _ struct{} `type:"structure"`
  23804. }
  23805. // String returns the string representation
  23806. func (s CreateVpnConnectionRouteOutput) String() string {
  23807. return awsutil.Prettify(s)
  23808. }
  23809. // GoString returns the string representation
  23810. func (s CreateVpnConnectionRouteOutput) GoString() string {
  23811. return s.String()
  23812. }
  23813. // Contains the parameters for CreateVpnGateway.
  23814. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGatewayRequest
  23815. type CreateVpnGatewayInput struct {
  23816. _ struct{} `type:"structure"`
  23817. // The Availability Zone for the virtual private gateway.
  23818. AvailabilityZone *string `type:"string"`
  23819. // Checks whether you have the required permissions for the action, without
  23820. // actually making the request, and provides an error response. If you have
  23821. // the required permissions, the error response is DryRunOperation. Otherwise,
  23822. // it is UnauthorizedOperation.
  23823. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23824. // The type of VPN connection this virtual private gateway supports.
  23825. //
  23826. // Type is a required field
  23827. Type *string `type:"string" required:"true" enum:"GatewayType"`
  23828. }
  23829. // String returns the string representation
  23830. func (s CreateVpnGatewayInput) String() string {
  23831. return awsutil.Prettify(s)
  23832. }
  23833. // GoString returns the string representation
  23834. func (s CreateVpnGatewayInput) GoString() string {
  23835. return s.String()
  23836. }
  23837. // Validate inspects the fields of the type to determine if they are valid.
  23838. func (s *CreateVpnGatewayInput) Validate() error {
  23839. invalidParams := request.ErrInvalidParams{Context: "CreateVpnGatewayInput"}
  23840. if s.Type == nil {
  23841. invalidParams.Add(request.NewErrParamRequired("Type"))
  23842. }
  23843. if invalidParams.Len() > 0 {
  23844. return invalidParams
  23845. }
  23846. return nil
  23847. }
  23848. // SetAvailabilityZone sets the AvailabilityZone field's value.
  23849. func (s *CreateVpnGatewayInput) SetAvailabilityZone(v string) *CreateVpnGatewayInput {
  23850. s.AvailabilityZone = &v
  23851. return s
  23852. }
  23853. // SetDryRun sets the DryRun field's value.
  23854. func (s *CreateVpnGatewayInput) SetDryRun(v bool) *CreateVpnGatewayInput {
  23855. s.DryRun = &v
  23856. return s
  23857. }
  23858. // SetType sets the Type field's value.
  23859. func (s *CreateVpnGatewayInput) SetType(v string) *CreateVpnGatewayInput {
  23860. s.Type = &v
  23861. return s
  23862. }
  23863. // Contains the output of CreateVpnGateway.
  23864. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGatewayResult
  23865. type CreateVpnGatewayOutput struct {
  23866. _ struct{} `type:"structure"`
  23867. // Information about the virtual private gateway.
  23868. VpnGateway *VpnGateway `locationName:"vpnGateway" type:"structure"`
  23869. }
  23870. // String returns the string representation
  23871. func (s CreateVpnGatewayOutput) String() string {
  23872. return awsutil.Prettify(s)
  23873. }
  23874. // GoString returns the string representation
  23875. func (s CreateVpnGatewayOutput) GoString() string {
  23876. return s.String()
  23877. }
  23878. // SetVpnGateway sets the VpnGateway field's value.
  23879. func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayOutput {
  23880. s.VpnGateway = v
  23881. return s
  23882. }
  23883. // Describes a customer gateway.
  23884. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CustomerGateway
  23885. type CustomerGateway struct {
  23886. _ struct{} `type:"structure"`
  23887. // The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number
  23888. // (ASN).
  23889. BgpAsn *string `locationName:"bgpAsn" type:"string"`
  23890. // The ID of the customer gateway.
  23891. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  23892. // The Internet-routable IP address of the customer gateway's outside interface.
  23893. IpAddress *string `locationName:"ipAddress" type:"string"`
  23894. // The current state of the customer gateway (pending | available | deleting
  23895. // | deleted).
  23896. State *string `locationName:"state" type:"string"`
  23897. // Any tags assigned to the customer gateway.
  23898. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  23899. // The type of VPN connection the customer gateway supports (ipsec.1).
  23900. Type *string `locationName:"type" type:"string"`
  23901. }
  23902. // String returns the string representation
  23903. func (s CustomerGateway) String() string {
  23904. return awsutil.Prettify(s)
  23905. }
  23906. // GoString returns the string representation
  23907. func (s CustomerGateway) GoString() string {
  23908. return s.String()
  23909. }
  23910. // SetBgpAsn sets the BgpAsn field's value.
  23911. func (s *CustomerGateway) SetBgpAsn(v string) *CustomerGateway {
  23912. s.BgpAsn = &v
  23913. return s
  23914. }
  23915. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  23916. func (s *CustomerGateway) SetCustomerGatewayId(v string) *CustomerGateway {
  23917. s.CustomerGatewayId = &v
  23918. return s
  23919. }
  23920. // SetIpAddress sets the IpAddress field's value.
  23921. func (s *CustomerGateway) SetIpAddress(v string) *CustomerGateway {
  23922. s.IpAddress = &v
  23923. return s
  23924. }
  23925. // SetState sets the State field's value.
  23926. func (s *CustomerGateway) SetState(v string) *CustomerGateway {
  23927. s.State = &v
  23928. return s
  23929. }
  23930. // SetTags sets the Tags field's value.
  23931. func (s *CustomerGateway) SetTags(v []*Tag) *CustomerGateway {
  23932. s.Tags = v
  23933. return s
  23934. }
  23935. // SetType sets the Type field's value.
  23936. func (s *CustomerGateway) SetType(v string) *CustomerGateway {
  23937. s.Type = &v
  23938. return s
  23939. }
  23940. // Contains the parameters for DeleteCustomerGateway.
  23941. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGatewayRequest
  23942. type DeleteCustomerGatewayInput struct {
  23943. _ struct{} `type:"structure"`
  23944. // The ID of the customer gateway.
  23945. //
  23946. // CustomerGatewayId is a required field
  23947. CustomerGatewayId *string `type:"string" required:"true"`
  23948. // Checks whether you have the required permissions for the action, without
  23949. // actually making the request, and provides an error response. If you have
  23950. // the required permissions, the error response is DryRunOperation. Otherwise,
  23951. // it is UnauthorizedOperation.
  23952. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23953. }
  23954. // String returns the string representation
  23955. func (s DeleteCustomerGatewayInput) String() string {
  23956. return awsutil.Prettify(s)
  23957. }
  23958. // GoString returns the string representation
  23959. func (s DeleteCustomerGatewayInput) GoString() string {
  23960. return s.String()
  23961. }
  23962. // Validate inspects the fields of the type to determine if they are valid.
  23963. func (s *DeleteCustomerGatewayInput) Validate() error {
  23964. invalidParams := request.ErrInvalidParams{Context: "DeleteCustomerGatewayInput"}
  23965. if s.CustomerGatewayId == nil {
  23966. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  23967. }
  23968. if invalidParams.Len() > 0 {
  23969. return invalidParams
  23970. }
  23971. return nil
  23972. }
  23973. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  23974. func (s *DeleteCustomerGatewayInput) SetCustomerGatewayId(v string) *DeleteCustomerGatewayInput {
  23975. s.CustomerGatewayId = &v
  23976. return s
  23977. }
  23978. // SetDryRun sets the DryRun field's value.
  23979. func (s *DeleteCustomerGatewayInput) SetDryRun(v bool) *DeleteCustomerGatewayInput {
  23980. s.DryRun = &v
  23981. return s
  23982. }
  23983. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGatewayOutput
  23984. type DeleteCustomerGatewayOutput struct {
  23985. _ struct{} `type:"structure"`
  23986. }
  23987. // String returns the string representation
  23988. func (s DeleteCustomerGatewayOutput) String() string {
  23989. return awsutil.Prettify(s)
  23990. }
  23991. // GoString returns the string representation
  23992. func (s DeleteCustomerGatewayOutput) GoString() string {
  23993. return s.String()
  23994. }
  23995. // Contains the parameters for DeleteDhcpOptions.
  23996. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptionsRequest
  23997. type DeleteDhcpOptionsInput struct {
  23998. _ struct{} `type:"structure"`
  23999. // The ID of the DHCP options set.
  24000. //
  24001. // DhcpOptionsId is a required field
  24002. DhcpOptionsId *string `type:"string" required:"true"`
  24003. // Checks whether you have the required permissions for the action, without
  24004. // actually making the request, and provides an error response. If you have
  24005. // the required permissions, the error response is DryRunOperation. Otherwise,
  24006. // it is UnauthorizedOperation.
  24007. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24008. }
  24009. // String returns the string representation
  24010. func (s DeleteDhcpOptionsInput) String() string {
  24011. return awsutil.Prettify(s)
  24012. }
  24013. // GoString returns the string representation
  24014. func (s DeleteDhcpOptionsInput) GoString() string {
  24015. return s.String()
  24016. }
  24017. // Validate inspects the fields of the type to determine if they are valid.
  24018. func (s *DeleteDhcpOptionsInput) Validate() error {
  24019. invalidParams := request.ErrInvalidParams{Context: "DeleteDhcpOptionsInput"}
  24020. if s.DhcpOptionsId == nil {
  24021. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  24022. }
  24023. if invalidParams.Len() > 0 {
  24024. return invalidParams
  24025. }
  24026. return nil
  24027. }
  24028. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  24029. func (s *DeleteDhcpOptionsInput) SetDhcpOptionsId(v string) *DeleteDhcpOptionsInput {
  24030. s.DhcpOptionsId = &v
  24031. return s
  24032. }
  24033. // SetDryRun sets the DryRun field's value.
  24034. func (s *DeleteDhcpOptionsInput) SetDryRun(v bool) *DeleteDhcpOptionsInput {
  24035. s.DryRun = &v
  24036. return s
  24037. }
  24038. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptionsOutput
  24039. type DeleteDhcpOptionsOutput struct {
  24040. _ struct{} `type:"structure"`
  24041. }
  24042. // String returns the string representation
  24043. func (s DeleteDhcpOptionsOutput) String() string {
  24044. return awsutil.Prettify(s)
  24045. }
  24046. // GoString returns the string representation
  24047. func (s DeleteDhcpOptionsOutput) GoString() string {
  24048. return s.String()
  24049. }
  24050. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGatewayRequest
  24051. type DeleteEgressOnlyInternetGatewayInput struct {
  24052. _ struct{} `type:"structure"`
  24053. // Checks whether you have the required permissions for the action, without
  24054. // actually making the request, and provides an error response. If you have
  24055. // the required permissions, the error response is DryRunOperation. Otherwise,
  24056. // it is UnauthorizedOperation.
  24057. DryRun *bool `type:"boolean"`
  24058. // The ID of the egress-only Internet gateway.
  24059. //
  24060. // EgressOnlyInternetGatewayId is a required field
  24061. EgressOnlyInternetGatewayId *string `type:"string" required:"true"`
  24062. }
  24063. // String returns the string representation
  24064. func (s DeleteEgressOnlyInternetGatewayInput) String() string {
  24065. return awsutil.Prettify(s)
  24066. }
  24067. // GoString returns the string representation
  24068. func (s DeleteEgressOnlyInternetGatewayInput) GoString() string {
  24069. return s.String()
  24070. }
  24071. // Validate inspects the fields of the type to determine if they are valid.
  24072. func (s *DeleteEgressOnlyInternetGatewayInput) Validate() error {
  24073. invalidParams := request.ErrInvalidParams{Context: "DeleteEgressOnlyInternetGatewayInput"}
  24074. if s.EgressOnlyInternetGatewayId == nil {
  24075. invalidParams.Add(request.NewErrParamRequired("EgressOnlyInternetGatewayId"))
  24076. }
  24077. if invalidParams.Len() > 0 {
  24078. return invalidParams
  24079. }
  24080. return nil
  24081. }
  24082. // SetDryRun sets the DryRun field's value.
  24083. func (s *DeleteEgressOnlyInternetGatewayInput) SetDryRun(v bool) *DeleteEgressOnlyInternetGatewayInput {
  24084. s.DryRun = &v
  24085. return s
  24086. }
  24087. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  24088. func (s *DeleteEgressOnlyInternetGatewayInput) SetEgressOnlyInternetGatewayId(v string) *DeleteEgressOnlyInternetGatewayInput {
  24089. s.EgressOnlyInternetGatewayId = &v
  24090. return s
  24091. }
  24092. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGatewayResult
  24093. type DeleteEgressOnlyInternetGatewayOutput struct {
  24094. _ struct{} `type:"structure"`
  24095. // Returns true if the request succeeds; otherwise, it returns an error.
  24096. ReturnCode *bool `locationName:"returnCode" type:"boolean"`
  24097. }
  24098. // String returns the string representation
  24099. func (s DeleteEgressOnlyInternetGatewayOutput) String() string {
  24100. return awsutil.Prettify(s)
  24101. }
  24102. // GoString returns the string representation
  24103. func (s DeleteEgressOnlyInternetGatewayOutput) GoString() string {
  24104. return s.String()
  24105. }
  24106. // SetReturnCode sets the ReturnCode field's value.
  24107. func (s *DeleteEgressOnlyInternetGatewayOutput) SetReturnCode(v bool) *DeleteEgressOnlyInternetGatewayOutput {
  24108. s.ReturnCode = &v
  24109. return s
  24110. }
  24111. // Contains the parameters for DeleteFlowLogs.
  24112. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogsRequest
  24113. type DeleteFlowLogsInput struct {
  24114. _ struct{} `type:"structure"`
  24115. // One or more flow log IDs.
  24116. //
  24117. // FlowLogIds is a required field
  24118. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list" required:"true"`
  24119. }
  24120. // String returns the string representation
  24121. func (s DeleteFlowLogsInput) String() string {
  24122. return awsutil.Prettify(s)
  24123. }
  24124. // GoString returns the string representation
  24125. func (s DeleteFlowLogsInput) GoString() string {
  24126. return s.String()
  24127. }
  24128. // Validate inspects the fields of the type to determine if they are valid.
  24129. func (s *DeleteFlowLogsInput) Validate() error {
  24130. invalidParams := request.ErrInvalidParams{Context: "DeleteFlowLogsInput"}
  24131. if s.FlowLogIds == nil {
  24132. invalidParams.Add(request.NewErrParamRequired("FlowLogIds"))
  24133. }
  24134. if invalidParams.Len() > 0 {
  24135. return invalidParams
  24136. }
  24137. return nil
  24138. }
  24139. // SetFlowLogIds sets the FlowLogIds field's value.
  24140. func (s *DeleteFlowLogsInput) SetFlowLogIds(v []*string) *DeleteFlowLogsInput {
  24141. s.FlowLogIds = v
  24142. return s
  24143. }
  24144. // Contains the output of DeleteFlowLogs.
  24145. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogsResult
  24146. type DeleteFlowLogsOutput struct {
  24147. _ struct{} `type:"structure"`
  24148. // Information about the flow logs that could not be deleted successfully.
  24149. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  24150. }
  24151. // String returns the string representation
  24152. func (s DeleteFlowLogsOutput) String() string {
  24153. return awsutil.Prettify(s)
  24154. }
  24155. // GoString returns the string representation
  24156. func (s DeleteFlowLogsOutput) GoString() string {
  24157. return s.String()
  24158. }
  24159. // SetUnsuccessful sets the Unsuccessful field's value.
  24160. func (s *DeleteFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteFlowLogsOutput {
  24161. s.Unsuccessful = v
  24162. return s
  24163. }
  24164. // Contains the parameters for DeleteInternetGateway.
  24165. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGatewayRequest
  24166. type DeleteInternetGatewayInput struct {
  24167. _ struct{} `type:"structure"`
  24168. // Checks whether you have the required permissions for the action, without
  24169. // actually making the request, and provides an error response. If you have
  24170. // the required permissions, the error response is DryRunOperation. Otherwise,
  24171. // it is UnauthorizedOperation.
  24172. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24173. // The ID of the Internet gateway.
  24174. //
  24175. // InternetGatewayId is a required field
  24176. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  24177. }
  24178. // String returns the string representation
  24179. func (s DeleteInternetGatewayInput) String() string {
  24180. return awsutil.Prettify(s)
  24181. }
  24182. // GoString returns the string representation
  24183. func (s DeleteInternetGatewayInput) GoString() string {
  24184. return s.String()
  24185. }
  24186. // Validate inspects the fields of the type to determine if they are valid.
  24187. func (s *DeleteInternetGatewayInput) Validate() error {
  24188. invalidParams := request.ErrInvalidParams{Context: "DeleteInternetGatewayInput"}
  24189. if s.InternetGatewayId == nil {
  24190. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  24191. }
  24192. if invalidParams.Len() > 0 {
  24193. return invalidParams
  24194. }
  24195. return nil
  24196. }
  24197. // SetDryRun sets the DryRun field's value.
  24198. func (s *DeleteInternetGatewayInput) SetDryRun(v bool) *DeleteInternetGatewayInput {
  24199. s.DryRun = &v
  24200. return s
  24201. }
  24202. // SetInternetGatewayId sets the InternetGatewayId field's value.
  24203. func (s *DeleteInternetGatewayInput) SetInternetGatewayId(v string) *DeleteInternetGatewayInput {
  24204. s.InternetGatewayId = &v
  24205. return s
  24206. }
  24207. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGatewayOutput
  24208. type DeleteInternetGatewayOutput struct {
  24209. _ struct{} `type:"structure"`
  24210. }
  24211. // String returns the string representation
  24212. func (s DeleteInternetGatewayOutput) String() string {
  24213. return awsutil.Prettify(s)
  24214. }
  24215. // GoString returns the string representation
  24216. func (s DeleteInternetGatewayOutput) GoString() string {
  24217. return s.String()
  24218. }
  24219. // Contains the parameters for DeleteKeyPair.
  24220. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPairRequest
  24221. type DeleteKeyPairInput struct {
  24222. _ struct{} `type:"structure"`
  24223. // Checks whether you have the required permissions for the action, without
  24224. // actually making the request, and provides an error response. If you have
  24225. // the required permissions, the error response is DryRunOperation. Otherwise,
  24226. // it is UnauthorizedOperation.
  24227. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24228. // The name of the key pair.
  24229. //
  24230. // KeyName is a required field
  24231. KeyName *string `type:"string" required:"true"`
  24232. }
  24233. // String returns the string representation
  24234. func (s DeleteKeyPairInput) String() string {
  24235. return awsutil.Prettify(s)
  24236. }
  24237. // GoString returns the string representation
  24238. func (s DeleteKeyPairInput) GoString() string {
  24239. return s.String()
  24240. }
  24241. // Validate inspects the fields of the type to determine if they are valid.
  24242. func (s *DeleteKeyPairInput) Validate() error {
  24243. invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"}
  24244. if s.KeyName == nil {
  24245. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  24246. }
  24247. if invalidParams.Len() > 0 {
  24248. return invalidParams
  24249. }
  24250. return nil
  24251. }
  24252. // SetDryRun sets the DryRun field's value.
  24253. func (s *DeleteKeyPairInput) SetDryRun(v bool) *DeleteKeyPairInput {
  24254. s.DryRun = &v
  24255. return s
  24256. }
  24257. // SetKeyName sets the KeyName field's value.
  24258. func (s *DeleteKeyPairInput) SetKeyName(v string) *DeleteKeyPairInput {
  24259. s.KeyName = &v
  24260. return s
  24261. }
  24262. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPairOutput
  24263. type DeleteKeyPairOutput struct {
  24264. _ struct{} `type:"structure"`
  24265. }
  24266. // String returns the string representation
  24267. func (s DeleteKeyPairOutput) String() string {
  24268. return awsutil.Prettify(s)
  24269. }
  24270. // GoString returns the string representation
  24271. func (s DeleteKeyPairOutput) GoString() string {
  24272. return s.String()
  24273. }
  24274. // Contains the parameters for DeleteNatGateway.
  24275. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGatewayRequest
  24276. type DeleteNatGatewayInput struct {
  24277. _ struct{} `type:"structure"`
  24278. // The ID of the NAT gateway.
  24279. //
  24280. // NatGatewayId is a required field
  24281. NatGatewayId *string `type:"string" required:"true"`
  24282. }
  24283. // String returns the string representation
  24284. func (s DeleteNatGatewayInput) String() string {
  24285. return awsutil.Prettify(s)
  24286. }
  24287. // GoString returns the string representation
  24288. func (s DeleteNatGatewayInput) GoString() string {
  24289. return s.String()
  24290. }
  24291. // Validate inspects the fields of the type to determine if they are valid.
  24292. func (s *DeleteNatGatewayInput) Validate() error {
  24293. invalidParams := request.ErrInvalidParams{Context: "DeleteNatGatewayInput"}
  24294. if s.NatGatewayId == nil {
  24295. invalidParams.Add(request.NewErrParamRequired("NatGatewayId"))
  24296. }
  24297. if invalidParams.Len() > 0 {
  24298. return invalidParams
  24299. }
  24300. return nil
  24301. }
  24302. // SetNatGatewayId sets the NatGatewayId field's value.
  24303. func (s *DeleteNatGatewayInput) SetNatGatewayId(v string) *DeleteNatGatewayInput {
  24304. s.NatGatewayId = &v
  24305. return s
  24306. }
  24307. // Contains the output of DeleteNatGateway.
  24308. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGatewayResult
  24309. type DeleteNatGatewayOutput struct {
  24310. _ struct{} `type:"structure"`
  24311. // The ID of the NAT gateway.
  24312. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  24313. }
  24314. // String returns the string representation
  24315. func (s DeleteNatGatewayOutput) String() string {
  24316. return awsutil.Prettify(s)
  24317. }
  24318. // GoString returns the string representation
  24319. func (s DeleteNatGatewayOutput) GoString() string {
  24320. return s.String()
  24321. }
  24322. // SetNatGatewayId sets the NatGatewayId field's value.
  24323. func (s *DeleteNatGatewayOutput) SetNatGatewayId(v string) *DeleteNatGatewayOutput {
  24324. s.NatGatewayId = &v
  24325. return s
  24326. }
  24327. // Contains the parameters for DeleteNetworkAclEntry.
  24328. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntryRequest
  24329. type DeleteNetworkAclEntryInput struct {
  24330. _ struct{} `type:"structure"`
  24331. // Checks whether you have the required permissions for the action, without
  24332. // actually making the request, and provides an error response. If you have
  24333. // the required permissions, the error response is DryRunOperation. Otherwise,
  24334. // it is UnauthorizedOperation.
  24335. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24336. // Indicates whether the rule is an egress rule.
  24337. //
  24338. // Egress is a required field
  24339. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  24340. // The ID of the network ACL.
  24341. //
  24342. // NetworkAclId is a required field
  24343. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  24344. // The rule number of the entry to delete.
  24345. //
  24346. // RuleNumber is a required field
  24347. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  24348. }
  24349. // String returns the string representation
  24350. func (s DeleteNetworkAclEntryInput) String() string {
  24351. return awsutil.Prettify(s)
  24352. }
  24353. // GoString returns the string representation
  24354. func (s DeleteNetworkAclEntryInput) GoString() string {
  24355. return s.String()
  24356. }
  24357. // Validate inspects the fields of the type to determine if they are valid.
  24358. func (s *DeleteNetworkAclEntryInput) Validate() error {
  24359. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclEntryInput"}
  24360. if s.Egress == nil {
  24361. invalidParams.Add(request.NewErrParamRequired("Egress"))
  24362. }
  24363. if s.NetworkAclId == nil {
  24364. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  24365. }
  24366. if s.RuleNumber == nil {
  24367. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  24368. }
  24369. if invalidParams.Len() > 0 {
  24370. return invalidParams
  24371. }
  24372. return nil
  24373. }
  24374. // SetDryRun sets the DryRun field's value.
  24375. func (s *DeleteNetworkAclEntryInput) SetDryRun(v bool) *DeleteNetworkAclEntryInput {
  24376. s.DryRun = &v
  24377. return s
  24378. }
  24379. // SetEgress sets the Egress field's value.
  24380. func (s *DeleteNetworkAclEntryInput) SetEgress(v bool) *DeleteNetworkAclEntryInput {
  24381. s.Egress = &v
  24382. return s
  24383. }
  24384. // SetNetworkAclId sets the NetworkAclId field's value.
  24385. func (s *DeleteNetworkAclEntryInput) SetNetworkAclId(v string) *DeleteNetworkAclEntryInput {
  24386. s.NetworkAclId = &v
  24387. return s
  24388. }
  24389. // SetRuleNumber sets the RuleNumber field's value.
  24390. func (s *DeleteNetworkAclEntryInput) SetRuleNumber(v int64) *DeleteNetworkAclEntryInput {
  24391. s.RuleNumber = &v
  24392. return s
  24393. }
  24394. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntryOutput
  24395. type DeleteNetworkAclEntryOutput struct {
  24396. _ struct{} `type:"structure"`
  24397. }
  24398. // String returns the string representation
  24399. func (s DeleteNetworkAclEntryOutput) String() string {
  24400. return awsutil.Prettify(s)
  24401. }
  24402. // GoString returns the string representation
  24403. func (s DeleteNetworkAclEntryOutput) GoString() string {
  24404. return s.String()
  24405. }
  24406. // Contains the parameters for DeleteNetworkAcl.
  24407. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclRequest
  24408. type DeleteNetworkAclInput struct {
  24409. _ struct{} `type:"structure"`
  24410. // Checks whether you have the required permissions for the action, without
  24411. // actually making the request, and provides an error response. If you have
  24412. // the required permissions, the error response is DryRunOperation. Otherwise,
  24413. // it is UnauthorizedOperation.
  24414. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24415. // The ID of the network ACL.
  24416. //
  24417. // NetworkAclId is a required field
  24418. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  24419. }
  24420. // String returns the string representation
  24421. func (s DeleteNetworkAclInput) String() string {
  24422. return awsutil.Prettify(s)
  24423. }
  24424. // GoString returns the string representation
  24425. func (s DeleteNetworkAclInput) GoString() string {
  24426. return s.String()
  24427. }
  24428. // Validate inspects the fields of the type to determine if they are valid.
  24429. func (s *DeleteNetworkAclInput) Validate() error {
  24430. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclInput"}
  24431. if s.NetworkAclId == nil {
  24432. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  24433. }
  24434. if invalidParams.Len() > 0 {
  24435. return invalidParams
  24436. }
  24437. return nil
  24438. }
  24439. // SetDryRun sets the DryRun field's value.
  24440. func (s *DeleteNetworkAclInput) SetDryRun(v bool) *DeleteNetworkAclInput {
  24441. s.DryRun = &v
  24442. return s
  24443. }
  24444. // SetNetworkAclId sets the NetworkAclId field's value.
  24445. func (s *DeleteNetworkAclInput) SetNetworkAclId(v string) *DeleteNetworkAclInput {
  24446. s.NetworkAclId = &v
  24447. return s
  24448. }
  24449. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclOutput
  24450. type DeleteNetworkAclOutput struct {
  24451. _ struct{} `type:"structure"`
  24452. }
  24453. // String returns the string representation
  24454. func (s DeleteNetworkAclOutput) String() string {
  24455. return awsutil.Prettify(s)
  24456. }
  24457. // GoString returns the string representation
  24458. func (s DeleteNetworkAclOutput) GoString() string {
  24459. return s.String()
  24460. }
  24461. // Contains the parameters for DeleteNetworkInterface.
  24462. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfaceRequest
  24463. type DeleteNetworkInterfaceInput struct {
  24464. _ struct{} `type:"structure"`
  24465. // Checks whether you have the required permissions for the action, without
  24466. // actually making the request, and provides an error response. If you have
  24467. // the required permissions, the error response is DryRunOperation. Otherwise,
  24468. // it is UnauthorizedOperation.
  24469. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24470. // The ID of the network interface.
  24471. //
  24472. // NetworkInterfaceId is a required field
  24473. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  24474. }
  24475. // String returns the string representation
  24476. func (s DeleteNetworkInterfaceInput) String() string {
  24477. return awsutil.Prettify(s)
  24478. }
  24479. // GoString returns the string representation
  24480. func (s DeleteNetworkInterfaceInput) GoString() string {
  24481. return s.String()
  24482. }
  24483. // Validate inspects the fields of the type to determine if they are valid.
  24484. func (s *DeleteNetworkInterfaceInput) Validate() error {
  24485. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfaceInput"}
  24486. if s.NetworkInterfaceId == nil {
  24487. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  24488. }
  24489. if invalidParams.Len() > 0 {
  24490. return invalidParams
  24491. }
  24492. return nil
  24493. }
  24494. // SetDryRun sets the DryRun field's value.
  24495. func (s *DeleteNetworkInterfaceInput) SetDryRun(v bool) *DeleteNetworkInterfaceInput {
  24496. s.DryRun = &v
  24497. return s
  24498. }
  24499. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  24500. func (s *DeleteNetworkInterfaceInput) SetNetworkInterfaceId(v string) *DeleteNetworkInterfaceInput {
  24501. s.NetworkInterfaceId = &v
  24502. return s
  24503. }
  24504. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfaceOutput
  24505. type DeleteNetworkInterfaceOutput struct {
  24506. _ struct{} `type:"structure"`
  24507. }
  24508. // String returns the string representation
  24509. func (s DeleteNetworkInterfaceOutput) String() string {
  24510. return awsutil.Prettify(s)
  24511. }
  24512. // GoString returns the string representation
  24513. func (s DeleteNetworkInterfaceOutput) GoString() string {
  24514. return s.String()
  24515. }
  24516. // Contains the parameters for DeletePlacementGroup.
  24517. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroupRequest
  24518. type DeletePlacementGroupInput struct {
  24519. _ struct{} `type:"structure"`
  24520. // Checks whether you have the required permissions for the action, without
  24521. // actually making the request, and provides an error response. If you have
  24522. // the required permissions, the error response is DryRunOperation. Otherwise,
  24523. // it is UnauthorizedOperation.
  24524. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24525. // The name of the placement group.
  24526. //
  24527. // GroupName is a required field
  24528. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  24529. }
  24530. // String returns the string representation
  24531. func (s DeletePlacementGroupInput) String() string {
  24532. return awsutil.Prettify(s)
  24533. }
  24534. // GoString returns the string representation
  24535. func (s DeletePlacementGroupInput) GoString() string {
  24536. return s.String()
  24537. }
  24538. // Validate inspects the fields of the type to determine if they are valid.
  24539. func (s *DeletePlacementGroupInput) Validate() error {
  24540. invalidParams := request.ErrInvalidParams{Context: "DeletePlacementGroupInput"}
  24541. if s.GroupName == nil {
  24542. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  24543. }
  24544. if invalidParams.Len() > 0 {
  24545. return invalidParams
  24546. }
  24547. return nil
  24548. }
  24549. // SetDryRun sets the DryRun field's value.
  24550. func (s *DeletePlacementGroupInput) SetDryRun(v bool) *DeletePlacementGroupInput {
  24551. s.DryRun = &v
  24552. return s
  24553. }
  24554. // SetGroupName sets the GroupName field's value.
  24555. func (s *DeletePlacementGroupInput) SetGroupName(v string) *DeletePlacementGroupInput {
  24556. s.GroupName = &v
  24557. return s
  24558. }
  24559. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroupOutput
  24560. type DeletePlacementGroupOutput struct {
  24561. _ struct{} `type:"structure"`
  24562. }
  24563. // String returns the string representation
  24564. func (s DeletePlacementGroupOutput) String() string {
  24565. return awsutil.Prettify(s)
  24566. }
  24567. // GoString returns the string representation
  24568. func (s DeletePlacementGroupOutput) GoString() string {
  24569. return s.String()
  24570. }
  24571. // Contains the parameters for DeleteRoute.
  24572. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteRequest
  24573. type DeleteRouteInput struct {
  24574. _ struct{} `type:"structure"`
  24575. // The IPv4 CIDR range for the route. The value you specify must match the CIDR
  24576. // for the route exactly.
  24577. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  24578. // The IPv6 CIDR range for the route. The value you specify must match the CIDR
  24579. // for the route exactly.
  24580. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  24581. // Checks whether you have the required permissions for the action, without
  24582. // actually making the request, and provides an error response. If you have
  24583. // the required permissions, the error response is DryRunOperation. Otherwise,
  24584. // it is UnauthorizedOperation.
  24585. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24586. // The ID of the route table.
  24587. //
  24588. // RouteTableId is a required field
  24589. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  24590. }
  24591. // String returns the string representation
  24592. func (s DeleteRouteInput) String() string {
  24593. return awsutil.Prettify(s)
  24594. }
  24595. // GoString returns the string representation
  24596. func (s DeleteRouteInput) GoString() string {
  24597. return s.String()
  24598. }
  24599. // Validate inspects the fields of the type to determine if they are valid.
  24600. func (s *DeleteRouteInput) Validate() error {
  24601. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteInput"}
  24602. if s.RouteTableId == nil {
  24603. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  24604. }
  24605. if invalidParams.Len() > 0 {
  24606. return invalidParams
  24607. }
  24608. return nil
  24609. }
  24610. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  24611. func (s *DeleteRouteInput) SetDestinationCidrBlock(v string) *DeleteRouteInput {
  24612. s.DestinationCidrBlock = &v
  24613. return s
  24614. }
  24615. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  24616. func (s *DeleteRouteInput) SetDestinationIpv6CidrBlock(v string) *DeleteRouteInput {
  24617. s.DestinationIpv6CidrBlock = &v
  24618. return s
  24619. }
  24620. // SetDryRun sets the DryRun field's value.
  24621. func (s *DeleteRouteInput) SetDryRun(v bool) *DeleteRouteInput {
  24622. s.DryRun = &v
  24623. return s
  24624. }
  24625. // SetRouteTableId sets the RouteTableId field's value.
  24626. func (s *DeleteRouteInput) SetRouteTableId(v string) *DeleteRouteInput {
  24627. s.RouteTableId = &v
  24628. return s
  24629. }
  24630. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteOutput
  24631. type DeleteRouteOutput struct {
  24632. _ struct{} `type:"structure"`
  24633. }
  24634. // String returns the string representation
  24635. func (s DeleteRouteOutput) String() string {
  24636. return awsutil.Prettify(s)
  24637. }
  24638. // GoString returns the string representation
  24639. func (s DeleteRouteOutput) GoString() string {
  24640. return s.String()
  24641. }
  24642. // Contains the parameters for DeleteRouteTable.
  24643. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTableRequest
  24644. type DeleteRouteTableInput 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 ID of the route table.
  24652. //
  24653. // RouteTableId is a required field
  24654. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  24655. }
  24656. // String returns the string representation
  24657. func (s DeleteRouteTableInput) String() string {
  24658. return awsutil.Prettify(s)
  24659. }
  24660. // GoString returns the string representation
  24661. func (s DeleteRouteTableInput) GoString() string {
  24662. return s.String()
  24663. }
  24664. // Validate inspects the fields of the type to determine if they are valid.
  24665. func (s *DeleteRouteTableInput) Validate() error {
  24666. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteTableInput"}
  24667. if s.RouteTableId == nil {
  24668. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  24669. }
  24670. if invalidParams.Len() > 0 {
  24671. return invalidParams
  24672. }
  24673. return nil
  24674. }
  24675. // SetDryRun sets the DryRun field's value.
  24676. func (s *DeleteRouteTableInput) SetDryRun(v bool) *DeleteRouteTableInput {
  24677. s.DryRun = &v
  24678. return s
  24679. }
  24680. // SetRouteTableId sets the RouteTableId field's value.
  24681. func (s *DeleteRouteTableInput) SetRouteTableId(v string) *DeleteRouteTableInput {
  24682. s.RouteTableId = &v
  24683. return s
  24684. }
  24685. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTableOutput
  24686. type DeleteRouteTableOutput struct {
  24687. _ struct{} `type:"structure"`
  24688. }
  24689. // String returns the string representation
  24690. func (s DeleteRouteTableOutput) String() string {
  24691. return awsutil.Prettify(s)
  24692. }
  24693. // GoString returns the string representation
  24694. func (s DeleteRouteTableOutput) GoString() string {
  24695. return s.String()
  24696. }
  24697. // Contains the parameters for DeleteSecurityGroup.
  24698. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroupRequest
  24699. type DeleteSecurityGroupInput struct {
  24700. _ struct{} `type:"structure"`
  24701. // Checks whether you have the required permissions for the action, without
  24702. // actually making the request, and provides an error response. If you have
  24703. // the required permissions, the error response is DryRunOperation. Otherwise,
  24704. // it is UnauthorizedOperation.
  24705. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24706. // The ID of the security group. Required for a nondefault VPC.
  24707. GroupId *string `type:"string"`
  24708. // [EC2-Classic, default VPC] The name of the security group. You can specify
  24709. // either the security group name or the security group ID.
  24710. GroupName *string `type:"string"`
  24711. }
  24712. // String returns the string representation
  24713. func (s DeleteSecurityGroupInput) String() string {
  24714. return awsutil.Prettify(s)
  24715. }
  24716. // GoString returns the string representation
  24717. func (s DeleteSecurityGroupInput) GoString() string {
  24718. return s.String()
  24719. }
  24720. // SetDryRun sets the DryRun field's value.
  24721. func (s *DeleteSecurityGroupInput) SetDryRun(v bool) *DeleteSecurityGroupInput {
  24722. s.DryRun = &v
  24723. return s
  24724. }
  24725. // SetGroupId sets the GroupId field's value.
  24726. func (s *DeleteSecurityGroupInput) SetGroupId(v string) *DeleteSecurityGroupInput {
  24727. s.GroupId = &v
  24728. return s
  24729. }
  24730. // SetGroupName sets the GroupName field's value.
  24731. func (s *DeleteSecurityGroupInput) SetGroupName(v string) *DeleteSecurityGroupInput {
  24732. s.GroupName = &v
  24733. return s
  24734. }
  24735. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroupOutput
  24736. type DeleteSecurityGroupOutput struct {
  24737. _ struct{} `type:"structure"`
  24738. }
  24739. // String returns the string representation
  24740. func (s DeleteSecurityGroupOutput) String() string {
  24741. return awsutil.Prettify(s)
  24742. }
  24743. // GoString returns the string representation
  24744. func (s DeleteSecurityGroupOutput) GoString() string {
  24745. return s.String()
  24746. }
  24747. // Contains the parameters for DeleteSnapshot.
  24748. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshotRequest
  24749. type DeleteSnapshotInput struct {
  24750. _ struct{} `type:"structure"`
  24751. // Checks whether you have the required permissions for the action, without
  24752. // actually making the request, and provides an error response. If you have
  24753. // the required permissions, the error response is DryRunOperation. Otherwise,
  24754. // it is UnauthorizedOperation.
  24755. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24756. // The ID of the EBS snapshot.
  24757. //
  24758. // SnapshotId is a required field
  24759. SnapshotId *string `type:"string" required:"true"`
  24760. }
  24761. // String returns the string representation
  24762. func (s DeleteSnapshotInput) String() string {
  24763. return awsutil.Prettify(s)
  24764. }
  24765. // GoString returns the string representation
  24766. func (s DeleteSnapshotInput) GoString() string {
  24767. return s.String()
  24768. }
  24769. // Validate inspects the fields of the type to determine if they are valid.
  24770. func (s *DeleteSnapshotInput) Validate() error {
  24771. invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"}
  24772. if s.SnapshotId == nil {
  24773. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  24774. }
  24775. if invalidParams.Len() > 0 {
  24776. return invalidParams
  24777. }
  24778. return nil
  24779. }
  24780. // SetDryRun sets the DryRun field's value.
  24781. func (s *DeleteSnapshotInput) SetDryRun(v bool) *DeleteSnapshotInput {
  24782. s.DryRun = &v
  24783. return s
  24784. }
  24785. // SetSnapshotId sets the SnapshotId field's value.
  24786. func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput {
  24787. s.SnapshotId = &v
  24788. return s
  24789. }
  24790. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshotOutput
  24791. type DeleteSnapshotOutput struct {
  24792. _ struct{} `type:"structure"`
  24793. }
  24794. // String returns the string representation
  24795. func (s DeleteSnapshotOutput) String() string {
  24796. return awsutil.Prettify(s)
  24797. }
  24798. // GoString returns the string representation
  24799. func (s DeleteSnapshotOutput) GoString() string {
  24800. return s.String()
  24801. }
  24802. // Contains the parameters for DeleteSpotDatafeedSubscription.
  24803. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscriptionRequest
  24804. type DeleteSpotDatafeedSubscriptionInput struct {
  24805. _ struct{} `type:"structure"`
  24806. // Checks whether you have the required permissions for the action, without
  24807. // actually making the request, and provides an error response. If you have
  24808. // the required permissions, the error response is DryRunOperation. Otherwise,
  24809. // it is UnauthorizedOperation.
  24810. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24811. }
  24812. // String returns the string representation
  24813. func (s DeleteSpotDatafeedSubscriptionInput) String() string {
  24814. return awsutil.Prettify(s)
  24815. }
  24816. // GoString returns the string representation
  24817. func (s DeleteSpotDatafeedSubscriptionInput) GoString() string {
  24818. return s.String()
  24819. }
  24820. // SetDryRun sets the DryRun field's value.
  24821. func (s *DeleteSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DeleteSpotDatafeedSubscriptionInput {
  24822. s.DryRun = &v
  24823. return s
  24824. }
  24825. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscriptionOutput
  24826. type DeleteSpotDatafeedSubscriptionOutput struct {
  24827. _ struct{} `type:"structure"`
  24828. }
  24829. // String returns the string representation
  24830. func (s DeleteSpotDatafeedSubscriptionOutput) String() string {
  24831. return awsutil.Prettify(s)
  24832. }
  24833. // GoString returns the string representation
  24834. func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string {
  24835. return s.String()
  24836. }
  24837. // Contains the parameters for DeleteSubnet.
  24838. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnetRequest
  24839. type DeleteSubnetInput struct {
  24840. _ struct{} `type:"structure"`
  24841. // Checks whether you have the required permissions for the action, without
  24842. // actually making the request, and provides an error response. If you have
  24843. // the required permissions, the error response is DryRunOperation. Otherwise,
  24844. // it is UnauthorizedOperation.
  24845. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24846. // The ID of the subnet.
  24847. //
  24848. // SubnetId is a required field
  24849. SubnetId *string `type:"string" required:"true"`
  24850. }
  24851. // String returns the string representation
  24852. func (s DeleteSubnetInput) String() string {
  24853. return awsutil.Prettify(s)
  24854. }
  24855. // GoString returns the string representation
  24856. func (s DeleteSubnetInput) GoString() string {
  24857. return s.String()
  24858. }
  24859. // Validate inspects the fields of the type to determine if they are valid.
  24860. func (s *DeleteSubnetInput) Validate() error {
  24861. invalidParams := request.ErrInvalidParams{Context: "DeleteSubnetInput"}
  24862. if s.SubnetId == nil {
  24863. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  24864. }
  24865. if invalidParams.Len() > 0 {
  24866. return invalidParams
  24867. }
  24868. return nil
  24869. }
  24870. // SetDryRun sets the DryRun field's value.
  24871. func (s *DeleteSubnetInput) SetDryRun(v bool) *DeleteSubnetInput {
  24872. s.DryRun = &v
  24873. return s
  24874. }
  24875. // SetSubnetId sets the SubnetId field's value.
  24876. func (s *DeleteSubnetInput) SetSubnetId(v string) *DeleteSubnetInput {
  24877. s.SubnetId = &v
  24878. return s
  24879. }
  24880. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnetOutput
  24881. type DeleteSubnetOutput struct {
  24882. _ struct{} `type:"structure"`
  24883. }
  24884. // String returns the string representation
  24885. func (s DeleteSubnetOutput) String() string {
  24886. return awsutil.Prettify(s)
  24887. }
  24888. // GoString returns the string representation
  24889. func (s DeleteSubnetOutput) GoString() string {
  24890. return s.String()
  24891. }
  24892. // Contains the parameters for DeleteTags.
  24893. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTagsRequest
  24894. type DeleteTagsInput struct {
  24895. _ struct{} `type:"structure"`
  24896. // Checks whether you have the required permissions for the action, without
  24897. // actually making the request, and provides an error response. If you have
  24898. // the required permissions, the error response is DryRunOperation. Otherwise,
  24899. // it is UnauthorizedOperation.
  24900. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24901. // The ID of the resource. For example, ami-1a2b3c4d. You can specify more than
  24902. // one resource ID.
  24903. //
  24904. // Resources is a required field
  24905. Resources []*string `locationName:"resourceId" type:"list" required:"true"`
  24906. // One or more tags to delete. If you omit the value parameter, we delete the
  24907. // tag regardless of its value. If you specify this parameter with an empty
  24908. // string as the value, we delete the key only if its value is an empty string.
  24909. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  24910. }
  24911. // String returns the string representation
  24912. func (s DeleteTagsInput) String() string {
  24913. return awsutil.Prettify(s)
  24914. }
  24915. // GoString returns the string representation
  24916. func (s DeleteTagsInput) GoString() string {
  24917. return s.String()
  24918. }
  24919. // Validate inspects the fields of the type to determine if they are valid.
  24920. func (s *DeleteTagsInput) Validate() error {
  24921. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  24922. if s.Resources == nil {
  24923. invalidParams.Add(request.NewErrParamRequired("Resources"))
  24924. }
  24925. if invalidParams.Len() > 0 {
  24926. return invalidParams
  24927. }
  24928. return nil
  24929. }
  24930. // SetDryRun sets the DryRun field's value.
  24931. func (s *DeleteTagsInput) SetDryRun(v bool) *DeleteTagsInput {
  24932. s.DryRun = &v
  24933. return s
  24934. }
  24935. // SetResources sets the Resources field's value.
  24936. func (s *DeleteTagsInput) SetResources(v []*string) *DeleteTagsInput {
  24937. s.Resources = v
  24938. return s
  24939. }
  24940. // SetTags sets the Tags field's value.
  24941. func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput {
  24942. s.Tags = v
  24943. return s
  24944. }
  24945. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTagsOutput
  24946. type DeleteTagsOutput struct {
  24947. _ struct{} `type:"structure"`
  24948. }
  24949. // String returns the string representation
  24950. func (s DeleteTagsOutput) String() string {
  24951. return awsutil.Prettify(s)
  24952. }
  24953. // GoString returns the string representation
  24954. func (s DeleteTagsOutput) GoString() string {
  24955. return s.String()
  24956. }
  24957. // Contains the parameters for DeleteVolume.
  24958. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolumeRequest
  24959. type DeleteVolumeInput struct {
  24960. _ struct{} `type:"structure"`
  24961. // Checks whether you have the required permissions for the action, without
  24962. // actually making the request, and provides an error response. If you have
  24963. // the required permissions, the error response is DryRunOperation. Otherwise,
  24964. // it is UnauthorizedOperation.
  24965. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24966. // The ID of the volume.
  24967. //
  24968. // VolumeId is a required field
  24969. VolumeId *string `type:"string" required:"true"`
  24970. }
  24971. // String returns the string representation
  24972. func (s DeleteVolumeInput) String() string {
  24973. return awsutil.Prettify(s)
  24974. }
  24975. // GoString returns the string representation
  24976. func (s DeleteVolumeInput) GoString() string {
  24977. return s.String()
  24978. }
  24979. // Validate inspects the fields of the type to determine if they are valid.
  24980. func (s *DeleteVolumeInput) Validate() error {
  24981. invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"}
  24982. if s.VolumeId == nil {
  24983. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  24984. }
  24985. if invalidParams.Len() > 0 {
  24986. return invalidParams
  24987. }
  24988. return nil
  24989. }
  24990. // SetDryRun sets the DryRun field's value.
  24991. func (s *DeleteVolumeInput) SetDryRun(v bool) *DeleteVolumeInput {
  24992. s.DryRun = &v
  24993. return s
  24994. }
  24995. // SetVolumeId sets the VolumeId field's value.
  24996. func (s *DeleteVolumeInput) SetVolumeId(v string) *DeleteVolumeInput {
  24997. s.VolumeId = &v
  24998. return s
  24999. }
  25000. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolumeOutput
  25001. type DeleteVolumeOutput struct {
  25002. _ struct{} `type:"structure"`
  25003. }
  25004. // String returns the string representation
  25005. func (s DeleteVolumeOutput) String() string {
  25006. return awsutil.Prettify(s)
  25007. }
  25008. // GoString returns the string representation
  25009. func (s DeleteVolumeOutput) GoString() string {
  25010. return s.String()
  25011. }
  25012. // Contains the parameters for DeleteVpcEndpoints.
  25013. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointsRequest
  25014. type DeleteVpcEndpointsInput struct {
  25015. _ struct{} `type:"structure"`
  25016. // Checks whether you have the required permissions for the action, without
  25017. // actually making the request, and provides an error response. If you have
  25018. // the required permissions, the error response is DryRunOperation. Otherwise,
  25019. // it is UnauthorizedOperation.
  25020. DryRun *bool `type:"boolean"`
  25021. // One or more endpoint IDs.
  25022. //
  25023. // VpcEndpointIds is a required field
  25024. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  25025. }
  25026. // String returns the string representation
  25027. func (s DeleteVpcEndpointsInput) String() string {
  25028. return awsutil.Prettify(s)
  25029. }
  25030. // GoString returns the string representation
  25031. func (s DeleteVpcEndpointsInput) GoString() string {
  25032. return s.String()
  25033. }
  25034. // Validate inspects the fields of the type to determine if they are valid.
  25035. func (s *DeleteVpcEndpointsInput) Validate() error {
  25036. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointsInput"}
  25037. if s.VpcEndpointIds == nil {
  25038. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  25039. }
  25040. if invalidParams.Len() > 0 {
  25041. return invalidParams
  25042. }
  25043. return nil
  25044. }
  25045. // SetDryRun sets the DryRun field's value.
  25046. func (s *DeleteVpcEndpointsInput) SetDryRun(v bool) *DeleteVpcEndpointsInput {
  25047. s.DryRun = &v
  25048. return s
  25049. }
  25050. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  25051. func (s *DeleteVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DeleteVpcEndpointsInput {
  25052. s.VpcEndpointIds = v
  25053. return s
  25054. }
  25055. // Contains the output of DeleteVpcEndpoints.
  25056. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointsResult
  25057. type DeleteVpcEndpointsOutput struct {
  25058. _ struct{} `type:"structure"`
  25059. // Information about the endpoints that were not successfully deleted.
  25060. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  25061. }
  25062. // String returns the string representation
  25063. func (s DeleteVpcEndpointsOutput) String() string {
  25064. return awsutil.Prettify(s)
  25065. }
  25066. // GoString returns the string representation
  25067. func (s DeleteVpcEndpointsOutput) GoString() string {
  25068. return s.String()
  25069. }
  25070. // SetUnsuccessful sets the Unsuccessful field's value.
  25071. func (s *DeleteVpcEndpointsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointsOutput {
  25072. s.Unsuccessful = v
  25073. return s
  25074. }
  25075. // Contains the parameters for DeleteVpc.
  25076. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcRequest
  25077. type DeleteVpcInput struct {
  25078. _ struct{} `type:"structure"`
  25079. // Checks whether you have the required permissions for the action, without
  25080. // actually making the request, and provides an error response. If you have
  25081. // the required permissions, the error response is DryRunOperation. Otherwise,
  25082. // it is UnauthorizedOperation.
  25083. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25084. // The ID of the VPC.
  25085. //
  25086. // VpcId is a required field
  25087. VpcId *string `type:"string" required:"true"`
  25088. }
  25089. // String returns the string representation
  25090. func (s DeleteVpcInput) String() string {
  25091. return awsutil.Prettify(s)
  25092. }
  25093. // GoString returns the string representation
  25094. func (s DeleteVpcInput) GoString() string {
  25095. return s.String()
  25096. }
  25097. // Validate inspects the fields of the type to determine if they are valid.
  25098. func (s *DeleteVpcInput) Validate() error {
  25099. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcInput"}
  25100. if s.VpcId == nil {
  25101. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  25102. }
  25103. if invalidParams.Len() > 0 {
  25104. return invalidParams
  25105. }
  25106. return nil
  25107. }
  25108. // SetDryRun sets the DryRun field's value.
  25109. func (s *DeleteVpcInput) SetDryRun(v bool) *DeleteVpcInput {
  25110. s.DryRun = &v
  25111. return s
  25112. }
  25113. // SetVpcId sets the VpcId field's value.
  25114. func (s *DeleteVpcInput) SetVpcId(v string) *DeleteVpcInput {
  25115. s.VpcId = &v
  25116. return s
  25117. }
  25118. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcOutput
  25119. type DeleteVpcOutput struct {
  25120. _ struct{} `type:"structure"`
  25121. }
  25122. // String returns the string representation
  25123. func (s DeleteVpcOutput) String() string {
  25124. return awsutil.Prettify(s)
  25125. }
  25126. // GoString returns the string representation
  25127. func (s DeleteVpcOutput) GoString() string {
  25128. return s.String()
  25129. }
  25130. // Contains the parameters for DeleteVpcPeeringConnection.
  25131. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnectionRequest
  25132. type DeleteVpcPeeringConnectionInput struct {
  25133. _ struct{} `type:"structure"`
  25134. // Checks whether you have the required permissions for the action, without
  25135. // actually making the request, and provides an error response. If you have
  25136. // the required permissions, the error response is DryRunOperation. Otherwise,
  25137. // it is UnauthorizedOperation.
  25138. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25139. // The ID of the VPC peering connection.
  25140. //
  25141. // VpcPeeringConnectionId is a required field
  25142. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  25143. }
  25144. // String returns the string representation
  25145. func (s DeleteVpcPeeringConnectionInput) String() string {
  25146. return awsutil.Prettify(s)
  25147. }
  25148. // GoString returns the string representation
  25149. func (s DeleteVpcPeeringConnectionInput) GoString() string {
  25150. return s.String()
  25151. }
  25152. // Validate inspects the fields of the type to determine if they are valid.
  25153. func (s *DeleteVpcPeeringConnectionInput) Validate() error {
  25154. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcPeeringConnectionInput"}
  25155. if s.VpcPeeringConnectionId == nil {
  25156. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  25157. }
  25158. if invalidParams.Len() > 0 {
  25159. return invalidParams
  25160. }
  25161. return nil
  25162. }
  25163. // SetDryRun sets the DryRun field's value.
  25164. func (s *DeleteVpcPeeringConnectionInput) SetDryRun(v bool) *DeleteVpcPeeringConnectionInput {
  25165. s.DryRun = &v
  25166. return s
  25167. }
  25168. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  25169. func (s *DeleteVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *DeleteVpcPeeringConnectionInput {
  25170. s.VpcPeeringConnectionId = &v
  25171. return s
  25172. }
  25173. // Contains the output of DeleteVpcPeeringConnection.
  25174. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnectionResult
  25175. type DeleteVpcPeeringConnectionOutput struct {
  25176. _ struct{} `type:"structure"`
  25177. // Returns true if the request succeeds; otherwise, it returns an error.
  25178. Return *bool `locationName:"return" type:"boolean"`
  25179. }
  25180. // String returns the string representation
  25181. func (s DeleteVpcPeeringConnectionOutput) String() string {
  25182. return awsutil.Prettify(s)
  25183. }
  25184. // GoString returns the string representation
  25185. func (s DeleteVpcPeeringConnectionOutput) GoString() string {
  25186. return s.String()
  25187. }
  25188. // SetReturn sets the Return field's value.
  25189. func (s *DeleteVpcPeeringConnectionOutput) SetReturn(v bool) *DeleteVpcPeeringConnectionOutput {
  25190. s.Return = &v
  25191. return s
  25192. }
  25193. // Contains the parameters for DeleteVpnConnection.
  25194. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRequest
  25195. type DeleteVpnConnectionInput struct {
  25196. _ struct{} `type:"structure"`
  25197. // Checks whether you have the required permissions for the action, without
  25198. // actually making the request, and provides an error response. If you have
  25199. // the required permissions, the error response is DryRunOperation. Otherwise,
  25200. // it is UnauthorizedOperation.
  25201. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25202. // The ID of the VPN connection.
  25203. //
  25204. // VpnConnectionId is a required field
  25205. VpnConnectionId *string `type:"string" required:"true"`
  25206. }
  25207. // String returns the string representation
  25208. func (s DeleteVpnConnectionInput) String() string {
  25209. return awsutil.Prettify(s)
  25210. }
  25211. // GoString returns the string representation
  25212. func (s DeleteVpnConnectionInput) GoString() string {
  25213. return s.String()
  25214. }
  25215. // Validate inspects the fields of the type to determine if they are valid.
  25216. func (s *DeleteVpnConnectionInput) Validate() error {
  25217. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionInput"}
  25218. if s.VpnConnectionId == nil {
  25219. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  25220. }
  25221. if invalidParams.Len() > 0 {
  25222. return invalidParams
  25223. }
  25224. return nil
  25225. }
  25226. // SetDryRun sets the DryRun field's value.
  25227. func (s *DeleteVpnConnectionInput) SetDryRun(v bool) *DeleteVpnConnectionInput {
  25228. s.DryRun = &v
  25229. return s
  25230. }
  25231. // SetVpnConnectionId sets the VpnConnectionId field's value.
  25232. func (s *DeleteVpnConnectionInput) SetVpnConnectionId(v string) *DeleteVpnConnectionInput {
  25233. s.VpnConnectionId = &v
  25234. return s
  25235. }
  25236. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionOutput
  25237. type DeleteVpnConnectionOutput struct {
  25238. _ struct{} `type:"structure"`
  25239. }
  25240. // String returns the string representation
  25241. func (s DeleteVpnConnectionOutput) String() string {
  25242. return awsutil.Prettify(s)
  25243. }
  25244. // GoString returns the string representation
  25245. func (s DeleteVpnConnectionOutput) GoString() string {
  25246. return s.String()
  25247. }
  25248. // Contains the parameters for DeleteVpnConnectionRoute.
  25249. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRouteRequest
  25250. type DeleteVpnConnectionRouteInput struct {
  25251. _ struct{} `type:"structure"`
  25252. // The CIDR block associated with the local subnet of the customer network.
  25253. //
  25254. // DestinationCidrBlock is a required field
  25255. DestinationCidrBlock *string `type:"string" required:"true"`
  25256. // The ID of the VPN connection.
  25257. //
  25258. // VpnConnectionId is a required field
  25259. VpnConnectionId *string `type:"string" required:"true"`
  25260. }
  25261. // String returns the string representation
  25262. func (s DeleteVpnConnectionRouteInput) String() string {
  25263. return awsutil.Prettify(s)
  25264. }
  25265. // GoString returns the string representation
  25266. func (s DeleteVpnConnectionRouteInput) GoString() string {
  25267. return s.String()
  25268. }
  25269. // Validate inspects the fields of the type to determine if they are valid.
  25270. func (s *DeleteVpnConnectionRouteInput) Validate() error {
  25271. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionRouteInput"}
  25272. if s.DestinationCidrBlock == nil {
  25273. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  25274. }
  25275. if s.VpnConnectionId == nil {
  25276. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  25277. }
  25278. if invalidParams.Len() > 0 {
  25279. return invalidParams
  25280. }
  25281. return nil
  25282. }
  25283. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  25284. func (s *DeleteVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *DeleteVpnConnectionRouteInput {
  25285. s.DestinationCidrBlock = &v
  25286. return s
  25287. }
  25288. // SetVpnConnectionId sets the VpnConnectionId field's value.
  25289. func (s *DeleteVpnConnectionRouteInput) SetVpnConnectionId(v string) *DeleteVpnConnectionRouteInput {
  25290. s.VpnConnectionId = &v
  25291. return s
  25292. }
  25293. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRouteOutput
  25294. type DeleteVpnConnectionRouteOutput struct {
  25295. _ struct{} `type:"structure"`
  25296. }
  25297. // String returns the string representation
  25298. func (s DeleteVpnConnectionRouteOutput) String() string {
  25299. return awsutil.Prettify(s)
  25300. }
  25301. // GoString returns the string representation
  25302. func (s DeleteVpnConnectionRouteOutput) GoString() string {
  25303. return s.String()
  25304. }
  25305. // Contains the parameters for DeleteVpnGateway.
  25306. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGatewayRequest
  25307. type DeleteVpnGatewayInput struct {
  25308. _ struct{} `type:"structure"`
  25309. // Checks whether you have the required permissions for the action, without
  25310. // actually making the request, and provides an error response. If you have
  25311. // the required permissions, the error response is DryRunOperation. Otherwise,
  25312. // it is UnauthorizedOperation.
  25313. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25314. // The ID of the virtual private gateway.
  25315. //
  25316. // VpnGatewayId is a required field
  25317. VpnGatewayId *string `type:"string" required:"true"`
  25318. }
  25319. // String returns the string representation
  25320. func (s DeleteVpnGatewayInput) String() string {
  25321. return awsutil.Prettify(s)
  25322. }
  25323. // GoString returns the string representation
  25324. func (s DeleteVpnGatewayInput) GoString() string {
  25325. return s.String()
  25326. }
  25327. // Validate inspects the fields of the type to determine if they are valid.
  25328. func (s *DeleteVpnGatewayInput) Validate() error {
  25329. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnGatewayInput"}
  25330. if s.VpnGatewayId == nil {
  25331. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  25332. }
  25333. if invalidParams.Len() > 0 {
  25334. return invalidParams
  25335. }
  25336. return nil
  25337. }
  25338. // SetDryRun sets the DryRun field's value.
  25339. func (s *DeleteVpnGatewayInput) SetDryRun(v bool) *DeleteVpnGatewayInput {
  25340. s.DryRun = &v
  25341. return s
  25342. }
  25343. // SetVpnGatewayId sets the VpnGatewayId field's value.
  25344. func (s *DeleteVpnGatewayInput) SetVpnGatewayId(v string) *DeleteVpnGatewayInput {
  25345. s.VpnGatewayId = &v
  25346. return s
  25347. }
  25348. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGatewayOutput
  25349. type DeleteVpnGatewayOutput struct {
  25350. _ struct{} `type:"structure"`
  25351. }
  25352. // String returns the string representation
  25353. func (s DeleteVpnGatewayOutput) String() string {
  25354. return awsutil.Prettify(s)
  25355. }
  25356. // GoString returns the string representation
  25357. func (s DeleteVpnGatewayOutput) GoString() string {
  25358. return s.String()
  25359. }
  25360. // Contains the parameters for DeregisterImage.
  25361. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImageRequest
  25362. type DeregisterImageInput struct {
  25363. _ struct{} `type:"structure"`
  25364. // Checks whether you have the required permissions for the action, without
  25365. // actually making the request, and provides an error response. If you have
  25366. // the required permissions, the error response is DryRunOperation. Otherwise,
  25367. // it is UnauthorizedOperation.
  25368. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25369. // The ID of the AMI.
  25370. //
  25371. // ImageId is a required field
  25372. ImageId *string `type:"string" required:"true"`
  25373. }
  25374. // String returns the string representation
  25375. func (s DeregisterImageInput) String() string {
  25376. return awsutil.Prettify(s)
  25377. }
  25378. // GoString returns the string representation
  25379. func (s DeregisterImageInput) GoString() string {
  25380. return s.String()
  25381. }
  25382. // Validate inspects the fields of the type to determine if they are valid.
  25383. func (s *DeregisterImageInput) Validate() error {
  25384. invalidParams := request.ErrInvalidParams{Context: "DeregisterImageInput"}
  25385. if s.ImageId == nil {
  25386. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  25387. }
  25388. if invalidParams.Len() > 0 {
  25389. return invalidParams
  25390. }
  25391. return nil
  25392. }
  25393. // SetDryRun sets the DryRun field's value.
  25394. func (s *DeregisterImageInput) SetDryRun(v bool) *DeregisterImageInput {
  25395. s.DryRun = &v
  25396. return s
  25397. }
  25398. // SetImageId sets the ImageId field's value.
  25399. func (s *DeregisterImageInput) SetImageId(v string) *DeregisterImageInput {
  25400. s.ImageId = &v
  25401. return s
  25402. }
  25403. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImageOutput
  25404. type DeregisterImageOutput struct {
  25405. _ struct{} `type:"structure"`
  25406. }
  25407. // String returns the string representation
  25408. func (s DeregisterImageOutput) String() string {
  25409. return awsutil.Prettify(s)
  25410. }
  25411. // GoString returns the string representation
  25412. func (s DeregisterImageOutput) GoString() string {
  25413. return s.String()
  25414. }
  25415. // Contains the parameters for DescribeAccountAttributes.
  25416. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributesRequest
  25417. type DescribeAccountAttributesInput struct {
  25418. _ struct{} `type:"structure"`
  25419. // One or more account attribute names.
  25420. AttributeNames []*string `locationName:"attributeName" locationNameList:"attributeName" type:"list"`
  25421. // Checks whether you have the required permissions for the action, without
  25422. // actually making the request, and provides an error response. If you have
  25423. // the required permissions, the error response is DryRunOperation. Otherwise,
  25424. // it is UnauthorizedOperation.
  25425. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25426. }
  25427. // String returns the string representation
  25428. func (s DescribeAccountAttributesInput) String() string {
  25429. return awsutil.Prettify(s)
  25430. }
  25431. // GoString returns the string representation
  25432. func (s DescribeAccountAttributesInput) GoString() string {
  25433. return s.String()
  25434. }
  25435. // SetAttributeNames sets the AttributeNames field's value.
  25436. func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput {
  25437. s.AttributeNames = v
  25438. return s
  25439. }
  25440. // SetDryRun sets the DryRun field's value.
  25441. func (s *DescribeAccountAttributesInput) SetDryRun(v bool) *DescribeAccountAttributesInput {
  25442. s.DryRun = &v
  25443. return s
  25444. }
  25445. // Contains the output of DescribeAccountAttributes.
  25446. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributesResult
  25447. type DescribeAccountAttributesOutput struct {
  25448. _ struct{} `type:"structure"`
  25449. // Information about one or more account attributes.
  25450. AccountAttributes []*AccountAttribute `locationName:"accountAttributeSet" locationNameList:"item" type:"list"`
  25451. }
  25452. // String returns the string representation
  25453. func (s DescribeAccountAttributesOutput) String() string {
  25454. return awsutil.Prettify(s)
  25455. }
  25456. // GoString returns the string representation
  25457. func (s DescribeAccountAttributesOutput) GoString() string {
  25458. return s.String()
  25459. }
  25460. // SetAccountAttributes sets the AccountAttributes field's value.
  25461. func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput {
  25462. s.AccountAttributes = v
  25463. return s
  25464. }
  25465. // Contains the parameters for DescribeAddresses.
  25466. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddressesRequest
  25467. type DescribeAddressesInput struct {
  25468. _ struct{} `type:"structure"`
  25469. // [EC2-VPC] One or more allocation IDs.
  25470. //
  25471. // Default: Describes all your Elastic IP addresses.
  25472. AllocationIds []*string `locationName:"AllocationId" locationNameList:"AllocationId" type:"list"`
  25473. // Checks whether you have the required permissions for the action, without
  25474. // actually making the request, and provides an error response. If you have
  25475. // the required permissions, the error response is DryRunOperation. Otherwise,
  25476. // it is UnauthorizedOperation.
  25477. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25478. // One or more filters. Filter names and values are case-sensitive.
  25479. //
  25480. // * allocation-id - [EC2-VPC] The allocation ID for the address.
  25481. //
  25482. // * association-id - [EC2-VPC] The association ID for the address.
  25483. //
  25484. // * domain - Indicates whether the address is for use in EC2-Classic (standard)
  25485. // or in a VPC (vpc).
  25486. //
  25487. // * instance-id - The ID of the instance the address is associated with,
  25488. // if any.
  25489. //
  25490. // * network-interface-id - [EC2-VPC] The ID of the network interface that
  25491. // the address is associated with, if any.
  25492. //
  25493. // * network-interface-owner-id - The AWS account ID of the owner.
  25494. //
  25495. // * private-ip-address - [EC2-VPC] The private IP address associated with
  25496. // the Elastic IP address.
  25497. //
  25498. // * public-ip - The Elastic IP address.
  25499. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  25500. // [EC2-Classic] One or more Elastic IP addresses.
  25501. //
  25502. // Default: Describes all your Elastic IP addresses.
  25503. PublicIps []*string `locationName:"PublicIp" locationNameList:"PublicIp" type:"list"`
  25504. }
  25505. // String returns the string representation
  25506. func (s DescribeAddressesInput) String() string {
  25507. return awsutil.Prettify(s)
  25508. }
  25509. // GoString returns the string representation
  25510. func (s DescribeAddressesInput) GoString() string {
  25511. return s.String()
  25512. }
  25513. // SetAllocationIds sets the AllocationIds field's value.
  25514. func (s *DescribeAddressesInput) SetAllocationIds(v []*string) *DescribeAddressesInput {
  25515. s.AllocationIds = v
  25516. return s
  25517. }
  25518. // SetDryRun sets the DryRun field's value.
  25519. func (s *DescribeAddressesInput) SetDryRun(v bool) *DescribeAddressesInput {
  25520. s.DryRun = &v
  25521. return s
  25522. }
  25523. // SetFilters sets the Filters field's value.
  25524. func (s *DescribeAddressesInput) SetFilters(v []*Filter) *DescribeAddressesInput {
  25525. s.Filters = v
  25526. return s
  25527. }
  25528. // SetPublicIps sets the PublicIps field's value.
  25529. func (s *DescribeAddressesInput) SetPublicIps(v []*string) *DescribeAddressesInput {
  25530. s.PublicIps = v
  25531. return s
  25532. }
  25533. // Contains the output of DescribeAddresses.
  25534. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddressesResult
  25535. type DescribeAddressesOutput struct {
  25536. _ struct{} `type:"structure"`
  25537. // Information about one or more Elastic IP addresses.
  25538. Addresses []*Address `locationName:"addressesSet" locationNameList:"item" type:"list"`
  25539. }
  25540. // String returns the string representation
  25541. func (s DescribeAddressesOutput) String() string {
  25542. return awsutil.Prettify(s)
  25543. }
  25544. // GoString returns the string representation
  25545. func (s DescribeAddressesOutput) GoString() string {
  25546. return s.String()
  25547. }
  25548. // SetAddresses sets the Addresses field's value.
  25549. func (s *DescribeAddressesOutput) SetAddresses(v []*Address) *DescribeAddressesOutput {
  25550. s.Addresses = v
  25551. return s
  25552. }
  25553. // Contains the parameters for DescribeAvailabilityZones.
  25554. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZonesRequest
  25555. type DescribeAvailabilityZonesInput struct {
  25556. _ struct{} `type:"structure"`
  25557. // Checks whether you have the required permissions for the action, without
  25558. // actually making the request, and provides an error response. If you have
  25559. // the required permissions, the error response is DryRunOperation. Otherwise,
  25560. // it is UnauthorizedOperation.
  25561. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25562. // One or more filters.
  25563. //
  25564. // * message - Information about the Availability Zone.
  25565. //
  25566. // * region-name - The name of the region for the Availability Zone (for
  25567. // example, us-east-1).
  25568. //
  25569. // * state - The state of the Availability Zone (available | information
  25570. // | impaired | unavailable).
  25571. //
  25572. // * zone-name - The name of the Availability Zone (for example, us-east-1a).
  25573. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  25574. // The names of one or more Availability Zones.
  25575. ZoneNames []*string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"`
  25576. }
  25577. // String returns the string representation
  25578. func (s DescribeAvailabilityZonesInput) String() string {
  25579. return awsutil.Prettify(s)
  25580. }
  25581. // GoString returns the string representation
  25582. func (s DescribeAvailabilityZonesInput) GoString() string {
  25583. return s.String()
  25584. }
  25585. // SetDryRun sets the DryRun field's value.
  25586. func (s *DescribeAvailabilityZonesInput) SetDryRun(v bool) *DescribeAvailabilityZonesInput {
  25587. s.DryRun = &v
  25588. return s
  25589. }
  25590. // SetFilters sets the Filters field's value.
  25591. func (s *DescribeAvailabilityZonesInput) SetFilters(v []*Filter) *DescribeAvailabilityZonesInput {
  25592. s.Filters = v
  25593. return s
  25594. }
  25595. // SetZoneNames sets the ZoneNames field's value.
  25596. func (s *DescribeAvailabilityZonesInput) SetZoneNames(v []*string) *DescribeAvailabilityZonesInput {
  25597. s.ZoneNames = v
  25598. return s
  25599. }
  25600. // Contains the output of DescribeAvailabiltyZones.
  25601. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZonesResult
  25602. type DescribeAvailabilityZonesOutput struct {
  25603. _ struct{} `type:"structure"`
  25604. // Information about one or more Availability Zones.
  25605. AvailabilityZones []*AvailabilityZone `locationName:"availabilityZoneInfo" locationNameList:"item" type:"list"`
  25606. }
  25607. // String returns the string representation
  25608. func (s DescribeAvailabilityZonesOutput) String() string {
  25609. return awsutil.Prettify(s)
  25610. }
  25611. // GoString returns the string representation
  25612. func (s DescribeAvailabilityZonesOutput) GoString() string {
  25613. return s.String()
  25614. }
  25615. // SetAvailabilityZones sets the AvailabilityZones field's value.
  25616. func (s *DescribeAvailabilityZonesOutput) SetAvailabilityZones(v []*AvailabilityZone) *DescribeAvailabilityZonesOutput {
  25617. s.AvailabilityZones = v
  25618. return s
  25619. }
  25620. // Contains the parameters for DescribeBundleTasks.
  25621. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasksRequest
  25622. type DescribeBundleTasksInput struct {
  25623. _ struct{} `type:"structure"`
  25624. // One or more bundle task IDs.
  25625. //
  25626. // Default: Describes all your bundle tasks.
  25627. BundleIds []*string `locationName:"BundleId" locationNameList:"BundleId" type:"list"`
  25628. // Checks whether you have the required permissions for the action, without
  25629. // actually making the request, and provides an error response. If you have
  25630. // the required permissions, the error response is DryRunOperation. Otherwise,
  25631. // it is UnauthorizedOperation.
  25632. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25633. // One or more filters.
  25634. //
  25635. // * bundle-id - The ID of the bundle task.
  25636. //
  25637. // * error-code - If the task failed, the error code returned.
  25638. //
  25639. // * error-message - If the task failed, the error message returned.
  25640. //
  25641. // * instance-id - The ID of the instance.
  25642. //
  25643. // * progress - The level of task completion, as a percentage (for example,
  25644. // 20%).
  25645. //
  25646. // * s3-bucket - The Amazon S3 bucket to store the AMI.
  25647. //
  25648. // * s3-prefix - The beginning of the AMI name.
  25649. //
  25650. // * start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).
  25651. //
  25652. // * state - The state of the task (pending | waiting-for-shutdown | bundling
  25653. // | storing | cancelling | complete | failed).
  25654. //
  25655. // * update-time - The time of the most recent update for the task.
  25656. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  25657. }
  25658. // String returns the string representation
  25659. func (s DescribeBundleTasksInput) String() string {
  25660. return awsutil.Prettify(s)
  25661. }
  25662. // GoString returns the string representation
  25663. func (s DescribeBundleTasksInput) GoString() string {
  25664. return s.String()
  25665. }
  25666. // SetBundleIds sets the BundleIds field's value.
  25667. func (s *DescribeBundleTasksInput) SetBundleIds(v []*string) *DescribeBundleTasksInput {
  25668. s.BundleIds = v
  25669. return s
  25670. }
  25671. // SetDryRun sets the DryRun field's value.
  25672. func (s *DescribeBundleTasksInput) SetDryRun(v bool) *DescribeBundleTasksInput {
  25673. s.DryRun = &v
  25674. return s
  25675. }
  25676. // SetFilters sets the Filters field's value.
  25677. func (s *DescribeBundleTasksInput) SetFilters(v []*Filter) *DescribeBundleTasksInput {
  25678. s.Filters = v
  25679. return s
  25680. }
  25681. // Contains the output of DescribeBundleTasks.
  25682. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasksResult
  25683. type DescribeBundleTasksOutput struct {
  25684. _ struct{} `type:"structure"`
  25685. // Information about one or more bundle tasks.
  25686. BundleTasks []*BundleTask `locationName:"bundleInstanceTasksSet" locationNameList:"item" type:"list"`
  25687. }
  25688. // String returns the string representation
  25689. func (s DescribeBundleTasksOutput) String() string {
  25690. return awsutil.Prettify(s)
  25691. }
  25692. // GoString returns the string representation
  25693. func (s DescribeBundleTasksOutput) GoString() string {
  25694. return s.String()
  25695. }
  25696. // SetBundleTasks sets the BundleTasks field's value.
  25697. func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBundleTasksOutput {
  25698. s.BundleTasks = v
  25699. return s
  25700. }
  25701. // Contains the parameters for DescribeClassicLinkInstances.
  25702. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstancesRequest
  25703. type DescribeClassicLinkInstancesInput struct {
  25704. _ struct{} `type:"structure"`
  25705. // Checks whether you have the required permissions for the action, without
  25706. // actually making the request, and provides an error response. If you have
  25707. // the required permissions, the error response is DryRunOperation. Otherwise,
  25708. // it is UnauthorizedOperation.
  25709. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25710. // One or more filters.
  25711. //
  25712. // * group-id - The ID of a VPC security group that's associated with the
  25713. // instance.
  25714. //
  25715. // * instance-id - The ID of the instance.
  25716. //
  25717. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  25718. //
  25719. // * tag-key - The key of a tag assigned to the resource. This filter is
  25720. // independent of the tag-value filter. For example, if you use both the
  25721. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  25722. // assigned both the tag key Purpose (regardless of what the tag's value
  25723. // is), and the tag value X (regardless of what the tag's key is). If you
  25724. // want to list only resources where Purpose is X, see the tag:key=value
  25725. // filter.
  25726. //
  25727. // * tag-value - The value of a tag assigned to the resource. This filter
  25728. // is independent of the tag-key filter.
  25729. //
  25730. // * vpc-id - The ID of the VPC that the instance is linked to.
  25731. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  25732. // One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
  25733. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  25734. // The maximum number of results to return for the request in a single page.
  25735. // The remaining results of the initial request can be seen by sending another
  25736. // request with the returned NextToken value. This value can be between 5 and
  25737. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  25738. // are returned. You cannot specify this parameter and the instance IDs parameter
  25739. // in the same request.
  25740. //
  25741. // Constraint: If the value is greater than 1000, we return only 1000 items.
  25742. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  25743. // The token to retrieve the next page of results.
  25744. NextToken *string `locationName:"nextToken" type:"string"`
  25745. }
  25746. // String returns the string representation
  25747. func (s DescribeClassicLinkInstancesInput) String() string {
  25748. return awsutil.Prettify(s)
  25749. }
  25750. // GoString returns the string representation
  25751. func (s DescribeClassicLinkInstancesInput) GoString() string {
  25752. return s.String()
  25753. }
  25754. // SetDryRun sets the DryRun field's value.
  25755. func (s *DescribeClassicLinkInstancesInput) SetDryRun(v bool) *DescribeClassicLinkInstancesInput {
  25756. s.DryRun = &v
  25757. return s
  25758. }
  25759. // SetFilters sets the Filters field's value.
  25760. func (s *DescribeClassicLinkInstancesInput) SetFilters(v []*Filter) *DescribeClassicLinkInstancesInput {
  25761. s.Filters = v
  25762. return s
  25763. }
  25764. // SetInstanceIds sets the InstanceIds field's value.
  25765. func (s *DescribeClassicLinkInstancesInput) SetInstanceIds(v []*string) *DescribeClassicLinkInstancesInput {
  25766. s.InstanceIds = v
  25767. return s
  25768. }
  25769. // SetMaxResults sets the MaxResults field's value.
  25770. func (s *DescribeClassicLinkInstancesInput) SetMaxResults(v int64) *DescribeClassicLinkInstancesInput {
  25771. s.MaxResults = &v
  25772. return s
  25773. }
  25774. // SetNextToken sets the NextToken field's value.
  25775. func (s *DescribeClassicLinkInstancesInput) SetNextToken(v string) *DescribeClassicLinkInstancesInput {
  25776. s.NextToken = &v
  25777. return s
  25778. }
  25779. // Contains the output of DescribeClassicLinkInstances.
  25780. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstancesResult
  25781. type DescribeClassicLinkInstancesOutput struct {
  25782. _ struct{} `type:"structure"`
  25783. // Information about one or more linked EC2-Classic instances.
  25784. Instances []*ClassicLinkInstance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  25785. // The token to use to retrieve the next page of results. This value is null
  25786. // when there are no more results to return.
  25787. NextToken *string `locationName:"nextToken" type:"string"`
  25788. }
  25789. // String returns the string representation
  25790. func (s DescribeClassicLinkInstancesOutput) String() string {
  25791. return awsutil.Prettify(s)
  25792. }
  25793. // GoString returns the string representation
  25794. func (s DescribeClassicLinkInstancesOutput) GoString() string {
  25795. return s.String()
  25796. }
  25797. // SetInstances sets the Instances field's value.
  25798. func (s *DescribeClassicLinkInstancesOutput) SetInstances(v []*ClassicLinkInstance) *DescribeClassicLinkInstancesOutput {
  25799. s.Instances = v
  25800. return s
  25801. }
  25802. // SetNextToken sets the NextToken field's value.
  25803. func (s *DescribeClassicLinkInstancesOutput) SetNextToken(v string) *DescribeClassicLinkInstancesOutput {
  25804. s.NextToken = &v
  25805. return s
  25806. }
  25807. // Contains the parameters for DescribeConversionTasks.
  25808. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasksRequest
  25809. type DescribeConversionTasksInput struct {
  25810. _ struct{} `type:"structure"`
  25811. // One or more conversion task IDs.
  25812. ConversionTaskIds []*string `locationName:"conversionTaskId" locationNameList:"item" type:"list"`
  25813. // Checks whether you have the required permissions for the action, without
  25814. // actually making the request, and provides an error response. If you have
  25815. // the required permissions, the error response is DryRunOperation. Otherwise,
  25816. // it is UnauthorizedOperation.
  25817. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25818. }
  25819. // String returns the string representation
  25820. func (s DescribeConversionTasksInput) String() string {
  25821. return awsutil.Prettify(s)
  25822. }
  25823. // GoString returns the string representation
  25824. func (s DescribeConversionTasksInput) GoString() string {
  25825. return s.String()
  25826. }
  25827. // SetConversionTaskIds sets the ConversionTaskIds field's value.
  25828. func (s *DescribeConversionTasksInput) SetConversionTaskIds(v []*string) *DescribeConversionTasksInput {
  25829. s.ConversionTaskIds = v
  25830. return s
  25831. }
  25832. // SetDryRun sets the DryRun field's value.
  25833. func (s *DescribeConversionTasksInput) SetDryRun(v bool) *DescribeConversionTasksInput {
  25834. s.DryRun = &v
  25835. return s
  25836. }
  25837. // Contains the output for DescribeConversionTasks.
  25838. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasksResult
  25839. type DescribeConversionTasksOutput struct {
  25840. _ struct{} `type:"structure"`
  25841. // Information about the conversion tasks.
  25842. ConversionTasks []*ConversionTask `locationName:"conversionTasks" locationNameList:"item" type:"list"`
  25843. }
  25844. // String returns the string representation
  25845. func (s DescribeConversionTasksOutput) String() string {
  25846. return awsutil.Prettify(s)
  25847. }
  25848. // GoString returns the string representation
  25849. func (s DescribeConversionTasksOutput) GoString() string {
  25850. return s.String()
  25851. }
  25852. // SetConversionTasks sets the ConversionTasks field's value.
  25853. func (s *DescribeConversionTasksOutput) SetConversionTasks(v []*ConversionTask) *DescribeConversionTasksOutput {
  25854. s.ConversionTasks = v
  25855. return s
  25856. }
  25857. // Contains the parameters for DescribeCustomerGateways.
  25858. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGatewaysRequest
  25859. type DescribeCustomerGatewaysInput struct {
  25860. _ struct{} `type:"structure"`
  25861. // One or more customer gateway IDs.
  25862. //
  25863. // Default: Describes all your customer gateways.
  25864. CustomerGatewayIds []*string `locationName:"CustomerGatewayId" locationNameList:"CustomerGatewayId" type:"list"`
  25865. // Checks whether you have the required permissions for the action, without
  25866. // actually making the request, and provides an error response. If you have
  25867. // the required permissions, the error response is DryRunOperation. Otherwise,
  25868. // it is UnauthorizedOperation.
  25869. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25870. // One or more filters.
  25871. //
  25872. // * bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous
  25873. // System Number (ASN).
  25874. //
  25875. // * customer-gateway-id - The ID of the customer gateway.
  25876. //
  25877. // * ip-address - The IP address of the customer gateway's Internet-routable
  25878. // external interface.
  25879. //
  25880. // * state - The state of the customer gateway (pending | available | deleting
  25881. // | deleted).
  25882. //
  25883. // * type - The type of customer gateway. Currently, the only supported type
  25884. // is ipsec.1.
  25885. //
  25886. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  25887. // Specify the key of the tag in the filter name and the value of the tag
  25888. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  25889. // for the filter name and X for the filter value.
  25890. //
  25891. // * tag-key - The key of a tag assigned to the resource. This filter is
  25892. // independent of the tag-value filter. For example, if you use both the
  25893. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  25894. // assigned both the tag key Purpose (regardless of what the tag's value
  25895. // is), and the tag value X (regardless of what the tag's key is). If you
  25896. // want to list only resources where Purpose is X, see the tag:key=value
  25897. // filter.
  25898. //
  25899. // * tag-value - The value of a tag assigned to the resource. This filter
  25900. // is independent of the tag-key filter.
  25901. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  25902. }
  25903. // String returns the string representation
  25904. func (s DescribeCustomerGatewaysInput) String() string {
  25905. return awsutil.Prettify(s)
  25906. }
  25907. // GoString returns the string representation
  25908. func (s DescribeCustomerGatewaysInput) GoString() string {
  25909. return s.String()
  25910. }
  25911. // SetCustomerGatewayIds sets the CustomerGatewayIds field's value.
  25912. func (s *DescribeCustomerGatewaysInput) SetCustomerGatewayIds(v []*string) *DescribeCustomerGatewaysInput {
  25913. s.CustomerGatewayIds = v
  25914. return s
  25915. }
  25916. // SetDryRun sets the DryRun field's value.
  25917. func (s *DescribeCustomerGatewaysInput) SetDryRun(v bool) *DescribeCustomerGatewaysInput {
  25918. s.DryRun = &v
  25919. return s
  25920. }
  25921. // SetFilters sets the Filters field's value.
  25922. func (s *DescribeCustomerGatewaysInput) SetFilters(v []*Filter) *DescribeCustomerGatewaysInput {
  25923. s.Filters = v
  25924. return s
  25925. }
  25926. // Contains the output of DescribeCustomerGateways.
  25927. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGatewaysResult
  25928. type DescribeCustomerGatewaysOutput struct {
  25929. _ struct{} `type:"structure"`
  25930. // Information about one or more customer gateways.
  25931. CustomerGateways []*CustomerGateway `locationName:"customerGatewaySet" locationNameList:"item" type:"list"`
  25932. }
  25933. // String returns the string representation
  25934. func (s DescribeCustomerGatewaysOutput) String() string {
  25935. return awsutil.Prettify(s)
  25936. }
  25937. // GoString returns the string representation
  25938. func (s DescribeCustomerGatewaysOutput) GoString() string {
  25939. return s.String()
  25940. }
  25941. // SetCustomerGateways sets the CustomerGateways field's value.
  25942. func (s *DescribeCustomerGatewaysOutput) SetCustomerGateways(v []*CustomerGateway) *DescribeCustomerGatewaysOutput {
  25943. s.CustomerGateways = v
  25944. return s
  25945. }
  25946. // Contains the parameters for DescribeDhcpOptions.
  25947. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptionsRequest
  25948. type DescribeDhcpOptionsInput struct {
  25949. _ struct{} `type:"structure"`
  25950. // The IDs of one or more DHCP options sets.
  25951. //
  25952. // Default: Describes all your DHCP options sets.
  25953. DhcpOptionsIds []*string `locationName:"DhcpOptionsId" locationNameList:"DhcpOptionsId" type:"list"`
  25954. // Checks whether you have the required permissions for the action, without
  25955. // actually making the request, and provides an error response. If you have
  25956. // the required permissions, the error response is DryRunOperation. Otherwise,
  25957. // it is UnauthorizedOperation.
  25958. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25959. // One or more filters.
  25960. //
  25961. // * dhcp-options-id - The ID of a set of DHCP options.
  25962. //
  25963. // * key - The key for one of the options (for example, domain-name).
  25964. //
  25965. // * value - The value for one of the options.
  25966. //
  25967. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  25968. // Specify the key of the tag in the filter name and the value of the tag
  25969. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  25970. // for the filter name and X for the filter value.
  25971. //
  25972. // * tag-key - The key of a tag assigned to the resource. This filter is
  25973. // independent of the tag-value filter. For example, if you use both the
  25974. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  25975. // assigned both the tag key Purpose (regardless of what the tag's value
  25976. // is), and the tag value X (regardless of what the tag's key is). If you
  25977. // want to list only resources where Purpose is X, see the tag:key=value
  25978. // filter.
  25979. //
  25980. // * tag-value - The value of a tag assigned to the resource. This filter
  25981. // is independent of the tag-key filter.
  25982. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  25983. }
  25984. // String returns the string representation
  25985. func (s DescribeDhcpOptionsInput) String() string {
  25986. return awsutil.Prettify(s)
  25987. }
  25988. // GoString returns the string representation
  25989. func (s DescribeDhcpOptionsInput) GoString() string {
  25990. return s.String()
  25991. }
  25992. // SetDhcpOptionsIds sets the DhcpOptionsIds field's value.
  25993. func (s *DescribeDhcpOptionsInput) SetDhcpOptionsIds(v []*string) *DescribeDhcpOptionsInput {
  25994. s.DhcpOptionsIds = v
  25995. return s
  25996. }
  25997. // SetDryRun sets the DryRun field's value.
  25998. func (s *DescribeDhcpOptionsInput) SetDryRun(v bool) *DescribeDhcpOptionsInput {
  25999. s.DryRun = &v
  26000. return s
  26001. }
  26002. // SetFilters sets the Filters field's value.
  26003. func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsInput {
  26004. s.Filters = v
  26005. return s
  26006. }
  26007. // Contains the output of DescribeDhcpOptions.
  26008. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptionsResult
  26009. type DescribeDhcpOptionsOutput struct {
  26010. _ struct{} `type:"structure"`
  26011. // Information about one or more DHCP options sets.
  26012. DhcpOptions []*DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"`
  26013. }
  26014. // String returns the string representation
  26015. func (s DescribeDhcpOptionsOutput) String() string {
  26016. return awsutil.Prettify(s)
  26017. }
  26018. // GoString returns the string representation
  26019. func (s DescribeDhcpOptionsOutput) GoString() string {
  26020. return s.String()
  26021. }
  26022. // SetDhcpOptions sets the DhcpOptions field's value.
  26023. func (s *DescribeDhcpOptionsOutput) SetDhcpOptions(v []*DhcpOptions) *DescribeDhcpOptionsOutput {
  26024. s.DhcpOptions = v
  26025. return s
  26026. }
  26027. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGatewaysRequest
  26028. type DescribeEgressOnlyInternetGatewaysInput struct {
  26029. _ struct{} `type:"structure"`
  26030. // Checks whether you have the required permissions for the action, without
  26031. // actually making the request, and provides an error response. If you have
  26032. // the required permissions, the error response is DryRunOperation. Otherwise,
  26033. // it is UnauthorizedOperation.
  26034. DryRun *bool `type:"boolean"`
  26035. // One or more egress-only Internet gateway IDs.
  26036. EgressOnlyInternetGatewayIds []*string `locationName:"EgressOnlyInternetGatewayId" locationNameList:"item" type:"list"`
  26037. // The maximum number of results to return for the request in a single page.
  26038. // The remaining results can be seen by sending another request with the returned
  26039. // NextToken value. This value can be between 5 and 1000; if MaxResults is given
  26040. // a value larger than 1000, only 1000 results are returned.
  26041. MaxResults *int64 `type:"integer"`
  26042. // The token to retrieve the next page of results.
  26043. NextToken *string `type:"string"`
  26044. }
  26045. // String returns the string representation
  26046. func (s DescribeEgressOnlyInternetGatewaysInput) String() string {
  26047. return awsutil.Prettify(s)
  26048. }
  26049. // GoString returns the string representation
  26050. func (s DescribeEgressOnlyInternetGatewaysInput) GoString() string {
  26051. return s.String()
  26052. }
  26053. // SetDryRun sets the DryRun field's value.
  26054. func (s *DescribeEgressOnlyInternetGatewaysInput) SetDryRun(v bool) *DescribeEgressOnlyInternetGatewaysInput {
  26055. s.DryRun = &v
  26056. return s
  26057. }
  26058. // SetEgressOnlyInternetGatewayIds sets the EgressOnlyInternetGatewayIds field's value.
  26059. func (s *DescribeEgressOnlyInternetGatewaysInput) SetEgressOnlyInternetGatewayIds(v []*string) *DescribeEgressOnlyInternetGatewaysInput {
  26060. s.EgressOnlyInternetGatewayIds = v
  26061. return s
  26062. }
  26063. // SetMaxResults sets the MaxResults field's value.
  26064. func (s *DescribeEgressOnlyInternetGatewaysInput) SetMaxResults(v int64) *DescribeEgressOnlyInternetGatewaysInput {
  26065. s.MaxResults = &v
  26066. return s
  26067. }
  26068. // SetNextToken sets the NextToken field's value.
  26069. func (s *DescribeEgressOnlyInternetGatewaysInput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysInput {
  26070. s.NextToken = &v
  26071. return s
  26072. }
  26073. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGatewaysResult
  26074. type DescribeEgressOnlyInternetGatewaysOutput struct {
  26075. _ struct{} `type:"structure"`
  26076. // Information about the egress-only Internet gateways.
  26077. EgressOnlyInternetGateways []*EgressOnlyInternetGateway `locationName:"egressOnlyInternetGatewaySet" locationNameList:"item" type:"list"`
  26078. // The token to use to retrieve the next page of results.
  26079. NextToken *string `locationName:"nextToken" type:"string"`
  26080. }
  26081. // String returns the string representation
  26082. func (s DescribeEgressOnlyInternetGatewaysOutput) String() string {
  26083. return awsutil.Prettify(s)
  26084. }
  26085. // GoString returns the string representation
  26086. func (s DescribeEgressOnlyInternetGatewaysOutput) GoString() string {
  26087. return s.String()
  26088. }
  26089. // SetEgressOnlyInternetGateways sets the EgressOnlyInternetGateways field's value.
  26090. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetEgressOnlyInternetGateways(v []*EgressOnlyInternetGateway) *DescribeEgressOnlyInternetGatewaysOutput {
  26091. s.EgressOnlyInternetGateways = v
  26092. return s
  26093. }
  26094. // SetNextToken sets the NextToken field's value.
  26095. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysOutput {
  26096. s.NextToken = &v
  26097. return s
  26098. }
  26099. // Contains the parameters for DescribeExportTasks.
  26100. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasksRequest
  26101. type DescribeExportTasksInput struct {
  26102. _ struct{} `type:"structure"`
  26103. // One or more export task IDs.
  26104. ExportTaskIds []*string `locationName:"exportTaskId" locationNameList:"ExportTaskId" type:"list"`
  26105. }
  26106. // String returns the string representation
  26107. func (s DescribeExportTasksInput) String() string {
  26108. return awsutil.Prettify(s)
  26109. }
  26110. // GoString returns the string representation
  26111. func (s DescribeExportTasksInput) GoString() string {
  26112. return s.String()
  26113. }
  26114. // SetExportTaskIds sets the ExportTaskIds field's value.
  26115. func (s *DescribeExportTasksInput) SetExportTaskIds(v []*string) *DescribeExportTasksInput {
  26116. s.ExportTaskIds = v
  26117. return s
  26118. }
  26119. // Contains the output for DescribeExportTasks.
  26120. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasksResult
  26121. type DescribeExportTasksOutput struct {
  26122. _ struct{} `type:"structure"`
  26123. // Information about the export tasks.
  26124. ExportTasks []*ExportTask `locationName:"exportTaskSet" locationNameList:"item" type:"list"`
  26125. }
  26126. // String returns the string representation
  26127. func (s DescribeExportTasksOutput) String() string {
  26128. return awsutil.Prettify(s)
  26129. }
  26130. // GoString returns the string representation
  26131. func (s DescribeExportTasksOutput) GoString() string {
  26132. return s.String()
  26133. }
  26134. // SetExportTasks sets the ExportTasks field's value.
  26135. func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput {
  26136. s.ExportTasks = v
  26137. return s
  26138. }
  26139. // Contains the parameters for DescribeFlowLogs.
  26140. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogsRequest
  26141. type DescribeFlowLogsInput struct {
  26142. _ struct{} `type:"structure"`
  26143. // One or more filters.
  26144. //
  26145. // * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).
  26146. //
  26147. // * flow-log-id - The ID of the flow log.
  26148. //
  26149. // * log-group-name - The name of the log group.
  26150. //
  26151. // * resource-id - The ID of the VPC, subnet, or network interface.
  26152. //
  26153. // * traffic-type - The type of traffic (ACCEPT | REJECT | ALL)
  26154. Filter []*Filter `locationNameList:"Filter" type:"list"`
  26155. // One or more flow log IDs.
  26156. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list"`
  26157. // The maximum number of results to return for the request in a single page.
  26158. // The remaining results can be seen by sending another request with the returned
  26159. // NextToken value. This value can be between 5 and 1000; if MaxResults is given
  26160. // a value larger than 1000, only 1000 results are returned. You cannot specify
  26161. // this parameter and the flow log IDs parameter in the same request.
  26162. MaxResults *int64 `type:"integer"`
  26163. // The token to retrieve the next page of results.
  26164. NextToken *string `type:"string"`
  26165. }
  26166. // String returns the string representation
  26167. func (s DescribeFlowLogsInput) String() string {
  26168. return awsutil.Prettify(s)
  26169. }
  26170. // GoString returns the string representation
  26171. func (s DescribeFlowLogsInput) GoString() string {
  26172. return s.String()
  26173. }
  26174. // SetFilter sets the Filter field's value.
  26175. func (s *DescribeFlowLogsInput) SetFilter(v []*Filter) *DescribeFlowLogsInput {
  26176. s.Filter = v
  26177. return s
  26178. }
  26179. // SetFlowLogIds sets the FlowLogIds field's value.
  26180. func (s *DescribeFlowLogsInput) SetFlowLogIds(v []*string) *DescribeFlowLogsInput {
  26181. s.FlowLogIds = v
  26182. return s
  26183. }
  26184. // SetMaxResults sets the MaxResults field's value.
  26185. func (s *DescribeFlowLogsInput) SetMaxResults(v int64) *DescribeFlowLogsInput {
  26186. s.MaxResults = &v
  26187. return s
  26188. }
  26189. // SetNextToken sets the NextToken field's value.
  26190. func (s *DescribeFlowLogsInput) SetNextToken(v string) *DescribeFlowLogsInput {
  26191. s.NextToken = &v
  26192. return s
  26193. }
  26194. // Contains the output of DescribeFlowLogs.
  26195. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogsResult
  26196. type DescribeFlowLogsOutput struct {
  26197. _ struct{} `type:"structure"`
  26198. // Information about the flow logs.
  26199. FlowLogs []*FlowLog `locationName:"flowLogSet" locationNameList:"item" type:"list"`
  26200. // The token to use to retrieve the next page of results. This value is null
  26201. // when there are no more results to return.
  26202. NextToken *string `locationName:"nextToken" type:"string"`
  26203. }
  26204. // String returns the string representation
  26205. func (s DescribeFlowLogsOutput) String() string {
  26206. return awsutil.Prettify(s)
  26207. }
  26208. // GoString returns the string representation
  26209. func (s DescribeFlowLogsOutput) GoString() string {
  26210. return s.String()
  26211. }
  26212. // SetFlowLogs sets the FlowLogs field's value.
  26213. func (s *DescribeFlowLogsOutput) SetFlowLogs(v []*FlowLog) *DescribeFlowLogsOutput {
  26214. s.FlowLogs = v
  26215. return s
  26216. }
  26217. // SetNextToken sets the NextToken field's value.
  26218. func (s *DescribeFlowLogsOutput) SetNextToken(v string) *DescribeFlowLogsOutput {
  26219. s.NextToken = &v
  26220. return s
  26221. }
  26222. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImagesRequest
  26223. type DescribeFpgaImagesInput struct {
  26224. _ struct{} `type:"structure"`
  26225. // Checks whether you have the required permissions for the action, without
  26226. // actually making the request, and provides an error response. If you have
  26227. // the required permissions, the error response is DryRunOperation. Otherwise,
  26228. // it is UnauthorizedOperation.
  26229. DryRun *bool `type:"boolean"`
  26230. // One or more filters.
  26231. //
  26232. // * create-time - The creation time of the AFI.
  26233. //
  26234. // * fpga-image-id - The FPGA image identifier (AFI ID).
  26235. //
  26236. // * fpga-image-global-id - The global FPGA image identifier (AGFI ID).
  26237. //
  26238. // * name - The name of the AFI.
  26239. //
  26240. // * owner-id - The AWS account ID of the AFI owner.
  26241. //
  26242. // * product-code - The product code.
  26243. //
  26244. // * shell-version - The version of the AWS Shell that was used to create
  26245. // the bitstream.
  26246. //
  26247. // * state - The state of the AFI (pending | failed | available | unavailable).
  26248. //
  26249. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  26250. // Specify the key of the tag in the filter name and the value of the tag
  26251. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  26252. // for the filter name and X for the filter value.
  26253. //
  26254. // * tag-key - The key of a tag assigned to the resource. This filter is
  26255. // independent of the tag-value filter. For example, if you use both the
  26256. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  26257. // assigned both the tag key Purpose (regardless of what the tag's value
  26258. // is), and the tag value X (regardless of what the tag's key is). If you
  26259. // want to list only resources where Purpose is X, see the tag:key=value
  26260. // filter.
  26261. //
  26262. // * tag-value - The value of a tag assigned to the resource. This filter
  26263. // is independent of the tag-key filter.
  26264. //
  26265. // * update-time - The time of the most recent update.
  26266. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  26267. // One or more AFI IDs.
  26268. FpgaImageIds []*string `locationName:"FpgaImageId" locationNameList:"item" type:"list"`
  26269. // The maximum number of results to return in a single call.
  26270. MaxResults *int64 `min:"5" type:"integer"`
  26271. // The token to retrieve the next page of results.
  26272. NextToken *string `min:"1" type:"string"`
  26273. // Filters the AFI by owner. Specify an AWS account ID, self (owner is the sender
  26274. // of the request), or an AWS owner alias (valid values are amazon | aws-marketplace).
  26275. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  26276. }
  26277. // String returns the string representation
  26278. func (s DescribeFpgaImagesInput) String() string {
  26279. return awsutil.Prettify(s)
  26280. }
  26281. // GoString returns the string representation
  26282. func (s DescribeFpgaImagesInput) GoString() string {
  26283. return s.String()
  26284. }
  26285. // Validate inspects the fields of the type to determine if they are valid.
  26286. func (s *DescribeFpgaImagesInput) Validate() error {
  26287. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImagesInput"}
  26288. if s.MaxResults != nil && *s.MaxResults < 5 {
  26289. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  26290. }
  26291. if s.NextToken != nil && len(*s.NextToken) < 1 {
  26292. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  26293. }
  26294. if invalidParams.Len() > 0 {
  26295. return invalidParams
  26296. }
  26297. return nil
  26298. }
  26299. // SetDryRun sets the DryRun field's value.
  26300. func (s *DescribeFpgaImagesInput) SetDryRun(v bool) *DescribeFpgaImagesInput {
  26301. s.DryRun = &v
  26302. return s
  26303. }
  26304. // SetFilters sets the Filters field's value.
  26305. func (s *DescribeFpgaImagesInput) SetFilters(v []*Filter) *DescribeFpgaImagesInput {
  26306. s.Filters = v
  26307. return s
  26308. }
  26309. // SetFpgaImageIds sets the FpgaImageIds field's value.
  26310. func (s *DescribeFpgaImagesInput) SetFpgaImageIds(v []*string) *DescribeFpgaImagesInput {
  26311. s.FpgaImageIds = v
  26312. return s
  26313. }
  26314. // SetMaxResults sets the MaxResults field's value.
  26315. func (s *DescribeFpgaImagesInput) SetMaxResults(v int64) *DescribeFpgaImagesInput {
  26316. s.MaxResults = &v
  26317. return s
  26318. }
  26319. // SetNextToken sets the NextToken field's value.
  26320. func (s *DescribeFpgaImagesInput) SetNextToken(v string) *DescribeFpgaImagesInput {
  26321. s.NextToken = &v
  26322. return s
  26323. }
  26324. // SetOwners sets the Owners field's value.
  26325. func (s *DescribeFpgaImagesInput) SetOwners(v []*string) *DescribeFpgaImagesInput {
  26326. s.Owners = v
  26327. return s
  26328. }
  26329. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImagesResult
  26330. type DescribeFpgaImagesOutput struct {
  26331. _ struct{} `type:"structure"`
  26332. // Information about one or more FPGA images.
  26333. FpgaImages []*FpgaImage `locationName:"fpgaImageSet" locationNameList:"item" type:"list"`
  26334. // The token to use to retrieve the next page of results. This value is null
  26335. // when there are no more results to return.
  26336. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  26337. }
  26338. // String returns the string representation
  26339. func (s DescribeFpgaImagesOutput) String() string {
  26340. return awsutil.Prettify(s)
  26341. }
  26342. // GoString returns the string representation
  26343. func (s DescribeFpgaImagesOutput) GoString() string {
  26344. return s.String()
  26345. }
  26346. // SetFpgaImages sets the FpgaImages field's value.
  26347. func (s *DescribeFpgaImagesOutput) SetFpgaImages(v []*FpgaImage) *DescribeFpgaImagesOutput {
  26348. s.FpgaImages = v
  26349. return s
  26350. }
  26351. // SetNextToken sets the NextToken field's value.
  26352. func (s *DescribeFpgaImagesOutput) SetNextToken(v string) *DescribeFpgaImagesOutput {
  26353. s.NextToken = &v
  26354. return s
  26355. }
  26356. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferingsRequest
  26357. type DescribeHostReservationOfferingsInput struct {
  26358. _ struct{} `type:"structure"`
  26359. // One or more filters.
  26360. //
  26361. // * instance-family - The instance family of the offering (e.g., m4).
  26362. //
  26363. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  26364. Filter []*Filter `locationNameList:"Filter" type:"list"`
  26365. // This is the maximum duration of the reservation you'd like to purchase, specified
  26366. // in seconds. Reservations are available in one-year and three-year terms.
  26367. // The number of seconds specified must be the number of seconds in a year (365x24x60x60)
  26368. // times one of the supported durations (1 or 3). For example, specify 94608000
  26369. // for three years.
  26370. MaxDuration *int64 `type:"integer"`
  26371. // The maximum number of results to return for the request in a single page.
  26372. // The remaining results can be seen by sending another request with the returned
  26373. // nextToken value. This value can be between 5 and 500; if maxResults is given
  26374. // a larger value than 500, you will receive an error.
  26375. MaxResults *int64 `type:"integer"`
  26376. // This is the minimum duration of the reservation you'd like to purchase, specified
  26377. // in seconds. Reservations are available in one-year and three-year terms.
  26378. // The number of seconds specified must be the number of seconds in a year (365x24x60x60)
  26379. // times one of the supported durations (1 or 3). For example, specify 31536000
  26380. // for one year.
  26381. MinDuration *int64 `type:"integer"`
  26382. // The token to use to retrieve the next page of results.
  26383. NextToken *string `type:"string"`
  26384. // The ID of the reservation offering.
  26385. OfferingId *string `type:"string"`
  26386. }
  26387. // String returns the string representation
  26388. func (s DescribeHostReservationOfferingsInput) String() string {
  26389. return awsutil.Prettify(s)
  26390. }
  26391. // GoString returns the string representation
  26392. func (s DescribeHostReservationOfferingsInput) GoString() string {
  26393. return s.String()
  26394. }
  26395. // SetFilter sets the Filter field's value.
  26396. func (s *DescribeHostReservationOfferingsInput) SetFilter(v []*Filter) *DescribeHostReservationOfferingsInput {
  26397. s.Filter = v
  26398. return s
  26399. }
  26400. // SetMaxDuration sets the MaxDuration field's value.
  26401. func (s *DescribeHostReservationOfferingsInput) SetMaxDuration(v int64) *DescribeHostReservationOfferingsInput {
  26402. s.MaxDuration = &v
  26403. return s
  26404. }
  26405. // SetMaxResults sets the MaxResults field's value.
  26406. func (s *DescribeHostReservationOfferingsInput) SetMaxResults(v int64) *DescribeHostReservationOfferingsInput {
  26407. s.MaxResults = &v
  26408. return s
  26409. }
  26410. // SetMinDuration sets the MinDuration field's value.
  26411. func (s *DescribeHostReservationOfferingsInput) SetMinDuration(v int64) *DescribeHostReservationOfferingsInput {
  26412. s.MinDuration = &v
  26413. return s
  26414. }
  26415. // SetNextToken sets the NextToken field's value.
  26416. func (s *DescribeHostReservationOfferingsInput) SetNextToken(v string) *DescribeHostReservationOfferingsInput {
  26417. s.NextToken = &v
  26418. return s
  26419. }
  26420. // SetOfferingId sets the OfferingId field's value.
  26421. func (s *DescribeHostReservationOfferingsInput) SetOfferingId(v string) *DescribeHostReservationOfferingsInput {
  26422. s.OfferingId = &v
  26423. return s
  26424. }
  26425. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferingsResult
  26426. type DescribeHostReservationOfferingsOutput struct {
  26427. _ struct{} `type:"structure"`
  26428. // The token to use to retrieve the next page of results. This value is null
  26429. // when there are no more results to return.
  26430. NextToken *string `locationName:"nextToken" type:"string"`
  26431. // Information about the offerings.
  26432. OfferingSet []*HostOffering `locationName:"offeringSet" type:"list"`
  26433. }
  26434. // String returns the string representation
  26435. func (s DescribeHostReservationOfferingsOutput) String() string {
  26436. return awsutil.Prettify(s)
  26437. }
  26438. // GoString returns the string representation
  26439. func (s DescribeHostReservationOfferingsOutput) GoString() string {
  26440. return s.String()
  26441. }
  26442. // SetNextToken sets the NextToken field's value.
  26443. func (s *DescribeHostReservationOfferingsOutput) SetNextToken(v string) *DescribeHostReservationOfferingsOutput {
  26444. s.NextToken = &v
  26445. return s
  26446. }
  26447. // SetOfferingSet sets the OfferingSet field's value.
  26448. func (s *DescribeHostReservationOfferingsOutput) SetOfferingSet(v []*HostOffering) *DescribeHostReservationOfferingsOutput {
  26449. s.OfferingSet = v
  26450. return s
  26451. }
  26452. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationsRequest
  26453. type DescribeHostReservationsInput struct {
  26454. _ struct{} `type:"structure"`
  26455. // One or more filters.
  26456. //
  26457. // * instance-family - The instance family (e.g., m4).
  26458. //
  26459. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  26460. //
  26461. // * state - The state of the reservation (payment-pending | payment-failed
  26462. // | active | retired).
  26463. Filter []*Filter `locationNameList:"Filter" type:"list"`
  26464. // One or more host reservation IDs.
  26465. HostReservationIdSet []*string `locationNameList:"item" type:"list"`
  26466. // The maximum number of results to return for the request in a single page.
  26467. // The remaining results can be seen by sending another request with the returned
  26468. // nextToken value. This value can be between 5 and 500; if maxResults is given
  26469. // a larger value than 500, you will receive an error.
  26470. MaxResults *int64 `type:"integer"`
  26471. // The token to use to retrieve the next page of results.
  26472. NextToken *string `type:"string"`
  26473. }
  26474. // String returns the string representation
  26475. func (s DescribeHostReservationsInput) String() string {
  26476. return awsutil.Prettify(s)
  26477. }
  26478. // GoString returns the string representation
  26479. func (s DescribeHostReservationsInput) GoString() string {
  26480. return s.String()
  26481. }
  26482. // SetFilter sets the Filter field's value.
  26483. func (s *DescribeHostReservationsInput) SetFilter(v []*Filter) *DescribeHostReservationsInput {
  26484. s.Filter = v
  26485. return s
  26486. }
  26487. // SetHostReservationIdSet sets the HostReservationIdSet field's value.
  26488. func (s *DescribeHostReservationsInput) SetHostReservationIdSet(v []*string) *DescribeHostReservationsInput {
  26489. s.HostReservationIdSet = v
  26490. return s
  26491. }
  26492. // SetMaxResults sets the MaxResults field's value.
  26493. func (s *DescribeHostReservationsInput) SetMaxResults(v int64) *DescribeHostReservationsInput {
  26494. s.MaxResults = &v
  26495. return s
  26496. }
  26497. // SetNextToken sets the NextToken field's value.
  26498. func (s *DescribeHostReservationsInput) SetNextToken(v string) *DescribeHostReservationsInput {
  26499. s.NextToken = &v
  26500. return s
  26501. }
  26502. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationsResult
  26503. type DescribeHostReservationsOutput struct {
  26504. _ struct{} `type:"structure"`
  26505. // Details about the reservation's configuration.
  26506. HostReservationSet []*HostReservation `locationName:"hostReservationSet" type:"list"`
  26507. // The token to use to retrieve the next page of results. This value is null
  26508. // when there are no more results to return.
  26509. NextToken *string `locationName:"nextToken" type:"string"`
  26510. }
  26511. // String returns the string representation
  26512. func (s DescribeHostReservationsOutput) String() string {
  26513. return awsutil.Prettify(s)
  26514. }
  26515. // GoString returns the string representation
  26516. func (s DescribeHostReservationsOutput) GoString() string {
  26517. return s.String()
  26518. }
  26519. // SetHostReservationSet sets the HostReservationSet field's value.
  26520. func (s *DescribeHostReservationsOutput) SetHostReservationSet(v []*HostReservation) *DescribeHostReservationsOutput {
  26521. s.HostReservationSet = v
  26522. return s
  26523. }
  26524. // SetNextToken sets the NextToken field's value.
  26525. func (s *DescribeHostReservationsOutput) SetNextToken(v string) *DescribeHostReservationsOutput {
  26526. s.NextToken = &v
  26527. return s
  26528. }
  26529. // Contains the parameters for DescribeHosts.
  26530. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostsRequest
  26531. type DescribeHostsInput struct {
  26532. _ struct{} `type:"structure"`
  26533. // One or more filters.
  26534. //
  26535. // * instance-type - The instance type size that the Dedicated Host is configured
  26536. // to support.
  26537. //
  26538. // * auto-placement - Whether auto-placement is enabled or disabled (on |
  26539. // off).
  26540. //
  26541. // * host-reservation-id - The ID of the reservation assigned to this host.
  26542. //
  26543. // * client-token - The idempotency token you provided when you launched
  26544. // the instance
  26545. //
  26546. // * state- The allocation state of the Dedicated Host (available | under-assessment
  26547. // | permanent-failure | released | released-permanent-failure).
  26548. //
  26549. // * availability-zone - The Availability Zone of the host.
  26550. Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  26551. // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.
  26552. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list"`
  26553. // The maximum number of results to return for the request in a single page.
  26554. // The remaining results can be seen by sending another request with the returned
  26555. // nextToken value. This value can be between 5 and 500; if maxResults is given
  26556. // a larger value than 500, you will receive an error. You cannot specify this
  26557. // parameter and the host IDs parameter in the same request.
  26558. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  26559. // The token to retrieve the next page of results.
  26560. NextToken *string `locationName:"nextToken" type:"string"`
  26561. }
  26562. // String returns the string representation
  26563. func (s DescribeHostsInput) String() string {
  26564. return awsutil.Prettify(s)
  26565. }
  26566. // GoString returns the string representation
  26567. func (s DescribeHostsInput) GoString() string {
  26568. return s.String()
  26569. }
  26570. // SetFilter sets the Filter field's value.
  26571. func (s *DescribeHostsInput) SetFilter(v []*Filter) *DescribeHostsInput {
  26572. s.Filter = v
  26573. return s
  26574. }
  26575. // SetHostIds sets the HostIds field's value.
  26576. func (s *DescribeHostsInput) SetHostIds(v []*string) *DescribeHostsInput {
  26577. s.HostIds = v
  26578. return s
  26579. }
  26580. // SetMaxResults sets the MaxResults field's value.
  26581. func (s *DescribeHostsInput) SetMaxResults(v int64) *DescribeHostsInput {
  26582. s.MaxResults = &v
  26583. return s
  26584. }
  26585. // SetNextToken sets the NextToken field's value.
  26586. func (s *DescribeHostsInput) SetNextToken(v string) *DescribeHostsInput {
  26587. s.NextToken = &v
  26588. return s
  26589. }
  26590. // Contains the output of DescribeHosts.
  26591. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostsResult
  26592. type DescribeHostsOutput struct {
  26593. _ struct{} `type:"structure"`
  26594. // Information about the Dedicated Hosts.
  26595. Hosts []*Host `locationName:"hostSet" locationNameList:"item" type:"list"`
  26596. // The token to use to retrieve the next page of results. This value is null
  26597. // when there are no more results to return.
  26598. NextToken *string `locationName:"nextToken" type:"string"`
  26599. }
  26600. // String returns the string representation
  26601. func (s DescribeHostsOutput) String() string {
  26602. return awsutil.Prettify(s)
  26603. }
  26604. // GoString returns the string representation
  26605. func (s DescribeHostsOutput) GoString() string {
  26606. return s.String()
  26607. }
  26608. // SetHosts sets the Hosts field's value.
  26609. func (s *DescribeHostsOutput) SetHosts(v []*Host) *DescribeHostsOutput {
  26610. s.Hosts = v
  26611. return s
  26612. }
  26613. // SetNextToken sets the NextToken field's value.
  26614. func (s *DescribeHostsOutput) SetNextToken(v string) *DescribeHostsOutput {
  26615. s.NextToken = &v
  26616. return s
  26617. }
  26618. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociationsRequest
  26619. type DescribeIamInstanceProfileAssociationsInput struct {
  26620. _ struct{} `type:"structure"`
  26621. // One or more IAM instance profile associations.
  26622. AssociationIds []*string `locationName:"AssociationId" locationNameList:"AssociationId" type:"list"`
  26623. // One or more filters.
  26624. //
  26625. // * instance-id - The ID of the instance.
  26626. //
  26627. // * state - The state of the association (associating | associated | disassociating
  26628. // | disassociated).
  26629. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  26630. // The maximum number of results to return in a single call. To retrieve the
  26631. // remaining results, make another call with the returned NextToken value.
  26632. MaxResults *int64 `min:"5" type:"integer"`
  26633. // The token to request the next page of results.
  26634. NextToken *string `min:"1" type:"string"`
  26635. }
  26636. // String returns the string representation
  26637. func (s DescribeIamInstanceProfileAssociationsInput) String() string {
  26638. return awsutil.Prettify(s)
  26639. }
  26640. // GoString returns the string representation
  26641. func (s DescribeIamInstanceProfileAssociationsInput) GoString() string {
  26642. return s.String()
  26643. }
  26644. // Validate inspects the fields of the type to determine if they are valid.
  26645. func (s *DescribeIamInstanceProfileAssociationsInput) Validate() error {
  26646. invalidParams := request.ErrInvalidParams{Context: "DescribeIamInstanceProfileAssociationsInput"}
  26647. if s.MaxResults != nil && *s.MaxResults < 5 {
  26648. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  26649. }
  26650. if s.NextToken != nil && len(*s.NextToken) < 1 {
  26651. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  26652. }
  26653. if invalidParams.Len() > 0 {
  26654. return invalidParams
  26655. }
  26656. return nil
  26657. }
  26658. // SetAssociationIds sets the AssociationIds field's value.
  26659. func (s *DescribeIamInstanceProfileAssociationsInput) SetAssociationIds(v []*string) *DescribeIamInstanceProfileAssociationsInput {
  26660. s.AssociationIds = v
  26661. return s
  26662. }
  26663. // SetFilters sets the Filters field's value.
  26664. func (s *DescribeIamInstanceProfileAssociationsInput) SetFilters(v []*Filter) *DescribeIamInstanceProfileAssociationsInput {
  26665. s.Filters = v
  26666. return s
  26667. }
  26668. // SetMaxResults sets the MaxResults field's value.
  26669. func (s *DescribeIamInstanceProfileAssociationsInput) SetMaxResults(v int64) *DescribeIamInstanceProfileAssociationsInput {
  26670. s.MaxResults = &v
  26671. return s
  26672. }
  26673. // SetNextToken sets the NextToken field's value.
  26674. func (s *DescribeIamInstanceProfileAssociationsInput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsInput {
  26675. s.NextToken = &v
  26676. return s
  26677. }
  26678. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociationsResult
  26679. type DescribeIamInstanceProfileAssociationsOutput struct {
  26680. _ struct{} `type:"structure"`
  26681. // Information about one or more IAM instance profile associations.
  26682. IamInstanceProfileAssociations []*IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociationSet" locationNameList:"item" type:"list"`
  26683. // The token to use to retrieve the next page of results. This value is null
  26684. // when there are no more results to return.
  26685. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  26686. }
  26687. // String returns the string representation
  26688. func (s DescribeIamInstanceProfileAssociationsOutput) String() string {
  26689. return awsutil.Prettify(s)
  26690. }
  26691. // GoString returns the string representation
  26692. func (s DescribeIamInstanceProfileAssociationsOutput) GoString() string {
  26693. return s.String()
  26694. }
  26695. // SetIamInstanceProfileAssociations sets the IamInstanceProfileAssociations field's value.
  26696. func (s *DescribeIamInstanceProfileAssociationsOutput) SetIamInstanceProfileAssociations(v []*IamInstanceProfileAssociation) *DescribeIamInstanceProfileAssociationsOutput {
  26697. s.IamInstanceProfileAssociations = v
  26698. return s
  26699. }
  26700. // SetNextToken sets the NextToken field's value.
  26701. func (s *DescribeIamInstanceProfileAssociationsOutput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsOutput {
  26702. s.NextToken = &v
  26703. return s
  26704. }
  26705. // Contains the parameters for DescribeIdFormat.
  26706. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormatRequest
  26707. type DescribeIdFormatInput struct {
  26708. _ struct{} `type:"structure"`
  26709. // The type of resource: instance | reservation | snapshot | volume
  26710. Resource *string `type:"string"`
  26711. }
  26712. // String returns the string representation
  26713. func (s DescribeIdFormatInput) String() string {
  26714. return awsutil.Prettify(s)
  26715. }
  26716. // GoString returns the string representation
  26717. func (s DescribeIdFormatInput) GoString() string {
  26718. return s.String()
  26719. }
  26720. // SetResource sets the Resource field's value.
  26721. func (s *DescribeIdFormatInput) SetResource(v string) *DescribeIdFormatInput {
  26722. s.Resource = &v
  26723. return s
  26724. }
  26725. // Contains the output of DescribeIdFormat.
  26726. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormatResult
  26727. type DescribeIdFormatOutput struct {
  26728. _ struct{} `type:"structure"`
  26729. // Information about the ID format for the resource.
  26730. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  26731. }
  26732. // String returns the string representation
  26733. func (s DescribeIdFormatOutput) String() string {
  26734. return awsutil.Prettify(s)
  26735. }
  26736. // GoString returns the string representation
  26737. func (s DescribeIdFormatOutput) GoString() string {
  26738. return s.String()
  26739. }
  26740. // SetStatuses sets the Statuses field's value.
  26741. func (s *DescribeIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdFormatOutput {
  26742. s.Statuses = v
  26743. return s
  26744. }
  26745. // Contains the parameters for DescribeIdentityIdFormat.
  26746. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormatRequest
  26747. type DescribeIdentityIdFormatInput struct {
  26748. _ struct{} `type:"structure"`
  26749. // The ARN of the principal, which can be an IAM role, IAM user, or the root
  26750. // user.
  26751. //
  26752. // PrincipalArn is a required field
  26753. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  26754. // The type of resource: instance | reservation | snapshot | volume
  26755. Resource *string `locationName:"resource" type:"string"`
  26756. }
  26757. // String returns the string representation
  26758. func (s DescribeIdentityIdFormatInput) String() string {
  26759. return awsutil.Prettify(s)
  26760. }
  26761. // GoString returns the string representation
  26762. func (s DescribeIdentityIdFormatInput) GoString() string {
  26763. return s.String()
  26764. }
  26765. // Validate inspects the fields of the type to determine if they are valid.
  26766. func (s *DescribeIdentityIdFormatInput) Validate() error {
  26767. invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityIdFormatInput"}
  26768. if s.PrincipalArn == nil {
  26769. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  26770. }
  26771. if invalidParams.Len() > 0 {
  26772. return invalidParams
  26773. }
  26774. return nil
  26775. }
  26776. // SetPrincipalArn sets the PrincipalArn field's value.
  26777. func (s *DescribeIdentityIdFormatInput) SetPrincipalArn(v string) *DescribeIdentityIdFormatInput {
  26778. s.PrincipalArn = &v
  26779. return s
  26780. }
  26781. // SetResource sets the Resource field's value.
  26782. func (s *DescribeIdentityIdFormatInput) SetResource(v string) *DescribeIdentityIdFormatInput {
  26783. s.Resource = &v
  26784. return s
  26785. }
  26786. // Contains the output of DescribeIdentityIdFormat.
  26787. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormatResult
  26788. type DescribeIdentityIdFormatOutput struct {
  26789. _ struct{} `type:"structure"`
  26790. // Information about the ID format for the resources.
  26791. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  26792. }
  26793. // String returns the string representation
  26794. func (s DescribeIdentityIdFormatOutput) String() string {
  26795. return awsutil.Prettify(s)
  26796. }
  26797. // GoString returns the string representation
  26798. func (s DescribeIdentityIdFormatOutput) GoString() string {
  26799. return s.String()
  26800. }
  26801. // SetStatuses sets the Statuses field's value.
  26802. func (s *DescribeIdentityIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdentityIdFormatOutput {
  26803. s.Statuses = v
  26804. return s
  26805. }
  26806. // Contains the parameters for DescribeImageAttribute.
  26807. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttributeRequest
  26808. type DescribeImageAttributeInput struct {
  26809. _ struct{} `type:"structure"`
  26810. // The AMI attribute.
  26811. //
  26812. // Note: Depending on your account privileges, the blockDeviceMapping attribute
  26813. // may return a Client.AuthFailure error. If this happens, use DescribeImages
  26814. // to get information about the block device mapping for the AMI.
  26815. //
  26816. // Attribute is a required field
  26817. Attribute *string `type:"string" required:"true" enum:"ImageAttributeName"`
  26818. // Checks whether you have the required permissions for the action, without
  26819. // actually making the request, and provides an error response. If you have
  26820. // the required permissions, the error response is DryRunOperation. Otherwise,
  26821. // it is UnauthorizedOperation.
  26822. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26823. // The ID of the AMI.
  26824. //
  26825. // ImageId is a required field
  26826. ImageId *string `type:"string" required:"true"`
  26827. }
  26828. // String returns the string representation
  26829. func (s DescribeImageAttributeInput) String() string {
  26830. return awsutil.Prettify(s)
  26831. }
  26832. // GoString returns the string representation
  26833. func (s DescribeImageAttributeInput) GoString() string {
  26834. return s.String()
  26835. }
  26836. // Validate inspects the fields of the type to determine if they are valid.
  26837. func (s *DescribeImageAttributeInput) Validate() error {
  26838. invalidParams := request.ErrInvalidParams{Context: "DescribeImageAttributeInput"}
  26839. if s.Attribute == nil {
  26840. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  26841. }
  26842. if s.ImageId == nil {
  26843. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  26844. }
  26845. if invalidParams.Len() > 0 {
  26846. return invalidParams
  26847. }
  26848. return nil
  26849. }
  26850. // SetAttribute sets the Attribute field's value.
  26851. func (s *DescribeImageAttributeInput) SetAttribute(v string) *DescribeImageAttributeInput {
  26852. s.Attribute = &v
  26853. return s
  26854. }
  26855. // SetDryRun sets the DryRun field's value.
  26856. func (s *DescribeImageAttributeInput) SetDryRun(v bool) *DescribeImageAttributeInput {
  26857. s.DryRun = &v
  26858. return s
  26859. }
  26860. // SetImageId sets the ImageId field's value.
  26861. func (s *DescribeImageAttributeInput) SetImageId(v string) *DescribeImageAttributeInput {
  26862. s.ImageId = &v
  26863. return s
  26864. }
  26865. // Describes an image attribute.
  26866. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageAttribute
  26867. type DescribeImageAttributeOutput struct {
  26868. _ struct{} `type:"structure"`
  26869. // One or more block device mapping entries.
  26870. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  26871. // A description for the AMI.
  26872. Description *AttributeValue `locationName:"description" type:"structure"`
  26873. // The ID of the AMI.
  26874. ImageId *string `locationName:"imageId" type:"string"`
  26875. // The kernel ID.
  26876. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  26877. // One or more launch permissions.
  26878. LaunchPermissions []*LaunchPermission `locationName:"launchPermission" locationNameList:"item" type:"list"`
  26879. // One or more product codes.
  26880. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  26881. // The RAM disk ID.
  26882. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  26883. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  26884. // interface is enabled.
  26885. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  26886. }
  26887. // String returns the string representation
  26888. func (s DescribeImageAttributeOutput) String() string {
  26889. return awsutil.Prettify(s)
  26890. }
  26891. // GoString returns the string representation
  26892. func (s DescribeImageAttributeOutput) GoString() string {
  26893. return s.String()
  26894. }
  26895. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  26896. func (s *DescribeImageAttributeOutput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *DescribeImageAttributeOutput {
  26897. s.BlockDeviceMappings = v
  26898. return s
  26899. }
  26900. // SetDescription sets the Description field's value.
  26901. func (s *DescribeImageAttributeOutput) SetDescription(v *AttributeValue) *DescribeImageAttributeOutput {
  26902. s.Description = v
  26903. return s
  26904. }
  26905. // SetImageId sets the ImageId field's value.
  26906. func (s *DescribeImageAttributeOutput) SetImageId(v string) *DescribeImageAttributeOutput {
  26907. s.ImageId = &v
  26908. return s
  26909. }
  26910. // SetKernelId sets the KernelId field's value.
  26911. func (s *DescribeImageAttributeOutput) SetKernelId(v *AttributeValue) *DescribeImageAttributeOutput {
  26912. s.KernelId = v
  26913. return s
  26914. }
  26915. // SetLaunchPermissions sets the LaunchPermissions field's value.
  26916. func (s *DescribeImageAttributeOutput) SetLaunchPermissions(v []*LaunchPermission) *DescribeImageAttributeOutput {
  26917. s.LaunchPermissions = v
  26918. return s
  26919. }
  26920. // SetProductCodes sets the ProductCodes field's value.
  26921. func (s *DescribeImageAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeImageAttributeOutput {
  26922. s.ProductCodes = v
  26923. return s
  26924. }
  26925. // SetRamdiskId sets the RamdiskId field's value.
  26926. func (s *DescribeImageAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeImageAttributeOutput {
  26927. s.RamdiskId = v
  26928. return s
  26929. }
  26930. // SetSriovNetSupport sets the SriovNetSupport field's value.
  26931. func (s *DescribeImageAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeImageAttributeOutput {
  26932. s.SriovNetSupport = v
  26933. return s
  26934. }
  26935. // Contains the parameters for DescribeImages.
  26936. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImagesRequest
  26937. type DescribeImagesInput struct {
  26938. _ struct{} `type:"structure"`
  26939. // Checks whether you have the required permissions for the action, without
  26940. // actually making the request, and provides an error response. If you have
  26941. // the required permissions, the error response is DryRunOperation. Otherwise,
  26942. // it is UnauthorizedOperation.
  26943. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26944. // Scopes the images by users with explicit launch permissions. Specify an AWS
  26945. // account ID, self (the sender of the request), or all (public AMIs).
  26946. ExecutableUsers []*string `locationName:"ExecutableBy" locationNameList:"ExecutableBy" type:"list"`
  26947. // One or more filters.
  26948. //
  26949. // * architecture - The image architecture (i386 | x86_64).
  26950. //
  26951. // * block-device-mapping.delete-on-termination - A Boolean value that indicates
  26952. // whether the Amazon EBS volume is deleted on instance termination.
  26953. //
  26954. // * block-device-mapping.device-name - The device name for the EBS volume
  26955. // (for example, /dev/sdh).
  26956. //
  26957. // * block-device-mapping.snapshot-id - The ID of the snapshot used for the
  26958. // EBS volume.
  26959. //
  26960. // * block-device-mapping.volume-size - The volume size of the EBS volume,
  26961. // in GiB.
  26962. //
  26963. // * block-device-mapping.volume-type - The volume type of the EBS volume
  26964. // (gp2 | io1 | st1 | sc1 | standard).
  26965. //
  26966. // * description - The description of the image (provided during image creation).
  26967. //
  26968. // * ena-support - A Boolean that indicates whether enhanced networking with
  26969. // ENA is enabled.
  26970. //
  26971. // * hypervisor - The hypervisor type (ovm | xen).
  26972. //
  26973. // * image-id - The ID of the image.
  26974. //
  26975. // * image-type - The image type (machine | kernel | ramdisk).
  26976. //
  26977. // * is-public - A Boolean that indicates whether the image is public.
  26978. //
  26979. // * kernel-id - The kernel ID.
  26980. //
  26981. // * manifest-location - The location of the image manifest.
  26982. //
  26983. // * name - The name of the AMI (provided during image creation).
  26984. //
  26985. // * owner-alias - String value from an Amazon-maintained list (amazon |
  26986. // aws-marketplace | microsoft) of snapshot owners. Not to be confused with
  26987. // the user-configured AWS account alias, which is set from the IAM console.
  26988. //
  26989. // * owner-id - The AWS account ID of the image owner.
  26990. //
  26991. // * platform - The platform. To only list Windows-based AMIs, use windows.
  26992. //
  26993. // * product-code - The product code.
  26994. //
  26995. // * product-code.type - The type of the product code (devpay | marketplace).
  26996. //
  26997. // * ramdisk-id - The RAM disk ID.
  26998. //
  26999. // * root-device-name - The name of the root device volume (for example,
  27000. // /dev/sda1).
  27001. //
  27002. // * root-device-type - The type of the root device volume (ebs | instance-store).
  27003. //
  27004. // * state - The state of the image (available | pending | failed).
  27005. //
  27006. // * state-reason-code - The reason code for the state change.
  27007. //
  27008. // * state-reason-message - The message for the state change.
  27009. //
  27010. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  27011. // Specify the key of the tag in the filter name and the value of the tag
  27012. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  27013. // for the filter name and X for the filter value.
  27014. //
  27015. // * tag-key - The key of a tag assigned to the resource. This filter is
  27016. // independent of the tag-value filter. For example, if you use both the
  27017. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  27018. // assigned both the tag key Purpose (regardless of what the tag's value
  27019. // is), and the tag value X (regardless of what the tag's key is). If you
  27020. // want to list only resources where Purpose is X, see the tag:key=value
  27021. // filter.
  27022. //
  27023. // * tag-value - The value of a tag assigned to the resource. This filter
  27024. // is independent of the tag-key filter.
  27025. //
  27026. // * virtualization-type - The virtualization type (paravirtual | hvm).
  27027. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  27028. // One or more image IDs.
  27029. //
  27030. // Default: Describes all images available to you.
  27031. ImageIds []*string `locationName:"ImageId" locationNameList:"ImageId" type:"list"`
  27032. // Filters the images by the owner. Specify an AWS account ID, self (owner is
  27033. // the sender of the request), or an AWS owner alias (valid values are amazon
  27034. // | aws-marketplace | microsoft). Omitting this option returns all images for
  27035. // which you have launch permissions, regardless of ownership.
  27036. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  27037. }
  27038. // String returns the string representation
  27039. func (s DescribeImagesInput) String() string {
  27040. return awsutil.Prettify(s)
  27041. }
  27042. // GoString returns the string representation
  27043. func (s DescribeImagesInput) GoString() string {
  27044. return s.String()
  27045. }
  27046. // SetDryRun sets the DryRun field's value.
  27047. func (s *DescribeImagesInput) SetDryRun(v bool) *DescribeImagesInput {
  27048. s.DryRun = &v
  27049. return s
  27050. }
  27051. // SetExecutableUsers sets the ExecutableUsers field's value.
  27052. func (s *DescribeImagesInput) SetExecutableUsers(v []*string) *DescribeImagesInput {
  27053. s.ExecutableUsers = v
  27054. return s
  27055. }
  27056. // SetFilters sets the Filters field's value.
  27057. func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput {
  27058. s.Filters = v
  27059. return s
  27060. }
  27061. // SetImageIds sets the ImageIds field's value.
  27062. func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput {
  27063. s.ImageIds = v
  27064. return s
  27065. }
  27066. // SetOwners sets the Owners field's value.
  27067. func (s *DescribeImagesInput) SetOwners(v []*string) *DescribeImagesInput {
  27068. s.Owners = v
  27069. return s
  27070. }
  27071. // Contains the output of DescribeImages.
  27072. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImagesResult
  27073. type DescribeImagesOutput struct {
  27074. _ struct{} `type:"structure"`
  27075. // Information about one or more images.
  27076. Images []*Image `locationName:"imagesSet" locationNameList:"item" type:"list"`
  27077. }
  27078. // String returns the string representation
  27079. func (s DescribeImagesOutput) String() string {
  27080. return awsutil.Prettify(s)
  27081. }
  27082. // GoString returns the string representation
  27083. func (s DescribeImagesOutput) GoString() string {
  27084. return s.String()
  27085. }
  27086. // SetImages sets the Images field's value.
  27087. func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput {
  27088. s.Images = v
  27089. return s
  27090. }
  27091. // Contains the parameters for DescribeImportImageTasks.
  27092. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasksRequest
  27093. type DescribeImportImageTasksInput struct {
  27094. _ struct{} `type:"structure"`
  27095. // Checks whether you have the required permissions for the action, without
  27096. // actually making the request, and provides an error response. If you have
  27097. // the required permissions, the error response is DryRunOperation. Otherwise,
  27098. // it is UnauthorizedOperation.
  27099. DryRun *bool `type:"boolean"`
  27100. // Filter tasks using the task-state filter and one of the following values:
  27101. // active, completed, deleting, deleted.
  27102. Filters []*Filter `locationNameList:"Filter" type:"list"`
  27103. // A list of import image task IDs.
  27104. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  27105. // The maximum number of results to return in a single call. To retrieve the
  27106. // remaining results, make another call with the returned NextToken value.
  27107. MaxResults *int64 `type:"integer"`
  27108. // A token that indicates the next page of results.
  27109. NextToken *string `type:"string"`
  27110. }
  27111. // String returns the string representation
  27112. func (s DescribeImportImageTasksInput) String() string {
  27113. return awsutil.Prettify(s)
  27114. }
  27115. // GoString returns the string representation
  27116. func (s DescribeImportImageTasksInput) GoString() string {
  27117. return s.String()
  27118. }
  27119. // SetDryRun sets the DryRun field's value.
  27120. func (s *DescribeImportImageTasksInput) SetDryRun(v bool) *DescribeImportImageTasksInput {
  27121. s.DryRun = &v
  27122. return s
  27123. }
  27124. // SetFilters sets the Filters field's value.
  27125. func (s *DescribeImportImageTasksInput) SetFilters(v []*Filter) *DescribeImportImageTasksInput {
  27126. s.Filters = v
  27127. return s
  27128. }
  27129. // SetImportTaskIds sets the ImportTaskIds field's value.
  27130. func (s *DescribeImportImageTasksInput) SetImportTaskIds(v []*string) *DescribeImportImageTasksInput {
  27131. s.ImportTaskIds = v
  27132. return s
  27133. }
  27134. // SetMaxResults sets the MaxResults field's value.
  27135. func (s *DescribeImportImageTasksInput) SetMaxResults(v int64) *DescribeImportImageTasksInput {
  27136. s.MaxResults = &v
  27137. return s
  27138. }
  27139. // SetNextToken sets the NextToken field's value.
  27140. func (s *DescribeImportImageTasksInput) SetNextToken(v string) *DescribeImportImageTasksInput {
  27141. s.NextToken = &v
  27142. return s
  27143. }
  27144. // Contains the output for DescribeImportImageTasks.
  27145. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasksResult
  27146. type DescribeImportImageTasksOutput struct {
  27147. _ struct{} `type:"structure"`
  27148. // A list of zero or more import image tasks that are currently active or were
  27149. // completed or canceled in the previous 7 days.
  27150. ImportImageTasks []*ImportImageTask `locationName:"importImageTaskSet" locationNameList:"item" type:"list"`
  27151. // The token to use to get the next page of results. This value is null when
  27152. // there are no more results to return.
  27153. NextToken *string `locationName:"nextToken" type:"string"`
  27154. }
  27155. // String returns the string representation
  27156. func (s DescribeImportImageTasksOutput) String() string {
  27157. return awsutil.Prettify(s)
  27158. }
  27159. // GoString returns the string representation
  27160. func (s DescribeImportImageTasksOutput) GoString() string {
  27161. return s.String()
  27162. }
  27163. // SetImportImageTasks sets the ImportImageTasks field's value.
  27164. func (s *DescribeImportImageTasksOutput) SetImportImageTasks(v []*ImportImageTask) *DescribeImportImageTasksOutput {
  27165. s.ImportImageTasks = v
  27166. return s
  27167. }
  27168. // SetNextToken sets the NextToken field's value.
  27169. func (s *DescribeImportImageTasksOutput) SetNextToken(v string) *DescribeImportImageTasksOutput {
  27170. s.NextToken = &v
  27171. return s
  27172. }
  27173. // Contains the parameters for DescribeImportSnapshotTasks.
  27174. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasksRequest
  27175. type DescribeImportSnapshotTasksInput struct {
  27176. _ struct{} `type:"structure"`
  27177. // Checks whether you have the required permissions for the action, without
  27178. // actually making the request, and provides an error response. If you have
  27179. // the required permissions, the error response is DryRunOperation. Otherwise,
  27180. // it is UnauthorizedOperation.
  27181. DryRun *bool `type:"boolean"`
  27182. // One or more filters.
  27183. Filters []*Filter `locationNameList:"Filter" type:"list"`
  27184. // A list of import snapshot task IDs.
  27185. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  27186. // The maximum number of results to return in a single call. To retrieve the
  27187. // remaining results, make another call with the returned NextToken value.
  27188. MaxResults *int64 `type:"integer"`
  27189. // A token that indicates the next page of results.
  27190. NextToken *string `type:"string"`
  27191. }
  27192. // String returns the string representation
  27193. func (s DescribeImportSnapshotTasksInput) String() string {
  27194. return awsutil.Prettify(s)
  27195. }
  27196. // GoString returns the string representation
  27197. func (s DescribeImportSnapshotTasksInput) GoString() string {
  27198. return s.String()
  27199. }
  27200. // SetDryRun sets the DryRun field's value.
  27201. func (s *DescribeImportSnapshotTasksInput) SetDryRun(v bool) *DescribeImportSnapshotTasksInput {
  27202. s.DryRun = &v
  27203. return s
  27204. }
  27205. // SetFilters sets the Filters field's value.
  27206. func (s *DescribeImportSnapshotTasksInput) SetFilters(v []*Filter) *DescribeImportSnapshotTasksInput {
  27207. s.Filters = v
  27208. return s
  27209. }
  27210. // SetImportTaskIds sets the ImportTaskIds field's value.
  27211. func (s *DescribeImportSnapshotTasksInput) SetImportTaskIds(v []*string) *DescribeImportSnapshotTasksInput {
  27212. s.ImportTaskIds = v
  27213. return s
  27214. }
  27215. // SetMaxResults sets the MaxResults field's value.
  27216. func (s *DescribeImportSnapshotTasksInput) SetMaxResults(v int64) *DescribeImportSnapshotTasksInput {
  27217. s.MaxResults = &v
  27218. return s
  27219. }
  27220. // SetNextToken sets the NextToken field's value.
  27221. func (s *DescribeImportSnapshotTasksInput) SetNextToken(v string) *DescribeImportSnapshotTasksInput {
  27222. s.NextToken = &v
  27223. return s
  27224. }
  27225. // Contains the output for DescribeImportSnapshotTasks.
  27226. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasksResult
  27227. type DescribeImportSnapshotTasksOutput struct {
  27228. _ struct{} `type:"structure"`
  27229. // A list of zero or more import snapshot tasks that are currently active or
  27230. // were completed or canceled in the previous 7 days.
  27231. ImportSnapshotTasks []*ImportSnapshotTask `locationName:"importSnapshotTaskSet" locationNameList:"item" type:"list"`
  27232. // The token to use to get the next page of results. This value is null when
  27233. // there are no more results to return.
  27234. NextToken *string `locationName:"nextToken" type:"string"`
  27235. }
  27236. // String returns the string representation
  27237. func (s DescribeImportSnapshotTasksOutput) String() string {
  27238. return awsutil.Prettify(s)
  27239. }
  27240. // GoString returns the string representation
  27241. func (s DescribeImportSnapshotTasksOutput) GoString() string {
  27242. return s.String()
  27243. }
  27244. // SetImportSnapshotTasks sets the ImportSnapshotTasks field's value.
  27245. func (s *DescribeImportSnapshotTasksOutput) SetImportSnapshotTasks(v []*ImportSnapshotTask) *DescribeImportSnapshotTasksOutput {
  27246. s.ImportSnapshotTasks = v
  27247. return s
  27248. }
  27249. // SetNextToken sets the NextToken field's value.
  27250. func (s *DescribeImportSnapshotTasksOutput) SetNextToken(v string) *DescribeImportSnapshotTasksOutput {
  27251. s.NextToken = &v
  27252. return s
  27253. }
  27254. // Contains the parameters for DescribeInstanceAttribute.
  27255. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttributeRequest
  27256. type DescribeInstanceAttributeInput struct {
  27257. _ struct{} `type:"structure"`
  27258. // The instance attribute.
  27259. //
  27260. // Note: The enaSupport attribute is not supported at this time.
  27261. //
  27262. // Attribute is a required field
  27263. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  27264. // Checks whether you have the required permissions for the action, without
  27265. // actually making the request, and provides an error response. If you have
  27266. // the required permissions, the error response is DryRunOperation. Otherwise,
  27267. // it is UnauthorizedOperation.
  27268. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27269. // The ID of the instance.
  27270. //
  27271. // InstanceId is a required field
  27272. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  27273. }
  27274. // String returns the string representation
  27275. func (s DescribeInstanceAttributeInput) String() string {
  27276. return awsutil.Prettify(s)
  27277. }
  27278. // GoString returns the string representation
  27279. func (s DescribeInstanceAttributeInput) GoString() string {
  27280. return s.String()
  27281. }
  27282. // Validate inspects the fields of the type to determine if they are valid.
  27283. func (s *DescribeInstanceAttributeInput) Validate() error {
  27284. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAttributeInput"}
  27285. if s.Attribute == nil {
  27286. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  27287. }
  27288. if s.InstanceId == nil {
  27289. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  27290. }
  27291. if invalidParams.Len() > 0 {
  27292. return invalidParams
  27293. }
  27294. return nil
  27295. }
  27296. // SetAttribute sets the Attribute field's value.
  27297. func (s *DescribeInstanceAttributeInput) SetAttribute(v string) *DescribeInstanceAttributeInput {
  27298. s.Attribute = &v
  27299. return s
  27300. }
  27301. // SetDryRun sets the DryRun field's value.
  27302. func (s *DescribeInstanceAttributeInput) SetDryRun(v bool) *DescribeInstanceAttributeInput {
  27303. s.DryRun = &v
  27304. return s
  27305. }
  27306. // SetInstanceId sets the InstanceId field's value.
  27307. func (s *DescribeInstanceAttributeInput) SetInstanceId(v string) *DescribeInstanceAttributeInput {
  27308. s.InstanceId = &v
  27309. return s
  27310. }
  27311. // Describes an instance attribute.
  27312. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceAttribute
  27313. type DescribeInstanceAttributeOutput struct {
  27314. _ struct{} `type:"structure"`
  27315. // The block device mapping of the instance.
  27316. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  27317. // If the value is true, you can't terminate the instance through the Amazon
  27318. // EC2 console, CLI, or API; otherwise, you can.
  27319. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  27320. // Indicates whether the instance is optimized for EBS I/O.
  27321. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  27322. // Indicates whether enhanced networking with ENA is enabled.
  27323. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  27324. // The security groups associated with the instance.
  27325. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  27326. // The ID of the instance.
  27327. InstanceId *string `locationName:"instanceId" type:"string"`
  27328. // Indicates whether an instance stops or terminates when you initiate shutdown
  27329. // from the instance (using the operating system command for system shutdown).
  27330. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  27331. // The instance type.
  27332. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  27333. // The kernel ID.
  27334. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  27335. // A list of product codes.
  27336. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  27337. // The RAM disk ID.
  27338. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  27339. // The name of the root device (for example, /dev/sda1 or /dev/xvda).
  27340. RootDeviceName *AttributeValue `locationName:"rootDeviceName" type:"structure"`
  27341. // Indicates whether source/destination checking is enabled. A value of true
  27342. // means checking is enabled, and false means checking is disabled. This value
  27343. // must be false for a NAT instance to perform NAT.
  27344. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  27345. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  27346. // interface is enabled.
  27347. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  27348. // The user data.
  27349. UserData *AttributeValue `locationName:"userData" type:"structure"`
  27350. }
  27351. // String returns the string representation
  27352. func (s DescribeInstanceAttributeOutput) String() string {
  27353. return awsutil.Prettify(s)
  27354. }
  27355. // GoString returns the string representation
  27356. func (s DescribeInstanceAttributeOutput) GoString() string {
  27357. return s.String()
  27358. }
  27359. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  27360. func (s *DescribeInstanceAttributeOutput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *DescribeInstanceAttributeOutput {
  27361. s.BlockDeviceMappings = v
  27362. return s
  27363. }
  27364. // SetDisableApiTermination sets the DisableApiTermination field's value.
  27365. func (s *DescribeInstanceAttributeOutput) SetDisableApiTermination(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  27366. s.DisableApiTermination = v
  27367. return s
  27368. }
  27369. // SetEbsOptimized sets the EbsOptimized field's value.
  27370. func (s *DescribeInstanceAttributeOutput) SetEbsOptimized(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  27371. s.EbsOptimized = v
  27372. return s
  27373. }
  27374. // SetEnaSupport sets the EnaSupport field's value.
  27375. func (s *DescribeInstanceAttributeOutput) SetEnaSupport(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  27376. s.EnaSupport = v
  27377. return s
  27378. }
  27379. // SetGroups sets the Groups field's value.
  27380. func (s *DescribeInstanceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeInstanceAttributeOutput {
  27381. s.Groups = v
  27382. return s
  27383. }
  27384. // SetInstanceId sets the InstanceId field's value.
  27385. func (s *DescribeInstanceAttributeOutput) SetInstanceId(v string) *DescribeInstanceAttributeOutput {
  27386. s.InstanceId = &v
  27387. return s
  27388. }
  27389. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  27390. func (s *DescribeInstanceAttributeOutput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *DescribeInstanceAttributeOutput {
  27391. s.InstanceInitiatedShutdownBehavior = v
  27392. return s
  27393. }
  27394. // SetInstanceType sets the InstanceType field's value.
  27395. func (s *DescribeInstanceAttributeOutput) SetInstanceType(v *AttributeValue) *DescribeInstanceAttributeOutput {
  27396. s.InstanceType = v
  27397. return s
  27398. }
  27399. // SetKernelId sets the KernelId field's value.
  27400. func (s *DescribeInstanceAttributeOutput) SetKernelId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  27401. s.KernelId = v
  27402. return s
  27403. }
  27404. // SetProductCodes sets the ProductCodes field's value.
  27405. func (s *DescribeInstanceAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeInstanceAttributeOutput {
  27406. s.ProductCodes = v
  27407. return s
  27408. }
  27409. // SetRamdiskId sets the RamdiskId field's value.
  27410. func (s *DescribeInstanceAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  27411. s.RamdiskId = v
  27412. return s
  27413. }
  27414. // SetRootDeviceName sets the RootDeviceName field's value.
  27415. func (s *DescribeInstanceAttributeOutput) SetRootDeviceName(v *AttributeValue) *DescribeInstanceAttributeOutput {
  27416. s.RootDeviceName = v
  27417. return s
  27418. }
  27419. // SetSourceDestCheck sets the SourceDestCheck field's value.
  27420. func (s *DescribeInstanceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  27421. s.SourceDestCheck = v
  27422. return s
  27423. }
  27424. // SetSriovNetSupport sets the SriovNetSupport field's value.
  27425. func (s *DescribeInstanceAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeInstanceAttributeOutput {
  27426. s.SriovNetSupport = v
  27427. return s
  27428. }
  27429. // SetUserData sets the UserData field's value.
  27430. func (s *DescribeInstanceAttributeOutput) SetUserData(v *AttributeValue) *DescribeInstanceAttributeOutput {
  27431. s.UserData = v
  27432. return s
  27433. }
  27434. // Contains the parameters for DescribeInstanceStatus.
  27435. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatusRequest
  27436. type DescribeInstanceStatusInput struct {
  27437. _ struct{} `type:"structure"`
  27438. // Checks whether you have the required permissions for the action, without
  27439. // actually making the request, and provides an error response. If you have
  27440. // the required permissions, the error response is DryRunOperation. Otherwise,
  27441. // it is UnauthorizedOperation.
  27442. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27443. // One or more filters.
  27444. //
  27445. // * availability-zone - The Availability Zone of the instance.
  27446. //
  27447. // * event.code - The code for the scheduled event (instance-reboot | system-reboot
  27448. // | system-maintenance | instance-retirement | instance-stop).
  27449. //
  27450. // * event.description - A description of the event.
  27451. //
  27452. // * event.not-after - The latest end time for the scheduled event (for example,
  27453. // 2014-09-15T17:15:20.000Z).
  27454. //
  27455. // * event.not-before - The earliest start time for the scheduled event (for
  27456. // example, 2014-09-15T17:15:20.000Z).
  27457. //
  27458. // * instance-state-code - The code for the instance state, as a 16-bit unsigned
  27459. // integer. The high byte is an opaque internal value and should be ignored.
  27460. // The low byte is set based on the state represented. The valid values are
  27461. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  27462. // and 80 (stopped).
  27463. //
  27464. // * instance-state-name - The state of the instance (pending | running |
  27465. // shutting-down | terminated | stopping | stopped).
  27466. //
  27467. // * instance-status.reachability - Filters on instance status where the
  27468. // name is reachability (passed | failed | initializing | insufficient-data).
  27469. //
  27470. // * instance-status.status - The status of the instance (ok | impaired |
  27471. // initializing | insufficient-data | not-applicable).
  27472. //
  27473. // * system-status.reachability - Filters on system status where the name
  27474. // is reachability (passed | failed | initializing | insufficient-data).
  27475. //
  27476. // * system-status.status - The system status of the instance (ok | impaired
  27477. // | initializing | insufficient-data | not-applicable).
  27478. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  27479. // When true, includes the health status for all instances. When false, includes
  27480. // the health status for running instances only.
  27481. //
  27482. // Default: false
  27483. IncludeAllInstances *bool `locationName:"includeAllInstances" type:"boolean"`
  27484. // One or more instance IDs.
  27485. //
  27486. // Default: Describes all your instances.
  27487. //
  27488. // Constraints: Maximum 100 explicitly specified instance IDs.
  27489. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  27490. // The maximum number of results to return in a single call. To retrieve the
  27491. // remaining results, make another call with the returned NextToken value. This
  27492. // value can be between 5 and 1000. You cannot specify this parameter and the
  27493. // instance IDs parameter in the same call.
  27494. MaxResults *int64 `type:"integer"`
  27495. // The token to retrieve the next page of results.
  27496. NextToken *string `type:"string"`
  27497. }
  27498. // String returns the string representation
  27499. func (s DescribeInstanceStatusInput) String() string {
  27500. return awsutil.Prettify(s)
  27501. }
  27502. // GoString returns the string representation
  27503. func (s DescribeInstanceStatusInput) GoString() string {
  27504. return s.String()
  27505. }
  27506. // SetDryRun sets the DryRun field's value.
  27507. func (s *DescribeInstanceStatusInput) SetDryRun(v bool) *DescribeInstanceStatusInput {
  27508. s.DryRun = &v
  27509. return s
  27510. }
  27511. // SetFilters sets the Filters field's value.
  27512. func (s *DescribeInstanceStatusInput) SetFilters(v []*Filter) *DescribeInstanceStatusInput {
  27513. s.Filters = v
  27514. return s
  27515. }
  27516. // SetIncludeAllInstances sets the IncludeAllInstances field's value.
  27517. func (s *DescribeInstanceStatusInput) SetIncludeAllInstances(v bool) *DescribeInstanceStatusInput {
  27518. s.IncludeAllInstances = &v
  27519. return s
  27520. }
  27521. // SetInstanceIds sets the InstanceIds field's value.
  27522. func (s *DescribeInstanceStatusInput) SetInstanceIds(v []*string) *DescribeInstanceStatusInput {
  27523. s.InstanceIds = v
  27524. return s
  27525. }
  27526. // SetMaxResults sets the MaxResults field's value.
  27527. func (s *DescribeInstanceStatusInput) SetMaxResults(v int64) *DescribeInstanceStatusInput {
  27528. s.MaxResults = &v
  27529. return s
  27530. }
  27531. // SetNextToken sets the NextToken field's value.
  27532. func (s *DescribeInstanceStatusInput) SetNextToken(v string) *DescribeInstanceStatusInput {
  27533. s.NextToken = &v
  27534. return s
  27535. }
  27536. // Contains the output of DescribeInstanceStatus.
  27537. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatusResult
  27538. type DescribeInstanceStatusOutput struct {
  27539. _ struct{} `type:"structure"`
  27540. // One or more instance status descriptions.
  27541. InstanceStatuses []*InstanceStatus `locationName:"instanceStatusSet" locationNameList:"item" type:"list"`
  27542. // The token to use to retrieve the next page of results. This value is null
  27543. // when there are no more results to return.
  27544. NextToken *string `locationName:"nextToken" type:"string"`
  27545. }
  27546. // String returns the string representation
  27547. func (s DescribeInstanceStatusOutput) String() string {
  27548. return awsutil.Prettify(s)
  27549. }
  27550. // GoString returns the string representation
  27551. func (s DescribeInstanceStatusOutput) GoString() string {
  27552. return s.String()
  27553. }
  27554. // SetInstanceStatuses sets the InstanceStatuses field's value.
  27555. func (s *DescribeInstanceStatusOutput) SetInstanceStatuses(v []*InstanceStatus) *DescribeInstanceStatusOutput {
  27556. s.InstanceStatuses = v
  27557. return s
  27558. }
  27559. // SetNextToken sets the NextToken field's value.
  27560. func (s *DescribeInstanceStatusOutput) SetNextToken(v string) *DescribeInstanceStatusOutput {
  27561. s.NextToken = &v
  27562. return s
  27563. }
  27564. // Contains the parameters for DescribeInstances.
  27565. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstancesRequest
  27566. type DescribeInstancesInput struct {
  27567. _ struct{} `type:"structure"`
  27568. // Checks whether you have the required permissions for the action, without
  27569. // actually making the request, and provides an error response. If you have
  27570. // the required permissions, the error response is DryRunOperation. Otherwise,
  27571. // it is UnauthorizedOperation.
  27572. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27573. // One or more filters.
  27574. //
  27575. // * affinity - The affinity setting for an instance running on a Dedicated
  27576. // Host (default | host).
  27577. //
  27578. // * architecture - The instance architecture (i386 | x86_64).
  27579. //
  27580. // * availability-zone - The Availability Zone of the instance.
  27581. //
  27582. // * block-device-mapping.attach-time - The attach time for an EBS volume
  27583. // mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
  27584. //
  27585. // * block-device-mapping.delete-on-termination - A Boolean that indicates
  27586. // whether the EBS volume is deleted on instance termination.
  27587. //
  27588. // * block-device-mapping.device-name - The device name for the EBS volume
  27589. // (for example, /dev/sdh or xvdh).
  27590. //
  27591. // * block-device-mapping.status - The status for the EBS volume (attaching
  27592. // | attached | detaching | detached).
  27593. //
  27594. // * block-device-mapping.volume-id - The volume ID of the EBS volume.
  27595. //
  27596. // * client-token - The idempotency token you provided when you launched
  27597. // the instance.
  27598. //
  27599. // * dns-name - The public DNS name of the instance.
  27600. //
  27601. // * group-id - The ID of the security group for the instance. EC2-Classic
  27602. // only.
  27603. //
  27604. // * group-name - The name of the security group for the instance. EC2-Classic
  27605. // only.
  27606. //
  27607. // * host-id - The ID of the Dedicated Host on which the instance is running,
  27608. // if applicable.
  27609. //
  27610. // * hypervisor - The hypervisor type of the instance (ovm | xen).
  27611. //
  27612. // * iam-instance-profile.arn - The instance profile associated with the
  27613. // instance. Specified as an ARN.
  27614. //
  27615. // * image-id - The ID of the image used to launch the instance.
  27616. //
  27617. // * instance-id - The ID of the instance.
  27618. //
  27619. // * instance-lifecycle - Indicates whether this is a Spot Instance or a
  27620. // Scheduled Instance (spot | scheduled).
  27621. //
  27622. // * instance-state-code - The state of the instance, as a 16-bit unsigned
  27623. // integer. The high byte is an opaque internal value and should be ignored.
  27624. // The low byte is set based on the state represented. The valid values are:
  27625. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  27626. // and 80 (stopped).
  27627. //
  27628. // * instance-state-name - The state of the instance (pending | running |
  27629. // shutting-down | terminated | stopping | stopped).
  27630. //
  27631. // * instance-type - The type of instance (for example, t2.micro).
  27632. //
  27633. // * instance.group-id - The ID of the security group for the instance.
  27634. //
  27635. // * instance.group-name - The name of the security group for the instance.
  27636. //
  27637. //
  27638. // * ip-address - The public IPv4 address of the instance.
  27639. //
  27640. // * kernel-id - The kernel ID.
  27641. //
  27642. // * key-name - The name of the key pair used when the instance was launched.
  27643. //
  27644. // * launch-index - When launching multiple instances, this is the index
  27645. // for the instance in the launch group (for example, 0, 1, 2, and so on).
  27646. //
  27647. //
  27648. // * launch-time - The time when the instance was launched.
  27649. //
  27650. // * monitoring-state - Indicates whether detailed monitoring is enabled
  27651. // (disabled | enabled).
  27652. //
  27653. // * network-interface.addresses.private-ip-address - The private IPv4 address
  27654. // associated with the network interface.
  27655. //
  27656. // * network-interface.addresses.primary - Specifies whether the IPv4 address
  27657. // of the network interface is the primary private IPv4 address.
  27658. //
  27659. // * network-interface.addresses.association.public-ip - The ID of the association
  27660. // of an Elastic IP address (IPv4) with a network interface.
  27661. //
  27662. // * network-interface.addresses.association.ip-owner-id - The owner ID of
  27663. // the private IPv4 address associated with the network interface.
  27664. //
  27665. // * network-interface.association.public-ip - The address of the Elastic
  27666. // IP address (IPv4) bound to the network interface.
  27667. //
  27668. // * network-interface.association.ip-owner-id - The owner of the Elastic
  27669. // IP address (IPv4) associated with the network interface.
  27670. //
  27671. // * network-interface.association.allocation-id - The allocation ID returned
  27672. // when you allocated the Elastic IP address (IPv4) for your network interface.
  27673. //
  27674. // * network-interface.association.association-id - The association ID returned
  27675. // when the network interface was associated with an IPv4 address.
  27676. //
  27677. // * network-interface.attachment.attachment-id - The ID of the interface
  27678. // attachment.
  27679. //
  27680. // * network-interface.attachment.instance-id - The ID of the instance to
  27681. // which the network interface is attached.
  27682. //
  27683. // * network-interface.attachment.instance-owner-id - The owner ID of the
  27684. // instance to which the network interface is attached.
  27685. //
  27686. // * network-interface.attachment.device-index - The device index to which
  27687. // the network interface is attached.
  27688. //
  27689. // * network-interface.attachment.status - The status of the attachment (attaching
  27690. // | attached | detaching | detached).
  27691. //
  27692. // * network-interface.attachment.attach-time - The time that the network
  27693. // interface was attached to an instance.
  27694. //
  27695. // * network-interface.attachment.delete-on-termination - Specifies whether
  27696. // the attachment is deleted when an instance is terminated.
  27697. //
  27698. // * network-interface.availability-zone - The Availability Zone for the
  27699. // network interface.
  27700. //
  27701. // * network-interface.description - The description of the network interface.
  27702. //
  27703. // * network-interface.group-id - The ID of a security group associated with
  27704. // the network interface.
  27705. //
  27706. // * network-interface.group-name - The name of a security group associated
  27707. // with the network interface.
  27708. //
  27709. // * network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated
  27710. // with the network interface.
  27711. //
  27712. // * network-interface.mac-address - The MAC address of the network interface.
  27713. //
  27714. // * network-interface.network-interface-id - The ID of the network interface.
  27715. //
  27716. // * network-interface.owner-id - The ID of the owner of the network interface.
  27717. //
  27718. // * network-interface.private-dns-name - The private DNS name of the network
  27719. // interface.
  27720. //
  27721. // * network-interface.requester-id - The requester ID for the network interface.
  27722. //
  27723. // * network-interface.requester-managed - Indicates whether the network
  27724. // interface is being managed by AWS.
  27725. //
  27726. // * network-interface.status - The status of the network interface (available)
  27727. // | in-use).
  27728. //
  27729. // * network-interface.source-dest-check - Whether the network interface
  27730. // performs source/destination checking. A value of true means checking is
  27731. // enabled, and false means checking is disabled. The value must be false
  27732. // for the network interface to perform network address translation (NAT)
  27733. // in your VPC.
  27734. //
  27735. // * network-interface.subnet-id - The ID of the subnet for the network interface.
  27736. //
  27737. // * network-interface.vpc-id - The ID of the VPC for the network interface.
  27738. //
  27739. // * owner-id - The AWS account ID of the instance owner.
  27740. //
  27741. // * placement-group-name - The name of the placement group for the instance.
  27742. //
  27743. // * platform - The platform. Use windows if you have Windows instances;
  27744. // otherwise, leave blank.
  27745. //
  27746. // * private-dns-name - The private IPv4 DNS name of the instance.
  27747. //
  27748. // * private-ip-address - The private IPv4 address of the instance.
  27749. //
  27750. // * product-code - The product code associated with the AMI used to launch
  27751. // the instance.
  27752. //
  27753. // * product-code.type - The type of product code (devpay | marketplace).
  27754. //
  27755. // * ramdisk-id - The RAM disk ID.
  27756. //
  27757. // * reason - The reason for the current state of the instance (for example,
  27758. // shows "User Initiated [date]" when you stop or terminate the instance).
  27759. // Similar to the state-reason-code filter.
  27760. //
  27761. // * requester-id - The ID of the entity that launched the instance on your
  27762. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  27763. //
  27764. // * reservation-id - The ID of the instance's reservation. A reservation
  27765. // ID is created any time you launch an instance. A reservation ID has a
  27766. // one-to-one relationship with an instance launch request, but can be associated
  27767. // with more than one instance if you launch multiple instances using the
  27768. // same launch request. For example, if you launch one instance, you'll get
  27769. // one reservation ID. If you launch ten instances using the same launch
  27770. // request, you'll also get one reservation ID.
  27771. //
  27772. // * root-device-name - The name of the root device for the instance (for
  27773. // example, /dev/sda1 or /dev/xvda).
  27774. //
  27775. // * root-device-type - The type of root device that the instance uses (ebs
  27776. // | instance-store).
  27777. //
  27778. // * source-dest-check - Indicates whether the instance performs source/destination
  27779. // checking. A value of true means that checking is enabled, and false means
  27780. // checking is disabled. The value must be false for the instance to perform
  27781. // network address translation (NAT) in your VPC.
  27782. //
  27783. // * spot-instance-request-id - The ID of the Spot instance request.
  27784. //
  27785. // * state-reason-code - The reason code for the state change.
  27786. //
  27787. // * state-reason-message - A message that describes the state change.
  27788. //
  27789. // * subnet-id - The ID of the subnet for the instance.
  27790. //
  27791. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  27792. // Specify the key of the tag in the filter name and the value of the tag
  27793. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  27794. // for the filter name and X for the filter value.
  27795. //
  27796. // * tag-key - The key of a tag assigned to the resource. This filter is
  27797. // independent of the tag-value filter. For example, if you use both the
  27798. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  27799. // assigned both the tag key Purpose (regardless of what the tag's value
  27800. // is), and the tag value X (regardless of what the tag's key is). If you
  27801. // want to list only resources where Purpose is X, see the tag:key=value
  27802. // filter.
  27803. //
  27804. // * tag-value - The value of a tag assigned to the resource. This filter
  27805. // is independent of the tag-key filter.
  27806. //
  27807. // * tenancy - The tenancy of an instance (dedicated | default | host).
  27808. //
  27809. // * virtualization-type - The virtualization type of the instance (paravirtual
  27810. // | hvm).
  27811. //
  27812. // * vpc-id - The ID of the VPC that the instance is running in.
  27813. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  27814. // One or more instance IDs.
  27815. //
  27816. // Default: Describes all your instances.
  27817. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  27818. // The maximum number of results to return in a single call. To retrieve the
  27819. // remaining results, make another call with the returned NextToken value. This
  27820. // value can be between 5 and 1000. You cannot specify this parameter and the
  27821. // instance IDs parameter or tag filters in the same call.
  27822. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  27823. // The token to request the next page of results.
  27824. NextToken *string `locationName:"nextToken" type:"string"`
  27825. }
  27826. // String returns the string representation
  27827. func (s DescribeInstancesInput) String() string {
  27828. return awsutil.Prettify(s)
  27829. }
  27830. // GoString returns the string representation
  27831. func (s DescribeInstancesInput) GoString() string {
  27832. return s.String()
  27833. }
  27834. // SetDryRun sets the DryRun field's value.
  27835. func (s *DescribeInstancesInput) SetDryRun(v bool) *DescribeInstancesInput {
  27836. s.DryRun = &v
  27837. return s
  27838. }
  27839. // SetFilters sets the Filters field's value.
  27840. func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput {
  27841. s.Filters = v
  27842. return s
  27843. }
  27844. // SetInstanceIds sets the InstanceIds field's value.
  27845. func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput {
  27846. s.InstanceIds = v
  27847. return s
  27848. }
  27849. // SetMaxResults sets the MaxResults field's value.
  27850. func (s *DescribeInstancesInput) SetMaxResults(v int64) *DescribeInstancesInput {
  27851. s.MaxResults = &v
  27852. return s
  27853. }
  27854. // SetNextToken sets the NextToken field's value.
  27855. func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput {
  27856. s.NextToken = &v
  27857. return s
  27858. }
  27859. // Contains the output of DescribeInstances.
  27860. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstancesResult
  27861. type DescribeInstancesOutput struct {
  27862. _ struct{} `type:"structure"`
  27863. // The token to use to retrieve the next page of results. This value is null
  27864. // when there are no more results to return.
  27865. NextToken *string `locationName:"nextToken" type:"string"`
  27866. // Zero or more reservations.
  27867. Reservations []*Reservation `locationName:"reservationSet" locationNameList:"item" type:"list"`
  27868. }
  27869. // String returns the string representation
  27870. func (s DescribeInstancesOutput) String() string {
  27871. return awsutil.Prettify(s)
  27872. }
  27873. // GoString returns the string representation
  27874. func (s DescribeInstancesOutput) GoString() string {
  27875. return s.String()
  27876. }
  27877. // SetNextToken sets the NextToken field's value.
  27878. func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutput {
  27879. s.NextToken = &v
  27880. return s
  27881. }
  27882. // SetReservations sets the Reservations field's value.
  27883. func (s *DescribeInstancesOutput) SetReservations(v []*Reservation) *DescribeInstancesOutput {
  27884. s.Reservations = v
  27885. return s
  27886. }
  27887. // Contains the parameters for DescribeInternetGateways.
  27888. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGatewaysRequest
  27889. type DescribeInternetGatewaysInput struct {
  27890. _ struct{} `type:"structure"`
  27891. // Checks whether you have the required permissions for the action, without
  27892. // actually making the request, and provides an error response. If you have
  27893. // the required permissions, the error response is DryRunOperation. Otherwise,
  27894. // it is UnauthorizedOperation.
  27895. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27896. // One or more filters.
  27897. //
  27898. // * attachment.state - The current state of the attachment between the gateway
  27899. // and the VPC (available). Present only if a VPC is attached.
  27900. //
  27901. // * attachment.vpc-id - The ID of an attached VPC.
  27902. //
  27903. // * internet-gateway-id - The ID of the Internet gateway.
  27904. //
  27905. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  27906. // Specify the key of the tag in the filter name and the value of the tag
  27907. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  27908. // for the filter name and X for the filter value.
  27909. //
  27910. // * tag-key - The key of a tag assigned to the resource. This filter is
  27911. // independent of the tag-value filter. For example, if you use both the
  27912. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  27913. // assigned both the tag key Purpose (regardless of what the tag's value
  27914. // is), and the tag value X (regardless of what the tag's key is). If you
  27915. // want to list only resources where Purpose is X, see the tag:key=value
  27916. // filter.
  27917. //
  27918. // * tag-value - The value of a tag assigned to the resource. This filter
  27919. // is independent of the tag-key filter.
  27920. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  27921. // One or more Internet gateway IDs.
  27922. //
  27923. // Default: Describes all your Internet gateways.
  27924. InternetGatewayIds []*string `locationName:"internetGatewayId" locationNameList:"item" type:"list"`
  27925. }
  27926. // String returns the string representation
  27927. func (s DescribeInternetGatewaysInput) String() string {
  27928. return awsutil.Prettify(s)
  27929. }
  27930. // GoString returns the string representation
  27931. func (s DescribeInternetGatewaysInput) GoString() string {
  27932. return s.String()
  27933. }
  27934. // SetDryRun sets the DryRun field's value.
  27935. func (s *DescribeInternetGatewaysInput) SetDryRun(v bool) *DescribeInternetGatewaysInput {
  27936. s.DryRun = &v
  27937. return s
  27938. }
  27939. // SetFilters sets the Filters field's value.
  27940. func (s *DescribeInternetGatewaysInput) SetFilters(v []*Filter) *DescribeInternetGatewaysInput {
  27941. s.Filters = v
  27942. return s
  27943. }
  27944. // SetInternetGatewayIds sets the InternetGatewayIds field's value.
  27945. func (s *DescribeInternetGatewaysInput) SetInternetGatewayIds(v []*string) *DescribeInternetGatewaysInput {
  27946. s.InternetGatewayIds = v
  27947. return s
  27948. }
  27949. // Contains the output of DescribeInternetGateways.
  27950. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGatewaysResult
  27951. type DescribeInternetGatewaysOutput struct {
  27952. _ struct{} `type:"structure"`
  27953. // Information about one or more Internet gateways.
  27954. InternetGateways []*InternetGateway `locationName:"internetGatewaySet" locationNameList:"item" type:"list"`
  27955. }
  27956. // String returns the string representation
  27957. func (s DescribeInternetGatewaysOutput) String() string {
  27958. return awsutil.Prettify(s)
  27959. }
  27960. // GoString returns the string representation
  27961. func (s DescribeInternetGatewaysOutput) GoString() string {
  27962. return s.String()
  27963. }
  27964. // SetInternetGateways sets the InternetGateways field's value.
  27965. func (s *DescribeInternetGatewaysOutput) SetInternetGateways(v []*InternetGateway) *DescribeInternetGatewaysOutput {
  27966. s.InternetGateways = v
  27967. return s
  27968. }
  27969. // Contains the parameters for DescribeKeyPairs.
  27970. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsRequest
  27971. type DescribeKeyPairsInput struct {
  27972. _ struct{} `type:"structure"`
  27973. // Checks whether you have the required permissions for the action, without
  27974. // actually making the request, and provides an error response. If you have
  27975. // the required permissions, the error response is DryRunOperation. Otherwise,
  27976. // it is UnauthorizedOperation.
  27977. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27978. // One or more filters.
  27979. //
  27980. // * fingerprint - The fingerprint of the key pair.
  27981. //
  27982. // * key-name - The name of the key pair.
  27983. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  27984. // One or more key pair names.
  27985. //
  27986. // Default: Describes all your key pairs.
  27987. KeyNames []*string `locationName:"KeyName" locationNameList:"KeyName" type:"list"`
  27988. }
  27989. // String returns the string representation
  27990. func (s DescribeKeyPairsInput) String() string {
  27991. return awsutil.Prettify(s)
  27992. }
  27993. // GoString returns the string representation
  27994. func (s DescribeKeyPairsInput) GoString() string {
  27995. return s.String()
  27996. }
  27997. // SetDryRun sets the DryRun field's value.
  27998. func (s *DescribeKeyPairsInput) SetDryRun(v bool) *DescribeKeyPairsInput {
  27999. s.DryRun = &v
  28000. return s
  28001. }
  28002. // SetFilters sets the Filters field's value.
  28003. func (s *DescribeKeyPairsInput) SetFilters(v []*Filter) *DescribeKeyPairsInput {
  28004. s.Filters = v
  28005. return s
  28006. }
  28007. // SetKeyNames sets the KeyNames field's value.
  28008. func (s *DescribeKeyPairsInput) SetKeyNames(v []*string) *DescribeKeyPairsInput {
  28009. s.KeyNames = v
  28010. return s
  28011. }
  28012. // Contains the output of DescribeKeyPairs.
  28013. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsResult
  28014. type DescribeKeyPairsOutput struct {
  28015. _ struct{} `type:"structure"`
  28016. // Information about one or more key pairs.
  28017. KeyPairs []*KeyPairInfo `locationName:"keySet" locationNameList:"item" type:"list"`
  28018. }
  28019. // String returns the string representation
  28020. func (s DescribeKeyPairsOutput) String() string {
  28021. return awsutil.Prettify(s)
  28022. }
  28023. // GoString returns the string representation
  28024. func (s DescribeKeyPairsOutput) GoString() string {
  28025. return s.String()
  28026. }
  28027. // SetKeyPairs sets the KeyPairs field's value.
  28028. func (s *DescribeKeyPairsOutput) SetKeyPairs(v []*KeyPairInfo) *DescribeKeyPairsOutput {
  28029. s.KeyPairs = v
  28030. return s
  28031. }
  28032. // Contains the parameters for DescribeMovingAddresses.
  28033. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddressesRequest
  28034. type DescribeMovingAddressesInput struct {
  28035. _ struct{} `type:"structure"`
  28036. // Checks whether you have the required permissions for the action, without
  28037. // actually making the request, and provides an error response. If you have
  28038. // the required permissions, the error response is DryRunOperation. Otherwise,
  28039. // it is UnauthorizedOperation.
  28040. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28041. // One or more filters.
  28042. //
  28043. // * moving-status - The status of the Elastic IP address (MovingToVpc |
  28044. // RestoringToClassic).
  28045. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  28046. // The maximum number of results to return for the request in a single page.
  28047. // The remaining results of the initial request can be seen by sending another
  28048. // request with the returned NextToken value. This value can be between 5 and
  28049. // 1000; if MaxResults is given a value outside of this range, an error is returned.
  28050. //
  28051. // Default: If no value is provided, the default is 1000.
  28052. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  28053. // The token to use to retrieve the next page of results.
  28054. NextToken *string `locationName:"nextToken" type:"string"`
  28055. // One or more Elastic IP addresses.
  28056. PublicIps []*string `locationName:"publicIp" locationNameList:"item" type:"list"`
  28057. }
  28058. // String returns the string representation
  28059. func (s DescribeMovingAddressesInput) String() string {
  28060. return awsutil.Prettify(s)
  28061. }
  28062. // GoString returns the string representation
  28063. func (s DescribeMovingAddressesInput) GoString() string {
  28064. return s.String()
  28065. }
  28066. // SetDryRun sets the DryRun field's value.
  28067. func (s *DescribeMovingAddressesInput) SetDryRun(v bool) *DescribeMovingAddressesInput {
  28068. s.DryRun = &v
  28069. return s
  28070. }
  28071. // SetFilters sets the Filters field's value.
  28072. func (s *DescribeMovingAddressesInput) SetFilters(v []*Filter) *DescribeMovingAddressesInput {
  28073. s.Filters = v
  28074. return s
  28075. }
  28076. // SetMaxResults sets the MaxResults field's value.
  28077. func (s *DescribeMovingAddressesInput) SetMaxResults(v int64) *DescribeMovingAddressesInput {
  28078. s.MaxResults = &v
  28079. return s
  28080. }
  28081. // SetNextToken sets the NextToken field's value.
  28082. func (s *DescribeMovingAddressesInput) SetNextToken(v string) *DescribeMovingAddressesInput {
  28083. s.NextToken = &v
  28084. return s
  28085. }
  28086. // SetPublicIps sets the PublicIps field's value.
  28087. func (s *DescribeMovingAddressesInput) SetPublicIps(v []*string) *DescribeMovingAddressesInput {
  28088. s.PublicIps = v
  28089. return s
  28090. }
  28091. // Contains the output of DescribeMovingAddresses.
  28092. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddressesResult
  28093. type DescribeMovingAddressesOutput struct {
  28094. _ struct{} `type:"structure"`
  28095. // The status for each Elastic IP address.
  28096. MovingAddressStatuses []*MovingAddressStatus `locationName:"movingAddressStatusSet" locationNameList:"item" type:"list"`
  28097. // The token to use to retrieve the next page of results. This value is null
  28098. // when there are no more results to return.
  28099. NextToken *string `locationName:"nextToken" type:"string"`
  28100. }
  28101. // String returns the string representation
  28102. func (s DescribeMovingAddressesOutput) String() string {
  28103. return awsutil.Prettify(s)
  28104. }
  28105. // GoString returns the string representation
  28106. func (s DescribeMovingAddressesOutput) GoString() string {
  28107. return s.String()
  28108. }
  28109. // SetMovingAddressStatuses sets the MovingAddressStatuses field's value.
  28110. func (s *DescribeMovingAddressesOutput) SetMovingAddressStatuses(v []*MovingAddressStatus) *DescribeMovingAddressesOutput {
  28111. s.MovingAddressStatuses = v
  28112. return s
  28113. }
  28114. // SetNextToken sets the NextToken field's value.
  28115. func (s *DescribeMovingAddressesOutput) SetNextToken(v string) *DescribeMovingAddressesOutput {
  28116. s.NextToken = &v
  28117. return s
  28118. }
  28119. // Contains the parameters for DescribeNatGateways.
  28120. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGatewaysRequest
  28121. type DescribeNatGatewaysInput struct {
  28122. _ struct{} `type:"structure"`
  28123. // One or more filters.
  28124. //
  28125. // * nat-gateway-id - The ID of the NAT gateway.
  28126. //
  28127. // * state - The state of the NAT gateway (pending | failed | available |
  28128. // deleting | deleted).
  28129. //
  28130. // * subnet-id - The ID of the subnet in which the NAT gateway resides.
  28131. //
  28132. // * vpc-id - The ID of the VPC in which the NAT gateway resides.
  28133. Filter []*Filter `locationNameList:"Filter" type:"list"`
  28134. // The maximum number of items to return for this request. The request returns
  28135. // a token that you can specify in a subsequent call to get the next set of
  28136. // results.
  28137. //
  28138. // Constraint: If the value specified is greater than 1000, we return only 1000
  28139. // items.
  28140. MaxResults *int64 `type:"integer"`
  28141. // One or more NAT gateway IDs.
  28142. NatGatewayIds []*string `locationName:"NatGatewayId" locationNameList:"item" type:"list"`
  28143. // The token to retrieve the next page of results.
  28144. NextToken *string `type:"string"`
  28145. }
  28146. // String returns the string representation
  28147. func (s DescribeNatGatewaysInput) String() string {
  28148. return awsutil.Prettify(s)
  28149. }
  28150. // GoString returns the string representation
  28151. func (s DescribeNatGatewaysInput) GoString() string {
  28152. return s.String()
  28153. }
  28154. // SetFilter sets the Filter field's value.
  28155. func (s *DescribeNatGatewaysInput) SetFilter(v []*Filter) *DescribeNatGatewaysInput {
  28156. s.Filter = v
  28157. return s
  28158. }
  28159. // SetMaxResults sets the MaxResults field's value.
  28160. func (s *DescribeNatGatewaysInput) SetMaxResults(v int64) *DescribeNatGatewaysInput {
  28161. s.MaxResults = &v
  28162. return s
  28163. }
  28164. // SetNatGatewayIds sets the NatGatewayIds field's value.
  28165. func (s *DescribeNatGatewaysInput) SetNatGatewayIds(v []*string) *DescribeNatGatewaysInput {
  28166. s.NatGatewayIds = v
  28167. return s
  28168. }
  28169. // SetNextToken sets the NextToken field's value.
  28170. func (s *DescribeNatGatewaysInput) SetNextToken(v string) *DescribeNatGatewaysInput {
  28171. s.NextToken = &v
  28172. return s
  28173. }
  28174. // Contains the output of DescribeNatGateways.
  28175. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGatewaysResult
  28176. type DescribeNatGatewaysOutput struct {
  28177. _ struct{} `type:"structure"`
  28178. // Information about the NAT gateways.
  28179. NatGateways []*NatGateway `locationName:"natGatewaySet" locationNameList:"item" type:"list"`
  28180. // The token to use to retrieve the next page of results. This value is null
  28181. // when there are no more results to return.
  28182. NextToken *string `locationName:"nextToken" type:"string"`
  28183. }
  28184. // String returns the string representation
  28185. func (s DescribeNatGatewaysOutput) String() string {
  28186. return awsutil.Prettify(s)
  28187. }
  28188. // GoString returns the string representation
  28189. func (s DescribeNatGatewaysOutput) GoString() string {
  28190. return s.String()
  28191. }
  28192. // SetNatGateways sets the NatGateways field's value.
  28193. func (s *DescribeNatGatewaysOutput) SetNatGateways(v []*NatGateway) *DescribeNatGatewaysOutput {
  28194. s.NatGateways = v
  28195. return s
  28196. }
  28197. // SetNextToken sets the NextToken field's value.
  28198. func (s *DescribeNatGatewaysOutput) SetNextToken(v string) *DescribeNatGatewaysOutput {
  28199. s.NextToken = &v
  28200. return s
  28201. }
  28202. // Contains the parameters for DescribeNetworkAcls.
  28203. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAclsRequest
  28204. type DescribeNetworkAclsInput struct {
  28205. _ struct{} `type:"structure"`
  28206. // Checks whether you have the required permissions for the action, without
  28207. // actually making the request, and provides an error response. If you have
  28208. // the required permissions, the error response is DryRunOperation. Otherwise,
  28209. // it is UnauthorizedOperation.
  28210. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28211. // One or more filters.
  28212. //
  28213. // * association.association-id - The ID of an association ID for the ACL.
  28214. //
  28215. // * association.network-acl-id - The ID of the network ACL involved in the
  28216. // association.
  28217. //
  28218. // * association.subnet-id - The ID of the subnet involved in the association.
  28219. //
  28220. // * default - Indicates whether the ACL is the default network ACL for the
  28221. // VPC.
  28222. //
  28223. // * entry.cidr - The IPv4 CIDR range specified in the entry.
  28224. //
  28225. // * entry.egress - Indicates whether the entry applies to egress traffic.
  28226. //
  28227. // * entry.icmp.code - The ICMP code specified in the entry, if any.
  28228. //
  28229. // * entry.icmp.type - The ICMP type specified in the entry, if any.
  28230. //
  28231. // * entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
  28232. //
  28233. // * entry.port-range.from - The start of the port range specified in the
  28234. // entry.
  28235. //
  28236. // * entry.port-range.to - The end of the port range specified in the entry.
  28237. //
  28238. //
  28239. // * entry.protocol - The protocol specified in the entry (tcp | udp | icmp
  28240. // or a protocol number).
  28241. //
  28242. // * entry.rule-action - Allows or denies the matching traffic (allow | deny).
  28243. //
  28244. // * entry.rule-number - The number of an entry (in other words, rule) in
  28245. // the ACL's set of entries.
  28246. //
  28247. // * network-acl-id - The ID of the network ACL.
  28248. //
  28249. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  28250. // Specify the key of the tag in the filter name and the value of the tag
  28251. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  28252. // for the filter name and X for the filter value.
  28253. //
  28254. // * tag-key - The key of a tag assigned to the resource. This filter is
  28255. // independent of the tag-value filter. For example, if you use both the
  28256. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  28257. // assigned both the tag key Purpose (regardless of what the tag's value
  28258. // is), and the tag value X (regardless of what the tag's key is). If you
  28259. // want to list only resources where Purpose is X, see the tag:key=value
  28260. // filter.
  28261. //
  28262. // * tag-value - The value of a tag assigned to the resource. This filter
  28263. // is independent of the tag-key filter.
  28264. //
  28265. // * vpc-id - The ID of the VPC for the network ACL.
  28266. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  28267. // One or more network ACL IDs.
  28268. //
  28269. // Default: Describes all your network ACLs.
  28270. NetworkAclIds []*string `locationName:"NetworkAclId" locationNameList:"item" type:"list"`
  28271. }
  28272. // String returns the string representation
  28273. func (s DescribeNetworkAclsInput) String() string {
  28274. return awsutil.Prettify(s)
  28275. }
  28276. // GoString returns the string representation
  28277. func (s DescribeNetworkAclsInput) GoString() string {
  28278. return s.String()
  28279. }
  28280. // SetDryRun sets the DryRun field's value.
  28281. func (s *DescribeNetworkAclsInput) SetDryRun(v bool) *DescribeNetworkAclsInput {
  28282. s.DryRun = &v
  28283. return s
  28284. }
  28285. // SetFilters sets the Filters field's value.
  28286. func (s *DescribeNetworkAclsInput) SetFilters(v []*Filter) *DescribeNetworkAclsInput {
  28287. s.Filters = v
  28288. return s
  28289. }
  28290. // SetNetworkAclIds sets the NetworkAclIds field's value.
  28291. func (s *DescribeNetworkAclsInput) SetNetworkAclIds(v []*string) *DescribeNetworkAclsInput {
  28292. s.NetworkAclIds = v
  28293. return s
  28294. }
  28295. // Contains the output of DescribeNetworkAcls.
  28296. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAclsResult
  28297. type DescribeNetworkAclsOutput struct {
  28298. _ struct{} `type:"structure"`
  28299. // Information about one or more network ACLs.
  28300. NetworkAcls []*NetworkAcl `locationName:"networkAclSet" locationNameList:"item" type:"list"`
  28301. }
  28302. // String returns the string representation
  28303. func (s DescribeNetworkAclsOutput) String() string {
  28304. return awsutil.Prettify(s)
  28305. }
  28306. // GoString returns the string representation
  28307. func (s DescribeNetworkAclsOutput) GoString() string {
  28308. return s.String()
  28309. }
  28310. // SetNetworkAcls sets the NetworkAcls field's value.
  28311. func (s *DescribeNetworkAclsOutput) SetNetworkAcls(v []*NetworkAcl) *DescribeNetworkAclsOutput {
  28312. s.NetworkAcls = v
  28313. return s
  28314. }
  28315. // Contains the parameters for DescribeNetworkInterfaceAttribute.
  28316. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttributeRequest
  28317. type DescribeNetworkInterfaceAttributeInput struct {
  28318. _ struct{} `type:"structure"`
  28319. // The attribute of the network interface. This parameter is required.
  28320. Attribute *string `locationName:"attribute" type:"string" enum:"NetworkInterfaceAttribute"`
  28321. // Checks whether you have the required permissions for the action, without
  28322. // actually making the request, and provides an error response. If you have
  28323. // the required permissions, the error response is DryRunOperation. Otherwise,
  28324. // it is UnauthorizedOperation.
  28325. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28326. // The ID of the network interface.
  28327. //
  28328. // NetworkInterfaceId is a required field
  28329. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  28330. }
  28331. // String returns the string representation
  28332. func (s DescribeNetworkInterfaceAttributeInput) String() string {
  28333. return awsutil.Prettify(s)
  28334. }
  28335. // GoString returns the string representation
  28336. func (s DescribeNetworkInterfaceAttributeInput) GoString() string {
  28337. return s.String()
  28338. }
  28339. // Validate inspects the fields of the type to determine if they are valid.
  28340. func (s *DescribeNetworkInterfaceAttributeInput) Validate() error {
  28341. invalidParams := request.ErrInvalidParams{Context: "DescribeNetworkInterfaceAttributeInput"}
  28342. if s.NetworkInterfaceId == nil {
  28343. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  28344. }
  28345. if invalidParams.Len() > 0 {
  28346. return invalidParams
  28347. }
  28348. return nil
  28349. }
  28350. // SetAttribute sets the Attribute field's value.
  28351. func (s *DescribeNetworkInterfaceAttributeInput) SetAttribute(v string) *DescribeNetworkInterfaceAttributeInput {
  28352. s.Attribute = &v
  28353. return s
  28354. }
  28355. // SetDryRun sets the DryRun field's value.
  28356. func (s *DescribeNetworkInterfaceAttributeInput) SetDryRun(v bool) *DescribeNetworkInterfaceAttributeInput {
  28357. s.DryRun = &v
  28358. return s
  28359. }
  28360. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  28361. func (s *DescribeNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeInput {
  28362. s.NetworkInterfaceId = &v
  28363. return s
  28364. }
  28365. // Contains the output of DescribeNetworkInterfaceAttribute.
  28366. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttributeResult
  28367. type DescribeNetworkInterfaceAttributeOutput struct {
  28368. _ struct{} `type:"structure"`
  28369. // The attachment (if any) of the network interface.
  28370. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  28371. // The description of the network interface.
  28372. Description *AttributeValue `locationName:"description" type:"structure"`
  28373. // The security groups associated with the network interface.
  28374. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  28375. // The ID of the network interface.
  28376. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  28377. // Indicates whether source/destination checking is enabled.
  28378. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  28379. }
  28380. // String returns the string representation
  28381. func (s DescribeNetworkInterfaceAttributeOutput) String() string {
  28382. return awsutil.Prettify(s)
  28383. }
  28384. // GoString returns the string representation
  28385. func (s DescribeNetworkInterfaceAttributeOutput) GoString() string {
  28386. return s.String()
  28387. }
  28388. // SetAttachment sets the Attachment field's value.
  28389. func (s *DescribeNetworkInterfaceAttributeOutput) SetAttachment(v *NetworkInterfaceAttachment) *DescribeNetworkInterfaceAttributeOutput {
  28390. s.Attachment = v
  28391. return s
  28392. }
  28393. // SetDescription sets the Description field's value.
  28394. func (s *DescribeNetworkInterfaceAttributeOutput) SetDescription(v *AttributeValue) *DescribeNetworkInterfaceAttributeOutput {
  28395. s.Description = v
  28396. return s
  28397. }
  28398. // SetGroups sets the Groups field's value.
  28399. func (s *DescribeNetworkInterfaceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeNetworkInterfaceAttributeOutput {
  28400. s.Groups = v
  28401. return s
  28402. }
  28403. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  28404. func (s *DescribeNetworkInterfaceAttributeOutput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeOutput {
  28405. s.NetworkInterfaceId = &v
  28406. return s
  28407. }
  28408. // SetSourceDestCheck sets the SourceDestCheck field's value.
  28409. func (s *DescribeNetworkInterfaceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeNetworkInterfaceAttributeOutput {
  28410. s.SourceDestCheck = v
  28411. return s
  28412. }
  28413. // Contains the parameters for DescribeNetworkInterfaces.
  28414. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacesRequest
  28415. type DescribeNetworkInterfacesInput struct {
  28416. _ struct{} `type:"structure"`
  28417. // Checks whether you have the required permissions for the action, without
  28418. // actually making the request, and provides an error response. If you have
  28419. // the required permissions, the error response is DryRunOperation. Otherwise,
  28420. // it is UnauthorizedOperation.
  28421. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28422. // One or more filters.
  28423. //
  28424. // * addresses.private-ip-address - The private IPv4 addresses associated
  28425. // with the network interface.
  28426. //
  28427. // * addresses.primary - Whether the private IPv4 address is the primary
  28428. // IP address associated with the network interface.
  28429. //
  28430. // * addresses.association.public-ip - The association ID returned when the
  28431. // network interface was associated with the Elastic IP address (IPv4).
  28432. //
  28433. // * addresses.association.owner-id - The owner ID of the addresses associated
  28434. // with the network interface.
  28435. //
  28436. // * association.association-id - The association ID returned when the network
  28437. // interface was associated with an IPv4 address.
  28438. //
  28439. // * association.allocation-id - The allocation ID returned when you allocated
  28440. // the Elastic IP address (IPv4) for your network interface.
  28441. //
  28442. // * association.ip-owner-id - The owner of the Elastic IP address (IPv4)
  28443. // associated with the network interface.
  28444. //
  28445. // * association.public-ip - The address of the Elastic IP address (IPv4)
  28446. // bound to the network interface.
  28447. //
  28448. // * association.public-dns-name - The public DNS name for the network interface
  28449. // (IPv4).
  28450. //
  28451. // * attachment.attachment-id - The ID of the interface attachment.
  28452. //
  28453. // * attachment.attach.time - The time that the network interface was attached
  28454. // to an instance.
  28455. //
  28456. // * attachment.delete-on-termination - Indicates whether the attachment
  28457. // is deleted when an instance is terminated.
  28458. //
  28459. // * attachment.device-index - The device index to which the network interface
  28460. // is attached.
  28461. //
  28462. // * attachment.instance-id - The ID of the instance to which the network
  28463. // interface is attached.
  28464. //
  28465. // * attachment.instance-owner-id - The owner ID of the instance to which
  28466. // the network interface is attached.
  28467. //
  28468. // * attachment.nat-gateway-id - The ID of the NAT gateway to which the network
  28469. // interface is attached.
  28470. //
  28471. // * attachment.status - The status of the attachment (attaching | attached
  28472. // | detaching | detached).
  28473. //
  28474. // * availability-zone - The Availability Zone of the network interface.
  28475. //
  28476. // * description - The description of the network interface.
  28477. //
  28478. // * group-id - The ID of a security group associated with the network interface.
  28479. //
  28480. // * group-name - The name of a security group associated with the network
  28481. // interface.
  28482. //
  28483. // * ipv6-addresses.ipv6-address - An IPv6 address associated with the network
  28484. // interface.
  28485. //
  28486. // * mac-address - The MAC address of the network interface.
  28487. //
  28488. // * network-interface-id - The ID of the network interface.
  28489. //
  28490. // * owner-id - The AWS account ID of the network interface owner.
  28491. //
  28492. // * private-ip-address - The private IPv4 address or addresses of the network
  28493. // interface.
  28494. //
  28495. // * private-dns-name - The private DNS name of the network interface (IPv4).
  28496. //
  28497. // * requester-id - The ID of the entity that launched the instance on your
  28498. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  28499. //
  28500. // * requester-managed - Indicates whether the network interface is being
  28501. // managed by an AWS service (for example, AWS Management Console, Auto Scaling,
  28502. // and so on).
  28503. //
  28504. // * source-desk-check - Indicates whether the network interface performs
  28505. // source/destination checking. A value of true means checking is enabled,
  28506. // and false means checking is disabled. The value must be false for the
  28507. // network interface to perform network address translation (NAT) in your
  28508. // VPC.
  28509. //
  28510. // * status - The status of the network interface. If the network interface
  28511. // is not attached to an instance, the status is available; if a network
  28512. // interface is attached to an instance the status is in-use.
  28513. //
  28514. // * subnet-id - The ID of the subnet for the network interface.
  28515. //
  28516. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  28517. // Specify the key of the tag in the filter name and the value of the tag
  28518. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  28519. // for the filter name and X for the filter value.
  28520. //
  28521. // * tag-key - The key of a tag assigned to the resource. This filter is
  28522. // independent of the tag-value filter. For example, if you use both the
  28523. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  28524. // assigned both the tag key Purpose (regardless of what the tag's value
  28525. // is), and the tag value X (regardless of what the tag's key is). If you
  28526. // want to list only resources where Purpose is X, see the tag:key=value
  28527. // filter.
  28528. //
  28529. // * tag-value - The value of a tag assigned to the resource. This filter
  28530. // is independent of the tag-key filter.
  28531. //
  28532. // * vpc-id - The ID of the VPC for the network interface.
  28533. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  28534. // One or more network interface IDs.
  28535. //
  28536. // Default: Describes all your network interfaces.
  28537. NetworkInterfaceIds []*string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"`
  28538. }
  28539. // String returns the string representation
  28540. func (s DescribeNetworkInterfacesInput) String() string {
  28541. return awsutil.Prettify(s)
  28542. }
  28543. // GoString returns the string representation
  28544. func (s DescribeNetworkInterfacesInput) GoString() string {
  28545. return s.String()
  28546. }
  28547. // SetDryRun sets the DryRun field's value.
  28548. func (s *DescribeNetworkInterfacesInput) SetDryRun(v bool) *DescribeNetworkInterfacesInput {
  28549. s.DryRun = &v
  28550. return s
  28551. }
  28552. // SetFilters sets the Filters field's value.
  28553. func (s *DescribeNetworkInterfacesInput) SetFilters(v []*Filter) *DescribeNetworkInterfacesInput {
  28554. s.Filters = v
  28555. return s
  28556. }
  28557. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  28558. func (s *DescribeNetworkInterfacesInput) SetNetworkInterfaceIds(v []*string) *DescribeNetworkInterfacesInput {
  28559. s.NetworkInterfaceIds = v
  28560. return s
  28561. }
  28562. // Contains the output of DescribeNetworkInterfaces.
  28563. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacesResult
  28564. type DescribeNetworkInterfacesOutput struct {
  28565. _ struct{} `type:"structure"`
  28566. // Information about one or more network interfaces.
  28567. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  28568. }
  28569. // String returns the string representation
  28570. func (s DescribeNetworkInterfacesOutput) String() string {
  28571. return awsutil.Prettify(s)
  28572. }
  28573. // GoString returns the string representation
  28574. func (s DescribeNetworkInterfacesOutput) GoString() string {
  28575. return s.String()
  28576. }
  28577. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  28578. func (s *DescribeNetworkInterfacesOutput) SetNetworkInterfaces(v []*NetworkInterface) *DescribeNetworkInterfacesOutput {
  28579. s.NetworkInterfaces = v
  28580. return s
  28581. }
  28582. // Contains the parameters for DescribePlacementGroups.
  28583. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroupsRequest
  28584. type DescribePlacementGroupsInput struct {
  28585. _ struct{} `type:"structure"`
  28586. // Checks whether you have the required permissions for the action, without
  28587. // actually making the request, and provides an error response. If you have
  28588. // the required permissions, the error response is DryRunOperation. Otherwise,
  28589. // it is UnauthorizedOperation.
  28590. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28591. // One or more filters.
  28592. //
  28593. // * group-name - The name of the placement group.
  28594. //
  28595. // * state - The state of the placement group (pending | available | deleting
  28596. // | deleted).
  28597. //
  28598. // * strategy - The strategy of the placement group (cluster).
  28599. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  28600. // One or more placement group names.
  28601. //
  28602. // Default: Describes all your placement groups, or only those otherwise specified.
  28603. GroupNames []*string `locationName:"groupName" type:"list"`
  28604. }
  28605. // String returns the string representation
  28606. func (s DescribePlacementGroupsInput) String() string {
  28607. return awsutil.Prettify(s)
  28608. }
  28609. // GoString returns the string representation
  28610. func (s DescribePlacementGroupsInput) GoString() string {
  28611. return s.String()
  28612. }
  28613. // SetDryRun sets the DryRun field's value.
  28614. func (s *DescribePlacementGroupsInput) SetDryRun(v bool) *DescribePlacementGroupsInput {
  28615. s.DryRun = &v
  28616. return s
  28617. }
  28618. // SetFilters sets the Filters field's value.
  28619. func (s *DescribePlacementGroupsInput) SetFilters(v []*Filter) *DescribePlacementGroupsInput {
  28620. s.Filters = v
  28621. return s
  28622. }
  28623. // SetGroupNames sets the GroupNames field's value.
  28624. func (s *DescribePlacementGroupsInput) SetGroupNames(v []*string) *DescribePlacementGroupsInput {
  28625. s.GroupNames = v
  28626. return s
  28627. }
  28628. // Contains the output of DescribePlacementGroups.
  28629. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroupsResult
  28630. type DescribePlacementGroupsOutput struct {
  28631. _ struct{} `type:"structure"`
  28632. // One or more placement groups.
  28633. PlacementGroups []*PlacementGroup `locationName:"placementGroupSet" locationNameList:"item" type:"list"`
  28634. }
  28635. // String returns the string representation
  28636. func (s DescribePlacementGroupsOutput) String() string {
  28637. return awsutil.Prettify(s)
  28638. }
  28639. // GoString returns the string representation
  28640. func (s DescribePlacementGroupsOutput) GoString() string {
  28641. return s.String()
  28642. }
  28643. // SetPlacementGroups sets the PlacementGroups field's value.
  28644. func (s *DescribePlacementGroupsOutput) SetPlacementGroups(v []*PlacementGroup) *DescribePlacementGroupsOutput {
  28645. s.PlacementGroups = v
  28646. return s
  28647. }
  28648. // Contains the parameters for DescribePrefixLists.
  28649. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixListsRequest
  28650. type DescribePrefixListsInput struct {
  28651. _ struct{} `type:"structure"`
  28652. // Checks whether you have the required permissions for the action, without
  28653. // actually making the request, and provides an error response. If you have
  28654. // the required permissions, the error response is DryRunOperation. Otherwise,
  28655. // it is UnauthorizedOperation.
  28656. DryRun *bool `type:"boolean"`
  28657. // One or more filters.
  28658. //
  28659. // * prefix-list-id: The ID of a prefix list.
  28660. //
  28661. // * prefix-list-name: The name of a prefix list.
  28662. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  28663. // The maximum number of items to return for this request. The request returns
  28664. // a token that you can specify in a subsequent call to get the next set of
  28665. // results.
  28666. //
  28667. // Constraint: If the value specified is greater than 1000, we return only 1000
  28668. // items.
  28669. MaxResults *int64 `type:"integer"`
  28670. // The token for the next set of items to return. (You received this token from
  28671. // a prior call.)
  28672. NextToken *string `type:"string"`
  28673. // One or more prefix list IDs.
  28674. PrefixListIds []*string `locationName:"PrefixListId" locationNameList:"item" type:"list"`
  28675. }
  28676. // String returns the string representation
  28677. func (s DescribePrefixListsInput) String() string {
  28678. return awsutil.Prettify(s)
  28679. }
  28680. // GoString returns the string representation
  28681. func (s DescribePrefixListsInput) GoString() string {
  28682. return s.String()
  28683. }
  28684. // SetDryRun sets the DryRun field's value.
  28685. func (s *DescribePrefixListsInput) SetDryRun(v bool) *DescribePrefixListsInput {
  28686. s.DryRun = &v
  28687. return s
  28688. }
  28689. // SetFilters sets the Filters field's value.
  28690. func (s *DescribePrefixListsInput) SetFilters(v []*Filter) *DescribePrefixListsInput {
  28691. s.Filters = v
  28692. return s
  28693. }
  28694. // SetMaxResults sets the MaxResults field's value.
  28695. func (s *DescribePrefixListsInput) SetMaxResults(v int64) *DescribePrefixListsInput {
  28696. s.MaxResults = &v
  28697. return s
  28698. }
  28699. // SetNextToken sets the NextToken field's value.
  28700. func (s *DescribePrefixListsInput) SetNextToken(v string) *DescribePrefixListsInput {
  28701. s.NextToken = &v
  28702. return s
  28703. }
  28704. // SetPrefixListIds sets the PrefixListIds field's value.
  28705. func (s *DescribePrefixListsInput) SetPrefixListIds(v []*string) *DescribePrefixListsInput {
  28706. s.PrefixListIds = v
  28707. return s
  28708. }
  28709. // Contains the output of DescribePrefixLists.
  28710. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixListsResult
  28711. type DescribePrefixListsOutput struct {
  28712. _ struct{} `type:"structure"`
  28713. // The token to use when requesting the next set of items. If there are no additional
  28714. // items to return, the string is empty.
  28715. NextToken *string `locationName:"nextToken" type:"string"`
  28716. // All available prefix lists.
  28717. PrefixLists []*PrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"`
  28718. }
  28719. // String returns the string representation
  28720. func (s DescribePrefixListsOutput) String() string {
  28721. return awsutil.Prettify(s)
  28722. }
  28723. // GoString returns the string representation
  28724. func (s DescribePrefixListsOutput) GoString() string {
  28725. return s.String()
  28726. }
  28727. // SetNextToken sets the NextToken field's value.
  28728. func (s *DescribePrefixListsOutput) SetNextToken(v string) *DescribePrefixListsOutput {
  28729. s.NextToken = &v
  28730. return s
  28731. }
  28732. // SetPrefixLists sets the PrefixLists field's value.
  28733. func (s *DescribePrefixListsOutput) SetPrefixLists(v []*PrefixList) *DescribePrefixListsOutput {
  28734. s.PrefixLists = v
  28735. return s
  28736. }
  28737. // Contains the parameters for DescribeRegions.
  28738. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegionsRequest
  28739. type DescribeRegionsInput struct {
  28740. _ struct{} `type:"structure"`
  28741. // Checks whether you have the required permissions for the action, without
  28742. // actually making the request, and provides an error response. If you have
  28743. // the required permissions, the error response is DryRunOperation. Otherwise,
  28744. // it is UnauthorizedOperation.
  28745. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28746. // One or more filters.
  28747. //
  28748. // * endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).
  28749. //
  28750. // * region-name - The name of the region (for example, us-east-1).
  28751. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  28752. // The names of one or more regions.
  28753. RegionNames []*string `locationName:"RegionName" locationNameList:"RegionName" type:"list"`
  28754. }
  28755. // String returns the string representation
  28756. func (s DescribeRegionsInput) String() string {
  28757. return awsutil.Prettify(s)
  28758. }
  28759. // GoString returns the string representation
  28760. func (s DescribeRegionsInput) GoString() string {
  28761. return s.String()
  28762. }
  28763. // SetDryRun sets the DryRun field's value.
  28764. func (s *DescribeRegionsInput) SetDryRun(v bool) *DescribeRegionsInput {
  28765. s.DryRun = &v
  28766. return s
  28767. }
  28768. // SetFilters sets the Filters field's value.
  28769. func (s *DescribeRegionsInput) SetFilters(v []*Filter) *DescribeRegionsInput {
  28770. s.Filters = v
  28771. return s
  28772. }
  28773. // SetRegionNames sets the RegionNames field's value.
  28774. func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput {
  28775. s.RegionNames = v
  28776. return s
  28777. }
  28778. // Contains the output of DescribeRegions.
  28779. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegionsResult
  28780. type DescribeRegionsOutput struct {
  28781. _ struct{} `type:"structure"`
  28782. // Information about one or more regions.
  28783. Regions []*Region `locationName:"regionInfo" locationNameList:"item" type:"list"`
  28784. }
  28785. // String returns the string representation
  28786. func (s DescribeRegionsOutput) String() string {
  28787. return awsutil.Prettify(s)
  28788. }
  28789. // GoString returns the string representation
  28790. func (s DescribeRegionsOutput) GoString() string {
  28791. return s.String()
  28792. }
  28793. // SetRegions sets the Regions field's value.
  28794. func (s *DescribeRegionsOutput) SetRegions(v []*Region) *DescribeRegionsOutput {
  28795. s.Regions = v
  28796. return s
  28797. }
  28798. // Contains the parameters for DescribeReservedInstances.
  28799. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesRequest
  28800. type DescribeReservedInstancesInput struct {
  28801. _ struct{} `type:"structure"`
  28802. // Checks whether you have the required permissions for the action, without
  28803. // actually making the request, and provides an error response. If you have
  28804. // the required permissions, the error response is DryRunOperation. Otherwise,
  28805. // it is UnauthorizedOperation.
  28806. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28807. // One or more filters.
  28808. //
  28809. // * availability-zone - The Availability Zone where the Reserved Instance
  28810. // can be used.
  28811. //
  28812. // * duration - The duration of the Reserved Instance (one year or three
  28813. // years), in seconds (31536000 | 94608000).
  28814. //
  28815. // * end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).
  28816. //
  28817. // * fixed-price - The purchase price of the Reserved Instance (for example,
  28818. // 9800.0).
  28819. //
  28820. // * instance-type - The instance type that is covered by the reservation.
  28821. //
  28822. // * scope - The scope of the Reserved Instance (Region or Availability Zone).
  28823. //
  28824. // * product-description - The Reserved Instance product platform description.
  28825. // Instances that include (Amazon VPC) in the product platform description
  28826. // will only be displayed to EC2-Classic account holders and are for use
  28827. // with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE
  28828. // Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux
  28829. // (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server
  28830. // Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with
  28831. // SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with
  28832. // SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).
  28833. //
  28834. // * reserved-instances-id - The ID of the Reserved Instance.
  28835. //
  28836. // * start - The time at which the Reserved Instance purchase request was
  28837. // placed (for example, 2014-08-07T11:54:42.000Z).
  28838. //
  28839. // * state - The state of the Reserved Instance (payment-pending | active
  28840. // | payment-failed | retired).
  28841. //
  28842. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  28843. // Specify the key of the tag in the filter name and the value of the tag
  28844. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  28845. // for the filter name and X for the filter value.
  28846. //
  28847. // * tag-key - The key of a tag assigned to the resource. This filter is
  28848. // independent of the tag-value filter. For example, if you use both the
  28849. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  28850. // assigned both the tag key Purpose (regardless of what the tag's value
  28851. // is), and the tag value X (regardless of what the tag's key is). If you
  28852. // want to list only resources where Purpose is X, see the tag:key=value
  28853. // filter.
  28854. //
  28855. // * tag-value - The value of a tag assigned to the resource. This filter
  28856. // is independent of the tag-key filter.
  28857. //
  28858. // * usage-price - The usage price of the Reserved Instance, per hour (for
  28859. // example, 0.84).
  28860. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  28861. // Describes whether the Reserved Instance is Standard or Convertible.
  28862. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  28863. // The Reserved Instance offering type. If you are using tools that predate
  28864. // the 2011-11-01 API version, you only have access to the Medium Utilization
  28865. // Reserved Instance offering type.
  28866. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  28867. // One or more Reserved Instance IDs.
  28868. //
  28869. // Default: Describes all your Reserved Instances, or only those otherwise specified.
  28870. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"`
  28871. }
  28872. // String returns the string representation
  28873. func (s DescribeReservedInstancesInput) String() string {
  28874. return awsutil.Prettify(s)
  28875. }
  28876. // GoString returns the string representation
  28877. func (s DescribeReservedInstancesInput) GoString() string {
  28878. return s.String()
  28879. }
  28880. // SetDryRun sets the DryRun field's value.
  28881. func (s *DescribeReservedInstancesInput) SetDryRun(v bool) *DescribeReservedInstancesInput {
  28882. s.DryRun = &v
  28883. return s
  28884. }
  28885. // SetFilters sets the Filters field's value.
  28886. func (s *DescribeReservedInstancesInput) SetFilters(v []*Filter) *DescribeReservedInstancesInput {
  28887. s.Filters = v
  28888. return s
  28889. }
  28890. // SetOfferingClass sets the OfferingClass field's value.
  28891. func (s *DescribeReservedInstancesInput) SetOfferingClass(v string) *DescribeReservedInstancesInput {
  28892. s.OfferingClass = &v
  28893. return s
  28894. }
  28895. // SetOfferingType sets the OfferingType field's value.
  28896. func (s *DescribeReservedInstancesInput) SetOfferingType(v string) *DescribeReservedInstancesInput {
  28897. s.OfferingType = &v
  28898. return s
  28899. }
  28900. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  28901. func (s *DescribeReservedInstancesInput) SetReservedInstancesIds(v []*string) *DescribeReservedInstancesInput {
  28902. s.ReservedInstancesIds = v
  28903. return s
  28904. }
  28905. // Contains the parameters for DescribeReservedInstancesListings.
  28906. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListingsRequest
  28907. type DescribeReservedInstancesListingsInput struct {
  28908. _ struct{} `type:"structure"`
  28909. // One or more filters.
  28910. //
  28911. // * reserved-instances-id - The ID of the Reserved Instances.
  28912. //
  28913. // * reserved-instances-listing-id - The ID of the Reserved Instances listing.
  28914. //
  28915. // * status - The status of the Reserved Instance listing (pending | active
  28916. // | cancelled | closed).
  28917. //
  28918. // * status-message - The reason for the status.
  28919. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  28920. // One or more Reserved Instance IDs.
  28921. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  28922. // One or more Reserved Instance listing IDs.
  28923. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  28924. }
  28925. // String returns the string representation
  28926. func (s DescribeReservedInstancesListingsInput) String() string {
  28927. return awsutil.Prettify(s)
  28928. }
  28929. // GoString returns the string representation
  28930. func (s DescribeReservedInstancesListingsInput) GoString() string {
  28931. return s.String()
  28932. }
  28933. // SetFilters sets the Filters field's value.
  28934. func (s *DescribeReservedInstancesListingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesListingsInput {
  28935. s.Filters = v
  28936. return s
  28937. }
  28938. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  28939. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesId(v string) *DescribeReservedInstancesListingsInput {
  28940. s.ReservedInstancesId = &v
  28941. return s
  28942. }
  28943. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  28944. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesListingId(v string) *DescribeReservedInstancesListingsInput {
  28945. s.ReservedInstancesListingId = &v
  28946. return s
  28947. }
  28948. // Contains the output of DescribeReservedInstancesListings.
  28949. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListingsResult
  28950. type DescribeReservedInstancesListingsOutput struct {
  28951. _ struct{} `type:"structure"`
  28952. // Information about the Reserved Instance listing.
  28953. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  28954. }
  28955. // String returns the string representation
  28956. func (s DescribeReservedInstancesListingsOutput) String() string {
  28957. return awsutil.Prettify(s)
  28958. }
  28959. // GoString returns the string representation
  28960. func (s DescribeReservedInstancesListingsOutput) GoString() string {
  28961. return s.String()
  28962. }
  28963. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  28964. func (s *DescribeReservedInstancesListingsOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *DescribeReservedInstancesListingsOutput {
  28965. s.ReservedInstancesListings = v
  28966. return s
  28967. }
  28968. // Contains the parameters for DescribeReservedInstancesModifications.
  28969. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModificationsRequest
  28970. type DescribeReservedInstancesModificationsInput struct {
  28971. _ struct{} `type:"structure"`
  28972. // One or more filters.
  28973. //
  28974. // * client-token - The idempotency token for the modification request.
  28975. //
  28976. // * create-date - The time when the modification request was created.
  28977. //
  28978. // * effective-date - The time when the modification becomes effective.
  28979. //
  28980. // * modification-result.reserved-instances-id - The ID for the Reserved
  28981. // Instances created as part of the modification request. This ID is only
  28982. // available when the status of the modification is fulfilled.
  28983. //
  28984. // * modification-result.target-configuration.availability-zone - The Availability
  28985. // Zone for the new Reserved Instances.
  28986. //
  28987. // * modification-result.target-configuration.instance-count - The number
  28988. // of new Reserved Instances.
  28989. //
  28990. // * modification-result.target-configuration.instance-type - The instance
  28991. // type of the new Reserved Instances.
  28992. //
  28993. // * modification-result.target-configuration.platform - The network platform
  28994. // of the new Reserved Instances (EC2-Classic | EC2-VPC).
  28995. //
  28996. // * reserved-instances-id - The ID of the Reserved Instances modified.
  28997. //
  28998. // * reserved-instances-modification-id - The ID of the modification request.
  28999. //
  29000. // * status - The status of the Reserved Instances modification request (processing
  29001. // | fulfilled | failed).
  29002. //
  29003. // * status-message - The reason for the status.
  29004. //
  29005. // * update-date - The time when the modification request was last updated.
  29006. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29007. // The token to retrieve the next page of results.
  29008. NextToken *string `locationName:"nextToken" type:"string"`
  29009. // IDs for the submitted modification request.
  29010. ReservedInstancesModificationIds []*string `locationName:"ReservedInstancesModificationId" locationNameList:"ReservedInstancesModificationId" type:"list"`
  29011. }
  29012. // String returns the string representation
  29013. func (s DescribeReservedInstancesModificationsInput) String() string {
  29014. return awsutil.Prettify(s)
  29015. }
  29016. // GoString returns the string representation
  29017. func (s DescribeReservedInstancesModificationsInput) GoString() string {
  29018. return s.String()
  29019. }
  29020. // SetFilters sets the Filters field's value.
  29021. func (s *DescribeReservedInstancesModificationsInput) SetFilters(v []*Filter) *DescribeReservedInstancesModificationsInput {
  29022. s.Filters = v
  29023. return s
  29024. }
  29025. // SetNextToken sets the NextToken field's value.
  29026. func (s *DescribeReservedInstancesModificationsInput) SetNextToken(v string) *DescribeReservedInstancesModificationsInput {
  29027. s.NextToken = &v
  29028. return s
  29029. }
  29030. // SetReservedInstancesModificationIds sets the ReservedInstancesModificationIds field's value.
  29031. func (s *DescribeReservedInstancesModificationsInput) SetReservedInstancesModificationIds(v []*string) *DescribeReservedInstancesModificationsInput {
  29032. s.ReservedInstancesModificationIds = v
  29033. return s
  29034. }
  29035. // Contains the output of DescribeReservedInstancesModifications.
  29036. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModificationsResult
  29037. type DescribeReservedInstancesModificationsOutput struct {
  29038. _ struct{} `type:"structure"`
  29039. // The token to use to retrieve the next page of results. This value is null
  29040. // when there are no more results to return.
  29041. NextToken *string `locationName:"nextToken" type:"string"`
  29042. // The Reserved Instance modification information.
  29043. ReservedInstancesModifications []*ReservedInstancesModification `locationName:"reservedInstancesModificationsSet" locationNameList:"item" type:"list"`
  29044. }
  29045. // String returns the string representation
  29046. func (s DescribeReservedInstancesModificationsOutput) String() string {
  29047. return awsutil.Prettify(s)
  29048. }
  29049. // GoString returns the string representation
  29050. func (s DescribeReservedInstancesModificationsOutput) GoString() string {
  29051. return s.String()
  29052. }
  29053. // SetNextToken sets the NextToken field's value.
  29054. func (s *DescribeReservedInstancesModificationsOutput) SetNextToken(v string) *DescribeReservedInstancesModificationsOutput {
  29055. s.NextToken = &v
  29056. return s
  29057. }
  29058. // SetReservedInstancesModifications sets the ReservedInstancesModifications field's value.
  29059. func (s *DescribeReservedInstancesModificationsOutput) SetReservedInstancesModifications(v []*ReservedInstancesModification) *DescribeReservedInstancesModificationsOutput {
  29060. s.ReservedInstancesModifications = v
  29061. return s
  29062. }
  29063. // Contains the parameters for DescribeReservedInstancesOfferings.
  29064. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferingsRequest
  29065. type DescribeReservedInstancesOfferingsInput struct {
  29066. _ struct{} `type:"structure"`
  29067. // The Availability Zone in which the Reserved Instance can be used.
  29068. AvailabilityZone *string `type:"string"`
  29069. // Checks whether you have the required permissions for the action, without
  29070. // actually making the request, and provides an error response. If you have
  29071. // the required permissions, the error response is DryRunOperation. Otherwise,
  29072. // it is UnauthorizedOperation.
  29073. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29074. // One or more filters.
  29075. //
  29076. // * availability-zone - The Availability Zone where the Reserved Instance
  29077. // can be used.
  29078. //
  29079. // * duration - The duration of the Reserved Instance (for example, one year
  29080. // or three years), in seconds (31536000 | 94608000).
  29081. //
  29082. // * fixed-price - The purchase price of the Reserved Instance (for example,
  29083. // 9800.0).
  29084. //
  29085. // * instance-type - The instance type that is covered by the reservation.
  29086. //
  29087. // * marketplace - Set to true to show only Reserved Instance Marketplace
  29088. // offerings. When this filter is not used, which is the default behavior,
  29089. // all offerings from both AWS and the Reserved Instance Marketplace are
  29090. // listed.
  29091. //
  29092. // * product-description - The Reserved Instance product platform description.
  29093. // Instances that include (Amazon VPC) in the product platform description
  29094. // will only be displayed to EC2-Classic account holders and are for use
  29095. // with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux |
  29096. // SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise
  29097. // Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL
  29098. // Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows
  29099. // with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows
  29100. // with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon
  29101. // VPC))
  29102. //
  29103. // * reserved-instances-offering-id - The Reserved Instances offering ID.
  29104. //
  29105. // * scope - The scope of the Reserved Instance (Availability Zone or Region).
  29106. //
  29107. // * usage-price - The usage price of the Reserved Instance, per hour (for
  29108. // example, 0.84).
  29109. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29110. // Include Reserved Instance Marketplace offerings in the response.
  29111. IncludeMarketplace *bool `type:"boolean"`
  29112. // The tenancy of the instances covered by the reservation. A Reserved Instance
  29113. // with a tenancy of dedicated is applied to instances that run in a VPC on
  29114. // single-tenant hardware (i.e., Dedicated Instances).
  29115. //
  29116. // Important: The host value cannot be used with this parameter. Use the default
  29117. // or dedicated values only.
  29118. //
  29119. // Default: default
  29120. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  29121. // The instance type that the reservation will cover (for example, m1.small).
  29122. // For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  29123. // in the Amazon Elastic Compute Cloud User Guide.
  29124. InstanceType *string `type:"string" enum:"InstanceType"`
  29125. // The maximum duration (in seconds) to filter when searching for offerings.
  29126. //
  29127. // Default: 94608000 (3 years)
  29128. MaxDuration *int64 `type:"long"`
  29129. // The maximum number of instances to filter when searching for offerings.
  29130. //
  29131. // Default: 20
  29132. MaxInstanceCount *int64 `type:"integer"`
  29133. // The maximum number of results to return for the request in a single page.
  29134. // The remaining results of the initial request can be seen by sending another
  29135. // request with the returned NextToken value. The maximum is 100.
  29136. //
  29137. // Default: 100
  29138. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  29139. // The minimum duration (in seconds) to filter when searching for offerings.
  29140. //
  29141. // Default: 2592000 (1 month)
  29142. MinDuration *int64 `type:"long"`
  29143. // The token to retrieve the next page of results.
  29144. NextToken *string `locationName:"nextToken" type:"string"`
  29145. // The offering class of the Reserved Instance. Can be standard or convertible.
  29146. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  29147. // The Reserved Instance offering type. If you are using tools that predate
  29148. // the 2011-11-01 API version, you only have access to the Medium Utilization
  29149. // Reserved Instance offering type.
  29150. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  29151. // The Reserved Instance product platform description. Instances that include
  29152. // (Amazon VPC) in the description are for use with Amazon VPC.
  29153. ProductDescription *string `type:"string" enum:"RIProductDescription"`
  29154. // One or more Reserved Instances offering IDs.
  29155. ReservedInstancesOfferingIds []*string `locationName:"ReservedInstancesOfferingId" type:"list"`
  29156. }
  29157. // String returns the string representation
  29158. func (s DescribeReservedInstancesOfferingsInput) String() string {
  29159. return awsutil.Prettify(s)
  29160. }
  29161. // GoString returns the string representation
  29162. func (s DescribeReservedInstancesOfferingsInput) GoString() string {
  29163. return s.String()
  29164. }
  29165. // SetAvailabilityZone sets the AvailabilityZone field's value.
  29166. func (s *DescribeReservedInstancesOfferingsInput) SetAvailabilityZone(v string) *DescribeReservedInstancesOfferingsInput {
  29167. s.AvailabilityZone = &v
  29168. return s
  29169. }
  29170. // SetDryRun sets the DryRun field's value.
  29171. func (s *DescribeReservedInstancesOfferingsInput) SetDryRun(v bool) *DescribeReservedInstancesOfferingsInput {
  29172. s.DryRun = &v
  29173. return s
  29174. }
  29175. // SetFilters sets the Filters field's value.
  29176. func (s *DescribeReservedInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesOfferingsInput {
  29177. s.Filters = v
  29178. return s
  29179. }
  29180. // SetIncludeMarketplace sets the IncludeMarketplace field's value.
  29181. func (s *DescribeReservedInstancesOfferingsInput) SetIncludeMarketplace(v bool) *DescribeReservedInstancesOfferingsInput {
  29182. s.IncludeMarketplace = &v
  29183. return s
  29184. }
  29185. // SetInstanceTenancy sets the InstanceTenancy field's value.
  29186. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceTenancy(v string) *DescribeReservedInstancesOfferingsInput {
  29187. s.InstanceTenancy = &v
  29188. return s
  29189. }
  29190. // SetInstanceType sets the InstanceType field's value.
  29191. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceType(v string) *DescribeReservedInstancesOfferingsInput {
  29192. s.InstanceType = &v
  29193. return s
  29194. }
  29195. // SetMaxDuration sets the MaxDuration field's value.
  29196. func (s *DescribeReservedInstancesOfferingsInput) SetMaxDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  29197. s.MaxDuration = &v
  29198. return s
  29199. }
  29200. // SetMaxInstanceCount sets the MaxInstanceCount field's value.
  29201. func (s *DescribeReservedInstancesOfferingsInput) SetMaxInstanceCount(v int64) *DescribeReservedInstancesOfferingsInput {
  29202. s.MaxInstanceCount = &v
  29203. return s
  29204. }
  29205. // SetMaxResults sets the MaxResults field's value.
  29206. func (s *DescribeReservedInstancesOfferingsInput) SetMaxResults(v int64) *DescribeReservedInstancesOfferingsInput {
  29207. s.MaxResults = &v
  29208. return s
  29209. }
  29210. // SetMinDuration sets the MinDuration field's value.
  29211. func (s *DescribeReservedInstancesOfferingsInput) SetMinDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  29212. s.MinDuration = &v
  29213. return s
  29214. }
  29215. // SetNextToken sets the NextToken field's value.
  29216. func (s *DescribeReservedInstancesOfferingsInput) SetNextToken(v string) *DescribeReservedInstancesOfferingsInput {
  29217. s.NextToken = &v
  29218. return s
  29219. }
  29220. // SetOfferingClass sets the OfferingClass field's value.
  29221. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingClass(v string) *DescribeReservedInstancesOfferingsInput {
  29222. s.OfferingClass = &v
  29223. return s
  29224. }
  29225. // SetOfferingType sets the OfferingType field's value.
  29226. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedInstancesOfferingsInput {
  29227. s.OfferingType = &v
  29228. return s
  29229. }
  29230. // SetProductDescription sets the ProductDescription field's value.
  29231. func (s *DescribeReservedInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedInstancesOfferingsInput {
  29232. s.ProductDescription = &v
  29233. return s
  29234. }
  29235. // SetReservedInstancesOfferingIds sets the ReservedInstancesOfferingIds field's value.
  29236. func (s *DescribeReservedInstancesOfferingsInput) SetReservedInstancesOfferingIds(v []*string) *DescribeReservedInstancesOfferingsInput {
  29237. s.ReservedInstancesOfferingIds = v
  29238. return s
  29239. }
  29240. // Contains the output of DescribeReservedInstancesOfferings.
  29241. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferingsResult
  29242. type DescribeReservedInstancesOfferingsOutput struct {
  29243. _ struct{} `type:"structure"`
  29244. // The token to use to retrieve the next page of results. This value is null
  29245. // when there are no more results to return.
  29246. NextToken *string `locationName:"nextToken" type:"string"`
  29247. // A list of Reserved Instances offerings.
  29248. ReservedInstancesOfferings []*ReservedInstancesOffering `locationName:"reservedInstancesOfferingsSet" locationNameList:"item" type:"list"`
  29249. }
  29250. // String returns the string representation
  29251. func (s DescribeReservedInstancesOfferingsOutput) String() string {
  29252. return awsutil.Prettify(s)
  29253. }
  29254. // GoString returns the string representation
  29255. func (s DescribeReservedInstancesOfferingsOutput) GoString() string {
  29256. return s.String()
  29257. }
  29258. // SetNextToken sets the NextToken field's value.
  29259. func (s *DescribeReservedInstancesOfferingsOutput) SetNextToken(v string) *DescribeReservedInstancesOfferingsOutput {
  29260. s.NextToken = &v
  29261. return s
  29262. }
  29263. // SetReservedInstancesOfferings sets the ReservedInstancesOfferings field's value.
  29264. func (s *DescribeReservedInstancesOfferingsOutput) SetReservedInstancesOfferings(v []*ReservedInstancesOffering) *DescribeReservedInstancesOfferingsOutput {
  29265. s.ReservedInstancesOfferings = v
  29266. return s
  29267. }
  29268. // Contains the output for DescribeReservedInstances.
  29269. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesResult
  29270. type DescribeReservedInstancesOutput struct {
  29271. _ struct{} `type:"structure"`
  29272. // A list of Reserved Instances.
  29273. ReservedInstances []*ReservedInstances `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  29274. }
  29275. // String returns the string representation
  29276. func (s DescribeReservedInstancesOutput) String() string {
  29277. return awsutil.Prettify(s)
  29278. }
  29279. // GoString returns the string representation
  29280. func (s DescribeReservedInstancesOutput) GoString() string {
  29281. return s.String()
  29282. }
  29283. // SetReservedInstances sets the ReservedInstances field's value.
  29284. func (s *DescribeReservedInstancesOutput) SetReservedInstances(v []*ReservedInstances) *DescribeReservedInstancesOutput {
  29285. s.ReservedInstances = v
  29286. return s
  29287. }
  29288. // Contains the parameters for DescribeRouteTables.
  29289. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTablesRequest
  29290. type DescribeRouteTablesInput struct {
  29291. _ struct{} `type:"structure"`
  29292. // Checks whether you have the required permissions for the action, without
  29293. // actually making the request, and provides an error response. If you have
  29294. // the required permissions, the error response is DryRunOperation. Otherwise,
  29295. // it is UnauthorizedOperation.
  29296. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29297. // One or more filters.
  29298. //
  29299. // * association.route-table-association-id - The ID of an association ID
  29300. // for the route table.
  29301. //
  29302. // * association.route-table-id - The ID of the route table involved in the
  29303. // association.
  29304. //
  29305. // * association.subnet-id - The ID of the subnet involved in the association.
  29306. //
  29307. // * association.main - Indicates whether the route table is the main route
  29308. // table for the VPC (true | false). Route tables that do not have an association
  29309. // ID are not returned in the response.
  29310. //
  29311. // * route-table-id - The ID of the route table.
  29312. //
  29313. // * route.destination-cidr-block - The IPv4 CIDR range specified in a route
  29314. // in the table.
  29315. //
  29316. // * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in
  29317. // a route in the route table.
  29318. //
  29319. // * route.destination-prefix-list-id - The ID (prefix) of the AWS service
  29320. // specified in a route in the table.
  29321. //
  29322. // * route.egress-only-internet-gateway-id - The ID of an egress-only Internet
  29323. // gateway specified in a route in the route table.
  29324. //
  29325. // * route.gateway-id - The ID of a gateway specified in a route in the table.
  29326. //
  29327. // * route.instance-id - The ID of an instance specified in a route in the
  29328. // table.
  29329. //
  29330. // * route.nat-gateway-id - The ID of a NAT gateway.
  29331. //
  29332. // * route.origin - Describes how the route was created. CreateRouteTable
  29333. // indicates that the route was automatically created when the route table
  29334. // was created; CreateRoute indicates that the route was manually added to
  29335. // the route table; EnableVgwRoutePropagation indicates that the route was
  29336. // propagated by route propagation.
  29337. //
  29338. // * route.state - The state of a route in the route table (active | blackhole).
  29339. // The blackhole state indicates that the route's target isn't available
  29340. // (for example, the specified gateway isn't attached to the VPC, the specified
  29341. // NAT instance has been terminated, and so on).
  29342. //
  29343. // * route.vpc-peering-connection-id - The ID of a VPC peering connection
  29344. // specified in a route in the table.
  29345. //
  29346. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  29347. // Specify the key of the tag in the filter name and the value of the tag
  29348. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  29349. // for the filter name and X for the filter value.
  29350. //
  29351. // * tag-key - The key of a tag assigned to the resource. This filter is
  29352. // independent of the tag-value filter. For example, if you use both the
  29353. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  29354. // assigned both the tag key Purpose (regardless of what the tag's value
  29355. // is), and the tag value X (regardless of what the tag's key is). If you
  29356. // want to list only resources where Purpose is X, see the tag:key=value
  29357. // filter.
  29358. //
  29359. // * tag-value - The value of a tag assigned to the resource. This filter
  29360. // is independent of the tag-key filter.
  29361. //
  29362. // * vpc-id - The ID of the VPC for the route table.
  29363. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29364. // One or more route table IDs.
  29365. //
  29366. // Default: Describes all your route tables.
  29367. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  29368. }
  29369. // String returns the string representation
  29370. func (s DescribeRouteTablesInput) String() string {
  29371. return awsutil.Prettify(s)
  29372. }
  29373. // GoString returns the string representation
  29374. func (s DescribeRouteTablesInput) GoString() string {
  29375. return s.String()
  29376. }
  29377. // SetDryRun sets the DryRun field's value.
  29378. func (s *DescribeRouteTablesInput) SetDryRun(v bool) *DescribeRouteTablesInput {
  29379. s.DryRun = &v
  29380. return s
  29381. }
  29382. // SetFilters sets the Filters field's value.
  29383. func (s *DescribeRouteTablesInput) SetFilters(v []*Filter) *DescribeRouteTablesInput {
  29384. s.Filters = v
  29385. return s
  29386. }
  29387. // SetRouteTableIds sets the RouteTableIds field's value.
  29388. func (s *DescribeRouteTablesInput) SetRouteTableIds(v []*string) *DescribeRouteTablesInput {
  29389. s.RouteTableIds = v
  29390. return s
  29391. }
  29392. // Contains the output of DescribeRouteTables.
  29393. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTablesResult
  29394. type DescribeRouteTablesOutput struct {
  29395. _ struct{} `type:"structure"`
  29396. // Information about one or more route tables.
  29397. RouteTables []*RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"`
  29398. }
  29399. // String returns the string representation
  29400. func (s DescribeRouteTablesOutput) String() string {
  29401. return awsutil.Prettify(s)
  29402. }
  29403. // GoString returns the string representation
  29404. func (s DescribeRouteTablesOutput) GoString() string {
  29405. return s.String()
  29406. }
  29407. // SetRouteTables sets the RouteTables field's value.
  29408. func (s *DescribeRouteTablesOutput) SetRouteTables(v []*RouteTable) *DescribeRouteTablesOutput {
  29409. s.RouteTables = v
  29410. return s
  29411. }
  29412. // Contains the parameters for DescribeScheduledInstanceAvailability.
  29413. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailabilityRequest
  29414. type DescribeScheduledInstanceAvailabilityInput struct {
  29415. _ struct{} `type:"structure"`
  29416. // Checks whether you have the required permissions for the action, without
  29417. // actually making the request, and provides an error response. If you have
  29418. // the required permissions, the error response is DryRunOperation. Otherwise,
  29419. // it is UnauthorizedOperation.
  29420. DryRun *bool `type:"boolean"`
  29421. // One or more filters.
  29422. //
  29423. // * availability-zone - The Availability Zone (for example, us-west-2a).
  29424. //
  29425. // * instance-type - The instance type (for example, c4.large).
  29426. //
  29427. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  29428. //
  29429. // * platform - The platform (Linux/UNIX or Windows).
  29430. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29431. // The time period for the first schedule to start.
  29432. //
  29433. // FirstSlotStartTimeRange is a required field
  29434. FirstSlotStartTimeRange *SlotDateTimeRangeRequest `type:"structure" required:"true"`
  29435. // The maximum number of results to return in a single call. This value can
  29436. // be between 5 and 300. The default value is 300. To retrieve the remaining
  29437. // results, make another call with the returned NextToken value.
  29438. MaxResults *int64 `type:"integer"`
  29439. // The maximum available duration, in hours. This value must be greater than
  29440. // MinSlotDurationInHours and less than 1,720.
  29441. MaxSlotDurationInHours *int64 `type:"integer"`
  29442. // The minimum available duration, in hours. The minimum required duration is
  29443. // 1,200 hours per year. For example, the minimum daily schedule is 4 hours,
  29444. // the minimum weekly schedule is 24 hours, and the minimum monthly schedule
  29445. // is 100 hours.
  29446. MinSlotDurationInHours *int64 `type:"integer"`
  29447. // The token for the next set of results.
  29448. NextToken *string `type:"string"`
  29449. // The schedule recurrence.
  29450. //
  29451. // Recurrence is a required field
  29452. Recurrence *ScheduledInstanceRecurrenceRequest `type:"structure" required:"true"`
  29453. }
  29454. // String returns the string representation
  29455. func (s DescribeScheduledInstanceAvailabilityInput) String() string {
  29456. return awsutil.Prettify(s)
  29457. }
  29458. // GoString returns the string representation
  29459. func (s DescribeScheduledInstanceAvailabilityInput) GoString() string {
  29460. return s.String()
  29461. }
  29462. // Validate inspects the fields of the type to determine if they are valid.
  29463. func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error {
  29464. invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledInstanceAvailabilityInput"}
  29465. if s.FirstSlotStartTimeRange == nil {
  29466. invalidParams.Add(request.NewErrParamRequired("FirstSlotStartTimeRange"))
  29467. }
  29468. if s.Recurrence == nil {
  29469. invalidParams.Add(request.NewErrParamRequired("Recurrence"))
  29470. }
  29471. if s.FirstSlotStartTimeRange != nil {
  29472. if err := s.FirstSlotStartTimeRange.Validate(); err != nil {
  29473. invalidParams.AddNested("FirstSlotStartTimeRange", err.(request.ErrInvalidParams))
  29474. }
  29475. }
  29476. if invalidParams.Len() > 0 {
  29477. return invalidParams
  29478. }
  29479. return nil
  29480. }
  29481. // SetDryRun sets the DryRun field's value.
  29482. func (s *DescribeScheduledInstanceAvailabilityInput) SetDryRun(v bool) *DescribeScheduledInstanceAvailabilityInput {
  29483. s.DryRun = &v
  29484. return s
  29485. }
  29486. // SetFilters sets the Filters field's value.
  29487. func (s *DescribeScheduledInstanceAvailabilityInput) SetFilters(v []*Filter) *DescribeScheduledInstanceAvailabilityInput {
  29488. s.Filters = v
  29489. return s
  29490. }
  29491. // SetFirstSlotStartTimeRange sets the FirstSlotStartTimeRange field's value.
  29492. func (s *DescribeScheduledInstanceAvailabilityInput) SetFirstSlotStartTimeRange(v *SlotDateTimeRangeRequest) *DescribeScheduledInstanceAvailabilityInput {
  29493. s.FirstSlotStartTimeRange = v
  29494. return s
  29495. }
  29496. // SetMaxResults sets the MaxResults field's value.
  29497. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxResults(v int64) *DescribeScheduledInstanceAvailabilityInput {
  29498. s.MaxResults = &v
  29499. return s
  29500. }
  29501. // SetMaxSlotDurationInHours sets the MaxSlotDurationInHours field's value.
  29502. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  29503. s.MaxSlotDurationInHours = &v
  29504. return s
  29505. }
  29506. // SetMinSlotDurationInHours sets the MinSlotDurationInHours field's value.
  29507. func (s *DescribeScheduledInstanceAvailabilityInput) SetMinSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  29508. s.MinSlotDurationInHours = &v
  29509. return s
  29510. }
  29511. // SetNextToken sets the NextToken field's value.
  29512. func (s *DescribeScheduledInstanceAvailabilityInput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityInput {
  29513. s.NextToken = &v
  29514. return s
  29515. }
  29516. // SetRecurrence sets the Recurrence field's value.
  29517. func (s *DescribeScheduledInstanceAvailabilityInput) SetRecurrence(v *ScheduledInstanceRecurrenceRequest) *DescribeScheduledInstanceAvailabilityInput {
  29518. s.Recurrence = v
  29519. return s
  29520. }
  29521. // Contains the output of DescribeScheduledInstanceAvailability.
  29522. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailabilityResult
  29523. type DescribeScheduledInstanceAvailabilityOutput struct {
  29524. _ struct{} `type:"structure"`
  29525. // The token required to retrieve the next set of results. This value is null
  29526. // when there are no more results to return.
  29527. NextToken *string `locationName:"nextToken" type:"string"`
  29528. // Information about the available Scheduled Instances.
  29529. ScheduledInstanceAvailabilitySet []*ScheduledInstanceAvailability `locationName:"scheduledInstanceAvailabilitySet" locationNameList:"item" type:"list"`
  29530. }
  29531. // String returns the string representation
  29532. func (s DescribeScheduledInstanceAvailabilityOutput) String() string {
  29533. return awsutil.Prettify(s)
  29534. }
  29535. // GoString returns the string representation
  29536. func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string {
  29537. return s.String()
  29538. }
  29539. // SetNextToken sets the NextToken field's value.
  29540. func (s *DescribeScheduledInstanceAvailabilityOutput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityOutput {
  29541. s.NextToken = &v
  29542. return s
  29543. }
  29544. // SetScheduledInstanceAvailabilitySet sets the ScheduledInstanceAvailabilitySet field's value.
  29545. func (s *DescribeScheduledInstanceAvailabilityOutput) SetScheduledInstanceAvailabilitySet(v []*ScheduledInstanceAvailability) *DescribeScheduledInstanceAvailabilityOutput {
  29546. s.ScheduledInstanceAvailabilitySet = v
  29547. return s
  29548. }
  29549. // Contains the parameters for DescribeScheduledInstances.
  29550. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstancesRequest
  29551. type DescribeScheduledInstancesInput struct {
  29552. _ struct{} `type:"structure"`
  29553. // Checks whether you have the required permissions for the action, without
  29554. // actually making the request, and provides an error response. If you have
  29555. // the required permissions, the error response is DryRunOperation. Otherwise,
  29556. // it is UnauthorizedOperation.
  29557. DryRun *bool `type:"boolean"`
  29558. // One or more filters.
  29559. //
  29560. // * availability-zone - The Availability Zone (for example, us-west-2a).
  29561. //
  29562. // * instance-type - The instance type (for example, c4.large).
  29563. //
  29564. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  29565. //
  29566. // * platform - The platform (Linux/UNIX or Windows).
  29567. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29568. // The maximum number of results to return in a single call. This value can
  29569. // be between 5 and 300. The default value is 100. To retrieve the remaining
  29570. // results, make another call with the returned NextToken value.
  29571. MaxResults *int64 `type:"integer"`
  29572. // The token for the next set of results.
  29573. NextToken *string `type:"string"`
  29574. // One or more Scheduled Instance IDs.
  29575. ScheduledInstanceIds []*string `locationName:"ScheduledInstanceId" locationNameList:"ScheduledInstanceId" type:"list"`
  29576. // The time period for the first schedule to start.
  29577. SlotStartTimeRange *SlotStartTimeRangeRequest `type:"structure"`
  29578. }
  29579. // String returns the string representation
  29580. func (s DescribeScheduledInstancesInput) String() string {
  29581. return awsutil.Prettify(s)
  29582. }
  29583. // GoString returns the string representation
  29584. func (s DescribeScheduledInstancesInput) GoString() string {
  29585. return s.String()
  29586. }
  29587. // SetDryRun sets the DryRun field's value.
  29588. func (s *DescribeScheduledInstancesInput) SetDryRun(v bool) *DescribeScheduledInstancesInput {
  29589. s.DryRun = &v
  29590. return s
  29591. }
  29592. // SetFilters sets the Filters field's value.
  29593. func (s *DescribeScheduledInstancesInput) SetFilters(v []*Filter) *DescribeScheduledInstancesInput {
  29594. s.Filters = v
  29595. return s
  29596. }
  29597. // SetMaxResults sets the MaxResults field's value.
  29598. func (s *DescribeScheduledInstancesInput) SetMaxResults(v int64) *DescribeScheduledInstancesInput {
  29599. s.MaxResults = &v
  29600. return s
  29601. }
  29602. // SetNextToken sets the NextToken field's value.
  29603. func (s *DescribeScheduledInstancesInput) SetNextToken(v string) *DescribeScheduledInstancesInput {
  29604. s.NextToken = &v
  29605. return s
  29606. }
  29607. // SetScheduledInstanceIds sets the ScheduledInstanceIds field's value.
  29608. func (s *DescribeScheduledInstancesInput) SetScheduledInstanceIds(v []*string) *DescribeScheduledInstancesInput {
  29609. s.ScheduledInstanceIds = v
  29610. return s
  29611. }
  29612. // SetSlotStartTimeRange sets the SlotStartTimeRange field's value.
  29613. func (s *DescribeScheduledInstancesInput) SetSlotStartTimeRange(v *SlotStartTimeRangeRequest) *DescribeScheduledInstancesInput {
  29614. s.SlotStartTimeRange = v
  29615. return s
  29616. }
  29617. // Contains the output of DescribeScheduledInstances.
  29618. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstancesResult
  29619. type DescribeScheduledInstancesOutput struct {
  29620. _ struct{} `type:"structure"`
  29621. // The token required to retrieve the next set of results. This value is null
  29622. // when there are no more results to return.
  29623. NextToken *string `locationName:"nextToken" type:"string"`
  29624. // Information about the Scheduled Instances.
  29625. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  29626. }
  29627. // String returns the string representation
  29628. func (s DescribeScheduledInstancesOutput) String() string {
  29629. return awsutil.Prettify(s)
  29630. }
  29631. // GoString returns the string representation
  29632. func (s DescribeScheduledInstancesOutput) GoString() string {
  29633. return s.String()
  29634. }
  29635. // SetNextToken sets the NextToken field's value.
  29636. func (s *DescribeScheduledInstancesOutput) SetNextToken(v string) *DescribeScheduledInstancesOutput {
  29637. s.NextToken = &v
  29638. return s
  29639. }
  29640. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  29641. func (s *DescribeScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *DescribeScheduledInstancesOutput {
  29642. s.ScheduledInstanceSet = v
  29643. return s
  29644. }
  29645. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferencesRequest
  29646. type DescribeSecurityGroupReferencesInput struct {
  29647. _ struct{} `type:"structure"`
  29648. // Checks whether you have the required permissions for the operation, without
  29649. // actually making the request, and provides an error response. If you have
  29650. // the required permissions, the error response is DryRunOperation. Otherwise,
  29651. // it is UnauthorizedOperation.
  29652. DryRun *bool `type:"boolean"`
  29653. // One or more security group IDs in your account.
  29654. //
  29655. // GroupId is a required field
  29656. GroupId []*string `locationNameList:"item" type:"list" required:"true"`
  29657. }
  29658. // String returns the string representation
  29659. func (s DescribeSecurityGroupReferencesInput) String() string {
  29660. return awsutil.Prettify(s)
  29661. }
  29662. // GoString returns the string representation
  29663. func (s DescribeSecurityGroupReferencesInput) GoString() string {
  29664. return s.String()
  29665. }
  29666. // Validate inspects the fields of the type to determine if they are valid.
  29667. func (s *DescribeSecurityGroupReferencesInput) Validate() error {
  29668. invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityGroupReferencesInput"}
  29669. if s.GroupId == nil {
  29670. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  29671. }
  29672. if invalidParams.Len() > 0 {
  29673. return invalidParams
  29674. }
  29675. return nil
  29676. }
  29677. // SetDryRun sets the DryRun field's value.
  29678. func (s *DescribeSecurityGroupReferencesInput) SetDryRun(v bool) *DescribeSecurityGroupReferencesInput {
  29679. s.DryRun = &v
  29680. return s
  29681. }
  29682. // SetGroupId sets the GroupId field's value.
  29683. func (s *DescribeSecurityGroupReferencesInput) SetGroupId(v []*string) *DescribeSecurityGroupReferencesInput {
  29684. s.GroupId = v
  29685. return s
  29686. }
  29687. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferencesResult
  29688. type DescribeSecurityGroupReferencesOutput struct {
  29689. _ struct{} `type:"structure"`
  29690. // Information about the VPCs with the referencing security groups.
  29691. SecurityGroupReferenceSet []*SecurityGroupReference `locationName:"securityGroupReferenceSet" locationNameList:"item" type:"list"`
  29692. }
  29693. // String returns the string representation
  29694. func (s DescribeSecurityGroupReferencesOutput) String() string {
  29695. return awsutil.Prettify(s)
  29696. }
  29697. // GoString returns the string representation
  29698. func (s DescribeSecurityGroupReferencesOutput) GoString() string {
  29699. return s.String()
  29700. }
  29701. // SetSecurityGroupReferenceSet sets the SecurityGroupReferenceSet field's value.
  29702. func (s *DescribeSecurityGroupReferencesOutput) SetSecurityGroupReferenceSet(v []*SecurityGroupReference) *DescribeSecurityGroupReferencesOutput {
  29703. s.SecurityGroupReferenceSet = v
  29704. return s
  29705. }
  29706. // Contains the parameters for DescribeSecurityGroups.
  29707. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupsRequest
  29708. type DescribeSecurityGroupsInput struct {
  29709. _ struct{} `type:"structure"`
  29710. // Checks whether you have the required permissions for the action, without
  29711. // actually making the request, and provides an error response. If you have
  29712. // the required permissions, the error response is DryRunOperation. Otherwise,
  29713. // it is UnauthorizedOperation.
  29714. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29715. // One or more filters. If using multiple filters for rules, the results include
  29716. // security groups for which any combination of rules - not necessarily a single
  29717. // rule - match all filters.
  29718. //
  29719. // * description - The description of the security group.
  29720. //
  29721. // * egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service
  29722. // to which the security group allows access.
  29723. //
  29724. // * group-id - The ID of the security group.
  29725. //
  29726. // * group-name - The name of the security group.
  29727. //
  29728. // * ip-permission.cidr - An IPv4 CIDR range that has been granted permission
  29729. // in a security group rule.
  29730. //
  29731. // * ip-permission.from-port - The start of port range for the TCP and UDP
  29732. // protocols, or an ICMP type number.
  29733. //
  29734. // * ip-permission.group-id - The ID of a security group that has been granted
  29735. // permission.
  29736. //
  29737. // * ip-permission.group-name - The name of a security group that has been
  29738. // granted permission.
  29739. //
  29740. // * ip-permission.ipv6-cidr - An IPv6 CIDR range that has been granted permission
  29741. // in a security group rule.
  29742. //
  29743. // * ip-permission.protocol - The IP protocol for the permission (tcp | udp
  29744. // | icmp or a protocol number).
  29745. //
  29746. // * ip-permission.to-port - The end of port range for the TCP and UDP protocols,
  29747. // or an ICMP code.
  29748. //
  29749. // * ip-permission.user-id - The ID of an AWS account that has been granted
  29750. // permission.
  29751. //
  29752. // * owner-id - The AWS account ID of the owner of the security group.
  29753. //
  29754. // * tag-key - The key of a tag assigned to the security group.
  29755. //
  29756. // * tag-value - The value of a tag assigned to the security group.
  29757. //
  29758. // * vpc-id - The ID of the VPC specified when the security group was created.
  29759. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29760. // One or more security group IDs. Required for security groups in a nondefault
  29761. // VPC.
  29762. //
  29763. // Default: Describes all your security groups.
  29764. GroupIds []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  29765. // [EC2-Classic and default VPC only] One or more security group names. You
  29766. // can specify either the security group name or the security group ID. For
  29767. // security groups in a nondefault VPC, use the group-name filter to describe
  29768. // security groups by name.
  29769. //
  29770. // Default: Describes all your security groups.
  29771. GroupNames []*string `locationName:"GroupName" locationNameList:"GroupName" type:"list"`
  29772. }
  29773. // String returns the string representation
  29774. func (s DescribeSecurityGroupsInput) String() string {
  29775. return awsutil.Prettify(s)
  29776. }
  29777. // GoString returns the string representation
  29778. func (s DescribeSecurityGroupsInput) GoString() string {
  29779. return s.String()
  29780. }
  29781. // SetDryRun sets the DryRun field's value.
  29782. func (s *DescribeSecurityGroupsInput) SetDryRun(v bool) *DescribeSecurityGroupsInput {
  29783. s.DryRun = &v
  29784. return s
  29785. }
  29786. // SetFilters sets the Filters field's value.
  29787. func (s *DescribeSecurityGroupsInput) SetFilters(v []*Filter) *DescribeSecurityGroupsInput {
  29788. s.Filters = v
  29789. return s
  29790. }
  29791. // SetGroupIds sets the GroupIds field's value.
  29792. func (s *DescribeSecurityGroupsInput) SetGroupIds(v []*string) *DescribeSecurityGroupsInput {
  29793. s.GroupIds = v
  29794. return s
  29795. }
  29796. // SetGroupNames sets the GroupNames field's value.
  29797. func (s *DescribeSecurityGroupsInput) SetGroupNames(v []*string) *DescribeSecurityGroupsInput {
  29798. s.GroupNames = v
  29799. return s
  29800. }
  29801. // Contains the output of DescribeSecurityGroups.
  29802. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupsResult
  29803. type DescribeSecurityGroupsOutput struct {
  29804. _ struct{} `type:"structure"`
  29805. // Information about one or more security groups.
  29806. SecurityGroups []*SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"`
  29807. }
  29808. // String returns the string representation
  29809. func (s DescribeSecurityGroupsOutput) String() string {
  29810. return awsutil.Prettify(s)
  29811. }
  29812. // GoString returns the string representation
  29813. func (s DescribeSecurityGroupsOutput) GoString() string {
  29814. return s.String()
  29815. }
  29816. // SetSecurityGroups sets the SecurityGroups field's value.
  29817. func (s *DescribeSecurityGroupsOutput) SetSecurityGroups(v []*SecurityGroup) *DescribeSecurityGroupsOutput {
  29818. s.SecurityGroups = v
  29819. return s
  29820. }
  29821. // Contains the parameters for DescribeSnapshotAttribute.
  29822. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttributeRequest
  29823. type DescribeSnapshotAttributeInput struct {
  29824. _ struct{} `type:"structure"`
  29825. // The snapshot attribute you would like to view.
  29826. //
  29827. // Attribute is a required field
  29828. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  29829. // Checks whether you have the required permissions for the action, without
  29830. // actually making the request, and provides an error response. If you have
  29831. // the required permissions, the error response is DryRunOperation. Otherwise,
  29832. // it is UnauthorizedOperation.
  29833. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29834. // The ID of the EBS snapshot.
  29835. //
  29836. // SnapshotId is a required field
  29837. SnapshotId *string `type:"string" required:"true"`
  29838. }
  29839. // String returns the string representation
  29840. func (s DescribeSnapshotAttributeInput) String() string {
  29841. return awsutil.Prettify(s)
  29842. }
  29843. // GoString returns the string representation
  29844. func (s DescribeSnapshotAttributeInput) GoString() string {
  29845. return s.String()
  29846. }
  29847. // Validate inspects the fields of the type to determine if they are valid.
  29848. func (s *DescribeSnapshotAttributeInput) Validate() error {
  29849. invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotAttributeInput"}
  29850. if s.Attribute == nil {
  29851. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  29852. }
  29853. if s.SnapshotId == nil {
  29854. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  29855. }
  29856. if invalidParams.Len() > 0 {
  29857. return invalidParams
  29858. }
  29859. return nil
  29860. }
  29861. // SetAttribute sets the Attribute field's value.
  29862. func (s *DescribeSnapshotAttributeInput) SetAttribute(v string) *DescribeSnapshotAttributeInput {
  29863. s.Attribute = &v
  29864. return s
  29865. }
  29866. // SetDryRun sets the DryRun field's value.
  29867. func (s *DescribeSnapshotAttributeInput) SetDryRun(v bool) *DescribeSnapshotAttributeInput {
  29868. s.DryRun = &v
  29869. return s
  29870. }
  29871. // SetSnapshotId sets the SnapshotId field's value.
  29872. func (s *DescribeSnapshotAttributeInput) SetSnapshotId(v string) *DescribeSnapshotAttributeInput {
  29873. s.SnapshotId = &v
  29874. return s
  29875. }
  29876. // Contains the output of DescribeSnapshotAttribute.
  29877. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttributeResult
  29878. type DescribeSnapshotAttributeOutput struct {
  29879. _ struct{} `type:"structure"`
  29880. // A list of permissions for creating volumes from the snapshot.
  29881. CreateVolumePermissions []*CreateVolumePermission `locationName:"createVolumePermission" locationNameList:"item" type:"list"`
  29882. // A list of product codes.
  29883. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  29884. // The ID of the EBS snapshot.
  29885. SnapshotId *string `locationName:"snapshotId" type:"string"`
  29886. }
  29887. // String returns the string representation
  29888. func (s DescribeSnapshotAttributeOutput) String() string {
  29889. return awsutil.Prettify(s)
  29890. }
  29891. // GoString returns the string representation
  29892. func (s DescribeSnapshotAttributeOutput) GoString() string {
  29893. return s.String()
  29894. }
  29895. // SetCreateVolumePermissions sets the CreateVolumePermissions field's value.
  29896. func (s *DescribeSnapshotAttributeOutput) SetCreateVolumePermissions(v []*CreateVolumePermission) *DescribeSnapshotAttributeOutput {
  29897. s.CreateVolumePermissions = v
  29898. return s
  29899. }
  29900. // SetProductCodes sets the ProductCodes field's value.
  29901. func (s *DescribeSnapshotAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeSnapshotAttributeOutput {
  29902. s.ProductCodes = v
  29903. return s
  29904. }
  29905. // SetSnapshotId sets the SnapshotId field's value.
  29906. func (s *DescribeSnapshotAttributeOutput) SetSnapshotId(v string) *DescribeSnapshotAttributeOutput {
  29907. s.SnapshotId = &v
  29908. return s
  29909. }
  29910. // Contains the parameters for DescribeSnapshots.
  29911. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotsRequest
  29912. type DescribeSnapshotsInput struct {
  29913. _ struct{} `type:"structure"`
  29914. // Checks whether you have the required permissions for the action, without
  29915. // actually making the request, and provides an error response. If you have
  29916. // the required permissions, the error response is DryRunOperation. Otherwise,
  29917. // it is UnauthorizedOperation.
  29918. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29919. // One or more filters.
  29920. //
  29921. // * description - A description of the snapshot.
  29922. //
  29923. // * owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace
  29924. // | microsoft) of snapshot owners. Not to be confused with the user-configured
  29925. // AWS account alias, which is set from the IAM consolew.
  29926. //
  29927. // * owner-id - The ID of the AWS account that owns the snapshot.
  29928. //
  29929. // * progress - The progress of the snapshot, as a percentage (for example,
  29930. // 80%).
  29931. //
  29932. // * snapshot-id - The snapshot ID.
  29933. //
  29934. // * start-time - The time stamp when the snapshot was initiated.
  29935. //
  29936. // * status - The status of the snapshot (pending | completed | error).
  29937. //
  29938. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  29939. // Specify the key of the tag in the filter name and the value of the tag
  29940. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  29941. // for the filter name and X for the filter value.
  29942. //
  29943. // * tag-key - The key of a tag assigned to the resource. This filter is
  29944. // independent of the tag-value filter. For example, if you use both the
  29945. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  29946. // assigned both the tag key Purpose (regardless of what the tag's value
  29947. // is), and the tag value X (regardless of what the tag's key is). If you
  29948. // want to list only resources where Purpose is X, see the tag:key=value
  29949. // filter.
  29950. //
  29951. // * tag-value - The value of a tag assigned to the resource. This filter
  29952. // is independent of the tag-key filter.
  29953. //
  29954. // * volume-id - The ID of the volume the snapshot is for.
  29955. //
  29956. // * volume-size - The size of the volume, in GiB.
  29957. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29958. // The maximum number of snapshot results returned by DescribeSnapshots in paginated
  29959. // output. When this parameter is used, DescribeSnapshots only returns MaxResults
  29960. // results in a single page along with a NextToken response element. The remaining
  29961. // results of the initial request can be seen by sending another DescribeSnapshots
  29962. // request with the returned NextToken value. This value can be between 5 and
  29963. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  29964. // are returned. If this parameter is not used, then DescribeSnapshots returns
  29965. // all results. You cannot specify this parameter and the snapshot IDs parameter
  29966. // in the same request.
  29967. MaxResults *int64 `type:"integer"`
  29968. // The NextToken value returned from a previous paginated DescribeSnapshots
  29969. // request where MaxResults was used and the results exceeded the value of that
  29970. // parameter. Pagination continues from the end of the previous results that
  29971. // returned the NextToken value. This value is null when there are no more results
  29972. // to return.
  29973. NextToken *string `type:"string"`
  29974. // Returns the snapshots owned by the specified owner. Multiple owners can be
  29975. // specified.
  29976. OwnerIds []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  29977. // One or more AWS accounts IDs that can create volumes from the snapshot.
  29978. RestorableByUserIds []*string `locationName:"RestorableBy" type:"list"`
  29979. // One or more snapshot IDs.
  29980. //
  29981. // Default: Describes snapshots for which you have launch permissions.
  29982. SnapshotIds []*string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"`
  29983. }
  29984. // String returns the string representation
  29985. func (s DescribeSnapshotsInput) String() string {
  29986. return awsutil.Prettify(s)
  29987. }
  29988. // GoString returns the string representation
  29989. func (s DescribeSnapshotsInput) GoString() string {
  29990. return s.String()
  29991. }
  29992. // SetDryRun sets the DryRun field's value.
  29993. func (s *DescribeSnapshotsInput) SetDryRun(v bool) *DescribeSnapshotsInput {
  29994. s.DryRun = &v
  29995. return s
  29996. }
  29997. // SetFilters sets the Filters field's value.
  29998. func (s *DescribeSnapshotsInput) SetFilters(v []*Filter) *DescribeSnapshotsInput {
  29999. s.Filters = v
  30000. return s
  30001. }
  30002. // SetMaxResults sets the MaxResults field's value.
  30003. func (s *DescribeSnapshotsInput) SetMaxResults(v int64) *DescribeSnapshotsInput {
  30004. s.MaxResults = &v
  30005. return s
  30006. }
  30007. // SetNextToken sets the NextToken field's value.
  30008. func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput {
  30009. s.NextToken = &v
  30010. return s
  30011. }
  30012. // SetOwnerIds sets the OwnerIds field's value.
  30013. func (s *DescribeSnapshotsInput) SetOwnerIds(v []*string) *DescribeSnapshotsInput {
  30014. s.OwnerIds = v
  30015. return s
  30016. }
  30017. // SetRestorableByUserIds sets the RestorableByUserIds field's value.
  30018. func (s *DescribeSnapshotsInput) SetRestorableByUserIds(v []*string) *DescribeSnapshotsInput {
  30019. s.RestorableByUserIds = v
  30020. return s
  30021. }
  30022. // SetSnapshotIds sets the SnapshotIds field's value.
  30023. func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput {
  30024. s.SnapshotIds = v
  30025. return s
  30026. }
  30027. // Contains the output of DescribeSnapshots.
  30028. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotsResult
  30029. type DescribeSnapshotsOutput struct {
  30030. _ struct{} `type:"structure"`
  30031. // The NextToken value to include in a future DescribeSnapshots request. When
  30032. // the results of a DescribeSnapshots request exceed MaxResults, this value
  30033. // can be used to retrieve the next page of results. This value is null when
  30034. // there are no more results to return.
  30035. NextToken *string `locationName:"nextToken" type:"string"`
  30036. // Information about the snapshots.
  30037. Snapshots []*Snapshot `locationName:"snapshotSet" locationNameList:"item" type:"list"`
  30038. }
  30039. // String returns the string representation
  30040. func (s DescribeSnapshotsOutput) String() string {
  30041. return awsutil.Prettify(s)
  30042. }
  30043. // GoString returns the string representation
  30044. func (s DescribeSnapshotsOutput) GoString() string {
  30045. return s.String()
  30046. }
  30047. // SetNextToken sets the NextToken field's value.
  30048. func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput {
  30049. s.NextToken = &v
  30050. return s
  30051. }
  30052. // SetSnapshots sets the Snapshots field's value.
  30053. func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput {
  30054. s.Snapshots = v
  30055. return s
  30056. }
  30057. // Contains the parameters for DescribeSpotDatafeedSubscription.
  30058. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscriptionRequest
  30059. type DescribeSpotDatafeedSubscriptionInput struct {
  30060. _ struct{} `type:"structure"`
  30061. // Checks whether you have the required permissions for the action, without
  30062. // actually making the request, and provides an error response. If you have
  30063. // the required permissions, the error response is DryRunOperation. Otherwise,
  30064. // it is UnauthorizedOperation.
  30065. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30066. }
  30067. // String returns the string representation
  30068. func (s DescribeSpotDatafeedSubscriptionInput) String() string {
  30069. return awsutil.Prettify(s)
  30070. }
  30071. // GoString returns the string representation
  30072. func (s DescribeSpotDatafeedSubscriptionInput) GoString() string {
  30073. return s.String()
  30074. }
  30075. // SetDryRun sets the DryRun field's value.
  30076. func (s *DescribeSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DescribeSpotDatafeedSubscriptionInput {
  30077. s.DryRun = &v
  30078. return s
  30079. }
  30080. // Contains the output of DescribeSpotDatafeedSubscription.
  30081. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscriptionResult
  30082. type DescribeSpotDatafeedSubscriptionOutput struct {
  30083. _ struct{} `type:"structure"`
  30084. // The Spot instance data feed subscription.
  30085. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  30086. }
  30087. // String returns the string representation
  30088. func (s DescribeSpotDatafeedSubscriptionOutput) String() string {
  30089. return awsutil.Prettify(s)
  30090. }
  30091. // GoString returns the string representation
  30092. func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string {
  30093. return s.String()
  30094. }
  30095. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  30096. func (s *DescribeSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *DescribeSpotDatafeedSubscriptionOutput {
  30097. s.SpotDatafeedSubscription = v
  30098. return s
  30099. }
  30100. // Contains the parameters for DescribeSpotFleetInstances.
  30101. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstancesRequest
  30102. type DescribeSpotFleetInstancesInput struct {
  30103. _ struct{} `type:"structure"`
  30104. // Checks whether you have the required permissions for the action, without
  30105. // actually making the request, and provides an error response. If you have
  30106. // the required permissions, the error response is DryRunOperation. Otherwise,
  30107. // it is UnauthorizedOperation.
  30108. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30109. // The maximum number of results to return in a single call. Specify a value
  30110. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  30111. // results, make another call with the returned NextToken value.
  30112. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  30113. // The token for the next set of results.
  30114. NextToken *string `locationName:"nextToken" type:"string"`
  30115. // The ID of the Spot fleet request.
  30116. //
  30117. // SpotFleetRequestId is a required field
  30118. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  30119. }
  30120. // String returns the string representation
  30121. func (s DescribeSpotFleetInstancesInput) String() string {
  30122. return awsutil.Prettify(s)
  30123. }
  30124. // GoString returns the string representation
  30125. func (s DescribeSpotFleetInstancesInput) GoString() string {
  30126. return s.String()
  30127. }
  30128. // Validate inspects the fields of the type to determine if they are valid.
  30129. func (s *DescribeSpotFleetInstancesInput) Validate() error {
  30130. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetInstancesInput"}
  30131. if s.SpotFleetRequestId == nil {
  30132. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  30133. }
  30134. if invalidParams.Len() > 0 {
  30135. return invalidParams
  30136. }
  30137. return nil
  30138. }
  30139. // SetDryRun sets the DryRun field's value.
  30140. func (s *DescribeSpotFleetInstancesInput) SetDryRun(v bool) *DescribeSpotFleetInstancesInput {
  30141. s.DryRun = &v
  30142. return s
  30143. }
  30144. // SetMaxResults sets the MaxResults field's value.
  30145. func (s *DescribeSpotFleetInstancesInput) SetMaxResults(v int64) *DescribeSpotFleetInstancesInput {
  30146. s.MaxResults = &v
  30147. return s
  30148. }
  30149. // SetNextToken sets the NextToken field's value.
  30150. func (s *DescribeSpotFleetInstancesInput) SetNextToken(v string) *DescribeSpotFleetInstancesInput {
  30151. s.NextToken = &v
  30152. return s
  30153. }
  30154. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  30155. func (s *DescribeSpotFleetInstancesInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesInput {
  30156. s.SpotFleetRequestId = &v
  30157. return s
  30158. }
  30159. // Contains the output of DescribeSpotFleetInstances.
  30160. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstancesResponse
  30161. type DescribeSpotFleetInstancesOutput struct {
  30162. _ struct{} `type:"structure"`
  30163. // The running instances. Note that this list is refreshed periodically and
  30164. // might be out of date.
  30165. //
  30166. // ActiveInstances is a required field
  30167. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list" required:"true"`
  30168. // The token required to retrieve the next set of results. This value is null
  30169. // when there are no more results to return.
  30170. NextToken *string `locationName:"nextToken" type:"string"`
  30171. // The ID of the Spot fleet request.
  30172. //
  30173. // SpotFleetRequestId is a required field
  30174. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  30175. }
  30176. // String returns the string representation
  30177. func (s DescribeSpotFleetInstancesOutput) String() string {
  30178. return awsutil.Prettify(s)
  30179. }
  30180. // GoString returns the string representation
  30181. func (s DescribeSpotFleetInstancesOutput) GoString() string {
  30182. return s.String()
  30183. }
  30184. // SetActiveInstances sets the ActiveInstances field's value.
  30185. func (s *DescribeSpotFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeSpotFleetInstancesOutput {
  30186. s.ActiveInstances = v
  30187. return s
  30188. }
  30189. // SetNextToken sets the NextToken field's value.
  30190. func (s *DescribeSpotFleetInstancesOutput) SetNextToken(v string) *DescribeSpotFleetInstancesOutput {
  30191. s.NextToken = &v
  30192. return s
  30193. }
  30194. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  30195. func (s *DescribeSpotFleetInstancesOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesOutput {
  30196. s.SpotFleetRequestId = &v
  30197. return s
  30198. }
  30199. // Contains the parameters for DescribeSpotFleetRequestHistory.
  30200. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistoryRequest
  30201. type DescribeSpotFleetRequestHistoryInput struct {
  30202. _ struct{} `type:"structure"`
  30203. // Checks whether you have the required permissions for the action, without
  30204. // actually making the request, and provides an error response. If you have
  30205. // the required permissions, the error response is DryRunOperation. Otherwise,
  30206. // it is UnauthorizedOperation.
  30207. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30208. // The type of events to describe. By default, all events are described.
  30209. EventType *string `locationName:"eventType" type:"string" enum:"EventType"`
  30210. // The maximum number of results to return in a single call. Specify a value
  30211. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  30212. // results, make another call with the returned NextToken value.
  30213. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  30214. // The token for the next set of results.
  30215. NextToken *string `locationName:"nextToken" type:"string"`
  30216. // The ID of the Spot fleet request.
  30217. //
  30218. // SpotFleetRequestId is a required field
  30219. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  30220. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  30221. //
  30222. // StartTime is a required field
  30223. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  30224. }
  30225. // String returns the string representation
  30226. func (s DescribeSpotFleetRequestHistoryInput) String() string {
  30227. return awsutil.Prettify(s)
  30228. }
  30229. // GoString returns the string representation
  30230. func (s DescribeSpotFleetRequestHistoryInput) GoString() string {
  30231. return s.String()
  30232. }
  30233. // Validate inspects the fields of the type to determine if they are valid.
  30234. func (s *DescribeSpotFleetRequestHistoryInput) Validate() error {
  30235. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetRequestHistoryInput"}
  30236. if s.SpotFleetRequestId == nil {
  30237. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  30238. }
  30239. if s.StartTime == nil {
  30240. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  30241. }
  30242. if invalidParams.Len() > 0 {
  30243. return invalidParams
  30244. }
  30245. return nil
  30246. }
  30247. // SetDryRun sets the DryRun field's value.
  30248. func (s *DescribeSpotFleetRequestHistoryInput) SetDryRun(v bool) *DescribeSpotFleetRequestHistoryInput {
  30249. s.DryRun = &v
  30250. return s
  30251. }
  30252. // SetEventType sets the EventType field's value.
  30253. func (s *DescribeSpotFleetRequestHistoryInput) SetEventType(v string) *DescribeSpotFleetRequestHistoryInput {
  30254. s.EventType = &v
  30255. return s
  30256. }
  30257. // SetMaxResults sets the MaxResults field's value.
  30258. func (s *DescribeSpotFleetRequestHistoryInput) SetMaxResults(v int64) *DescribeSpotFleetRequestHistoryInput {
  30259. s.MaxResults = &v
  30260. return s
  30261. }
  30262. // SetNextToken sets the NextToken field's value.
  30263. func (s *DescribeSpotFleetRequestHistoryInput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryInput {
  30264. s.NextToken = &v
  30265. return s
  30266. }
  30267. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  30268. func (s *DescribeSpotFleetRequestHistoryInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryInput {
  30269. s.SpotFleetRequestId = &v
  30270. return s
  30271. }
  30272. // SetStartTime sets the StartTime field's value.
  30273. func (s *DescribeSpotFleetRequestHistoryInput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryInput {
  30274. s.StartTime = &v
  30275. return s
  30276. }
  30277. // Contains the output of DescribeSpotFleetRequestHistory.
  30278. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistoryResponse
  30279. type DescribeSpotFleetRequestHistoryOutput struct {
  30280. _ struct{} `type:"structure"`
  30281. // Information about the events in the history of the Spot fleet request.
  30282. //
  30283. // HistoryRecords is a required field
  30284. HistoryRecords []*HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list" required:"true"`
  30285. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  30286. // All records up to this time were retrieved.
  30287. //
  30288. // If nextToken indicates that there are more results, this value is not present.
  30289. //
  30290. // LastEvaluatedTime is a required field
  30291. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  30292. // The token required to retrieve the next set of results. This value is null
  30293. // when there are no more results to return.
  30294. NextToken *string `locationName:"nextToken" type:"string"`
  30295. // The ID of the Spot fleet request.
  30296. //
  30297. // SpotFleetRequestId is a required field
  30298. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  30299. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  30300. //
  30301. // StartTime is a required field
  30302. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  30303. }
  30304. // String returns the string representation
  30305. func (s DescribeSpotFleetRequestHistoryOutput) String() string {
  30306. return awsutil.Prettify(s)
  30307. }
  30308. // GoString returns the string representation
  30309. func (s DescribeSpotFleetRequestHistoryOutput) GoString() string {
  30310. return s.String()
  30311. }
  30312. // SetHistoryRecords sets the HistoryRecords field's value.
  30313. func (s *DescribeSpotFleetRequestHistoryOutput) SetHistoryRecords(v []*HistoryRecord) *DescribeSpotFleetRequestHistoryOutput {
  30314. s.HistoryRecords = v
  30315. return s
  30316. }
  30317. // SetLastEvaluatedTime sets the LastEvaluatedTime field's value.
  30318. func (s *DescribeSpotFleetRequestHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  30319. s.LastEvaluatedTime = &v
  30320. return s
  30321. }
  30322. // SetNextToken sets the NextToken field's value.
  30323. func (s *DescribeSpotFleetRequestHistoryOutput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryOutput {
  30324. s.NextToken = &v
  30325. return s
  30326. }
  30327. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  30328. func (s *DescribeSpotFleetRequestHistoryOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryOutput {
  30329. s.SpotFleetRequestId = &v
  30330. return s
  30331. }
  30332. // SetStartTime sets the StartTime field's value.
  30333. func (s *DescribeSpotFleetRequestHistoryOutput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  30334. s.StartTime = &v
  30335. return s
  30336. }
  30337. // Contains the parameters for DescribeSpotFleetRequests.
  30338. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestsRequest
  30339. type DescribeSpotFleetRequestsInput struct {
  30340. _ struct{} `type:"structure"`
  30341. // Checks whether you have the required permissions for the action, without
  30342. // actually making the request, and provides an error response. If you have
  30343. // the required permissions, the error response is DryRunOperation. Otherwise,
  30344. // it is UnauthorizedOperation.
  30345. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30346. // The maximum number of results to return in a single call. Specify a value
  30347. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  30348. // results, make another call with the returned NextToken value.
  30349. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  30350. // The token for the next set of results.
  30351. NextToken *string `locationName:"nextToken" type:"string"`
  30352. // The IDs of the Spot fleet requests.
  30353. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"`
  30354. }
  30355. // String returns the string representation
  30356. func (s DescribeSpotFleetRequestsInput) String() string {
  30357. return awsutil.Prettify(s)
  30358. }
  30359. // GoString returns the string representation
  30360. func (s DescribeSpotFleetRequestsInput) GoString() string {
  30361. return s.String()
  30362. }
  30363. // SetDryRun sets the DryRun field's value.
  30364. func (s *DescribeSpotFleetRequestsInput) SetDryRun(v bool) *DescribeSpotFleetRequestsInput {
  30365. s.DryRun = &v
  30366. return s
  30367. }
  30368. // SetMaxResults sets the MaxResults field's value.
  30369. func (s *DescribeSpotFleetRequestsInput) SetMaxResults(v int64) *DescribeSpotFleetRequestsInput {
  30370. s.MaxResults = &v
  30371. return s
  30372. }
  30373. // SetNextToken sets the NextToken field's value.
  30374. func (s *DescribeSpotFleetRequestsInput) SetNextToken(v string) *DescribeSpotFleetRequestsInput {
  30375. s.NextToken = &v
  30376. return s
  30377. }
  30378. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  30379. func (s *DescribeSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *DescribeSpotFleetRequestsInput {
  30380. s.SpotFleetRequestIds = v
  30381. return s
  30382. }
  30383. // Contains the output of DescribeSpotFleetRequests.
  30384. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestsResponse
  30385. type DescribeSpotFleetRequestsOutput struct {
  30386. _ struct{} `type:"structure"`
  30387. // The token required to retrieve the next set of results. This value is null
  30388. // when there are no more results to return.
  30389. NextToken *string `locationName:"nextToken" type:"string"`
  30390. // Information about the configuration of your Spot fleet.
  30391. //
  30392. // SpotFleetRequestConfigs is a required field
  30393. SpotFleetRequestConfigs []*SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list" required:"true"`
  30394. }
  30395. // String returns the string representation
  30396. func (s DescribeSpotFleetRequestsOutput) String() string {
  30397. return awsutil.Prettify(s)
  30398. }
  30399. // GoString returns the string representation
  30400. func (s DescribeSpotFleetRequestsOutput) GoString() string {
  30401. return s.String()
  30402. }
  30403. // SetNextToken sets the NextToken field's value.
  30404. func (s *DescribeSpotFleetRequestsOutput) SetNextToken(v string) *DescribeSpotFleetRequestsOutput {
  30405. s.NextToken = &v
  30406. return s
  30407. }
  30408. // SetSpotFleetRequestConfigs sets the SpotFleetRequestConfigs field's value.
  30409. func (s *DescribeSpotFleetRequestsOutput) SetSpotFleetRequestConfigs(v []*SpotFleetRequestConfig) *DescribeSpotFleetRequestsOutput {
  30410. s.SpotFleetRequestConfigs = v
  30411. return s
  30412. }
  30413. // Contains the parameters for DescribeSpotInstanceRequests.
  30414. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequestsRequest
  30415. type DescribeSpotInstanceRequestsInput struct {
  30416. _ struct{} `type:"structure"`
  30417. // Checks whether you have the required permissions for the action, without
  30418. // actually making the request, and provides an error response. If you have
  30419. // the required permissions, the error response is DryRunOperation. Otherwise,
  30420. // it is UnauthorizedOperation.
  30421. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30422. // One or more filters.
  30423. //
  30424. // * availability-zone-group - The Availability Zone group.
  30425. //
  30426. // * create-time - The time stamp when the Spot instance request was created.
  30427. //
  30428. // * fault-code - The fault code related to the request.
  30429. //
  30430. // * fault-message - The fault message related to the request.
  30431. //
  30432. // * instance-id - The ID of the instance that fulfilled the request.
  30433. //
  30434. // * launch-group - The Spot instance launch group.
  30435. //
  30436. // * launch.block-device-mapping.delete-on-termination - Indicates whether
  30437. // the Amazon EBS volume is deleted on instance termination.
  30438. //
  30439. // * launch.block-device-mapping.device-name - The device name for the Amazon
  30440. // EBS volume (for example, /dev/sdh).
  30441. //
  30442. // * launch.block-device-mapping.snapshot-id - The ID of the snapshot used
  30443. // for the Amazon EBS volume.
  30444. //
  30445. // * launch.block-device-mapping.volume-size - The size of the Amazon EBS
  30446. // volume, in GiB.
  30447. //
  30448. // * launch.block-device-mapping.volume-type - The type of the Amazon EBS
  30449. // volume: gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1
  30450. // for Throughput Optimized HDD, sc1for Cold HDD, or standard for Magnetic.
  30451. //
  30452. // * launch.group-id - The security group for the instance.
  30453. //
  30454. // * launch.image-id - The ID of the AMI.
  30455. //
  30456. // * launch.instance-type - The type of instance (for example, m3.medium).
  30457. //
  30458. // * launch.kernel-id - The kernel ID.
  30459. //
  30460. // * launch.key-name - The name of the key pair the instance launched with.
  30461. //
  30462. // * launch.monitoring-enabled - Whether monitoring is enabled for the Spot
  30463. // instance.
  30464. //
  30465. // * launch.ramdisk-id - The RAM disk ID.
  30466. //
  30467. // * network-interface.network-interface-id - The ID of the network interface.
  30468. //
  30469. // * network-interface.device-index - The index of the device for the network
  30470. // interface attachment on the instance.
  30471. //
  30472. // * network-interface.subnet-id - The ID of the subnet for the instance.
  30473. //
  30474. // * network-interface.description - A description of the network interface.
  30475. //
  30476. // * network-interface.private-ip-address - The primary private IP address
  30477. // of the network interface.
  30478. //
  30479. // * network-interface.delete-on-termination - Indicates whether the network
  30480. // interface is deleted when the instance is terminated.
  30481. //
  30482. // * network-interface.group-id - The ID of the security group associated
  30483. // with the network interface.
  30484. //
  30485. // * network-interface.group-name - The name of the security group associated
  30486. // with the network interface.
  30487. //
  30488. // * network-interface.addresses.primary - Indicates whether the IP address
  30489. // is the primary private IP address.
  30490. //
  30491. // * product-description - The product description associated with the instance
  30492. // (Linux/UNIX | Windows).
  30493. //
  30494. // * spot-instance-request-id - The Spot instance request ID.
  30495. //
  30496. // * spot-price - The maximum hourly price for any Spot instance launched
  30497. // to fulfill the request.
  30498. //
  30499. // * state - The state of the Spot instance request (open | active | closed
  30500. // | cancelled | failed). Spot bid status information can help you track
  30501. // your Amazon EC2 Spot instance requests. For more information, see Spot
  30502. // Bid Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  30503. // in the Amazon Elastic Compute Cloud User Guide.
  30504. //
  30505. // * status-code - The short code describing the most recent evaluation of
  30506. // your Spot instance request.
  30507. //
  30508. // * status-message - The message explaining the status of the Spot instance
  30509. // request.
  30510. //
  30511. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  30512. // Specify the key of the tag in the filter name and the value of the tag
  30513. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  30514. // for the filter name and X for the filter value.
  30515. //
  30516. // * tag-key - The key of a tag assigned to the resource. This filter is
  30517. // independent of the tag-value filter. For example, if you use both the
  30518. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  30519. // assigned both the tag key Purpose (regardless of what the tag's value
  30520. // is), and the tag value X (regardless of what the tag's key is). If you
  30521. // want to list only resources where Purpose is X, see the tag:key=value
  30522. // filter.
  30523. //
  30524. // * tag-value - The value of a tag assigned to the resource. This filter
  30525. // is independent of the tag-key filter.
  30526. //
  30527. // * type - The type of Spot instance request (one-time | persistent).
  30528. //
  30529. // * launched-availability-zone - The Availability Zone in which the bid
  30530. // is launched.
  30531. //
  30532. // * valid-from - The start date of the request.
  30533. //
  30534. // * valid-until - The end date of the request.
  30535. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30536. // One or more Spot instance request IDs.
  30537. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"`
  30538. }
  30539. // String returns the string representation
  30540. func (s DescribeSpotInstanceRequestsInput) String() string {
  30541. return awsutil.Prettify(s)
  30542. }
  30543. // GoString returns the string representation
  30544. func (s DescribeSpotInstanceRequestsInput) GoString() string {
  30545. return s.String()
  30546. }
  30547. // SetDryRun sets the DryRun field's value.
  30548. func (s *DescribeSpotInstanceRequestsInput) SetDryRun(v bool) *DescribeSpotInstanceRequestsInput {
  30549. s.DryRun = &v
  30550. return s
  30551. }
  30552. // SetFilters sets the Filters field's value.
  30553. func (s *DescribeSpotInstanceRequestsInput) SetFilters(v []*Filter) *DescribeSpotInstanceRequestsInput {
  30554. s.Filters = v
  30555. return s
  30556. }
  30557. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  30558. func (s *DescribeSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *DescribeSpotInstanceRequestsInput {
  30559. s.SpotInstanceRequestIds = v
  30560. return s
  30561. }
  30562. // Contains the output of DescribeSpotInstanceRequests.
  30563. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequestsResult
  30564. type DescribeSpotInstanceRequestsOutput struct {
  30565. _ struct{} `type:"structure"`
  30566. // One or more Spot instance requests.
  30567. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  30568. }
  30569. // String returns the string representation
  30570. func (s DescribeSpotInstanceRequestsOutput) String() string {
  30571. return awsutil.Prettify(s)
  30572. }
  30573. // GoString returns the string representation
  30574. func (s DescribeSpotInstanceRequestsOutput) GoString() string {
  30575. return s.String()
  30576. }
  30577. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  30578. func (s *DescribeSpotInstanceRequestsOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *DescribeSpotInstanceRequestsOutput {
  30579. s.SpotInstanceRequests = v
  30580. return s
  30581. }
  30582. // Contains the parameters for DescribeSpotPriceHistory.
  30583. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistoryRequest
  30584. type DescribeSpotPriceHistoryInput struct {
  30585. _ struct{} `type:"structure"`
  30586. // Filters the results by the specified Availability Zone.
  30587. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  30588. // Checks whether you have the required permissions for the action, without
  30589. // actually making the request, and provides an error response. If you have
  30590. // the required permissions, the error response is DryRunOperation. Otherwise,
  30591. // it is UnauthorizedOperation.
  30592. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30593. // The date and time, up to the current date, from which to stop retrieving
  30594. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  30595. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  30596. // One or more filters.
  30597. //
  30598. // * availability-zone - The Availability Zone for which prices should be
  30599. // returned.
  30600. //
  30601. // * instance-type - The type of instance (for example, m3.medium).
  30602. //
  30603. // * product-description - The product description for the Spot price (Linux/UNIX
  30604. // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon
  30605. // VPC) | Windows (Amazon VPC)).
  30606. //
  30607. // * spot-price - The Spot price. The value must match exactly (or use wildcards;
  30608. // greater than or less than comparison is not supported).
  30609. //
  30610. // * timestamp - The timestamp of the Spot price history, in UTC format (for
  30611. // example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater
  30612. // than or less than comparison is not supported.
  30613. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30614. // Filters the results by the specified instance types. Note that T2 and HS1
  30615. // instance types are not supported.
  30616. InstanceTypes []*string `locationName:"InstanceType" type:"list"`
  30617. // The maximum number of results to return in a single call. Specify a value
  30618. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  30619. // results, make another call with the returned NextToken value.
  30620. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  30621. // The token for the next set of results.
  30622. NextToken *string `locationName:"nextToken" type:"string"`
  30623. // Filters the results by the specified basic product descriptions.
  30624. ProductDescriptions []*string `locationName:"ProductDescription" type:"list"`
  30625. // The date and time, up to the past 90 days, from which to start retrieving
  30626. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  30627. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  30628. }
  30629. // String returns the string representation
  30630. func (s DescribeSpotPriceHistoryInput) String() string {
  30631. return awsutil.Prettify(s)
  30632. }
  30633. // GoString returns the string representation
  30634. func (s DescribeSpotPriceHistoryInput) GoString() string {
  30635. return s.String()
  30636. }
  30637. // SetAvailabilityZone sets the AvailabilityZone field's value.
  30638. func (s *DescribeSpotPriceHistoryInput) SetAvailabilityZone(v string) *DescribeSpotPriceHistoryInput {
  30639. s.AvailabilityZone = &v
  30640. return s
  30641. }
  30642. // SetDryRun sets the DryRun field's value.
  30643. func (s *DescribeSpotPriceHistoryInput) SetDryRun(v bool) *DescribeSpotPriceHistoryInput {
  30644. s.DryRun = &v
  30645. return s
  30646. }
  30647. // SetEndTime sets the EndTime field's value.
  30648. func (s *DescribeSpotPriceHistoryInput) SetEndTime(v time.Time) *DescribeSpotPriceHistoryInput {
  30649. s.EndTime = &v
  30650. return s
  30651. }
  30652. // SetFilters sets the Filters field's value.
  30653. func (s *DescribeSpotPriceHistoryInput) SetFilters(v []*Filter) *DescribeSpotPriceHistoryInput {
  30654. s.Filters = v
  30655. return s
  30656. }
  30657. // SetInstanceTypes sets the InstanceTypes field's value.
  30658. func (s *DescribeSpotPriceHistoryInput) SetInstanceTypes(v []*string) *DescribeSpotPriceHistoryInput {
  30659. s.InstanceTypes = v
  30660. return s
  30661. }
  30662. // SetMaxResults sets the MaxResults field's value.
  30663. func (s *DescribeSpotPriceHistoryInput) SetMaxResults(v int64) *DescribeSpotPriceHistoryInput {
  30664. s.MaxResults = &v
  30665. return s
  30666. }
  30667. // SetNextToken sets the NextToken field's value.
  30668. func (s *DescribeSpotPriceHistoryInput) SetNextToken(v string) *DescribeSpotPriceHistoryInput {
  30669. s.NextToken = &v
  30670. return s
  30671. }
  30672. // SetProductDescriptions sets the ProductDescriptions field's value.
  30673. func (s *DescribeSpotPriceHistoryInput) SetProductDescriptions(v []*string) *DescribeSpotPriceHistoryInput {
  30674. s.ProductDescriptions = v
  30675. return s
  30676. }
  30677. // SetStartTime sets the StartTime field's value.
  30678. func (s *DescribeSpotPriceHistoryInput) SetStartTime(v time.Time) *DescribeSpotPriceHistoryInput {
  30679. s.StartTime = &v
  30680. return s
  30681. }
  30682. // Contains the output of DescribeSpotPriceHistory.
  30683. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistoryResult
  30684. type DescribeSpotPriceHistoryOutput struct {
  30685. _ struct{} `type:"structure"`
  30686. // The token required to retrieve the next set of results. This value is null
  30687. // when there are no more results to return.
  30688. NextToken *string `locationName:"nextToken" type:"string"`
  30689. // The historical Spot prices.
  30690. SpotPriceHistory []*SpotPrice `locationName:"spotPriceHistorySet" locationNameList:"item" type:"list"`
  30691. }
  30692. // String returns the string representation
  30693. func (s DescribeSpotPriceHistoryOutput) String() string {
  30694. return awsutil.Prettify(s)
  30695. }
  30696. // GoString returns the string representation
  30697. func (s DescribeSpotPriceHistoryOutput) GoString() string {
  30698. return s.String()
  30699. }
  30700. // SetNextToken sets the NextToken field's value.
  30701. func (s *DescribeSpotPriceHistoryOutput) SetNextToken(v string) *DescribeSpotPriceHistoryOutput {
  30702. s.NextToken = &v
  30703. return s
  30704. }
  30705. // SetSpotPriceHistory sets the SpotPriceHistory field's value.
  30706. func (s *DescribeSpotPriceHistoryOutput) SetSpotPriceHistory(v []*SpotPrice) *DescribeSpotPriceHistoryOutput {
  30707. s.SpotPriceHistory = v
  30708. return s
  30709. }
  30710. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroupsRequest
  30711. type DescribeStaleSecurityGroupsInput struct {
  30712. _ struct{} `type:"structure"`
  30713. // Checks whether you have the required permissions for the operation, without
  30714. // actually making the request, and provides an error response. If you have
  30715. // the required permissions, the error response is DryRunOperation. Otherwise,
  30716. // it is UnauthorizedOperation.
  30717. DryRun *bool `type:"boolean"`
  30718. // The maximum number of items to return for this request. The request returns
  30719. // a token that you can specify in a subsequent call to get the next set of
  30720. // results.
  30721. MaxResults *int64 `min:"5" type:"integer"`
  30722. // The token for the next set of items to return. (You received this token from
  30723. // a prior call.)
  30724. NextToken *string `min:"1" type:"string"`
  30725. // The ID of the VPC.
  30726. //
  30727. // VpcId is a required field
  30728. VpcId *string `type:"string" required:"true"`
  30729. }
  30730. // String returns the string representation
  30731. func (s DescribeStaleSecurityGroupsInput) String() string {
  30732. return awsutil.Prettify(s)
  30733. }
  30734. // GoString returns the string representation
  30735. func (s DescribeStaleSecurityGroupsInput) GoString() string {
  30736. return s.String()
  30737. }
  30738. // Validate inspects the fields of the type to determine if they are valid.
  30739. func (s *DescribeStaleSecurityGroupsInput) Validate() error {
  30740. invalidParams := request.ErrInvalidParams{Context: "DescribeStaleSecurityGroupsInput"}
  30741. if s.MaxResults != nil && *s.MaxResults < 5 {
  30742. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  30743. }
  30744. if s.NextToken != nil && len(*s.NextToken) < 1 {
  30745. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  30746. }
  30747. if s.VpcId == nil {
  30748. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  30749. }
  30750. if invalidParams.Len() > 0 {
  30751. return invalidParams
  30752. }
  30753. return nil
  30754. }
  30755. // SetDryRun sets the DryRun field's value.
  30756. func (s *DescribeStaleSecurityGroupsInput) SetDryRun(v bool) *DescribeStaleSecurityGroupsInput {
  30757. s.DryRun = &v
  30758. return s
  30759. }
  30760. // SetMaxResults sets the MaxResults field's value.
  30761. func (s *DescribeStaleSecurityGroupsInput) SetMaxResults(v int64) *DescribeStaleSecurityGroupsInput {
  30762. s.MaxResults = &v
  30763. return s
  30764. }
  30765. // SetNextToken sets the NextToken field's value.
  30766. func (s *DescribeStaleSecurityGroupsInput) SetNextToken(v string) *DescribeStaleSecurityGroupsInput {
  30767. s.NextToken = &v
  30768. return s
  30769. }
  30770. // SetVpcId sets the VpcId field's value.
  30771. func (s *DescribeStaleSecurityGroupsInput) SetVpcId(v string) *DescribeStaleSecurityGroupsInput {
  30772. s.VpcId = &v
  30773. return s
  30774. }
  30775. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroupsResult
  30776. type DescribeStaleSecurityGroupsOutput struct {
  30777. _ struct{} `type:"structure"`
  30778. // The token to use when requesting the next set of items. If there are no additional
  30779. // items to return, the string is empty.
  30780. NextToken *string `locationName:"nextToken" type:"string"`
  30781. // Information about the stale security groups.
  30782. StaleSecurityGroupSet []*StaleSecurityGroup `locationName:"staleSecurityGroupSet" locationNameList:"item" type:"list"`
  30783. }
  30784. // String returns the string representation
  30785. func (s DescribeStaleSecurityGroupsOutput) String() string {
  30786. return awsutil.Prettify(s)
  30787. }
  30788. // GoString returns the string representation
  30789. func (s DescribeStaleSecurityGroupsOutput) GoString() string {
  30790. return s.String()
  30791. }
  30792. // SetNextToken sets the NextToken field's value.
  30793. func (s *DescribeStaleSecurityGroupsOutput) SetNextToken(v string) *DescribeStaleSecurityGroupsOutput {
  30794. s.NextToken = &v
  30795. return s
  30796. }
  30797. // SetStaleSecurityGroupSet sets the StaleSecurityGroupSet field's value.
  30798. func (s *DescribeStaleSecurityGroupsOutput) SetStaleSecurityGroupSet(v []*StaleSecurityGroup) *DescribeStaleSecurityGroupsOutput {
  30799. s.StaleSecurityGroupSet = v
  30800. return s
  30801. }
  30802. // Contains the parameters for DescribeSubnets.
  30803. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnetsRequest
  30804. type DescribeSubnetsInput struct {
  30805. _ struct{} `type:"structure"`
  30806. // Checks whether you have the required permissions for the action, without
  30807. // actually making the request, and provides an error response. If you have
  30808. // the required permissions, the error response is DryRunOperation. Otherwise,
  30809. // it is UnauthorizedOperation.
  30810. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30811. // One or more filters.
  30812. //
  30813. // * availabilityZone - The Availability Zone for the subnet. You can also
  30814. // use availability-zone as the filter name.
  30815. //
  30816. // * available-ip-address-count - The number of IPv4 addresses in the subnet
  30817. // that are available.
  30818. //
  30819. // * cidrBlock - The IPv4 CIDR block of the subnet. The CIDR block you specify
  30820. // must exactly match the subnet's CIDR block for information to be returned
  30821. // for the subnet. You can also use cidr or cidr-block as the filter names.
  30822. //
  30823. // * defaultForAz - Indicates whether this is the default subnet for the
  30824. // Availability Zone. You can also use default-for-az as the filter name.
  30825. //
  30826. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  30827. // with the subnet.
  30828. //
  30829. // * ipv6-cidr-block-association.association-id - An association ID for an
  30830. // IPv6 CIDR block associated with the subnet.
  30831. //
  30832. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  30833. // associated with the subnet.
  30834. //
  30835. // * state - The state of the subnet (pending | available).
  30836. //
  30837. // * subnet-id - The ID of the subnet.
  30838. //
  30839. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  30840. // Specify the key of the tag in the filter name and the value of the tag
  30841. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  30842. // for the filter name and X for the filter value.
  30843. //
  30844. // * tag-key - The key of a tag assigned to the resource. This filter is
  30845. // independent of the tag-value filter. For example, if you use both the
  30846. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  30847. // assigned both the tag key Purpose (regardless of what the tag's value
  30848. // is), and the tag value X (regardless of what the tag's key is). If you
  30849. // want to list only resources where Purpose is X, see the tag:key=value
  30850. // filter.
  30851. //
  30852. // * tag-value - The value of a tag assigned to the resource. This filter
  30853. // is independent of the tag-key filter.
  30854. //
  30855. // * vpc-id - The ID of the VPC for the subnet.
  30856. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30857. // One or more subnet IDs.
  30858. //
  30859. // Default: Describes all your subnets.
  30860. SubnetIds []*string `locationName:"SubnetId" locationNameList:"SubnetId" type:"list"`
  30861. }
  30862. // String returns the string representation
  30863. func (s DescribeSubnetsInput) String() string {
  30864. return awsutil.Prettify(s)
  30865. }
  30866. // GoString returns the string representation
  30867. func (s DescribeSubnetsInput) GoString() string {
  30868. return s.String()
  30869. }
  30870. // SetDryRun sets the DryRun field's value.
  30871. func (s *DescribeSubnetsInput) SetDryRun(v bool) *DescribeSubnetsInput {
  30872. s.DryRun = &v
  30873. return s
  30874. }
  30875. // SetFilters sets the Filters field's value.
  30876. func (s *DescribeSubnetsInput) SetFilters(v []*Filter) *DescribeSubnetsInput {
  30877. s.Filters = v
  30878. return s
  30879. }
  30880. // SetSubnetIds sets the SubnetIds field's value.
  30881. func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput {
  30882. s.SubnetIds = v
  30883. return s
  30884. }
  30885. // Contains the output of DescribeSubnets.
  30886. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnetsResult
  30887. type DescribeSubnetsOutput struct {
  30888. _ struct{} `type:"structure"`
  30889. // Information about one or more subnets.
  30890. Subnets []*Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"`
  30891. }
  30892. // String returns the string representation
  30893. func (s DescribeSubnetsOutput) String() string {
  30894. return awsutil.Prettify(s)
  30895. }
  30896. // GoString returns the string representation
  30897. func (s DescribeSubnetsOutput) GoString() string {
  30898. return s.String()
  30899. }
  30900. // SetSubnets sets the Subnets field's value.
  30901. func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput {
  30902. s.Subnets = v
  30903. return s
  30904. }
  30905. // Contains the parameters for DescribeTags.
  30906. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTagsRequest
  30907. type DescribeTagsInput struct {
  30908. _ struct{} `type:"structure"`
  30909. // Checks whether you have the required permissions for the action, without
  30910. // actually making the request, and provides an error response. If you have
  30911. // the required permissions, the error response is DryRunOperation. Otherwise,
  30912. // it is UnauthorizedOperation.
  30913. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30914. // One or more filters.
  30915. //
  30916. // * key - The tag key.
  30917. //
  30918. // * resource-id - The resource ID.
  30919. //
  30920. // * resource-type - The resource type (customer-gateway | dhcp-options |
  30921. // image | instance | internet-gateway | network-acl | network-interface
  30922. // | reserved-instances | route-table | security-group | snapshot | spot-instances-request
  30923. // | subnet | volume | vpc | vpn-connection | vpn-gateway).
  30924. //
  30925. // * value - The tag value.
  30926. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30927. // The maximum number of results to return in a single call. This value can
  30928. // be between 5 and 1000. To retrieve the remaining results, make another call
  30929. // with the returned NextToken value.
  30930. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  30931. // The token to retrieve the next page of results.
  30932. NextToken *string `locationName:"nextToken" type:"string"`
  30933. }
  30934. // String returns the string representation
  30935. func (s DescribeTagsInput) String() string {
  30936. return awsutil.Prettify(s)
  30937. }
  30938. // GoString returns the string representation
  30939. func (s DescribeTagsInput) GoString() string {
  30940. return s.String()
  30941. }
  30942. // SetDryRun sets the DryRun field's value.
  30943. func (s *DescribeTagsInput) SetDryRun(v bool) *DescribeTagsInput {
  30944. s.DryRun = &v
  30945. return s
  30946. }
  30947. // SetFilters sets the Filters field's value.
  30948. func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput {
  30949. s.Filters = v
  30950. return s
  30951. }
  30952. // SetMaxResults sets the MaxResults field's value.
  30953. func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput {
  30954. s.MaxResults = &v
  30955. return s
  30956. }
  30957. // SetNextToken sets the NextToken field's value.
  30958. func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
  30959. s.NextToken = &v
  30960. return s
  30961. }
  30962. // Contains the output of DescribeTags.
  30963. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTagsResult
  30964. type DescribeTagsOutput struct {
  30965. _ struct{} `type:"structure"`
  30966. // The token to use to retrieve the next page of results. This value is null
  30967. // when there are no more results to return..
  30968. NextToken *string `locationName:"nextToken" type:"string"`
  30969. // A list of tags.
  30970. Tags []*TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"`
  30971. }
  30972. // String returns the string representation
  30973. func (s DescribeTagsOutput) String() string {
  30974. return awsutil.Prettify(s)
  30975. }
  30976. // GoString returns the string representation
  30977. func (s DescribeTagsOutput) GoString() string {
  30978. return s.String()
  30979. }
  30980. // SetNextToken sets the NextToken field's value.
  30981. func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput {
  30982. s.NextToken = &v
  30983. return s
  30984. }
  30985. // SetTags sets the Tags field's value.
  30986. func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput {
  30987. s.Tags = v
  30988. return s
  30989. }
  30990. // Contains the parameters for DescribeVolumeAttribute.
  30991. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttributeRequest
  30992. type DescribeVolumeAttributeInput struct {
  30993. _ struct{} `type:"structure"`
  30994. // The attribute of the volume. This parameter is required.
  30995. Attribute *string `type:"string" enum:"VolumeAttributeName"`
  30996. // Checks whether you have the required permissions for the action, without
  30997. // actually making the request, and provides an error response. If you have
  30998. // the required permissions, the error response is DryRunOperation. Otherwise,
  30999. // it is UnauthorizedOperation.
  31000. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31001. // The ID of the volume.
  31002. //
  31003. // VolumeId is a required field
  31004. VolumeId *string `type:"string" required:"true"`
  31005. }
  31006. // String returns the string representation
  31007. func (s DescribeVolumeAttributeInput) String() string {
  31008. return awsutil.Prettify(s)
  31009. }
  31010. // GoString returns the string representation
  31011. func (s DescribeVolumeAttributeInput) GoString() string {
  31012. return s.String()
  31013. }
  31014. // Validate inspects the fields of the type to determine if they are valid.
  31015. func (s *DescribeVolumeAttributeInput) Validate() error {
  31016. invalidParams := request.ErrInvalidParams{Context: "DescribeVolumeAttributeInput"}
  31017. if s.VolumeId == nil {
  31018. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  31019. }
  31020. if invalidParams.Len() > 0 {
  31021. return invalidParams
  31022. }
  31023. return nil
  31024. }
  31025. // SetAttribute sets the Attribute field's value.
  31026. func (s *DescribeVolumeAttributeInput) SetAttribute(v string) *DescribeVolumeAttributeInput {
  31027. s.Attribute = &v
  31028. return s
  31029. }
  31030. // SetDryRun sets the DryRun field's value.
  31031. func (s *DescribeVolumeAttributeInput) SetDryRun(v bool) *DescribeVolumeAttributeInput {
  31032. s.DryRun = &v
  31033. return s
  31034. }
  31035. // SetVolumeId sets the VolumeId field's value.
  31036. func (s *DescribeVolumeAttributeInput) SetVolumeId(v string) *DescribeVolumeAttributeInput {
  31037. s.VolumeId = &v
  31038. return s
  31039. }
  31040. // Contains the output of DescribeVolumeAttribute.
  31041. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttributeResult
  31042. type DescribeVolumeAttributeOutput struct {
  31043. _ struct{} `type:"structure"`
  31044. // The state of autoEnableIO attribute.
  31045. AutoEnableIO *AttributeBooleanValue `locationName:"autoEnableIO" type:"structure"`
  31046. // A list of product codes.
  31047. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  31048. // The ID of the volume.
  31049. VolumeId *string `locationName:"volumeId" type:"string"`
  31050. }
  31051. // String returns the string representation
  31052. func (s DescribeVolumeAttributeOutput) String() string {
  31053. return awsutil.Prettify(s)
  31054. }
  31055. // GoString returns the string representation
  31056. func (s DescribeVolumeAttributeOutput) GoString() string {
  31057. return s.String()
  31058. }
  31059. // SetAutoEnableIO sets the AutoEnableIO field's value.
  31060. func (s *DescribeVolumeAttributeOutput) SetAutoEnableIO(v *AttributeBooleanValue) *DescribeVolumeAttributeOutput {
  31061. s.AutoEnableIO = v
  31062. return s
  31063. }
  31064. // SetProductCodes sets the ProductCodes field's value.
  31065. func (s *DescribeVolumeAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeVolumeAttributeOutput {
  31066. s.ProductCodes = v
  31067. return s
  31068. }
  31069. // SetVolumeId sets the VolumeId field's value.
  31070. func (s *DescribeVolumeAttributeOutput) SetVolumeId(v string) *DescribeVolumeAttributeOutput {
  31071. s.VolumeId = &v
  31072. return s
  31073. }
  31074. // Contains the parameters for DescribeVolumeStatus.
  31075. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatusRequest
  31076. type DescribeVolumeStatusInput struct {
  31077. _ struct{} `type:"structure"`
  31078. // Checks whether you have the required permissions for the action, without
  31079. // actually making the request, and provides an error response. If you have
  31080. // the required permissions, the error response is DryRunOperation. Otherwise,
  31081. // it is UnauthorizedOperation.
  31082. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31083. // One or more filters.
  31084. //
  31085. // * action.code - The action code for the event (for example, enable-volume-io).
  31086. //
  31087. // * action.description - A description of the action.
  31088. //
  31089. // * action.event-id - The event ID associated with the action.
  31090. //
  31091. // * availability-zone - The Availability Zone of the instance.
  31092. //
  31093. // * event.description - A description of the event.
  31094. //
  31095. // * event.event-id - The event ID.
  31096. //
  31097. // * event.event-type - The event type (for io-enabled: passed | failed;
  31098. // for io-performance: io-performance:degraded | io-performance:severely-degraded
  31099. // | io-performance:stalled).
  31100. //
  31101. // * event.not-after - The latest end time for the event.
  31102. //
  31103. // * event.not-before - The earliest start time for the event.
  31104. //
  31105. // * volume-status.details-name - The cause for volume-status.status (io-enabled
  31106. // | io-performance).
  31107. //
  31108. // * volume-status.details-status - The status of volume-status.details-name
  31109. // (for io-enabled: passed | failed; for io-performance: normal | degraded
  31110. // | severely-degraded | stalled).
  31111. //
  31112. // * volume-status.status - The status of the volume (ok | impaired | warning
  31113. // | insufficient-data).
  31114. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31115. // The maximum number of volume results returned by DescribeVolumeStatus in
  31116. // paginated output. When this parameter is used, the request only returns MaxResults
  31117. // results in a single page along with a NextToken response element. The remaining
  31118. // results of the initial request can be seen by sending another request with
  31119. // the returned NextToken value. This value can be between 5 and 1000; if MaxResults
  31120. // is given a value larger than 1000, only 1000 results are returned. If this
  31121. // parameter is not used, then DescribeVolumeStatus returns all results. You
  31122. // cannot specify this parameter and the volume IDs parameter in the same request.
  31123. MaxResults *int64 `type:"integer"`
  31124. // The NextToken value to include in a future DescribeVolumeStatus request.
  31125. // When the results of the request exceed MaxResults, this value can be used
  31126. // to retrieve the next page of results. This value is null when there are no
  31127. // more results to return.
  31128. NextToken *string `type:"string"`
  31129. // One or more volume IDs.
  31130. //
  31131. // Default: Describes all your volumes.
  31132. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  31133. }
  31134. // String returns the string representation
  31135. func (s DescribeVolumeStatusInput) String() string {
  31136. return awsutil.Prettify(s)
  31137. }
  31138. // GoString returns the string representation
  31139. func (s DescribeVolumeStatusInput) GoString() string {
  31140. return s.String()
  31141. }
  31142. // SetDryRun sets the DryRun field's value.
  31143. func (s *DescribeVolumeStatusInput) SetDryRun(v bool) *DescribeVolumeStatusInput {
  31144. s.DryRun = &v
  31145. return s
  31146. }
  31147. // SetFilters sets the Filters field's value.
  31148. func (s *DescribeVolumeStatusInput) SetFilters(v []*Filter) *DescribeVolumeStatusInput {
  31149. s.Filters = v
  31150. return s
  31151. }
  31152. // SetMaxResults sets the MaxResults field's value.
  31153. func (s *DescribeVolumeStatusInput) SetMaxResults(v int64) *DescribeVolumeStatusInput {
  31154. s.MaxResults = &v
  31155. return s
  31156. }
  31157. // SetNextToken sets the NextToken field's value.
  31158. func (s *DescribeVolumeStatusInput) SetNextToken(v string) *DescribeVolumeStatusInput {
  31159. s.NextToken = &v
  31160. return s
  31161. }
  31162. // SetVolumeIds sets the VolumeIds field's value.
  31163. func (s *DescribeVolumeStatusInput) SetVolumeIds(v []*string) *DescribeVolumeStatusInput {
  31164. s.VolumeIds = v
  31165. return s
  31166. }
  31167. // Contains the output of DescribeVolumeStatus.
  31168. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatusResult
  31169. type DescribeVolumeStatusOutput struct {
  31170. _ struct{} `type:"structure"`
  31171. // The token to use to retrieve the next page of results. This value is null
  31172. // when there are no more results to return.
  31173. NextToken *string `locationName:"nextToken" type:"string"`
  31174. // A list of volumes.
  31175. VolumeStatuses []*VolumeStatusItem `locationName:"volumeStatusSet" locationNameList:"item" type:"list"`
  31176. }
  31177. // String returns the string representation
  31178. func (s DescribeVolumeStatusOutput) String() string {
  31179. return awsutil.Prettify(s)
  31180. }
  31181. // GoString returns the string representation
  31182. func (s DescribeVolumeStatusOutput) GoString() string {
  31183. return s.String()
  31184. }
  31185. // SetNextToken sets the NextToken field's value.
  31186. func (s *DescribeVolumeStatusOutput) SetNextToken(v string) *DescribeVolumeStatusOutput {
  31187. s.NextToken = &v
  31188. return s
  31189. }
  31190. // SetVolumeStatuses sets the VolumeStatuses field's value.
  31191. func (s *DescribeVolumeStatusOutput) SetVolumeStatuses(v []*VolumeStatusItem) *DescribeVolumeStatusOutput {
  31192. s.VolumeStatuses = v
  31193. return s
  31194. }
  31195. // Contains the parameters for DescribeVolumes.
  31196. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesRequest
  31197. type DescribeVolumesInput struct {
  31198. _ struct{} `type:"structure"`
  31199. // Checks whether you have the required permissions for the action, without
  31200. // actually making the request, and provides an error response. If you have
  31201. // the required permissions, the error response is DryRunOperation. Otherwise,
  31202. // it is UnauthorizedOperation.
  31203. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31204. // One or more filters.
  31205. //
  31206. // * attachment.attach-time - The time stamp when the attachment initiated.
  31207. //
  31208. // * attachment.delete-on-termination - Whether the volume is deleted on
  31209. // instance termination.
  31210. //
  31211. // * attachment.device - The device name that is exposed to the instance
  31212. // (for example, /dev/sda1).
  31213. //
  31214. // * attachment.instance-id - The ID of the instance the volume is attached
  31215. // to.
  31216. //
  31217. // * attachment.status - The attachment state (attaching | attached | detaching
  31218. // | detached).
  31219. //
  31220. // * availability-zone - The Availability Zone in which the volume was created.
  31221. //
  31222. // * create-time - The time stamp when the volume was created.
  31223. //
  31224. // * encrypted - The encryption status of the volume.
  31225. //
  31226. // * size - The size of the volume, in GiB.
  31227. //
  31228. // * snapshot-id - The snapshot from which the volume was created.
  31229. //
  31230. // * status - The status of the volume (creating | available | in-use | deleting
  31231. // | deleted | error).
  31232. //
  31233. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  31234. // Specify the key of the tag in the filter name and the value of the tag
  31235. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  31236. // for the filter name and X for the filter value.
  31237. //
  31238. // * tag-key - The key of a tag assigned to the resource. This filter is
  31239. // independent of the tag-value filter. For example, if you use both the
  31240. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  31241. // assigned both the tag key Purpose (regardless of what the tag's value
  31242. // is), and the tag value X (regardless of what the tag's key is). If you
  31243. // want to list only resources where Purpose is X, see the tag:key=value
  31244. // filter.
  31245. //
  31246. // * tag-value - The value of a tag assigned to the resource. This filter
  31247. // is independent of the tag-key filter.
  31248. //
  31249. // * volume-id - The volume ID.
  31250. //
  31251. // * volume-type - The Amazon EBS volume type. This can be gp2 for General
  31252. // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized
  31253. // HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
  31254. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31255. // The maximum number of volume results returned by DescribeVolumes in paginated
  31256. // output. When this parameter is used, DescribeVolumes only returns MaxResults
  31257. // results in a single page along with a NextToken response element. The remaining
  31258. // results of the initial request can be seen by sending another DescribeVolumes
  31259. // request with the returned NextToken value. This value can be between 5 and
  31260. // 500; if MaxResults is given a value larger than 500, only 500 results are
  31261. // returned. If this parameter is not used, then DescribeVolumes returns all
  31262. // results. You cannot specify this parameter and the volume IDs parameter in
  31263. // the same request.
  31264. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  31265. // The NextToken value returned from a previous paginated DescribeVolumes request
  31266. // where MaxResults was used and the results exceeded the value of that parameter.
  31267. // Pagination continues from the end of the previous results that returned the
  31268. // NextToken value. This value is null when there are no more results to return.
  31269. NextToken *string `locationName:"nextToken" type:"string"`
  31270. // One or more volume IDs.
  31271. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  31272. }
  31273. // String returns the string representation
  31274. func (s DescribeVolumesInput) String() string {
  31275. return awsutil.Prettify(s)
  31276. }
  31277. // GoString returns the string representation
  31278. func (s DescribeVolumesInput) GoString() string {
  31279. return s.String()
  31280. }
  31281. // SetDryRun sets the DryRun field's value.
  31282. func (s *DescribeVolumesInput) SetDryRun(v bool) *DescribeVolumesInput {
  31283. s.DryRun = &v
  31284. return s
  31285. }
  31286. // SetFilters sets the Filters field's value.
  31287. func (s *DescribeVolumesInput) SetFilters(v []*Filter) *DescribeVolumesInput {
  31288. s.Filters = v
  31289. return s
  31290. }
  31291. // SetMaxResults sets the MaxResults field's value.
  31292. func (s *DescribeVolumesInput) SetMaxResults(v int64) *DescribeVolumesInput {
  31293. s.MaxResults = &v
  31294. return s
  31295. }
  31296. // SetNextToken sets the NextToken field's value.
  31297. func (s *DescribeVolumesInput) SetNextToken(v string) *DescribeVolumesInput {
  31298. s.NextToken = &v
  31299. return s
  31300. }
  31301. // SetVolumeIds sets the VolumeIds field's value.
  31302. func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput {
  31303. s.VolumeIds = v
  31304. return s
  31305. }
  31306. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModificationsRequest
  31307. type DescribeVolumesModificationsInput struct {
  31308. _ struct{} `type:"structure"`
  31309. // Checks whether you have the required permissions for the action, without
  31310. // actually making the request, and provides an error response. If you have
  31311. // the required permissions, the error response is DryRunOperation. Otherwise,
  31312. // it is UnauthorizedOperation.
  31313. DryRun *bool `type:"boolean"`
  31314. // One or more filters. Supported filters: volume-id, modification-state, target-size,
  31315. // target-iops, target-volume-type, original-size, original-iops, original-volume-type,
  31316. // start-time.
  31317. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31318. // The maximum number of results (up to a limit of 500) to be returned in a
  31319. // paginated request.
  31320. MaxResults *int64 `type:"integer"`
  31321. // The nextToken value returned by a previous paginated request.
  31322. NextToken *string `type:"string"`
  31323. // One or more volume IDs for which in-progress modifications will be described.
  31324. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  31325. }
  31326. // String returns the string representation
  31327. func (s DescribeVolumesModificationsInput) String() string {
  31328. return awsutil.Prettify(s)
  31329. }
  31330. // GoString returns the string representation
  31331. func (s DescribeVolumesModificationsInput) GoString() string {
  31332. return s.String()
  31333. }
  31334. // SetDryRun sets the DryRun field's value.
  31335. func (s *DescribeVolumesModificationsInput) SetDryRun(v bool) *DescribeVolumesModificationsInput {
  31336. s.DryRun = &v
  31337. return s
  31338. }
  31339. // SetFilters sets the Filters field's value.
  31340. func (s *DescribeVolumesModificationsInput) SetFilters(v []*Filter) *DescribeVolumesModificationsInput {
  31341. s.Filters = v
  31342. return s
  31343. }
  31344. // SetMaxResults sets the MaxResults field's value.
  31345. func (s *DescribeVolumesModificationsInput) SetMaxResults(v int64) *DescribeVolumesModificationsInput {
  31346. s.MaxResults = &v
  31347. return s
  31348. }
  31349. // SetNextToken sets the NextToken field's value.
  31350. func (s *DescribeVolumesModificationsInput) SetNextToken(v string) *DescribeVolumesModificationsInput {
  31351. s.NextToken = &v
  31352. return s
  31353. }
  31354. // SetVolumeIds sets the VolumeIds field's value.
  31355. func (s *DescribeVolumesModificationsInput) SetVolumeIds(v []*string) *DescribeVolumesModificationsInput {
  31356. s.VolumeIds = v
  31357. return s
  31358. }
  31359. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModificationsResult
  31360. type DescribeVolumesModificationsOutput struct {
  31361. _ struct{} `type:"structure"`
  31362. // Token for pagination, null if there are no more results
  31363. NextToken *string `locationName:"nextToken" type:"string"`
  31364. // A list of returned VolumeModification objects.
  31365. VolumesModifications []*VolumeModification `locationName:"volumeModificationSet" locationNameList:"item" type:"list"`
  31366. }
  31367. // String returns the string representation
  31368. func (s DescribeVolumesModificationsOutput) String() string {
  31369. return awsutil.Prettify(s)
  31370. }
  31371. // GoString returns the string representation
  31372. func (s DescribeVolumesModificationsOutput) GoString() string {
  31373. return s.String()
  31374. }
  31375. // SetNextToken sets the NextToken field's value.
  31376. func (s *DescribeVolumesModificationsOutput) SetNextToken(v string) *DescribeVolumesModificationsOutput {
  31377. s.NextToken = &v
  31378. return s
  31379. }
  31380. // SetVolumesModifications sets the VolumesModifications field's value.
  31381. func (s *DescribeVolumesModificationsOutput) SetVolumesModifications(v []*VolumeModification) *DescribeVolumesModificationsOutput {
  31382. s.VolumesModifications = v
  31383. return s
  31384. }
  31385. // Contains the output of DescribeVolumes.
  31386. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesResult
  31387. type DescribeVolumesOutput struct {
  31388. _ struct{} `type:"structure"`
  31389. // The NextToken value to include in a future DescribeVolumes request. When
  31390. // the results of a DescribeVolumes request exceed MaxResults, this value can
  31391. // be used to retrieve the next page of results. This value is null when there
  31392. // are no more results to return.
  31393. NextToken *string `locationName:"nextToken" type:"string"`
  31394. // Information about the volumes.
  31395. Volumes []*Volume `locationName:"volumeSet" locationNameList:"item" type:"list"`
  31396. }
  31397. // String returns the string representation
  31398. func (s DescribeVolumesOutput) String() string {
  31399. return awsutil.Prettify(s)
  31400. }
  31401. // GoString returns the string representation
  31402. func (s DescribeVolumesOutput) GoString() string {
  31403. return s.String()
  31404. }
  31405. // SetNextToken sets the NextToken field's value.
  31406. func (s *DescribeVolumesOutput) SetNextToken(v string) *DescribeVolumesOutput {
  31407. s.NextToken = &v
  31408. return s
  31409. }
  31410. // SetVolumes sets the Volumes field's value.
  31411. func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput {
  31412. s.Volumes = v
  31413. return s
  31414. }
  31415. // Contains the parameters for DescribeVpcAttribute.
  31416. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttributeRequest
  31417. type DescribeVpcAttributeInput struct {
  31418. _ struct{} `type:"structure"`
  31419. // The VPC attribute.
  31420. //
  31421. // Attribute is a required field
  31422. Attribute *string `type:"string" required:"true" enum:"VpcAttributeName"`
  31423. // Checks whether you have the required permissions for the action, without
  31424. // actually making the request, and provides an error response. If you have
  31425. // the required permissions, the error response is DryRunOperation. Otherwise,
  31426. // it is UnauthorizedOperation.
  31427. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31428. // The ID of the VPC.
  31429. //
  31430. // VpcId is a required field
  31431. VpcId *string `type:"string" required:"true"`
  31432. }
  31433. // String returns the string representation
  31434. func (s DescribeVpcAttributeInput) String() string {
  31435. return awsutil.Prettify(s)
  31436. }
  31437. // GoString returns the string representation
  31438. func (s DescribeVpcAttributeInput) GoString() string {
  31439. return s.String()
  31440. }
  31441. // Validate inspects the fields of the type to determine if they are valid.
  31442. func (s *DescribeVpcAttributeInput) Validate() error {
  31443. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcAttributeInput"}
  31444. if s.Attribute == nil {
  31445. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  31446. }
  31447. if s.VpcId == nil {
  31448. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  31449. }
  31450. if invalidParams.Len() > 0 {
  31451. return invalidParams
  31452. }
  31453. return nil
  31454. }
  31455. // SetAttribute sets the Attribute field's value.
  31456. func (s *DescribeVpcAttributeInput) SetAttribute(v string) *DescribeVpcAttributeInput {
  31457. s.Attribute = &v
  31458. return s
  31459. }
  31460. // SetDryRun sets the DryRun field's value.
  31461. func (s *DescribeVpcAttributeInput) SetDryRun(v bool) *DescribeVpcAttributeInput {
  31462. s.DryRun = &v
  31463. return s
  31464. }
  31465. // SetVpcId sets the VpcId field's value.
  31466. func (s *DescribeVpcAttributeInput) SetVpcId(v string) *DescribeVpcAttributeInput {
  31467. s.VpcId = &v
  31468. return s
  31469. }
  31470. // Contains the output of DescribeVpcAttribute.
  31471. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttributeResult
  31472. type DescribeVpcAttributeOutput struct {
  31473. _ struct{} `type:"structure"`
  31474. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  31475. // this attribute is true, instances in the VPC get DNS hostnames; otherwise,
  31476. // they do not.
  31477. EnableDnsHostnames *AttributeBooleanValue `locationName:"enableDnsHostnames" type:"structure"`
  31478. // Indicates whether DNS resolution is enabled for the VPC. If this attribute
  31479. // is true, the Amazon DNS server resolves DNS hostnames for your instances
  31480. // to their corresponding IP addresses; otherwise, it does not.
  31481. EnableDnsSupport *AttributeBooleanValue `locationName:"enableDnsSupport" type:"structure"`
  31482. // The ID of the VPC.
  31483. VpcId *string `locationName:"vpcId" type:"string"`
  31484. }
  31485. // String returns the string representation
  31486. func (s DescribeVpcAttributeOutput) String() string {
  31487. return awsutil.Prettify(s)
  31488. }
  31489. // GoString returns the string representation
  31490. func (s DescribeVpcAttributeOutput) GoString() string {
  31491. return s.String()
  31492. }
  31493. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  31494. func (s *DescribeVpcAttributeOutput) SetEnableDnsHostnames(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  31495. s.EnableDnsHostnames = v
  31496. return s
  31497. }
  31498. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  31499. func (s *DescribeVpcAttributeOutput) SetEnableDnsSupport(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  31500. s.EnableDnsSupport = v
  31501. return s
  31502. }
  31503. // SetVpcId sets the VpcId field's value.
  31504. func (s *DescribeVpcAttributeOutput) SetVpcId(v string) *DescribeVpcAttributeOutput {
  31505. s.VpcId = &v
  31506. return s
  31507. }
  31508. // Contains the parameters for DescribeVpcClassicLinkDnsSupport.
  31509. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupportRequest
  31510. type DescribeVpcClassicLinkDnsSupportInput struct {
  31511. _ struct{} `type:"structure"`
  31512. // The maximum number of items to return for this request. The request returns
  31513. // a token that you can specify in a subsequent call to get the next set of
  31514. // results.
  31515. MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
  31516. // The token for the next set of items to return. (You received this token from
  31517. // a prior call.)
  31518. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  31519. // One or more VPC IDs.
  31520. VpcIds []*string `locationNameList:"VpcId" type:"list"`
  31521. }
  31522. // String returns the string representation
  31523. func (s DescribeVpcClassicLinkDnsSupportInput) String() string {
  31524. return awsutil.Prettify(s)
  31525. }
  31526. // GoString returns the string representation
  31527. func (s DescribeVpcClassicLinkDnsSupportInput) GoString() string {
  31528. return s.String()
  31529. }
  31530. // Validate inspects the fields of the type to determine if they are valid.
  31531. func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error {
  31532. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcClassicLinkDnsSupportInput"}
  31533. if s.MaxResults != nil && *s.MaxResults < 5 {
  31534. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  31535. }
  31536. if s.NextToken != nil && len(*s.NextToken) < 1 {
  31537. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  31538. }
  31539. if invalidParams.Len() > 0 {
  31540. return invalidParams
  31541. }
  31542. return nil
  31543. }
  31544. // SetMaxResults sets the MaxResults field's value.
  31545. func (s *DescribeVpcClassicLinkDnsSupportInput) SetMaxResults(v int64) *DescribeVpcClassicLinkDnsSupportInput {
  31546. s.MaxResults = &v
  31547. return s
  31548. }
  31549. // SetNextToken sets the NextToken field's value.
  31550. func (s *DescribeVpcClassicLinkDnsSupportInput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportInput {
  31551. s.NextToken = &v
  31552. return s
  31553. }
  31554. // SetVpcIds sets the VpcIds field's value.
  31555. func (s *DescribeVpcClassicLinkDnsSupportInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkDnsSupportInput {
  31556. s.VpcIds = v
  31557. return s
  31558. }
  31559. // Contains the output of DescribeVpcClassicLinkDnsSupport.
  31560. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupportResult
  31561. type DescribeVpcClassicLinkDnsSupportOutput struct {
  31562. _ struct{} `type:"structure"`
  31563. // The token to use when requesting the next set of items.
  31564. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  31565. // Information about the ClassicLink DNS support status of the VPCs.
  31566. Vpcs []*ClassicLinkDnsSupport `locationName:"vpcs" locationNameList:"item" type:"list"`
  31567. }
  31568. // String returns the string representation
  31569. func (s DescribeVpcClassicLinkDnsSupportOutput) String() string {
  31570. return awsutil.Prettify(s)
  31571. }
  31572. // GoString returns the string representation
  31573. func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string {
  31574. return s.String()
  31575. }
  31576. // SetNextToken sets the NextToken field's value.
  31577. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportOutput {
  31578. s.NextToken = &v
  31579. return s
  31580. }
  31581. // SetVpcs sets the Vpcs field's value.
  31582. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetVpcs(v []*ClassicLinkDnsSupport) *DescribeVpcClassicLinkDnsSupportOutput {
  31583. s.Vpcs = v
  31584. return s
  31585. }
  31586. // Contains the parameters for DescribeVpcClassicLink.
  31587. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkRequest
  31588. type DescribeVpcClassicLinkInput struct {
  31589. _ struct{} `type:"structure"`
  31590. // Checks whether you have the required permissions for the action, without
  31591. // actually making the request, and provides an error response. If you have
  31592. // the required permissions, the error response is DryRunOperation. Otherwise,
  31593. // it is UnauthorizedOperation.
  31594. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31595. // One or more filters.
  31596. //
  31597. // * is-classic-link-enabled - Whether the VPC is enabled for ClassicLink
  31598. // (true | false).
  31599. //
  31600. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  31601. // Specify the key of the tag in the filter name and the value of the tag
  31602. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  31603. // for the filter name and X for the filter value.
  31604. //
  31605. // * tag-key - The key of a tag assigned to the resource. This filter is
  31606. // independent of the tag-value filter. For example, if you use both the
  31607. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  31608. // assigned both the tag key Purpose (regardless of what the tag's value
  31609. // is), and the tag value X (regardless of what the tag's key is). If you
  31610. // want to list only resources where Purpose is X, see the tag:key=value
  31611. // filter.
  31612. //
  31613. // * tag-value - The value of a tag assigned to the resource. This filter
  31614. // is independent of the tag-key filter.
  31615. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31616. // One or more VPCs for which you want to describe the ClassicLink status.
  31617. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  31618. }
  31619. // String returns the string representation
  31620. func (s DescribeVpcClassicLinkInput) String() string {
  31621. return awsutil.Prettify(s)
  31622. }
  31623. // GoString returns the string representation
  31624. func (s DescribeVpcClassicLinkInput) GoString() string {
  31625. return s.String()
  31626. }
  31627. // SetDryRun sets the DryRun field's value.
  31628. func (s *DescribeVpcClassicLinkInput) SetDryRun(v bool) *DescribeVpcClassicLinkInput {
  31629. s.DryRun = &v
  31630. return s
  31631. }
  31632. // SetFilters sets the Filters field's value.
  31633. func (s *DescribeVpcClassicLinkInput) SetFilters(v []*Filter) *DescribeVpcClassicLinkInput {
  31634. s.Filters = v
  31635. return s
  31636. }
  31637. // SetVpcIds sets the VpcIds field's value.
  31638. func (s *DescribeVpcClassicLinkInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkInput {
  31639. s.VpcIds = v
  31640. return s
  31641. }
  31642. // Contains the output of DescribeVpcClassicLink.
  31643. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkResult
  31644. type DescribeVpcClassicLinkOutput struct {
  31645. _ struct{} `type:"structure"`
  31646. // The ClassicLink status of one or more VPCs.
  31647. Vpcs []*VpcClassicLink `locationName:"vpcSet" locationNameList:"item" type:"list"`
  31648. }
  31649. // String returns the string representation
  31650. func (s DescribeVpcClassicLinkOutput) String() string {
  31651. return awsutil.Prettify(s)
  31652. }
  31653. // GoString returns the string representation
  31654. func (s DescribeVpcClassicLinkOutput) GoString() string {
  31655. return s.String()
  31656. }
  31657. // SetVpcs sets the Vpcs field's value.
  31658. func (s *DescribeVpcClassicLinkOutput) SetVpcs(v []*VpcClassicLink) *DescribeVpcClassicLinkOutput {
  31659. s.Vpcs = v
  31660. return s
  31661. }
  31662. // Contains the parameters for DescribeVpcEndpointServices.
  31663. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicesRequest
  31664. type DescribeVpcEndpointServicesInput struct {
  31665. _ struct{} `type:"structure"`
  31666. // Checks whether you have the required permissions for the action, without
  31667. // actually making the request, and provides an error response. If you have
  31668. // the required permissions, the error response is DryRunOperation. Otherwise,
  31669. // it is UnauthorizedOperation.
  31670. DryRun *bool `type:"boolean"`
  31671. // The maximum number of items to return for this request. The request returns
  31672. // a token that you can specify in a subsequent call to get the next set of
  31673. // results.
  31674. //
  31675. // Constraint: If the value is greater than 1000, we return only 1000 items.
  31676. MaxResults *int64 `type:"integer"`
  31677. // The token for the next set of items to return. (You received this token from
  31678. // a prior call.)
  31679. NextToken *string `type:"string"`
  31680. }
  31681. // String returns the string representation
  31682. func (s DescribeVpcEndpointServicesInput) String() string {
  31683. return awsutil.Prettify(s)
  31684. }
  31685. // GoString returns the string representation
  31686. func (s DescribeVpcEndpointServicesInput) GoString() string {
  31687. return s.String()
  31688. }
  31689. // SetDryRun sets the DryRun field's value.
  31690. func (s *DescribeVpcEndpointServicesInput) SetDryRun(v bool) *DescribeVpcEndpointServicesInput {
  31691. s.DryRun = &v
  31692. return s
  31693. }
  31694. // SetMaxResults sets the MaxResults field's value.
  31695. func (s *DescribeVpcEndpointServicesInput) SetMaxResults(v int64) *DescribeVpcEndpointServicesInput {
  31696. s.MaxResults = &v
  31697. return s
  31698. }
  31699. // SetNextToken sets the NextToken field's value.
  31700. func (s *DescribeVpcEndpointServicesInput) SetNextToken(v string) *DescribeVpcEndpointServicesInput {
  31701. s.NextToken = &v
  31702. return s
  31703. }
  31704. // Contains the output of DescribeVpcEndpointServices.
  31705. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicesResult
  31706. type DescribeVpcEndpointServicesOutput struct {
  31707. _ struct{} `type:"structure"`
  31708. // The token to use when requesting the next set of items. If there are no additional
  31709. // items to return, the string is empty.
  31710. NextToken *string `locationName:"nextToken" type:"string"`
  31711. // A list of supported AWS services.
  31712. ServiceNames []*string `locationName:"serviceNameSet" locationNameList:"item" type:"list"`
  31713. }
  31714. // String returns the string representation
  31715. func (s DescribeVpcEndpointServicesOutput) String() string {
  31716. return awsutil.Prettify(s)
  31717. }
  31718. // GoString returns the string representation
  31719. func (s DescribeVpcEndpointServicesOutput) GoString() string {
  31720. return s.String()
  31721. }
  31722. // SetNextToken sets the NextToken field's value.
  31723. func (s *DescribeVpcEndpointServicesOutput) SetNextToken(v string) *DescribeVpcEndpointServicesOutput {
  31724. s.NextToken = &v
  31725. return s
  31726. }
  31727. // SetServiceNames sets the ServiceNames field's value.
  31728. func (s *DescribeVpcEndpointServicesOutput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesOutput {
  31729. s.ServiceNames = v
  31730. return s
  31731. }
  31732. // Contains the parameters for DescribeVpcEndpoints.
  31733. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointsRequest
  31734. type DescribeVpcEndpointsInput struct {
  31735. _ struct{} `type:"structure"`
  31736. // Checks whether you have the required permissions for the action, without
  31737. // actually making the request, and provides an error response. If you have
  31738. // the required permissions, the error response is DryRunOperation. Otherwise,
  31739. // it is UnauthorizedOperation.
  31740. DryRun *bool `type:"boolean"`
  31741. // One or more filters.
  31742. //
  31743. // * service-name: The name of the AWS service.
  31744. //
  31745. // * vpc-id: The ID of the VPC in which the endpoint resides.
  31746. //
  31747. // * vpc-endpoint-id: The ID of the endpoint.
  31748. //
  31749. // * vpc-endpoint-state: The state of the endpoint. (pending | available
  31750. // | deleting | deleted)
  31751. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31752. // The maximum number of items to return for this request. The request returns
  31753. // a token that you can specify in a subsequent call to get the next set of
  31754. // results.
  31755. //
  31756. // Constraint: If the value is greater than 1000, we return only 1000 items.
  31757. MaxResults *int64 `type:"integer"`
  31758. // The token for the next set of items to return. (You received this token from
  31759. // a prior call.)
  31760. NextToken *string `type:"string"`
  31761. // One or more endpoint IDs.
  31762. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list"`
  31763. }
  31764. // String returns the string representation
  31765. func (s DescribeVpcEndpointsInput) String() string {
  31766. return awsutil.Prettify(s)
  31767. }
  31768. // GoString returns the string representation
  31769. func (s DescribeVpcEndpointsInput) GoString() string {
  31770. return s.String()
  31771. }
  31772. // SetDryRun sets the DryRun field's value.
  31773. func (s *DescribeVpcEndpointsInput) SetDryRun(v bool) *DescribeVpcEndpointsInput {
  31774. s.DryRun = &v
  31775. return s
  31776. }
  31777. // SetFilters sets the Filters field's value.
  31778. func (s *DescribeVpcEndpointsInput) SetFilters(v []*Filter) *DescribeVpcEndpointsInput {
  31779. s.Filters = v
  31780. return s
  31781. }
  31782. // SetMaxResults sets the MaxResults field's value.
  31783. func (s *DescribeVpcEndpointsInput) SetMaxResults(v int64) *DescribeVpcEndpointsInput {
  31784. s.MaxResults = &v
  31785. return s
  31786. }
  31787. // SetNextToken sets the NextToken field's value.
  31788. func (s *DescribeVpcEndpointsInput) SetNextToken(v string) *DescribeVpcEndpointsInput {
  31789. s.NextToken = &v
  31790. return s
  31791. }
  31792. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  31793. func (s *DescribeVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DescribeVpcEndpointsInput {
  31794. s.VpcEndpointIds = v
  31795. return s
  31796. }
  31797. // Contains the output of DescribeVpcEndpoints.
  31798. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointsResult
  31799. type DescribeVpcEndpointsOutput struct {
  31800. _ struct{} `type:"structure"`
  31801. // The token to use when requesting the next set of items. If there are no additional
  31802. // items to return, the string is empty.
  31803. NextToken *string `locationName:"nextToken" type:"string"`
  31804. // Information about the endpoints.
  31805. VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpointSet" locationNameList:"item" type:"list"`
  31806. }
  31807. // String returns the string representation
  31808. func (s DescribeVpcEndpointsOutput) String() string {
  31809. return awsutil.Prettify(s)
  31810. }
  31811. // GoString returns the string representation
  31812. func (s DescribeVpcEndpointsOutput) GoString() string {
  31813. return s.String()
  31814. }
  31815. // SetNextToken sets the NextToken field's value.
  31816. func (s *DescribeVpcEndpointsOutput) SetNextToken(v string) *DescribeVpcEndpointsOutput {
  31817. s.NextToken = &v
  31818. return s
  31819. }
  31820. // SetVpcEndpoints sets the VpcEndpoints field's value.
  31821. func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *DescribeVpcEndpointsOutput {
  31822. s.VpcEndpoints = v
  31823. return s
  31824. }
  31825. // Contains the parameters for DescribeVpcPeeringConnections.
  31826. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnectionsRequest
  31827. type DescribeVpcPeeringConnectionsInput struct {
  31828. _ struct{} `type:"structure"`
  31829. // Checks whether you have the required permissions for the action, without
  31830. // actually making the request, and provides an error response. If you have
  31831. // the required permissions, the error response is DryRunOperation. Otherwise,
  31832. // it is UnauthorizedOperation.
  31833. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31834. // One or more filters.
  31835. //
  31836. // * accepter-vpc-info.cidr-block - The IPv4 CIDR block of the peer VPC.
  31837. //
  31838. // * accepter-vpc-info.owner-id - The AWS account ID of the owner of the
  31839. // peer VPC.
  31840. //
  31841. // * accepter-vpc-info.vpc-id - The ID of the peer VPC.
  31842. //
  31843. // * expiration-time - The expiration date and time for the VPC peering connection.
  31844. //
  31845. // * requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's
  31846. // VPC.
  31847. //
  31848. // * requester-vpc-info.owner-id - The AWS account ID of the owner of the
  31849. // requester VPC.
  31850. //
  31851. // * requester-vpc-info.vpc-id - The ID of the requester VPC.
  31852. //
  31853. // * status-code - The status of the VPC peering connection (pending-acceptance
  31854. // | failed | expired | provisioning | active | deleted | rejected).
  31855. //
  31856. // * status-message - A message that provides more information about the
  31857. // status of the VPC peering connection, if applicable.
  31858. //
  31859. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  31860. // Specify the key of the tag in the filter name and the value of the tag
  31861. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  31862. // for the filter name and X for the filter value.
  31863. //
  31864. // * tag-key - The key of a tag assigned to the resource. This filter is
  31865. // independent of the tag-value filter. For example, if you use both the
  31866. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  31867. // assigned both the tag key Purpose (regardless of what the tag's value
  31868. // is), and the tag value X (regardless of what the tag's key is). If you
  31869. // want to list only resources where Purpose is X, see the tag:key=value
  31870. // filter.
  31871. //
  31872. // * tag-value - The value of a tag assigned to the resource. This filter
  31873. // is independent of the tag-key filter.
  31874. //
  31875. // * vpc-peering-connection-id - The ID of the VPC peering connection.
  31876. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31877. // One or more VPC peering connection IDs.
  31878. //
  31879. // Default: Describes all your VPC peering connections.
  31880. VpcPeeringConnectionIds []*string `locationName:"VpcPeeringConnectionId" locationNameList:"item" type:"list"`
  31881. }
  31882. // String returns the string representation
  31883. func (s DescribeVpcPeeringConnectionsInput) String() string {
  31884. return awsutil.Prettify(s)
  31885. }
  31886. // GoString returns the string representation
  31887. func (s DescribeVpcPeeringConnectionsInput) GoString() string {
  31888. return s.String()
  31889. }
  31890. // SetDryRun sets the DryRun field's value.
  31891. func (s *DescribeVpcPeeringConnectionsInput) SetDryRun(v bool) *DescribeVpcPeeringConnectionsInput {
  31892. s.DryRun = &v
  31893. return s
  31894. }
  31895. // SetFilters sets the Filters field's value.
  31896. func (s *DescribeVpcPeeringConnectionsInput) SetFilters(v []*Filter) *DescribeVpcPeeringConnectionsInput {
  31897. s.Filters = v
  31898. return s
  31899. }
  31900. // SetVpcPeeringConnectionIds sets the VpcPeeringConnectionIds field's value.
  31901. func (s *DescribeVpcPeeringConnectionsInput) SetVpcPeeringConnectionIds(v []*string) *DescribeVpcPeeringConnectionsInput {
  31902. s.VpcPeeringConnectionIds = v
  31903. return s
  31904. }
  31905. // Contains the output of DescribeVpcPeeringConnections.
  31906. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnectionsResult
  31907. type DescribeVpcPeeringConnectionsOutput struct {
  31908. _ struct{} `type:"structure"`
  31909. // Information about the VPC peering connections.
  31910. VpcPeeringConnections []*VpcPeeringConnection `locationName:"vpcPeeringConnectionSet" locationNameList:"item" type:"list"`
  31911. }
  31912. // String returns the string representation
  31913. func (s DescribeVpcPeeringConnectionsOutput) String() string {
  31914. return awsutil.Prettify(s)
  31915. }
  31916. // GoString returns the string representation
  31917. func (s DescribeVpcPeeringConnectionsOutput) GoString() string {
  31918. return s.String()
  31919. }
  31920. // SetVpcPeeringConnections sets the VpcPeeringConnections field's value.
  31921. func (s *DescribeVpcPeeringConnectionsOutput) SetVpcPeeringConnections(v []*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput {
  31922. s.VpcPeeringConnections = v
  31923. return s
  31924. }
  31925. // Contains the parameters for DescribeVpcs.
  31926. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcsRequest
  31927. type DescribeVpcsInput struct {
  31928. _ struct{} `type:"structure"`
  31929. // Checks whether you have the required permissions for the action, without
  31930. // actually making the request, and provides an error response. If you have
  31931. // the required permissions, the error response is DryRunOperation. Otherwise,
  31932. // it is UnauthorizedOperation.
  31933. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31934. // One or more filters.
  31935. //
  31936. // * cidr - The IPv4 CIDR block of the VPC. The CIDR block you specify must
  31937. // exactly match the VPC's CIDR block for information to be returned for
  31938. // the VPC. Must contain the slash followed by one or two digits (for example,
  31939. // /28).
  31940. //
  31941. // * dhcp-options-id - The ID of a set of DHCP options.
  31942. //
  31943. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  31944. // with the VPC.
  31945. //
  31946. // * ipv6-cidr-block-association.association-id - The association ID for
  31947. // an IPv6 CIDR block associated with the VPC.
  31948. //
  31949. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  31950. // associated with the VPC.
  31951. //
  31952. // * isDefault - Indicates whether the VPC is the default VPC.
  31953. //
  31954. // * state - The state of the VPC (pending | available).
  31955. //
  31956. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  31957. // Specify the key of the tag in the filter name and the value of the tag
  31958. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  31959. // for the filter name and X for the filter value.
  31960. //
  31961. // * tag-key - The key of a tag assigned to the resource. This filter is
  31962. // independent of the tag-value filter. For example, if you use both the
  31963. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  31964. // assigned both the tag key Purpose (regardless of what the tag's value
  31965. // is), and the tag value X (regardless of what the tag's key is). If you
  31966. // want to list only resources where Purpose is X, see the tag:key=value
  31967. // filter.
  31968. //
  31969. // * tag-value - The value of a tag assigned to the resource. This filter
  31970. // is independent of the tag-key filter.
  31971. //
  31972. // * vpc-id - The ID of the VPC.
  31973. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31974. // One or more VPC IDs.
  31975. //
  31976. // Default: Describes all your VPCs.
  31977. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  31978. }
  31979. // String returns the string representation
  31980. func (s DescribeVpcsInput) String() string {
  31981. return awsutil.Prettify(s)
  31982. }
  31983. // GoString returns the string representation
  31984. func (s DescribeVpcsInput) GoString() string {
  31985. return s.String()
  31986. }
  31987. // SetDryRun sets the DryRun field's value.
  31988. func (s *DescribeVpcsInput) SetDryRun(v bool) *DescribeVpcsInput {
  31989. s.DryRun = &v
  31990. return s
  31991. }
  31992. // SetFilters sets the Filters field's value.
  31993. func (s *DescribeVpcsInput) SetFilters(v []*Filter) *DescribeVpcsInput {
  31994. s.Filters = v
  31995. return s
  31996. }
  31997. // SetVpcIds sets the VpcIds field's value.
  31998. func (s *DescribeVpcsInput) SetVpcIds(v []*string) *DescribeVpcsInput {
  31999. s.VpcIds = v
  32000. return s
  32001. }
  32002. // Contains the output of DescribeVpcs.
  32003. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcsResult
  32004. type DescribeVpcsOutput struct {
  32005. _ struct{} `type:"structure"`
  32006. // Information about one or more VPCs.
  32007. Vpcs []*Vpc `locationName:"vpcSet" locationNameList:"item" type:"list"`
  32008. }
  32009. // String returns the string representation
  32010. func (s DescribeVpcsOutput) String() string {
  32011. return awsutil.Prettify(s)
  32012. }
  32013. // GoString returns the string representation
  32014. func (s DescribeVpcsOutput) GoString() string {
  32015. return s.String()
  32016. }
  32017. // SetVpcs sets the Vpcs field's value.
  32018. func (s *DescribeVpcsOutput) SetVpcs(v []*Vpc) *DescribeVpcsOutput {
  32019. s.Vpcs = v
  32020. return s
  32021. }
  32022. // Contains the parameters for DescribeVpnConnections.
  32023. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnectionsRequest
  32024. type DescribeVpnConnectionsInput struct {
  32025. _ struct{} `type:"structure"`
  32026. // Checks whether you have the required permissions for the action, without
  32027. // actually making the request, and provides an error response. If you have
  32028. // the required permissions, the error response is DryRunOperation. Otherwise,
  32029. // it is UnauthorizedOperation.
  32030. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32031. // One or more filters.
  32032. //
  32033. // * customer-gateway-configuration - The configuration information for the
  32034. // customer gateway.
  32035. //
  32036. // * customer-gateway-id - The ID of a customer gateway associated with the
  32037. // VPN connection.
  32038. //
  32039. // * state - The state of the VPN connection (pending | available | deleting
  32040. // | deleted).
  32041. //
  32042. // * option.static-routes-only - Indicates whether the connection has static
  32043. // routes only. Used for devices that do not support Border Gateway Protocol
  32044. // (BGP).
  32045. //
  32046. // * route.destination-cidr-block - The destination CIDR block. This corresponds
  32047. // to the subnet used in a customer data center.
  32048. //
  32049. // * bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP
  32050. // device.
  32051. //
  32052. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  32053. // Specify the key of the tag in the filter name and the value of the tag
  32054. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  32055. // for the filter name and X for the filter value.
  32056. //
  32057. // * tag-key - The key of a tag assigned to the resource. This filter is
  32058. // independent of the tag-value filter. For example, if you use both the
  32059. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  32060. // assigned both the tag key Purpose (regardless of what the tag's value
  32061. // is), and the tag value X (regardless of what the tag's key is). If you
  32062. // want to list only resources where Purpose is X, see the tag:key=value
  32063. // filter.
  32064. //
  32065. // * tag-value - The value of a tag assigned to the resource. This filter
  32066. // is independent of the tag-key filter.
  32067. //
  32068. // * type - The type of VPN connection. Currently the only supported type
  32069. // is ipsec.1.
  32070. //
  32071. // * vpn-connection-id - The ID of the VPN connection.
  32072. //
  32073. // * vpn-gateway-id - The ID of a virtual private gateway associated with
  32074. // the VPN connection.
  32075. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32076. // One or more VPN connection IDs.
  32077. //
  32078. // Default: Describes your VPN connections.
  32079. VpnConnectionIds []*string `locationName:"VpnConnectionId" locationNameList:"VpnConnectionId" type:"list"`
  32080. }
  32081. // String returns the string representation
  32082. func (s DescribeVpnConnectionsInput) String() string {
  32083. return awsutil.Prettify(s)
  32084. }
  32085. // GoString returns the string representation
  32086. func (s DescribeVpnConnectionsInput) GoString() string {
  32087. return s.String()
  32088. }
  32089. // SetDryRun sets the DryRun field's value.
  32090. func (s *DescribeVpnConnectionsInput) SetDryRun(v bool) *DescribeVpnConnectionsInput {
  32091. s.DryRun = &v
  32092. return s
  32093. }
  32094. // SetFilters sets the Filters field's value.
  32095. func (s *DescribeVpnConnectionsInput) SetFilters(v []*Filter) *DescribeVpnConnectionsInput {
  32096. s.Filters = v
  32097. return s
  32098. }
  32099. // SetVpnConnectionIds sets the VpnConnectionIds field's value.
  32100. func (s *DescribeVpnConnectionsInput) SetVpnConnectionIds(v []*string) *DescribeVpnConnectionsInput {
  32101. s.VpnConnectionIds = v
  32102. return s
  32103. }
  32104. // Contains the output of DescribeVpnConnections.
  32105. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnectionsResult
  32106. type DescribeVpnConnectionsOutput struct {
  32107. _ struct{} `type:"structure"`
  32108. // Information about one or more VPN connections.
  32109. VpnConnections []*VpnConnection `locationName:"vpnConnectionSet" locationNameList:"item" type:"list"`
  32110. }
  32111. // String returns the string representation
  32112. func (s DescribeVpnConnectionsOutput) String() string {
  32113. return awsutil.Prettify(s)
  32114. }
  32115. // GoString returns the string representation
  32116. func (s DescribeVpnConnectionsOutput) GoString() string {
  32117. return s.String()
  32118. }
  32119. // SetVpnConnections sets the VpnConnections field's value.
  32120. func (s *DescribeVpnConnectionsOutput) SetVpnConnections(v []*VpnConnection) *DescribeVpnConnectionsOutput {
  32121. s.VpnConnections = v
  32122. return s
  32123. }
  32124. // Contains the parameters for DescribeVpnGateways.
  32125. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGatewaysRequest
  32126. type DescribeVpnGatewaysInput struct {
  32127. _ struct{} `type:"structure"`
  32128. // Checks whether you have the required permissions for the action, without
  32129. // actually making the request, and provides an error response. If you have
  32130. // the required permissions, the error response is DryRunOperation. Otherwise,
  32131. // it is UnauthorizedOperation.
  32132. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32133. // One or more filters.
  32134. //
  32135. // * attachment.state - The current state of the attachment between the gateway
  32136. // and the VPC (attaching | attached | detaching | detached).
  32137. //
  32138. // * attachment.vpc-id - The ID of an attached VPC.
  32139. //
  32140. // * availability-zone - The Availability Zone for the virtual private gateway
  32141. // (if applicable).
  32142. //
  32143. // * state - The state of the virtual private gateway (pending | available
  32144. // | deleting | deleted).
  32145. //
  32146. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  32147. // Specify the key of the tag in the filter name and the value of the tag
  32148. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  32149. // for the filter name and X for the filter value.
  32150. //
  32151. // * tag-key - The key of a tag assigned to the resource. This filter is
  32152. // independent of the tag-value filter. For example, if you use both the
  32153. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  32154. // assigned both the tag key Purpose (regardless of what the tag's value
  32155. // is), and the tag value X (regardless of what the tag's key is). If you
  32156. // want to list only resources where Purpose is X, see the tag:key=value
  32157. // filter.
  32158. //
  32159. // * tag-value - The value of a tag assigned to the resource. This filter
  32160. // is independent of the tag-key filter.
  32161. //
  32162. // * type - The type of virtual private gateway. Currently the only supported
  32163. // type is ipsec.1.
  32164. //
  32165. // * vpn-gateway-id - The ID of the virtual private gateway.
  32166. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32167. // One or more virtual private gateway IDs.
  32168. //
  32169. // Default: Describes all your virtual private gateways.
  32170. VpnGatewayIds []*string `locationName:"VpnGatewayId" locationNameList:"VpnGatewayId" type:"list"`
  32171. }
  32172. // String returns the string representation
  32173. func (s DescribeVpnGatewaysInput) String() string {
  32174. return awsutil.Prettify(s)
  32175. }
  32176. // GoString returns the string representation
  32177. func (s DescribeVpnGatewaysInput) GoString() string {
  32178. return s.String()
  32179. }
  32180. // SetDryRun sets the DryRun field's value.
  32181. func (s *DescribeVpnGatewaysInput) SetDryRun(v bool) *DescribeVpnGatewaysInput {
  32182. s.DryRun = &v
  32183. return s
  32184. }
  32185. // SetFilters sets the Filters field's value.
  32186. func (s *DescribeVpnGatewaysInput) SetFilters(v []*Filter) *DescribeVpnGatewaysInput {
  32187. s.Filters = v
  32188. return s
  32189. }
  32190. // SetVpnGatewayIds sets the VpnGatewayIds field's value.
  32191. func (s *DescribeVpnGatewaysInput) SetVpnGatewayIds(v []*string) *DescribeVpnGatewaysInput {
  32192. s.VpnGatewayIds = v
  32193. return s
  32194. }
  32195. // Contains the output of DescribeVpnGateways.
  32196. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGatewaysResult
  32197. type DescribeVpnGatewaysOutput struct {
  32198. _ struct{} `type:"structure"`
  32199. // Information about one or more virtual private gateways.
  32200. VpnGateways []*VpnGateway `locationName:"vpnGatewaySet" locationNameList:"item" type:"list"`
  32201. }
  32202. // String returns the string representation
  32203. func (s DescribeVpnGatewaysOutput) String() string {
  32204. return awsutil.Prettify(s)
  32205. }
  32206. // GoString returns the string representation
  32207. func (s DescribeVpnGatewaysOutput) GoString() string {
  32208. return s.String()
  32209. }
  32210. // SetVpnGateways sets the VpnGateways field's value.
  32211. func (s *DescribeVpnGatewaysOutput) SetVpnGateways(v []*VpnGateway) *DescribeVpnGatewaysOutput {
  32212. s.VpnGateways = v
  32213. return s
  32214. }
  32215. // Contains the parameters for DetachClassicLinkVpc.
  32216. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpcRequest
  32217. type DetachClassicLinkVpcInput struct {
  32218. _ struct{} `type:"structure"`
  32219. // Checks whether you have the required permissions for the action, without
  32220. // actually making the request, and provides an error response. If you have
  32221. // the required permissions, the error response is DryRunOperation. Otherwise,
  32222. // it is UnauthorizedOperation.
  32223. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32224. // The ID of the instance to unlink from the VPC.
  32225. //
  32226. // InstanceId is a required field
  32227. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  32228. // The ID of the VPC to which the instance is linked.
  32229. //
  32230. // VpcId is a required field
  32231. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  32232. }
  32233. // String returns the string representation
  32234. func (s DetachClassicLinkVpcInput) String() string {
  32235. return awsutil.Prettify(s)
  32236. }
  32237. // GoString returns the string representation
  32238. func (s DetachClassicLinkVpcInput) GoString() string {
  32239. return s.String()
  32240. }
  32241. // Validate inspects the fields of the type to determine if they are valid.
  32242. func (s *DetachClassicLinkVpcInput) Validate() error {
  32243. invalidParams := request.ErrInvalidParams{Context: "DetachClassicLinkVpcInput"}
  32244. if s.InstanceId == nil {
  32245. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  32246. }
  32247. if s.VpcId == nil {
  32248. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  32249. }
  32250. if invalidParams.Len() > 0 {
  32251. return invalidParams
  32252. }
  32253. return nil
  32254. }
  32255. // SetDryRun sets the DryRun field's value.
  32256. func (s *DetachClassicLinkVpcInput) SetDryRun(v bool) *DetachClassicLinkVpcInput {
  32257. s.DryRun = &v
  32258. return s
  32259. }
  32260. // SetInstanceId sets the InstanceId field's value.
  32261. func (s *DetachClassicLinkVpcInput) SetInstanceId(v string) *DetachClassicLinkVpcInput {
  32262. s.InstanceId = &v
  32263. return s
  32264. }
  32265. // SetVpcId sets the VpcId field's value.
  32266. func (s *DetachClassicLinkVpcInput) SetVpcId(v string) *DetachClassicLinkVpcInput {
  32267. s.VpcId = &v
  32268. return s
  32269. }
  32270. // Contains the output of DetachClassicLinkVpc.
  32271. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpcResult
  32272. type DetachClassicLinkVpcOutput struct {
  32273. _ struct{} `type:"structure"`
  32274. // Returns true if the request succeeds; otherwise, it returns an error.
  32275. Return *bool `locationName:"return" type:"boolean"`
  32276. }
  32277. // String returns the string representation
  32278. func (s DetachClassicLinkVpcOutput) String() string {
  32279. return awsutil.Prettify(s)
  32280. }
  32281. // GoString returns the string representation
  32282. func (s DetachClassicLinkVpcOutput) GoString() string {
  32283. return s.String()
  32284. }
  32285. // SetReturn sets the Return field's value.
  32286. func (s *DetachClassicLinkVpcOutput) SetReturn(v bool) *DetachClassicLinkVpcOutput {
  32287. s.Return = &v
  32288. return s
  32289. }
  32290. // Contains the parameters for DetachInternetGateway.
  32291. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGatewayRequest
  32292. type DetachInternetGatewayInput struct {
  32293. _ struct{} `type:"structure"`
  32294. // Checks whether you have the required permissions for the action, without
  32295. // actually making the request, and provides an error response. If you have
  32296. // the required permissions, the error response is DryRunOperation. Otherwise,
  32297. // it is UnauthorizedOperation.
  32298. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32299. // The ID of the Internet gateway.
  32300. //
  32301. // InternetGatewayId is a required field
  32302. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  32303. // The ID of the VPC.
  32304. //
  32305. // VpcId is a required field
  32306. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  32307. }
  32308. // String returns the string representation
  32309. func (s DetachInternetGatewayInput) String() string {
  32310. return awsutil.Prettify(s)
  32311. }
  32312. // GoString returns the string representation
  32313. func (s DetachInternetGatewayInput) GoString() string {
  32314. return s.String()
  32315. }
  32316. // Validate inspects the fields of the type to determine if they are valid.
  32317. func (s *DetachInternetGatewayInput) Validate() error {
  32318. invalidParams := request.ErrInvalidParams{Context: "DetachInternetGatewayInput"}
  32319. if s.InternetGatewayId == nil {
  32320. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  32321. }
  32322. if s.VpcId == nil {
  32323. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  32324. }
  32325. if invalidParams.Len() > 0 {
  32326. return invalidParams
  32327. }
  32328. return nil
  32329. }
  32330. // SetDryRun sets the DryRun field's value.
  32331. func (s *DetachInternetGatewayInput) SetDryRun(v bool) *DetachInternetGatewayInput {
  32332. s.DryRun = &v
  32333. return s
  32334. }
  32335. // SetInternetGatewayId sets the InternetGatewayId field's value.
  32336. func (s *DetachInternetGatewayInput) SetInternetGatewayId(v string) *DetachInternetGatewayInput {
  32337. s.InternetGatewayId = &v
  32338. return s
  32339. }
  32340. // SetVpcId sets the VpcId field's value.
  32341. func (s *DetachInternetGatewayInput) SetVpcId(v string) *DetachInternetGatewayInput {
  32342. s.VpcId = &v
  32343. return s
  32344. }
  32345. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGatewayOutput
  32346. type DetachInternetGatewayOutput struct {
  32347. _ struct{} `type:"structure"`
  32348. }
  32349. // String returns the string representation
  32350. func (s DetachInternetGatewayOutput) String() string {
  32351. return awsutil.Prettify(s)
  32352. }
  32353. // GoString returns the string representation
  32354. func (s DetachInternetGatewayOutput) GoString() string {
  32355. return s.String()
  32356. }
  32357. // Contains the parameters for DetachNetworkInterface.
  32358. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterfaceRequest
  32359. type DetachNetworkInterfaceInput struct {
  32360. _ struct{} `type:"structure"`
  32361. // The ID of the attachment.
  32362. //
  32363. // AttachmentId is a required field
  32364. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  32365. // Checks whether you have the required permissions for the action, without
  32366. // actually making the request, and provides an error response. If you have
  32367. // the required permissions, the error response is DryRunOperation. Otherwise,
  32368. // it is UnauthorizedOperation.
  32369. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32370. // Specifies whether to force a detachment.
  32371. Force *bool `locationName:"force" type:"boolean"`
  32372. }
  32373. // String returns the string representation
  32374. func (s DetachNetworkInterfaceInput) String() string {
  32375. return awsutil.Prettify(s)
  32376. }
  32377. // GoString returns the string representation
  32378. func (s DetachNetworkInterfaceInput) GoString() string {
  32379. return s.String()
  32380. }
  32381. // Validate inspects the fields of the type to determine if they are valid.
  32382. func (s *DetachNetworkInterfaceInput) Validate() error {
  32383. invalidParams := request.ErrInvalidParams{Context: "DetachNetworkInterfaceInput"}
  32384. if s.AttachmentId == nil {
  32385. invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
  32386. }
  32387. if invalidParams.Len() > 0 {
  32388. return invalidParams
  32389. }
  32390. return nil
  32391. }
  32392. // SetAttachmentId sets the AttachmentId field's value.
  32393. func (s *DetachNetworkInterfaceInput) SetAttachmentId(v string) *DetachNetworkInterfaceInput {
  32394. s.AttachmentId = &v
  32395. return s
  32396. }
  32397. // SetDryRun sets the DryRun field's value.
  32398. func (s *DetachNetworkInterfaceInput) SetDryRun(v bool) *DetachNetworkInterfaceInput {
  32399. s.DryRun = &v
  32400. return s
  32401. }
  32402. // SetForce sets the Force field's value.
  32403. func (s *DetachNetworkInterfaceInput) SetForce(v bool) *DetachNetworkInterfaceInput {
  32404. s.Force = &v
  32405. return s
  32406. }
  32407. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterfaceOutput
  32408. type DetachNetworkInterfaceOutput struct {
  32409. _ struct{} `type:"structure"`
  32410. }
  32411. // String returns the string representation
  32412. func (s DetachNetworkInterfaceOutput) String() string {
  32413. return awsutil.Prettify(s)
  32414. }
  32415. // GoString returns the string representation
  32416. func (s DetachNetworkInterfaceOutput) GoString() string {
  32417. return s.String()
  32418. }
  32419. // Contains the parameters for DetachVolume.
  32420. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolumeRequest
  32421. type DetachVolumeInput struct {
  32422. _ struct{} `type:"structure"`
  32423. // The device name.
  32424. Device *string `type:"string"`
  32425. // Checks whether you have the required permissions for the action, without
  32426. // actually making the request, and provides an error response. If you have
  32427. // the required permissions, the error response is DryRunOperation. Otherwise,
  32428. // it is UnauthorizedOperation.
  32429. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32430. // Forces detachment if the previous detachment attempt did not occur cleanly
  32431. // (for example, logging into an instance, unmounting the volume, and detaching
  32432. // normally). This option can lead to data loss or a corrupted file system.
  32433. // Use this option only as a last resort to detach a volume from a failed instance.
  32434. // The instance won't have an opportunity to flush file system caches or file
  32435. // system metadata. If you use this option, you must perform file system check
  32436. // and repair procedures.
  32437. Force *bool `type:"boolean"`
  32438. // The ID of the instance.
  32439. InstanceId *string `type:"string"`
  32440. // The ID of the volume.
  32441. //
  32442. // VolumeId is a required field
  32443. VolumeId *string `type:"string" required:"true"`
  32444. }
  32445. // String returns the string representation
  32446. func (s DetachVolumeInput) String() string {
  32447. return awsutil.Prettify(s)
  32448. }
  32449. // GoString returns the string representation
  32450. func (s DetachVolumeInput) GoString() string {
  32451. return s.String()
  32452. }
  32453. // Validate inspects the fields of the type to determine if they are valid.
  32454. func (s *DetachVolumeInput) Validate() error {
  32455. invalidParams := request.ErrInvalidParams{Context: "DetachVolumeInput"}
  32456. if s.VolumeId == nil {
  32457. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  32458. }
  32459. if invalidParams.Len() > 0 {
  32460. return invalidParams
  32461. }
  32462. return nil
  32463. }
  32464. // SetDevice sets the Device field's value.
  32465. func (s *DetachVolumeInput) SetDevice(v string) *DetachVolumeInput {
  32466. s.Device = &v
  32467. return s
  32468. }
  32469. // SetDryRun sets the DryRun field's value.
  32470. func (s *DetachVolumeInput) SetDryRun(v bool) *DetachVolumeInput {
  32471. s.DryRun = &v
  32472. return s
  32473. }
  32474. // SetForce sets the Force field's value.
  32475. func (s *DetachVolumeInput) SetForce(v bool) *DetachVolumeInput {
  32476. s.Force = &v
  32477. return s
  32478. }
  32479. // SetInstanceId sets the InstanceId field's value.
  32480. func (s *DetachVolumeInput) SetInstanceId(v string) *DetachVolumeInput {
  32481. s.InstanceId = &v
  32482. return s
  32483. }
  32484. // SetVolumeId sets the VolumeId field's value.
  32485. func (s *DetachVolumeInput) SetVolumeId(v string) *DetachVolumeInput {
  32486. s.VolumeId = &v
  32487. return s
  32488. }
  32489. // Contains the parameters for DetachVpnGateway.
  32490. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGatewayRequest
  32491. type DetachVpnGatewayInput struct {
  32492. _ struct{} `type:"structure"`
  32493. // Checks whether you have the required permissions for the action, without
  32494. // actually making the request, and provides an error response. If you have
  32495. // the required permissions, the error response is DryRunOperation. Otherwise,
  32496. // it is UnauthorizedOperation.
  32497. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32498. // The ID of the VPC.
  32499. //
  32500. // VpcId is a required field
  32501. VpcId *string `type:"string" required:"true"`
  32502. // The ID of the virtual private gateway.
  32503. //
  32504. // VpnGatewayId is a required field
  32505. VpnGatewayId *string `type:"string" required:"true"`
  32506. }
  32507. // String returns the string representation
  32508. func (s DetachVpnGatewayInput) String() string {
  32509. return awsutil.Prettify(s)
  32510. }
  32511. // GoString returns the string representation
  32512. func (s DetachVpnGatewayInput) GoString() string {
  32513. return s.String()
  32514. }
  32515. // Validate inspects the fields of the type to determine if they are valid.
  32516. func (s *DetachVpnGatewayInput) Validate() error {
  32517. invalidParams := request.ErrInvalidParams{Context: "DetachVpnGatewayInput"}
  32518. if s.VpcId == nil {
  32519. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  32520. }
  32521. if s.VpnGatewayId == nil {
  32522. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  32523. }
  32524. if invalidParams.Len() > 0 {
  32525. return invalidParams
  32526. }
  32527. return nil
  32528. }
  32529. // SetDryRun sets the DryRun field's value.
  32530. func (s *DetachVpnGatewayInput) SetDryRun(v bool) *DetachVpnGatewayInput {
  32531. s.DryRun = &v
  32532. return s
  32533. }
  32534. // SetVpcId sets the VpcId field's value.
  32535. func (s *DetachVpnGatewayInput) SetVpcId(v string) *DetachVpnGatewayInput {
  32536. s.VpcId = &v
  32537. return s
  32538. }
  32539. // SetVpnGatewayId sets the VpnGatewayId field's value.
  32540. func (s *DetachVpnGatewayInput) SetVpnGatewayId(v string) *DetachVpnGatewayInput {
  32541. s.VpnGatewayId = &v
  32542. return s
  32543. }
  32544. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGatewayOutput
  32545. type DetachVpnGatewayOutput struct {
  32546. _ struct{} `type:"structure"`
  32547. }
  32548. // String returns the string representation
  32549. func (s DetachVpnGatewayOutput) String() string {
  32550. return awsutil.Prettify(s)
  32551. }
  32552. // GoString returns the string representation
  32553. func (s DetachVpnGatewayOutput) GoString() string {
  32554. return s.String()
  32555. }
  32556. // Describes a DHCP configuration option.
  32557. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DhcpConfiguration
  32558. type DhcpConfiguration struct {
  32559. _ struct{} `type:"structure"`
  32560. // The name of a DHCP option.
  32561. Key *string `locationName:"key" type:"string"`
  32562. // One or more values for the DHCP option.
  32563. Values []*AttributeValue `locationName:"valueSet" locationNameList:"item" type:"list"`
  32564. }
  32565. // String returns the string representation
  32566. func (s DhcpConfiguration) String() string {
  32567. return awsutil.Prettify(s)
  32568. }
  32569. // GoString returns the string representation
  32570. func (s DhcpConfiguration) GoString() string {
  32571. return s.String()
  32572. }
  32573. // SetKey sets the Key field's value.
  32574. func (s *DhcpConfiguration) SetKey(v string) *DhcpConfiguration {
  32575. s.Key = &v
  32576. return s
  32577. }
  32578. // SetValues sets the Values field's value.
  32579. func (s *DhcpConfiguration) SetValues(v []*AttributeValue) *DhcpConfiguration {
  32580. s.Values = v
  32581. return s
  32582. }
  32583. // Describes a set of DHCP options.
  32584. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DhcpOptions
  32585. type DhcpOptions struct {
  32586. _ struct{} `type:"structure"`
  32587. // One or more DHCP options in the set.
  32588. DhcpConfigurations []*DhcpConfiguration `locationName:"dhcpConfigurationSet" locationNameList:"item" type:"list"`
  32589. // The ID of the set of DHCP options.
  32590. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  32591. // Any tags assigned to the DHCP options set.
  32592. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  32593. }
  32594. // String returns the string representation
  32595. func (s DhcpOptions) String() string {
  32596. return awsutil.Prettify(s)
  32597. }
  32598. // GoString returns the string representation
  32599. func (s DhcpOptions) GoString() string {
  32600. return s.String()
  32601. }
  32602. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  32603. func (s *DhcpOptions) SetDhcpConfigurations(v []*DhcpConfiguration) *DhcpOptions {
  32604. s.DhcpConfigurations = v
  32605. return s
  32606. }
  32607. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  32608. func (s *DhcpOptions) SetDhcpOptionsId(v string) *DhcpOptions {
  32609. s.DhcpOptionsId = &v
  32610. return s
  32611. }
  32612. // SetTags sets the Tags field's value.
  32613. func (s *DhcpOptions) SetTags(v []*Tag) *DhcpOptions {
  32614. s.Tags = v
  32615. return s
  32616. }
  32617. // Contains the parameters for DisableVgwRoutePropagation.
  32618. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagationRequest
  32619. type DisableVgwRoutePropagationInput struct {
  32620. _ struct{} `type:"structure"`
  32621. // The ID of the virtual private gateway.
  32622. //
  32623. // GatewayId is a required field
  32624. GatewayId *string `type:"string" required:"true"`
  32625. // The ID of the route table.
  32626. //
  32627. // RouteTableId is a required field
  32628. RouteTableId *string `type:"string" required:"true"`
  32629. }
  32630. // String returns the string representation
  32631. func (s DisableVgwRoutePropagationInput) String() string {
  32632. return awsutil.Prettify(s)
  32633. }
  32634. // GoString returns the string representation
  32635. func (s DisableVgwRoutePropagationInput) GoString() string {
  32636. return s.String()
  32637. }
  32638. // Validate inspects the fields of the type to determine if they are valid.
  32639. func (s *DisableVgwRoutePropagationInput) Validate() error {
  32640. invalidParams := request.ErrInvalidParams{Context: "DisableVgwRoutePropagationInput"}
  32641. if s.GatewayId == nil {
  32642. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  32643. }
  32644. if s.RouteTableId == nil {
  32645. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  32646. }
  32647. if invalidParams.Len() > 0 {
  32648. return invalidParams
  32649. }
  32650. return nil
  32651. }
  32652. // SetGatewayId sets the GatewayId field's value.
  32653. func (s *DisableVgwRoutePropagationInput) SetGatewayId(v string) *DisableVgwRoutePropagationInput {
  32654. s.GatewayId = &v
  32655. return s
  32656. }
  32657. // SetRouteTableId sets the RouteTableId field's value.
  32658. func (s *DisableVgwRoutePropagationInput) SetRouteTableId(v string) *DisableVgwRoutePropagationInput {
  32659. s.RouteTableId = &v
  32660. return s
  32661. }
  32662. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagationOutput
  32663. type DisableVgwRoutePropagationOutput struct {
  32664. _ struct{} `type:"structure"`
  32665. }
  32666. // String returns the string representation
  32667. func (s DisableVgwRoutePropagationOutput) String() string {
  32668. return awsutil.Prettify(s)
  32669. }
  32670. // GoString returns the string representation
  32671. func (s DisableVgwRoutePropagationOutput) GoString() string {
  32672. return s.String()
  32673. }
  32674. // Contains the parameters for DisableVpcClassicLinkDnsSupport.
  32675. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupportRequest
  32676. type DisableVpcClassicLinkDnsSupportInput struct {
  32677. _ struct{} `type:"structure"`
  32678. // The ID of the VPC.
  32679. VpcId *string `type:"string"`
  32680. }
  32681. // String returns the string representation
  32682. func (s DisableVpcClassicLinkDnsSupportInput) String() string {
  32683. return awsutil.Prettify(s)
  32684. }
  32685. // GoString returns the string representation
  32686. func (s DisableVpcClassicLinkDnsSupportInput) GoString() string {
  32687. return s.String()
  32688. }
  32689. // SetVpcId sets the VpcId field's value.
  32690. func (s *DisableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *DisableVpcClassicLinkDnsSupportInput {
  32691. s.VpcId = &v
  32692. return s
  32693. }
  32694. // Contains the output of DisableVpcClassicLinkDnsSupport.
  32695. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupportResult
  32696. type DisableVpcClassicLinkDnsSupportOutput struct {
  32697. _ struct{} `type:"structure"`
  32698. // Returns true if the request succeeds; otherwise, it returns an error.
  32699. Return *bool `locationName:"return" type:"boolean"`
  32700. }
  32701. // String returns the string representation
  32702. func (s DisableVpcClassicLinkDnsSupportOutput) String() string {
  32703. return awsutil.Prettify(s)
  32704. }
  32705. // GoString returns the string representation
  32706. func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string {
  32707. return s.String()
  32708. }
  32709. // SetReturn sets the Return field's value.
  32710. func (s *DisableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *DisableVpcClassicLinkDnsSupportOutput {
  32711. s.Return = &v
  32712. return s
  32713. }
  32714. // Contains the parameters for DisableVpcClassicLink.
  32715. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkRequest
  32716. type DisableVpcClassicLinkInput struct {
  32717. _ struct{} `type:"structure"`
  32718. // Checks whether you have the required permissions for the action, without
  32719. // actually making the request, and provides an error response. If you have
  32720. // the required permissions, the error response is DryRunOperation. Otherwise,
  32721. // it is UnauthorizedOperation.
  32722. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32723. // The ID of the VPC.
  32724. //
  32725. // VpcId is a required field
  32726. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  32727. }
  32728. // String returns the string representation
  32729. func (s DisableVpcClassicLinkInput) String() string {
  32730. return awsutil.Prettify(s)
  32731. }
  32732. // GoString returns the string representation
  32733. func (s DisableVpcClassicLinkInput) GoString() string {
  32734. return s.String()
  32735. }
  32736. // Validate inspects the fields of the type to determine if they are valid.
  32737. func (s *DisableVpcClassicLinkInput) Validate() error {
  32738. invalidParams := request.ErrInvalidParams{Context: "DisableVpcClassicLinkInput"}
  32739. if s.VpcId == nil {
  32740. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  32741. }
  32742. if invalidParams.Len() > 0 {
  32743. return invalidParams
  32744. }
  32745. return nil
  32746. }
  32747. // SetDryRun sets the DryRun field's value.
  32748. func (s *DisableVpcClassicLinkInput) SetDryRun(v bool) *DisableVpcClassicLinkInput {
  32749. s.DryRun = &v
  32750. return s
  32751. }
  32752. // SetVpcId sets the VpcId field's value.
  32753. func (s *DisableVpcClassicLinkInput) SetVpcId(v string) *DisableVpcClassicLinkInput {
  32754. s.VpcId = &v
  32755. return s
  32756. }
  32757. // Contains the output of DisableVpcClassicLink.
  32758. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkResult
  32759. type DisableVpcClassicLinkOutput struct {
  32760. _ struct{} `type:"structure"`
  32761. // Returns true if the request succeeds; otherwise, it returns an error.
  32762. Return *bool `locationName:"return" type:"boolean"`
  32763. }
  32764. // String returns the string representation
  32765. func (s DisableVpcClassicLinkOutput) String() string {
  32766. return awsutil.Prettify(s)
  32767. }
  32768. // GoString returns the string representation
  32769. func (s DisableVpcClassicLinkOutput) GoString() string {
  32770. return s.String()
  32771. }
  32772. // SetReturn sets the Return field's value.
  32773. func (s *DisableVpcClassicLinkOutput) SetReturn(v bool) *DisableVpcClassicLinkOutput {
  32774. s.Return = &v
  32775. return s
  32776. }
  32777. // Contains the parameters for DisassociateAddress.
  32778. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddressRequest
  32779. type DisassociateAddressInput struct {
  32780. _ struct{} `type:"structure"`
  32781. // [EC2-VPC] The association ID. Required for EC2-VPC.
  32782. AssociationId *string `type:"string"`
  32783. // Checks whether you have the required permissions for the action, without
  32784. // actually making the request, and provides an error response. If you have
  32785. // the required permissions, the error response is DryRunOperation. Otherwise,
  32786. // it is UnauthorizedOperation.
  32787. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32788. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  32789. PublicIp *string `type:"string"`
  32790. }
  32791. // String returns the string representation
  32792. func (s DisassociateAddressInput) String() string {
  32793. return awsutil.Prettify(s)
  32794. }
  32795. // GoString returns the string representation
  32796. func (s DisassociateAddressInput) GoString() string {
  32797. return s.String()
  32798. }
  32799. // SetAssociationId sets the AssociationId field's value.
  32800. func (s *DisassociateAddressInput) SetAssociationId(v string) *DisassociateAddressInput {
  32801. s.AssociationId = &v
  32802. return s
  32803. }
  32804. // SetDryRun sets the DryRun field's value.
  32805. func (s *DisassociateAddressInput) SetDryRun(v bool) *DisassociateAddressInput {
  32806. s.DryRun = &v
  32807. return s
  32808. }
  32809. // SetPublicIp sets the PublicIp field's value.
  32810. func (s *DisassociateAddressInput) SetPublicIp(v string) *DisassociateAddressInput {
  32811. s.PublicIp = &v
  32812. return s
  32813. }
  32814. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddressOutput
  32815. type DisassociateAddressOutput struct {
  32816. _ struct{} `type:"structure"`
  32817. }
  32818. // String returns the string representation
  32819. func (s DisassociateAddressOutput) String() string {
  32820. return awsutil.Prettify(s)
  32821. }
  32822. // GoString returns the string representation
  32823. func (s DisassociateAddressOutput) GoString() string {
  32824. return s.String()
  32825. }
  32826. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfileRequest
  32827. type DisassociateIamInstanceProfileInput struct {
  32828. _ struct{} `type:"structure"`
  32829. // The ID of the IAM instance profile association.
  32830. //
  32831. // AssociationId is a required field
  32832. AssociationId *string `type:"string" required:"true"`
  32833. }
  32834. // String returns the string representation
  32835. func (s DisassociateIamInstanceProfileInput) String() string {
  32836. return awsutil.Prettify(s)
  32837. }
  32838. // GoString returns the string representation
  32839. func (s DisassociateIamInstanceProfileInput) GoString() string {
  32840. return s.String()
  32841. }
  32842. // Validate inspects the fields of the type to determine if they are valid.
  32843. func (s *DisassociateIamInstanceProfileInput) Validate() error {
  32844. invalidParams := request.ErrInvalidParams{Context: "DisassociateIamInstanceProfileInput"}
  32845. if s.AssociationId == nil {
  32846. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  32847. }
  32848. if invalidParams.Len() > 0 {
  32849. return invalidParams
  32850. }
  32851. return nil
  32852. }
  32853. // SetAssociationId sets the AssociationId field's value.
  32854. func (s *DisassociateIamInstanceProfileInput) SetAssociationId(v string) *DisassociateIamInstanceProfileInput {
  32855. s.AssociationId = &v
  32856. return s
  32857. }
  32858. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfileResult
  32859. type DisassociateIamInstanceProfileOutput struct {
  32860. _ struct{} `type:"structure"`
  32861. // Information about the IAM instance profile association.
  32862. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  32863. }
  32864. // String returns the string representation
  32865. func (s DisassociateIamInstanceProfileOutput) String() string {
  32866. return awsutil.Prettify(s)
  32867. }
  32868. // GoString returns the string representation
  32869. func (s DisassociateIamInstanceProfileOutput) GoString() string {
  32870. return s.String()
  32871. }
  32872. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  32873. func (s *DisassociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *DisassociateIamInstanceProfileOutput {
  32874. s.IamInstanceProfileAssociation = v
  32875. return s
  32876. }
  32877. // Contains the parameters for DisassociateRouteTable.
  32878. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTableRequest
  32879. type DisassociateRouteTableInput struct {
  32880. _ struct{} `type:"structure"`
  32881. // The association ID representing the current association between the route
  32882. // table and subnet.
  32883. //
  32884. // AssociationId is a required field
  32885. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  32886. // Checks whether you have the required permissions for the action, without
  32887. // actually making the request, and provides an error response. If you have
  32888. // the required permissions, the error response is DryRunOperation. Otherwise,
  32889. // it is UnauthorizedOperation.
  32890. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32891. }
  32892. // String returns the string representation
  32893. func (s DisassociateRouteTableInput) String() string {
  32894. return awsutil.Prettify(s)
  32895. }
  32896. // GoString returns the string representation
  32897. func (s DisassociateRouteTableInput) GoString() string {
  32898. return s.String()
  32899. }
  32900. // Validate inspects the fields of the type to determine if they are valid.
  32901. func (s *DisassociateRouteTableInput) Validate() error {
  32902. invalidParams := request.ErrInvalidParams{Context: "DisassociateRouteTableInput"}
  32903. if s.AssociationId == nil {
  32904. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  32905. }
  32906. if invalidParams.Len() > 0 {
  32907. return invalidParams
  32908. }
  32909. return nil
  32910. }
  32911. // SetAssociationId sets the AssociationId field's value.
  32912. func (s *DisassociateRouteTableInput) SetAssociationId(v string) *DisassociateRouteTableInput {
  32913. s.AssociationId = &v
  32914. return s
  32915. }
  32916. // SetDryRun sets the DryRun field's value.
  32917. func (s *DisassociateRouteTableInput) SetDryRun(v bool) *DisassociateRouteTableInput {
  32918. s.DryRun = &v
  32919. return s
  32920. }
  32921. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTableOutput
  32922. type DisassociateRouteTableOutput struct {
  32923. _ struct{} `type:"structure"`
  32924. }
  32925. // String returns the string representation
  32926. func (s DisassociateRouteTableOutput) String() string {
  32927. return awsutil.Prettify(s)
  32928. }
  32929. // GoString returns the string representation
  32930. func (s DisassociateRouteTableOutput) GoString() string {
  32931. return s.String()
  32932. }
  32933. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlockRequest
  32934. type DisassociateSubnetCidrBlockInput struct {
  32935. _ struct{} `type:"structure"`
  32936. // The association ID for the CIDR block.
  32937. //
  32938. // AssociationId is a required field
  32939. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  32940. }
  32941. // String returns the string representation
  32942. func (s DisassociateSubnetCidrBlockInput) String() string {
  32943. return awsutil.Prettify(s)
  32944. }
  32945. // GoString returns the string representation
  32946. func (s DisassociateSubnetCidrBlockInput) GoString() string {
  32947. return s.String()
  32948. }
  32949. // Validate inspects the fields of the type to determine if they are valid.
  32950. func (s *DisassociateSubnetCidrBlockInput) Validate() error {
  32951. invalidParams := request.ErrInvalidParams{Context: "DisassociateSubnetCidrBlockInput"}
  32952. if s.AssociationId == nil {
  32953. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  32954. }
  32955. if invalidParams.Len() > 0 {
  32956. return invalidParams
  32957. }
  32958. return nil
  32959. }
  32960. // SetAssociationId sets the AssociationId field's value.
  32961. func (s *DisassociateSubnetCidrBlockInput) SetAssociationId(v string) *DisassociateSubnetCidrBlockInput {
  32962. s.AssociationId = &v
  32963. return s
  32964. }
  32965. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlockResult
  32966. type DisassociateSubnetCidrBlockOutput struct {
  32967. _ struct{} `type:"structure"`
  32968. // Information about the IPv6 CIDR block association.
  32969. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  32970. // The ID of the subnet.
  32971. SubnetId *string `locationName:"subnetId" type:"string"`
  32972. }
  32973. // String returns the string representation
  32974. func (s DisassociateSubnetCidrBlockOutput) String() string {
  32975. return awsutil.Prettify(s)
  32976. }
  32977. // GoString returns the string representation
  32978. func (s DisassociateSubnetCidrBlockOutput) GoString() string {
  32979. return s.String()
  32980. }
  32981. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  32982. func (s *DisassociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *DisassociateSubnetCidrBlockOutput {
  32983. s.Ipv6CidrBlockAssociation = v
  32984. return s
  32985. }
  32986. // SetSubnetId sets the SubnetId field's value.
  32987. func (s *DisassociateSubnetCidrBlockOutput) SetSubnetId(v string) *DisassociateSubnetCidrBlockOutput {
  32988. s.SubnetId = &v
  32989. return s
  32990. }
  32991. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlockRequest
  32992. type DisassociateVpcCidrBlockInput struct {
  32993. _ struct{} `type:"structure"`
  32994. // The association ID for the CIDR block.
  32995. //
  32996. // AssociationId is a required field
  32997. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  32998. }
  32999. // String returns the string representation
  33000. func (s DisassociateVpcCidrBlockInput) String() string {
  33001. return awsutil.Prettify(s)
  33002. }
  33003. // GoString returns the string representation
  33004. func (s DisassociateVpcCidrBlockInput) GoString() string {
  33005. return s.String()
  33006. }
  33007. // Validate inspects the fields of the type to determine if they are valid.
  33008. func (s *DisassociateVpcCidrBlockInput) Validate() error {
  33009. invalidParams := request.ErrInvalidParams{Context: "DisassociateVpcCidrBlockInput"}
  33010. if s.AssociationId == nil {
  33011. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  33012. }
  33013. if invalidParams.Len() > 0 {
  33014. return invalidParams
  33015. }
  33016. return nil
  33017. }
  33018. // SetAssociationId sets the AssociationId field's value.
  33019. func (s *DisassociateVpcCidrBlockInput) SetAssociationId(v string) *DisassociateVpcCidrBlockInput {
  33020. s.AssociationId = &v
  33021. return s
  33022. }
  33023. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlockResult
  33024. type DisassociateVpcCidrBlockOutput struct {
  33025. _ struct{} `type:"structure"`
  33026. // Information about the IPv6 CIDR block association.
  33027. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  33028. // The ID of the VPC.
  33029. VpcId *string `locationName:"vpcId" type:"string"`
  33030. }
  33031. // String returns the string representation
  33032. func (s DisassociateVpcCidrBlockOutput) String() string {
  33033. return awsutil.Prettify(s)
  33034. }
  33035. // GoString returns the string representation
  33036. func (s DisassociateVpcCidrBlockOutput) GoString() string {
  33037. return s.String()
  33038. }
  33039. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  33040. func (s *DisassociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  33041. s.Ipv6CidrBlockAssociation = v
  33042. return s
  33043. }
  33044. // SetVpcId sets the VpcId field's value.
  33045. func (s *DisassociateVpcCidrBlockOutput) SetVpcId(v string) *DisassociateVpcCidrBlockOutput {
  33046. s.VpcId = &v
  33047. return s
  33048. }
  33049. // Describes a disk image.
  33050. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImage
  33051. type DiskImage struct {
  33052. _ struct{} `type:"structure"`
  33053. // A description of the disk image.
  33054. Description *string `type:"string"`
  33055. // Information about the disk image.
  33056. Image *DiskImageDetail `type:"structure"`
  33057. // Information about the volume.
  33058. Volume *VolumeDetail `type:"structure"`
  33059. }
  33060. // String returns the string representation
  33061. func (s DiskImage) String() string {
  33062. return awsutil.Prettify(s)
  33063. }
  33064. // GoString returns the string representation
  33065. func (s DiskImage) GoString() string {
  33066. return s.String()
  33067. }
  33068. // Validate inspects the fields of the type to determine if they are valid.
  33069. func (s *DiskImage) Validate() error {
  33070. invalidParams := request.ErrInvalidParams{Context: "DiskImage"}
  33071. if s.Image != nil {
  33072. if err := s.Image.Validate(); err != nil {
  33073. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  33074. }
  33075. }
  33076. if s.Volume != nil {
  33077. if err := s.Volume.Validate(); err != nil {
  33078. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  33079. }
  33080. }
  33081. if invalidParams.Len() > 0 {
  33082. return invalidParams
  33083. }
  33084. return nil
  33085. }
  33086. // SetDescription sets the Description field's value.
  33087. func (s *DiskImage) SetDescription(v string) *DiskImage {
  33088. s.Description = &v
  33089. return s
  33090. }
  33091. // SetImage sets the Image field's value.
  33092. func (s *DiskImage) SetImage(v *DiskImageDetail) *DiskImage {
  33093. s.Image = v
  33094. return s
  33095. }
  33096. // SetVolume sets the Volume field's value.
  33097. func (s *DiskImage) SetVolume(v *VolumeDetail) *DiskImage {
  33098. s.Volume = v
  33099. return s
  33100. }
  33101. // Describes a disk image.
  33102. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageDescription
  33103. type DiskImageDescription struct {
  33104. _ struct{} `type:"structure"`
  33105. // The checksum computed for the disk image.
  33106. Checksum *string `locationName:"checksum" type:"string"`
  33107. // The disk image format.
  33108. //
  33109. // Format is a required field
  33110. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  33111. // A presigned URL for the import manifest stored in Amazon S3. For information
  33112. // about creating a presigned URL for an Amazon S3 object, read the "Query String
  33113. // Request Authentication Alternative" section of the Authenticating REST Requests
  33114. // (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  33115. // topic in the Amazon Simple Storage Service Developer Guide.
  33116. //
  33117. // For information about the import manifest referenced by this API action,
  33118. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  33119. //
  33120. // ImportManifestUrl is a required field
  33121. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  33122. // The size of the disk image, in GiB.
  33123. //
  33124. // Size is a required field
  33125. Size *int64 `locationName:"size" type:"long" required:"true"`
  33126. }
  33127. // String returns the string representation
  33128. func (s DiskImageDescription) String() string {
  33129. return awsutil.Prettify(s)
  33130. }
  33131. // GoString returns the string representation
  33132. func (s DiskImageDescription) GoString() string {
  33133. return s.String()
  33134. }
  33135. // SetChecksum sets the Checksum field's value.
  33136. func (s *DiskImageDescription) SetChecksum(v string) *DiskImageDescription {
  33137. s.Checksum = &v
  33138. return s
  33139. }
  33140. // SetFormat sets the Format field's value.
  33141. func (s *DiskImageDescription) SetFormat(v string) *DiskImageDescription {
  33142. s.Format = &v
  33143. return s
  33144. }
  33145. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  33146. func (s *DiskImageDescription) SetImportManifestUrl(v string) *DiskImageDescription {
  33147. s.ImportManifestUrl = &v
  33148. return s
  33149. }
  33150. // SetSize sets the Size field's value.
  33151. func (s *DiskImageDescription) SetSize(v int64) *DiskImageDescription {
  33152. s.Size = &v
  33153. return s
  33154. }
  33155. // Describes a disk image.
  33156. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageDetail
  33157. type DiskImageDetail struct {
  33158. _ struct{} `type:"structure"`
  33159. // The size of the disk image, in GiB.
  33160. //
  33161. // Bytes is a required field
  33162. Bytes *int64 `locationName:"bytes" type:"long" required:"true"`
  33163. // The disk image format.
  33164. //
  33165. // Format is a required field
  33166. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  33167. // A presigned URL for the import manifest stored in Amazon S3 and presented
  33168. // here as an Amazon S3 presigned URL. For information about creating a presigned
  33169. // URL for an Amazon S3 object, read the "Query String Request Authentication
  33170. // Alternative" section of the Authenticating REST Requests (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  33171. // topic in the Amazon Simple Storage Service Developer Guide.
  33172. //
  33173. // For information about the import manifest referenced by this API action,
  33174. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  33175. //
  33176. // ImportManifestUrl is a required field
  33177. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  33178. }
  33179. // String returns the string representation
  33180. func (s DiskImageDetail) String() string {
  33181. return awsutil.Prettify(s)
  33182. }
  33183. // GoString returns the string representation
  33184. func (s DiskImageDetail) GoString() string {
  33185. return s.String()
  33186. }
  33187. // Validate inspects the fields of the type to determine if they are valid.
  33188. func (s *DiskImageDetail) Validate() error {
  33189. invalidParams := request.ErrInvalidParams{Context: "DiskImageDetail"}
  33190. if s.Bytes == nil {
  33191. invalidParams.Add(request.NewErrParamRequired("Bytes"))
  33192. }
  33193. if s.Format == nil {
  33194. invalidParams.Add(request.NewErrParamRequired("Format"))
  33195. }
  33196. if s.ImportManifestUrl == nil {
  33197. invalidParams.Add(request.NewErrParamRequired("ImportManifestUrl"))
  33198. }
  33199. if invalidParams.Len() > 0 {
  33200. return invalidParams
  33201. }
  33202. return nil
  33203. }
  33204. // SetBytes sets the Bytes field's value.
  33205. func (s *DiskImageDetail) SetBytes(v int64) *DiskImageDetail {
  33206. s.Bytes = &v
  33207. return s
  33208. }
  33209. // SetFormat sets the Format field's value.
  33210. func (s *DiskImageDetail) SetFormat(v string) *DiskImageDetail {
  33211. s.Format = &v
  33212. return s
  33213. }
  33214. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  33215. func (s *DiskImageDetail) SetImportManifestUrl(v string) *DiskImageDetail {
  33216. s.ImportManifestUrl = &v
  33217. return s
  33218. }
  33219. // Describes a disk image volume.
  33220. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageVolumeDescription
  33221. type DiskImageVolumeDescription struct {
  33222. _ struct{} `type:"structure"`
  33223. // The volume identifier.
  33224. //
  33225. // Id is a required field
  33226. Id *string `locationName:"id" type:"string" required:"true"`
  33227. // The size of the volume, in GiB.
  33228. Size *int64 `locationName:"size" type:"long"`
  33229. }
  33230. // String returns the string representation
  33231. func (s DiskImageVolumeDescription) String() string {
  33232. return awsutil.Prettify(s)
  33233. }
  33234. // GoString returns the string representation
  33235. func (s DiskImageVolumeDescription) GoString() string {
  33236. return s.String()
  33237. }
  33238. // SetId sets the Id field's value.
  33239. func (s *DiskImageVolumeDescription) SetId(v string) *DiskImageVolumeDescription {
  33240. s.Id = &v
  33241. return s
  33242. }
  33243. // SetSize sets the Size field's value.
  33244. func (s *DiskImageVolumeDescription) SetSize(v int64) *DiskImageVolumeDescription {
  33245. s.Size = &v
  33246. return s
  33247. }
  33248. // Describes a block device for an EBS volume.
  33249. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsBlockDevice
  33250. type EbsBlockDevice struct {
  33251. _ struct{} `type:"structure"`
  33252. // Indicates whether the EBS volume is deleted on instance termination.
  33253. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  33254. // Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes
  33255. // may only be attached to instances that support Amazon EBS encryption.
  33256. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  33257. // The number of I/O operations per second (IOPS) that the volume supports.
  33258. // For io1, this represents the number of IOPS that are provisioned for the
  33259. // volume. For gp2, this represents the baseline performance of the volume and
  33260. // the rate at which the volume accumulates I/O credits for bursting. For more
  33261. // information about General Purpose SSD baseline performance, I/O credits,
  33262. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  33263. // in the Amazon Elastic Compute Cloud User Guide.
  33264. //
  33265. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  33266. // gp2 volumes.
  33267. //
  33268. // Condition: This parameter is required for requests to create io1 volumes;
  33269. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  33270. Iops *int64 `locationName:"iops" type:"integer"`
  33271. // The ID of the snapshot.
  33272. SnapshotId *string `locationName:"snapshotId" type:"string"`
  33273. // The size of the volume, in GiB.
  33274. //
  33275. // Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned
  33276. // IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for
  33277. // Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify
  33278. // a snapshot, the volume size must be equal to or larger than the snapshot
  33279. // size.
  33280. //
  33281. // Default: If you're creating the volume from a snapshot and don't specify
  33282. // a volume size, the default is the snapshot size.
  33283. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  33284. // The volume type: gp2, io1, st1, sc1, or standard.
  33285. //
  33286. // Default: standard
  33287. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  33288. }
  33289. // String returns the string representation
  33290. func (s EbsBlockDevice) String() string {
  33291. return awsutil.Prettify(s)
  33292. }
  33293. // GoString returns the string representation
  33294. func (s EbsBlockDevice) GoString() string {
  33295. return s.String()
  33296. }
  33297. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  33298. func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice {
  33299. s.DeleteOnTermination = &v
  33300. return s
  33301. }
  33302. // SetEncrypted sets the Encrypted field's value.
  33303. func (s *EbsBlockDevice) SetEncrypted(v bool) *EbsBlockDevice {
  33304. s.Encrypted = &v
  33305. return s
  33306. }
  33307. // SetIops sets the Iops field's value.
  33308. func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice {
  33309. s.Iops = &v
  33310. return s
  33311. }
  33312. // SetSnapshotId sets the SnapshotId field's value.
  33313. func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice {
  33314. s.SnapshotId = &v
  33315. return s
  33316. }
  33317. // SetVolumeSize sets the VolumeSize field's value.
  33318. func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice {
  33319. s.VolumeSize = &v
  33320. return s
  33321. }
  33322. // SetVolumeType sets the VolumeType field's value.
  33323. func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice {
  33324. s.VolumeType = &v
  33325. return s
  33326. }
  33327. // Describes a parameter used to set up an EBS volume in a block device mapping.
  33328. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsInstanceBlockDevice
  33329. type EbsInstanceBlockDevice struct {
  33330. _ struct{} `type:"structure"`
  33331. // The time stamp when the attachment initiated.
  33332. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  33333. // Indicates whether the volume is deleted on instance termination.
  33334. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  33335. // The attachment state.
  33336. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  33337. // The ID of the EBS volume.
  33338. VolumeId *string `locationName:"volumeId" type:"string"`
  33339. }
  33340. // String returns the string representation
  33341. func (s EbsInstanceBlockDevice) String() string {
  33342. return awsutil.Prettify(s)
  33343. }
  33344. // GoString returns the string representation
  33345. func (s EbsInstanceBlockDevice) GoString() string {
  33346. return s.String()
  33347. }
  33348. // SetAttachTime sets the AttachTime field's value.
  33349. func (s *EbsInstanceBlockDevice) SetAttachTime(v time.Time) *EbsInstanceBlockDevice {
  33350. s.AttachTime = &v
  33351. return s
  33352. }
  33353. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  33354. func (s *EbsInstanceBlockDevice) SetDeleteOnTermination(v bool) *EbsInstanceBlockDevice {
  33355. s.DeleteOnTermination = &v
  33356. return s
  33357. }
  33358. // SetStatus sets the Status field's value.
  33359. func (s *EbsInstanceBlockDevice) SetStatus(v string) *EbsInstanceBlockDevice {
  33360. s.Status = &v
  33361. return s
  33362. }
  33363. // SetVolumeId sets the VolumeId field's value.
  33364. func (s *EbsInstanceBlockDevice) SetVolumeId(v string) *EbsInstanceBlockDevice {
  33365. s.VolumeId = &v
  33366. return s
  33367. }
  33368. // Describes information used to set up an EBS volume specified in a block device
  33369. // mapping.
  33370. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsInstanceBlockDeviceSpecification
  33371. type EbsInstanceBlockDeviceSpecification struct {
  33372. _ struct{} `type:"structure"`
  33373. // Indicates whether the volume is deleted on instance termination.
  33374. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  33375. // The ID of the EBS volume.
  33376. VolumeId *string `locationName:"volumeId" type:"string"`
  33377. }
  33378. // String returns the string representation
  33379. func (s EbsInstanceBlockDeviceSpecification) String() string {
  33380. return awsutil.Prettify(s)
  33381. }
  33382. // GoString returns the string representation
  33383. func (s EbsInstanceBlockDeviceSpecification) GoString() string {
  33384. return s.String()
  33385. }
  33386. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  33387. func (s *EbsInstanceBlockDeviceSpecification) SetDeleteOnTermination(v bool) *EbsInstanceBlockDeviceSpecification {
  33388. s.DeleteOnTermination = &v
  33389. return s
  33390. }
  33391. // SetVolumeId sets the VolumeId field's value.
  33392. func (s *EbsInstanceBlockDeviceSpecification) SetVolumeId(v string) *EbsInstanceBlockDeviceSpecification {
  33393. s.VolumeId = &v
  33394. return s
  33395. }
  33396. // Describes an egress-only Internet gateway.
  33397. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EgressOnlyInternetGateway
  33398. type EgressOnlyInternetGateway struct {
  33399. _ struct{} `type:"structure"`
  33400. // Information about the attachment of the egress-only Internet gateway.
  33401. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  33402. // The ID of the egress-only Internet gateway.
  33403. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  33404. }
  33405. // String returns the string representation
  33406. func (s EgressOnlyInternetGateway) String() string {
  33407. return awsutil.Prettify(s)
  33408. }
  33409. // GoString returns the string representation
  33410. func (s EgressOnlyInternetGateway) GoString() string {
  33411. return s.String()
  33412. }
  33413. // SetAttachments sets the Attachments field's value.
  33414. func (s *EgressOnlyInternetGateway) SetAttachments(v []*InternetGatewayAttachment) *EgressOnlyInternetGateway {
  33415. s.Attachments = v
  33416. return s
  33417. }
  33418. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  33419. func (s *EgressOnlyInternetGateway) SetEgressOnlyInternetGatewayId(v string) *EgressOnlyInternetGateway {
  33420. s.EgressOnlyInternetGatewayId = &v
  33421. return s
  33422. }
  33423. // Contains the parameters for EnableVgwRoutePropagation.
  33424. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagationRequest
  33425. type EnableVgwRoutePropagationInput struct {
  33426. _ struct{} `type:"structure"`
  33427. // The ID of the virtual private gateway.
  33428. //
  33429. // GatewayId is a required field
  33430. GatewayId *string `type:"string" required:"true"`
  33431. // The ID of the route table.
  33432. //
  33433. // RouteTableId is a required field
  33434. RouteTableId *string `type:"string" required:"true"`
  33435. }
  33436. // String returns the string representation
  33437. func (s EnableVgwRoutePropagationInput) String() string {
  33438. return awsutil.Prettify(s)
  33439. }
  33440. // GoString returns the string representation
  33441. func (s EnableVgwRoutePropagationInput) GoString() string {
  33442. return s.String()
  33443. }
  33444. // Validate inspects the fields of the type to determine if they are valid.
  33445. func (s *EnableVgwRoutePropagationInput) Validate() error {
  33446. invalidParams := request.ErrInvalidParams{Context: "EnableVgwRoutePropagationInput"}
  33447. if s.GatewayId == nil {
  33448. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  33449. }
  33450. if s.RouteTableId == nil {
  33451. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  33452. }
  33453. if invalidParams.Len() > 0 {
  33454. return invalidParams
  33455. }
  33456. return nil
  33457. }
  33458. // SetGatewayId sets the GatewayId field's value.
  33459. func (s *EnableVgwRoutePropagationInput) SetGatewayId(v string) *EnableVgwRoutePropagationInput {
  33460. s.GatewayId = &v
  33461. return s
  33462. }
  33463. // SetRouteTableId sets the RouteTableId field's value.
  33464. func (s *EnableVgwRoutePropagationInput) SetRouteTableId(v string) *EnableVgwRoutePropagationInput {
  33465. s.RouteTableId = &v
  33466. return s
  33467. }
  33468. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagationOutput
  33469. type EnableVgwRoutePropagationOutput struct {
  33470. _ struct{} `type:"structure"`
  33471. }
  33472. // String returns the string representation
  33473. func (s EnableVgwRoutePropagationOutput) String() string {
  33474. return awsutil.Prettify(s)
  33475. }
  33476. // GoString returns the string representation
  33477. func (s EnableVgwRoutePropagationOutput) GoString() string {
  33478. return s.String()
  33479. }
  33480. // Contains the parameters for EnableVolumeIO.
  33481. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIORequest
  33482. type EnableVolumeIOInput struct {
  33483. _ struct{} `type:"structure"`
  33484. // Checks whether you have the required permissions for the action, without
  33485. // actually making the request, and provides an error response. If you have
  33486. // the required permissions, the error response is DryRunOperation. Otherwise,
  33487. // it is UnauthorizedOperation.
  33488. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33489. // The ID of the volume.
  33490. //
  33491. // VolumeId is a required field
  33492. VolumeId *string `locationName:"volumeId" type:"string" required:"true"`
  33493. }
  33494. // String returns the string representation
  33495. func (s EnableVolumeIOInput) String() string {
  33496. return awsutil.Prettify(s)
  33497. }
  33498. // GoString returns the string representation
  33499. func (s EnableVolumeIOInput) GoString() string {
  33500. return s.String()
  33501. }
  33502. // Validate inspects the fields of the type to determine if they are valid.
  33503. func (s *EnableVolumeIOInput) Validate() error {
  33504. invalidParams := request.ErrInvalidParams{Context: "EnableVolumeIOInput"}
  33505. if s.VolumeId == nil {
  33506. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  33507. }
  33508. if invalidParams.Len() > 0 {
  33509. return invalidParams
  33510. }
  33511. return nil
  33512. }
  33513. // SetDryRun sets the DryRun field's value.
  33514. func (s *EnableVolumeIOInput) SetDryRun(v bool) *EnableVolumeIOInput {
  33515. s.DryRun = &v
  33516. return s
  33517. }
  33518. // SetVolumeId sets the VolumeId field's value.
  33519. func (s *EnableVolumeIOInput) SetVolumeId(v string) *EnableVolumeIOInput {
  33520. s.VolumeId = &v
  33521. return s
  33522. }
  33523. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIOOutput
  33524. type EnableVolumeIOOutput struct {
  33525. _ struct{} `type:"structure"`
  33526. }
  33527. // String returns the string representation
  33528. func (s EnableVolumeIOOutput) String() string {
  33529. return awsutil.Prettify(s)
  33530. }
  33531. // GoString returns the string representation
  33532. func (s EnableVolumeIOOutput) GoString() string {
  33533. return s.String()
  33534. }
  33535. // Contains the parameters for EnableVpcClassicLinkDnsSupport.
  33536. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupportRequest
  33537. type EnableVpcClassicLinkDnsSupportInput struct {
  33538. _ struct{} `type:"structure"`
  33539. // The ID of the VPC.
  33540. VpcId *string `type:"string"`
  33541. }
  33542. // String returns the string representation
  33543. func (s EnableVpcClassicLinkDnsSupportInput) String() string {
  33544. return awsutil.Prettify(s)
  33545. }
  33546. // GoString returns the string representation
  33547. func (s EnableVpcClassicLinkDnsSupportInput) GoString() string {
  33548. return s.String()
  33549. }
  33550. // SetVpcId sets the VpcId field's value.
  33551. func (s *EnableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *EnableVpcClassicLinkDnsSupportInput {
  33552. s.VpcId = &v
  33553. return s
  33554. }
  33555. // Contains the output of EnableVpcClassicLinkDnsSupport.
  33556. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupportResult
  33557. type EnableVpcClassicLinkDnsSupportOutput struct {
  33558. _ struct{} `type:"structure"`
  33559. // Returns true if the request succeeds; otherwise, it returns an error.
  33560. Return *bool `locationName:"return" type:"boolean"`
  33561. }
  33562. // String returns the string representation
  33563. func (s EnableVpcClassicLinkDnsSupportOutput) String() string {
  33564. return awsutil.Prettify(s)
  33565. }
  33566. // GoString returns the string representation
  33567. func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string {
  33568. return s.String()
  33569. }
  33570. // SetReturn sets the Return field's value.
  33571. func (s *EnableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *EnableVpcClassicLinkDnsSupportOutput {
  33572. s.Return = &v
  33573. return s
  33574. }
  33575. // Contains the parameters for EnableVpcClassicLink.
  33576. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkRequest
  33577. type EnableVpcClassicLinkInput struct {
  33578. _ struct{} `type:"structure"`
  33579. // Checks whether you have the required permissions for the action, without
  33580. // actually making the request, and provides an error response. If you have
  33581. // the required permissions, the error response is DryRunOperation. Otherwise,
  33582. // it is UnauthorizedOperation.
  33583. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33584. // The ID of the VPC.
  33585. //
  33586. // VpcId is a required field
  33587. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  33588. }
  33589. // String returns the string representation
  33590. func (s EnableVpcClassicLinkInput) String() string {
  33591. return awsutil.Prettify(s)
  33592. }
  33593. // GoString returns the string representation
  33594. func (s EnableVpcClassicLinkInput) GoString() string {
  33595. return s.String()
  33596. }
  33597. // Validate inspects the fields of the type to determine if they are valid.
  33598. func (s *EnableVpcClassicLinkInput) Validate() error {
  33599. invalidParams := request.ErrInvalidParams{Context: "EnableVpcClassicLinkInput"}
  33600. if s.VpcId == nil {
  33601. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  33602. }
  33603. if invalidParams.Len() > 0 {
  33604. return invalidParams
  33605. }
  33606. return nil
  33607. }
  33608. // SetDryRun sets the DryRun field's value.
  33609. func (s *EnableVpcClassicLinkInput) SetDryRun(v bool) *EnableVpcClassicLinkInput {
  33610. s.DryRun = &v
  33611. return s
  33612. }
  33613. // SetVpcId sets the VpcId field's value.
  33614. func (s *EnableVpcClassicLinkInput) SetVpcId(v string) *EnableVpcClassicLinkInput {
  33615. s.VpcId = &v
  33616. return s
  33617. }
  33618. // Contains the output of EnableVpcClassicLink.
  33619. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkResult
  33620. type EnableVpcClassicLinkOutput struct {
  33621. _ struct{} `type:"structure"`
  33622. // Returns true if the request succeeds; otherwise, it returns an error.
  33623. Return *bool `locationName:"return" type:"boolean"`
  33624. }
  33625. // String returns the string representation
  33626. func (s EnableVpcClassicLinkOutput) String() string {
  33627. return awsutil.Prettify(s)
  33628. }
  33629. // GoString returns the string representation
  33630. func (s EnableVpcClassicLinkOutput) GoString() string {
  33631. return s.String()
  33632. }
  33633. // SetReturn sets the Return field's value.
  33634. func (s *EnableVpcClassicLinkOutput) SetReturn(v bool) *EnableVpcClassicLinkOutput {
  33635. s.Return = &v
  33636. return s
  33637. }
  33638. // Describes a Spot fleet event.
  33639. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EventInformation
  33640. type EventInformation struct {
  33641. _ struct{} `type:"structure"`
  33642. // The description of the event.
  33643. EventDescription *string `locationName:"eventDescription" type:"string"`
  33644. // The event.
  33645. //
  33646. // The following are the error events.
  33647. //
  33648. // * iamFleetRoleInvalid - The Spot fleet did not have the required permissions
  33649. // either to launch or terminate an instance.
  33650. //
  33651. // * launchSpecTemporarilyBlacklisted - The configuration is not valid and
  33652. // several attempts to launch instances have failed. For more information,
  33653. // see the description of the event.
  33654. //
  33655. // * spotFleetRequestConfigurationInvalid - The configuration is not valid.
  33656. // For more information, see the description of the event.
  33657. //
  33658. // * spotInstanceCountLimitExceeded - You've reached the limit on the number
  33659. // of Spot instances that you can launch.
  33660. //
  33661. // The following are the fleetRequestChange events.
  33662. //
  33663. // * active - The Spot fleet has been validated and Amazon EC2 is attempting
  33664. // to maintain the target number of running Spot instances.
  33665. //
  33666. // * cancelled - The Spot fleet is canceled and has no running Spot instances.
  33667. // The Spot fleet will be deleted two days after its instances were terminated.
  33668. //
  33669. // * cancelled_running - The Spot fleet is canceled and will not launch additional
  33670. // Spot instances, but its existing Spot instances continue to run until
  33671. // they are interrupted or terminated.
  33672. //
  33673. // * cancelled_terminating - The Spot fleet is canceled and its Spot instances
  33674. // are terminating.
  33675. //
  33676. // * expired - The Spot fleet request has expired. A subsequent event indicates
  33677. // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration
  33678. // set.
  33679. //
  33680. // * modify_in_progress - A request to modify the Spot fleet request was
  33681. // accepted and is in progress.
  33682. //
  33683. // * modify_successful - The Spot fleet request was modified.
  33684. //
  33685. // * price_update - The bid price for a launch configuration was adjusted
  33686. // because it was too high. This change is permanent.
  33687. //
  33688. // * submitted - The Spot fleet request is being evaluated and Amazon EC2
  33689. // is preparing to launch the target number of Spot instances.
  33690. //
  33691. // The following are the instanceChange events.
  33692. //
  33693. // * launched - A bid was fulfilled and a new instance was launched.
  33694. //
  33695. // * terminated - An instance was terminated by the user.
  33696. EventSubType *string `locationName:"eventSubType" type:"string"`
  33697. // The ID of the instance. This information is available only for instanceChange
  33698. // events.
  33699. InstanceId *string `locationName:"instanceId" type:"string"`
  33700. }
  33701. // String returns the string representation
  33702. func (s EventInformation) String() string {
  33703. return awsutil.Prettify(s)
  33704. }
  33705. // GoString returns the string representation
  33706. func (s EventInformation) GoString() string {
  33707. return s.String()
  33708. }
  33709. // SetEventDescription sets the EventDescription field's value.
  33710. func (s *EventInformation) SetEventDescription(v string) *EventInformation {
  33711. s.EventDescription = &v
  33712. return s
  33713. }
  33714. // SetEventSubType sets the EventSubType field's value.
  33715. func (s *EventInformation) SetEventSubType(v string) *EventInformation {
  33716. s.EventSubType = &v
  33717. return s
  33718. }
  33719. // SetInstanceId sets the InstanceId field's value.
  33720. func (s *EventInformation) SetInstanceId(v string) *EventInformation {
  33721. s.InstanceId = &v
  33722. return s
  33723. }
  33724. // Describes an instance export task.
  33725. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTask
  33726. type ExportTask struct {
  33727. _ struct{} `type:"structure"`
  33728. // A description of the resource being exported.
  33729. Description *string `locationName:"description" type:"string"`
  33730. // The ID of the export task.
  33731. ExportTaskId *string `locationName:"exportTaskId" type:"string"`
  33732. // Information about the export task.
  33733. ExportToS3Task *ExportToS3Task `locationName:"exportToS3" type:"structure"`
  33734. // Information about the instance to export.
  33735. InstanceExportDetails *InstanceExportDetails `locationName:"instanceExport" type:"structure"`
  33736. // The state of the export task.
  33737. State *string `locationName:"state" type:"string" enum:"ExportTaskState"`
  33738. // The status message related to the export task.
  33739. StatusMessage *string `locationName:"statusMessage" type:"string"`
  33740. }
  33741. // String returns the string representation
  33742. func (s ExportTask) String() string {
  33743. return awsutil.Prettify(s)
  33744. }
  33745. // GoString returns the string representation
  33746. func (s ExportTask) GoString() string {
  33747. return s.String()
  33748. }
  33749. // SetDescription sets the Description field's value.
  33750. func (s *ExportTask) SetDescription(v string) *ExportTask {
  33751. s.Description = &v
  33752. return s
  33753. }
  33754. // SetExportTaskId sets the ExportTaskId field's value.
  33755. func (s *ExportTask) SetExportTaskId(v string) *ExportTask {
  33756. s.ExportTaskId = &v
  33757. return s
  33758. }
  33759. // SetExportToS3Task sets the ExportToS3Task field's value.
  33760. func (s *ExportTask) SetExportToS3Task(v *ExportToS3Task) *ExportTask {
  33761. s.ExportToS3Task = v
  33762. return s
  33763. }
  33764. // SetInstanceExportDetails sets the InstanceExportDetails field's value.
  33765. func (s *ExportTask) SetInstanceExportDetails(v *InstanceExportDetails) *ExportTask {
  33766. s.InstanceExportDetails = v
  33767. return s
  33768. }
  33769. // SetState sets the State field's value.
  33770. func (s *ExportTask) SetState(v string) *ExportTask {
  33771. s.State = &v
  33772. return s
  33773. }
  33774. // SetStatusMessage sets the StatusMessage field's value.
  33775. func (s *ExportTask) SetStatusMessage(v string) *ExportTask {
  33776. s.StatusMessage = &v
  33777. return s
  33778. }
  33779. // Describes the format and location for an instance export task.
  33780. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportToS3Task
  33781. type ExportToS3Task struct {
  33782. _ struct{} `type:"structure"`
  33783. // The container format used to combine disk images with metadata (such as OVF).
  33784. // If absent, only the disk image is exported.
  33785. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  33786. // The format for the exported image.
  33787. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  33788. // The S3 bucket for the destination image. The destination bucket must exist
  33789. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  33790. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  33791. // The encryption key for your S3 bucket.
  33792. S3Key *string `locationName:"s3Key" type:"string"`
  33793. }
  33794. // String returns the string representation
  33795. func (s ExportToS3Task) String() string {
  33796. return awsutil.Prettify(s)
  33797. }
  33798. // GoString returns the string representation
  33799. func (s ExportToS3Task) GoString() string {
  33800. return s.String()
  33801. }
  33802. // SetContainerFormat sets the ContainerFormat field's value.
  33803. func (s *ExportToS3Task) SetContainerFormat(v string) *ExportToS3Task {
  33804. s.ContainerFormat = &v
  33805. return s
  33806. }
  33807. // SetDiskImageFormat sets the DiskImageFormat field's value.
  33808. func (s *ExportToS3Task) SetDiskImageFormat(v string) *ExportToS3Task {
  33809. s.DiskImageFormat = &v
  33810. return s
  33811. }
  33812. // SetS3Bucket sets the S3Bucket field's value.
  33813. func (s *ExportToS3Task) SetS3Bucket(v string) *ExportToS3Task {
  33814. s.S3Bucket = &v
  33815. return s
  33816. }
  33817. // SetS3Key sets the S3Key field's value.
  33818. func (s *ExportToS3Task) SetS3Key(v string) *ExportToS3Task {
  33819. s.S3Key = &v
  33820. return s
  33821. }
  33822. // Describes an instance export task.
  33823. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportToS3TaskSpecification
  33824. type ExportToS3TaskSpecification struct {
  33825. _ struct{} `type:"structure"`
  33826. // The container format used to combine disk images with metadata (such as OVF).
  33827. // If absent, only the disk image is exported.
  33828. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  33829. // The format for the exported image.
  33830. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  33831. // The S3 bucket for the destination image. The destination bucket must exist
  33832. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  33833. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  33834. // The image is written to a single object in the S3 bucket at the S3 key s3prefix
  33835. // + exportTaskId + '.' + diskImageFormat.
  33836. S3Prefix *string `locationName:"s3Prefix" type:"string"`
  33837. }
  33838. // String returns the string representation
  33839. func (s ExportToS3TaskSpecification) String() string {
  33840. return awsutil.Prettify(s)
  33841. }
  33842. // GoString returns the string representation
  33843. func (s ExportToS3TaskSpecification) GoString() string {
  33844. return s.String()
  33845. }
  33846. // SetContainerFormat sets the ContainerFormat field's value.
  33847. func (s *ExportToS3TaskSpecification) SetContainerFormat(v string) *ExportToS3TaskSpecification {
  33848. s.ContainerFormat = &v
  33849. return s
  33850. }
  33851. // SetDiskImageFormat sets the DiskImageFormat field's value.
  33852. func (s *ExportToS3TaskSpecification) SetDiskImageFormat(v string) *ExportToS3TaskSpecification {
  33853. s.DiskImageFormat = &v
  33854. return s
  33855. }
  33856. // SetS3Bucket sets the S3Bucket field's value.
  33857. func (s *ExportToS3TaskSpecification) SetS3Bucket(v string) *ExportToS3TaskSpecification {
  33858. s.S3Bucket = &v
  33859. return s
  33860. }
  33861. // SetS3Prefix sets the S3Prefix field's value.
  33862. func (s *ExportToS3TaskSpecification) SetS3Prefix(v string) *ExportToS3TaskSpecification {
  33863. s.S3Prefix = &v
  33864. return s
  33865. }
  33866. // A filter name and value pair that is used to return a more specific list
  33867. // of results. Filters can be used to match a set of resources by various criteria,
  33868. // such as tags, attributes, or IDs.
  33869. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Filter
  33870. type Filter struct {
  33871. _ struct{} `type:"structure"`
  33872. // The name of the filter. Filter names are case-sensitive.
  33873. Name *string `type:"string"`
  33874. // One or more filter values. Filter values are case-sensitive.
  33875. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  33876. }
  33877. // String returns the string representation
  33878. func (s Filter) String() string {
  33879. return awsutil.Prettify(s)
  33880. }
  33881. // GoString returns the string representation
  33882. func (s Filter) GoString() string {
  33883. return s.String()
  33884. }
  33885. // SetName sets the Name field's value.
  33886. func (s *Filter) SetName(v string) *Filter {
  33887. s.Name = &v
  33888. return s
  33889. }
  33890. // SetValues sets the Values field's value.
  33891. func (s *Filter) SetValues(v []*string) *Filter {
  33892. s.Values = v
  33893. return s
  33894. }
  33895. // Describes a flow log.
  33896. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FlowLog
  33897. type FlowLog struct {
  33898. _ struct{} `type:"structure"`
  33899. // The date and time the flow log was created.
  33900. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
  33901. // Information about the error that occurred. Rate limited indicates that CloudWatch
  33902. // logs throttling has been applied for one or more network interfaces, or that
  33903. // you've reached the limit on the number of CloudWatch Logs log groups that
  33904. // you can create. Access error indicates that the IAM role associated with
  33905. // the flow log does not have sufficient permissions to publish to CloudWatch
  33906. // Logs. Unknown error indicates an internal error.
  33907. DeliverLogsErrorMessage *string `locationName:"deliverLogsErrorMessage" type:"string"`
  33908. // The ARN of the IAM role that posts logs to CloudWatch Logs.
  33909. DeliverLogsPermissionArn *string `locationName:"deliverLogsPermissionArn" type:"string"`
  33910. // The status of the logs delivery (SUCCESS | FAILED).
  33911. DeliverLogsStatus *string `locationName:"deliverLogsStatus" type:"string"`
  33912. // The flow log ID.
  33913. FlowLogId *string `locationName:"flowLogId" type:"string"`
  33914. // The status of the flow log (ACTIVE).
  33915. FlowLogStatus *string `locationName:"flowLogStatus" type:"string"`
  33916. // The name of the flow log group.
  33917. LogGroupName *string `locationName:"logGroupName" type:"string"`
  33918. // The ID of the resource on which the flow log was created.
  33919. ResourceId *string `locationName:"resourceId" type:"string"`
  33920. // The type of traffic captured for the flow log.
  33921. TrafficType *string `locationName:"trafficType" type:"string" enum:"TrafficType"`
  33922. }
  33923. // String returns the string representation
  33924. func (s FlowLog) String() string {
  33925. return awsutil.Prettify(s)
  33926. }
  33927. // GoString returns the string representation
  33928. func (s FlowLog) GoString() string {
  33929. return s.String()
  33930. }
  33931. // SetCreationTime sets the CreationTime field's value.
  33932. func (s *FlowLog) SetCreationTime(v time.Time) *FlowLog {
  33933. s.CreationTime = &v
  33934. return s
  33935. }
  33936. // SetDeliverLogsErrorMessage sets the DeliverLogsErrorMessage field's value.
  33937. func (s *FlowLog) SetDeliverLogsErrorMessage(v string) *FlowLog {
  33938. s.DeliverLogsErrorMessage = &v
  33939. return s
  33940. }
  33941. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  33942. func (s *FlowLog) SetDeliverLogsPermissionArn(v string) *FlowLog {
  33943. s.DeliverLogsPermissionArn = &v
  33944. return s
  33945. }
  33946. // SetDeliverLogsStatus sets the DeliverLogsStatus field's value.
  33947. func (s *FlowLog) SetDeliverLogsStatus(v string) *FlowLog {
  33948. s.DeliverLogsStatus = &v
  33949. return s
  33950. }
  33951. // SetFlowLogId sets the FlowLogId field's value.
  33952. func (s *FlowLog) SetFlowLogId(v string) *FlowLog {
  33953. s.FlowLogId = &v
  33954. return s
  33955. }
  33956. // SetFlowLogStatus sets the FlowLogStatus field's value.
  33957. func (s *FlowLog) SetFlowLogStatus(v string) *FlowLog {
  33958. s.FlowLogStatus = &v
  33959. return s
  33960. }
  33961. // SetLogGroupName sets the LogGroupName field's value.
  33962. func (s *FlowLog) SetLogGroupName(v string) *FlowLog {
  33963. s.LogGroupName = &v
  33964. return s
  33965. }
  33966. // SetResourceId sets the ResourceId field's value.
  33967. func (s *FlowLog) SetResourceId(v string) *FlowLog {
  33968. s.ResourceId = &v
  33969. return s
  33970. }
  33971. // SetTrafficType sets the TrafficType field's value.
  33972. func (s *FlowLog) SetTrafficType(v string) *FlowLog {
  33973. s.TrafficType = &v
  33974. return s
  33975. }
  33976. // Describes an Amazon FPGA image (AFI).
  33977. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FpgaImage
  33978. type FpgaImage struct {
  33979. _ struct{} `type:"structure"`
  33980. // The date and time the AFI was created.
  33981. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  33982. // The description of the AFI.
  33983. Description *string `locationName:"description" type:"string"`
  33984. // The global FPGA image identifier (AGFI ID).
  33985. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  33986. // The FPGA image identifier (AFI ID).
  33987. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  33988. // The name of the AFI.
  33989. Name *string `locationName:"name" type:"string"`
  33990. // The alias of the AFI owner. Possible values include self, amazon, and aws-marketplace.
  33991. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  33992. // The AWS account ID of the AFI owner.
  33993. OwnerId *string `locationName:"ownerId" type:"string"`
  33994. // Information about the PCI bus.
  33995. PciId *PciId `locationName:"pciId" type:"structure"`
  33996. // The product codes for the AFI.
  33997. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  33998. // The version of the AWS Shell that was used to create the bitstream.
  33999. ShellVersion *string `locationName:"shellVersion" type:"string"`
  34000. // Information about the state of the AFI.
  34001. State *FpgaImageState `locationName:"state" type:"structure"`
  34002. // Any tags assigned to the AFI.
  34003. Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"`
  34004. // The time of the most recent update to the AFI.
  34005. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  34006. }
  34007. // String returns the string representation
  34008. func (s FpgaImage) String() string {
  34009. return awsutil.Prettify(s)
  34010. }
  34011. // GoString returns the string representation
  34012. func (s FpgaImage) GoString() string {
  34013. return s.String()
  34014. }
  34015. // SetCreateTime sets the CreateTime field's value.
  34016. func (s *FpgaImage) SetCreateTime(v time.Time) *FpgaImage {
  34017. s.CreateTime = &v
  34018. return s
  34019. }
  34020. // SetDescription sets the Description field's value.
  34021. func (s *FpgaImage) SetDescription(v string) *FpgaImage {
  34022. s.Description = &v
  34023. return s
  34024. }
  34025. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  34026. func (s *FpgaImage) SetFpgaImageGlobalId(v string) *FpgaImage {
  34027. s.FpgaImageGlobalId = &v
  34028. return s
  34029. }
  34030. // SetFpgaImageId sets the FpgaImageId field's value.
  34031. func (s *FpgaImage) SetFpgaImageId(v string) *FpgaImage {
  34032. s.FpgaImageId = &v
  34033. return s
  34034. }
  34035. // SetName sets the Name field's value.
  34036. func (s *FpgaImage) SetName(v string) *FpgaImage {
  34037. s.Name = &v
  34038. return s
  34039. }
  34040. // SetOwnerAlias sets the OwnerAlias field's value.
  34041. func (s *FpgaImage) SetOwnerAlias(v string) *FpgaImage {
  34042. s.OwnerAlias = &v
  34043. return s
  34044. }
  34045. // SetOwnerId sets the OwnerId field's value.
  34046. func (s *FpgaImage) SetOwnerId(v string) *FpgaImage {
  34047. s.OwnerId = &v
  34048. return s
  34049. }
  34050. // SetPciId sets the PciId field's value.
  34051. func (s *FpgaImage) SetPciId(v *PciId) *FpgaImage {
  34052. s.PciId = v
  34053. return s
  34054. }
  34055. // SetProductCodes sets the ProductCodes field's value.
  34056. func (s *FpgaImage) SetProductCodes(v []*ProductCode) *FpgaImage {
  34057. s.ProductCodes = v
  34058. return s
  34059. }
  34060. // SetShellVersion sets the ShellVersion field's value.
  34061. func (s *FpgaImage) SetShellVersion(v string) *FpgaImage {
  34062. s.ShellVersion = &v
  34063. return s
  34064. }
  34065. // SetState sets the State field's value.
  34066. func (s *FpgaImage) SetState(v *FpgaImageState) *FpgaImage {
  34067. s.State = v
  34068. return s
  34069. }
  34070. // SetTags sets the Tags field's value.
  34071. func (s *FpgaImage) SetTags(v []*Tag) *FpgaImage {
  34072. s.Tags = v
  34073. return s
  34074. }
  34075. // SetUpdateTime sets the UpdateTime field's value.
  34076. func (s *FpgaImage) SetUpdateTime(v time.Time) *FpgaImage {
  34077. s.UpdateTime = &v
  34078. return s
  34079. }
  34080. // Describes the state of the bitstream generation process for an Amazon FPGA
  34081. // image (AFI).
  34082. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FpgaImageState
  34083. type FpgaImageState struct {
  34084. _ struct{} `type:"structure"`
  34085. // The state. The following are the possible values:
  34086. //
  34087. // * pending - AFI bitstream generation is in progress.
  34088. //
  34089. // * available - The AFI is available for use.
  34090. //
  34091. // * failed - AFI bitstream generation failed.
  34092. //
  34093. // * unavailable - The AFI is no longer available for use.
  34094. Code *string `locationName:"code" type:"string" enum:"FpgaImageStateCode"`
  34095. // If the state is failed, this is the error message.
  34096. Message *string `locationName:"message" type:"string"`
  34097. }
  34098. // String returns the string representation
  34099. func (s FpgaImageState) String() string {
  34100. return awsutil.Prettify(s)
  34101. }
  34102. // GoString returns the string representation
  34103. func (s FpgaImageState) GoString() string {
  34104. return s.String()
  34105. }
  34106. // SetCode sets the Code field's value.
  34107. func (s *FpgaImageState) SetCode(v string) *FpgaImageState {
  34108. s.Code = &v
  34109. return s
  34110. }
  34111. // SetMessage sets the Message field's value.
  34112. func (s *FpgaImageState) SetMessage(v string) *FpgaImageState {
  34113. s.Message = &v
  34114. return s
  34115. }
  34116. // Contains the parameters for GetConsoleOutput.
  34117. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutputRequest
  34118. type GetConsoleOutputInput struct {
  34119. _ struct{} `type:"structure"`
  34120. // Checks whether you have the required permissions for the action, without
  34121. // actually making the request, and provides an error response. If you have
  34122. // the required permissions, the error response is DryRunOperation. Otherwise,
  34123. // it is UnauthorizedOperation.
  34124. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34125. // The ID of the instance.
  34126. //
  34127. // InstanceId is a required field
  34128. InstanceId *string `type:"string" required:"true"`
  34129. }
  34130. // String returns the string representation
  34131. func (s GetConsoleOutputInput) String() string {
  34132. return awsutil.Prettify(s)
  34133. }
  34134. // GoString returns the string representation
  34135. func (s GetConsoleOutputInput) GoString() string {
  34136. return s.String()
  34137. }
  34138. // Validate inspects the fields of the type to determine if they are valid.
  34139. func (s *GetConsoleOutputInput) Validate() error {
  34140. invalidParams := request.ErrInvalidParams{Context: "GetConsoleOutputInput"}
  34141. if s.InstanceId == nil {
  34142. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  34143. }
  34144. if invalidParams.Len() > 0 {
  34145. return invalidParams
  34146. }
  34147. return nil
  34148. }
  34149. // SetDryRun sets the DryRun field's value.
  34150. func (s *GetConsoleOutputInput) SetDryRun(v bool) *GetConsoleOutputInput {
  34151. s.DryRun = &v
  34152. return s
  34153. }
  34154. // SetInstanceId sets the InstanceId field's value.
  34155. func (s *GetConsoleOutputInput) SetInstanceId(v string) *GetConsoleOutputInput {
  34156. s.InstanceId = &v
  34157. return s
  34158. }
  34159. // Contains the output of GetConsoleOutput.
  34160. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutputResult
  34161. type GetConsoleOutputOutput struct {
  34162. _ struct{} `type:"structure"`
  34163. // The ID of the instance.
  34164. InstanceId *string `locationName:"instanceId" type:"string"`
  34165. // The console output, Base64-encoded. If using a command line tool, the tool
  34166. // decodes the output for you.
  34167. Output *string `locationName:"output" type:"string"`
  34168. // The time the output was last updated.
  34169. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  34170. }
  34171. // String returns the string representation
  34172. func (s GetConsoleOutputOutput) String() string {
  34173. return awsutil.Prettify(s)
  34174. }
  34175. // GoString returns the string representation
  34176. func (s GetConsoleOutputOutput) GoString() string {
  34177. return s.String()
  34178. }
  34179. // SetInstanceId sets the InstanceId field's value.
  34180. func (s *GetConsoleOutputOutput) SetInstanceId(v string) *GetConsoleOutputOutput {
  34181. s.InstanceId = &v
  34182. return s
  34183. }
  34184. // SetOutput sets the Output field's value.
  34185. func (s *GetConsoleOutputOutput) SetOutput(v string) *GetConsoleOutputOutput {
  34186. s.Output = &v
  34187. return s
  34188. }
  34189. // SetTimestamp sets the Timestamp field's value.
  34190. func (s *GetConsoleOutputOutput) SetTimestamp(v time.Time) *GetConsoleOutputOutput {
  34191. s.Timestamp = &v
  34192. return s
  34193. }
  34194. // Contains the parameters for the request.
  34195. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshotRequest
  34196. type GetConsoleScreenshotInput struct {
  34197. _ struct{} `type:"structure"`
  34198. // Checks whether you have the required permissions for the action, without
  34199. // actually making the request, and provides an error response. If you have
  34200. // the required permissions, the error response is DryRunOperation. Otherwise,
  34201. // it is UnauthorizedOperation.
  34202. DryRun *bool `type:"boolean"`
  34203. // The ID of the instance.
  34204. //
  34205. // InstanceId is a required field
  34206. InstanceId *string `type:"string" required:"true"`
  34207. // When set to true, acts as keystroke input and wakes up an instance that's
  34208. // in standby or "sleep" mode.
  34209. WakeUp *bool `type:"boolean"`
  34210. }
  34211. // String returns the string representation
  34212. func (s GetConsoleScreenshotInput) String() string {
  34213. return awsutil.Prettify(s)
  34214. }
  34215. // GoString returns the string representation
  34216. func (s GetConsoleScreenshotInput) GoString() string {
  34217. return s.String()
  34218. }
  34219. // Validate inspects the fields of the type to determine if they are valid.
  34220. func (s *GetConsoleScreenshotInput) Validate() error {
  34221. invalidParams := request.ErrInvalidParams{Context: "GetConsoleScreenshotInput"}
  34222. if s.InstanceId == nil {
  34223. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  34224. }
  34225. if invalidParams.Len() > 0 {
  34226. return invalidParams
  34227. }
  34228. return nil
  34229. }
  34230. // SetDryRun sets the DryRun field's value.
  34231. func (s *GetConsoleScreenshotInput) SetDryRun(v bool) *GetConsoleScreenshotInput {
  34232. s.DryRun = &v
  34233. return s
  34234. }
  34235. // SetInstanceId sets the InstanceId field's value.
  34236. func (s *GetConsoleScreenshotInput) SetInstanceId(v string) *GetConsoleScreenshotInput {
  34237. s.InstanceId = &v
  34238. return s
  34239. }
  34240. // SetWakeUp sets the WakeUp field's value.
  34241. func (s *GetConsoleScreenshotInput) SetWakeUp(v bool) *GetConsoleScreenshotInput {
  34242. s.WakeUp = &v
  34243. return s
  34244. }
  34245. // Contains the output of the request.
  34246. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshotResult
  34247. type GetConsoleScreenshotOutput struct {
  34248. _ struct{} `type:"structure"`
  34249. // The data that comprises the image.
  34250. ImageData *string `locationName:"imageData" type:"string"`
  34251. // The ID of the instance.
  34252. InstanceId *string `locationName:"instanceId" type:"string"`
  34253. }
  34254. // String returns the string representation
  34255. func (s GetConsoleScreenshotOutput) String() string {
  34256. return awsutil.Prettify(s)
  34257. }
  34258. // GoString returns the string representation
  34259. func (s GetConsoleScreenshotOutput) GoString() string {
  34260. return s.String()
  34261. }
  34262. // SetImageData sets the ImageData field's value.
  34263. func (s *GetConsoleScreenshotOutput) SetImageData(v string) *GetConsoleScreenshotOutput {
  34264. s.ImageData = &v
  34265. return s
  34266. }
  34267. // SetInstanceId sets the InstanceId field's value.
  34268. func (s *GetConsoleScreenshotOutput) SetInstanceId(v string) *GetConsoleScreenshotOutput {
  34269. s.InstanceId = &v
  34270. return s
  34271. }
  34272. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreviewRequest
  34273. type GetHostReservationPurchasePreviewInput struct {
  34274. _ struct{} `type:"structure"`
  34275. // The ID/s of the Dedicated Host/s that the reservation will be associated
  34276. // with.
  34277. //
  34278. // HostIdSet is a required field
  34279. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  34280. // The offering ID of the reservation.
  34281. //
  34282. // OfferingId is a required field
  34283. OfferingId *string `type:"string" required:"true"`
  34284. }
  34285. // String returns the string representation
  34286. func (s GetHostReservationPurchasePreviewInput) String() string {
  34287. return awsutil.Prettify(s)
  34288. }
  34289. // GoString returns the string representation
  34290. func (s GetHostReservationPurchasePreviewInput) GoString() string {
  34291. return s.String()
  34292. }
  34293. // Validate inspects the fields of the type to determine if they are valid.
  34294. func (s *GetHostReservationPurchasePreviewInput) Validate() error {
  34295. invalidParams := request.ErrInvalidParams{Context: "GetHostReservationPurchasePreviewInput"}
  34296. if s.HostIdSet == nil {
  34297. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  34298. }
  34299. if s.OfferingId == nil {
  34300. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  34301. }
  34302. if invalidParams.Len() > 0 {
  34303. return invalidParams
  34304. }
  34305. return nil
  34306. }
  34307. // SetHostIdSet sets the HostIdSet field's value.
  34308. func (s *GetHostReservationPurchasePreviewInput) SetHostIdSet(v []*string) *GetHostReservationPurchasePreviewInput {
  34309. s.HostIdSet = v
  34310. return s
  34311. }
  34312. // SetOfferingId sets the OfferingId field's value.
  34313. func (s *GetHostReservationPurchasePreviewInput) SetOfferingId(v string) *GetHostReservationPurchasePreviewInput {
  34314. s.OfferingId = &v
  34315. return s
  34316. }
  34317. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreviewResult
  34318. type GetHostReservationPurchasePreviewOutput struct {
  34319. _ struct{} `type:"structure"`
  34320. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  34321. // are specified. At this time, the only supported currency is USD.
  34322. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  34323. // The purchase information of the Dedicated Host Reservation and the Dedicated
  34324. // Hosts associated with it.
  34325. Purchase []*Purchase `locationName:"purchase" type:"list"`
  34326. // The potential total hourly price of the reservation per hour.
  34327. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  34328. // The potential total upfront price. This is billed immediately.
  34329. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  34330. }
  34331. // String returns the string representation
  34332. func (s GetHostReservationPurchasePreviewOutput) String() string {
  34333. return awsutil.Prettify(s)
  34334. }
  34335. // GoString returns the string representation
  34336. func (s GetHostReservationPurchasePreviewOutput) GoString() string {
  34337. return s.String()
  34338. }
  34339. // SetCurrencyCode sets the CurrencyCode field's value.
  34340. func (s *GetHostReservationPurchasePreviewOutput) SetCurrencyCode(v string) *GetHostReservationPurchasePreviewOutput {
  34341. s.CurrencyCode = &v
  34342. return s
  34343. }
  34344. // SetPurchase sets the Purchase field's value.
  34345. func (s *GetHostReservationPurchasePreviewOutput) SetPurchase(v []*Purchase) *GetHostReservationPurchasePreviewOutput {
  34346. s.Purchase = v
  34347. return s
  34348. }
  34349. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  34350. func (s *GetHostReservationPurchasePreviewOutput) SetTotalHourlyPrice(v string) *GetHostReservationPurchasePreviewOutput {
  34351. s.TotalHourlyPrice = &v
  34352. return s
  34353. }
  34354. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  34355. func (s *GetHostReservationPurchasePreviewOutput) SetTotalUpfrontPrice(v string) *GetHostReservationPurchasePreviewOutput {
  34356. s.TotalUpfrontPrice = &v
  34357. return s
  34358. }
  34359. // Contains the parameters for GetPasswordData.
  34360. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordDataRequest
  34361. type GetPasswordDataInput struct {
  34362. _ struct{} `type:"structure"`
  34363. // Checks whether you have the required permissions for the action, without
  34364. // actually making the request, and provides an error response. If you have
  34365. // the required permissions, the error response is DryRunOperation. Otherwise,
  34366. // it is UnauthorizedOperation.
  34367. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34368. // The ID of the Windows instance.
  34369. //
  34370. // InstanceId is a required field
  34371. InstanceId *string `type:"string" required:"true"`
  34372. }
  34373. // String returns the string representation
  34374. func (s GetPasswordDataInput) String() string {
  34375. return awsutil.Prettify(s)
  34376. }
  34377. // GoString returns the string representation
  34378. func (s GetPasswordDataInput) GoString() string {
  34379. return s.String()
  34380. }
  34381. // Validate inspects the fields of the type to determine if they are valid.
  34382. func (s *GetPasswordDataInput) Validate() error {
  34383. invalidParams := request.ErrInvalidParams{Context: "GetPasswordDataInput"}
  34384. if s.InstanceId == nil {
  34385. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  34386. }
  34387. if invalidParams.Len() > 0 {
  34388. return invalidParams
  34389. }
  34390. return nil
  34391. }
  34392. // SetDryRun sets the DryRun field's value.
  34393. func (s *GetPasswordDataInput) SetDryRun(v bool) *GetPasswordDataInput {
  34394. s.DryRun = &v
  34395. return s
  34396. }
  34397. // SetInstanceId sets the InstanceId field's value.
  34398. func (s *GetPasswordDataInput) SetInstanceId(v string) *GetPasswordDataInput {
  34399. s.InstanceId = &v
  34400. return s
  34401. }
  34402. // Contains the output of GetPasswordData.
  34403. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordDataResult
  34404. type GetPasswordDataOutput struct {
  34405. _ struct{} `type:"structure"`
  34406. // The ID of the Windows instance.
  34407. InstanceId *string `locationName:"instanceId" type:"string"`
  34408. // The password of the instance.
  34409. PasswordData *string `locationName:"passwordData" type:"string"`
  34410. // The time the data was last updated.
  34411. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  34412. }
  34413. // String returns the string representation
  34414. func (s GetPasswordDataOutput) String() string {
  34415. return awsutil.Prettify(s)
  34416. }
  34417. // GoString returns the string representation
  34418. func (s GetPasswordDataOutput) GoString() string {
  34419. return s.String()
  34420. }
  34421. // SetInstanceId sets the InstanceId field's value.
  34422. func (s *GetPasswordDataOutput) SetInstanceId(v string) *GetPasswordDataOutput {
  34423. s.InstanceId = &v
  34424. return s
  34425. }
  34426. // SetPasswordData sets the PasswordData field's value.
  34427. func (s *GetPasswordDataOutput) SetPasswordData(v string) *GetPasswordDataOutput {
  34428. s.PasswordData = &v
  34429. return s
  34430. }
  34431. // SetTimestamp sets the Timestamp field's value.
  34432. func (s *GetPasswordDataOutput) SetTimestamp(v time.Time) *GetPasswordDataOutput {
  34433. s.Timestamp = &v
  34434. return s
  34435. }
  34436. // Contains the parameters for GetReservedInstanceExchangeQuote.
  34437. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuoteRequest
  34438. type GetReservedInstancesExchangeQuoteInput struct {
  34439. _ struct{} `type:"structure"`
  34440. // Checks whether you have the required permissions for the action, without
  34441. // actually making the request, and provides an error response. If you have
  34442. // the required permissions, the error response is DryRunOperation. Otherwise,
  34443. // it is UnauthorizedOperation.
  34444. DryRun *bool `type:"boolean"`
  34445. // The IDs of the Convertible Reserved Instances to exchange.
  34446. //
  34447. // ReservedInstanceIds is a required field
  34448. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  34449. // The configuration requirements of the Convertible Reserved Instances to exchange
  34450. // for your current Convertible Reserved Instances.
  34451. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  34452. }
  34453. // String returns the string representation
  34454. func (s GetReservedInstancesExchangeQuoteInput) String() string {
  34455. return awsutil.Prettify(s)
  34456. }
  34457. // GoString returns the string representation
  34458. func (s GetReservedInstancesExchangeQuoteInput) GoString() string {
  34459. return s.String()
  34460. }
  34461. // Validate inspects the fields of the type to determine if they are valid.
  34462. func (s *GetReservedInstancesExchangeQuoteInput) Validate() error {
  34463. invalidParams := request.ErrInvalidParams{Context: "GetReservedInstancesExchangeQuoteInput"}
  34464. if s.ReservedInstanceIds == nil {
  34465. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  34466. }
  34467. if s.TargetConfigurations != nil {
  34468. for i, v := range s.TargetConfigurations {
  34469. if v == nil {
  34470. continue
  34471. }
  34472. if err := v.Validate(); err != nil {
  34473. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  34474. }
  34475. }
  34476. }
  34477. if invalidParams.Len() > 0 {
  34478. return invalidParams
  34479. }
  34480. return nil
  34481. }
  34482. // SetDryRun sets the DryRun field's value.
  34483. func (s *GetReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *GetReservedInstancesExchangeQuoteInput {
  34484. s.DryRun = &v
  34485. return s
  34486. }
  34487. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  34488. func (s *GetReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *GetReservedInstancesExchangeQuoteInput {
  34489. s.ReservedInstanceIds = v
  34490. return s
  34491. }
  34492. // SetTargetConfigurations sets the TargetConfigurations field's value.
  34493. func (s *GetReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *GetReservedInstancesExchangeQuoteInput {
  34494. s.TargetConfigurations = v
  34495. return s
  34496. }
  34497. // Contains the output of GetReservedInstancesExchangeQuote.
  34498. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuoteResult
  34499. type GetReservedInstancesExchangeQuoteOutput struct {
  34500. _ struct{} `type:"structure"`
  34501. // The currency of the transaction.
  34502. CurrencyCode *string `locationName:"currencyCode" type:"string"`
  34503. // If true, the exchange is valid. If false, the exchange cannot be completed.
  34504. IsValidExchange *bool `locationName:"isValidExchange" type:"boolean"`
  34505. // The new end date of the reservation term.
  34506. OutputReservedInstancesWillExpireAt *time.Time `locationName:"outputReservedInstancesWillExpireAt" type:"timestamp" timestampFormat:"iso8601"`
  34507. // The total true upfront charge for the exchange.
  34508. PaymentDue *string `locationName:"paymentDue" type:"string"`
  34509. // The cost associated with the Reserved Instance.
  34510. ReservedInstanceValueRollup *ReservationValue `locationName:"reservedInstanceValueRollup" type:"structure"`
  34511. // The configuration of your Convertible Reserved Instances.
  34512. ReservedInstanceValueSet []*ReservedInstanceReservationValue `locationName:"reservedInstanceValueSet" locationNameList:"item" type:"list"`
  34513. // The cost associated with the Reserved Instance.
  34514. TargetConfigurationValueRollup *ReservationValue `locationName:"targetConfigurationValueRollup" type:"structure"`
  34515. // The values of the target Convertible Reserved Instances.
  34516. TargetConfigurationValueSet []*TargetReservationValue `locationName:"targetConfigurationValueSet" locationNameList:"item" type:"list"`
  34517. // Describes the reason why the exchange cannot be completed.
  34518. ValidationFailureReason *string `locationName:"validationFailureReason" type:"string"`
  34519. }
  34520. // String returns the string representation
  34521. func (s GetReservedInstancesExchangeQuoteOutput) String() string {
  34522. return awsutil.Prettify(s)
  34523. }
  34524. // GoString returns the string representation
  34525. func (s GetReservedInstancesExchangeQuoteOutput) GoString() string {
  34526. return s.String()
  34527. }
  34528. // SetCurrencyCode sets the CurrencyCode field's value.
  34529. func (s *GetReservedInstancesExchangeQuoteOutput) SetCurrencyCode(v string) *GetReservedInstancesExchangeQuoteOutput {
  34530. s.CurrencyCode = &v
  34531. return s
  34532. }
  34533. // SetIsValidExchange sets the IsValidExchange field's value.
  34534. func (s *GetReservedInstancesExchangeQuoteOutput) SetIsValidExchange(v bool) *GetReservedInstancesExchangeQuoteOutput {
  34535. s.IsValidExchange = &v
  34536. return s
  34537. }
  34538. // SetOutputReservedInstancesWillExpireAt sets the OutputReservedInstancesWillExpireAt field's value.
  34539. func (s *GetReservedInstancesExchangeQuoteOutput) SetOutputReservedInstancesWillExpireAt(v time.Time) *GetReservedInstancesExchangeQuoteOutput {
  34540. s.OutputReservedInstancesWillExpireAt = &v
  34541. return s
  34542. }
  34543. // SetPaymentDue sets the PaymentDue field's value.
  34544. func (s *GetReservedInstancesExchangeQuoteOutput) SetPaymentDue(v string) *GetReservedInstancesExchangeQuoteOutput {
  34545. s.PaymentDue = &v
  34546. return s
  34547. }
  34548. // SetReservedInstanceValueRollup sets the ReservedInstanceValueRollup field's value.
  34549. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  34550. s.ReservedInstanceValueRollup = v
  34551. return s
  34552. }
  34553. // SetReservedInstanceValueSet sets the ReservedInstanceValueSet field's value.
  34554. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueSet(v []*ReservedInstanceReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  34555. s.ReservedInstanceValueSet = v
  34556. return s
  34557. }
  34558. // SetTargetConfigurationValueRollup sets the TargetConfigurationValueRollup field's value.
  34559. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  34560. s.TargetConfigurationValueRollup = v
  34561. return s
  34562. }
  34563. // SetTargetConfigurationValueSet sets the TargetConfigurationValueSet field's value.
  34564. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueSet(v []*TargetReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  34565. s.TargetConfigurationValueSet = v
  34566. return s
  34567. }
  34568. // SetValidationFailureReason sets the ValidationFailureReason field's value.
  34569. func (s *GetReservedInstancesExchangeQuoteOutput) SetValidationFailureReason(v string) *GetReservedInstancesExchangeQuoteOutput {
  34570. s.ValidationFailureReason = &v
  34571. return s
  34572. }
  34573. // Describes a security group.
  34574. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GroupIdentifier
  34575. type GroupIdentifier struct {
  34576. _ struct{} `type:"structure"`
  34577. // The ID of the security group.
  34578. GroupId *string `locationName:"groupId" type:"string"`
  34579. // The name of the security group.
  34580. GroupName *string `locationName:"groupName" type:"string"`
  34581. }
  34582. // String returns the string representation
  34583. func (s GroupIdentifier) String() string {
  34584. return awsutil.Prettify(s)
  34585. }
  34586. // GoString returns the string representation
  34587. func (s GroupIdentifier) GoString() string {
  34588. return s.String()
  34589. }
  34590. // SetGroupId sets the GroupId field's value.
  34591. func (s *GroupIdentifier) SetGroupId(v string) *GroupIdentifier {
  34592. s.GroupId = &v
  34593. return s
  34594. }
  34595. // SetGroupName sets the GroupName field's value.
  34596. func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier {
  34597. s.GroupName = &v
  34598. return s
  34599. }
  34600. // Describes an event in the history of the Spot fleet request.
  34601. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HistoryRecord
  34602. type HistoryRecord struct {
  34603. _ struct{} `type:"structure"`
  34604. // Information about the event.
  34605. //
  34606. // EventInformation is a required field
  34607. EventInformation *EventInformation `locationName:"eventInformation" type:"structure" required:"true"`
  34608. // The event type.
  34609. //
  34610. // * error - Indicates an error with the Spot fleet request.
  34611. //
  34612. // * fleetRequestChange - Indicates a change in the status or configuration
  34613. // of the Spot fleet request.
  34614. //
  34615. // * instanceChange - Indicates that an instance was launched or terminated.
  34616. //
  34617. // EventType is a required field
  34618. EventType *string `locationName:"eventType" type:"string" required:"true" enum:"EventType"`
  34619. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  34620. //
  34621. // Timestamp is a required field
  34622. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  34623. }
  34624. // String returns the string representation
  34625. func (s HistoryRecord) String() string {
  34626. return awsutil.Prettify(s)
  34627. }
  34628. // GoString returns the string representation
  34629. func (s HistoryRecord) GoString() string {
  34630. return s.String()
  34631. }
  34632. // SetEventInformation sets the EventInformation field's value.
  34633. func (s *HistoryRecord) SetEventInformation(v *EventInformation) *HistoryRecord {
  34634. s.EventInformation = v
  34635. return s
  34636. }
  34637. // SetEventType sets the EventType field's value.
  34638. func (s *HistoryRecord) SetEventType(v string) *HistoryRecord {
  34639. s.EventType = &v
  34640. return s
  34641. }
  34642. // SetTimestamp sets the Timestamp field's value.
  34643. func (s *HistoryRecord) SetTimestamp(v time.Time) *HistoryRecord {
  34644. s.Timestamp = &v
  34645. return s
  34646. }
  34647. // Describes the properties of the Dedicated Host.
  34648. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Host
  34649. type Host struct {
  34650. _ struct{} `type:"structure"`
  34651. // Whether auto-placement is on or off.
  34652. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  34653. // The Availability Zone of the Dedicated Host.
  34654. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  34655. // The number of new instances that can be launched onto the Dedicated Host.
  34656. AvailableCapacity *AvailableCapacity `locationName:"availableCapacity" type:"structure"`
  34657. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  34658. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  34659. // in the Amazon Elastic Compute Cloud User Guide.
  34660. ClientToken *string `locationName:"clientToken" type:"string"`
  34661. // The ID of the Dedicated Host.
  34662. HostId *string `locationName:"hostId" type:"string"`
  34663. // The hardware specifications of the Dedicated Host.
  34664. HostProperties *HostProperties `locationName:"hostProperties" type:"structure"`
  34665. // The reservation ID of the Dedicated Host. This returns a null response if
  34666. // the Dedicated Host doesn't have an associated reservation.
  34667. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  34668. // The IDs and instance type that are currently running on the Dedicated Host.
  34669. Instances []*HostInstance `locationName:"instances" locationNameList:"item" type:"list"`
  34670. // The Dedicated Host's state.
  34671. State *string `locationName:"state" type:"string" enum:"AllocationState"`
  34672. }
  34673. // String returns the string representation
  34674. func (s Host) String() string {
  34675. return awsutil.Prettify(s)
  34676. }
  34677. // GoString returns the string representation
  34678. func (s Host) GoString() string {
  34679. return s.String()
  34680. }
  34681. // SetAutoPlacement sets the AutoPlacement field's value.
  34682. func (s *Host) SetAutoPlacement(v string) *Host {
  34683. s.AutoPlacement = &v
  34684. return s
  34685. }
  34686. // SetAvailabilityZone sets the AvailabilityZone field's value.
  34687. func (s *Host) SetAvailabilityZone(v string) *Host {
  34688. s.AvailabilityZone = &v
  34689. return s
  34690. }
  34691. // SetAvailableCapacity sets the AvailableCapacity field's value.
  34692. func (s *Host) SetAvailableCapacity(v *AvailableCapacity) *Host {
  34693. s.AvailableCapacity = v
  34694. return s
  34695. }
  34696. // SetClientToken sets the ClientToken field's value.
  34697. func (s *Host) SetClientToken(v string) *Host {
  34698. s.ClientToken = &v
  34699. return s
  34700. }
  34701. // SetHostId sets the HostId field's value.
  34702. func (s *Host) SetHostId(v string) *Host {
  34703. s.HostId = &v
  34704. return s
  34705. }
  34706. // SetHostProperties sets the HostProperties field's value.
  34707. func (s *Host) SetHostProperties(v *HostProperties) *Host {
  34708. s.HostProperties = v
  34709. return s
  34710. }
  34711. // SetHostReservationId sets the HostReservationId field's value.
  34712. func (s *Host) SetHostReservationId(v string) *Host {
  34713. s.HostReservationId = &v
  34714. return s
  34715. }
  34716. // SetInstances sets the Instances field's value.
  34717. func (s *Host) SetInstances(v []*HostInstance) *Host {
  34718. s.Instances = v
  34719. return s
  34720. }
  34721. // SetState sets the State field's value.
  34722. func (s *Host) SetState(v string) *Host {
  34723. s.State = &v
  34724. return s
  34725. }
  34726. // Describes an instance running on a Dedicated Host.
  34727. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostInstance
  34728. type HostInstance struct {
  34729. _ struct{} `type:"structure"`
  34730. // the IDs of instances that are running on the Dedicated Host.
  34731. InstanceId *string `locationName:"instanceId" type:"string"`
  34732. // The instance type size (for example, m3.medium) of the running instance.
  34733. InstanceType *string `locationName:"instanceType" type:"string"`
  34734. }
  34735. // String returns the string representation
  34736. func (s HostInstance) String() string {
  34737. return awsutil.Prettify(s)
  34738. }
  34739. // GoString returns the string representation
  34740. func (s HostInstance) GoString() string {
  34741. return s.String()
  34742. }
  34743. // SetInstanceId sets the InstanceId field's value.
  34744. func (s *HostInstance) SetInstanceId(v string) *HostInstance {
  34745. s.InstanceId = &v
  34746. return s
  34747. }
  34748. // SetInstanceType sets the InstanceType field's value.
  34749. func (s *HostInstance) SetInstanceType(v string) *HostInstance {
  34750. s.InstanceType = &v
  34751. return s
  34752. }
  34753. // Details about the Dedicated Host Reservation offering.
  34754. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostOffering
  34755. type HostOffering struct {
  34756. _ struct{} `type:"structure"`
  34757. // The currency of the offering.
  34758. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  34759. // The duration of the offering (in seconds).
  34760. Duration *int64 `locationName:"duration" type:"integer"`
  34761. // The hourly price of the offering.
  34762. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  34763. // The instance family of the offering.
  34764. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  34765. // The ID of the offering.
  34766. OfferingId *string `locationName:"offeringId" type:"string"`
  34767. // The available payment option.
  34768. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  34769. // The upfront price of the offering. Does not apply to No Upfront offerings.
  34770. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  34771. }
  34772. // String returns the string representation
  34773. func (s HostOffering) String() string {
  34774. return awsutil.Prettify(s)
  34775. }
  34776. // GoString returns the string representation
  34777. func (s HostOffering) GoString() string {
  34778. return s.String()
  34779. }
  34780. // SetCurrencyCode sets the CurrencyCode field's value.
  34781. func (s *HostOffering) SetCurrencyCode(v string) *HostOffering {
  34782. s.CurrencyCode = &v
  34783. return s
  34784. }
  34785. // SetDuration sets the Duration field's value.
  34786. func (s *HostOffering) SetDuration(v int64) *HostOffering {
  34787. s.Duration = &v
  34788. return s
  34789. }
  34790. // SetHourlyPrice sets the HourlyPrice field's value.
  34791. func (s *HostOffering) SetHourlyPrice(v string) *HostOffering {
  34792. s.HourlyPrice = &v
  34793. return s
  34794. }
  34795. // SetInstanceFamily sets the InstanceFamily field's value.
  34796. func (s *HostOffering) SetInstanceFamily(v string) *HostOffering {
  34797. s.InstanceFamily = &v
  34798. return s
  34799. }
  34800. // SetOfferingId sets the OfferingId field's value.
  34801. func (s *HostOffering) SetOfferingId(v string) *HostOffering {
  34802. s.OfferingId = &v
  34803. return s
  34804. }
  34805. // SetPaymentOption sets the PaymentOption field's value.
  34806. func (s *HostOffering) SetPaymentOption(v string) *HostOffering {
  34807. s.PaymentOption = &v
  34808. return s
  34809. }
  34810. // SetUpfrontPrice sets the UpfrontPrice field's value.
  34811. func (s *HostOffering) SetUpfrontPrice(v string) *HostOffering {
  34812. s.UpfrontPrice = &v
  34813. return s
  34814. }
  34815. // Describes properties of a Dedicated Host.
  34816. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostProperties
  34817. type HostProperties struct {
  34818. _ struct{} `type:"structure"`
  34819. // The number of cores on the Dedicated Host.
  34820. Cores *int64 `locationName:"cores" type:"integer"`
  34821. // The instance type size that the Dedicated Host supports (for example, m3.medium).
  34822. InstanceType *string `locationName:"instanceType" type:"string"`
  34823. // The number of sockets on the Dedicated Host.
  34824. Sockets *int64 `locationName:"sockets" type:"integer"`
  34825. // The number of vCPUs on the Dedicated Host.
  34826. TotalVCpus *int64 `locationName:"totalVCpus" type:"integer"`
  34827. }
  34828. // String returns the string representation
  34829. func (s HostProperties) String() string {
  34830. return awsutil.Prettify(s)
  34831. }
  34832. // GoString returns the string representation
  34833. func (s HostProperties) GoString() string {
  34834. return s.String()
  34835. }
  34836. // SetCores sets the Cores field's value.
  34837. func (s *HostProperties) SetCores(v int64) *HostProperties {
  34838. s.Cores = &v
  34839. return s
  34840. }
  34841. // SetInstanceType sets the InstanceType field's value.
  34842. func (s *HostProperties) SetInstanceType(v string) *HostProperties {
  34843. s.InstanceType = &v
  34844. return s
  34845. }
  34846. // SetSockets sets the Sockets field's value.
  34847. func (s *HostProperties) SetSockets(v int64) *HostProperties {
  34848. s.Sockets = &v
  34849. return s
  34850. }
  34851. // SetTotalVCpus sets the TotalVCpus field's value.
  34852. func (s *HostProperties) SetTotalVCpus(v int64) *HostProperties {
  34853. s.TotalVCpus = &v
  34854. return s
  34855. }
  34856. // Details about the Dedicated Host Reservation and associated Dedicated Hosts.
  34857. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostReservation
  34858. type HostReservation struct {
  34859. _ struct{} `type:"structure"`
  34860. // The number of Dedicated Hosts the reservation is associated with.
  34861. Count *int64 `locationName:"count" type:"integer"`
  34862. // The currency in which the upfrontPrice and hourlyPrice amounts are specified.
  34863. // At this time, the only supported currency is USD.
  34864. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  34865. // The length of the reservation's term, specified in seconds. Can be 31536000
  34866. // (1 year) | 94608000 (3 years).
  34867. Duration *int64 `locationName:"duration" type:"integer"`
  34868. // The date and time that the reservation ends.
  34869. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
  34870. // The IDs of the Dedicated Hosts associated with the reservation.
  34871. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  34872. // The ID of the reservation that specifies the associated Dedicated Hosts.
  34873. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  34874. // The hourly price of the reservation.
  34875. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  34876. // The instance family of the Dedicated Host Reservation. The instance family
  34877. // on the Dedicated Host must be the same in order for it to benefit from the
  34878. // reservation.
  34879. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  34880. // The ID of the reservation. This remains the same regardless of which Dedicated
  34881. // Hosts are associated with it.
  34882. OfferingId *string `locationName:"offeringId" type:"string"`
  34883. // The payment option selected for this reservation.
  34884. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  34885. // The date and time that the reservation started.
  34886. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
  34887. // The state of the reservation.
  34888. State *string `locationName:"state" type:"string" enum:"ReservationState"`
  34889. // The upfront price of the reservation.
  34890. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  34891. }
  34892. // String returns the string representation
  34893. func (s HostReservation) String() string {
  34894. return awsutil.Prettify(s)
  34895. }
  34896. // GoString returns the string representation
  34897. func (s HostReservation) GoString() string {
  34898. return s.String()
  34899. }
  34900. // SetCount sets the Count field's value.
  34901. func (s *HostReservation) SetCount(v int64) *HostReservation {
  34902. s.Count = &v
  34903. return s
  34904. }
  34905. // SetCurrencyCode sets the CurrencyCode field's value.
  34906. func (s *HostReservation) SetCurrencyCode(v string) *HostReservation {
  34907. s.CurrencyCode = &v
  34908. return s
  34909. }
  34910. // SetDuration sets the Duration field's value.
  34911. func (s *HostReservation) SetDuration(v int64) *HostReservation {
  34912. s.Duration = &v
  34913. return s
  34914. }
  34915. // SetEnd sets the End field's value.
  34916. func (s *HostReservation) SetEnd(v time.Time) *HostReservation {
  34917. s.End = &v
  34918. return s
  34919. }
  34920. // SetHostIdSet sets the HostIdSet field's value.
  34921. func (s *HostReservation) SetHostIdSet(v []*string) *HostReservation {
  34922. s.HostIdSet = v
  34923. return s
  34924. }
  34925. // SetHostReservationId sets the HostReservationId field's value.
  34926. func (s *HostReservation) SetHostReservationId(v string) *HostReservation {
  34927. s.HostReservationId = &v
  34928. return s
  34929. }
  34930. // SetHourlyPrice sets the HourlyPrice field's value.
  34931. func (s *HostReservation) SetHourlyPrice(v string) *HostReservation {
  34932. s.HourlyPrice = &v
  34933. return s
  34934. }
  34935. // SetInstanceFamily sets the InstanceFamily field's value.
  34936. func (s *HostReservation) SetInstanceFamily(v string) *HostReservation {
  34937. s.InstanceFamily = &v
  34938. return s
  34939. }
  34940. // SetOfferingId sets the OfferingId field's value.
  34941. func (s *HostReservation) SetOfferingId(v string) *HostReservation {
  34942. s.OfferingId = &v
  34943. return s
  34944. }
  34945. // SetPaymentOption sets the PaymentOption field's value.
  34946. func (s *HostReservation) SetPaymentOption(v string) *HostReservation {
  34947. s.PaymentOption = &v
  34948. return s
  34949. }
  34950. // SetStart sets the Start field's value.
  34951. func (s *HostReservation) SetStart(v time.Time) *HostReservation {
  34952. s.Start = &v
  34953. return s
  34954. }
  34955. // SetState sets the State field's value.
  34956. func (s *HostReservation) SetState(v string) *HostReservation {
  34957. s.State = &v
  34958. return s
  34959. }
  34960. // SetUpfrontPrice sets the UpfrontPrice field's value.
  34961. func (s *HostReservation) SetUpfrontPrice(v string) *HostReservation {
  34962. s.UpfrontPrice = &v
  34963. return s
  34964. }
  34965. // Describes an IAM instance profile.
  34966. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfile
  34967. type IamInstanceProfile struct {
  34968. _ struct{} `type:"structure"`
  34969. // The Amazon Resource Name (ARN) of the instance profile.
  34970. Arn *string `locationName:"arn" type:"string"`
  34971. // The ID of the instance profile.
  34972. Id *string `locationName:"id" type:"string"`
  34973. }
  34974. // String returns the string representation
  34975. func (s IamInstanceProfile) String() string {
  34976. return awsutil.Prettify(s)
  34977. }
  34978. // GoString returns the string representation
  34979. func (s IamInstanceProfile) GoString() string {
  34980. return s.String()
  34981. }
  34982. // SetArn sets the Arn field's value.
  34983. func (s *IamInstanceProfile) SetArn(v string) *IamInstanceProfile {
  34984. s.Arn = &v
  34985. return s
  34986. }
  34987. // SetId sets the Id field's value.
  34988. func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile {
  34989. s.Id = &v
  34990. return s
  34991. }
  34992. // Describes an association between an IAM instance profile and an instance.
  34993. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfileAssociation
  34994. type IamInstanceProfileAssociation struct {
  34995. _ struct{} `type:"structure"`
  34996. // The ID of the association.
  34997. AssociationId *string `locationName:"associationId" type:"string"`
  34998. // The IAM instance profile.
  34999. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  35000. // The ID of the instance.
  35001. InstanceId *string `locationName:"instanceId" type:"string"`
  35002. // The state of the association.
  35003. State *string `locationName:"state" type:"string" enum:"IamInstanceProfileAssociationState"`
  35004. // The time the IAM instance profile was associated with the instance.
  35005. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  35006. }
  35007. // String returns the string representation
  35008. func (s IamInstanceProfileAssociation) String() string {
  35009. return awsutil.Prettify(s)
  35010. }
  35011. // GoString returns the string representation
  35012. func (s IamInstanceProfileAssociation) GoString() string {
  35013. return s.String()
  35014. }
  35015. // SetAssociationId sets the AssociationId field's value.
  35016. func (s *IamInstanceProfileAssociation) SetAssociationId(v string) *IamInstanceProfileAssociation {
  35017. s.AssociationId = &v
  35018. return s
  35019. }
  35020. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  35021. func (s *IamInstanceProfileAssociation) SetIamInstanceProfile(v *IamInstanceProfile) *IamInstanceProfileAssociation {
  35022. s.IamInstanceProfile = v
  35023. return s
  35024. }
  35025. // SetInstanceId sets the InstanceId field's value.
  35026. func (s *IamInstanceProfileAssociation) SetInstanceId(v string) *IamInstanceProfileAssociation {
  35027. s.InstanceId = &v
  35028. return s
  35029. }
  35030. // SetState sets the State field's value.
  35031. func (s *IamInstanceProfileAssociation) SetState(v string) *IamInstanceProfileAssociation {
  35032. s.State = &v
  35033. return s
  35034. }
  35035. // SetTimestamp sets the Timestamp field's value.
  35036. func (s *IamInstanceProfileAssociation) SetTimestamp(v time.Time) *IamInstanceProfileAssociation {
  35037. s.Timestamp = &v
  35038. return s
  35039. }
  35040. // Describes an IAM instance profile.
  35041. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfileSpecification
  35042. type IamInstanceProfileSpecification struct {
  35043. _ struct{} `type:"structure"`
  35044. // The Amazon Resource Name (ARN) of the instance profile.
  35045. Arn *string `locationName:"arn" type:"string"`
  35046. // The name of the instance profile.
  35047. Name *string `locationName:"name" type:"string"`
  35048. }
  35049. // String returns the string representation
  35050. func (s IamInstanceProfileSpecification) String() string {
  35051. return awsutil.Prettify(s)
  35052. }
  35053. // GoString returns the string representation
  35054. func (s IamInstanceProfileSpecification) GoString() string {
  35055. return s.String()
  35056. }
  35057. // SetArn sets the Arn field's value.
  35058. func (s *IamInstanceProfileSpecification) SetArn(v string) *IamInstanceProfileSpecification {
  35059. s.Arn = &v
  35060. return s
  35061. }
  35062. // SetName sets the Name field's value.
  35063. func (s *IamInstanceProfileSpecification) SetName(v string) *IamInstanceProfileSpecification {
  35064. s.Name = &v
  35065. return s
  35066. }
  35067. // Describes the ICMP type and code.
  35068. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IcmpTypeCode
  35069. type IcmpTypeCode struct {
  35070. _ struct{} `type:"structure"`
  35071. // The ICMP code. A value of -1 means all codes for the specified ICMP type.
  35072. Code *int64 `locationName:"code" type:"integer"`
  35073. // The ICMP type. A value of -1 means all types.
  35074. Type *int64 `locationName:"type" type:"integer"`
  35075. }
  35076. // String returns the string representation
  35077. func (s IcmpTypeCode) String() string {
  35078. return awsutil.Prettify(s)
  35079. }
  35080. // GoString returns the string representation
  35081. func (s IcmpTypeCode) GoString() string {
  35082. return s.String()
  35083. }
  35084. // SetCode sets the Code field's value.
  35085. func (s *IcmpTypeCode) SetCode(v int64) *IcmpTypeCode {
  35086. s.Code = &v
  35087. return s
  35088. }
  35089. // SetType sets the Type field's value.
  35090. func (s *IcmpTypeCode) SetType(v int64) *IcmpTypeCode {
  35091. s.Type = &v
  35092. return s
  35093. }
  35094. // Describes the ID format for a resource.
  35095. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IdFormat
  35096. type IdFormat struct {
  35097. _ struct{} `type:"structure"`
  35098. // The date in UTC at which you are permanently switched over to using longer
  35099. // IDs. If a deadline is not yet available for this resource type, this field
  35100. // is not returned.
  35101. Deadline *time.Time `locationName:"deadline" type:"timestamp" timestampFormat:"iso8601"`
  35102. // The type of resource.
  35103. Resource *string `locationName:"resource" type:"string"`
  35104. // Indicates whether longer IDs (17-character IDs) are enabled for the resource.
  35105. UseLongIds *bool `locationName:"useLongIds" type:"boolean"`
  35106. }
  35107. // String returns the string representation
  35108. func (s IdFormat) String() string {
  35109. return awsutil.Prettify(s)
  35110. }
  35111. // GoString returns the string representation
  35112. func (s IdFormat) GoString() string {
  35113. return s.String()
  35114. }
  35115. // SetDeadline sets the Deadline field's value.
  35116. func (s *IdFormat) SetDeadline(v time.Time) *IdFormat {
  35117. s.Deadline = &v
  35118. return s
  35119. }
  35120. // SetResource sets the Resource field's value.
  35121. func (s *IdFormat) SetResource(v string) *IdFormat {
  35122. s.Resource = &v
  35123. return s
  35124. }
  35125. // SetUseLongIds sets the UseLongIds field's value.
  35126. func (s *IdFormat) SetUseLongIds(v bool) *IdFormat {
  35127. s.UseLongIds = &v
  35128. return s
  35129. }
  35130. // Describes an image.
  35131. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Image
  35132. type Image struct {
  35133. _ struct{} `type:"structure"`
  35134. // The architecture of the image.
  35135. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  35136. // Any block device mapping entries.
  35137. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  35138. // The date and time the image was created.
  35139. CreationDate *string `locationName:"creationDate" type:"string"`
  35140. // The description of the AMI that was provided during image creation.
  35141. Description *string `locationName:"description" type:"string"`
  35142. // Specifies whether enhanced networking with ENA is enabled.
  35143. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  35144. // The hypervisor type of the image.
  35145. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  35146. // The ID of the AMI.
  35147. ImageId *string `locationName:"imageId" type:"string"`
  35148. // The location of the AMI.
  35149. ImageLocation *string `locationName:"imageLocation" type:"string"`
  35150. // The AWS account alias (for example, amazon, self) or the AWS account ID of
  35151. // the AMI owner.
  35152. ImageOwnerAlias *string `locationName:"imageOwnerAlias" type:"string"`
  35153. // The type of image.
  35154. ImageType *string `locationName:"imageType" type:"string" enum:"ImageTypeValues"`
  35155. // The kernel associated with the image, if any. Only applicable for machine
  35156. // images.
  35157. KernelId *string `locationName:"kernelId" type:"string"`
  35158. // The name of the AMI that was provided during image creation.
  35159. Name *string `locationName:"name" type:"string"`
  35160. // The AWS account ID of the image owner.
  35161. OwnerId *string `locationName:"imageOwnerId" type:"string"`
  35162. // The value is Windows for Windows AMIs; otherwise blank.
  35163. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  35164. // Any product codes associated with the AMI.
  35165. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  35166. // Indicates whether the image has public launch permissions. The value is true
  35167. // if this image has public launch permissions or false if it has only implicit
  35168. // and explicit launch permissions.
  35169. Public *bool `locationName:"isPublic" type:"boolean"`
  35170. // The RAM disk associated with the image, if any. Only applicable for machine
  35171. // images.
  35172. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  35173. // The device name of the root device (for example, /dev/sda1 or /dev/xvda).
  35174. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  35175. // The type of root device used by the AMI. The AMI can use an EBS volume or
  35176. // an instance store volume.
  35177. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  35178. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  35179. // interface is enabled.
  35180. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  35181. // The current state of the AMI. If the state is available, the image is successfully
  35182. // registered and can be used to launch an instance.
  35183. State *string `locationName:"imageState" type:"string" enum:"ImageState"`
  35184. // The reason for the state change.
  35185. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  35186. // Any tags assigned to the image.
  35187. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  35188. // The type of virtualization of the AMI.
  35189. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  35190. }
  35191. // String returns the string representation
  35192. func (s Image) String() string {
  35193. return awsutil.Prettify(s)
  35194. }
  35195. // GoString returns the string representation
  35196. func (s Image) GoString() string {
  35197. return s.String()
  35198. }
  35199. // SetArchitecture sets the Architecture field's value.
  35200. func (s *Image) SetArchitecture(v string) *Image {
  35201. s.Architecture = &v
  35202. return s
  35203. }
  35204. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  35205. func (s *Image) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Image {
  35206. s.BlockDeviceMappings = v
  35207. return s
  35208. }
  35209. // SetCreationDate sets the CreationDate field's value.
  35210. func (s *Image) SetCreationDate(v string) *Image {
  35211. s.CreationDate = &v
  35212. return s
  35213. }
  35214. // SetDescription sets the Description field's value.
  35215. func (s *Image) SetDescription(v string) *Image {
  35216. s.Description = &v
  35217. return s
  35218. }
  35219. // SetEnaSupport sets the EnaSupport field's value.
  35220. func (s *Image) SetEnaSupport(v bool) *Image {
  35221. s.EnaSupport = &v
  35222. return s
  35223. }
  35224. // SetHypervisor sets the Hypervisor field's value.
  35225. func (s *Image) SetHypervisor(v string) *Image {
  35226. s.Hypervisor = &v
  35227. return s
  35228. }
  35229. // SetImageId sets the ImageId field's value.
  35230. func (s *Image) SetImageId(v string) *Image {
  35231. s.ImageId = &v
  35232. return s
  35233. }
  35234. // SetImageLocation sets the ImageLocation field's value.
  35235. func (s *Image) SetImageLocation(v string) *Image {
  35236. s.ImageLocation = &v
  35237. return s
  35238. }
  35239. // SetImageOwnerAlias sets the ImageOwnerAlias field's value.
  35240. func (s *Image) SetImageOwnerAlias(v string) *Image {
  35241. s.ImageOwnerAlias = &v
  35242. return s
  35243. }
  35244. // SetImageType sets the ImageType field's value.
  35245. func (s *Image) SetImageType(v string) *Image {
  35246. s.ImageType = &v
  35247. return s
  35248. }
  35249. // SetKernelId sets the KernelId field's value.
  35250. func (s *Image) SetKernelId(v string) *Image {
  35251. s.KernelId = &v
  35252. return s
  35253. }
  35254. // SetName sets the Name field's value.
  35255. func (s *Image) SetName(v string) *Image {
  35256. s.Name = &v
  35257. return s
  35258. }
  35259. // SetOwnerId sets the OwnerId field's value.
  35260. func (s *Image) SetOwnerId(v string) *Image {
  35261. s.OwnerId = &v
  35262. return s
  35263. }
  35264. // SetPlatform sets the Platform field's value.
  35265. func (s *Image) SetPlatform(v string) *Image {
  35266. s.Platform = &v
  35267. return s
  35268. }
  35269. // SetProductCodes sets the ProductCodes field's value.
  35270. func (s *Image) SetProductCodes(v []*ProductCode) *Image {
  35271. s.ProductCodes = v
  35272. return s
  35273. }
  35274. // SetPublic sets the Public field's value.
  35275. func (s *Image) SetPublic(v bool) *Image {
  35276. s.Public = &v
  35277. return s
  35278. }
  35279. // SetRamdiskId sets the RamdiskId field's value.
  35280. func (s *Image) SetRamdiskId(v string) *Image {
  35281. s.RamdiskId = &v
  35282. return s
  35283. }
  35284. // SetRootDeviceName sets the RootDeviceName field's value.
  35285. func (s *Image) SetRootDeviceName(v string) *Image {
  35286. s.RootDeviceName = &v
  35287. return s
  35288. }
  35289. // SetRootDeviceType sets the RootDeviceType field's value.
  35290. func (s *Image) SetRootDeviceType(v string) *Image {
  35291. s.RootDeviceType = &v
  35292. return s
  35293. }
  35294. // SetSriovNetSupport sets the SriovNetSupport field's value.
  35295. func (s *Image) SetSriovNetSupport(v string) *Image {
  35296. s.SriovNetSupport = &v
  35297. return s
  35298. }
  35299. // SetState sets the State field's value.
  35300. func (s *Image) SetState(v string) *Image {
  35301. s.State = &v
  35302. return s
  35303. }
  35304. // SetStateReason sets the StateReason field's value.
  35305. func (s *Image) SetStateReason(v *StateReason) *Image {
  35306. s.StateReason = v
  35307. return s
  35308. }
  35309. // SetTags sets the Tags field's value.
  35310. func (s *Image) SetTags(v []*Tag) *Image {
  35311. s.Tags = v
  35312. return s
  35313. }
  35314. // SetVirtualizationType sets the VirtualizationType field's value.
  35315. func (s *Image) SetVirtualizationType(v string) *Image {
  35316. s.VirtualizationType = &v
  35317. return s
  35318. }
  35319. // Describes the disk container object for an import image task.
  35320. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageDiskContainer
  35321. type ImageDiskContainer struct {
  35322. _ struct{} `type:"structure"`
  35323. // The description of the disk image.
  35324. Description *string `type:"string"`
  35325. // The block device mapping for the disk.
  35326. DeviceName *string `type:"string"`
  35327. // The format of the disk image being imported.
  35328. //
  35329. // Valid values: RAW | VHD | VMDK | OVA
  35330. Format *string `type:"string"`
  35331. // The ID of the EBS snapshot to be used for importing the snapshot.
  35332. SnapshotId *string `type:"string"`
  35333. // The URL to the Amazon S3-based disk image being imported. The URL can either
  35334. // be a https URL (https://..) or an Amazon S3 URL (s3://..)
  35335. Url *string `type:"string"`
  35336. // The S3 bucket for the disk image.
  35337. UserBucket *UserBucket `type:"structure"`
  35338. }
  35339. // String returns the string representation
  35340. func (s ImageDiskContainer) String() string {
  35341. return awsutil.Prettify(s)
  35342. }
  35343. // GoString returns the string representation
  35344. func (s ImageDiskContainer) GoString() string {
  35345. return s.String()
  35346. }
  35347. // SetDescription sets the Description field's value.
  35348. func (s *ImageDiskContainer) SetDescription(v string) *ImageDiskContainer {
  35349. s.Description = &v
  35350. return s
  35351. }
  35352. // SetDeviceName sets the DeviceName field's value.
  35353. func (s *ImageDiskContainer) SetDeviceName(v string) *ImageDiskContainer {
  35354. s.DeviceName = &v
  35355. return s
  35356. }
  35357. // SetFormat sets the Format field's value.
  35358. func (s *ImageDiskContainer) SetFormat(v string) *ImageDiskContainer {
  35359. s.Format = &v
  35360. return s
  35361. }
  35362. // SetSnapshotId sets the SnapshotId field's value.
  35363. func (s *ImageDiskContainer) SetSnapshotId(v string) *ImageDiskContainer {
  35364. s.SnapshotId = &v
  35365. return s
  35366. }
  35367. // SetUrl sets the Url field's value.
  35368. func (s *ImageDiskContainer) SetUrl(v string) *ImageDiskContainer {
  35369. s.Url = &v
  35370. return s
  35371. }
  35372. // SetUserBucket sets the UserBucket field's value.
  35373. func (s *ImageDiskContainer) SetUserBucket(v *UserBucket) *ImageDiskContainer {
  35374. s.UserBucket = v
  35375. return s
  35376. }
  35377. // Contains the parameters for ImportImage.
  35378. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageRequest
  35379. type ImportImageInput struct {
  35380. _ struct{} `type:"structure"`
  35381. // The architecture of the virtual machine.
  35382. //
  35383. // Valid values: i386 | x86_64
  35384. Architecture *string `type:"string"`
  35385. // The client-specific data.
  35386. ClientData *ClientData `type:"structure"`
  35387. // The token to enable idempotency for VM import requests.
  35388. ClientToken *string `type:"string"`
  35389. // A description string for the import image task.
  35390. Description *string `type:"string"`
  35391. // Information about the disk containers.
  35392. DiskContainers []*ImageDiskContainer `locationName:"DiskContainer" locationNameList:"item" type:"list"`
  35393. // Checks whether you have the required permissions for the action, without
  35394. // actually making the request, and provides an error response. If you have
  35395. // the required permissions, the error response is DryRunOperation. Otherwise,
  35396. // it is UnauthorizedOperation.
  35397. DryRun *bool `type:"boolean"`
  35398. // The target hypervisor platform.
  35399. //
  35400. // Valid values: xen
  35401. Hypervisor *string `type:"string"`
  35402. // The license type to be used for the Amazon Machine Image (AMI) after importing.
  35403. //
  35404. // Note: You may only use BYOL if you have existing licenses with rights to
  35405. // use these licenses in a third party cloud like AWS. For more information,
  35406. // see Prerequisites (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image)
  35407. // in the VM Import/Export User Guide.
  35408. //
  35409. // Valid values: AWS | BYOL
  35410. LicenseType *string `type:"string"`
  35411. // The operating system of the virtual machine.
  35412. //
  35413. // Valid values: Windows | Linux
  35414. Platform *string `type:"string"`
  35415. // The name of the role to use when not using the default role, 'vmimport'.
  35416. RoleName *string `type:"string"`
  35417. }
  35418. // String returns the string representation
  35419. func (s ImportImageInput) String() string {
  35420. return awsutil.Prettify(s)
  35421. }
  35422. // GoString returns the string representation
  35423. func (s ImportImageInput) GoString() string {
  35424. return s.String()
  35425. }
  35426. // SetArchitecture sets the Architecture field's value.
  35427. func (s *ImportImageInput) SetArchitecture(v string) *ImportImageInput {
  35428. s.Architecture = &v
  35429. return s
  35430. }
  35431. // SetClientData sets the ClientData field's value.
  35432. func (s *ImportImageInput) SetClientData(v *ClientData) *ImportImageInput {
  35433. s.ClientData = v
  35434. return s
  35435. }
  35436. // SetClientToken sets the ClientToken field's value.
  35437. func (s *ImportImageInput) SetClientToken(v string) *ImportImageInput {
  35438. s.ClientToken = &v
  35439. return s
  35440. }
  35441. // SetDescription sets the Description field's value.
  35442. func (s *ImportImageInput) SetDescription(v string) *ImportImageInput {
  35443. s.Description = &v
  35444. return s
  35445. }
  35446. // SetDiskContainers sets the DiskContainers field's value.
  35447. func (s *ImportImageInput) SetDiskContainers(v []*ImageDiskContainer) *ImportImageInput {
  35448. s.DiskContainers = v
  35449. return s
  35450. }
  35451. // SetDryRun sets the DryRun field's value.
  35452. func (s *ImportImageInput) SetDryRun(v bool) *ImportImageInput {
  35453. s.DryRun = &v
  35454. return s
  35455. }
  35456. // SetHypervisor sets the Hypervisor field's value.
  35457. func (s *ImportImageInput) SetHypervisor(v string) *ImportImageInput {
  35458. s.Hypervisor = &v
  35459. return s
  35460. }
  35461. // SetLicenseType sets the LicenseType field's value.
  35462. func (s *ImportImageInput) SetLicenseType(v string) *ImportImageInput {
  35463. s.LicenseType = &v
  35464. return s
  35465. }
  35466. // SetPlatform sets the Platform field's value.
  35467. func (s *ImportImageInput) SetPlatform(v string) *ImportImageInput {
  35468. s.Platform = &v
  35469. return s
  35470. }
  35471. // SetRoleName sets the RoleName field's value.
  35472. func (s *ImportImageInput) SetRoleName(v string) *ImportImageInput {
  35473. s.RoleName = &v
  35474. return s
  35475. }
  35476. // Contains the output for ImportImage.
  35477. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageResult
  35478. type ImportImageOutput struct {
  35479. _ struct{} `type:"structure"`
  35480. // The architecture of the virtual machine.
  35481. Architecture *string `locationName:"architecture" type:"string"`
  35482. // A description of the import task.
  35483. Description *string `locationName:"description" type:"string"`
  35484. // The target hypervisor of the import task.
  35485. Hypervisor *string `locationName:"hypervisor" type:"string"`
  35486. // The ID of the Amazon Machine Image (AMI) created by the import task.
  35487. ImageId *string `locationName:"imageId" type:"string"`
  35488. // The task ID of the import image task.
  35489. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  35490. // The license type of the virtual machine.
  35491. LicenseType *string `locationName:"licenseType" type:"string"`
  35492. // The operating system of the virtual machine.
  35493. Platform *string `locationName:"platform" type:"string"`
  35494. // The progress of the task.
  35495. Progress *string `locationName:"progress" type:"string"`
  35496. // Information about the snapshots.
  35497. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  35498. // A brief status of the task.
  35499. Status *string `locationName:"status" type:"string"`
  35500. // A detailed status message of the import task.
  35501. StatusMessage *string `locationName:"statusMessage" type:"string"`
  35502. }
  35503. // String returns the string representation
  35504. func (s ImportImageOutput) String() string {
  35505. return awsutil.Prettify(s)
  35506. }
  35507. // GoString returns the string representation
  35508. func (s ImportImageOutput) GoString() string {
  35509. return s.String()
  35510. }
  35511. // SetArchitecture sets the Architecture field's value.
  35512. func (s *ImportImageOutput) SetArchitecture(v string) *ImportImageOutput {
  35513. s.Architecture = &v
  35514. return s
  35515. }
  35516. // SetDescription sets the Description field's value.
  35517. func (s *ImportImageOutput) SetDescription(v string) *ImportImageOutput {
  35518. s.Description = &v
  35519. return s
  35520. }
  35521. // SetHypervisor sets the Hypervisor field's value.
  35522. func (s *ImportImageOutput) SetHypervisor(v string) *ImportImageOutput {
  35523. s.Hypervisor = &v
  35524. return s
  35525. }
  35526. // SetImageId sets the ImageId field's value.
  35527. func (s *ImportImageOutput) SetImageId(v string) *ImportImageOutput {
  35528. s.ImageId = &v
  35529. return s
  35530. }
  35531. // SetImportTaskId sets the ImportTaskId field's value.
  35532. func (s *ImportImageOutput) SetImportTaskId(v string) *ImportImageOutput {
  35533. s.ImportTaskId = &v
  35534. return s
  35535. }
  35536. // SetLicenseType sets the LicenseType field's value.
  35537. func (s *ImportImageOutput) SetLicenseType(v string) *ImportImageOutput {
  35538. s.LicenseType = &v
  35539. return s
  35540. }
  35541. // SetPlatform sets the Platform field's value.
  35542. func (s *ImportImageOutput) SetPlatform(v string) *ImportImageOutput {
  35543. s.Platform = &v
  35544. return s
  35545. }
  35546. // SetProgress sets the Progress field's value.
  35547. func (s *ImportImageOutput) SetProgress(v string) *ImportImageOutput {
  35548. s.Progress = &v
  35549. return s
  35550. }
  35551. // SetSnapshotDetails sets the SnapshotDetails field's value.
  35552. func (s *ImportImageOutput) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageOutput {
  35553. s.SnapshotDetails = v
  35554. return s
  35555. }
  35556. // SetStatus sets the Status field's value.
  35557. func (s *ImportImageOutput) SetStatus(v string) *ImportImageOutput {
  35558. s.Status = &v
  35559. return s
  35560. }
  35561. // SetStatusMessage sets the StatusMessage field's value.
  35562. func (s *ImportImageOutput) SetStatusMessage(v string) *ImportImageOutput {
  35563. s.StatusMessage = &v
  35564. return s
  35565. }
  35566. // Describes an import image task.
  35567. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageTask
  35568. type ImportImageTask struct {
  35569. _ struct{} `type:"structure"`
  35570. // The architecture of the virtual machine.
  35571. //
  35572. // Valid values: i386 | x86_64
  35573. Architecture *string `locationName:"architecture" type:"string"`
  35574. // A description of the import task.
  35575. Description *string `locationName:"description" type:"string"`
  35576. // The target hypervisor for the import task.
  35577. //
  35578. // Valid values: xen
  35579. Hypervisor *string `locationName:"hypervisor" type:"string"`
  35580. // The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
  35581. ImageId *string `locationName:"imageId" type:"string"`
  35582. // The ID of the import image task.
  35583. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  35584. // The license type of the virtual machine.
  35585. LicenseType *string `locationName:"licenseType" type:"string"`
  35586. // The description string for the import image task.
  35587. Platform *string `locationName:"platform" type:"string"`
  35588. // The percentage of progress of the import image task.
  35589. Progress *string `locationName:"progress" type:"string"`
  35590. // Information about the snapshots.
  35591. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  35592. // A brief status for the import image task.
  35593. Status *string `locationName:"status" type:"string"`
  35594. // A descriptive status message for the import image task.
  35595. StatusMessage *string `locationName:"statusMessage" type:"string"`
  35596. }
  35597. // String returns the string representation
  35598. func (s ImportImageTask) String() string {
  35599. return awsutil.Prettify(s)
  35600. }
  35601. // GoString returns the string representation
  35602. func (s ImportImageTask) GoString() string {
  35603. return s.String()
  35604. }
  35605. // SetArchitecture sets the Architecture field's value.
  35606. func (s *ImportImageTask) SetArchitecture(v string) *ImportImageTask {
  35607. s.Architecture = &v
  35608. return s
  35609. }
  35610. // SetDescription sets the Description field's value.
  35611. func (s *ImportImageTask) SetDescription(v string) *ImportImageTask {
  35612. s.Description = &v
  35613. return s
  35614. }
  35615. // SetHypervisor sets the Hypervisor field's value.
  35616. func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask {
  35617. s.Hypervisor = &v
  35618. return s
  35619. }
  35620. // SetImageId sets the ImageId field's value.
  35621. func (s *ImportImageTask) SetImageId(v string) *ImportImageTask {
  35622. s.ImageId = &v
  35623. return s
  35624. }
  35625. // SetImportTaskId sets the ImportTaskId field's value.
  35626. func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask {
  35627. s.ImportTaskId = &v
  35628. return s
  35629. }
  35630. // SetLicenseType sets the LicenseType field's value.
  35631. func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask {
  35632. s.LicenseType = &v
  35633. return s
  35634. }
  35635. // SetPlatform sets the Platform field's value.
  35636. func (s *ImportImageTask) SetPlatform(v string) *ImportImageTask {
  35637. s.Platform = &v
  35638. return s
  35639. }
  35640. // SetProgress sets the Progress field's value.
  35641. func (s *ImportImageTask) SetProgress(v string) *ImportImageTask {
  35642. s.Progress = &v
  35643. return s
  35644. }
  35645. // SetSnapshotDetails sets the SnapshotDetails field's value.
  35646. func (s *ImportImageTask) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageTask {
  35647. s.SnapshotDetails = v
  35648. return s
  35649. }
  35650. // SetStatus sets the Status field's value.
  35651. func (s *ImportImageTask) SetStatus(v string) *ImportImageTask {
  35652. s.Status = &v
  35653. return s
  35654. }
  35655. // SetStatusMessage sets the StatusMessage field's value.
  35656. func (s *ImportImageTask) SetStatusMessage(v string) *ImportImageTask {
  35657. s.StatusMessage = &v
  35658. return s
  35659. }
  35660. // Contains the parameters for ImportInstance.
  35661. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceRequest
  35662. type ImportInstanceInput struct {
  35663. _ struct{} `type:"structure"`
  35664. // A description for the instance being imported.
  35665. Description *string `locationName:"description" type:"string"`
  35666. // The disk image.
  35667. DiskImages []*DiskImage `locationName:"diskImage" type:"list"`
  35668. // Checks whether you have the required permissions for the action, without
  35669. // actually making the request, and provides an error response. If you have
  35670. // the required permissions, the error response is DryRunOperation. Otherwise,
  35671. // it is UnauthorizedOperation.
  35672. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35673. // The launch specification.
  35674. LaunchSpecification *ImportInstanceLaunchSpecification `locationName:"launchSpecification" type:"structure"`
  35675. // The instance operating system.
  35676. //
  35677. // Platform is a required field
  35678. Platform *string `locationName:"platform" type:"string" required:"true" enum:"PlatformValues"`
  35679. }
  35680. // String returns the string representation
  35681. func (s ImportInstanceInput) String() string {
  35682. return awsutil.Prettify(s)
  35683. }
  35684. // GoString returns the string representation
  35685. func (s ImportInstanceInput) GoString() string {
  35686. return s.String()
  35687. }
  35688. // Validate inspects the fields of the type to determine if they are valid.
  35689. func (s *ImportInstanceInput) Validate() error {
  35690. invalidParams := request.ErrInvalidParams{Context: "ImportInstanceInput"}
  35691. if s.Platform == nil {
  35692. invalidParams.Add(request.NewErrParamRequired("Platform"))
  35693. }
  35694. if s.DiskImages != nil {
  35695. for i, v := range s.DiskImages {
  35696. if v == nil {
  35697. continue
  35698. }
  35699. if err := v.Validate(); err != nil {
  35700. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DiskImages", i), err.(request.ErrInvalidParams))
  35701. }
  35702. }
  35703. }
  35704. if invalidParams.Len() > 0 {
  35705. return invalidParams
  35706. }
  35707. return nil
  35708. }
  35709. // SetDescription sets the Description field's value.
  35710. func (s *ImportInstanceInput) SetDescription(v string) *ImportInstanceInput {
  35711. s.Description = &v
  35712. return s
  35713. }
  35714. // SetDiskImages sets the DiskImages field's value.
  35715. func (s *ImportInstanceInput) SetDiskImages(v []*DiskImage) *ImportInstanceInput {
  35716. s.DiskImages = v
  35717. return s
  35718. }
  35719. // SetDryRun sets the DryRun field's value.
  35720. func (s *ImportInstanceInput) SetDryRun(v bool) *ImportInstanceInput {
  35721. s.DryRun = &v
  35722. return s
  35723. }
  35724. // SetLaunchSpecification sets the LaunchSpecification field's value.
  35725. func (s *ImportInstanceInput) SetLaunchSpecification(v *ImportInstanceLaunchSpecification) *ImportInstanceInput {
  35726. s.LaunchSpecification = v
  35727. return s
  35728. }
  35729. // SetPlatform sets the Platform field's value.
  35730. func (s *ImportInstanceInput) SetPlatform(v string) *ImportInstanceInput {
  35731. s.Platform = &v
  35732. return s
  35733. }
  35734. // Describes the launch specification for VM import.
  35735. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceLaunchSpecification
  35736. type ImportInstanceLaunchSpecification struct {
  35737. _ struct{} `type:"structure"`
  35738. // Reserved.
  35739. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  35740. // The architecture of the instance.
  35741. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  35742. // One or more security group IDs.
  35743. GroupIds []*string `locationName:"GroupId" locationNameList:"SecurityGroupId" type:"list"`
  35744. // One or more security group names.
  35745. GroupNames []*string `locationName:"GroupName" locationNameList:"SecurityGroup" type:"list"`
  35746. // Indicates whether an instance stops or terminates when you initiate shutdown
  35747. // from the instance (using the operating system command for system shutdown).
  35748. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  35749. // The instance type. For more information about the instance types that you
  35750. // can import, see Instance Types (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#vmimport-instance-types)
  35751. // in the VM Import/Export User Guide.
  35752. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  35753. // Indicates whether monitoring is enabled.
  35754. Monitoring *bool `locationName:"monitoring" type:"boolean"`
  35755. // The placement information for the instance.
  35756. Placement *Placement `locationName:"placement" type:"structure"`
  35757. // [EC2-VPC] An available IP address from the IP address range of the subnet.
  35758. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  35759. // [EC2-VPC] The ID of the subnet in which to launch the instance.
  35760. SubnetId *string `locationName:"subnetId" type:"string"`
  35761. // The user data to make available to the instance. If you are using an AWS
  35762. // SDK or command line tool, Base64-encoding is performed for you, and you can
  35763. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  35764. UserData *UserData `locationName:"userData" type:"structure"`
  35765. }
  35766. // String returns the string representation
  35767. func (s ImportInstanceLaunchSpecification) String() string {
  35768. return awsutil.Prettify(s)
  35769. }
  35770. // GoString returns the string representation
  35771. func (s ImportInstanceLaunchSpecification) GoString() string {
  35772. return s.String()
  35773. }
  35774. // SetAdditionalInfo sets the AdditionalInfo field's value.
  35775. func (s *ImportInstanceLaunchSpecification) SetAdditionalInfo(v string) *ImportInstanceLaunchSpecification {
  35776. s.AdditionalInfo = &v
  35777. return s
  35778. }
  35779. // SetArchitecture sets the Architecture field's value.
  35780. func (s *ImportInstanceLaunchSpecification) SetArchitecture(v string) *ImportInstanceLaunchSpecification {
  35781. s.Architecture = &v
  35782. return s
  35783. }
  35784. // SetGroupIds sets the GroupIds field's value.
  35785. func (s *ImportInstanceLaunchSpecification) SetGroupIds(v []*string) *ImportInstanceLaunchSpecification {
  35786. s.GroupIds = v
  35787. return s
  35788. }
  35789. // SetGroupNames sets the GroupNames field's value.
  35790. func (s *ImportInstanceLaunchSpecification) SetGroupNames(v []*string) *ImportInstanceLaunchSpecification {
  35791. s.GroupNames = v
  35792. return s
  35793. }
  35794. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  35795. func (s *ImportInstanceLaunchSpecification) SetInstanceInitiatedShutdownBehavior(v string) *ImportInstanceLaunchSpecification {
  35796. s.InstanceInitiatedShutdownBehavior = &v
  35797. return s
  35798. }
  35799. // SetInstanceType sets the InstanceType field's value.
  35800. func (s *ImportInstanceLaunchSpecification) SetInstanceType(v string) *ImportInstanceLaunchSpecification {
  35801. s.InstanceType = &v
  35802. return s
  35803. }
  35804. // SetMonitoring sets the Monitoring field's value.
  35805. func (s *ImportInstanceLaunchSpecification) SetMonitoring(v bool) *ImportInstanceLaunchSpecification {
  35806. s.Monitoring = &v
  35807. return s
  35808. }
  35809. // SetPlacement sets the Placement field's value.
  35810. func (s *ImportInstanceLaunchSpecification) SetPlacement(v *Placement) *ImportInstanceLaunchSpecification {
  35811. s.Placement = v
  35812. return s
  35813. }
  35814. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  35815. func (s *ImportInstanceLaunchSpecification) SetPrivateIpAddress(v string) *ImportInstanceLaunchSpecification {
  35816. s.PrivateIpAddress = &v
  35817. return s
  35818. }
  35819. // SetSubnetId sets the SubnetId field's value.
  35820. func (s *ImportInstanceLaunchSpecification) SetSubnetId(v string) *ImportInstanceLaunchSpecification {
  35821. s.SubnetId = &v
  35822. return s
  35823. }
  35824. // SetUserData sets the UserData field's value.
  35825. func (s *ImportInstanceLaunchSpecification) SetUserData(v *UserData) *ImportInstanceLaunchSpecification {
  35826. s.UserData = v
  35827. return s
  35828. }
  35829. // Contains the output for ImportInstance.
  35830. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceResult
  35831. type ImportInstanceOutput struct {
  35832. _ struct{} `type:"structure"`
  35833. // Information about the conversion task.
  35834. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  35835. }
  35836. // String returns the string representation
  35837. func (s ImportInstanceOutput) String() string {
  35838. return awsutil.Prettify(s)
  35839. }
  35840. // GoString returns the string representation
  35841. func (s ImportInstanceOutput) GoString() string {
  35842. return s.String()
  35843. }
  35844. // SetConversionTask sets the ConversionTask field's value.
  35845. func (s *ImportInstanceOutput) SetConversionTask(v *ConversionTask) *ImportInstanceOutput {
  35846. s.ConversionTask = v
  35847. return s
  35848. }
  35849. // Describes an import instance task.
  35850. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceTaskDetails
  35851. type ImportInstanceTaskDetails struct {
  35852. _ struct{} `type:"structure"`
  35853. // A description of the task.
  35854. Description *string `locationName:"description" type:"string"`
  35855. // The ID of the instance.
  35856. InstanceId *string `locationName:"instanceId" type:"string"`
  35857. // The instance operating system.
  35858. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  35859. // One or more volumes.
  35860. //
  35861. // Volumes is a required field
  35862. Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list" required:"true"`
  35863. }
  35864. // String returns the string representation
  35865. func (s ImportInstanceTaskDetails) String() string {
  35866. return awsutil.Prettify(s)
  35867. }
  35868. // GoString returns the string representation
  35869. func (s ImportInstanceTaskDetails) GoString() string {
  35870. return s.String()
  35871. }
  35872. // SetDescription sets the Description field's value.
  35873. func (s *ImportInstanceTaskDetails) SetDescription(v string) *ImportInstanceTaskDetails {
  35874. s.Description = &v
  35875. return s
  35876. }
  35877. // SetInstanceId sets the InstanceId field's value.
  35878. func (s *ImportInstanceTaskDetails) SetInstanceId(v string) *ImportInstanceTaskDetails {
  35879. s.InstanceId = &v
  35880. return s
  35881. }
  35882. // SetPlatform sets the Platform field's value.
  35883. func (s *ImportInstanceTaskDetails) SetPlatform(v string) *ImportInstanceTaskDetails {
  35884. s.Platform = &v
  35885. return s
  35886. }
  35887. // SetVolumes sets the Volumes field's value.
  35888. func (s *ImportInstanceTaskDetails) SetVolumes(v []*ImportInstanceVolumeDetailItem) *ImportInstanceTaskDetails {
  35889. s.Volumes = v
  35890. return s
  35891. }
  35892. // Describes an import volume task.
  35893. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceVolumeDetailItem
  35894. type ImportInstanceVolumeDetailItem struct {
  35895. _ struct{} `type:"structure"`
  35896. // The Availability Zone where the resulting instance will reside.
  35897. //
  35898. // AvailabilityZone is a required field
  35899. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  35900. // The number of bytes converted so far.
  35901. //
  35902. // BytesConverted is a required field
  35903. BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"`
  35904. // A description of the task.
  35905. Description *string `locationName:"description" type:"string"`
  35906. // The image.
  35907. //
  35908. // Image is a required field
  35909. Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"`
  35910. // The status of the import of this particular disk image.
  35911. //
  35912. // Status is a required field
  35913. Status *string `locationName:"status" type:"string" required:"true"`
  35914. // The status information or errors related to the disk image.
  35915. StatusMessage *string `locationName:"statusMessage" type:"string"`
  35916. // The volume.
  35917. //
  35918. // Volume is a required field
  35919. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"`
  35920. }
  35921. // String returns the string representation
  35922. func (s ImportInstanceVolumeDetailItem) String() string {
  35923. return awsutil.Prettify(s)
  35924. }
  35925. // GoString returns the string representation
  35926. func (s ImportInstanceVolumeDetailItem) GoString() string {
  35927. return s.String()
  35928. }
  35929. // SetAvailabilityZone sets the AvailabilityZone field's value.
  35930. func (s *ImportInstanceVolumeDetailItem) SetAvailabilityZone(v string) *ImportInstanceVolumeDetailItem {
  35931. s.AvailabilityZone = &v
  35932. return s
  35933. }
  35934. // SetBytesConverted sets the BytesConverted field's value.
  35935. func (s *ImportInstanceVolumeDetailItem) SetBytesConverted(v int64) *ImportInstanceVolumeDetailItem {
  35936. s.BytesConverted = &v
  35937. return s
  35938. }
  35939. // SetDescription sets the Description field's value.
  35940. func (s *ImportInstanceVolumeDetailItem) SetDescription(v string) *ImportInstanceVolumeDetailItem {
  35941. s.Description = &v
  35942. return s
  35943. }
  35944. // SetImage sets the Image field's value.
  35945. func (s *ImportInstanceVolumeDetailItem) SetImage(v *DiskImageDescription) *ImportInstanceVolumeDetailItem {
  35946. s.Image = v
  35947. return s
  35948. }
  35949. // SetStatus sets the Status field's value.
  35950. func (s *ImportInstanceVolumeDetailItem) SetStatus(v string) *ImportInstanceVolumeDetailItem {
  35951. s.Status = &v
  35952. return s
  35953. }
  35954. // SetStatusMessage sets the StatusMessage field's value.
  35955. func (s *ImportInstanceVolumeDetailItem) SetStatusMessage(v string) *ImportInstanceVolumeDetailItem {
  35956. s.StatusMessage = &v
  35957. return s
  35958. }
  35959. // SetVolume sets the Volume field's value.
  35960. func (s *ImportInstanceVolumeDetailItem) SetVolume(v *DiskImageVolumeDescription) *ImportInstanceVolumeDetailItem {
  35961. s.Volume = v
  35962. return s
  35963. }
  35964. // Contains the parameters for ImportKeyPair.
  35965. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPairRequest
  35966. type ImportKeyPairInput struct {
  35967. _ struct{} `type:"structure"`
  35968. // Checks whether you have the required permissions for the action, without
  35969. // actually making the request, and provides an error response. If you have
  35970. // the required permissions, the error response is DryRunOperation. Otherwise,
  35971. // it is UnauthorizedOperation.
  35972. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35973. // A unique name for the key pair.
  35974. //
  35975. // KeyName is a required field
  35976. KeyName *string `locationName:"keyName" type:"string" required:"true"`
  35977. // The public key. For API calls, the text must be base64-encoded. For command
  35978. // line tools, base64 encoding is performed for you.
  35979. //
  35980. // PublicKeyMaterial is automatically base64 encoded/decoded by the SDK.
  35981. //
  35982. // PublicKeyMaterial is a required field
  35983. PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"`
  35984. }
  35985. // String returns the string representation
  35986. func (s ImportKeyPairInput) String() string {
  35987. return awsutil.Prettify(s)
  35988. }
  35989. // GoString returns the string representation
  35990. func (s ImportKeyPairInput) GoString() string {
  35991. return s.String()
  35992. }
  35993. // Validate inspects the fields of the type to determine if they are valid.
  35994. func (s *ImportKeyPairInput) Validate() error {
  35995. invalidParams := request.ErrInvalidParams{Context: "ImportKeyPairInput"}
  35996. if s.KeyName == nil {
  35997. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  35998. }
  35999. if s.PublicKeyMaterial == nil {
  36000. invalidParams.Add(request.NewErrParamRequired("PublicKeyMaterial"))
  36001. }
  36002. if invalidParams.Len() > 0 {
  36003. return invalidParams
  36004. }
  36005. return nil
  36006. }
  36007. // SetDryRun sets the DryRun field's value.
  36008. func (s *ImportKeyPairInput) SetDryRun(v bool) *ImportKeyPairInput {
  36009. s.DryRun = &v
  36010. return s
  36011. }
  36012. // SetKeyName sets the KeyName field's value.
  36013. func (s *ImportKeyPairInput) SetKeyName(v string) *ImportKeyPairInput {
  36014. s.KeyName = &v
  36015. return s
  36016. }
  36017. // SetPublicKeyMaterial sets the PublicKeyMaterial field's value.
  36018. func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput {
  36019. s.PublicKeyMaterial = v
  36020. return s
  36021. }
  36022. // Contains the output of ImportKeyPair.
  36023. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPairResult
  36024. type ImportKeyPairOutput struct {
  36025. _ struct{} `type:"structure"`
  36026. // The MD5 public key fingerprint as specified in section 4 of RFC 4716.
  36027. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  36028. // The key pair name you provided.
  36029. KeyName *string `locationName:"keyName" type:"string"`
  36030. }
  36031. // String returns the string representation
  36032. func (s ImportKeyPairOutput) String() string {
  36033. return awsutil.Prettify(s)
  36034. }
  36035. // GoString returns the string representation
  36036. func (s ImportKeyPairOutput) GoString() string {
  36037. return s.String()
  36038. }
  36039. // SetKeyFingerprint sets the KeyFingerprint field's value.
  36040. func (s *ImportKeyPairOutput) SetKeyFingerprint(v string) *ImportKeyPairOutput {
  36041. s.KeyFingerprint = &v
  36042. return s
  36043. }
  36044. // SetKeyName sets the KeyName field's value.
  36045. func (s *ImportKeyPairOutput) SetKeyName(v string) *ImportKeyPairOutput {
  36046. s.KeyName = &v
  36047. return s
  36048. }
  36049. // Contains the parameters for ImportSnapshot.
  36050. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotRequest
  36051. type ImportSnapshotInput struct {
  36052. _ struct{} `type:"structure"`
  36053. // The client-specific data.
  36054. ClientData *ClientData `type:"structure"`
  36055. // Token to enable idempotency for VM import requests.
  36056. ClientToken *string `type:"string"`
  36057. // The description string for the import snapshot task.
  36058. Description *string `type:"string"`
  36059. // Information about the disk container.
  36060. DiskContainer *SnapshotDiskContainer `type:"structure"`
  36061. // Checks whether you have the required permissions for the action, without
  36062. // actually making the request, and provides an error response. If you have
  36063. // the required permissions, the error response is DryRunOperation. Otherwise,
  36064. // it is UnauthorizedOperation.
  36065. DryRun *bool `type:"boolean"`
  36066. // The name of the role to use when not using the default role, 'vmimport'.
  36067. RoleName *string `type:"string"`
  36068. }
  36069. // String returns the string representation
  36070. func (s ImportSnapshotInput) String() string {
  36071. return awsutil.Prettify(s)
  36072. }
  36073. // GoString returns the string representation
  36074. func (s ImportSnapshotInput) GoString() string {
  36075. return s.String()
  36076. }
  36077. // SetClientData sets the ClientData field's value.
  36078. func (s *ImportSnapshotInput) SetClientData(v *ClientData) *ImportSnapshotInput {
  36079. s.ClientData = v
  36080. return s
  36081. }
  36082. // SetClientToken sets the ClientToken field's value.
  36083. func (s *ImportSnapshotInput) SetClientToken(v string) *ImportSnapshotInput {
  36084. s.ClientToken = &v
  36085. return s
  36086. }
  36087. // SetDescription sets the Description field's value.
  36088. func (s *ImportSnapshotInput) SetDescription(v string) *ImportSnapshotInput {
  36089. s.Description = &v
  36090. return s
  36091. }
  36092. // SetDiskContainer sets the DiskContainer field's value.
  36093. func (s *ImportSnapshotInput) SetDiskContainer(v *SnapshotDiskContainer) *ImportSnapshotInput {
  36094. s.DiskContainer = v
  36095. return s
  36096. }
  36097. // SetDryRun sets the DryRun field's value.
  36098. func (s *ImportSnapshotInput) SetDryRun(v bool) *ImportSnapshotInput {
  36099. s.DryRun = &v
  36100. return s
  36101. }
  36102. // SetRoleName sets the RoleName field's value.
  36103. func (s *ImportSnapshotInput) SetRoleName(v string) *ImportSnapshotInput {
  36104. s.RoleName = &v
  36105. return s
  36106. }
  36107. // Contains the output for ImportSnapshot.
  36108. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotResult
  36109. type ImportSnapshotOutput struct {
  36110. _ struct{} `type:"structure"`
  36111. // A description of the import snapshot task.
  36112. Description *string `locationName:"description" type:"string"`
  36113. // The ID of the import snapshot task.
  36114. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  36115. // Information about the import snapshot task.
  36116. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  36117. }
  36118. // String returns the string representation
  36119. func (s ImportSnapshotOutput) String() string {
  36120. return awsutil.Prettify(s)
  36121. }
  36122. // GoString returns the string representation
  36123. func (s ImportSnapshotOutput) GoString() string {
  36124. return s.String()
  36125. }
  36126. // SetDescription sets the Description field's value.
  36127. func (s *ImportSnapshotOutput) SetDescription(v string) *ImportSnapshotOutput {
  36128. s.Description = &v
  36129. return s
  36130. }
  36131. // SetImportTaskId sets the ImportTaskId field's value.
  36132. func (s *ImportSnapshotOutput) SetImportTaskId(v string) *ImportSnapshotOutput {
  36133. s.ImportTaskId = &v
  36134. return s
  36135. }
  36136. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  36137. func (s *ImportSnapshotOutput) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotOutput {
  36138. s.SnapshotTaskDetail = v
  36139. return s
  36140. }
  36141. // Describes an import snapshot task.
  36142. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotTask
  36143. type ImportSnapshotTask struct {
  36144. _ struct{} `type:"structure"`
  36145. // A description of the import snapshot task.
  36146. Description *string `locationName:"description" type:"string"`
  36147. // The ID of the import snapshot task.
  36148. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  36149. // Describes an import snapshot task.
  36150. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  36151. }
  36152. // String returns the string representation
  36153. func (s ImportSnapshotTask) String() string {
  36154. return awsutil.Prettify(s)
  36155. }
  36156. // GoString returns the string representation
  36157. func (s ImportSnapshotTask) GoString() string {
  36158. return s.String()
  36159. }
  36160. // SetDescription sets the Description field's value.
  36161. func (s *ImportSnapshotTask) SetDescription(v string) *ImportSnapshotTask {
  36162. s.Description = &v
  36163. return s
  36164. }
  36165. // SetImportTaskId sets the ImportTaskId field's value.
  36166. func (s *ImportSnapshotTask) SetImportTaskId(v string) *ImportSnapshotTask {
  36167. s.ImportTaskId = &v
  36168. return s
  36169. }
  36170. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  36171. func (s *ImportSnapshotTask) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotTask {
  36172. s.SnapshotTaskDetail = v
  36173. return s
  36174. }
  36175. // Contains the parameters for ImportVolume.
  36176. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeRequest
  36177. type ImportVolumeInput struct {
  36178. _ struct{} `type:"structure"`
  36179. // The Availability Zone for the resulting EBS volume.
  36180. //
  36181. // AvailabilityZone is a required field
  36182. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  36183. // A description of the volume.
  36184. Description *string `locationName:"description" type:"string"`
  36185. // Checks whether you have the required permissions for the action, without
  36186. // actually making the request, and provides an error response. If you have
  36187. // the required permissions, the error response is DryRunOperation. Otherwise,
  36188. // it is UnauthorizedOperation.
  36189. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36190. // The disk image.
  36191. //
  36192. // Image is a required field
  36193. Image *DiskImageDetail `locationName:"image" type:"structure" required:"true"`
  36194. // The volume size.
  36195. //
  36196. // Volume is a required field
  36197. Volume *VolumeDetail `locationName:"volume" type:"structure" required:"true"`
  36198. }
  36199. // String returns the string representation
  36200. func (s ImportVolumeInput) String() string {
  36201. return awsutil.Prettify(s)
  36202. }
  36203. // GoString returns the string representation
  36204. func (s ImportVolumeInput) GoString() string {
  36205. return s.String()
  36206. }
  36207. // Validate inspects the fields of the type to determine if they are valid.
  36208. func (s *ImportVolumeInput) Validate() error {
  36209. invalidParams := request.ErrInvalidParams{Context: "ImportVolumeInput"}
  36210. if s.AvailabilityZone == nil {
  36211. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  36212. }
  36213. if s.Image == nil {
  36214. invalidParams.Add(request.NewErrParamRequired("Image"))
  36215. }
  36216. if s.Volume == nil {
  36217. invalidParams.Add(request.NewErrParamRequired("Volume"))
  36218. }
  36219. if s.Image != nil {
  36220. if err := s.Image.Validate(); err != nil {
  36221. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  36222. }
  36223. }
  36224. if s.Volume != nil {
  36225. if err := s.Volume.Validate(); err != nil {
  36226. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  36227. }
  36228. }
  36229. if invalidParams.Len() > 0 {
  36230. return invalidParams
  36231. }
  36232. return nil
  36233. }
  36234. // SetAvailabilityZone sets the AvailabilityZone field's value.
  36235. func (s *ImportVolumeInput) SetAvailabilityZone(v string) *ImportVolumeInput {
  36236. s.AvailabilityZone = &v
  36237. return s
  36238. }
  36239. // SetDescription sets the Description field's value.
  36240. func (s *ImportVolumeInput) SetDescription(v string) *ImportVolumeInput {
  36241. s.Description = &v
  36242. return s
  36243. }
  36244. // SetDryRun sets the DryRun field's value.
  36245. func (s *ImportVolumeInput) SetDryRun(v bool) *ImportVolumeInput {
  36246. s.DryRun = &v
  36247. return s
  36248. }
  36249. // SetImage sets the Image field's value.
  36250. func (s *ImportVolumeInput) SetImage(v *DiskImageDetail) *ImportVolumeInput {
  36251. s.Image = v
  36252. return s
  36253. }
  36254. // SetVolume sets the Volume field's value.
  36255. func (s *ImportVolumeInput) SetVolume(v *VolumeDetail) *ImportVolumeInput {
  36256. s.Volume = v
  36257. return s
  36258. }
  36259. // Contains the output for ImportVolume.
  36260. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeResult
  36261. type ImportVolumeOutput struct {
  36262. _ struct{} `type:"structure"`
  36263. // Information about the conversion task.
  36264. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  36265. }
  36266. // String returns the string representation
  36267. func (s ImportVolumeOutput) String() string {
  36268. return awsutil.Prettify(s)
  36269. }
  36270. // GoString returns the string representation
  36271. func (s ImportVolumeOutput) GoString() string {
  36272. return s.String()
  36273. }
  36274. // SetConversionTask sets the ConversionTask field's value.
  36275. func (s *ImportVolumeOutput) SetConversionTask(v *ConversionTask) *ImportVolumeOutput {
  36276. s.ConversionTask = v
  36277. return s
  36278. }
  36279. // Describes an import volume task.
  36280. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeTaskDetails
  36281. type ImportVolumeTaskDetails struct {
  36282. _ struct{} `type:"structure"`
  36283. // The Availability Zone where the resulting volume will reside.
  36284. //
  36285. // AvailabilityZone is a required field
  36286. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  36287. // The number of bytes converted so far.
  36288. //
  36289. // BytesConverted is a required field
  36290. BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"`
  36291. // The description you provided when starting the import volume task.
  36292. Description *string `locationName:"description" type:"string"`
  36293. // The image.
  36294. //
  36295. // Image is a required field
  36296. Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"`
  36297. // The volume.
  36298. //
  36299. // Volume is a required field
  36300. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"`
  36301. }
  36302. // String returns the string representation
  36303. func (s ImportVolumeTaskDetails) String() string {
  36304. return awsutil.Prettify(s)
  36305. }
  36306. // GoString returns the string representation
  36307. func (s ImportVolumeTaskDetails) GoString() string {
  36308. return s.String()
  36309. }
  36310. // SetAvailabilityZone sets the AvailabilityZone field's value.
  36311. func (s *ImportVolumeTaskDetails) SetAvailabilityZone(v string) *ImportVolumeTaskDetails {
  36312. s.AvailabilityZone = &v
  36313. return s
  36314. }
  36315. // SetBytesConverted sets the BytesConverted field's value.
  36316. func (s *ImportVolumeTaskDetails) SetBytesConverted(v int64) *ImportVolumeTaskDetails {
  36317. s.BytesConverted = &v
  36318. return s
  36319. }
  36320. // SetDescription sets the Description field's value.
  36321. func (s *ImportVolumeTaskDetails) SetDescription(v string) *ImportVolumeTaskDetails {
  36322. s.Description = &v
  36323. return s
  36324. }
  36325. // SetImage sets the Image field's value.
  36326. func (s *ImportVolumeTaskDetails) SetImage(v *DiskImageDescription) *ImportVolumeTaskDetails {
  36327. s.Image = v
  36328. return s
  36329. }
  36330. // SetVolume sets the Volume field's value.
  36331. func (s *ImportVolumeTaskDetails) SetVolume(v *DiskImageVolumeDescription) *ImportVolumeTaskDetails {
  36332. s.Volume = v
  36333. return s
  36334. }
  36335. // Describes an instance.
  36336. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Instance
  36337. type Instance struct {
  36338. _ struct{} `type:"structure"`
  36339. // The AMI launch index, which can be used to find this instance in the launch
  36340. // group.
  36341. AmiLaunchIndex *int64 `locationName:"amiLaunchIndex" type:"integer"`
  36342. // The architecture of the image.
  36343. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  36344. // Any block device mapping entries for the instance.
  36345. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  36346. // The idempotency token you provided when you launched the instance, if applicable.
  36347. ClientToken *string `locationName:"clientToken" type:"string"`
  36348. // Indicates whether the instance is optimized for EBS I/O. This optimization
  36349. // provides dedicated throughput to Amazon EBS and an optimized configuration
  36350. // stack to provide optimal I/O performance. This optimization isn't available
  36351. // with all instance types. Additional usage charges apply when using an EBS
  36352. // Optimized instance.
  36353. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  36354. // Specifies whether enhanced networking with ENA is enabled.
  36355. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  36356. // The hypervisor type of the instance.
  36357. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  36358. // The IAM instance profile associated with the instance, if applicable.
  36359. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  36360. // The ID of the AMI used to launch the instance.
  36361. ImageId *string `locationName:"imageId" type:"string"`
  36362. // The ID of the instance.
  36363. InstanceId *string `locationName:"instanceId" type:"string"`
  36364. // Indicates whether this is a Spot instance or a Scheduled Instance.
  36365. InstanceLifecycle *string `locationName:"instanceLifecycle" type:"string" enum:"InstanceLifecycleType"`
  36366. // The instance type.
  36367. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  36368. // The kernel associated with this instance, if applicable.
  36369. KernelId *string `locationName:"kernelId" type:"string"`
  36370. // The name of the key pair, if this instance was launched with an associated
  36371. // key pair.
  36372. KeyName *string `locationName:"keyName" type:"string"`
  36373. // The time the instance was launched.
  36374. LaunchTime *time.Time `locationName:"launchTime" type:"timestamp" timestampFormat:"iso8601"`
  36375. // The monitoring for the instance.
  36376. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  36377. // [EC2-VPC] One or more network interfaces for the instance.
  36378. NetworkInterfaces []*InstanceNetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  36379. // The location where the instance launched, if applicable.
  36380. Placement *Placement `locationName:"placement" type:"structure"`
  36381. // The value is Windows for Windows instances; otherwise blank.
  36382. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  36383. // (IPv4 only) The private DNS hostname name assigned to the instance. This
  36384. // DNS hostname can only be used inside the Amazon EC2 network. This name is
  36385. // not available until the instance enters the running state.
  36386. //
  36387. // [EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided private
  36388. // DNS hostnames if you've enabled DNS resolution and DNS hostnames in your
  36389. // VPC. If you are not using the Amazon-provided DNS server in your VPC, your
  36390. // custom domain name servers must resolve the hostname as appropriate.
  36391. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  36392. // The private IPv4 address assigned to the instance.
  36393. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  36394. // The product codes attached to this instance, if applicable.
  36395. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  36396. // (IPv4 only) The public DNS name assigned to the instance. This name is not
  36397. // available until the instance enters the running state. For EC2-VPC, this
  36398. // name is only available if you've enabled DNS hostnames for your VPC.
  36399. PublicDnsName *string `locationName:"dnsName" type:"string"`
  36400. // The public IPv4 address assigned to the instance, if applicable.
  36401. PublicIpAddress *string `locationName:"ipAddress" type:"string"`
  36402. // The RAM disk associated with this instance, if applicable.
  36403. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  36404. // The root device name (for example, /dev/sda1 or /dev/xvda).
  36405. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  36406. // The root device type used by the AMI. The AMI can use an EBS volume or an
  36407. // instance store volume.
  36408. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  36409. // One or more security groups for the instance.
  36410. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  36411. // Specifies whether to enable an instance launched in a VPC to perform NAT.
  36412. // This controls whether source/destination checking is enabled on the instance.
  36413. // A value of true means checking is enabled, and false means checking is disabled.
  36414. // The value must be false for the instance to perform NAT. For more information,
  36415. // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  36416. // in the Amazon Virtual Private Cloud User Guide.
  36417. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  36418. // If the request is a Spot instance request, the ID of the request.
  36419. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  36420. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  36421. // interface is enabled.
  36422. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  36423. // The current state of the instance.
  36424. State *InstanceState `locationName:"instanceState" type:"structure"`
  36425. // The reason for the most recent state transition.
  36426. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  36427. // The reason for the most recent state transition. This might be an empty string.
  36428. StateTransitionReason *string `locationName:"reason" type:"string"`
  36429. // [EC2-VPC] The ID of the subnet in which the instance is running.
  36430. SubnetId *string `locationName:"subnetId" type:"string"`
  36431. // Any tags assigned to the instance.
  36432. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  36433. // The virtualization type of the instance.
  36434. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  36435. // [EC2-VPC] The ID of the VPC in which the instance is running.
  36436. VpcId *string `locationName:"vpcId" type:"string"`
  36437. }
  36438. // String returns the string representation
  36439. func (s Instance) String() string {
  36440. return awsutil.Prettify(s)
  36441. }
  36442. // GoString returns the string representation
  36443. func (s Instance) GoString() string {
  36444. return s.String()
  36445. }
  36446. // SetAmiLaunchIndex sets the AmiLaunchIndex field's value.
  36447. func (s *Instance) SetAmiLaunchIndex(v int64) *Instance {
  36448. s.AmiLaunchIndex = &v
  36449. return s
  36450. }
  36451. // SetArchitecture sets the Architecture field's value.
  36452. func (s *Instance) SetArchitecture(v string) *Instance {
  36453. s.Architecture = &v
  36454. return s
  36455. }
  36456. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  36457. func (s *Instance) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *Instance {
  36458. s.BlockDeviceMappings = v
  36459. return s
  36460. }
  36461. // SetClientToken sets the ClientToken field's value.
  36462. func (s *Instance) SetClientToken(v string) *Instance {
  36463. s.ClientToken = &v
  36464. return s
  36465. }
  36466. // SetEbsOptimized sets the EbsOptimized field's value.
  36467. func (s *Instance) SetEbsOptimized(v bool) *Instance {
  36468. s.EbsOptimized = &v
  36469. return s
  36470. }
  36471. // SetEnaSupport sets the EnaSupport field's value.
  36472. func (s *Instance) SetEnaSupport(v bool) *Instance {
  36473. s.EnaSupport = &v
  36474. return s
  36475. }
  36476. // SetHypervisor sets the Hypervisor field's value.
  36477. func (s *Instance) SetHypervisor(v string) *Instance {
  36478. s.Hypervisor = &v
  36479. return s
  36480. }
  36481. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  36482. func (s *Instance) SetIamInstanceProfile(v *IamInstanceProfile) *Instance {
  36483. s.IamInstanceProfile = v
  36484. return s
  36485. }
  36486. // SetImageId sets the ImageId field's value.
  36487. func (s *Instance) SetImageId(v string) *Instance {
  36488. s.ImageId = &v
  36489. return s
  36490. }
  36491. // SetInstanceId sets the InstanceId field's value.
  36492. func (s *Instance) SetInstanceId(v string) *Instance {
  36493. s.InstanceId = &v
  36494. return s
  36495. }
  36496. // SetInstanceLifecycle sets the InstanceLifecycle field's value.
  36497. func (s *Instance) SetInstanceLifecycle(v string) *Instance {
  36498. s.InstanceLifecycle = &v
  36499. return s
  36500. }
  36501. // SetInstanceType sets the InstanceType field's value.
  36502. func (s *Instance) SetInstanceType(v string) *Instance {
  36503. s.InstanceType = &v
  36504. return s
  36505. }
  36506. // SetKernelId sets the KernelId field's value.
  36507. func (s *Instance) SetKernelId(v string) *Instance {
  36508. s.KernelId = &v
  36509. return s
  36510. }
  36511. // SetKeyName sets the KeyName field's value.
  36512. func (s *Instance) SetKeyName(v string) *Instance {
  36513. s.KeyName = &v
  36514. return s
  36515. }
  36516. // SetLaunchTime sets the LaunchTime field's value.
  36517. func (s *Instance) SetLaunchTime(v time.Time) *Instance {
  36518. s.LaunchTime = &v
  36519. return s
  36520. }
  36521. // SetMonitoring sets the Monitoring field's value.
  36522. func (s *Instance) SetMonitoring(v *Monitoring) *Instance {
  36523. s.Monitoring = v
  36524. return s
  36525. }
  36526. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  36527. func (s *Instance) SetNetworkInterfaces(v []*InstanceNetworkInterface) *Instance {
  36528. s.NetworkInterfaces = v
  36529. return s
  36530. }
  36531. // SetPlacement sets the Placement field's value.
  36532. func (s *Instance) SetPlacement(v *Placement) *Instance {
  36533. s.Placement = v
  36534. return s
  36535. }
  36536. // SetPlatform sets the Platform field's value.
  36537. func (s *Instance) SetPlatform(v string) *Instance {
  36538. s.Platform = &v
  36539. return s
  36540. }
  36541. // SetPrivateDnsName sets the PrivateDnsName field's value.
  36542. func (s *Instance) SetPrivateDnsName(v string) *Instance {
  36543. s.PrivateDnsName = &v
  36544. return s
  36545. }
  36546. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  36547. func (s *Instance) SetPrivateIpAddress(v string) *Instance {
  36548. s.PrivateIpAddress = &v
  36549. return s
  36550. }
  36551. // SetProductCodes sets the ProductCodes field's value.
  36552. func (s *Instance) SetProductCodes(v []*ProductCode) *Instance {
  36553. s.ProductCodes = v
  36554. return s
  36555. }
  36556. // SetPublicDnsName sets the PublicDnsName field's value.
  36557. func (s *Instance) SetPublicDnsName(v string) *Instance {
  36558. s.PublicDnsName = &v
  36559. return s
  36560. }
  36561. // SetPublicIpAddress sets the PublicIpAddress field's value.
  36562. func (s *Instance) SetPublicIpAddress(v string) *Instance {
  36563. s.PublicIpAddress = &v
  36564. return s
  36565. }
  36566. // SetRamdiskId sets the RamdiskId field's value.
  36567. func (s *Instance) SetRamdiskId(v string) *Instance {
  36568. s.RamdiskId = &v
  36569. return s
  36570. }
  36571. // SetRootDeviceName sets the RootDeviceName field's value.
  36572. func (s *Instance) SetRootDeviceName(v string) *Instance {
  36573. s.RootDeviceName = &v
  36574. return s
  36575. }
  36576. // SetRootDeviceType sets the RootDeviceType field's value.
  36577. func (s *Instance) SetRootDeviceType(v string) *Instance {
  36578. s.RootDeviceType = &v
  36579. return s
  36580. }
  36581. // SetSecurityGroups sets the SecurityGroups field's value.
  36582. func (s *Instance) SetSecurityGroups(v []*GroupIdentifier) *Instance {
  36583. s.SecurityGroups = v
  36584. return s
  36585. }
  36586. // SetSourceDestCheck sets the SourceDestCheck field's value.
  36587. func (s *Instance) SetSourceDestCheck(v bool) *Instance {
  36588. s.SourceDestCheck = &v
  36589. return s
  36590. }
  36591. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  36592. func (s *Instance) SetSpotInstanceRequestId(v string) *Instance {
  36593. s.SpotInstanceRequestId = &v
  36594. return s
  36595. }
  36596. // SetSriovNetSupport sets the SriovNetSupport field's value.
  36597. func (s *Instance) SetSriovNetSupport(v string) *Instance {
  36598. s.SriovNetSupport = &v
  36599. return s
  36600. }
  36601. // SetState sets the State field's value.
  36602. func (s *Instance) SetState(v *InstanceState) *Instance {
  36603. s.State = v
  36604. return s
  36605. }
  36606. // SetStateReason sets the StateReason field's value.
  36607. func (s *Instance) SetStateReason(v *StateReason) *Instance {
  36608. s.StateReason = v
  36609. return s
  36610. }
  36611. // SetStateTransitionReason sets the StateTransitionReason field's value.
  36612. func (s *Instance) SetStateTransitionReason(v string) *Instance {
  36613. s.StateTransitionReason = &v
  36614. return s
  36615. }
  36616. // SetSubnetId sets the SubnetId field's value.
  36617. func (s *Instance) SetSubnetId(v string) *Instance {
  36618. s.SubnetId = &v
  36619. return s
  36620. }
  36621. // SetTags sets the Tags field's value.
  36622. func (s *Instance) SetTags(v []*Tag) *Instance {
  36623. s.Tags = v
  36624. return s
  36625. }
  36626. // SetVirtualizationType sets the VirtualizationType field's value.
  36627. func (s *Instance) SetVirtualizationType(v string) *Instance {
  36628. s.VirtualizationType = &v
  36629. return s
  36630. }
  36631. // SetVpcId sets the VpcId field's value.
  36632. func (s *Instance) SetVpcId(v string) *Instance {
  36633. s.VpcId = &v
  36634. return s
  36635. }
  36636. // Describes a block device mapping.
  36637. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMapping
  36638. type InstanceBlockDeviceMapping struct {
  36639. _ struct{} `type:"structure"`
  36640. // The device name exposed to the instance (for example, /dev/sdh or xvdh).
  36641. DeviceName *string `locationName:"deviceName" type:"string"`
  36642. // Parameters used to automatically set up EBS volumes when the instance is
  36643. // launched.
  36644. Ebs *EbsInstanceBlockDevice `locationName:"ebs" type:"structure"`
  36645. }
  36646. // String returns the string representation
  36647. func (s InstanceBlockDeviceMapping) String() string {
  36648. return awsutil.Prettify(s)
  36649. }
  36650. // GoString returns the string representation
  36651. func (s InstanceBlockDeviceMapping) GoString() string {
  36652. return s.String()
  36653. }
  36654. // SetDeviceName sets the DeviceName field's value.
  36655. func (s *InstanceBlockDeviceMapping) SetDeviceName(v string) *InstanceBlockDeviceMapping {
  36656. s.DeviceName = &v
  36657. return s
  36658. }
  36659. // SetEbs sets the Ebs field's value.
  36660. func (s *InstanceBlockDeviceMapping) SetEbs(v *EbsInstanceBlockDevice) *InstanceBlockDeviceMapping {
  36661. s.Ebs = v
  36662. return s
  36663. }
  36664. // Describes a block device mapping entry.
  36665. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMappingSpecification
  36666. type InstanceBlockDeviceMappingSpecification struct {
  36667. _ struct{} `type:"structure"`
  36668. // The device name exposed to the instance (for example, /dev/sdh or xvdh).
  36669. DeviceName *string `locationName:"deviceName" type:"string"`
  36670. // Parameters used to automatically set up EBS volumes when the instance is
  36671. // launched.
  36672. Ebs *EbsInstanceBlockDeviceSpecification `locationName:"ebs" type:"structure"`
  36673. // suppress the specified device included in the block device mapping.
  36674. NoDevice *string `locationName:"noDevice" type:"string"`
  36675. // The virtual device name.
  36676. VirtualName *string `locationName:"virtualName" type:"string"`
  36677. }
  36678. // String returns the string representation
  36679. func (s InstanceBlockDeviceMappingSpecification) String() string {
  36680. return awsutil.Prettify(s)
  36681. }
  36682. // GoString returns the string representation
  36683. func (s InstanceBlockDeviceMappingSpecification) GoString() string {
  36684. return s.String()
  36685. }
  36686. // SetDeviceName sets the DeviceName field's value.
  36687. func (s *InstanceBlockDeviceMappingSpecification) SetDeviceName(v string) *InstanceBlockDeviceMappingSpecification {
  36688. s.DeviceName = &v
  36689. return s
  36690. }
  36691. // SetEbs sets the Ebs field's value.
  36692. func (s *InstanceBlockDeviceMappingSpecification) SetEbs(v *EbsInstanceBlockDeviceSpecification) *InstanceBlockDeviceMappingSpecification {
  36693. s.Ebs = v
  36694. return s
  36695. }
  36696. // SetNoDevice sets the NoDevice field's value.
  36697. func (s *InstanceBlockDeviceMappingSpecification) SetNoDevice(v string) *InstanceBlockDeviceMappingSpecification {
  36698. s.NoDevice = &v
  36699. return s
  36700. }
  36701. // SetVirtualName sets the VirtualName field's value.
  36702. func (s *InstanceBlockDeviceMappingSpecification) SetVirtualName(v string) *InstanceBlockDeviceMappingSpecification {
  36703. s.VirtualName = &v
  36704. return s
  36705. }
  36706. // Information about the instance type that the Dedicated Host supports.
  36707. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceCapacity
  36708. type InstanceCapacity struct {
  36709. _ struct{} `type:"structure"`
  36710. // The number of instances that can still be launched onto the Dedicated Host.
  36711. AvailableCapacity *int64 `locationName:"availableCapacity" type:"integer"`
  36712. // The instance type size supported by the Dedicated Host.
  36713. InstanceType *string `locationName:"instanceType" type:"string"`
  36714. // The total number of instances that can be launched onto the Dedicated Host.
  36715. TotalCapacity *int64 `locationName:"totalCapacity" type:"integer"`
  36716. }
  36717. // String returns the string representation
  36718. func (s InstanceCapacity) String() string {
  36719. return awsutil.Prettify(s)
  36720. }
  36721. // GoString returns the string representation
  36722. func (s InstanceCapacity) GoString() string {
  36723. return s.String()
  36724. }
  36725. // SetAvailableCapacity sets the AvailableCapacity field's value.
  36726. func (s *InstanceCapacity) SetAvailableCapacity(v int64) *InstanceCapacity {
  36727. s.AvailableCapacity = &v
  36728. return s
  36729. }
  36730. // SetInstanceType sets the InstanceType field's value.
  36731. func (s *InstanceCapacity) SetInstanceType(v string) *InstanceCapacity {
  36732. s.InstanceType = &v
  36733. return s
  36734. }
  36735. // SetTotalCapacity sets the TotalCapacity field's value.
  36736. func (s *InstanceCapacity) SetTotalCapacity(v int64) *InstanceCapacity {
  36737. s.TotalCapacity = &v
  36738. return s
  36739. }
  36740. // Describes a Reserved Instance listing state.
  36741. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceCount
  36742. type InstanceCount struct {
  36743. _ struct{} `type:"structure"`
  36744. // The number of listed Reserved Instances in the state specified by the state.
  36745. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  36746. // The states of the listed Reserved Instances.
  36747. State *string `locationName:"state" type:"string" enum:"ListingState"`
  36748. }
  36749. // String returns the string representation
  36750. func (s InstanceCount) String() string {
  36751. return awsutil.Prettify(s)
  36752. }
  36753. // GoString returns the string representation
  36754. func (s InstanceCount) GoString() string {
  36755. return s.String()
  36756. }
  36757. // SetInstanceCount sets the InstanceCount field's value.
  36758. func (s *InstanceCount) SetInstanceCount(v int64) *InstanceCount {
  36759. s.InstanceCount = &v
  36760. return s
  36761. }
  36762. // SetState sets the State field's value.
  36763. func (s *InstanceCount) SetState(v string) *InstanceCount {
  36764. s.State = &v
  36765. return s
  36766. }
  36767. // Describes an instance to export.
  36768. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceExportDetails
  36769. type InstanceExportDetails struct {
  36770. _ struct{} `type:"structure"`
  36771. // The ID of the resource being exported.
  36772. InstanceId *string `locationName:"instanceId" type:"string"`
  36773. // The target virtualization environment.
  36774. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  36775. }
  36776. // String returns the string representation
  36777. func (s InstanceExportDetails) String() string {
  36778. return awsutil.Prettify(s)
  36779. }
  36780. // GoString returns the string representation
  36781. func (s InstanceExportDetails) GoString() string {
  36782. return s.String()
  36783. }
  36784. // SetInstanceId sets the InstanceId field's value.
  36785. func (s *InstanceExportDetails) SetInstanceId(v string) *InstanceExportDetails {
  36786. s.InstanceId = &v
  36787. return s
  36788. }
  36789. // SetTargetEnvironment sets the TargetEnvironment field's value.
  36790. func (s *InstanceExportDetails) SetTargetEnvironment(v string) *InstanceExportDetails {
  36791. s.TargetEnvironment = &v
  36792. return s
  36793. }
  36794. // Describes an IPv6 address.
  36795. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceIpv6Address
  36796. type InstanceIpv6Address struct {
  36797. _ struct{} `type:"structure"`
  36798. // The IPv6 address.
  36799. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  36800. }
  36801. // String returns the string representation
  36802. func (s InstanceIpv6Address) String() string {
  36803. return awsutil.Prettify(s)
  36804. }
  36805. // GoString returns the string representation
  36806. func (s InstanceIpv6Address) GoString() string {
  36807. return s.String()
  36808. }
  36809. // SetIpv6Address sets the Ipv6Address field's value.
  36810. func (s *InstanceIpv6Address) SetIpv6Address(v string) *InstanceIpv6Address {
  36811. s.Ipv6Address = &v
  36812. return s
  36813. }
  36814. // Describes the monitoring of an instance.
  36815. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMonitoring
  36816. type InstanceMonitoring struct {
  36817. _ struct{} `type:"structure"`
  36818. // The ID of the instance.
  36819. InstanceId *string `locationName:"instanceId" type:"string"`
  36820. // The monitoring for the instance.
  36821. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  36822. }
  36823. // String returns the string representation
  36824. func (s InstanceMonitoring) String() string {
  36825. return awsutil.Prettify(s)
  36826. }
  36827. // GoString returns the string representation
  36828. func (s InstanceMonitoring) GoString() string {
  36829. return s.String()
  36830. }
  36831. // SetInstanceId sets the InstanceId field's value.
  36832. func (s *InstanceMonitoring) SetInstanceId(v string) *InstanceMonitoring {
  36833. s.InstanceId = &v
  36834. return s
  36835. }
  36836. // SetMonitoring sets the Monitoring field's value.
  36837. func (s *InstanceMonitoring) SetMonitoring(v *Monitoring) *InstanceMonitoring {
  36838. s.Monitoring = v
  36839. return s
  36840. }
  36841. // Describes a network interface.
  36842. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterface
  36843. type InstanceNetworkInterface struct {
  36844. _ struct{} `type:"structure"`
  36845. // The association information for an Elastic IPv4 associated with the network
  36846. // interface.
  36847. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  36848. // The network interface attachment.
  36849. Attachment *InstanceNetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  36850. // The description.
  36851. Description *string `locationName:"description" type:"string"`
  36852. // One or more security groups.
  36853. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  36854. // One or more IPv6 addresses associated with the network interface.
  36855. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  36856. // The MAC address.
  36857. MacAddress *string `locationName:"macAddress" type:"string"`
  36858. // The ID of the network interface.
  36859. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  36860. // The ID of the AWS account that created the network interface.
  36861. OwnerId *string `locationName:"ownerId" type:"string"`
  36862. // The private DNS name.
  36863. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  36864. // The IPv4 address of the network interface within the subnet.
  36865. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  36866. // One or more private IPv4 addresses associated with the network interface.
  36867. PrivateIpAddresses []*InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  36868. // Indicates whether to validate network traffic to or from this network interface.
  36869. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  36870. // The status of the network interface.
  36871. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  36872. // The ID of the subnet.
  36873. SubnetId *string `locationName:"subnetId" type:"string"`
  36874. // The ID of the VPC.
  36875. VpcId *string `locationName:"vpcId" type:"string"`
  36876. }
  36877. // String returns the string representation
  36878. func (s InstanceNetworkInterface) String() string {
  36879. return awsutil.Prettify(s)
  36880. }
  36881. // GoString returns the string representation
  36882. func (s InstanceNetworkInterface) GoString() string {
  36883. return s.String()
  36884. }
  36885. // SetAssociation sets the Association field's value.
  36886. func (s *InstanceNetworkInterface) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstanceNetworkInterface {
  36887. s.Association = v
  36888. return s
  36889. }
  36890. // SetAttachment sets the Attachment field's value.
  36891. func (s *InstanceNetworkInterface) SetAttachment(v *InstanceNetworkInterfaceAttachment) *InstanceNetworkInterface {
  36892. s.Attachment = v
  36893. return s
  36894. }
  36895. // SetDescription sets the Description field's value.
  36896. func (s *InstanceNetworkInterface) SetDescription(v string) *InstanceNetworkInterface {
  36897. s.Description = &v
  36898. return s
  36899. }
  36900. // SetGroups sets the Groups field's value.
  36901. func (s *InstanceNetworkInterface) SetGroups(v []*GroupIdentifier) *InstanceNetworkInterface {
  36902. s.Groups = v
  36903. return s
  36904. }
  36905. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  36906. func (s *InstanceNetworkInterface) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterface {
  36907. s.Ipv6Addresses = v
  36908. return s
  36909. }
  36910. // SetMacAddress sets the MacAddress field's value.
  36911. func (s *InstanceNetworkInterface) SetMacAddress(v string) *InstanceNetworkInterface {
  36912. s.MacAddress = &v
  36913. return s
  36914. }
  36915. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  36916. func (s *InstanceNetworkInterface) SetNetworkInterfaceId(v string) *InstanceNetworkInterface {
  36917. s.NetworkInterfaceId = &v
  36918. return s
  36919. }
  36920. // SetOwnerId sets the OwnerId field's value.
  36921. func (s *InstanceNetworkInterface) SetOwnerId(v string) *InstanceNetworkInterface {
  36922. s.OwnerId = &v
  36923. return s
  36924. }
  36925. // SetPrivateDnsName sets the PrivateDnsName field's value.
  36926. func (s *InstanceNetworkInterface) SetPrivateDnsName(v string) *InstanceNetworkInterface {
  36927. s.PrivateDnsName = &v
  36928. return s
  36929. }
  36930. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  36931. func (s *InstanceNetworkInterface) SetPrivateIpAddress(v string) *InstanceNetworkInterface {
  36932. s.PrivateIpAddress = &v
  36933. return s
  36934. }
  36935. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  36936. func (s *InstanceNetworkInterface) SetPrivateIpAddresses(v []*InstancePrivateIpAddress) *InstanceNetworkInterface {
  36937. s.PrivateIpAddresses = v
  36938. return s
  36939. }
  36940. // SetSourceDestCheck sets the SourceDestCheck field's value.
  36941. func (s *InstanceNetworkInterface) SetSourceDestCheck(v bool) *InstanceNetworkInterface {
  36942. s.SourceDestCheck = &v
  36943. return s
  36944. }
  36945. // SetStatus sets the Status field's value.
  36946. func (s *InstanceNetworkInterface) SetStatus(v string) *InstanceNetworkInterface {
  36947. s.Status = &v
  36948. return s
  36949. }
  36950. // SetSubnetId sets the SubnetId field's value.
  36951. func (s *InstanceNetworkInterface) SetSubnetId(v string) *InstanceNetworkInterface {
  36952. s.SubnetId = &v
  36953. return s
  36954. }
  36955. // SetVpcId sets the VpcId field's value.
  36956. func (s *InstanceNetworkInterface) SetVpcId(v string) *InstanceNetworkInterface {
  36957. s.VpcId = &v
  36958. return s
  36959. }
  36960. // Describes association information for an Elastic IP address (IPv4).
  36961. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceAssociation
  36962. type InstanceNetworkInterfaceAssociation struct {
  36963. _ struct{} `type:"structure"`
  36964. // The ID of the owner of the Elastic IP address.
  36965. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  36966. // The public DNS name.
  36967. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  36968. // The public IP address or Elastic IP address bound to the network interface.
  36969. PublicIp *string `locationName:"publicIp" type:"string"`
  36970. }
  36971. // String returns the string representation
  36972. func (s InstanceNetworkInterfaceAssociation) String() string {
  36973. return awsutil.Prettify(s)
  36974. }
  36975. // GoString returns the string representation
  36976. func (s InstanceNetworkInterfaceAssociation) GoString() string {
  36977. return s.String()
  36978. }
  36979. // SetIpOwnerId sets the IpOwnerId field's value.
  36980. func (s *InstanceNetworkInterfaceAssociation) SetIpOwnerId(v string) *InstanceNetworkInterfaceAssociation {
  36981. s.IpOwnerId = &v
  36982. return s
  36983. }
  36984. // SetPublicDnsName sets the PublicDnsName field's value.
  36985. func (s *InstanceNetworkInterfaceAssociation) SetPublicDnsName(v string) *InstanceNetworkInterfaceAssociation {
  36986. s.PublicDnsName = &v
  36987. return s
  36988. }
  36989. // SetPublicIp sets the PublicIp field's value.
  36990. func (s *InstanceNetworkInterfaceAssociation) SetPublicIp(v string) *InstanceNetworkInterfaceAssociation {
  36991. s.PublicIp = &v
  36992. return s
  36993. }
  36994. // Describes a network interface attachment.
  36995. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceAttachment
  36996. type InstanceNetworkInterfaceAttachment struct {
  36997. _ struct{} `type:"structure"`
  36998. // The time stamp when the attachment initiated.
  36999. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  37000. // The ID of the network interface attachment.
  37001. AttachmentId *string `locationName:"attachmentId" type:"string"`
  37002. // Indicates whether the network interface is deleted when the instance is terminated.
  37003. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  37004. // The index of the device on the instance for the network interface attachment.
  37005. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  37006. // The attachment state.
  37007. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  37008. }
  37009. // String returns the string representation
  37010. func (s InstanceNetworkInterfaceAttachment) String() string {
  37011. return awsutil.Prettify(s)
  37012. }
  37013. // GoString returns the string representation
  37014. func (s InstanceNetworkInterfaceAttachment) GoString() string {
  37015. return s.String()
  37016. }
  37017. // SetAttachTime sets the AttachTime field's value.
  37018. func (s *InstanceNetworkInterfaceAttachment) SetAttachTime(v time.Time) *InstanceNetworkInterfaceAttachment {
  37019. s.AttachTime = &v
  37020. return s
  37021. }
  37022. // SetAttachmentId sets the AttachmentId field's value.
  37023. func (s *InstanceNetworkInterfaceAttachment) SetAttachmentId(v string) *InstanceNetworkInterfaceAttachment {
  37024. s.AttachmentId = &v
  37025. return s
  37026. }
  37027. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  37028. func (s *InstanceNetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceAttachment {
  37029. s.DeleteOnTermination = &v
  37030. return s
  37031. }
  37032. // SetDeviceIndex sets the DeviceIndex field's value.
  37033. func (s *InstanceNetworkInterfaceAttachment) SetDeviceIndex(v int64) *InstanceNetworkInterfaceAttachment {
  37034. s.DeviceIndex = &v
  37035. return s
  37036. }
  37037. // SetStatus sets the Status field's value.
  37038. func (s *InstanceNetworkInterfaceAttachment) SetStatus(v string) *InstanceNetworkInterfaceAttachment {
  37039. s.Status = &v
  37040. return s
  37041. }
  37042. // Describes a network interface.
  37043. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceSpecification
  37044. type InstanceNetworkInterfaceSpecification struct {
  37045. _ struct{} `type:"structure"`
  37046. // Indicates whether to assign a public IPv4 address to an instance you launch
  37047. // in a VPC. The public IP address can only be assigned to a network interface
  37048. // for eth0, and can only be assigned to a new network interface, not an existing
  37049. // one. You cannot specify more than one network interface in the request. If
  37050. // launching into a default subnet, the default value is true.
  37051. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  37052. // If set to true, the interface is deleted when the instance is terminated.
  37053. // You can specify true only if creating a new network interface when launching
  37054. // an instance.
  37055. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  37056. // The description of the network interface. Applies only if creating a network
  37057. // interface when launching an instance.
  37058. Description *string `locationName:"description" type:"string"`
  37059. // The index of the device on the instance for the network interface attachment.
  37060. // If you are specifying a network interface in a RunInstances request, you
  37061. // must provide the device index.
  37062. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  37063. // The IDs of the security groups for the network interface. Applies only if
  37064. // creating a network interface when launching an instance.
  37065. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  37066. // A number of IPv6 addresses to assign to the network interface. Amazon EC2
  37067. // chooses the IPv6 addresses from the range of the subnet. You cannot specify
  37068. // this option and the option to assign specific IPv6 addresses in the same
  37069. // request. You can specify this option if you've specified a minimum number
  37070. // of instances to launch.
  37071. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  37072. // One or more IPv6 addresses to assign to the network interface. You cannot
  37073. // specify this option and the option to assign a number of IPv6 addresses in
  37074. // the same request. You cannot specify this option if you've specified a minimum
  37075. // number of instances to launch.
  37076. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" queryName:"Ipv6Addresses" locationNameList:"item" type:"list"`
  37077. // The ID of the network interface.
  37078. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  37079. // The private IPv4 address of the network interface. Applies only if creating
  37080. // a network interface when launching an instance. You cannot specify this option
  37081. // if you're launching more than one instance in a RunInstances request.
  37082. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  37083. // One or more private IPv4 addresses to assign to the network interface. Only
  37084. // one private IPv4 address can be designated as primary. You cannot specify
  37085. // this option if you're launching more than one instance in a RunInstances
  37086. // request.
  37087. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"`
  37088. // The number of secondary private IPv4 addresses. You can't specify this option
  37089. // and specify more than one private IP address using the private IP addresses
  37090. // option. You cannot specify this option if you're launching more than one
  37091. // instance in a RunInstances request.
  37092. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  37093. // The ID of the subnet associated with the network string. Applies only if
  37094. // creating a network interface when launching an instance.
  37095. SubnetId *string `locationName:"subnetId" type:"string"`
  37096. }
  37097. // String returns the string representation
  37098. func (s InstanceNetworkInterfaceSpecification) String() string {
  37099. return awsutil.Prettify(s)
  37100. }
  37101. // GoString returns the string representation
  37102. func (s InstanceNetworkInterfaceSpecification) GoString() string {
  37103. return s.String()
  37104. }
  37105. // Validate inspects the fields of the type to determine if they are valid.
  37106. func (s *InstanceNetworkInterfaceSpecification) Validate() error {
  37107. invalidParams := request.ErrInvalidParams{Context: "InstanceNetworkInterfaceSpecification"}
  37108. if s.PrivateIpAddresses != nil {
  37109. for i, v := range s.PrivateIpAddresses {
  37110. if v == nil {
  37111. continue
  37112. }
  37113. if err := v.Validate(); err != nil {
  37114. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  37115. }
  37116. }
  37117. }
  37118. if invalidParams.Len() > 0 {
  37119. return invalidParams
  37120. }
  37121. return nil
  37122. }
  37123. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  37124. func (s *InstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *InstanceNetworkInterfaceSpecification {
  37125. s.AssociatePublicIpAddress = &v
  37126. return s
  37127. }
  37128. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  37129. func (s *InstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceSpecification {
  37130. s.DeleteOnTermination = &v
  37131. return s
  37132. }
  37133. // SetDescription sets the Description field's value.
  37134. func (s *InstanceNetworkInterfaceSpecification) SetDescription(v string) *InstanceNetworkInterfaceSpecification {
  37135. s.Description = &v
  37136. return s
  37137. }
  37138. // SetDeviceIndex sets the DeviceIndex field's value.
  37139. func (s *InstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *InstanceNetworkInterfaceSpecification {
  37140. s.DeviceIndex = &v
  37141. return s
  37142. }
  37143. // SetGroups sets the Groups field's value.
  37144. func (s *InstanceNetworkInterfaceSpecification) SetGroups(v []*string) *InstanceNetworkInterfaceSpecification {
  37145. s.Groups = v
  37146. return s
  37147. }
  37148. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  37149. func (s *InstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  37150. s.Ipv6AddressCount = &v
  37151. return s
  37152. }
  37153. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  37154. func (s *InstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterfaceSpecification {
  37155. s.Ipv6Addresses = v
  37156. return s
  37157. }
  37158. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  37159. func (s *InstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *InstanceNetworkInterfaceSpecification {
  37160. s.NetworkInterfaceId = &v
  37161. return s
  37162. }
  37163. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  37164. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *InstanceNetworkInterfaceSpecification {
  37165. s.PrivateIpAddress = &v
  37166. return s
  37167. }
  37168. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  37169. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *InstanceNetworkInterfaceSpecification {
  37170. s.PrivateIpAddresses = v
  37171. return s
  37172. }
  37173. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  37174. func (s *InstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  37175. s.SecondaryPrivateIpAddressCount = &v
  37176. return s
  37177. }
  37178. // SetSubnetId sets the SubnetId field's value.
  37179. func (s *InstanceNetworkInterfaceSpecification) SetSubnetId(v string) *InstanceNetworkInterfaceSpecification {
  37180. s.SubnetId = &v
  37181. return s
  37182. }
  37183. // Describes a private IPv4 address.
  37184. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstancePrivateIpAddress
  37185. type InstancePrivateIpAddress struct {
  37186. _ struct{} `type:"structure"`
  37187. // The association information for an Elastic IP address for the network interface.
  37188. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  37189. // Indicates whether this IPv4 address is the primary private IP address of
  37190. // the network interface.
  37191. Primary *bool `locationName:"primary" type:"boolean"`
  37192. // The private IPv4 DNS name.
  37193. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  37194. // The private IPv4 address of the network interface.
  37195. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  37196. }
  37197. // String returns the string representation
  37198. func (s InstancePrivateIpAddress) String() string {
  37199. return awsutil.Prettify(s)
  37200. }
  37201. // GoString returns the string representation
  37202. func (s InstancePrivateIpAddress) GoString() string {
  37203. return s.String()
  37204. }
  37205. // SetAssociation sets the Association field's value.
  37206. func (s *InstancePrivateIpAddress) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstancePrivateIpAddress {
  37207. s.Association = v
  37208. return s
  37209. }
  37210. // SetPrimary sets the Primary field's value.
  37211. func (s *InstancePrivateIpAddress) SetPrimary(v bool) *InstancePrivateIpAddress {
  37212. s.Primary = &v
  37213. return s
  37214. }
  37215. // SetPrivateDnsName sets the PrivateDnsName field's value.
  37216. func (s *InstancePrivateIpAddress) SetPrivateDnsName(v string) *InstancePrivateIpAddress {
  37217. s.PrivateDnsName = &v
  37218. return s
  37219. }
  37220. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  37221. func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivateIpAddress {
  37222. s.PrivateIpAddress = &v
  37223. return s
  37224. }
  37225. // Describes the current state of an instance.
  37226. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceState
  37227. type InstanceState struct {
  37228. _ struct{} `type:"structure"`
  37229. // The low byte represents the state. The high byte is an opaque internal value
  37230. // and should be ignored.
  37231. //
  37232. // * 0 : pending
  37233. //
  37234. // * 16 : running
  37235. //
  37236. // * 32 : shutting-down
  37237. //
  37238. // * 48 : terminated
  37239. //
  37240. // * 64 : stopping
  37241. //
  37242. // * 80 : stopped
  37243. Code *int64 `locationName:"code" type:"integer"`
  37244. // The current state of the instance.
  37245. Name *string `locationName:"name" type:"string" enum:"InstanceStateName"`
  37246. }
  37247. // String returns the string representation
  37248. func (s InstanceState) String() string {
  37249. return awsutil.Prettify(s)
  37250. }
  37251. // GoString returns the string representation
  37252. func (s InstanceState) GoString() string {
  37253. return s.String()
  37254. }
  37255. // SetCode sets the Code field's value.
  37256. func (s *InstanceState) SetCode(v int64) *InstanceState {
  37257. s.Code = &v
  37258. return s
  37259. }
  37260. // SetName sets the Name field's value.
  37261. func (s *InstanceState) SetName(v string) *InstanceState {
  37262. s.Name = &v
  37263. return s
  37264. }
  37265. // Describes an instance state change.
  37266. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStateChange
  37267. type InstanceStateChange struct {
  37268. _ struct{} `type:"structure"`
  37269. // The current state of the instance.
  37270. CurrentState *InstanceState `locationName:"currentState" type:"structure"`
  37271. // The ID of the instance.
  37272. InstanceId *string `locationName:"instanceId" type:"string"`
  37273. // The previous state of the instance.
  37274. PreviousState *InstanceState `locationName:"previousState" type:"structure"`
  37275. }
  37276. // String returns the string representation
  37277. func (s InstanceStateChange) String() string {
  37278. return awsutil.Prettify(s)
  37279. }
  37280. // GoString returns the string representation
  37281. func (s InstanceStateChange) GoString() string {
  37282. return s.String()
  37283. }
  37284. // SetCurrentState sets the CurrentState field's value.
  37285. func (s *InstanceStateChange) SetCurrentState(v *InstanceState) *InstanceStateChange {
  37286. s.CurrentState = v
  37287. return s
  37288. }
  37289. // SetInstanceId sets the InstanceId field's value.
  37290. func (s *InstanceStateChange) SetInstanceId(v string) *InstanceStateChange {
  37291. s.InstanceId = &v
  37292. return s
  37293. }
  37294. // SetPreviousState sets the PreviousState field's value.
  37295. func (s *InstanceStateChange) SetPreviousState(v *InstanceState) *InstanceStateChange {
  37296. s.PreviousState = v
  37297. return s
  37298. }
  37299. // Describes the status of an instance.
  37300. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatus
  37301. type InstanceStatus struct {
  37302. _ struct{} `type:"structure"`
  37303. // The Availability Zone of the instance.
  37304. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  37305. // Any scheduled events associated with the instance.
  37306. Events []*InstanceStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  37307. // The ID of the instance.
  37308. InstanceId *string `locationName:"instanceId" type:"string"`
  37309. // The intended state of the instance. DescribeInstanceStatus requires that
  37310. // an instance be in the running state.
  37311. InstanceState *InstanceState `locationName:"instanceState" type:"structure"`
  37312. // Reports impaired functionality that stems from issues internal to the instance,
  37313. // such as impaired reachability.
  37314. InstanceStatus *InstanceStatusSummary `locationName:"instanceStatus" type:"structure"`
  37315. // Reports impaired functionality that stems from issues related to the systems
  37316. // that support an instance, such as hardware failures and network connectivity
  37317. // problems.
  37318. SystemStatus *InstanceStatusSummary `locationName:"systemStatus" type:"structure"`
  37319. }
  37320. // String returns the string representation
  37321. func (s InstanceStatus) String() string {
  37322. return awsutil.Prettify(s)
  37323. }
  37324. // GoString returns the string representation
  37325. func (s InstanceStatus) GoString() string {
  37326. return s.String()
  37327. }
  37328. // SetAvailabilityZone sets the AvailabilityZone field's value.
  37329. func (s *InstanceStatus) SetAvailabilityZone(v string) *InstanceStatus {
  37330. s.AvailabilityZone = &v
  37331. return s
  37332. }
  37333. // SetEvents sets the Events field's value.
  37334. func (s *InstanceStatus) SetEvents(v []*InstanceStatusEvent) *InstanceStatus {
  37335. s.Events = v
  37336. return s
  37337. }
  37338. // SetInstanceId sets the InstanceId field's value.
  37339. func (s *InstanceStatus) SetInstanceId(v string) *InstanceStatus {
  37340. s.InstanceId = &v
  37341. return s
  37342. }
  37343. // SetInstanceState sets the InstanceState field's value.
  37344. func (s *InstanceStatus) SetInstanceState(v *InstanceState) *InstanceStatus {
  37345. s.InstanceState = v
  37346. return s
  37347. }
  37348. // SetInstanceStatus sets the InstanceStatus field's value.
  37349. func (s *InstanceStatus) SetInstanceStatus(v *InstanceStatusSummary) *InstanceStatus {
  37350. s.InstanceStatus = v
  37351. return s
  37352. }
  37353. // SetSystemStatus sets the SystemStatus field's value.
  37354. func (s *InstanceStatus) SetSystemStatus(v *InstanceStatusSummary) *InstanceStatus {
  37355. s.SystemStatus = v
  37356. return s
  37357. }
  37358. // Describes the instance status.
  37359. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusDetails
  37360. type InstanceStatusDetails struct {
  37361. _ struct{} `type:"structure"`
  37362. // The time when a status check failed. For an instance that was launched and
  37363. // impaired, this is the time when the instance was launched.
  37364. ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp" timestampFormat:"iso8601"`
  37365. // The type of instance status.
  37366. Name *string `locationName:"name" type:"string" enum:"StatusName"`
  37367. // The status.
  37368. Status *string `locationName:"status" type:"string" enum:"StatusType"`
  37369. }
  37370. // String returns the string representation
  37371. func (s InstanceStatusDetails) String() string {
  37372. return awsutil.Prettify(s)
  37373. }
  37374. // GoString returns the string representation
  37375. func (s InstanceStatusDetails) GoString() string {
  37376. return s.String()
  37377. }
  37378. // SetImpairedSince sets the ImpairedSince field's value.
  37379. func (s *InstanceStatusDetails) SetImpairedSince(v time.Time) *InstanceStatusDetails {
  37380. s.ImpairedSince = &v
  37381. return s
  37382. }
  37383. // SetName sets the Name field's value.
  37384. func (s *InstanceStatusDetails) SetName(v string) *InstanceStatusDetails {
  37385. s.Name = &v
  37386. return s
  37387. }
  37388. // SetStatus sets the Status field's value.
  37389. func (s *InstanceStatusDetails) SetStatus(v string) *InstanceStatusDetails {
  37390. s.Status = &v
  37391. return s
  37392. }
  37393. // Describes a scheduled event for an instance.
  37394. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusEvent
  37395. type InstanceStatusEvent struct {
  37396. _ struct{} `type:"structure"`
  37397. // The event code.
  37398. Code *string `locationName:"code" type:"string" enum:"EventCode"`
  37399. // A description of the event.
  37400. //
  37401. // After a scheduled event is completed, it can still be described for up to
  37402. // a week. If the event has been completed, this description starts with the
  37403. // following text: [Completed].
  37404. Description *string `locationName:"description" type:"string"`
  37405. // The latest scheduled end time for the event.
  37406. NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
  37407. // The earliest scheduled start time for the event.
  37408. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
  37409. }
  37410. // String returns the string representation
  37411. func (s InstanceStatusEvent) String() string {
  37412. return awsutil.Prettify(s)
  37413. }
  37414. // GoString returns the string representation
  37415. func (s InstanceStatusEvent) GoString() string {
  37416. return s.String()
  37417. }
  37418. // SetCode sets the Code field's value.
  37419. func (s *InstanceStatusEvent) SetCode(v string) *InstanceStatusEvent {
  37420. s.Code = &v
  37421. return s
  37422. }
  37423. // SetDescription sets the Description field's value.
  37424. func (s *InstanceStatusEvent) SetDescription(v string) *InstanceStatusEvent {
  37425. s.Description = &v
  37426. return s
  37427. }
  37428. // SetNotAfter sets the NotAfter field's value.
  37429. func (s *InstanceStatusEvent) SetNotAfter(v time.Time) *InstanceStatusEvent {
  37430. s.NotAfter = &v
  37431. return s
  37432. }
  37433. // SetNotBefore sets the NotBefore field's value.
  37434. func (s *InstanceStatusEvent) SetNotBefore(v time.Time) *InstanceStatusEvent {
  37435. s.NotBefore = &v
  37436. return s
  37437. }
  37438. // Describes the status of an instance.
  37439. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusSummary
  37440. type InstanceStatusSummary struct {
  37441. _ struct{} `type:"structure"`
  37442. // The system instance health or application instance health.
  37443. Details []*InstanceStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  37444. // The status.
  37445. Status *string `locationName:"status" type:"string" enum:"SummaryStatus"`
  37446. }
  37447. // String returns the string representation
  37448. func (s InstanceStatusSummary) String() string {
  37449. return awsutil.Prettify(s)
  37450. }
  37451. // GoString returns the string representation
  37452. func (s InstanceStatusSummary) GoString() string {
  37453. return s.String()
  37454. }
  37455. // SetDetails sets the Details field's value.
  37456. func (s *InstanceStatusSummary) SetDetails(v []*InstanceStatusDetails) *InstanceStatusSummary {
  37457. s.Details = v
  37458. return s
  37459. }
  37460. // SetStatus sets the Status field's value.
  37461. func (s *InstanceStatusSummary) SetStatus(v string) *InstanceStatusSummary {
  37462. s.Status = &v
  37463. return s
  37464. }
  37465. // Describes an Internet gateway.
  37466. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InternetGateway
  37467. type InternetGateway struct {
  37468. _ struct{} `type:"structure"`
  37469. // Any VPCs attached to the Internet gateway.
  37470. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  37471. // The ID of the Internet gateway.
  37472. InternetGatewayId *string `locationName:"internetGatewayId" type:"string"`
  37473. // Any tags assigned to the Internet gateway.
  37474. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  37475. }
  37476. // String returns the string representation
  37477. func (s InternetGateway) String() string {
  37478. return awsutil.Prettify(s)
  37479. }
  37480. // GoString returns the string representation
  37481. func (s InternetGateway) GoString() string {
  37482. return s.String()
  37483. }
  37484. // SetAttachments sets the Attachments field's value.
  37485. func (s *InternetGateway) SetAttachments(v []*InternetGatewayAttachment) *InternetGateway {
  37486. s.Attachments = v
  37487. return s
  37488. }
  37489. // SetInternetGatewayId sets the InternetGatewayId field's value.
  37490. func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway {
  37491. s.InternetGatewayId = &v
  37492. return s
  37493. }
  37494. // SetTags sets the Tags field's value.
  37495. func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway {
  37496. s.Tags = v
  37497. return s
  37498. }
  37499. // Describes the attachment of a VPC to an Internet gateway or an egress-only
  37500. // Internet gateway.
  37501. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InternetGatewayAttachment
  37502. type InternetGatewayAttachment struct {
  37503. _ struct{} `type:"structure"`
  37504. // The current state of the attachment.
  37505. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  37506. // The ID of the VPC.
  37507. VpcId *string `locationName:"vpcId" type:"string"`
  37508. }
  37509. // String returns the string representation
  37510. func (s InternetGatewayAttachment) String() string {
  37511. return awsutil.Prettify(s)
  37512. }
  37513. // GoString returns the string representation
  37514. func (s InternetGatewayAttachment) GoString() string {
  37515. return s.String()
  37516. }
  37517. // SetState sets the State field's value.
  37518. func (s *InternetGatewayAttachment) SetState(v string) *InternetGatewayAttachment {
  37519. s.State = &v
  37520. return s
  37521. }
  37522. // SetVpcId sets the VpcId field's value.
  37523. func (s *InternetGatewayAttachment) SetVpcId(v string) *InternetGatewayAttachment {
  37524. s.VpcId = &v
  37525. return s
  37526. }
  37527. // Describes a security group rule.
  37528. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IpPermission
  37529. type IpPermission struct {
  37530. _ struct{} `type:"structure"`
  37531. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  37532. // type number. A value of -1 indicates all ICMP/ICMPv6 types.
  37533. FromPort *int64 `locationName:"fromPort" type:"integer"`
  37534. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  37535. //
  37536. // [EC2-VPC only] Use -1 to specify all protocols. When authorizing security
  37537. // group rules, specifying -1 or a protocol number other than tcp, udp, icmp,
  37538. // or 58 (ICMPv6) allows traffic on all ports, regardless of any port range
  37539. // you specify. For tcp, udp, and icmp, you must specify a port range. For 58
  37540. // (ICMPv6), you can optionally specify a port range; if you don't, traffic
  37541. // for all types and codes is allowed when authorizing rules.
  37542. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  37543. // One or more IPv4 ranges.
  37544. IpRanges []*IpRange `locationName:"ipRanges" locationNameList:"item" type:"list"`
  37545. // [EC2-VPC only] One or more IPv6 ranges.
  37546. Ipv6Ranges []*Ipv6Range `locationName:"ipv6Ranges" locationNameList:"item" type:"list"`
  37547. // (Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups
  37548. // only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress
  37549. // request, this is the AWS service that you want to access through a VPC endpoint
  37550. // from instances associated with the security group.
  37551. PrefixListIds []*PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  37552. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
  37553. // A value of -1 indicates all ICMP/ICMPv6 codes for the specified ICMP type.
  37554. ToPort *int64 `locationName:"toPort" type:"integer"`
  37555. // One or more security group and AWS account ID pairs.
  37556. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  37557. }
  37558. // String returns the string representation
  37559. func (s IpPermission) String() string {
  37560. return awsutil.Prettify(s)
  37561. }
  37562. // GoString returns the string representation
  37563. func (s IpPermission) GoString() string {
  37564. return s.String()
  37565. }
  37566. // SetFromPort sets the FromPort field's value.
  37567. func (s *IpPermission) SetFromPort(v int64) *IpPermission {
  37568. s.FromPort = &v
  37569. return s
  37570. }
  37571. // SetIpProtocol sets the IpProtocol field's value.
  37572. func (s *IpPermission) SetIpProtocol(v string) *IpPermission {
  37573. s.IpProtocol = &v
  37574. return s
  37575. }
  37576. // SetIpRanges sets the IpRanges field's value.
  37577. func (s *IpPermission) SetIpRanges(v []*IpRange) *IpPermission {
  37578. s.IpRanges = v
  37579. return s
  37580. }
  37581. // SetIpv6Ranges sets the Ipv6Ranges field's value.
  37582. func (s *IpPermission) SetIpv6Ranges(v []*Ipv6Range) *IpPermission {
  37583. s.Ipv6Ranges = v
  37584. return s
  37585. }
  37586. // SetPrefixListIds sets the PrefixListIds field's value.
  37587. func (s *IpPermission) SetPrefixListIds(v []*PrefixListId) *IpPermission {
  37588. s.PrefixListIds = v
  37589. return s
  37590. }
  37591. // SetToPort sets the ToPort field's value.
  37592. func (s *IpPermission) SetToPort(v int64) *IpPermission {
  37593. s.ToPort = &v
  37594. return s
  37595. }
  37596. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  37597. func (s *IpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *IpPermission {
  37598. s.UserIdGroupPairs = v
  37599. return s
  37600. }
  37601. // Describes an IPv4 range.
  37602. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IpRange
  37603. type IpRange struct {
  37604. _ struct{} `type:"structure"`
  37605. // The IPv4 CIDR range. You can either specify a CIDR range or a source security
  37606. // group, not both. To specify a single IPv4 address, use the /32 prefix.
  37607. CidrIp *string `locationName:"cidrIp" type:"string"`
  37608. }
  37609. // String returns the string representation
  37610. func (s IpRange) String() string {
  37611. return awsutil.Prettify(s)
  37612. }
  37613. // GoString returns the string representation
  37614. func (s IpRange) GoString() string {
  37615. return s.String()
  37616. }
  37617. // SetCidrIp sets the CidrIp field's value.
  37618. func (s *IpRange) SetCidrIp(v string) *IpRange {
  37619. s.CidrIp = &v
  37620. return s
  37621. }
  37622. // Describes an IPv6 CIDR block.
  37623. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Ipv6CidrBlock
  37624. type Ipv6CidrBlock struct {
  37625. _ struct{} `type:"structure"`
  37626. // The IPv6 CIDR block.
  37627. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  37628. }
  37629. // String returns the string representation
  37630. func (s Ipv6CidrBlock) String() string {
  37631. return awsutil.Prettify(s)
  37632. }
  37633. // GoString returns the string representation
  37634. func (s Ipv6CidrBlock) GoString() string {
  37635. return s.String()
  37636. }
  37637. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  37638. func (s *Ipv6CidrBlock) SetIpv6CidrBlock(v string) *Ipv6CidrBlock {
  37639. s.Ipv6CidrBlock = &v
  37640. return s
  37641. }
  37642. // [EC2-VPC only] Describes an IPv6 range.
  37643. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Ipv6Range
  37644. type Ipv6Range struct {
  37645. _ struct{} `type:"structure"`
  37646. // The IPv6 CIDR range. You can either specify a CIDR range or a source security
  37647. // group, not both. To specify a single IPv6 address, use the /128 prefix.
  37648. CidrIpv6 *string `locationName:"cidrIpv6" type:"string"`
  37649. }
  37650. // String returns the string representation
  37651. func (s Ipv6Range) String() string {
  37652. return awsutil.Prettify(s)
  37653. }
  37654. // GoString returns the string representation
  37655. func (s Ipv6Range) GoString() string {
  37656. return s.String()
  37657. }
  37658. // SetCidrIpv6 sets the CidrIpv6 field's value.
  37659. func (s *Ipv6Range) SetCidrIpv6(v string) *Ipv6Range {
  37660. s.CidrIpv6 = &v
  37661. return s
  37662. }
  37663. // Describes a key pair.
  37664. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPairInfo
  37665. type KeyPairInfo struct {
  37666. _ struct{} `type:"structure"`
  37667. // If you used CreateKeyPair to create the key pair, this is the SHA-1 digest
  37668. // of the DER encoded private key. If you used ImportKeyPair to provide AWS
  37669. // the public key, this is the MD5 public key fingerprint as specified in section
  37670. // 4 of RFC4716.
  37671. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  37672. // The name of the key pair.
  37673. KeyName *string `locationName:"keyName" type:"string"`
  37674. }
  37675. // String returns the string representation
  37676. func (s KeyPairInfo) String() string {
  37677. return awsutil.Prettify(s)
  37678. }
  37679. // GoString returns the string representation
  37680. func (s KeyPairInfo) GoString() string {
  37681. return s.String()
  37682. }
  37683. // SetKeyFingerprint sets the KeyFingerprint field's value.
  37684. func (s *KeyPairInfo) SetKeyFingerprint(v string) *KeyPairInfo {
  37685. s.KeyFingerprint = &v
  37686. return s
  37687. }
  37688. // SetKeyName sets the KeyName field's value.
  37689. func (s *KeyPairInfo) SetKeyName(v string) *KeyPairInfo {
  37690. s.KeyName = &v
  37691. return s
  37692. }
  37693. // Describes a launch permission.
  37694. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchPermission
  37695. type LaunchPermission struct {
  37696. _ struct{} `type:"structure"`
  37697. // The name of the group.
  37698. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  37699. // The AWS account ID.
  37700. UserId *string `locationName:"userId" type:"string"`
  37701. }
  37702. // String returns the string representation
  37703. func (s LaunchPermission) String() string {
  37704. return awsutil.Prettify(s)
  37705. }
  37706. // GoString returns the string representation
  37707. func (s LaunchPermission) GoString() string {
  37708. return s.String()
  37709. }
  37710. // SetGroup sets the Group field's value.
  37711. func (s *LaunchPermission) SetGroup(v string) *LaunchPermission {
  37712. s.Group = &v
  37713. return s
  37714. }
  37715. // SetUserId sets the UserId field's value.
  37716. func (s *LaunchPermission) SetUserId(v string) *LaunchPermission {
  37717. s.UserId = &v
  37718. return s
  37719. }
  37720. // Describes a launch permission modification.
  37721. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchPermissionModifications
  37722. type LaunchPermissionModifications struct {
  37723. _ struct{} `type:"structure"`
  37724. // The AWS account ID to add to the list of launch permissions for the AMI.
  37725. Add []*LaunchPermission `locationNameList:"item" type:"list"`
  37726. // The AWS account ID to remove from the list of launch permissions for the
  37727. // AMI.
  37728. Remove []*LaunchPermission `locationNameList:"item" type:"list"`
  37729. }
  37730. // String returns the string representation
  37731. func (s LaunchPermissionModifications) String() string {
  37732. return awsutil.Prettify(s)
  37733. }
  37734. // GoString returns the string representation
  37735. func (s LaunchPermissionModifications) GoString() string {
  37736. return s.String()
  37737. }
  37738. // SetAdd sets the Add field's value.
  37739. func (s *LaunchPermissionModifications) SetAdd(v []*LaunchPermission) *LaunchPermissionModifications {
  37740. s.Add = v
  37741. return s
  37742. }
  37743. // SetRemove sets the Remove field's value.
  37744. func (s *LaunchPermissionModifications) SetRemove(v []*LaunchPermission) *LaunchPermissionModifications {
  37745. s.Remove = v
  37746. return s
  37747. }
  37748. // Describes the launch specification for an instance.
  37749. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchSpecification
  37750. type LaunchSpecification struct {
  37751. _ struct{} `type:"structure"`
  37752. // Deprecated.
  37753. AddressingType *string `locationName:"addressingType" type:"string"`
  37754. // One or more block device mapping entries.
  37755. //
  37756. // Although you can specify encrypted EBS volumes in this block device mapping
  37757. // for your Spot Instances, these volumes are not encrypted.
  37758. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  37759. // Indicates whether the instance is optimized for EBS I/O. This optimization
  37760. // provides dedicated throughput to Amazon EBS and an optimized configuration
  37761. // stack to provide optimal EBS I/O performance. This optimization isn't available
  37762. // with all instance types. Additional usage charges apply when using an EBS
  37763. // Optimized instance.
  37764. //
  37765. // Default: false
  37766. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  37767. // The IAM instance profile.
  37768. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  37769. // The ID of the AMI.
  37770. ImageId *string `locationName:"imageId" type:"string"`
  37771. // The instance type.
  37772. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  37773. // The ID of the kernel.
  37774. KernelId *string `locationName:"kernelId" type:"string"`
  37775. // The name of the key pair.
  37776. KeyName *string `locationName:"keyName" type:"string"`
  37777. // Describes the monitoring of an instance.
  37778. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  37779. // One or more network interfaces. If you specify a network interface, you must
  37780. // specify subnet IDs and security group IDs using the network interface.
  37781. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  37782. // The placement information for the instance.
  37783. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  37784. // The ID of the RAM disk.
  37785. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  37786. // One or more security groups. When requesting instances in a VPC, you must
  37787. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  37788. // you can specify the names or the IDs of the security groups.
  37789. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  37790. // The ID of the subnet in which to launch the instance.
  37791. SubnetId *string `locationName:"subnetId" type:"string"`
  37792. // The user data to make available to the instances. If you are using an AWS
  37793. // SDK or command line tool, Base64-encoding is performed for you, and you can
  37794. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  37795. UserData *string `locationName:"userData" type:"string"`
  37796. }
  37797. // String returns the string representation
  37798. func (s LaunchSpecification) String() string {
  37799. return awsutil.Prettify(s)
  37800. }
  37801. // GoString returns the string representation
  37802. func (s LaunchSpecification) GoString() string {
  37803. return s.String()
  37804. }
  37805. // SetAddressingType sets the AddressingType field's value.
  37806. func (s *LaunchSpecification) SetAddressingType(v string) *LaunchSpecification {
  37807. s.AddressingType = &v
  37808. return s
  37809. }
  37810. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  37811. func (s *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification {
  37812. s.BlockDeviceMappings = v
  37813. return s
  37814. }
  37815. // SetEbsOptimized sets the EbsOptimized field's value.
  37816. func (s *LaunchSpecification) SetEbsOptimized(v bool) *LaunchSpecification {
  37817. s.EbsOptimized = &v
  37818. return s
  37819. }
  37820. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  37821. func (s *LaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *LaunchSpecification {
  37822. s.IamInstanceProfile = v
  37823. return s
  37824. }
  37825. // SetImageId sets the ImageId field's value.
  37826. func (s *LaunchSpecification) SetImageId(v string) *LaunchSpecification {
  37827. s.ImageId = &v
  37828. return s
  37829. }
  37830. // SetInstanceType sets the InstanceType field's value.
  37831. func (s *LaunchSpecification) SetInstanceType(v string) *LaunchSpecification {
  37832. s.InstanceType = &v
  37833. return s
  37834. }
  37835. // SetKernelId sets the KernelId field's value.
  37836. func (s *LaunchSpecification) SetKernelId(v string) *LaunchSpecification {
  37837. s.KernelId = &v
  37838. return s
  37839. }
  37840. // SetKeyName sets the KeyName field's value.
  37841. func (s *LaunchSpecification) SetKeyName(v string) *LaunchSpecification {
  37842. s.KeyName = &v
  37843. return s
  37844. }
  37845. // SetMonitoring sets the Monitoring field's value.
  37846. func (s *LaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *LaunchSpecification {
  37847. s.Monitoring = v
  37848. return s
  37849. }
  37850. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  37851. func (s *LaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *LaunchSpecification {
  37852. s.NetworkInterfaces = v
  37853. return s
  37854. }
  37855. // SetPlacement sets the Placement field's value.
  37856. func (s *LaunchSpecification) SetPlacement(v *SpotPlacement) *LaunchSpecification {
  37857. s.Placement = v
  37858. return s
  37859. }
  37860. // SetRamdiskId sets the RamdiskId field's value.
  37861. func (s *LaunchSpecification) SetRamdiskId(v string) *LaunchSpecification {
  37862. s.RamdiskId = &v
  37863. return s
  37864. }
  37865. // SetSecurityGroups sets the SecurityGroups field's value.
  37866. func (s *LaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *LaunchSpecification {
  37867. s.SecurityGroups = v
  37868. return s
  37869. }
  37870. // SetSubnetId sets the SubnetId field's value.
  37871. func (s *LaunchSpecification) SetSubnetId(v string) *LaunchSpecification {
  37872. s.SubnetId = &v
  37873. return s
  37874. }
  37875. // SetUserData sets the UserData field's value.
  37876. func (s *LaunchSpecification) SetUserData(v string) *LaunchSpecification {
  37877. s.UserData = &v
  37878. return s
  37879. }
  37880. // Contains the parameters for ModifyHosts.
  37881. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHostsRequest
  37882. type ModifyHostsInput struct {
  37883. _ struct{} `type:"structure"`
  37884. // Specify whether to enable or disable auto-placement.
  37885. //
  37886. // AutoPlacement is a required field
  37887. AutoPlacement *string `locationName:"autoPlacement" type:"string" required:"true" enum:"AutoPlacement"`
  37888. // The host IDs of the Dedicated Hosts you want to modify.
  37889. //
  37890. // HostIds is a required field
  37891. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  37892. }
  37893. // String returns the string representation
  37894. func (s ModifyHostsInput) String() string {
  37895. return awsutil.Prettify(s)
  37896. }
  37897. // GoString returns the string representation
  37898. func (s ModifyHostsInput) GoString() string {
  37899. return s.String()
  37900. }
  37901. // Validate inspects the fields of the type to determine if they are valid.
  37902. func (s *ModifyHostsInput) Validate() error {
  37903. invalidParams := request.ErrInvalidParams{Context: "ModifyHostsInput"}
  37904. if s.AutoPlacement == nil {
  37905. invalidParams.Add(request.NewErrParamRequired("AutoPlacement"))
  37906. }
  37907. if s.HostIds == nil {
  37908. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  37909. }
  37910. if invalidParams.Len() > 0 {
  37911. return invalidParams
  37912. }
  37913. return nil
  37914. }
  37915. // SetAutoPlacement sets the AutoPlacement field's value.
  37916. func (s *ModifyHostsInput) SetAutoPlacement(v string) *ModifyHostsInput {
  37917. s.AutoPlacement = &v
  37918. return s
  37919. }
  37920. // SetHostIds sets the HostIds field's value.
  37921. func (s *ModifyHostsInput) SetHostIds(v []*string) *ModifyHostsInput {
  37922. s.HostIds = v
  37923. return s
  37924. }
  37925. // Contains the output of ModifyHosts.
  37926. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHostsResult
  37927. type ModifyHostsOutput struct {
  37928. _ struct{} `type:"structure"`
  37929. // The IDs of the Dedicated Hosts that were successfully modified.
  37930. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  37931. // The IDs of the Dedicated Hosts that could not be modified. Check whether
  37932. // the setting you requested can be used.
  37933. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  37934. }
  37935. // String returns the string representation
  37936. func (s ModifyHostsOutput) String() string {
  37937. return awsutil.Prettify(s)
  37938. }
  37939. // GoString returns the string representation
  37940. func (s ModifyHostsOutput) GoString() string {
  37941. return s.String()
  37942. }
  37943. // SetSuccessful sets the Successful field's value.
  37944. func (s *ModifyHostsOutput) SetSuccessful(v []*string) *ModifyHostsOutput {
  37945. s.Successful = v
  37946. return s
  37947. }
  37948. // SetUnsuccessful sets the Unsuccessful field's value.
  37949. func (s *ModifyHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ModifyHostsOutput {
  37950. s.Unsuccessful = v
  37951. return s
  37952. }
  37953. // Contains the parameters of ModifyIdFormat.
  37954. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormatRequest
  37955. type ModifyIdFormatInput struct {
  37956. _ struct{} `type:"structure"`
  37957. // The type of resource: instance | reservation | snapshot | volume
  37958. //
  37959. // Resource is a required field
  37960. Resource *string `type:"string" required:"true"`
  37961. // Indicate whether the resource should use longer IDs (17-character IDs).
  37962. //
  37963. // UseLongIds is a required field
  37964. UseLongIds *bool `type:"boolean" required:"true"`
  37965. }
  37966. // String returns the string representation
  37967. func (s ModifyIdFormatInput) String() string {
  37968. return awsutil.Prettify(s)
  37969. }
  37970. // GoString returns the string representation
  37971. func (s ModifyIdFormatInput) GoString() string {
  37972. return s.String()
  37973. }
  37974. // Validate inspects the fields of the type to determine if they are valid.
  37975. func (s *ModifyIdFormatInput) Validate() error {
  37976. invalidParams := request.ErrInvalidParams{Context: "ModifyIdFormatInput"}
  37977. if s.Resource == nil {
  37978. invalidParams.Add(request.NewErrParamRequired("Resource"))
  37979. }
  37980. if s.UseLongIds == nil {
  37981. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  37982. }
  37983. if invalidParams.Len() > 0 {
  37984. return invalidParams
  37985. }
  37986. return nil
  37987. }
  37988. // SetResource sets the Resource field's value.
  37989. func (s *ModifyIdFormatInput) SetResource(v string) *ModifyIdFormatInput {
  37990. s.Resource = &v
  37991. return s
  37992. }
  37993. // SetUseLongIds sets the UseLongIds field's value.
  37994. func (s *ModifyIdFormatInput) SetUseLongIds(v bool) *ModifyIdFormatInput {
  37995. s.UseLongIds = &v
  37996. return s
  37997. }
  37998. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormatOutput
  37999. type ModifyIdFormatOutput struct {
  38000. _ struct{} `type:"structure"`
  38001. }
  38002. // String returns the string representation
  38003. func (s ModifyIdFormatOutput) String() string {
  38004. return awsutil.Prettify(s)
  38005. }
  38006. // GoString returns the string representation
  38007. func (s ModifyIdFormatOutput) GoString() string {
  38008. return s.String()
  38009. }
  38010. // Contains the parameters of ModifyIdentityIdFormat.
  38011. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormatRequest
  38012. type ModifyIdentityIdFormatInput struct {
  38013. _ struct{} `type:"structure"`
  38014. // The ARN of the principal, which can be an IAM user, IAM role, or the root
  38015. // user. Specify all to modify the ID format for all IAM users, IAM roles, and
  38016. // the root user of the account.
  38017. //
  38018. // PrincipalArn is a required field
  38019. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  38020. // The type of resource: instance | reservation | snapshot | volume
  38021. //
  38022. // Resource is a required field
  38023. Resource *string `locationName:"resource" type:"string" required:"true"`
  38024. // Indicates whether the resource should use longer IDs (17-character IDs)
  38025. //
  38026. // UseLongIds is a required field
  38027. UseLongIds *bool `locationName:"useLongIds" type:"boolean" required:"true"`
  38028. }
  38029. // String returns the string representation
  38030. func (s ModifyIdentityIdFormatInput) String() string {
  38031. return awsutil.Prettify(s)
  38032. }
  38033. // GoString returns the string representation
  38034. func (s ModifyIdentityIdFormatInput) GoString() string {
  38035. return s.String()
  38036. }
  38037. // Validate inspects the fields of the type to determine if they are valid.
  38038. func (s *ModifyIdentityIdFormatInput) Validate() error {
  38039. invalidParams := request.ErrInvalidParams{Context: "ModifyIdentityIdFormatInput"}
  38040. if s.PrincipalArn == nil {
  38041. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  38042. }
  38043. if s.Resource == nil {
  38044. invalidParams.Add(request.NewErrParamRequired("Resource"))
  38045. }
  38046. if s.UseLongIds == nil {
  38047. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  38048. }
  38049. if invalidParams.Len() > 0 {
  38050. return invalidParams
  38051. }
  38052. return nil
  38053. }
  38054. // SetPrincipalArn sets the PrincipalArn field's value.
  38055. func (s *ModifyIdentityIdFormatInput) SetPrincipalArn(v string) *ModifyIdentityIdFormatInput {
  38056. s.PrincipalArn = &v
  38057. return s
  38058. }
  38059. // SetResource sets the Resource field's value.
  38060. func (s *ModifyIdentityIdFormatInput) SetResource(v string) *ModifyIdentityIdFormatInput {
  38061. s.Resource = &v
  38062. return s
  38063. }
  38064. // SetUseLongIds sets the UseLongIds field's value.
  38065. func (s *ModifyIdentityIdFormatInput) SetUseLongIds(v bool) *ModifyIdentityIdFormatInput {
  38066. s.UseLongIds = &v
  38067. return s
  38068. }
  38069. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormatOutput
  38070. type ModifyIdentityIdFormatOutput struct {
  38071. _ struct{} `type:"structure"`
  38072. }
  38073. // String returns the string representation
  38074. func (s ModifyIdentityIdFormatOutput) String() string {
  38075. return awsutil.Prettify(s)
  38076. }
  38077. // GoString returns the string representation
  38078. func (s ModifyIdentityIdFormatOutput) GoString() string {
  38079. return s.String()
  38080. }
  38081. // Contains the parameters for ModifyImageAttribute.
  38082. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttributeRequest
  38083. type ModifyImageAttributeInput struct {
  38084. _ struct{} `type:"structure"`
  38085. // The name of the attribute to modify.
  38086. Attribute *string `type:"string"`
  38087. // A description for the AMI.
  38088. Description *AttributeValue `type:"structure"`
  38089. // Checks whether you have the required permissions for the action, without
  38090. // actually making the request, and provides an error response. If you have
  38091. // the required permissions, the error response is DryRunOperation. Otherwise,
  38092. // it is UnauthorizedOperation.
  38093. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38094. // The ID of the AMI.
  38095. //
  38096. // ImageId is a required field
  38097. ImageId *string `type:"string" required:"true"`
  38098. // A launch permission modification.
  38099. LaunchPermission *LaunchPermissionModifications `type:"structure"`
  38100. // The operation type.
  38101. OperationType *string `type:"string" enum:"OperationType"`
  38102. // One or more product codes. After you add a product code to an AMI, it can't
  38103. // be removed. This is only valid when modifying the productCodes attribute.
  38104. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  38105. // One or more user groups. This is only valid when modifying the launchPermission
  38106. // attribute.
  38107. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  38108. // One or more AWS account IDs. This is only valid when modifying the launchPermission
  38109. // attribute.
  38110. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  38111. // The value of the attribute being modified. This is only valid when modifying
  38112. // the description attribute.
  38113. Value *string `type:"string"`
  38114. }
  38115. // String returns the string representation
  38116. func (s ModifyImageAttributeInput) String() string {
  38117. return awsutil.Prettify(s)
  38118. }
  38119. // GoString returns the string representation
  38120. func (s ModifyImageAttributeInput) GoString() string {
  38121. return s.String()
  38122. }
  38123. // Validate inspects the fields of the type to determine if they are valid.
  38124. func (s *ModifyImageAttributeInput) Validate() error {
  38125. invalidParams := request.ErrInvalidParams{Context: "ModifyImageAttributeInput"}
  38126. if s.ImageId == nil {
  38127. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  38128. }
  38129. if invalidParams.Len() > 0 {
  38130. return invalidParams
  38131. }
  38132. return nil
  38133. }
  38134. // SetAttribute sets the Attribute field's value.
  38135. func (s *ModifyImageAttributeInput) SetAttribute(v string) *ModifyImageAttributeInput {
  38136. s.Attribute = &v
  38137. return s
  38138. }
  38139. // SetDescription sets the Description field's value.
  38140. func (s *ModifyImageAttributeInput) SetDescription(v *AttributeValue) *ModifyImageAttributeInput {
  38141. s.Description = v
  38142. return s
  38143. }
  38144. // SetDryRun sets the DryRun field's value.
  38145. func (s *ModifyImageAttributeInput) SetDryRun(v bool) *ModifyImageAttributeInput {
  38146. s.DryRun = &v
  38147. return s
  38148. }
  38149. // SetImageId sets the ImageId field's value.
  38150. func (s *ModifyImageAttributeInput) SetImageId(v string) *ModifyImageAttributeInput {
  38151. s.ImageId = &v
  38152. return s
  38153. }
  38154. // SetLaunchPermission sets the LaunchPermission field's value.
  38155. func (s *ModifyImageAttributeInput) SetLaunchPermission(v *LaunchPermissionModifications) *ModifyImageAttributeInput {
  38156. s.LaunchPermission = v
  38157. return s
  38158. }
  38159. // SetOperationType sets the OperationType field's value.
  38160. func (s *ModifyImageAttributeInput) SetOperationType(v string) *ModifyImageAttributeInput {
  38161. s.OperationType = &v
  38162. return s
  38163. }
  38164. // SetProductCodes sets the ProductCodes field's value.
  38165. func (s *ModifyImageAttributeInput) SetProductCodes(v []*string) *ModifyImageAttributeInput {
  38166. s.ProductCodes = v
  38167. return s
  38168. }
  38169. // SetUserGroups sets the UserGroups field's value.
  38170. func (s *ModifyImageAttributeInput) SetUserGroups(v []*string) *ModifyImageAttributeInput {
  38171. s.UserGroups = v
  38172. return s
  38173. }
  38174. // SetUserIds sets the UserIds field's value.
  38175. func (s *ModifyImageAttributeInput) SetUserIds(v []*string) *ModifyImageAttributeInput {
  38176. s.UserIds = v
  38177. return s
  38178. }
  38179. // SetValue sets the Value field's value.
  38180. func (s *ModifyImageAttributeInput) SetValue(v string) *ModifyImageAttributeInput {
  38181. s.Value = &v
  38182. return s
  38183. }
  38184. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttributeOutput
  38185. type ModifyImageAttributeOutput struct {
  38186. _ struct{} `type:"structure"`
  38187. }
  38188. // String returns the string representation
  38189. func (s ModifyImageAttributeOutput) String() string {
  38190. return awsutil.Prettify(s)
  38191. }
  38192. // GoString returns the string representation
  38193. func (s ModifyImageAttributeOutput) GoString() string {
  38194. return s.String()
  38195. }
  38196. // Contains the parameters for ModifyInstanceAttribute.
  38197. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttributeRequest
  38198. type ModifyInstanceAttributeInput struct {
  38199. _ struct{} `type:"structure"`
  38200. // The name of the attribute.
  38201. Attribute *string `locationName:"attribute" type:"string" enum:"InstanceAttributeName"`
  38202. // Modifies the DeleteOnTermination attribute for volumes that are currently
  38203. // attached. The volume must be owned by the caller. If no value is specified
  38204. // for DeleteOnTermination, the default is true and the volume is deleted when
  38205. // the instance is terminated.
  38206. //
  38207. // To add instance store volumes to an Amazon EBS-backed instance, you must
  38208. // add them when you launch the instance. For more information, see Updating
  38209. // the Block Device Mapping when Launching an Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM)
  38210. // in the Amazon Elastic Compute Cloud User Guide.
  38211. BlockDeviceMappings []*InstanceBlockDeviceMappingSpecification `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  38212. // If the value is true, you can't terminate the instance using the Amazon EC2
  38213. // console, CLI, or API; otherwise, you can. You cannot use this paramater for
  38214. // Spot Instances.
  38215. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  38216. // Checks whether you have the required permissions for the action, without
  38217. // actually making the request, and provides an error response. If you have
  38218. // the required permissions, the error response is DryRunOperation. Otherwise,
  38219. // it is UnauthorizedOperation.
  38220. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38221. // Specifies whether the instance is optimized for EBS I/O. This optimization
  38222. // provides dedicated throughput to Amazon EBS and an optimized configuration
  38223. // stack to provide optimal EBS I/O performance. This optimization isn't available
  38224. // with all instance types. Additional usage charges apply when using an EBS
  38225. // Optimized instance.
  38226. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  38227. // Set to true to enable enhanced networking with ENA for the instance.
  38228. //
  38229. // This option is supported only for HVM instances. Specifying this option with
  38230. // a PV instance can make it unreachable.
  38231. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  38232. // [EC2-VPC] Changes the security groups of the instance. You must specify at
  38233. // least one security group, even if it's just the default security group for
  38234. // the VPC. You must specify the security group ID, not the security group name.
  38235. Groups []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  38236. // The ID of the instance.
  38237. //
  38238. // InstanceId is a required field
  38239. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  38240. // Specifies whether an instance stops or terminates when you initiate shutdown
  38241. // from the instance (using the operating system command for system shutdown).
  38242. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  38243. // Changes the instance type to the specified value. For more information, see
  38244. // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  38245. // If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
  38246. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  38247. // Changes the instance's kernel to the specified value. We recommend that you
  38248. // use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB
  38249. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  38250. Kernel *AttributeValue `locationName:"kernel" type:"structure"`
  38251. // Changes the instance's RAM disk to the specified value. We recommend that
  38252. // you use PV-GRUB instead of kernels and RAM disks. For more information, see
  38253. // PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  38254. Ramdisk *AttributeValue `locationName:"ramdisk" type:"structure"`
  38255. // Specifies whether source/destination checking is enabled. A value of true
  38256. // means that checking is enabled, and false means checking is disabled. This
  38257. // value must be false for a NAT instance to perform NAT.
  38258. SourceDestCheck *AttributeBooleanValue `type:"structure"`
  38259. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  38260. // Function interface for the instance.
  38261. //
  38262. // There is no way to disable enhanced networking with the Intel 82599 Virtual
  38263. // Function interface at this time.
  38264. //
  38265. // This option is supported only for HVM instances. Specifying this option with
  38266. // a PV instance can make it unreachable.
  38267. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  38268. // Changes the instance's user data to the specified value. If you are using
  38269. // an AWS SDK or command line tool, Base64-encoding is performed for you, and
  38270. // you can load the text from a file. Otherwise, you must provide Base64-encoded
  38271. // text.
  38272. UserData *BlobAttributeValue `locationName:"userData" type:"structure"`
  38273. // A new value for the attribute. Use only with the kernel, ramdisk, userData,
  38274. // disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
  38275. Value *string `locationName:"value" type:"string"`
  38276. }
  38277. // String returns the string representation
  38278. func (s ModifyInstanceAttributeInput) String() string {
  38279. return awsutil.Prettify(s)
  38280. }
  38281. // GoString returns the string representation
  38282. func (s ModifyInstanceAttributeInput) GoString() string {
  38283. return s.String()
  38284. }
  38285. // Validate inspects the fields of the type to determine if they are valid.
  38286. func (s *ModifyInstanceAttributeInput) Validate() error {
  38287. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceAttributeInput"}
  38288. if s.InstanceId == nil {
  38289. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  38290. }
  38291. if invalidParams.Len() > 0 {
  38292. return invalidParams
  38293. }
  38294. return nil
  38295. }
  38296. // SetAttribute sets the Attribute field's value.
  38297. func (s *ModifyInstanceAttributeInput) SetAttribute(v string) *ModifyInstanceAttributeInput {
  38298. s.Attribute = &v
  38299. return s
  38300. }
  38301. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  38302. func (s *ModifyInstanceAttributeInput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMappingSpecification) *ModifyInstanceAttributeInput {
  38303. s.BlockDeviceMappings = v
  38304. return s
  38305. }
  38306. // SetDisableApiTermination sets the DisableApiTermination field's value.
  38307. func (s *ModifyInstanceAttributeInput) SetDisableApiTermination(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  38308. s.DisableApiTermination = v
  38309. return s
  38310. }
  38311. // SetDryRun sets the DryRun field's value.
  38312. func (s *ModifyInstanceAttributeInput) SetDryRun(v bool) *ModifyInstanceAttributeInput {
  38313. s.DryRun = &v
  38314. return s
  38315. }
  38316. // SetEbsOptimized sets the EbsOptimized field's value.
  38317. func (s *ModifyInstanceAttributeInput) SetEbsOptimized(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  38318. s.EbsOptimized = v
  38319. return s
  38320. }
  38321. // SetEnaSupport sets the EnaSupport field's value.
  38322. func (s *ModifyInstanceAttributeInput) SetEnaSupport(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  38323. s.EnaSupport = v
  38324. return s
  38325. }
  38326. // SetGroups sets the Groups field's value.
  38327. func (s *ModifyInstanceAttributeInput) SetGroups(v []*string) *ModifyInstanceAttributeInput {
  38328. s.Groups = v
  38329. return s
  38330. }
  38331. // SetInstanceId sets the InstanceId field's value.
  38332. func (s *ModifyInstanceAttributeInput) SetInstanceId(v string) *ModifyInstanceAttributeInput {
  38333. s.InstanceId = &v
  38334. return s
  38335. }
  38336. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  38337. func (s *ModifyInstanceAttributeInput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *ModifyInstanceAttributeInput {
  38338. s.InstanceInitiatedShutdownBehavior = v
  38339. return s
  38340. }
  38341. // SetInstanceType sets the InstanceType field's value.
  38342. func (s *ModifyInstanceAttributeInput) SetInstanceType(v *AttributeValue) *ModifyInstanceAttributeInput {
  38343. s.InstanceType = v
  38344. return s
  38345. }
  38346. // SetKernel sets the Kernel field's value.
  38347. func (s *ModifyInstanceAttributeInput) SetKernel(v *AttributeValue) *ModifyInstanceAttributeInput {
  38348. s.Kernel = v
  38349. return s
  38350. }
  38351. // SetRamdisk sets the Ramdisk field's value.
  38352. func (s *ModifyInstanceAttributeInput) SetRamdisk(v *AttributeValue) *ModifyInstanceAttributeInput {
  38353. s.Ramdisk = v
  38354. return s
  38355. }
  38356. // SetSourceDestCheck sets the SourceDestCheck field's value.
  38357. func (s *ModifyInstanceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  38358. s.SourceDestCheck = v
  38359. return s
  38360. }
  38361. // SetSriovNetSupport sets the SriovNetSupport field's value.
  38362. func (s *ModifyInstanceAttributeInput) SetSriovNetSupport(v *AttributeValue) *ModifyInstanceAttributeInput {
  38363. s.SriovNetSupport = v
  38364. return s
  38365. }
  38366. // SetUserData sets the UserData field's value.
  38367. func (s *ModifyInstanceAttributeInput) SetUserData(v *BlobAttributeValue) *ModifyInstanceAttributeInput {
  38368. s.UserData = v
  38369. return s
  38370. }
  38371. // SetValue sets the Value field's value.
  38372. func (s *ModifyInstanceAttributeInput) SetValue(v string) *ModifyInstanceAttributeInput {
  38373. s.Value = &v
  38374. return s
  38375. }
  38376. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttributeOutput
  38377. type ModifyInstanceAttributeOutput struct {
  38378. _ struct{} `type:"structure"`
  38379. }
  38380. // String returns the string representation
  38381. func (s ModifyInstanceAttributeOutput) String() string {
  38382. return awsutil.Prettify(s)
  38383. }
  38384. // GoString returns the string representation
  38385. func (s ModifyInstanceAttributeOutput) GoString() string {
  38386. return s.String()
  38387. }
  38388. // Contains the parameters for ModifyInstancePlacement.
  38389. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacementRequest
  38390. type ModifyInstancePlacementInput struct {
  38391. _ struct{} `type:"structure"`
  38392. // The new affinity setting for the instance.
  38393. Affinity *string `locationName:"affinity" type:"string" enum:"Affinity"`
  38394. // The ID of the Dedicated Host that the instance will have affinity with.
  38395. HostId *string `locationName:"hostId" type:"string"`
  38396. // The ID of the instance that you are modifying.
  38397. //
  38398. // InstanceId is a required field
  38399. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  38400. // The tenancy of the instance that you are modifying.
  38401. Tenancy *string `locationName:"tenancy" type:"string" enum:"HostTenancy"`
  38402. }
  38403. // String returns the string representation
  38404. func (s ModifyInstancePlacementInput) String() string {
  38405. return awsutil.Prettify(s)
  38406. }
  38407. // GoString returns the string representation
  38408. func (s ModifyInstancePlacementInput) GoString() string {
  38409. return s.String()
  38410. }
  38411. // Validate inspects the fields of the type to determine if they are valid.
  38412. func (s *ModifyInstancePlacementInput) Validate() error {
  38413. invalidParams := request.ErrInvalidParams{Context: "ModifyInstancePlacementInput"}
  38414. if s.InstanceId == nil {
  38415. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  38416. }
  38417. if invalidParams.Len() > 0 {
  38418. return invalidParams
  38419. }
  38420. return nil
  38421. }
  38422. // SetAffinity sets the Affinity field's value.
  38423. func (s *ModifyInstancePlacementInput) SetAffinity(v string) *ModifyInstancePlacementInput {
  38424. s.Affinity = &v
  38425. return s
  38426. }
  38427. // SetHostId sets the HostId field's value.
  38428. func (s *ModifyInstancePlacementInput) SetHostId(v string) *ModifyInstancePlacementInput {
  38429. s.HostId = &v
  38430. return s
  38431. }
  38432. // SetInstanceId sets the InstanceId field's value.
  38433. func (s *ModifyInstancePlacementInput) SetInstanceId(v string) *ModifyInstancePlacementInput {
  38434. s.InstanceId = &v
  38435. return s
  38436. }
  38437. // SetTenancy sets the Tenancy field's value.
  38438. func (s *ModifyInstancePlacementInput) SetTenancy(v string) *ModifyInstancePlacementInput {
  38439. s.Tenancy = &v
  38440. return s
  38441. }
  38442. // Contains the output of ModifyInstancePlacement.
  38443. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacementResult
  38444. type ModifyInstancePlacementOutput struct {
  38445. _ struct{} `type:"structure"`
  38446. // Is true if the request succeeds, and an error otherwise.
  38447. Return *bool `locationName:"return" type:"boolean"`
  38448. }
  38449. // String returns the string representation
  38450. func (s ModifyInstancePlacementOutput) String() string {
  38451. return awsutil.Prettify(s)
  38452. }
  38453. // GoString returns the string representation
  38454. func (s ModifyInstancePlacementOutput) GoString() string {
  38455. return s.String()
  38456. }
  38457. // SetReturn sets the Return field's value.
  38458. func (s *ModifyInstancePlacementOutput) SetReturn(v bool) *ModifyInstancePlacementOutput {
  38459. s.Return = &v
  38460. return s
  38461. }
  38462. // Contains the parameters for ModifyNetworkInterfaceAttribute.
  38463. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeRequest
  38464. type ModifyNetworkInterfaceAttributeInput struct {
  38465. _ struct{} `type:"structure"`
  38466. // Information about the interface attachment. If modifying the 'delete on termination'
  38467. // attribute, you must specify the ID of the interface attachment.
  38468. Attachment *NetworkInterfaceAttachmentChanges `locationName:"attachment" type:"structure"`
  38469. // A description for the network interface.
  38470. Description *AttributeValue `locationName:"description" type:"structure"`
  38471. // Checks whether you have the required permissions for the action, without
  38472. // actually making the request, and provides an error response. If you have
  38473. // the required permissions, the error response is DryRunOperation. Otherwise,
  38474. // it is UnauthorizedOperation.
  38475. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38476. // Changes the security groups for the network interface. The new set of groups
  38477. // you specify replaces the current set. You must specify at least one group,
  38478. // even if it's just the default security group in the VPC. You must specify
  38479. // the ID of the security group, not the name.
  38480. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  38481. // The ID of the network interface.
  38482. //
  38483. // NetworkInterfaceId is a required field
  38484. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  38485. // Indicates whether source/destination checking is enabled. A value of true
  38486. // means checking is enabled, and false means checking is disabled. This value
  38487. // must be false for a NAT instance to perform NAT. For more information, see
  38488. // NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  38489. // in the Amazon Virtual Private Cloud User Guide.
  38490. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  38491. }
  38492. // String returns the string representation
  38493. func (s ModifyNetworkInterfaceAttributeInput) String() string {
  38494. return awsutil.Prettify(s)
  38495. }
  38496. // GoString returns the string representation
  38497. func (s ModifyNetworkInterfaceAttributeInput) GoString() string {
  38498. return s.String()
  38499. }
  38500. // Validate inspects the fields of the type to determine if they are valid.
  38501. func (s *ModifyNetworkInterfaceAttributeInput) Validate() error {
  38502. invalidParams := request.ErrInvalidParams{Context: "ModifyNetworkInterfaceAttributeInput"}
  38503. if s.NetworkInterfaceId == nil {
  38504. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  38505. }
  38506. if invalidParams.Len() > 0 {
  38507. return invalidParams
  38508. }
  38509. return nil
  38510. }
  38511. // SetAttachment sets the Attachment field's value.
  38512. func (s *ModifyNetworkInterfaceAttributeInput) SetAttachment(v *NetworkInterfaceAttachmentChanges) *ModifyNetworkInterfaceAttributeInput {
  38513. s.Attachment = v
  38514. return s
  38515. }
  38516. // SetDescription sets the Description field's value.
  38517. func (s *ModifyNetworkInterfaceAttributeInput) SetDescription(v *AttributeValue) *ModifyNetworkInterfaceAttributeInput {
  38518. s.Description = v
  38519. return s
  38520. }
  38521. // SetDryRun sets the DryRun field's value.
  38522. func (s *ModifyNetworkInterfaceAttributeInput) SetDryRun(v bool) *ModifyNetworkInterfaceAttributeInput {
  38523. s.DryRun = &v
  38524. return s
  38525. }
  38526. // SetGroups sets the Groups field's value.
  38527. func (s *ModifyNetworkInterfaceAttributeInput) SetGroups(v []*string) *ModifyNetworkInterfaceAttributeInput {
  38528. s.Groups = v
  38529. return s
  38530. }
  38531. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  38532. func (s *ModifyNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ModifyNetworkInterfaceAttributeInput {
  38533. s.NetworkInterfaceId = &v
  38534. return s
  38535. }
  38536. // SetSourceDestCheck sets the SourceDestCheck field's value.
  38537. func (s *ModifyNetworkInterfaceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyNetworkInterfaceAttributeInput {
  38538. s.SourceDestCheck = v
  38539. return s
  38540. }
  38541. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeOutput
  38542. type ModifyNetworkInterfaceAttributeOutput struct {
  38543. _ struct{} `type:"structure"`
  38544. }
  38545. // String returns the string representation
  38546. func (s ModifyNetworkInterfaceAttributeOutput) String() string {
  38547. return awsutil.Prettify(s)
  38548. }
  38549. // GoString returns the string representation
  38550. func (s ModifyNetworkInterfaceAttributeOutput) GoString() string {
  38551. return s.String()
  38552. }
  38553. // Contains the parameters for ModifyReservedInstances.
  38554. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstancesRequest
  38555. type ModifyReservedInstancesInput struct {
  38556. _ struct{} `type:"structure"`
  38557. // A unique, case-sensitive token you provide to ensure idempotency of your
  38558. // modification request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  38559. ClientToken *string `locationName:"clientToken" type:"string"`
  38560. // The IDs of the Reserved Instances to modify.
  38561. //
  38562. // ReservedInstancesIds is a required field
  38563. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list" required:"true"`
  38564. // The configuration settings for the Reserved Instances to modify.
  38565. //
  38566. // TargetConfigurations is a required field
  38567. TargetConfigurations []*ReservedInstancesConfiguration `locationName:"ReservedInstancesConfigurationSetItemType" locationNameList:"item" type:"list" required:"true"`
  38568. }
  38569. // String returns the string representation
  38570. func (s ModifyReservedInstancesInput) String() string {
  38571. return awsutil.Prettify(s)
  38572. }
  38573. // GoString returns the string representation
  38574. func (s ModifyReservedInstancesInput) GoString() string {
  38575. return s.String()
  38576. }
  38577. // Validate inspects the fields of the type to determine if they are valid.
  38578. func (s *ModifyReservedInstancesInput) Validate() error {
  38579. invalidParams := request.ErrInvalidParams{Context: "ModifyReservedInstancesInput"}
  38580. if s.ReservedInstancesIds == nil {
  38581. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesIds"))
  38582. }
  38583. if s.TargetConfigurations == nil {
  38584. invalidParams.Add(request.NewErrParamRequired("TargetConfigurations"))
  38585. }
  38586. if invalidParams.Len() > 0 {
  38587. return invalidParams
  38588. }
  38589. return nil
  38590. }
  38591. // SetClientToken sets the ClientToken field's value.
  38592. func (s *ModifyReservedInstancesInput) SetClientToken(v string) *ModifyReservedInstancesInput {
  38593. s.ClientToken = &v
  38594. return s
  38595. }
  38596. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  38597. func (s *ModifyReservedInstancesInput) SetReservedInstancesIds(v []*string) *ModifyReservedInstancesInput {
  38598. s.ReservedInstancesIds = v
  38599. return s
  38600. }
  38601. // SetTargetConfigurations sets the TargetConfigurations field's value.
  38602. func (s *ModifyReservedInstancesInput) SetTargetConfigurations(v []*ReservedInstancesConfiguration) *ModifyReservedInstancesInput {
  38603. s.TargetConfigurations = v
  38604. return s
  38605. }
  38606. // Contains the output of ModifyReservedInstances.
  38607. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstancesResult
  38608. type ModifyReservedInstancesOutput struct {
  38609. _ struct{} `type:"structure"`
  38610. // The ID for the modification.
  38611. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  38612. }
  38613. // String returns the string representation
  38614. func (s ModifyReservedInstancesOutput) String() string {
  38615. return awsutil.Prettify(s)
  38616. }
  38617. // GoString returns the string representation
  38618. func (s ModifyReservedInstancesOutput) GoString() string {
  38619. return s.String()
  38620. }
  38621. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  38622. func (s *ModifyReservedInstancesOutput) SetReservedInstancesModificationId(v string) *ModifyReservedInstancesOutput {
  38623. s.ReservedInstancesModificationId = &v
  38624. return s
  38625. }
  38626. // Contains the parameters for ModifySnapshotAttribute.
  38627. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttributeRequest
  38628. type ModifySnapshotAttributeInput struct {
  38629. _ struct{} `type:"structure"`
  38630. // The snapshot attribute to modify.
  38631. //
  38632. // Only volume creation permissions may be modified at the customer level.
  38633. Attribute *string `type:"string" enum:"SnapshotAttributeName"`
  38634. // A JSON representation of the snapshot attribute modification.
  38635. CreateVolumePermission *CreateVolumePermissionModifications `type:"structure"`
  38636. // Checks whether you have the required permissions for the action, without
  38637. // actually making the request, and provides an error response. If you have
  38638. // the required permissions, the error response is DryRunOperation. Otherwise,
  38639. // it is UnauthorizedOperation.
  38640. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38641. // The group to modify for the snapshot.
  38642. GroupNames []*string `locationName:"UserGroup" locationNameList:"GroupName" type:"list"`
  38643. // The type of operation to perform to the attribute.
  38644. OperationType *string `type:"string" enum:"OperationType"`
  38645. // The ID of the snapshot.
  38646. //
  38647. // SnapshotId is a required field
  38648. SnapshotId *string `type:"string" required:"true"`
  38649. // The account ID to modify for the snapshot.
  38650. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  38651. }
  38652. // String returns the string representation
  38653. func (s ModifySnapshotAttributeInput) String() string {
  38654. return awsutil.Prettify(s)
  38655. }
  38656. // GoString returns the string representation
  38657. func (s ModifySnapshotAttributeInput) GoString() string {
  38658. return s.String()
  38659. }
  38660. // Validate inspects the fields of the type to determine if they are valid.
  38661. func (s *ModifySnapshotAttributeInput) Validate() error {
  38662. invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotAttributeInput"}
  38663. if s.SnapshotId == nil {
  38664. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  38665. }
  38666. if invalidParams.Len() > 0 {
  38667. return invalidParams
  38668. }
  38669. return nil
  38670. }
  38671. // SetAttribute sets the Attribute field's value.
  38672. func (s *ModifySnapshotAttributeInput) SetAttribute(v string) *ModifySnapshotAttributeInput {
  38673. s.Attribute = &v
  38674. return s
  38675. }
  38676. // SetCreateVolumePermission sets the CreateVolumePermission field's value.
  38677. func (s *ModifySnapshotAttributeInput) SetCreateVolumePermission(v *CreateVolumePermissionModifications) *ModifySnapshotAttributeInput {
  38678. s.CreateVolumePermission = v
  38679. return s
  38680. }
  38681. // SetDryRun sets the DryRun field's value.
  38682. func (s *ModifySnapshotAttributeInput) SetDryRun(v bool) *ModifySnapshotAttributeInput {
  38683. s.DryRun = &v
  38684. return s
  38685. }
  38686. // SetGroupNames sets the GroupNames field's value.
  38687. func (s *ModifySnapshotAttributeInput) SetGroupNames(v []*string) *ModifySnapshotAttributeInput {
  38688. s.GroupNames = v
  38689. return s
  38690. }
  38691. // SetOperationType sets the OperationType field's value.
  38692. func (s *ModifySnapshotAttributeInput) SetOperationType(v string) *ModifySnapshotAttributeInput {
  38693. s.OperationType = &v
  38694. return s
  38695. }
  38696. // SetSnapshotId sets the SnapshotId field's value.
  38697. func (s *ModifySnapshotAttributeInput) SetSnapshotId(v string) *ModifySnapshotAttributeInput {
  38698. s.SnapshotId = &v
  38699. return s
  38700. }
  38701. // SetUserIds sets the UserIds field's value.
  38702. func (s *ModifySnapshotAttributeInput) SetUserIds(v []*string) *ModifySnapshotAttributeInput {
  38703. s.UserIds = v
  38704. return s
  38705. }
  38706. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttributeOutput
  38707. type ModifySnapshotAttributeOutput struct {
  38708. _ struct{} `type:"structure"`
  38709. }
  38710. // String returns the string representation
  38711. func (s ModifySnapshotAttributeOutput) String() string {
  38712. return awsutil.Prettify(s)
  38713. }
  38714. // GoString returns the string representation
  38715. func (s ModifySnapshotAttributeOutput) GoString() string {
  38716. return s.String()
  38717. }
  38718. // Contains the parameters for ModifySpotFleetRequest.
  38719. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequestRequest
  38720. type ModifySpotFleetRequestInput struct {
  38721. _ struct{} `type:"structure"`
  38722. // Indicates whether running Spot instances should be terminated if the target
  38723. // capacity of the Spot fleet request is decreased below the current size of
  38724. // the Spot fleet.
  38725. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  38726. // The ID of the Spot fleet request.
  38727. //
  38728. // SpotFleetRequestId is a required field
  38729. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  38730. // The size of the fleet.
  38731. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer"`
  38732. }
  38733. // String returns the string representation
  38734. func (s ModifySpotFleetRequestInput) String() string {
  38735. return awsutil.Prettify(s)
  38736. }
  38737. // GoString returns the string representation
  38738. func (s ModifySpotFleetRequestInput) GoString() string {
  38739. return s.String()
  38740. }
  38741. // Validate inspects the fields of the type to determine if they are valid.
  38742. func (s *ModifySpotFleetRequestInput) Validate() error {
  38743. invalidParams := request.ErrInvalidParams{Context: "ModifySpotFleetRequestInput"}
  38744. if s.SpotFleetRequestId == nil {
  38745. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  38746. }
  38747. if invalidParams.Len() > 0 {
  38748. return invalidParams
  38749. }
  38750. return nil
  38751. }
  38752. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  38753. func (s *ModifySpotFleetRequestInput) SetExcessCapacityTerminationPolicy(v string) *ModifySpotFleetRequestInput {
  38754. s.ExcessCapacityTerminationPolicy = &v
  38755. return s
  38756. }
  38757. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  38758. func (s *ModifySpotFleetRequestInput) SetSpotFleetRequestId(v string) *ModifySpotFleetRequestInput {
  38759. s.SpotFleetRequestId = &v
  38760. return s
  38761. }
  38762. // SetTargetCapacity sets the TargetCapacity field's value.
  38763. func (s *ModifySpotFleetRequestInput) SetTargetCapacity(v int64) *ModifySpotFleetRequestInput {
  38764. s.TargetCapacity = &v
  38765. return s
  38766. }
  38767. // Contains the output of ModifySpotFleetRequest.
  38768. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequestResponse
  38769. type ModifySpotFleetRequestOutput struct {
  38770. _ struct{} `type:"structure"`
  38771. // Is true if the request succeeds, and an error otherwise.
  38772. Return *bool `locationName:"return" type:"boolean"`
  38773. }
  38774. // String returns the string representation
  38775. func (s ModifySpotFleetRequestOutput) String() string {
  38776. return awsutil.Prettify(s)
  38777. }
  38778. // GoString returns the string representation
  38779. func (s ModifySpotFleetRequestOutput) GoString() string {
  38780. return s.String()
  38781. }
  38782. // SetReturn sets the Return field's value.
  38783. func (s *ModifySpotFleetRequestOutput) SetReturn(v bool) *ModifySpotFleetRequestOutput {
  38784. s.Return = &v
  38785. return s
  38786. }
  38787. // Contains the parameters for ModifySubnetAttribute.
  38788. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttributeRequest
  38789. type ModifySubnetAttributeInput struct {
  38790. _ struct{} `type:"structure"`
  38791. // Specify true to indicate that network interfaces created in the specified
  38792. // subnet should be assigned an IPv6 address. This includes a network interface
  38793. // that's created when launching an instance into the subnet (the instance therefore
  38794. // receives an IPv6 address).
  38795. //
  38796. // If you enable the IPv6 addressing feature for your subnet, your network interface
  38797. // or instance only receives an IPv6 address if it's created using version 2016-11-15
  38798. // or later of the Amazon EC2 API.
  38799. AssignIpv6AddressOnCreation *AttributeBooleanValue `type:"structure"`
  38800. // Specify true to indicate that network interfaces created in the specified
  38801. // subnet should be assigned a public IPv4 address. This includes a network
  38802. // interface that's created when launching an instance into the subnet (the
  38803. // instance therefore receives a public IPv4 address).
  38804. MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"`
  38805. // The ID of the subnet.
  38806. //
  38807. // SubnetId is a required field
  38808. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  38809. }
  38810. // String returns the string representation
  38811. func (s ModifySubnetAttributeInput) String() string {
  38812. return awsutil.Prettify(s)
  38813. }
  38814. // GoString returns the string representation
  38815. func (s ModifySubnetAttributeInput) GoString() string {
  38816. return s.String()
  38817. }
  38818. // Validate inspects the fields of the type to determine if they are valid.
  38819. func (s *ModifySubnetAttributeInput) Validate() error {
  38820. invalidParams := request.ErrInvalidParams{Context: "ModifySubnetAttributeInput"}
  38821. if s.SubnetId == nil {
  38822. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  38823. }
  38824. if invalidParams.Len() > 0 {
  38825. return invalidParams
  38826. }
  38827. return nil
  38828. }
  38829. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  38830. func (s *ModifySubnetAttributeInput) SetAssignIpv6AddressOnCreation(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  38831. s.AssignIpv6AddressOnCreation = v
  38832. return s
  38833. }
  38834. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  38835. func (s *ModifySubnetAttributeInput) SetMapPublicIpOnLaunch(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  38836. s.MapPublicIpOnLaunch = v
  38837. return s
  38838. }
  38839. // SetSubnetId sets the SubnetId field's value.
  38840. func (s *ModifySubnetAttributeInput) SetSubnetId(v string) *ModifySubnetAttributeInput {
  38841. s.SubnetId = &v
  38842. return s
  38843. }
  38844. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttributeOutput
  38845. type ModifySubnetAttributeOutput struct {
  38846. _ struct{} `type:"structure"`
  38847. }
  38848. // String returns the string representation
  38849. func (s ModifySubnetAttributeOutput) String() string {
  38850. return awsutil.Prettify(s)
  38851. }
  38852. // GoString returns the string representation
  38853. func (s ModifySubnetAttributeOutput) GoString() string {
  38854. return s.String()
  38855. }
  38856. // Contains the parameters for ModifyVolumeAttribute.
  38857. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttributeRequest
  38858. type ModifyVolumeAttributeInput struct {
  38859. _ struct{} `type:"structure"`
  38860. // Indicates whether the volume should be auto-enabled for I/O operations.
  38861. AutoEnableIO *AttributeBooleanValue `type:"structure"`
  38862. // Checks whether you have the required permissions for the action, without
  38863. // actually making the request, and provides an error response. If you have
  38864. // the required permissions, the error response is DryRunOperation. Otherwise,
  38865. // it is UnauthorizedOperation.
  38866. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38867. // The ID of the volume.
  38868. //
  38869. // VolumeId is a required field
  38870. VolumeId *string `type:"string" required:"true"`
  38871. }
  38872. // String returns the string representation
  38873. func (s ModifyVolumeAttributeInput) String() string {
  38874. return awsutil.Prettify(s)
  38875. }
  38876. // GoString returns the string representation
  38877. func (s ModifyVolumeAttributeInput) GoString() string {
  38878. return s.String()
  38879. }
  38880. // Validate inspects the fields of the type to determine if they are valid.
  38881. func (s *ModifyVolumeAttributeInput) Validate() error {
  38882. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeAttributeInput"}
  38883. if s.VolumeId == nil {
  38884. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  38885. }
  38886. if invalidParams.Len() > 0 {
  38887. return invalidParams
  38888. }
  38889. return nil
  38890. }
  38891. // SetAutoEnableIO sets the AutoEnableIO field's value.
  38892. func (s *ModifyVolumeAttributeInput) SetAutoEnableIO(v *AttributeBooleanValue) *ModifyVolumeAttributeInput {
  38893. s.AutoEnableIO = v
  38894. return s
  38895. }
  38896. // SetDryRun sets the DryRun field's value.
  38897. func (s *ModifyVolumeAttributeInput) SetDryRun(v bool) *ModifyVolumeAttributeInput {
  38898. s.DryRun = &v
  38899. return s
  38900. }
  38901. // SetVolumeId sets the VolumeId field's value.
  38902. func (s *ModifyVolumeAttributeInput) SetVolumeId(v string) *ModifyVolumeAttributeInput {
  38903. s.VolumeId = &v
  38904. return s
  38905. }
  38906. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttributeOutput
  38907. type ModifyVolumeAttributeOutput struct {
  38908. _ struct{} `type:"structure"`
  38909. }
  38910. // String returns the string representation
  38911. func (s ModifyVolumeAttributeOutput) String() string {
  38912. return awsutil.Prettify(s)
  38913. }
  38914. // GoString returns the string representation
  38915. func (s ModifyVolumeAttributeOutput) GoString() string {
  38916. return s.String()
  38917. }
  38918. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeRequest
  38919. type ModifyVolumeInput struct {
  38920. _ struct{} `type:"structure"`
  38921. // Checks whether you have the required permissions for the action, without
  38922. // actually making the request, and provides an error response. If you have
  38923. // the required permissions, the error response is DryRunOperation. Otherwise,
  38924. // it is UnauthorizedOperation.
  38925. DryRun *bool `type:"boolean"`
  38926. // Target IOPS rate of the volume to be modified.
  38927. //
  38928. // Only valid for Provisioned IOPS SSD (io1) volumes. For more information about
  38929. // io1 IOPS configuration, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops
  38930. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops).
  38931. //
  38932. // Default: If no IOPS value is specified, the existing value is retained.
  38933. Iops *int64 `type:"integer"`
  38934. // Target size in GiB of the volume to be modified. Target volume size must
  38935. // be greater than or equal to than the existing size of the volume. For information
  38936. // about available EBS volume sizes, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html
  38937. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
  38938. //
  38939. // Default: If no size is specified, the existing size is retained.
  38940. Size *int64 `type:"integer"`
  38941. // VolumeId is a required field
  38942. VolumeId *string `type:"string" required:"true"`
  38943. // Target EBS volume type of the volume to be modified
  38944. //
  38945. // The API does not support modifications for volume type standard. You also
  38946. // cannot change the type of a volume to standard.
  38947. //
  38948. // Default: If no type is specified, the existing type is retained.
  38949. VolumeType *string `type:"string" enum:"VolumeType"`
  38950. }
  38951. // String returns the string representation
  38952. func (s ModifyVolumeInput) String() string {
  38953. return awsutil.Prettify(s)
  38954. }
  38955. // GoString returns the string representation
  38956. func (s ModifyVolumeInput) GoString() string {
  38957. return s.String()
  38958. }
  38959. // Validate inspects the fields of the type to determine if they are valid.
  38960. func (s *ModifyVolumeInput) Validate() error {
  38961. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeInput"}
  38962. if s.VolumeId == nil {
  38963. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  38964. }
  38965. if invalidParams.Len() > 0 {
  38966. return invalidParams
  38967. }
  38968. return nil
  38969. }
  38970. // SetDryRun sets the DryRun field's value.
  38971. func (s *ModifyVolumeInput) SetDryRun(v bool) *ModifyVolumeInput {
  38972. s.DryRun = &v
  38973. return s
  38974. }
  38975. // SetIops sets the Iops field's value.
  38976. func (s *ModifyVolumeInput) SetIops(v int64) *ModifyVolumeInput {
  38977. s.Iops = &v
  38978. return s
  38979. }
  38980. // SetSize sets the Size field's value.
  38981. func (s *ModifyVolumeInput) SetSize(v int64) *ModifyVolumeInput {
  38982. s.Size = &v
  38983. return s
  38984. }
  38985. // SetVolumeId sets the VolumeId field's value.
  38986. func (s *ModifyVolumeInput) SetVolumeId(v string) *ModifyVolumeInput {
  38987. s.VolumeId = &v
  38988. return s
  38989. }
  38990. // SetVolumeType sets the VolumeType field's value.
  38991. func (s *ModifyVolumeInput) SetVolumeType(v string) *ModifyVolumeInput {
  38992. s.VolumeType = &v
  38993. return s
  38994. }
  38995. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeResult
  38996. type ModifyVolumeOutput struct {
  38997. _ struct{} `type:"structure"`
  38998. // A VolumeModification object.
  38999. VolumeModification *VolumeModification `locationName:"volumeModification" type:"structure"`
  39000. }
  39001. // String returns the string representation
  39002. func (s ModifyVolumeOutput) String() string {
  39003. return awsutil.Prettify(s)
  39004. }
  39005. // GoString returns the string representation
  39006. func (s ModifyVolumeOutput) GoString() string {
  39007. return s.String()
  39008. }
  39009. // SetVolumeModification sets the VolumeModification field's value.
  39010. func (s *ModifyVolumeOutput) SetVolumeModification(v *VolumeModification) *ModifyVolumeOutput {
  39011. s.VolumeModification = v
  39012. return s
  39013. }
  39014. // Contains the parameters for ModifyVpcAttribute.
  39015. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttributeRequest
  39016. type ModifyVpcAttributeInput struct {
  39017. _ struct{} `type:"structure"`
  39018. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  39019. // enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
  39020. //
  39021. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  39022. // same request. Use separate requests for each attribute. You can only enable
  39023. // DNS hostnames if you've enabled DNS support.
  39024. EnableDnsHostnames *AttributeBooleanValue `type:"structure"`
  39025. // Indicates whether the DNS resolution is supported for the VPC. If enabled,
  39026. // queries to the Amazon provided DNS server at the 169.254.169.253 IP address,
  39027. // or the reserved IP address at the base of the VPC network range "plus two"
  39028. // will succeed. If disabled, the Amazon provided DNS service in the VPC that
  39029. // resolves public DNS hostnames to IP addresses is not enabled.
  39030. //
  39031. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  39032. // same request. Use separate requests for each attribute.
  39033. EnableDnsSupport *AttributeBooleanValue `type:"structure"`
  39034. // The ID of the VPC.
  39035. //
  39036. // VpcId is a required field
  39037. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  39038. }
  39039. // String returns the string representation
  39040. func (s ModifyVpcAttributeInput) String() string {
  39041. return awsutil.Prettify(s)
  39042. }
  39043. // GoString returns the string representation
  39044. func (s ModifyVpcAttributeInput) GoString() string {
  39045. return s.String()
  39046. }
  39047. // Validate inspects the fields of the type to determine if they are valid.
  39048. func (s *ModifyVpcAttributeInput) Validate() error {
  39049. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcAttributeInput"}
  39050. if s.VpcId == nil {
  39051. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  39052. }
  39053. if invalidParams.Len() > 0 {
  39054. return invalidParams
  39055. }
  39056. return nil
  39057. }
  39058. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  39059. func (s *ModifyVpcAttributeInput) SetEnableDnsHostnames(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  39060. s.EnableDnsHostnames = v
  39061. return s
  39062. }
  39063. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  39064. func (s *ModifyVpcAttributeInput) SetEnableDnsSupport(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  39065. s.EnableDnsSupport = v
  39066. return s
  39067. }
  39068. // SetVpcId sets the VpcId field's value.
  39069. func (s *ModifyVpcAttributeInput) SetVpcId(v string) *ModifyVpcAttributeInput {
  39070. s.VpcId = &v
  39071. return s
  39072. }
  39073. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttributeOutput
  39074. type ModifyVpcAttributeOutput struct {
  39075. _ struct{} `type:"structure"`
  39076. }
  39077. // String returns the string representation
  39078. func (s ModifyVpcAttributeOutput) String() string {
  39079. return awsutil.Prettify(s)
  39080. }
  39081. // GoString returns the string representation
  39082. func (s ModifyVpcAttributeOutput) GoString() string {
  39083. return s.String()
  39084. }
  39085. // Contains the parameters for ModifyVpcEndpoint.
  39086. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointRequest
  39087. type ModifyVpcEndpointInput struct {
  39088. _ struct{} `type:"structure"`
  39089. // One or more route tables IDs to associate with the endpoint.
  39090. AddRouteTableIds []*string `locationName:"AddRouteTableId" locationNameList:"item" type:"list"`
  39091. // Checks whether you have the required permissions for the action, without
  39092. // actually making the request, and provides an error response. If you have
  39093. // the required permissions, the error response is DryRunOperation. Otherwise,
  39094. // it is UnauthorizedOperation.
  39095. DryRun *bool `type:"boolean"`
  39096. // A policy document to attach to the endpoint. The policy must be in valid
  39097. // JSON format.
  39098. PolicyDocument *string `type:"string"`
  39099. // One or more route table IDs to disassociate from the endpoint.
  39100. RemoveRouteTableIds []*string `locationName:"RemoveRouteTableId" locationNameList:"item" type:"list"`
  39101. // Specify true to reset the policy document to the default policy. The default
  39102. // policy allows access to the service.
  39103. ResetPolicy *bool `type:"boolean"`
  39104. // The ID of the endpoint.
  39105. //
  39106. // VpcEndpointId is a required field
  39107. VpcEndpointId *string `type:"string" required:"true"`
  39108. }
  39109. // String returns the string representation
  39110. func (s ModifyVpcEndpointInput) String() string {
  39111. return awsutil.Prettify(s)
  39112. }
  39113. // GoString returns the string representation
  39114. func (s ModifyVpcEndpointInput) GoString() string {
  39115. return s.String()
  39116. }
  39117. // Validate inspects the fields of the type to determine if they are valid.
  39118. func (s *ModifyVpcEndpointInput) Validate() error {
  39119. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointInput"}
  39120. if s.VpcEndpointId == nil {
  39121. invalidParams.Add(request.NewErrParamRequired("VpcEndpointId"))
  39122. }
  39123. if invalidParams.Len() > 0 {
  39124. return invalidParams
  39125. }
  39126. return nil
  39127. }
  39128. // SetAddRouteTableIds sets the AddRouteTableIds field's value.
  39129. func (s *ModifyVpcEndpointInput) SetAddRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  39130. s.AddRouteTableIds = v
  39131. return s
  39132. }
  39133. // SetDryRun sets the DryRun field's value.
  39134. func (s *ModifyVpcEndpointInput) SetDryRun(v bool) *ModifyVpcEndpointInput {
  39135. s.DryRun = &v
  39136. return s
  39137. }
  39138. // SetPolicyDocument sets the PolicyDocument field's value.
  39139. func (s *ModifyVpcEndpointInput) SetPolicyDocument(v string) *ModifyVpcEndpointInput {
  39140. s.PolicyDocument = &v
  39141. return s
  39142. }
  39143. // SetRemoveRouteTableIds sets the RemoveRouteTableIds field's value.
  39144. func (s *ModifyVpcEndpointInput) SetRemoveRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  39145. s.RemoveRouteTableIds = v
  39146. return s
  39147. }
  39148. // SetResetPolicy sets the ResetPolicy field's value.
  39149. func (s *ModifyVpcEndpointInput) SetResetPolicy(v bool) *ModifyVpcEndpointInput {
  39150. s.ResetPolicy = &v
  39151. return s
  39152. }
  39153. // SetVpcEndpointId sets the VpcEndpointId field's value.
  39154. func (s *ModifyVpcEndpointInput) SetVpcEndpointId(v string) *ModifyVpcEndpointInput {
  39155. s.VpcEndpointId = &v
  39156. return s
  39157. }
  39158. // Contains the output of ModifyVpcEndpoint.
  39159. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointResult
  39160. type ModifyVpcEndpointOutput struct {
  39161. _ struct{} `type:"structure"`
  39162. // Returns true if the request succeeds; otherwise, it returns an error.
  39163. Return *bool `locationName:"return" type:"boolean"`
  39164. }
  39165. // String returns the string representation
  39166. func (s ModifyVpcEndpointOutput) String() string {
  39167. return awsutil.Prettify(s)
  39168. }
  39169. // GoString returns the string representation
  39170. func (s ModifyVpcEndpointOutput) GoString() string {
  39171. return s.String()
  39172. }
  39173. // SetReturn sets the Return field's value.
  39174. func (s *ModifyVpcEndpointOutput) SetReturn(v bool) *ModifyVpcEndpointOutput {
  39175. s.Return = &v
  39176. return s
  39177. }
  39178. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptionsRequest
  39179. type ModifyVpcPeeringConnectionOptionsInput struct {
  39180. _ struct{} `type:"structure"`
  39181. // The VPC peering connection options for the accepter VPC.
  39182. AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  39183. // Checks whether you have the required permissions for the operation, without
  39184. // actually making the request, and provides an error response. If you have
  39185. // the required permissions, the error response is DryRunOperation. Otherwise,
  39186. // it is UnauthorizedOperation.
  39187. DryRun *bool `type:"boolean"`
  39188. // The VPC peering connection options for the requester VPC.
  39189. RequesterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  39190. // The ID of the VPC peering connection.
  39191. //
  39192. // VpcPeeringConnectionId is a required field
  39193. VpcPeeringConnectionId *string `type:"string" required:"true"`
  39194. }
  39195. // String returns the string representation
  39196. func (s ModifyVpcPeeringConnectionOptionsInput) String() string {
  39197. return awsutil.Prettify(s)
  39198. }
  39199. // GoString returns the string representation
  39200. func (s ModifyVpcPeeringConnectionOptionsInput) GoString() string {
  39201. return s.String()
  39202. }
  39203. // Validate inspects the fields of the type to determine if they are valid.
  39204. func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error {
  39205. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcPeeringConnectionOptionsInput"}
  39206. if s.VpcPeeringConnectionId == nil {
  39207. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  39208. }
  39209. if invalidParams.Len() > 0 {
  39210. return invalidParams
  39211. }
  39212. return nil
  39213. }
  39214. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  39215. func (s *ModifyVpcPeeringConnectionOptionsInput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  39216. s.AccepterPeeringConnectionOptions = v
  39217. return s
  39218. }
  39219. // SetDryRun sets the DryRun field's value.
  39220. func (s *ModifyVpcPeeringConnectionOptionsInput) SetDryRun(v bool) *ModifyVpcPeeringConnectionOptionsInput {
  39221. s.DryRun = &v
  39222. return s
  39223. }
  39224. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  39225. func (s *ModifyVpcPeeringConnectionOptionsInput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  39226. s.RequesterPeeringConnectionOptions = v
  39227. return s
  39228. }
  39229. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  39230. func (s *ModifyVpcPeeringConnectionOptionsInput) SetVpcPeeringConnectionId(v string) *ModifyVpcPeeringConnectionOptionsInput {
  39231. s.VpcPeeringConnectionId = &v
  39232. return s
  39233. }
  39234. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptionsResult
  39235. type ModifyVpcPeeringConnectionOptionsOutput struct {
  39236. _ struct{} `type:"structure"`
  39237. // Information about the VPC peering connection options for the accepter VPC.
  39238. AccepterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"accepterPeeringConnectionOptions" type:"structure"`
  39239. // Information about the VPC peering connection options for the requester VPC.
  39240. RequesterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"requesterPeeringConnectionOptions" type:"structure"`
  39241. }
  39242. // String returns the string representation
  39243. func (s ModifyVpcPeeringConnectionOptionsOutput) String() string {
  39244. return awsutil.Prettify(s)
  39245. }
  39246. // GoString returns the string representation
  39247. func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string {
  39248. return s.String()
  39249. }
  39250. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  39251. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  39252. s.AccepterPeeringConnectionOptions = v
  39253. return s
  39254. }
  39255. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  39256. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  39257. s.RequesterPeeringConnectionOptions = v
  39258. return s
  39259. }
  39260. // Contains the parameters for MonitorInstances.
  39261. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstancesRequest
  39262. type MonitorInstancesInput struct {
  39263. _ struct{} `type:"structure"`
  39264. // Checks whether you have the required permissions for the action, without
  39265. // actually making the request, and provides an error response. If you have
  39266. // the required permissions, the error response is DryRunOperation. Otherwise,
  39267. // it is UnauthorizedOperation.
  39268. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39269. // One or more instance IDs.
  39270. //
  39271. // InstanceIds is a required field
  39272. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  39273. }
  39274. // String returns the string representation
  39275. func (s MonitorInstancesInput) String() string {
  39276. return awsutil.Prettify(s)
  39277. }
  39278. // GoString returns the string representation
  39279. func (s MonitorInstancesInput) GoString() string {
  39280. return s.String()
  39281. }
  39282. // Validate inspects the fields of the type to determine if they are valid.
  39283. func (s *MonitorInstancesInput) Validate() error {
  39284. invalidParams := request.ErrInvalidParams{Context: "MonitorInstancesInput"}
  39285. if s.InstanceIds == nil {
  39286. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  39287. }
  39288. if invalidParams.Len() > 0 {
  39289. return invalidParams
  39290. }
  39291. return nil
  39292. }
  39293. // SetDryRun sets the DryRun field's value.
  39294. func (s *MonitorInstancesInput) SetDryRun(v bool) *MonitorInstancesInput {
  39295. s.DryRun = &v
  39296. return s
  39297. }
  39298. // SetInstanceIds sets the InstanceIds field's value.
  39299. func (s *MonitorInstancesInput) SetInstanceIds(v []*string) *MonitorInstancesInput {
  39300. s.InstanceIds = v
  39301. return s
  39302. }
  39303. // Contains the output of MonitorInstances.
  39304. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstancesResult
  39305. type MonitorInstancesOutput struct {
  39306. _ struct{} `type:"structure"`
  39307. // The monitoring information.
  39308. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  39309. }
  39310. // String returns the string representation
  39311. func (s MonitorInstancesOutput) String() string {
  39312. return awsutil.Prettify(s)
  39313. }
  39314. // GoString returns the string representation
  39315. func (s MonitorInstancesOutput) GoString() string {
  39316. return s.String()
  39317. }
  39318. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  39319. func (s *MonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *MonitorInstancesOutput {
  39320. s.InstanceMonitorings = v
  39321. return s
  39322. }
  39323. // Describes the monitoring of an instance.
  39324. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Monitoring
  39325. type Monitoring struct {
  39326. _ struct{} `type:"structure"`
  39327. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  39328. // is enabled.
  39329. State *string `locationName:"state" type:"string" enum:"MonitoringState"`
  39330. }
  39331. // String returns the string representation
  39332. func (s Monitoring) String() string {
  39333. return awsutil.Prettify(s)
  39334. }
  39335. // GoString returns the string representation
  39336. func (s Monitoring) GoString() string {
  39337. return s.String()
  39338. }
  39339. // SetState sets the State field's value.
  39340. func (s *Monitoring) SetState(v string) *Monitoring {
  39341. s.State = &v
  39342. return s
  39343. }
  39344. // Contains the parameters for MoveAddressToVpc.
  39345. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpcRequest
  39346. type MoveAddressToVpcInput struct {
  39347. _ struct{} `type:"structure"`
  39348. // Checks whether you have the required permissions for the action, without
  39349. // actually making the request, and provides an error response. If you have
  39350. // the required permissions, the error response is DryRunOperation. Otherwise,
  39351. // it is UnauthorizedOperation.
  39352. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39353. // The Elastic IP address.
  39354. //
  39355. // PublicIp is a required field
  39356. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  39357. }
  39358. // String returns the string representation
  39359. func (s MoveAddressToVpcInput) String() string {
  39360. return awsutil.Prettify(s)
  39361. }
  39362. // GoString returns the string representation
  39363. func (s MoveAddressToVpcInput) GoString() string {
  39364. return s.String()
  39365. }
  39366. // Validate inspects the fields of the type to determine if they are valid.
  39367. func (s *MoveAddressToVpcInput) Validate() error {
  39368. invalidParams := request.ErrInvalidParams{Context: "MoveAddressToVpcInput"}
  39369. if s.PublicIp == nil {
  39370. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  39371. }
  39372. if invalidParams.Len() > 0 {
  39373. return invalidParams
  39374. }
  39375. return nil
  39376. }
  39377. // SetDryRun sets the DryRun field's value.
  39378. func (s *MoveAddressToVpcInput) SetDryRun(v bool) *MoveAddressToVpcInput {
  39379. s.DryRun = &v
  39380. return s
  39381. }
  39382. // SetPublicIp sets the PublicIp field's value.
  39383. func (s *MoveAddressToVpcInput) SetPublicIp(v string) *MoveAddressToVpcInput {
  39384. s.PublicIp = &v
  39385. return s
  39386. }
  39387. // Contains the output of MoveAddressToVpc.
  39388. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpcResult
  39389. type MoveAddressToVpcOutput struct {
  39390. _ struct{} `type:"structure"`
  39391. // The allocation ID for the Elastic IP address.
  39392. AllocationId *string `locationName:"allocationId" type:"string"`
  39393. // The status of the move of the IP address.
  39394. Status *string `locationName:"status" type:"string" enum:"Status"`
  39395. }
  39396. // String returns the string representation
  39397. func (s MoveAddressToVpcOutput) String() string {
  39398. return awsutil.Prettify(s)
  39399. }
  39400. // GoString returns the string representation
  39401. func (s MoveAddressToVpcOutput) GoString() string {
  39402. return s.String()
  39403. }
  39404. // SetAllocationId sets the AllocationId field's value.
  39405. func (s *MoveAddressToVpcOutput) SetAllocationId(v string) *MoveAddressToVpcOutput {
  39406. s.AllocationId = &v
  39407. return s
  39408. }
  39409. // SetStatus sets the Status field's value.
  39410. func (s *MoveAddressToVpcOutput) SetStatus(v string) *MoveAddressToVpcOutput {
  39411. s.Status = &v
  39412. return s
  39413. }
  39414. // Describes the status of a moving Elastic IP address.
  39415. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MovingAddressStatus
  39416. type MovingAddressStatus struct {
  39417. _ struct{} `type:"structure"`
  39418. // The status of the Elastic IP address that's being moved to the EC2-VPC platform,
  39419. // or restored to the EC2-Classic platform.
  39420. MoveStatus *string `locationName:"moveStatus" type:"string" enum:"MoveStatus"`
  39421. // The Elastic IP address.
  39422. PublicIp *string `locationName:"publicIp" type:"string"`
  39423. }
  39424. // String returns the string representation
  39425. func (s MovingAddressStatus) String() string {
  39426. return awsutil.Prettify(s)
  39427. }
  39428. // GoString returns the string representation
  39429. func (s MovingAddressStatus) GoString() string {
  39430. return s.String()
  39431. }
  39432. // SetMoveStatus sets the MoveStatus field's value.
  39433. func (s *MovingAddressStatus) SetMoveStatus(v string) *MovingAddressStatus {
  39434. s.MoveStatus = &v
  39435. return s
  39436. }
  39437. // SetPublicIp sets the PublicIp field's value.
  39438. func (s *MovingAddressStatus) SetPublicIp(v string) *MovingAddressStatus {
  39439. s.PublicIp = &v
  39440. return s
  39441. }
  39442. // Describes a NAT gateway.
  39443. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGateway
  39444. type NatGateway struct {
  39445. _ struct{} `type:"structure"`
  39446. // The date and time the NAT gateway was created.
  39447. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  39448. // The date and time the NAT gateway was deleted, if applicable.
  39449. DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp" timestampFormat:"iso8601"`
  39450. // If the NAT gateway could not be created, specifies the error code for the
  39451. // failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound
  39452. // | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)
  39453. FailureCode *string `locationName:"failureCode" type:"string"`
  39454. // If the NAT gateway could not be created, specifies the error message for
  39455. // the failure, that corresponds to the error code.
  39456. //
  39457. // * For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free
  39458. // addresses to create this NAT gateway"
  39459. //
  39460. // * For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway
  39461. // attached"
  39462. //
  39463. // * For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx
  39464. // could not be associated with this NAT gateway"
  39465. //
  39466. // * For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx
  39467. // is already associated"
  39468. //
  39469. // * For InternalError: "Network interface eni-xxxxxxxx, created and used
  39470. // internally by this NAT gateway is in an invalid state. Please try again."
  39471. //
  39472. // * For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx
  39473. // does not exist or could not be found."
  39474. FailureMessage *string `locationName:"failureMessage" type:"string"`
  39475. // Information about the IP addresses and network interface associated with
  39476. // the NAT gateway.
  39477. NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"`
  39478. // The ID of the NAT gateway.
  39479. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  39480. // Reserved. If you need to sustain traffic greater than the documented limits
  39481. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  39482. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  39483. ProvisionedBandwidth *ProvisionedBandwidth `locationName:"provisionedBandwidth" type:"structure"`
  39484. // The state of the NAT gateway.
  39485. //
  39486. // * pending: The NAT gateway is being created and is not ready to process
  39487. // traffic.
  39488. //
  39489. // * failed: The NAT gateway could not be created. Check the failureCode
  39490. // and failureMessage fields for the reason.
  39491. //
  39492. // * available: The NAT gateway is able to process traffic. This status remains
  39493. // until you delete the NAT gateway, and does not indicate the health of
  39494. // the NAT gateway.
  39495. //
  39496. // * deleting: The NAT gateway is in the process of being terminated and
  39497. // may still be processing traffic.
  39498. //
  39499. // * deleted: The NAT gateway has been terminated and is no longer processing
  39500. // traffic.
  39501. State *string `locationName:"state" type:"string" enum:"NatGatewayState"`
  39502. // The ID of the subnet in which the NAT gateway is located.
  39503. SubnetId *string `locationName:"subnetId" type:"string"`
  39504. // The ID of the VPC in which the NAT gateway is located.
  39505. VpcId *string `locationName:"vpcId" type:"string"`
  39506. }
  39507. // String returns the string representation
  39508. func (s NatGateway) String() string {
  39509. return awsutil.Prettify(s)
  39510. }
  39511. // GoString returns the string representation
  39512. func (s NatGateway) GoString() string {
  39513. return s.String()
  39514. }
  39515. // SetCreateTime sets the CreateTime field's value.
  39516. func (s *NatGateway) SetCreateTime(v time.Time) *NatGateway {
  39517. s.CreateTime = &v
  39518. return s
  39519. }
  39520. // SetDeleteTime sets the DeleteTime field's value.
  39521. func (s *NatGateway) SetDeleteTime(v time.Time) *NatGateway {
  39522. s.DeleteTime = &v
  39523. return s
  39524. }
  39525. // SetFailureCode sets the FailureCode field's value.
  39526. func (s *NatGateway) SetFailureCode(v string) *NatGateway {
  39527. s.FailureCode = &v
  39528. return s
  39529. }
  39530. // SetFailureMessage sets the FailureMessage field's value.
  39531. func (s *NatGateway) SetFailureMessage(v string) *NatGateway {
  39532. s.FailureMessage = &v
  39533. return s
  39534. }
  39535. // SetNatGatewayAddresses sets the NatGatewayAddresses field's value.
  39536. func (s *NatGateway) SetNatGatewayAddresses(v []*NatGatewayAddress) *NatGateway {
  39537. s.NatGatewayAddresses = v
  39538. return s
  39539. }
  39540. // SetNatGatewayId sets the NatGatewayId field's value.
  39541. func (s *NatGateway) SetNatGatewayId(v string) *NatGateway {
  39542. s.NatGatewayId = &v
  39543. return s
  39544. }
  39545. // SetProvisionedBandwidth sets the ProvisionedBandwidth field's value.
  39546. func (s *NatGateway) SetProvisionedBandwidth(v *ProvisionedBandwidth) *NatGateway {
  39547. s.ProvisionedBandwidth = v
  39548. return s
  39549. }
  39550. // SetState sets the State field's value.
  39551. func (s *NatGateway) SetState(v string) *NatGateway {
  39552. s.State = &v
  39553. return s
  39554. }
  39555. // SetSubnetId sets the SubnetId field's value.
  39556. func (s *NatGateway) SetSubnetId(v string) *NatGateway {
  39557. s.SubnetId = &v
  39558. return s
  39559. }
  39560. // SetVpcId sets the VpcId field's value.
  39561. func (s *NatGateway) SetVpcId(v string) *NatGateway {
  39562. s.VpcId = &v
  39563. return s
  39564. }
  39565. // Describes the IP addresses and network interface associated with a NAT gateway.
  39566. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGatewayAddress
  39567. type NatGatewayAddress struct {
  39568. _ struct{} `type:"structure"`
  39569. // The allocation ID of the Elastic IP address that's associated with the NAT
  39570. // gateway.
  39571. AllocationId *string `locationName:"allocationId" type:"string"`
  39572. // The ID of the network interface associated with the NAT gateway.
  39573. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  39574. // The private IP address associated with the Elastic IP address.
  39575. PrivateIp *string `locationName:"privateIp" type:"string"`
  39576. // The Elastic IP address associated with the NAT gateway.
  39577. PublicIp *string `locationName:"publicIp" type:"string"`
  39578. }
  39579. // String returns the string representation
  39580. func (s NatGatewayAddress) String() string {
  39581. return awsutil.Prettify(s)
  39582. }
  39583. // GoString returns the string representation
  39584. func (s NatGatewayAddress) GoString() string {
  39585. return s.String()
  39586. }
  39587. // SetAllocationId sets the AllocationId field's value.
  39588. func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress {
  39589. s.AllocationId = &v
  39590. return s
  39591. }
  39592. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  39593. func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress {
  39594. s.NetworkInterfaceId = &v
  39595. return s
  39596. }
  39597. // SetPrivateIp sets the PrivateIp field's value.
  39598. func (s *NatGatewayAddress) SetPrivateIp(v string) *NatGatewayAddress {
  39599. s.PrivateIp = &v
  39600. return s
  39601. }
  39602. // SetPublicIp sets the PublicIp field's value.
  39603. func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress {
  39604. s.PublicIp = &v
  39605. return s
  39606. }
  39607. // Describes a network ACL.
  39608. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAcl
  39609. type NetworkAcl struct {
  39610. _ struct{} `type:"structure"`
  39611. // Any associations between the network ACL and one or more subnets
  39612. Associations []*NetworkAclAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  39613. // One or more entries (rules) in the network ACL.
  39614. Entries []*NetworkAclEntry `locationName:"entrySet" locationNameList:"item" type:"list"`
  39615. // Indicates whether this is the default network ACL for the VPC.
  39616. IsDefault *bool `locationName:"default" type:"boolean"`
  39617. // The ID of the network ACL.
  39618. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  39619. // Any tags assigned to the network ACL.
  39620. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  39621. // The ID of the VPC for the network ACL.
  39622. VpcId *string `locationName:"vpcId" type:"string"`
  39623. }
  39624. // String returns the string representation
  39625. func (s NetworkAcl) String() string {
  39626. return awsutil.Prettify(s)
  39627. }
  39628. // GoString returns the string representation
  39629. func (s NetworkAcl) GoString() string {
  39630. return s.String()
  39631. }
  39632. // SetAssociations sets the Associations field's value.
  39633. func (s *NetworkAcl) SetAssociations(v []*NetworkAclAssociation) *NetworkAcl {
  39634. s.Associations = v
  39635. return s
  39636. }
  39637. // SetEntries sets the Entries field's value.
  39638. func (s *NetworkAcl) SetEntries(v []*NetworkAclEntry) *NetworkAcl {
  39639. s.Entries = v
  39640. return s
  39641. }
  39642. // SetIsDefault sets the IsDefault field's value.
  39643. func (s *NetworkAcl) SetIsDefault(v bool) *NetworkAcl {
  39644. s.IsDefault = &v
  39645. return s
  39646. }
  39647. // SetNetworkAclId sets the NetworkAclId field's value.
  39648. func (s *NetworkAcl) SetNetworkAclId(v string) *NetworkAcl {
  39649. s.NetworkAclId = &v
  39650. return s
  39651. }
  39652. // SetTags sets the Tags field's value.
  39653. func (s *NetworkAcl) SetTags(v []*Tag) *NetworkAcl {
  39654. s.Tags = v
  39655. return s
  39656. }
  39657. // SetVpcId sets the VpcId field's value.
  39658. func (s *NetworkAcl) SetVpcId(v string) *NetworkAcl {
  39659. s.VpcId = &v
  39660. return s
  39661. }
  39662. // Describes an association between a network ACL and a subnet.
  39663. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAclAssociation
  39664. type NetworkAclAssociation struct {
  39665. _ struct{} `type:"structure"`
  39666. // The ID of the association between a network ACL and a subnet.
  39667. NetworkAclAssociationId *string `locationName:"networkAclAssociationId" type:"string"`
  39668. // The ID of the network ACL.
  39669. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  39670. // The ID of the subnet.
  39671. SubnetId *string `locationName:"subnetId" type:"string"`
  39672. }
  39673. // String returns the string representation
  39674. func (s NetworkAclAssociation) String() string {
  39675. return awsutil.Prettify(s)
  39676. }
  39677. // GoString returns the string representation
  39678. func (s NetworkAclAssociation) GoString() string {
  39679. return s.String()
  39680. }
  39681. // SetNetworkAclAssociationId sets the NetworkAclAssociationId field's value.
  39682. func (s *NetworkAclAssociation) SetNetworkAclAssociationId(v string) *NetworkAclAssociation {
  39683. s.NetworkAclAssociationId = &v
  39684. return s
  39685. }
  39686. // SetNetworkAclId sets the NetworkAclId field's value.
  39687. func (s *NetworkAclAssociation) SetNetworkAclId(v string) *NetworkAclAssociation {
  39688. s.NetworkAclId = &v
  39689. return s
  39690. }
  39691. // SetSubnetId sets the SubnetId field's value.
  39692. func (s *NetworkAclAssociation) SetSubnetId(v string) *NetworkAclAssociation {
  39693. s.SubnetId = &v
  39694. return s
  39695. }
  39696. // Describes an entry in a network ACL.
  39697. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAclEntry
  39698. type NetworkAclEntry struct {
  39699. _ struct{} `type:"structure"`
  39700. // The IPv4 network range to allow or deny, in CIDR notation.
  39701. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  39702. // Indicates whether the rule is an egress rule (applied to traffic leaving
  39703. // the subnet).
  39704. Egress *bool `locationName:"egress" type:"boolean"`
  39705. // ICMP protocol: The ICMP type and code.
  39706. IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"`
  39707. // The IPv6 network range to allow or deny, in CIDR notation.
  39708. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  39709. // TCP or UDP protocols: The range of ports the rule applies to.
  39710. PortRange *PortRange `locationName:"portRange" type:"structure"`
  39711. // The protocol. A value of -1 means all protocols.
  39712. Protocol *string `locationName:"protocol" type:"string"`
  39713. // Indicates whether to allow or deny the traffic that matches the rule.
  39714. RuleAction *string `locationName:"ruleAction" type:"string" enum:"RuleAction"`
  39715. // The rule number for the entry. ACL entries are processed in ascending order
  39716. // by rule number.
  39717. RuleNumber *int64 `locationName:"ruleNumber" type:"integer"`
  39718. }
  39719. // String returns the string representation
  39720. func (s NetworkAclEntry) String() string {
  39721. return awsutil.Prettify(s)
  39722. }
  39723. // GoString returns the string representation
  39724. func (s NetworkAclEntry) GoString() string {
  39725. return s.String()
  39726. }
  39727. // SetCidrBlock sets the CidrBlock field's value.
  39728. func (s *NetworkAclEntry) SetCidrBlock(v string) *NetworkAclEntry {
  39729. s.CidrBlock = &v
  39730. return s
  39731. }
  39732. // SetEgress sets the Egress field's value.
  39733. func (s *NetworkAclEntry) SetEgress(v bool) *NetworkAclEntry {
  39734. s.Egress = &v
  39735. return s
  39736. }
  39737. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  39738. func (s *NetworkAclEntry) SetIcmpTypeCode(v *IcmpTypeCode) *NetworkAclEntry {
  39739. s.IcmpTypeCode = v
  39740. return s
  39741. }
  39742. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  39743. func (s *NetworkAclEntry) SetIpv6CidrBlock(v string) *NetworkAclEntry {
  39744. s.Ipv6CidrBlock = &v
  39745. return s
  39746. }
  39747. // SetPortRange sets the PortRange field's value.
  39748. func (s *NetworkAclEntry) SetPortRange(v *PortRange) *NetworkAclEntry {
  39749. s.PortRange = v
  39750. return s
  39751. }
  39752. // SetProtocol sets the Protocol field's value.
  39753. func (s *NetworkAclEntry) SetProtocol(v string) *NetworkAclEntry {
  39754. s.Protocol = &v
  39755. return s
  39756. }
  39757. // SetRuleAction sets the RuleAction field's value.
  39758. func (s *NetworkAclEntry) SetRuleAction(v string) *NetworkAclEntry {
  39759. s.RuleAction = &v
  39760. return s
  39761. }
  39762. // SetRuleNumber sets the RuleNumber field's value.
  39763. func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry {
  39764. s.RuleNumber = &v
  39765. return s
  39766. }
  39767. // Describes a network interface.
  39768. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterface
  39769. type NetworkInterface struct {
  39770. _ struct{} `type:"structure"`
  39771. // The association information for an Elastic IP address (IPv4) associated with
  39772. // the network interface.
  39773. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  39774. // The network interface attachment.
  39775. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  39776. // The Availability Zone.
  39777. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  39778. // A description.
  39779. Description *string `locationName:"description" type:"string"`
  39780. // Any security groups for the network interface.
  39781. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  39782. // The type of interface.
  39783. InterfaceType *string `locationName:"interfaceType" type:"string" enum:"NetworkInterfaceType"`
  39784. // The IPv6 addresses associated with the network interface.
  39785. Ipv6Addresses []*NetworkInterfaceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  39786. // The MAC address.
  39787. MacAddress *string `locationName:"macAddress" type:"string"`
  39788. // The ID of the network interface.
  39789. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  39790. // The AWS account ID of the owner of the network interface.
  39791. OwnerId *string `locationName:"ownerId" type:"string"`
  39792. // The private DNS name.
  39793. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  39794. // The IPv4 address of the network interface within the subnet.
  39795. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  39796. // The private IPv4 addresses associated with the network interface.
  39797. PrivateIpAddresses []*NetworkInterfacePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  39798. // The ID of the entity that launched the instance on your behalf (for example,
  39799. // AWS Management Console or Auto Scaling).
  39800. RequesterId *string `locationName:"requesterId" type:"string"`
  39801. // Indicates whether the network interface is being managed by AWS.
  39802. RequesterManaged *bool `locationName:"requesterManaged" type:"boolean"`
  39803. // Indicates whether traffic to or from the instance is validated.
  39804. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  39805. // The status of the network interface.
  39806. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  39807. // The ID of the subnet.
  39808. SubnetId *string `locationName:"subnetId" type:"string"`
  39809. // Any tags assigned to the network interface.
  39810. TagSet []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  39811. // The ID of the VPC.
  39812. VpcId *string `locationName:"vpcId" type:"string"`
  39813. }
  39814. // String returns the string representation
  39815. func (s NetworkInterface) String() string {
  39816. return awsutil.Prettify(s)
  39817. }
  39818. // GoString returns the string representation
  39819. func (s NetworkInterface) GoString() string {
  39820. return s.String()
  39821. }
  39822. // SetAssociation sets the Association field's value.
  39823. func (s *NetworkInterface) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterface {
  39824. s.Association = v
  39825. return s
  39826. }
  39827. // SetAttachment sets the Attachment field's value.
  39828. func (s *NetworkInterface) SetAttachment(v *NetworkInterfaceAttachment) *NetworkInterface {
  39829. s.Attachment = v
  39830. return s
  39831. }
  39832. // SetAvailabilityZone sets the AvailabilityZone field's value.
  39833. func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface {
  39834. s.AvailabilityZone = &v
  39835. return s
  39836. }
  39837. // SetDescription sets the Description field's value.
  39838. func (s *NetworkInterface) SetDescription(v string) *NetworkInterface {
  39839. s.Description = &v
  39840. return s
  39841. }
  39842. // SetGroups sets the Groups field's value.
  39843. func (s *NetworkInterface) SetGroups(v []*GroupIdentifier) *NetworkInterface {
  39844. s.Groups = v
  39845. return s
  39846. }
  39847. // SetInterfaceType sets the InterfaceType field's value.
  39848. func (s *NetworkInterface) SetInterfaceType(v string) *NetworkInterface {
  39849. s.InterfaceType = &v
  39850. return s
  39851. }
  39852. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  39853. func (s *NetworkInterface) SetIpv6Addresses(v []*NetworkInterfaceIpv6Address) *NetworkInterface {
  39854. s.Ipv6Addresses = v
  39855. return s
  39856. }
  39857. // SetMacAddress sets the MacAddress field's value.
  39858. func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface {
  39859. s.MacAddress = &v
  39860. return s
  39861. }
  39862. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  39863. func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface {
  39864. s.NetworkInterfaceId = &v
  39865. return s
  39866. }
  39867. // SetOwnerId sets the OwnerId field's value.
  39868. func (s *NetworkInterface) SetOwnerId(v string) *NetworkInterface {
  39869. s.OwnerId = &v
  39870. return s
  39871. }
  39872. // SetPrivateDnsName sets the PrivateDnsName field's value.
  39873. func (s *NetworkInterface) SetPrivateDnsName(v string) *NetworkInterface {
  39874. s.PrivateDnsName = &v
  39875. return s
  39876. }
  39877. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  39878. func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface {
  39879. s.PrivateIpAddress = &v
  39880. return s
  39881. }
  39882. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  39883. func (s *NetworkInterface) SetPrivateIpAddresses(v []*NetworkInterfacePrivateIpAddress) *NetworkInterface {
  39884. s.PrivateIpAddresses = v
  39885. return s
  39886. }
  39887. // SetRequesterId sets the RequesterId field's value.
  39888. func (s *NetworkInterface) SetRequesterId(v string) *NetworkInterface {
  39889. s.RequesterId = &v
  39890. return s
  39891. }
  39892. // SetRequesterManaged sets the RequesterManaged field's value.
  39893. func (s *NetworkInterface) SetRequesterManaged(v bool) *NetworkInterface {
  39894. s.RequesterManaged = &v
  39895. return s
  39896. }
  39897. // SetSourceDestCheck sets the SourceDestCheck field's value.
  39898. func (s *NetworkInterface) SetSourceDestCheck(v bool) *NetworkInterface {
  39899. s.SourceDestCheck = &v
  39900. return s
  39901. }
  39902. // SetStatus sets the Status field's value.
  39903. func (s *NetworkInterface) SetStatus(v string) *NetworkInterface {
  39904. s.Status = &v
  39905. return s
  39906. }
  39907. // SetSubnetId sets the SubnetId field's value.
  39908. func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface {
  39909. s.SubnetId = &v
  39910. return s
  39911. }
  39912. // SetTagSet sets the TagSet field's value.
  39913. func (s *NetworkInterface) SetTagSet(v []*Tag) *NetworkInterface {
  39914. s.TagSet = v
  39915. return s
  39916. }
  39917. // SetVpcId sets the VpcId field's value.
  39918. func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface {
  39919. s.VpcId = &v
  39920. return s
  39921. }
  39922. // Describes association information for an Elastic IP address (IPv4 only).
  39923. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAssociation
  39924. type NetworkInterfaceAssociation struct {
  39925. _ struct{} `type:"structure"`
  39926. // The allocation ID.
  39927. AllocationId *string `locationName:"allocationId" type:"string"`
  39928. // The association ID.
  39929. AssociationId *string `locationName:"associationId" type:"string"`
  39930. // The ID of the Elastic IP address owner.
  39931. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  39932. // The public DNS name.
  39933. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  39934. // The address of the Elastic IP address bound to the network interface.
  39935. PublicIp *string `locationName:"publicIp" type:"string"`
  39936. }
  39937. // String returns the string representation
  39938. func (s NetworkInterfaceAssociation) String() string {
  39939. return awsutil.Prettify(s)
  39940. }
  39941. // GoString returns the string representation
  39942. func (s NetworkInterfaceAssociation) GoString() string {
  39943. return s.String()
  39944. }
  39945. // SetAllocationId sets the AllocationId field's value.
  39946. func (s *NetworkInterfaceAssociation) SetAllocationId(v string) *NetworkInterfaceAssociation {
  39947. s.AllocationId = &v
  39948. return s
  39949. }
  39950. // SetAssociationId sets the AssociationId field's value.
  39951. func (s *NetworkInterfaceAssociation) SetAssociationId(v string) *NetworkInterfaceAssociation {
  39952. s.AssociationId = &v
  39953. return s
  39954. }
  39955. // SetIpOwnerId sets the IpOwnerId field's value.
  39956. func (s *NetworkInterfaceAssociation) SetIpOwnerId(v string) *NetworkInterfaceAssociation {
  39957. s.IpOwnerId = &v
  39958. return s
  39959. }
  39960. // SetPublicDnsName sets the PublicDnsName field's value.
  39961. func (s *NetworkInterfaceAssociation) SetPublicDnsName(v string) *NetworkInterfaceAssociation {
  39962. s.PublicDnsName = &v
  39963. return s
  39964. }
  39965. // SetPublicIp sets the PublicIp field's value.
  39966. func (s *NetworkInterfaceAssociation) SetPublicIp(v string) *NetworkInterfaceAssociation {
  39967. s.PublicIp = &v
  39968. return s
  39969. }
  39970. // Describes a network interface attachment.
  39971. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAttachment
  39972. type NetworkInterfaceAttachment struct {
  39973. _ struct{} `type:"structure"`
  39974. // The timestamp indicating when the attachment initiated.
  39975. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  39976. // The ID of the network interface attachment.
  39977. AttachmentId *string `locationName:"attachmentId" type:"string"`
  39978. // Indicates whether the network interface is deleted when the instance is terminated.
  39979. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  39980. // The device index of the network interface attachment on the instance.
  39981. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  39982. // The ID of the instance.
  39983. InstanceId *string `locationName:"instanceId" type:"string"`
  39984. // The AWS account ID of the owner of the instance.
  39985. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  39986. // The attachment state.
  39987. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  39988. }
  39989. // String returns the string representation
  39990. func (s NetworkInterfaceAttachment) String() string {
  39991. return awsutil.Prettify(s)
  39992. }
  39993. // GoString returns the string representation
  39994. func (s NetworkInterfaceAttachment) GoString() string {
  39995. return s.String()
  39996. }
  39997. // SetAttachTime sets the AttachTime field's value.
  39998. func (s *NetworkInterfaceAttachment) SetAttachTime(v time.Time) *NetworkInterfaceAttachment {
  39999. s.AttachTime = &v
  40000. return s
  40001. }
  40002. // SetAttachmentId sets the AttachmentId field's value.
  40003. func (s *NetworkInterfaceAttachment) SetAttachmentId(v string) *NetworkInterfaceAttachment {
  40004. s.AttachmentId = &v
  40005. return s
  40006. }
  40007. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  40008. func (s *NetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachment {
  40009. s.DeleteOnTermination = &v
  40010. return s
  40011. }
  40012. // SetDeviceIndex sets the DeviceIndex field's value.
  40013. func (s *NetworkInterfaceAttachment) SetDeviceIndex(v int64) *NetworkInterfaceAttachment {
  40014. s.DeviceIndex = &v
  40015. return s
  40016. }
  40017. // SetInstanceId sets the InstanceId field's value.
  40018. func (s *NetworkInterfaceAttachment) SetInstanceId(v string) *NetworkInterfaceAttachment {
  40019. s.InstanceId = &v
  40020. return s
  40021. }
  40022. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  40023. func (s *NetworkInterfaceAttachment) SetInstanceOwnerId(v string) *NetworkInterfaceAttachment {
  40024. s.InstanceOwnerId = &v
  40025. return s
  40026. }
  40027. // SetStatus sets the Status field's value.
  40028. func (s *NetworkInterfaceAttachment) SetStatus(v string) *NetworkInterfaceAttachment {
  40029. s.Status = &v
  40030. return s
  40031. }
  40032. // Describes an attachment change.
  40033. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAttachmentChanges
  40034. type NetworkInterfaceAttachmentChanges struct {
  40035. _ struct{} `type:"structure"`
  40036. // The ID of the network interface attachment.
  40037. AttachmentId *string `locationName:"attachmentId" type:"string"`
  40038. // Indicates whether the network interface is deleted when the instance is terminated.
  40039. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  40040. }
  40041. // String returns the string representation
  40042. func (s NetworkInterfaceAttachmentChanges) String() string {
  40043. return awsutil.Prettify(s)
  40044. }
  40045. // GoString returns the string representation
  40046. func (s NetworkInterfaceAttachmentChanges) GoString() string {
  40047. return s.String()
  40048. }
  40049. // SetAttachmentId sets the AttachmentId field's value.
  40050. func (s *NetworkInterfaceAttachmentChanges) SetAttachmentId(v string) *NetworkInterfaceAttachmentChanges {
  40051. s.AttachmentId = &v
  40052. return s
  40053. }
  40054. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  40055. func (s *NetworkInterfaceAttachmentChanges) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachmentChanges {
  40056. s.DeleteOnTermination = &v
  40057. return s
  40058. }
  40059. // Describes an IPv6 address associated with a network interface.
  40060. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceIpv6Address
  40061. type NetworkInterfaceIpv6Address struct {
  40062. _ struct{} `type:"structure"`
  40063. // The IPv6 address.
  40064. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  40065. }
  40066. // String returns the string representation
  40067. func (s NetworkInterfaceIpv6Address) String() string {
  40068. return awsutil.Prettify(s)
  40069. }
  40070. // GoString returns the string representation
  40071. func (s NetworkInterfaceIpv6Address) GoString() string {
  40072. return s.String()
  40073. }
  40074. // SetIpv6Address sets the Ipv6Address field's value.
  40075. func (s *NetworkInterfaceIpv6Address) SetIpv6Address(v string) *NetworkInterfaceIpv6Address {
  40076. s.Ipv6Address = &v
  40077. return s
  40078. }
  40079. // Describes the private IPv4 address of a network interface.
  40080. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfacePrivateIpAddress
  40081. type NetworkInterfacePrivateIpAddress struct {
  40082. _ struct{} `type:"structure"`
  40083. // The association information for an Elastic IP address (IPv4) associated with
  40084. // the network interface.
  40085. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  40086. // Indicates whether this IPv4 address is the primary private IPv4 address of
  40087. // the network interface.
  40088. Primary *bool `locationName:"primary" type:"boolean"`
  40089. // The private DNS name.
  40090. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  40091. // The private IPv4 address.
  40092. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  40093. }
  40094. // String returns the string representation
  40095. func (s NetworkInterfacePrivateIpAddress) String() string {
  40096. return awsutil.Prettify(s)
  40097. }
  40098. // GoString returns the string representation
  40099. func (s NetworkInterfacePrivateIpAddress) GoString() string {
  40100. return s.String()
  40101. }
  40102. // SetAssociation sets the Association field's value.
  40103. func (s *NetworkInterfacePrivateIpAddress) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterfacePrivateIpAddress {
  40104. s.Association = v
  40105. return s
  40106. }
  40107. // SetPrimary sets the Primary field's value.
  40108. func (s *NetworkInterfacePrivateIpAddress) SetPrimary(v bool) *NetworkInterfacePrivateIpAddress {
  40109. s.Primary = &v
  40110. return s
  40111. }
  40112. // SetPrivateDnsName sets the PrivateDnsName field's value.
  40113. func (s *NetworkInterfacePrivateIpAddress) SetPrivateDnsName(v string) *NetworkInterfacePrivateIpAddress {
  40114. s.PrivateDnsName = &v
  40115. return s
  40116. }
  40117. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  40118. func (s *NetworkInterfacePrivateIpAddress) SetPrivateIpAddress(v string) *NetworkInterfacePrivateIpAddress {
  40119. s.PrivateIpAddress = &v
  40120. return s
  40121. }
  40122. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NewDhcpConfiguration
  40123. type NewDhcpConfiguration struct {
  40124. _ struct{} `type:"structure"`
  40125. Key *string `locationName:"key" type:"string"`
  40126. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  40127. }
  40128. // String returns the string representation
  40129. func (s NewDhcpConfiguration) String() string {
  40130. return awsutil.Prettify(s)
  40131. }
  40132. // GoString returns the string representation
  40133. func (s NewDhcpConfiguration) GoString() string {
  40134. return s.String()
  40135. }
  40136. // SetKey sets the Key field's value.
  40137. func (s *NewDhcpConfiguration) SetKey(v string) *NewDhcpConfiguration {
  40138. s.Key = &v
  40139. return s
  40140. }
  40141. // SetValues sets the Values field's value.
  40142. func (s *NewDhcpConfiguration) SetValues(v []*string) *NewDhcpConfiguration {
  40143. s.Values = v
  40144. return s
  40145. }
  40146. // Describes the data that identifies an Amazon FPGA image (AFI) on the PCI
  40147. // bus.
  40148. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PciId
  40149. type PciId struct {
  40150. _ struct{} `type:"structure"`
  40151. // The ID of the device.
  40152. DeviceId *string `type:"string"`
  40153. // The ID of the subsystem.
  40154. SubsystemId *string `type:"string"`
  40155. // The ID of the vendor for the subsystem.
  40156. SubsystemVendorId *string `type:"string"`
  40157. // The ID of the vendor.
  40158. VendorId *string `type:"string"`
  40159. }
  40160. // String returns the string representation
  40161. func (s PciId) String() string {
  40162. return awsutil.Prettify(s)
  40163. }
  40164. // GoString returns the string representation
  40165. func (s PciId) GoString() string {
  40166. return s.String()
  40167. }
  40168. // SetDeviceId sets the DeviceId field's value.
  40169. func (s *PciId) SetDeviceId(v string) *PciId {
  40170. s.DeviceId = &v
  40171. return s
  40172. }
  40173. // SetSubsystemId sets the SubsystemId field's value.
  40174. func (s *PciId) SetSubsystemId(v string) *PciId {
  40175. s.SubsystemId = &v
  40176. return s
  40177. }
  40178. // SetSubsystemVendorId sets the SubsystemVendorId field's value.
  40179. func (s *PciId) SetSubsystemVendorId(v string) *PciId {
  40180. s.SubsystemVendorId = &v
  40181. return s
  40182. }
  40183. // SetVendorId sets the VendorId field's value.
  40184. func (s *PciId) SetVendorId(v string) *PciId {
  40185. s.VendorId = &v
  40186. return s
  40187. }
  40188. // Describes the VPC peering connection options.
  40189. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PeeringConnectionOptions
  40190. type PeeringConnectionOptions struct {
  40191. _ struct{} `type:"structure"`
  40192. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  40193. // addresses when queried from instances in the peer VPC.
  40194. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  40195. // If true, enables outbound communication from an EC2-Classic instance that's
  40196. // linked to a local VPC via ClassicLink to instances in a peer VPC.
  40197. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  40198. // If true, enables outbound communication from instances in a local VPC to
  40199. // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
  40200. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  40201. }
  40202. // String returns the string representation
  40203. func (s PeeringConnectionOptions) String() string {
  40204. return awsutil.Prettify(s)
  40205. }
  40206. // GoString returns the string representation
  40207. func (s PeeringConnectionOptions) GoString() string {
  40208. return s.String()
  40209. }
  40210. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  40211. func (s *PeeringConnectionOptions) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptions {
  40212. s.AllowDnsResolutionFromRemoteVpc = &v
  40213. return s
  40214. }
  40215. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  40216. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptions {
  40217. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  40218. return s
  40219. }
  40220. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  40221. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptions {
  40222. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  40223. return s
  40224. }
  40225. // The VPC peering connection options.
  40226. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PeeringConnectionOptionsRequest
  40227. type PeeringConnectionOptionsRequest struct {
  40228. _ struct{} `type:"structure"`
  40229. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  40230. // addresses when queried from instances in the peer VPC.
  40231. AllowDnsResolutionFromRemoteVpc *bool `type:"boolean"`
  40232. // If true, enables outbound communication from an EC2-Classic instance that's
  40233. // linked to a local VPC via ClassicLink to instances in a peer VPC.
  40234. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean"`
  40235. // If true, enables outbound communication from instances in a local VPC to
  40236. // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
  40237. AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean"`
  40238. }
  40239. // String returns the string representation
  40240. func (s PeeringConnectionOptionsRequest) String() string {
  40241. return awsutil.Prettify(s)
  40242. }
  40243. // GoString returns the string representation
  40244. func (s PeeringConnectionOptionsRequest) GoString() string {
  40245. return s.String()
  40246. }
  40247. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  40248. func (s *PeeringConnectionOptionsRequest) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  40249. s.AllowDnsResolutionFromRemoteVpc = &v
  40250. return s
  40251. }
  40252. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  40253. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  40254. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  40255. return s
  40256. }
  40257. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  40258. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptionsRequest {
  40259. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  40260. return s
  40261. }
  40262. // Describes the placement of an instance.
  40263. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Placement
  40264. type Placement struct {
  40265. _ struct{} `type:"structure"`
  40266. // The affinity setting for the instance on the Dedicated Host. This parameter
  40267. // is not supported for the ImportInstance command.
  40268. Affinity *string `locationName:"affinity" type:"string"`
  40269. // The Availability Zone of the instance.
  40270. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  40271. // The name of the placement group the instance is in (for cluster compute instances).
  40272. GroupName *string `locationName:"groupName" type:"string"`
  40273. // The ID of the Dedicated Host on which the instance resides. This parameter
  40274. // is not supported for the ImportInstance command.
  40275. HostId *string `locationName:"hostId" type:"string"`
  40276. // Reserved for future use.
  40277. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  40278. // The tenancy of the instance (if the instance is running in a VPC). An instance
  40279. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  40280. // is not supported for the ImportInstance command.
  40281. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  40282. }
  40283. // String returns the string representation
  40284. func (s Placement) String() string {
  40285. return awsutil.Prettify(s)
  40286. }
  40287. // GoString returns the string representation
  40288. func (s Placement) GoString() string {
  40289. return s.String()
  40290. }
  40291. // SetAffinity sets the Affinity field's value.
  40292. func (s *Placement) SetAffinity(v string) *Placement {
  40293. s.Affinity = &v
  40294. return s
  40295. }
  40296. // SetAvailabilityZone sets the AvailabilityZone field's value.
  40297. func (s *Placement) SetAvailabilityZone(v string) *Placement {
  40298. s.AvailabilityZone = &v
  40299. return s
  40300. }
  40301. // SetGroupName sets the GroupName field's value.
  40302. func (s *Placement) SetGroupName(v string) *Placement {
  40303. s.GroupName = &v
  40304. return s
  40305. }
  40306. // SetHostId sets the HostId field's value.
  40307. func (s *Placement) SetHostId(v string) *Placement {
  40308. s.HostId = &v
  40309. return s
  40310. }
  40311. // SetSpreadDomain sets the SpreadDomain field's value.
  40312. func (s *Placement) SetSpreadDomain(v string) *Placement {
  40313. s.SpreadDomain = &v
  40314. return s
  40315. }
  40316. // SetTenancy sets the Tenancy field's value.
  40317. func (s *Placement) SetTenancy(v string) *Placement {
  40318. s.Tenancy = &v
  40319. return s
  40320. }
  40321. // Describes a placement group.
  40322. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PlacementGroup
  40323. type PlacementGroup struct {
  40324. _ struct{} `type:"structure"`
  40325. // The name of the placement group.
  40326. GroupName *string `locationName:"groupName" type:"string"`
  40327. // The state of the placement group.
  40328. State *string `locationName:"state" type:"string" enum:"PlacementGroupState"`
  40329. // The placement strategy.
  40330. Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
  40331. }
  40332. // String returns the string representation
  40333. func (s PlacementGroup) String() string {
  40334. return awsutil.Prettify(s)
  40335. }
  40336. // GoString returns the string representation
  40337. func (s PlacementGroup) GoString() string {
  40338. return s.String()
  40339. }
  40340. // SetGroupName sets the GroupName field's value.
  40341. func (s *PlacementGroup) SetGroupName(v string) *PlacementGroup {
  40342. s.GroupName = &v
  40343. return s
  40344. }
  40345. // SetState sets the State field's value.
  40346. func (s *PlacementGroup) SetState(v string) *PlacementGroup {
  40347. s.State = &v
  40348. return s
  40349. }
  40350. // SetStrategy sets the Strategy field's value.
  40351. func (s *PlacementGroup) SetStrategy(v string) *PlacementGroup {
  40352. s.Strategy = &v
  40353. return s
  40354. }
  40355. // Describes a range of ports.
  40356. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PortRange
  40357. type PortRange struct {
  40358. _ struct{} `type:"structure"`
  40359. // The first port in the range.
  40360. From *int64 `locationName:"from" type:"integer"`
  40361. // The last port in the range.
  40362. To *int64 `locationName:"to" type:"integer"`
  40363. }
  40364. // String returns the string representation
  40365. func (s PortRange) String() string {
  40366. return awsutil.Prettify(s)
  40367. }
  40368. // GoString returns the string representation
  40369. func (s PortRange) GoString() string {
  40370. return s.String()
  40371. }
  40372. // SetFrom sets the From field's value.
  40373. func (s *PortRange) SetFrom(v int64) *PortRange {
  40374. s.From = &v
  40375. return s
  40376. }
  40377. // SetTo sets the To field's value.
  40378. func (s *PortRange) SetTo(v int64) *PortRange {
  40379. s.To = &v
  40380. return s
  40381. }
  40382. // Describes prefixes for AWS services.
  40383. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrefixList
  40384. type PrefixList struct {
  40385. _ struct{} `type:"structure"`
  40386. // The IP address range of the AWS service.
  40387. Cidrs []*string `locationName:"cidrSet" locationNameList:"item" type:"list"`
  40388. // The ID of the prefix.
  40389. PrefixListId *string `locationName:"prefixListId" type:"string"`
  40390. // The name of the prefix.
  40391. PrefixListName *string `locationName:"prefixListName" type:"string"`
  40392. }
  40393. // String returns the string representation
  40394. func (s PrefixList) String() string {
  40395. return awsutil.Prettify(s)
  40396. }
  40397. // GoString returns the string representation
  40398. func (s PrefixList) GoString() string {
  40399. return s.String()
  40400. }
  40401. // SetCidrs sets the Cidrs field's value.
  40402. func (s *PrefixList) SetCidrs(v []*string) *PrefixList {
  40403. s.Cidrs = v
  40404. return s
  40405. }
  40406. // SetPrefixListId sets the PrefixListId field's value.
  40407. func (s *PrefixList) SetPrefixListId(v string) *PrefixList {
  40408. s.PrefixListId = &v
  40409. return s
  40410. }
  40411. // SetPrefixListName sets the PrefixListName field's value.
  40412. func (s *PrefixList) SetPrefixListName(v string) *PrefixList {
  40413. s.PrefixListName = &v
  40414. return s
  40415. }
  40416. // The ID of the prefix.
  40417. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrefixListId
  40418. type PrefixListId struct {
  40419. _ struct{} `type:"structure"`
  40420. // The ID of the prefix.
  40421. PrefixListId *string `locationName:"prefixListId" type:"string"`
  40422. }
  40423. // String returns the string representation
  40424. func (s PrefixListId) String() string {
  40425. return awsutil.Prettify(s)
  40426. }
  40427. // GoString returns the string representation
  40428. func (s PrefixListId) GoString() string {
  40429. return s.String()
  40430. }
  40431. // SetPrefixListId sets the PrefixListId field's value.
  40432. func (s *PrefixListId) SetPrefixListId(v string) *PrefixListId {
  40433. s.PrefixListId = &v
  40434. return s
  40435. }
  40436. // Describes the price for a Reserved Instance.
  40437. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PriceSchedule
  40438. type PriceSchedule struct {
  40439. _ struct{} `type:"structure"`
  40440. // The current price schedule, as determined by the term remaining for the Reserved
  40441. // Instance in the listing.
  40442. //
  40443. // A specific price schedule is always in effect, but only one price schedule
  40444. // can be active at any time. Take, for example, a Reserved Instance listing
  40445. // that has five months remaining in its term. When you specify price schedules
  40446. // for five months and two months, this means that schedule 1, covering the
  40447. // first three months of the remaining term, will be active during months 5,
  40448. // 4, and 3. Then schedule 2, covering the last two months of the term, will
  40449. // be active for months 2 and 1.
  40450. Active *bool `locationName:"active" type:"boolean"`
  40451. // The currency for transacting the Reserved Instance resale. At this time,
  40452. // the only supported currency is USD.
  40453. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  40454. // The fixed price for the term.
  40455. Price *float64 `locationName:"price" type:"double"`
  40456. // The number of months remaining in the reservation. For example, 2 is the
  40457. // second to the last month before the capacity reservation expires.
  40458. Term *int64 `locationName:"term" type:"long"`
  40459. }
  40460. // String returns the string representation
  40461. func (s PriceSchedule) String() string {
  40462. return awsutil.Prettify(s)
  40463. }
  40464. // GoString returns the string representation
  40465. func (s PriceSchedule) GoString() string {
  40466. return s.String()
  40467. }
  40468. // SetActive sets the Active field's value.
  40469. func (s *PriceSchedule) SetActive(v bool) *PriceSchedule {
  40470. s.Active = &v
  40471. return s
  40472. }
  40473. // SetCurrencyCode sets the CurrencyCode field's value.
  40474. func (s *PriceSchedule) SetCurrencyCode(v string) *PriceSchedule {
  40475. s.CurrencyCode = &v
  40476. return s
  40477. }
  40478. // SetPrice sets the Price field's value.
  40479. func (s *PriceSchedule) SetPrice(v float64) *PriceSchedule {
  40480. s.Price = &v
  40481. return s
  40482. }
  40483. // SetTerm sets the Term field's value.
  40484. func (s *PriceSchedule) SetTerm(v int64) *PriceSchedule {
  40485. s.Term = &v
  40486. return s
  40487. }
  40488. // Describes the price for a Reserved Instance.
  40489. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PriceScheduleSpecification
  40490. type PriceScheduleSpecification struct {
  40491. _ struct{} `type:"structure"`
  40492. // The currency for transacting the Reserved Instance resale. At this time,
  40493. // the only supported currency is USD.
  40494. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  40495. // The fixed price for the term.
  40496. Price *float64 `locationName:"price" type:"double"`
  40497. // The number of months remaining in the reservation. For example, 2 is the
  40498. // second to the last month before the capacity reservation expires.
  40499. Term *int64 `locationName:"term" type:"long"`
  40500. }
  40501. // String returns the string representation
  40502. func (s PriceScheduleSpecification) String() string {
  40503. return awsutil.Prettify(s)
  40504. }
  40505. // GoString returns the string representation
  40506. func (s PriceScheduleSpecification) GoString() string {
  40507. return s.String()
  40508. }
  40509. // SetCurrencyCode sets the CurrencyCode field's value.
  40510. func (s *PriceScheduleSpecification) SetCurrencyCode(v string) *PriceScheduleSpecification {
  40511. s.CurrencyCode = &v
  40512. return s
  40513. }
  40514. // SetPrice sets the Price field's value.
  40515. func (s *PriceScheduleSpecification) SetPrice(v float64) *PriceScheduleSpecification {
  40516. s.Price = &v
  40517. return s
  40518. }
  40519. // SetTerm sets the Term field's value.
  40520. func (s *PriceScheduleSpecification) SetTerm(v int64) *PriceScheduleSpecification {
  40521. s.Term = &v
  40522. return s
  40523. }
  40524. // Describes a Reserved Instance offering.
  40525. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PricingDetail
  40526. type PricingDetail struct {
  40527. _ struct{} `type:"structure"`
  40528. // The number of reservations available for the price.
  40529. Count *int64 `locationName:"count" type:"integer"`
  40530. // The price per instance.
  40531. Price *float64 `locationName:"price" type:"double"`
  40532. }
  40533. // String returns the string representation
  40534. func (s PricingDetail) String() string {
  40535. return awsutil.Prettify(s)
  40536. }
  40537. // GoString returns the string representation
  40538. func (s PricingDetail) GoString() string {
  40539. return s.String()
  40540. }
  40541. // SetCount sets the Count field's value.
  40542. func (s *PricingDetail) SetCount(v int64) *PricingDetail {
  40543. s.Count = &v
  40544. return s
  40545. }
  40546. // SetPrice sets the Price field's value.
  40547. func (s *PricingDetail) SetPrice(v float64) *PricingDetail {
  40548. s.Price = &v
  40549. return s
  40550. }
  40551. // Describes a secondary private IPv4 address for a network interface.
  40552. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrivateIpAddressSpecification
  40553. type PrivateIpAddressSpecification struct {
  40554. _ struct{} `type:"structure"`
  40555. // Indicates whether the private IPv4 address is the primary private IPv4 address.
  40556. // Only one IPv4 address can be designated as primary.
  40557. Primary *bool `locationName:"primary" type:"boolean"`
  40558. // The private IPv4 addresses.
  40559. //
  40560. // PrivateIpAddress is a required field
  40561. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string" required:"true"`
  40562. }
  40563. // String returns the string representation
  40564. func (s PrivateIpAddressSpecification) String() string {
  40565. return awsutil.Prettify(s)
  40566. }
  40567. // GoString returns the string representation
  40568. func (s PrivateIpAddressSpecification) GoString() string {
  40569. return s.String()
  40570. }
  40571. // Validate inspects the fields of the type to determine if they are valid.
  40572. func (s *PrivateIpAddressSpecification) Validate() error {
  40573. invalidParams := request.ErrInvalidParams{Context: "PrivateIpAddressSpecification"}
  40574. if s.PrivateIpAddress == nil {
  40575. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddress"))
  40576. }
  40577. if invalidParams.Len() > 0 {
  40578. return invalidParams
  40579. }
  40580. return nil
  40581. }
  40582. // SetPrimary sets the Primary field's value.
  40583. func (s *PrivateIpAddressSpecification) SetPrimary(v bool) *PrivateIpAddressSpecification {
  40584. s.Primary = &v
  40585. return s
  40586. }
  40587. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  40588. func (s *PrivateIpAddressSpecification) SetPrivateIpAddress(v string) *PrivateIpAddressSpecification {
  40589. s.PrivateIpAddress = &v
  40590. return s
  40591. }
  40592. // Describes a product code.
  40593. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProductCode
  40594. type ProductCode struct {
  40595. _ struct{} `type:"structure"`
  40596. // The product code.
  40597. ProductCodeId *string `locationName:"productCode" type:"string"`
  40598. // The type of product code.
  40599. ProductCodeType *string `locationName:"type" type:"string" enum:"ProductCodeValues"`
  40600. }
  40601. // String returns the string representation
  40602. func (s ProductCode) String() string {
  40603. return awsutil.Prettify(s)
  40604. }
  40605. // GoString returns the string representation
  40606. func (s ProductCode) GoString() string {
  40607. return s.String()
  40608. }
  40609. // SetProductCodeId sets the ProductCodeId field's value.
  40610. func (s *ProductCode) SetProductCodeId(v string) *ProductCode {
  40611. s.ProductCodeId = &v
  40612. return s
  40613. }
  40614. // SetProductCodeType sets the ProductCodeType field's value.
  40615. func (s *ProductCode) SetProductCodeType(v string) *ProductCode {
  40616. s.ProductCodeType = &v
  40617. return s
  40618. }
  40619. // Describes a virtual private gateway propagating route.
  40620. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PropagatingVgw
  40621. type PropagatingVgw struct {
  40622. _ struct{} `type:"structure"`
  40623. // The ID of the virtual private gateway (VGW).
  40624. GatewayId *string `locationName:"gatewayId" type:"string"`
  40625. }
  40626. // String returns the string representation
  40627. func (s PropagatingVgw) String() string {
  40628. return awsutil.Prettify(s)
  40629. }
  40630. // GoString returns the string representation
  40631. func (s PropagatingVgw) GoString() string {
  40632. return s.String()
  40633. }
  40634. // SetGatewayId sets the GatewayId field's value.
  40635. func (s *PropagatingVgw) SetGatewayId(v string) *PropagatingVgw {
  40636. s.GatewayId = &v
  40637. return s
  40638. }
  40639. // Reserved. If you need to sustain traffic greater than the documented limits
  40640. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  40641. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  40642. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionedBandwidth
  40643. type ProvisionedBandwidth struct {
  40644. _ struct{} `type:"structure"`
  40645. // Reserved. If you need to sustain traffic greater than the documented limits
  40646. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  40647. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  40648. ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp" timestampFormat:"iso8601"`
  40649. // Reserved. If you need to sustain traffic greater than the documented limits
  40650. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  40651. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  40652. Provisioned *string `locationName:"provisioned" type:"string"`
  40653. // Reserved. If you need to sustain traffic greater than the documented limits
  40654. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  40655. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  40656. RequestTime *time.Time `locationName:"requestTime" type:"timestamp" timestampFormat:"iso8601"`
  40657. // Reserved. If you need to sustain traffic greater than the documented limits
  40658. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  40659. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  40660. Requested *string `locationName:"requested" type:"string"`
  40661. // Reserved. If you need to sustain traffic greater than the documented limits
  40662. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  40663. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  40664. Status *string `locationName:"status" type:"string"`
  40665. }
  40666. // String returns the string representation
  40667. func (s ProvisionedBandwidth) String() string {
  40668. return awsutil.Prettify(s)
  40669. }
  40670. // GoString returns the string representation
  40671. func (s ProvisionedBandwidth) GoString() string {
  40672. return s.String()
  40673. }
  40674. // SetProvisionTime sets the ProvisionTime field's value.
  40675. func (s *ProvisionedBandwidth) SetProvisionTime(v time.Time) *ProvisionedBandwidth {
  40676. s.ProvisionTime = &v
  40677. return s
  40678. }
  40679. // SetProvisioned sets the Provisioned field's value.
  40680. func (s *ProvisionedBandwidth) SetProvisioned(v string) *ProvisionedBandwidth {
  40681. s.Provisioned = &v
  40682. return s
  40683. }
  40684. // SetRequestTime sets the RequestTime field's value.
  40685. func (s *ProvisionedBandwidth) SetRequestTime(v time.Time) *ProvisionedBandwidth {
  40686. s.RequestTime = &v
  40687. return s
  40688. }
  40689. // SetRequested sets the Requested field's value.
  40690. func (s *ProvisionedBandwidth) SetRequested(v string) *ProvisionedBandwidth {
  40691. s.Requested = &v
  40692. return s
  40693. }
  40694. // SetStatus sets the Status field's value.
  40695. func (s *ProvisionedBandwidth) SetStatus(v string) *ProvisionedBandwidth {
  40696. s.Status = &v
  40697. return s
  40698. }
  40699. // Describes the result of the purchase.
  40700. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Purchase
  40701. type Purchase struct {
  40702. _ struct{} `type:"structure"`
  40703. // The currency in which the UpfrontPrice and HourlyPrice amounts are specified.
  40704. // At this time, the only supported currency is USD.
  40705. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  40706. // The duration of the reservation's term in seconds.
  40707. Duration *int64 `locationName:"duration" type:"integer"`
  40708. // The IDs of the Dedicated Hosts associated with the reservation.
  40709. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  40710. // The ID of the reservation.
  40711. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  40712. // The hourly price of the reservation per hour.
  40713. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  40714. // The instance family on the Dedicated Host that the reservation can be associated
  40715. // with.
  40716. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  40717. // The payment option for the reservation.
  40718. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  40719. // The upfront price of the reservation.
  40720. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  40721. }
  40722. // String returns the string representation
  40723. func (s Purchase) String() string {
  40724. return awsutil.Prettify(s)
  40725. }
  40726. // GoString returns the string representation
  40727. func (s Purchase) GoString() string {
  40728. return s.String()
  40729. }
  40730. // SetCurrencyCode sets the CurrencyCode field's value.
  40731. func (s *Purchase) SetCurrencyCode(v string) *Purchase {
  40732. s.CurrencyCode = &v
  40733. return s
  40734. }
  40735. // SetDuration sets the Duration field's value.
  40736. func (s *Purchase) SetDuration(v int64) *Purchase {
  40737. s.Duration = &v
  40738. return s
  40739. }
  40740. // SetHostIdSet sets the HostIdSet field's value.
  40741. func (s *Purchase) SetHostIdSet(v []*string) *Purchase {
  40742. s.HostIdSet = v
  40743. return s
  40744. }
  40745. // SetHostReservationId sets the HostReservationId field's value.
  40746. func (s *Purchase) SetHostReservationId(v string) *Purchase {
  40747. s.HostReservationId = &v
  40748. return s
  40749. }
  40750. // SetHourlyPrice sets the HourlyPrice field's value.
  40751. func (s *Purchase) SetHourlyPrice(v string) *Purchase {
  40752. s.HourlyPrice = &v
  40753. return s
  40754. }
  40755. // SetInstanceFamily sets the InstanceFamily field's value.
  40756. func (s *Purchase) SetInstanceFamily(v string) *Purchase {
  40757. s.InstanceFamily = &v
  40758. return s
  40759. }
  40760. // SetPaymentOption sets the PaymentOption field's value.
  40761. func (s *Purchase) SetPaymentOption(v string) *Purchase {
  40762. s.PaymentOption = &v
  40763. return s
  40764. }
  40765. // SetUpfrontPrice sets the UpfrontPrice field's value.
  40766. func (s *Purchase) SetUpfrontPrice(v string) *Purchase {
  40767. s.UpfrontPrice = &v
  40768. return s
  40769. }
  40770. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservationRequest
  40771. type PurchaseHostReservationInput struct {
  40772. _ struct{} `type:"structure"`
  40773. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  40774. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  40775. // in the Amazon Elastic Compute Cloud User Guide.
  40776. ClientToken *string `type:"string"`
  40777. // The currency in which the totalUpfrontPrice, LimitPrice, and totalHourlyPrice
  40778. // amounts are specified. At this time, the only supported currency is USD.
  40779. CurrencyCode *string `type:"string" enum:"CurrencyCodeValues"`
  40780. // The ID/s of the Dedicated Host/s that the reservation will be associated
  40781. // with.
  40782. //
  40783. // HostIdSet is a required field
  40784. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  40785. // The specified limit is checked against the total upfront cost of the reservation
  40786. // (calculated as the offering's upfront cost multiplied by the host count).
  40787. // If the total upfront cost is greater than the specified price limit, the
  40788. // request will fail. This is used to ensure that the purchase does not exceed
  40789. // the expected upfront cost of the purchase. At this time, the only supported
  40790. // currency is USD. For example, to indicate a limit price of USD 100, specify
  40791. // 100.00.
  40792. LimitPrice *string `type:"string"`
  40793. // The ID of the offering.
  40794. //
  40795. // OfferingId is a required field
  40796. OfferingId *string `type:"string" required:"true"`
  40797. }
  40798. // String returns the string representation
  40799. func (s PurchaseHostReservationInput) String() string {
  40800. return awsutil.Prettify(s)
  40801. }
  40802. // GoString returns the string representation
  40803. func (s PurchaseHostReservationInput) GoString() string {
  40804. return s.String()
  40805. }
  40806. // Validate inspects the fields of the type to determine if they are valid.
  40807. func (s *PurchaseHostReservationInput) Validate() error {
  40808. invalidParams := request.ErrInvalidParams{Context: "PurchaseHostReservationInput"}
  40809. if s.HostIdSet == nil {
  40810. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  40811. }
  40812. if s.OfferingId == nil {
  40813. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  40814. }
  40815. if invalidParams.Len() > 0 {
  40816. return invalidParams
  40817. }
  40818. return nil
  40819. }
  40820. // SetClientToken sets the ClientToken field's value.
  40821. func (s *PurchaseHostReservationInput) SetClientToken(v string) *PurchaseHostReservationInput {
  40822. s.ClientToken = &v
  40823. return s
  40824. }
  40825. // SetCurrencyCode sets the CurrencyCode field's value.
  40826. func (s *PurchaseHostReservationInput) SetCurrencyCode(v string) *PurchaseHostReservationInput {
  40827. s.CurrencyCode = &v
  40828. return s
  40829. }
  40830. // SetHostIdSet sets the HostIdSet field's value.
  40831. func (s *PurchaseHostReservationInput) SetHostIdSet(v []*string) *PurchaseHostReservationInput {
  40832. s.HostIdSet = v
  40833. return s
  40834. }
  40835. // SetLimitPrice sets the LimitPrice field's value.
  40836. func (s *PurchaseHostReservationInput) SetLimitPrice(v string) *PurchaseHostReservationInput {
  40837. s.LimitPrice = &v
  40838. return s
  40839. }
  40840. // SetOfferingId sets the OfferingId field's value.
  40841. func (s *PurchaseHostReservationInput) SetOfferingId(v string) *PurchaseHostReservationInput {
  40842. s.OfferingId = &v
  40843. return s
  40844. }
  40845. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservationResult
  40846. type PurchaseHostReservationOutput struct {
  40847. _ struct{} `type:"structure"`
  40848. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  40849. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  40850. // in the Amazon Elastic Compute Cloud User Guide
  40851. ClientToken *string `locationName:"clientToken" type:"string"`
  40852. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  40853. // are specified. At this time, the only supported currency is USD.
  40854. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  40855. // Describes the details of the purchase.
  40856. Purchase []*Purchase `locationName:"purchase" type:"list"`
  40857. // The total hourly price of the reservation calculated per hour.
  40858. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  40859. // The total amount that will be charged to your account when you purchase the
  40860. // reservation.
  40861. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  40862. }
  40863. // String returns the string representation
  40864. func (s PurchaseHostReservationOutput) String() string {
  40865. return awsutil.Prettify(s)
  40866. }
  40867. // GoString returns the string representation
  40868. func (s PurchaseHostReservationOutput) GoString() string {
  40869. return s.String()
  40870. }
  40871. // SetClientToken sets the ClientToken field's value.
  40872. func (s *PurchaseHostReservationOutput) SetClientToken(v string) *PurchaseHostReservationOutput {
  40873. s.ClientToken = &v
  40874. return s
  40875. }
  40876. // SetCurrencyCode sets the CurrencyCode field's value.
  40877. func (s *PurchaseHostReservationOutput) SetCurrencyCode(v string) *PurchaseHostReservationOutput {
  40878. s.CurrencyCode = &v
  40879. return s
  40880. }
  40881. // SetPurchase sets the Purchase field's value.
  40882. func (s *PurchaseHostReservationOutput) SetPurchase(v []*Purchase) *PurchaseHostReservationOutput {
  40883. s.Purchase = v
  40884. return s
  40885. }
  40886. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  40887. func (s *PurchaseHostReservationOutput) SetTotalHourlyPrice(v string) *PurchaseHostReservationOutput {
  40888. s.TotalHourlyPrice = &v
  40889. return s
  40890. }
  40891. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  40892. func (s *PurchaseHostReservationOutput) SetTotalUpfrontPrice(v string) *PurchaseHostReservationOutput {
  40893. s.TotalUpfrontPrice = &v
  40894. return s
  40895. }
  40896. // Describes a request to purchase Scheduled Instances.
  40897. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseRequest
  40898. type PurchaseRequest struct {
  40899. _ struct{} `type:"structure"`
  40900. // The number of instances.
  40901. //
  40902. // InstanceCount is a required field
  40903. InstanceCount *int64 `type:"integer" required:"true"`
  40904. // The purchase token.
  40905. //
  40906. // PurchaseToken is a required field
  40907. PurchaseToken *string `type:"string" required:"true"`
  40908. }
  40909. // String returns the string representation
  40910. func (s PurchaseRequest) String() string {
  40911. return awsutil.Prettify(s)
  40912. }
  40913. // GoString returns the string representation
  40914. func (s PurchaseRequest) GoString() string {
  40915. return s.String()
  40916. }
  40917. // Validate inspects the fields of the type to determine if they are valid.
  40918. func (s *PurchaseRequest) Validate() error {
  40919. invalidParams := request.ErrInvalidParams{Context: "PurchaseRequest"}
  40920. if s.InstanceCount == nil {
  40921. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  40922. }
  40923. if s.PurchaseToken == nil {
  40924. invalidParams.Add(request.NewErrParamRequired("PurchaseToken"))
  40925. }
  40926. if invalidParams.Len() > 0 {
  40927. return invalidParams
  40928. }
  40929. return nil
  40930. }
  40931. // SetInstanceCount sets the InstanceCount field's value.
  40932. func (s *PurchaseRequest) SetInstanceCount(v int64) *PurchaseRequest {
  40933. s.InstanceCount = &v
  40934. return s
  40935. }
  40936. // SetPurchaseToken sets the PurchaseToken field's value.
  40937. func (s *PurchaseRequest) SetPurchaseToken(v string) *PurchaseRequest {
  40938. s.PurchaseToken = &v
  40939. return s
  40940. }
  40941. // Contains the parameters for PurchaseReservedInstancesOffering.
  40942. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOfferingRequest
  40943. type PurchaseReservedInstancesOfferingInput struct {
  40944. _ struct{} `type:"structure"`
  40945. // Checks whether you have the required permissions for the action, without
  40946. // actually making the request, and provides an error response. If you have
  40947. // the required permissions, the error response is DryRunOperation. Otherwise,
  40948. // it is UnauthorizedOperation.
  40949. DryRun *bool `locationName:"dryRun" type:"boolean"`
  40950. // The number of Reserved Instances to purchase.
  40951. //
  40952. // InstanceCount is a required field
  40953. InstanceCount *int64 `type:"integer" required:"true"`
  40954. // Specified for Reserved Instance Marketplace offerings to limit the total
  40955. // order and ensure that the Reserved Instances are not purchased at unexpected
  40956. // prices.
  40957. LimitPrice *ReservedInstanceLimitPrice `locationName:"limitPrice" type:"structure"`
  40958. // The ID of the Reserved Instance offering to purchase.
  40959. //
  40960. // ReservedInstancesOfferingId is a required field
  40961. ReservedInstancesOfferingId *string `type:"string" required:"true"`
  40962. }
  40963. // String returns the string representation
  40964. func (s PurchaseReservedInstancesOfferingInput) String() string {
  40965. return awsutil.Prettify(s)
  40966. }
  40967. // GoString returns the string representation
  40968. func (s PurchaseReservedInstancesOfferingInput) GoString() string {
  40969. return s.String()
  40970. }
  40971. // Validate inspects the fields of the type to determine if they are valid.
  40972. func (s *PurchaseReservedInstancesOfferingInput) Validate() error {
  40973. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedInstancesOfferingInput"}
  40974. if s.InstanceCount == nil {
  40975. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  40976. }
  40977. if s.ReservedInstancesOfferingId == nil {
  40978. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesOfferingId"))
  40979. }
  40980. if invalidParams.Len() > 0 {
  40981. return invalidParams
  40982. }
  40983. return nil
  40984. }
  40985. // SetDryRun sets the DryRun field's value.
  40986. func (s *PurchaseReservedInstancesOfferingInput) SetDryRun(v bool) *PurchaseReservedInstancesOfferingInput {
  40987. s.DryRun = &v
  40988. return s
  40989. }
  40990. // SetInstanceCount sets the InstanceCount field's value.
  40991. func (s *PurchaseReservedInstancesOfferingInput) SetInstanceCount(v int64) *PurchaseReservedInstancesOfferingInput {
  40992. s.InstanceCount = &v
  40993. return s
  40994. }
  40995. // SetLimitPrice sets the LimitPrice field's value.
  40996. func (s *PurchaseReservedInstancesOfferingInput) SetLimitPrice(v *ReservedInstanceLimitPrice) *PurchaseReservedInstancesOfferingInput {
  40997. s.LimitPrice = v
  40998. return s
  40999. }
  41000. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  41001. func (s *PurchaseReservedInstancesOfferingInput) SetReservedInstancesOfferingId(v string) *PurchaseReservedInstancesOfferingInput {
  41002. s.ReservedInstancesOfferingId = &v
  41003. return s
  41004. }
  41005. // Contains the output of PurchaseReservedInstancesOffering.
  41006. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOfferingResult
  41007. type PurchaseReservedInstancesOfferingOutput struct {
  41008. _ struct{} `type:"structure"`
  41009. // The IDs of the purchased Reserved Instances.
  41010. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  41011. }
  41012. // String returns the string representation
  41013. func (s PurchaseReservedInstancesOfferingOutput) String() string {
  41014. return awsutil.Prettify(s)
  41015. }
  41016. // GoString returns the string representation
  41017. func (s PurchaseReservedInstancesOfferingOutput) GoString() string {
  41018. return s.String()
  41019. }
  41020. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  41021. func (s *PurchaseReservedInstancesOfferingOutput) SetReservedInstancesId(v string) *PurchaseReservedInstancesOfferingOutput {
  41022. s.ReservedInstancesId = &v
  41023. return s
  41024. }
  41025. // Contains the parameters for PurchaseScheduledInstances.
  41026. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstancesRequest
  41027. type PurchaseScheduledInstancesInput struct {
  41028. _ struct{} `type:"structure"`
  41029. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  41030. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  41031. ClientToken *string `type:"string" idempotencyToken:"true"`
  41032. // Checks whether you have the required permissions for the action, without
  41033. // actually making the request, and provides an error response. If you have
  41034. // the required permissions, the error response is DryRunOperation. Otherwise,
  41035. // it is UnauthorizedOperation.
  41036. DryRun *bool `type:"boolean"`
  41037. // One or more purchase requests.
  41038. //
  41039. // PurchaseRequests is a required field
  41040. PurchaseRequests []*PurchaseRequest `locationName:"PurchaseRequest" locationNameList:"PurchaseRequest" min:"1" type:"list" required:"true"`
  41041. }
  41042. // String returns the string representation
  41043. func (s PurchaseScheduledInstancesInput) String() string {
  41044. return awsutil.Prettify(s)
  41045. }
  41046. // GoString returns the string representation
  41047. func (s PurchaseScheduledInstancesInput) GoString() string {
  41048. return s.String()
  41049. }
  41050. // Validate inspects the fields of the type to determine if they are valid.
  41051. func (s *PurchaseScheduledInstancesInput) Validate() error {
  41052. invalidParams := request.ErrInvalidParams{Context: "PurchaseScheduledInstancesInput"}
  41053. if s.PurchaseRequests == nil {
  41054. invalidParams.Add(request.NewErrParamRequired("PurchaseRequests"))
  41055. }
  41056. if s.PurchaseRequests != nil && len(s.PurchaseRequests) < 1 {
  41057. invalidParams.Add(request.NewErrParamMinLen("PurchaseRequests", 1))
  41058. }
  41059. if s.PurchaseRequests != nil {
  41060. for i, v := range s.PurchaseRequests {
  41061. if v == nil {
  41062. continue
  41063. }
  41064. if err := v.Validate(); err != nil {
  41065. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PurchaseRequests", i), err.(request.ErrInvalidParams))
  41066. }
  41067. }
  41068. }
  41069. if invalidParams.Len() > 0 {
  41070. return invalidParams
  41071. }
  41072. return nil
  41073. }
  41074. // SetClientToken sets the ClientToken field's value.
  41075. func (s *PurchaseScheduledInstancesInput) SetClientToken(v string) *PurchaseScheduledInstancesInput {
  41076. s.ClientToken = &v
  41077. return s
  41078. }
  41079. // SetDryRun sets the DryRun field's value.
  41080. func (s *PurchaseScheduledInstancesInput) SetDryRun(v bool) *PurchaseScheduledInstancesInput {
  41081. s.DryRun = &v
  41082. return s
  41083. }
  41084. // SetPurchaseRequests sets the PurchaseRequests field's value.
  41085. func (s *PurchaseScheduledInstancesInput) SetPurchaseRequests(v []*PurchaseRequest) *PurchaseScheduledInstancesInput {
  41086. s.PurchaseRequests = v
  41087. return s
  41088. }
  41089. // Contains the output of PurchaseScheduledInstances.
  41090. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstancesResult
  41091. type PurchaseScheduledInstancesOutput struct {
  41092. _ struct{} `type:"structure"`
  41093. // Information about the Scheduled Instances.
  41094. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  41095. }
  41096. // String returns the string representation
  41097. func (s PurchaseScheduledInstancesOutput) String() string {
  41098. return awsutil.Prettify(s)
  41099. }
  41100. // GoString returns the string representation
  41101. func (s PurchaseScheduledInstancesOutput) GoString() string {
  41102. return s.String()
  41103. }
  41104. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  41105. func (s *PurchaseScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *PurchaseScheduledInstancesOutput {
  41106. s.ScheduledInstanceSet = v
  41107. return s
  41108. }
  41109. // Contains the parameters for RebootInstances.
  41110. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstancesRequest
  41111. type RebootInstancesInput struct {
  41112. _ struct{} `type:"structure"`
  41113. // Checks whether you have the required permissions for the action, without
  41114. // actually making the request, and provides an error response. If you have
  41115. // the required permissions, the error response is DryRunOperation. Otherwise,
  41116. // it is UnauthorizedOperation.
  41117. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41118. // One or more instance IDs.
  41119. //
  41120. // InstanceIds is a required field
  41121. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  41122. }
  41123. // String returns the string representation
  41124. func (s RebootInstancesInput) String() string {
  41125. return awsutil.Prettify(s)
  41126. }
  41127. // GoString returns the string representation
  41128. func (s RebootInstancesInput) GoString() string {
  41129. return s.String()
  41130. }
  41131. // Validate inspects the fields of the type to determine if they are valid.
  41132. func (s *RebootInstancesInput) Validate() error {
  41133. invalidParams := request.ErrInvalidParams{Context: "RebootInstancesInput"}
  41134. if s.InstanceIds == nil {
  41135. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  41136. }
  41137. if invalidParams.Len() > 0 {
  41138. return invalidParams
  41139. }
  41140. return nil
  41141. }
  41142. // SetDryRun sets the DryRun field's value.
  41143. func (s *RebootInstancesInput) SetDryRun(v bool) *RebootInstancesInput {
  41144. s.DryRun = &v
  41145. return s
  41146. }
  41147. // SetInstanceIds sets the InstanceIds field's value.
  41148. func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput {
  41149. s.InstanceIds = v
  41150. return s
  41151. }
  41152. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstancesOutput
  41153. type RebootInstancesOutput struct {
  41154. _ struct{} `type:"structure"`
  41155. }
  41156. // String returns the string representation
  41157. func (s RebootInstancesOutput) String() string {
  41158. return awsutil.Prettify(s)
  41159. }
  41160. // GoString returns the string representation
  41161. func (s RebootInstancesOutput) GoString() string {
  41162. return s.String()
  41163. }
  41164. // Describes a recurring charge.
  41165. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RecurringCharge
  41166. type RecurringCharge struct {
  41167. _ struct{} `type:"structure"`
  41168. // The amount of the recurring charge.
  41169. Amount *float64 `locationName:"amount" type:"double"`
  41170. // The frequency of the recurring charge.
  41171. Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"`
  41172. }
  41173. // String returns the string representation
  41174. func (s RecurringCharge) String() string {
  41175. return awsutil.Prettify(s)
  41176. }
  41177. // GoString returns the string representation
  41178. func (s RecurringCharge) GoString() string {
  41179. return s.String()
  41180. }
  41181. // SetAmount sets the Amount field's value.
  41182. func (s *RecurringCharge) SetAmount(v float64) *RecurringCharge {
  41183. s.Amount = &v
  41184. return s
  41185. }
  41186. // SetFrequency sets the Frequency field's value.
  41187. func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge {
  41188. s.Frequency = &v
  41189. return s
  41190. }
  41191. // Describes a region.
  41192. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Region
  41193. type Region struct {
  41194. _ struct{} `type:"structure"`
  41195. // The region service endpoint.
  41196. Endpoint *string `locationName:"regionEndpoint" type:"string"`
  41197. // The name of the region.
  41198. RegionName *string `locationName:"regionName" type:"string"`
  41199. }
  41200. // String returns the string representation
  41201. func (s Region) String() string {
  41202. return awsutil.Prettify(s)
  41203. }
  41204. // GoString returns the string representation
  41205. func (s Region) GoString() string {
  41206. return s.String()
  41207. }
  41208. // SetEndpoint sets the Endpoint field's value.
  41209. func (s *Region) SetEndpoint(v string) *Region {
  41210. s.Endpoint = &v
  41211. return s
  41212. }
  41213. // SetRegionName sets the RegionName field's value.
  41214. func (s *Region) SetRegionName(v string) *Region {
  41215. s.RegionName = &v
  41216. return s
  41217. }
  41218. // Contains the parameters for RegisterImage.
  41219. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImageRequest
  41220. type RegisterImageInput struct {
  41221. _ struct{} `type:"structure"`
  41222. // The architecture of the AMI.
  41223. //
  41224. // Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs,
  41225. // the architecture specified in the manifest file.
  41226. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  41227. // The billing product codes. Your account must be authorized to specify billing
  41228. // product codes. Otherwise, you can use the AWS Marketplace to bill for the
  41229. // use of an AMI.
  41230. BillingProducts []*string `locationName:"BillingProduct" locationNameList:"item" type:"list"`
  41231. // One or more block device mapping entries.
  41232. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  41233. // A description for your AMI.
  41234. Description *string `locationName:"description" type:"string"`
  41235. // Checks whether you have the required permissions for the action, without
  41236. // actually making the request, and provides an error response. If you have
  41237. // the required permissions, the error response is DryRunOperation. Otherwise,
  41238. // it is UnauthorizedOperation.
  41239. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41240. // Set to true to enable enhanced networking with ENA for the AMI and any instances
  41241. // that you launch from the AMI.
  41242. //
  41243. // This option is supported only for HVM AMIs. Specifying this option with a
  41244. // PV AMI can make instances launched from the AMI unreachable.
  41245. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  41246. // The full path to your AMI manifest in Amazon S3 storage.
  41247. ImageLocation *string `type:"string"`
  41248. // The ID of the kernel.
  41249. KernelId *string `locationName:"kernelId" type:"string"`
  41250. // A name for your AMI.
  41251. //
  41252. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  41253. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  41254. // at-signs (@), or underscores(_)
  41255. //
  41256. // Name is a required field
  41257. Name *string `locationName:"name" type:"string" required:"true"`
  41258. // The ID of the RAM disk.
  41259. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  41260. // The name of the root device (for example, /dev/sda1, or /dev/xvda).
  41261. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  41262. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  41263. // Function interface for the AMI and any instances that you launch from the
  41264. // AMI.
  41265. //
  41266. // There is no way to disable sriovNetSupport at this time.
  41267. //
  41268. // This option is supported only for HVM AMIs. Specifying this option with a
  41269. // PV AMI can make instances launched from the AMI unreachable.
  41270. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  41271. // The type of virtualization.
  41272. //
  41273. // Default: paravirtual
  41274. VirtualizationType *string `locationName:"virtualizationType" type:"string"`
  41275. }
  41276. // String returns the string representation
  41277. func (s RegisterImageInput) String() string {
  41278. return awsutil.Prettify(s)
  41279. }
  41280. // GoString returns the string representation
  41281. func (s RegisterImageInput) GoString() string {
  41282. return s.String()
  41283. }
  41284. // Validate inspects the fields of the type to determine if they are valid.
  41285. func (s *RegisterImageInput) Validate() error {
  41286. invalidParams := request.ErrInvalidParams{Context: "RegisterImageInput"}
  41287. if s.Name == nil {
  41288. invalidParams.Add(request.NewErrParamRequired("Name"))
  41289. }
  41290. if invalidParams.Len() > 0 {
  41291. return invalidParams
  41292. }
  41293. return nil
  41294. }
  41295. // SetArchitecture sets the Architecture field's value.
  41296. func (s *RegisterImageInput) SetArchitecture(v string) *RegisterImageInput {
  41297. s.Architecture = &v
  41298. return s
  41299. }
  41300. // SetBillingProducts sets the BillingProducts field's value.
  41301. func (s *RegisterImageInput) SetBillingProducts(v []*string) *RegisterImageInput {
  41302. s.BillingProducts = v
  41303. return s
  41304. }
  41305. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  41306. func (s *RegisterImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RegisterImageInput {
  41307. s.BlockDeviceMappings = v
  41308. return s
  41309. }
  41310. // SetDescription sets the Description field's value.
  41311. func (s *RegisterImageInput) SetDescription(v string) *RegisterImageInput {
  41312. s.Description = &v
  41313. return s
  41314. }
  41315. // SetDryRun sets the DryRun field's value.
  41316. func (s *RegisterImageInput) SetDryRun(v bool) *RegisterImageInput {
  41317. s.DryRun = &v
  41318. return s
  41319. }
  41320. // SetEnaSupport sets the EnaSupport field's value.
  41321. func (s *RegisterImageInput) SetEnaSupport(v bool) *RegisterImageInput {
  41322. s.EnaSupport = &v
  41323. return s
  41324. }
  41325. // SetImageLocation sets the ImageLocation field's value.
  41326. func (s *RegisterImageInput) SetImageLocation(v string) *RegisterImageInput {
  41327. s.ImageLocation = &v
  41328. return s
  41329. }
  41330. // SetKernelId sets the KernelId field's value.
  41331. func (s *RegisterImageInput) SetKernelId(v string) *RegisterImageInput {
  41332. s.KernelId = &v
  41333. return s
  41334. }
  41335. // SetName sets the Name field's value.
  41336. func (s *RegisterImageInput) SetName(v string) *RegisterImageInput {
  41337. s.Name = &v
  41338. return s
  41339. }
  41340. // SetRamdiskId sets the RamdiskId field's value.
  41341. func (s *RegisterImageInput) SetRamdiskId(v string) *RegisterImageInput {
  41342. s.RamdiskId = &v
  41343. return s
  41344. }
  41345. // SetRootDeviceName sets the RootDeviceName field's value.
  41346. func (s *RegisterImageInput) SetRootDeviceName(v string) *RegisterImageInput {
  41347. s.RootDeviceName = &v
  41348. return s
  41349. }
  41350. // SetSriovNetSupport sets the SriovNetSupport field's value.
  41351. func (s *RegisterImageInput) SetSriovNetSupport(v string) *RegisterImageInput {
  41352. s.SriovNetSupport = &v
  41353. return s
  41354. }
  41355. // SetVirtualizationType sets the VirtualizationType field's value.
  41356. func (s *RegisterImageInput) SetVirtualizationType(v string) *RegisterImageInput {
  41357. s.VirtualizationType = &v
  41358. return s
  41359. }
  41360. // Contains the output of RegisterImage.
  41361. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImageResult
  41362. type RegisterImageOutput struct {
  41363. _ struct{} `type:"structure"`
  41364. // The ID of the newly registered AMI.
  41365. ImageId *string `locationName:"imageId" type:"string"`
  41366. }
  41367. // String returns the string representation
  41368. func (s RegisterImageOutput) String() string {
  41369. return awsutil.Prettify(s)
  41370. }
  41371. // GoString returns the string representation
  41372. func (s RegisterImageOutput) GoString() string {
  41373. return s.String()
  41374. }
  41375. // SetImageId sets the ImageId field's value.
  41376. func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput {
  41377. s.ImageId = &v
  41378. return s
  41379. }
  41380. // Contains the parameters for RejectVpcPeeringConnection.
  41381. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnectionRequest
  41382. type RejectVpcPeeringConnectionInput struct {
  41383. _ struct{} `type:"structure"`
  41384. // Checks whether you have the required permissions for the action, without
  41385. // actually making the request, and provides an error response. If you have
  41386. // the required permissions, the error response is DryRunOperation. Otherwise,
  41387. // it is UnauthorizedOperation.
  41388. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41389. // The ID of the VPC peering connection.
  41390. //
  41391. // VpcPeeringConnectionId is a required field
  41392. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  41393. }
  41394. // String returns the string representation
  41395. func (s RejectVpcPeeringConnectionInput) String() string {
  41396. return awsutil.Prettify(s)
  41397. }
  41398. // GoString returns the string representation
  41399. func (s RejectVpcPeeringConnectionInput) GoString() string {
  41400. return s.String()
  41401. }
  41402. // Validate inspects the fields of the type to determine if they are valid.
  41403. func (s *RejectVpcPeeringConnectionInput) Validate() error {
  41404. invalidParams := request.ErrInvalidParams{Context: "RejectVpcPeeringConnectionInput"}
  41405. if s.VpcPeeringConnectionId == nil {
  41406. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  41407. }
  41408. if invalidParams.Len() > 0 {
  41409. return invalidParams
  41410. }
  41411. return nil
  41412. }
  41413. // SetDryRun sets the DryRun field's value.
  41414. func (s *RejectVpcPeeringConnectionInput) SetDryRun(v bool) *RejectVpcPeeringConnectionInput {
  41415. s.DryRun = &v
  41416. return s
  41417. }
  41418. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  41419. func (s *RejectVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *RejectVpcPeeringConnectionInput {
  41420. s.VpcPeeringConnectionId = &v
  41421. return s
  41422. }
  41423. // Contains the output of RejectVpcPeeringConnection.
  41424. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnectionResult
  41425. type RejectVpcPeeringConnectionOutput struct {
  41426. _ struct{} `type:"structure"`
  41427. // Returns true if the request succeeds; otherwise, it returns an error.
  41428. Return *bool `locationName:"return" type:"boolean"`
  41429. }
  41430. // String returns the string representation
  41431. func (s RejectVpcPeeringConnectionOutput) String() string {
  41432. return awsutil.Prettify(s)
  41433. }
  41434. // GoString returns the string representation
  41435. func (s RejectVpcPeeringConnectionOutput) GoString() string {
  41436. return s.String()
  41437. }
  41438. // SetReturn sets the Return field's value.
  41439. func (s *RejectVpcPeeringConnectionOutput) SetReturn(v bool) *RejectVpcPeeringConnectionOutput {
  41440. s.Return = &v
  41441. return s
  41442. }
  41443. // Contains the parameters for ReleaseAddress.
  41444. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddressRequest
  41445. type ReleaseAddressInput struct {
  41446. _ struct{} `type:"structure"`
  41447. // [EC2-VPC] The allocation ID. Required for EC2-VPC.
  41448. AllocationId *string `type:"string"`
  41449. // Checks whether you have the required permissions for the action, without
  41450. // actually making the request, and provides an error response. If you have
  41451. // the required permissions, the error response is DryRunOperation. Otherwise,
  41452. // it is UnauthorizedOperation.
  41453. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41454. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  41455. PublicIp *string `type:"string"`
  41456. }
  41457. // String returns the string representation
  41458. func (s ReleaseAddressInput) String() string {
  41459. return awsutil.Prettify(s)
  41460. }
  41461. // GoString returns the string representation
  41462. func (s ReleaseAddressInput) GoString() string {
  41463. return s.String()
  41464. }
  41465. // SetAllocationId sets the AllocationId field's value.
  41466. func (s *ReleaseAddressInput) SetAllocationId(v string) *ReleaseAddressInput {
  41467. s.AllocationId = &v
  41468. return s
  41469. }
  41470. // SetDryRun sets the DryRun field's value.
  41471. func (s *ReleaseAddressInput) SetDryRun(v bool) *ReleaseAddressInput {
  41472. s.DryRun = &v
  41473. return s
  41474. }
  41475. // SetPublicIp sets the PublicIp field's value.
  41476. func (s *ReleaseAddressInput) SetPublicIp(v string) *ReleaseAddressInput {
  41477. s.PublicIp = &v
  41478. return s
  41479. }
  41480. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddressOutput
  41481. type ReleaseAddressOutput struct {
  41482. _ struct{} `type:"structure"`
  41483. }
  41484. // String returns the string representation
  41485. func (s ReleaseAddressOutput) String() string {
  41486. return awsutil.Prettify(s)
  41487. }
  41488. // GoString returns the string representation
  41489. func (s ReleaseAddressOutput) GoString() string {
  41490. return s.String()
  41491. }
  41492. // Contains the parameters for ReleaseHosts.
  41493. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHostsRequest
  41494. type ReleaseHostsInput struct {
  41495. _ struct{} `type:"structure"`
  41496. // The IDs of the Dedicated Hosts you want to release.
  41497. //
  41498. // HostIds is a required field
  41499. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  41500. }
  41501. // String returns the string representation
  41502. func (s ReleaseHostsInput) String() string {
  41503. return awsutil.Prettify(s)
  41504. }
  41505. // GoString returns the string representation
  41506. func (s ReleaseHostsInput) GoString() string {
  41507. return s.String()
  41508. }
  41509. // Validate inspects the fields of the type to determine if they are valid.
  41510. func (s *ReleaseHostsInput) Validate() error {
  41511. invalidParams := request.ErrInvalidParams{Context: "ReleaseHostsInput"}
  41512. if s.HostIds == nil {
  41513. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  41514. }
  41515. if invalidParams.Len() > 0 {
  41516. return invalidParams
  41517. }
  41518. return nil
  41519. }
  41520. // SetHostIds sets the HostIds field's value.
  41521. func (s *ReleaseHostsInput) SetHostIds(v []*string) *ReleaseHostsInput {
  41522. s.HostIds = v
  41523. return s
  41524. }
  41525. // Contains the output of ReleaseHosts.
  41526. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHostsResult
  41527. type ReleaseHostsOutput struct {
  41528. _ struct{} `type:"structure"`
  41529. // The IDs of the Dedicated Hosts that were successfully released.
  41530. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  41531. // The IDs of the Dedicated Hosts that could not be released, including an error
  41532. // message.
  41533. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  41534. }
  41535. // String returns the string representation
  41536. func (s ReleaseHostsOutput) String() string {
  41537. return awsutil.Prettify(s)
  41538. }
  41539. // GoString returns the string representation
  41540. func (s ReleaseHostsOutput) GoString() string {
  41541. return s.String()
  41542. }
  41543. // SetSuccessful sets the Successful field's value.
  41544. func (s *ReleaseHostsOutput) SetSuccessful(v []*string) *ReleaseHostsOutput {
  41545. s.Successful = v
  41546. return s
  41547. }
  41548. // SetUnsuccessful sets the Unsuccessful field's value.
  41549. func (s *ReleaseHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ReleaseHostsOutput {
  41550. s.Unsuccessful = v
  41551. return s
  41552. }
  41553. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociationRequest
  41554. type ReplaceIamInstanceProfileAssociationInput struct {
  41555. _ struct{} `type:"structure"`
  41556. // The ID of the existing IAM instance profile association.
  41557. //
  41558. // AssociationId is a required field
  41559. AssociationId *string `type:"string" required:"true"`
  41560. // The IAM instance profile.
  41561. //
  41562. // IamInstanceProfile is a required field
  41563. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  41564. }
  41565. // String returns the string representation
  41566. func (s ReplaceIamInstanceProfileAssociationInput) String() string {
  41567. return awsutil.Prettify(s)
  41568. }
  41569. // GoString returns the string representation
  41570. func (s ReplaceIamInstanceProfileAssociationInput) GoString() string {
  41571. return s.String()
  41572. }
  41573. // Validate inspects the fields of the type to determine if they are valid.
  41574. func (s *ReplaceIamInstanceProfileAssociationInput) Validate() error {
  41575. invalidParams := request.ErrInvalidParams{Context: "ReplaceIamInstanceProfileAssociationInput"}
  41576. if s.AssociationId == nil {
  41577. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  41578. }
  41579. if s.IamInstanceProfile == nil {
  41580. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  41581. }
  41582. if invalidParams.Len() > 0 {
  41583. return invalidParams
  41584. }
  41585. return nil
  41586. }
  41587. // SetAssociationId sets the AssociationId field's value.
  41588. func (s *ReplaceIamInstanceProfileAssociationInput) SetAssociationId(v string) *ReplaceIamInstanceProfileAssociationInput {
  41589. s.AssociationId = &v
  41590. return s
  41591. }
  41592. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  41593. func (s *ReplaceIamInstanceProfileAssociationInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *ReplaceIamInstanceProfileAssociationInput {
  41594. s.IamInstanceProfile = v
  41595. return s
  41596. }
  41597. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociationResult
  41598. type ReplaceIamInstanceProfileAssociationOutput struct {
  41599. _ struct{} `type:"structure"`
  41600. // Information about the IAM instance profile association.
  41601. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  41602. }
  41603. // String returns the string representation
  41604. func (s ReplaceIamInstanceProfileAssociationOutput) String() string {
  41605. return awsutil.Prettify(s)
  41606. }
  41607. // GoString returns the string representation
  41608. func (s ReplaceIamInstanceProfileAssociationOutput) GoString() string {
  41609. return s.String()
  41610. }
  41611. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  41612. func (s *ReplaceIamInstanceProfileAssociationOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *ReplaceIamInstanceProfileAssociationOutput {
  41613. s.IamInstanceProfileAssociation = v
  41614. return s
  41615. }
  41616. // Contains the parameters for ReplaceNetworkAclAssociation.
  41617. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociationRequest
  41618. type ReplaceNetworkAclAssociationInput struct {
  41619. _ struct{} `type:"structure"`
  41620. // The ID of the current association between the original network ACL and the
  41621. // subnet.
  41622. //
  41623. // AssociationId is a required field
  41624. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  41625. // Checks whether you have the required permissions for the action, without
  41626. // actually making the request, and provides an error response. If you have
  41627. // the required permissions, the error response is DryRunOperation. Otherwise,
  41628. // it is UnauthorizedOperation.
  41629. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41630. // The ID of the new network ACL to associate with the subnet.
  41631. //
  41632. // NetworkAclId is a required field
  41633. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  41634. }
  41635. // String returns the string representation
  41636. func (s ReplaceNetworkAclAssociationInput) String() string {
  41637. return awsutil.Prettify(s)
  41638. }
  41639. // GoString returns the string representation
  41640. func (s ReplaceNetworkAclAssociationInput) GoString() string {
  41641. return s.String()
  41642. }
  41643. // Validate inspects the fields of the type to determine if they are valid.
  41644. func (s *ReplaceNetworkAclAssociationInput) Validate() error {
  41645. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclAssociationInput"}
  41646. if s.AssociationId == nil {
  41647. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  41648. }
  41649. if s.NetworkAclId == nil {
  41650. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  41651. }
  41652. if invalidParams.Len() > 0 {
  41653. return invalidParams
  41654. }
  41655. return nil
  41656. }
  41657. // SetAssociationId sets the AssociationId field's value.
  41658. func (s *ReplaceNetworkAclAssociationInput) SetAssociationId(v string) *ReplaceNetworkAclAssociationInput {
  41659. s.AssociationId = &v
  41660. return s
  41661. }
  41662. // SetDryRun sets the DryRun field's value.
  41663. func (s *ReplaceNetworkAclAssociationInput) SetDryRun(v bool) *ReplaceNetworkAclAssociationInput {
  41664. s.DryRun = &v
  41665. return s
  41666. }
  41667. // SetNetworkAclId sets the NetworkAclId field's value.
  41668. func (s *ReplaceNetworkAclAssociationInput) SetNetworkAclId(v string) *ReplaceNetworkAclAssociationInput {
  41669. s.NetworkAclId = &v
  41670. return s
  41671. }
  41672. // Contains the output of ReplaceNetworkAclAssociation.
  41673. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociationResult
  41674. type ReplaceNetworkAclAssociationOutput struct {
  41675. _ struct{} `type:"structure"`
  41676. // The ID of the new association.
  41677. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  41678. }
  41679. // String returns the string representation
  41680. func (s ReplaceNetworkAclAssociationOutput) String() string {
  41681. return awsutil.Prettify(s)
  41682. }
  41683. // GoString returns the string representation
  41684. func (s ReplaceNetworkAclAssociationOutput) GoString() string {
  41685. return s.String()
  41686. }
  41687. // SetNewAssociationId sets the NewAssociationId field's value.
  41688. func (s *ReplaceNetworkAclAssociationOutput) SetNewAssociationId(v string) *ReplaceNetworkAclAssociationOutput {
  41689. s.NewAssociationId = &v
  41690. return s
  41691. }
  41692. // Contains the parameters for ReplaceNetworkAclEntry.
  41693. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntryRequest
  41694. type ReplaceNetworkAclEntryInput struct {
  41695. _ struct{} `type:"structure"`
  41696. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  41697. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  41698. // Checks whether you have the required permissions for the action, without
  41699. // actually making the request, and provides an error response. If you have
  41700. // the required permissions, the error response is DryRunOperation. Otherwise,
  41701. // it is UnauthorizedOperation.
  41702. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41703. // Indicates whether to replace the egress rule.
  41704. //
  41705. // Default: If no value is specified, we replace the ingress rule.
  41706. //
  41707. // Egress is a required field
  41708. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  41709. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the
  41710. // ICMP (1) protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  41711. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  41712. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64).
  41713. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  41714. // The ID of the ACL.
  41715. //
  41716. // NetworkAclId is a required field
  41717. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  41718. // TCP or UDP protocols: The range of ports the rule applies to. Required if
  41719. // specifying TCP (6) or UDP (17) for the protocol.
  41720. PortRange *PortRange `locationName:"portRange" type:"structure"`
  41721. // The IP protocol. You can specify all or -1 to mean all protocols. If you
  41722. // specify all, -1, or a protocol number other than tcp, udp, or icmp, traffic
  41723. // on all ports is allowed, regardless of any ports or ICMP types or codes you
  41724. // specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block,
  41725. // traffic for all ICMP types and codes allowed, regardless of any that you
  41726. // specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block,
  41727. // you must specify an ICMP type and code.
  41728. //
  41729. // Protocol is a required field
  41730. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  41731. // Indicates whether to allow or deny the traffic that matches the rule.
  41732. //
  41733. // RuleAction is a required field
  41734. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  41735. // The rule number of the entry to replace.
  41736. //
  41737. // RuleNumber is a required field
  41738. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  41739. }
  41740. // String returns the string representation
  41741. func (s ReplaceNetworkAclEntryInput) String() string {
  41742. return awsutil.Prettify(s)
  41743. }
  41744. // GoString returns the string representation
  41745. func (s ReplaceNetworkAclEntryInput) GoString() string {
  41746. return s.String()
  41747. }
  41748. // Validate inspects the fields of the type to determine if they are valid.
  41749. func (s *ReplaceNetworkAclEntryInput) Validate() error {
  41750. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclEntryInput"}
  41751. if s.Egress == nil {
  41752. invalidParams.Add(request.NewErrParamRequired("Egress"))
  41753. }
  41754. if s.NetworkAclId == nil {
  41755. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  41756. }
  41757. if s.Protocol == nil {
  41758. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  41759. }
  41760. if s.RuleAction == nil {
  41761. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  41762. }
  41763. if s.RuleNumber == nil {
  41764. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  41765. }
  41766. if invalidParams.Len() > 0 {
  41767. return invalidParams
  41768. }
  41769. return nil
  41770. }
  41771. // SetCidrBlock sets the CidrBlock field's value.
  41772. func (s *ReplaceNetworkAclEntryInput) SetCidrBlock(v string) *ReplaceNetworkAclEntryInput {
  41773. s.CidrBlock = &v
  41774. return s
  41775. }
  41776. // SetDryRun sets the DryRun field's value.
  41777. func (s *ReplaceNetworkAclEntryInput) SetDryRun(v bool) *ReplaceNetworkAclEntryInput {
  41778. s.DryRun = &v
  41779. return s
  41780. }
  41781. // SetEgress sets the Egress field's value.
  41782. func (s *ReplaceNetworkAclEntryInput) SetEgress(v bool) *ReplaceNetworkAclEntryInput {
  41783. s.Egress = &v
  41784. return s
  41785. }
  41786. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  41787. func (s *ReplaceNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *ReplaceNetworkAclEntryInput {
  41788. s.IcmpTypeCode = v
  41789. return s
  41790. }
  41791. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  41792. func (s *ReplaceNetworkAclEntryInput) SetIpv6CidrBlock(v string) *ReplaceNetworkAclEntryInput {
  41793. s.Ipv6CidrBlock = &v
  41794. return s
  41795. }
  41796. // SetNetworkAclId sets the NetworkAclId field's value.
  41797. func (s *ReplaceNetworkAclEntryInput) SetNetworkAclId(v string) *ReplaceNetworkAclEntryInput {
  41798. s.NetworkAclId = &v
  41799. return s
  41800. }
  41801. // SetPortRange sets the PortRange field's value.
  41802. func (s *ReplaceNetworkAclEntryInput) SetPortRange(v *PortRange) *ReplaceNetworkAclEntryInput {
  41803. s.PortRange = v
  41804. return s
  41805. }
  41806. // SetProtocol sets the Protocol field's value.
  41807. func (s *ReplaceNetworkAclEntryInput) SetProtocol(v string) *ReplaceNetworkAclEntryInput {
  41808. s.Protocol = &v
  41809. return s
  41810. }
  41811. // SetRuleAction sets the RuleAction field's value.
  41812. func (s *ReplaceNetworkAclEntryInput) SetRuleAction(v string) *ReplaceNetworkAclEntryInput {
  41813. s.RuleAction = &v
  41814. return s
  41815. }
  41816. // SetRuleNumber sets the RuleNumber field's value.
  41817. func (s *ReplaceNetworkAclEntryInput) SetRuleNumber(v int64) *ReplaceNetworkAclEntryInput {
  41818. s.RuleNumber = &v
  41819. return s
  41820. }
  41821. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntryOutput
  41822. type ReplaceNetworkAclEntryOutput struct {
  41823. _ struct{} `type:"structure"`
  41824. }
  41825. // String returns the string representation
  41826. func (s ReplaceNetworkAclEntryOutput) String() string {
  41827. return awsutil.Prettify(s)
  41828. }
  41829. // GoString returns the string representation
  41830. func (s ReplaceNetworkAclEntryOutput) GoString() string {
  41831. return s.String()
  41832. }
  41833. // Contains the parameters for ReplaceRoute.
  41834. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteRequest
  41835. type ReplaceRouteInput struct {
  41836. _ struct{} `type:"structure"`
  41837. // The IPv4 CIDR address block used for the destination match. The value you
  41838. // provide must match the CIDR of an existing route in the table.
  41839. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  41840. // The IPv6 CIDR address block used for the destination match. The value you
  41841. // provide must match the CIDR of an existing route in the table.
  41842. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  41843. // Checks whether you have the required permissions for the action, without
  41844. // actually making the request, and provides an error response. If you have
  41845. // the required permissions, the error response is DryRunOperation. Otherwise,
  41846. // it is UnauthorizedOperation.
  41847. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41848. // [IPv6 traffic only] The ID of an egress-only Internet gateway.
  41849. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  41850. // The ID of an Internet gateway or virtual private gateway.
  41851. GatewayId *string `locationName:"gatewayId" type:"string"`
  41852. // The ID of a NAT instance in your VPC.
  41853. InstanceId *string `locationName:"instanceId" type:"string"`
  41854. // [IPv4 traffic only] The ID of a NAT gateway.
  41855. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  41856. // The ID of a network interface.
  41857. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  41858. // The ID of the route table.
  41859. //
  41860. // RouteTableId is a required field
  41861. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  41862. // The ID of a VPC peering connection.
  41863. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  41864. }
  41865. // String returns the string representation
  41866. func (s ReplaceRouteInput) String() string {
  41867. return awsutil.Prettify(s)
  41868. }
  41869. // GoString returns the string representation
  41870. func (s ReplaceRouteInput) GoString() string {
  41871. return s.String()
  41872. }
  41873. // Validate inspects the fields of the type to determine if they are valid.
  41874. func (s *ReplaceRouteInput) Validate() error {
  41875. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteInput"}
  41876. if s.RouteTableId == nil {
  41877. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  41878. }
  41879. if invalidParams.Len() > 0 {
  41880. return invalidParams
  41881. }
  41882. return nil
  41883. }
  41884. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  41885. func (s *ReplaceRouteInput) SetDestinationCidrBlock(v string) *ReplaceRouteInput {
  41886. s.DestinationCidrBlock = &v
  41887. return s
  41888. }
  41889. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  41890. func (s *ReplaceRouteInput) SetDestinationIpv6CidrBlock(v string) *ReplaceRouteInput {
  41891. s.DestinationIpv6CidrBlock = &v
  41892. return s
  41893. }
  41894. // SetDryRun sets the DryRun field's value.
  41895. func (s *ReplaceRouteInput) SetDryRun(v bool) *ReplaceRouteInput {
  41896. s.DryRun = &v
  41897. return s
  41898. }
  41899. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  41900. func (s *ReplaceRouteInput) SetEgressOnlyInternetGatewayId(v string) *ReplaceRouteInput {
  41901. s.EgressOnlyInternetGatewayId = &v
  41902. return s
  41903. }
  41904. // SetGatewayId sets the GatewayId field's value.
  41905. func (s *ReplaceRouteInput) SetGatewayId(v string) *ReplaceRouteInput {
  41906. s.GatewayId = &v
  41907. return s
  41908. }
  41909. // SetInstanceId sets the InstanceId field's value.
  41910. func (s *ReplaceRouteInput) SetInstanceId(v string) *ReplaceRouteInput {
  41911. s.InstanceId = &v
  41912. return s
  41913. }
  41914. // SetNatGatewayId sets the NatGatewayId field's value.
  41915. func (s *ReplaceRouteInput) SetNatGatewayId(v string) *ReplaceRouteInput {
  41916. s.NatGatewayId = &v
  41917. return s
  41918. }
  41919. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  41920. func (s *ReplaceRouteInput) SetNetworkInterfaceId(v string) *ReplaceRouteInput {
  41921. s.NetworkInterfaceId = &v
  41922. return s
  41923. }
  41924. // SetRouteTableId sets the RouteTableId field's value.
  41925. func (s *ReplaceRouteInput) SetRouteTableId(v string) *ReplaceRouteInput {
  41926. s.RouteTableId = &v
  41927. return s
  41928. }
  41929. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  41930. func (s *ReplaceRouteInput) SetVpcPeeringConnectionId(v string) *ReplaceRouteInput {
  41931. s.VpcPeeringConnectionId = &v
  41932. return s
  41933. }
  41934. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteOutput
  41935. type ReplaceRouteOutput struct {
  41936. _ struct{} `type:"structure"`
  41937. }
  41938. // String returns the string representation
  41939. func (s ReplaceRouteOutput) String() string {
  41940. return awsutil.Prettify(s)
  41941. }
  41942. // GoString returns the string representation
  41943. func (s ReplaceRouteOutput) GoString() string {
  41944. return s.String()
  41945. }
  41946. // Contains the parameters for ReplaceRouteTableAssociation.
  41947. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociationRequest
  41948. type ReplaceRouteTableAssociationInput struct {
  41949. _ struct{} `type:"structure"`
  41950. // The association ID.
  41951. //
  41952. // AssociationId is a required field
  41953. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  41954. // Checks whether you have the required permissions for the action, without
  41955. // actually making the request, and provides an error response. If you have
  41956. // the required permissions, the error response is DryRunOperation. Otherwise,
  41957. // it is UnauthorizedOperation.
  41958. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41959. // The ID of the new route table to associate with the subnet.
  41960. //
  41961. // RouteTableId is a required field
  41962. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  41963. }
  41964. // String returns the string representation
  41965. func (s ReplaceRouteTableAssociationInput) String() string {
  41966. return awsutil.Prettify(s)
  41967. }
  41968. // GoString returns the string representation
  41969. func (s ReplaceRouteTableAssociationInput) GoString() string {
  41970. return s.String()
  41971. }
  41972. // Validate inspects the fields of the type to determine if they are valid.
  41973. func (s *ReplaceRouteTableAssociationInput) Validate() error {
  41974. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteTableAssociationInput"}
  41975. if s.AssociationId == nil {
  41976. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  41977. }
  41978. if s.RouteTableId == nil {
  41979. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  41980. }
  41981. if invalidParams.Len() > 0 {
  41982. return invalidParams
  41983. }
  41984. return nil
  41985. }
  41986. // SetAssociationId sets the AssociationId field's value.
  41987. func (s *ReplaceRouteTableAssociationInput) SetAssociationId(v string) *ReplaceRouteTableAssociationInput {
  41988. s.AssociationId = &v
  41989. return s
  41990. }
  41991. // SetDryRun sets the DryRun field's value.
  41992. func (s *ReplaceRouteTableAssociationInput) SetDryRun(v bool) *ReplaceRouteTableAssociationInput {
  41993. s.DryRun = &v
  41994. return s
  41995. }
  41996. // SetRouteTableId sets the RouteTableId field's value.
  41997. func (s *ReplaceRouteTableAssociationInput) SetRouteTableId(v string) *ReplaceRouteTableAssociationInput {
  41998. s.RouteTableId = &v
  41999. return s
  42000. }
  42001. // Contains the output of ReplaceRouteTableAssociation.
  42002. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociationResult
  42003. type ReplaceRouteTableAssociationOutput struct {
  42004. _ struct{} `type:"structure"`
  42005. // The ID of the new association.
  42006. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  42007. }
  42008. // String returns the string representation
  42009. func (s ReplaceRouteTableAssociationOutput) String() string {
  42010. return awsutil.Prettify(s)
  42011. }
  42012. // GoString returns the string representation
  42013. func (s ReplaceRouteTableAssociationOutput) GoString() string {
  42014. return s.String()
  42015. }
  42016. // SetNewAssociationId sets the NewAssociationId field's value.
  42017. func (s *ReplaceRouteTableAssociationOutput) SetNewAssociationId(v string) *ReplaceRouteTableAssociationOutput {
  42018. s.NewAssociationId = &v
  42019. return s
  42020. }
  42021. // Contains the parameters for ReportInstanceStatus.
  42022. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatusRequest
  42023. type ReportInstanceStatusInput struct {
  42024. _ struct{} `type:"structure"`
  42025. // Descriptive text about the health state of your instance.
  42026. Description *string `locationName:"description" type:"string"`
  42027. // Checks whether you have the required permissions for the action, without
  42028. // actually making the request, and provides an error response. If you have
  42029. // the required permissions, the error response is DryRunOperation. Otherwise,
  42030. // it is UnauthorizedOperation.
  42031. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42032. // The time at which the reported instance health state ended.
  42033. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  42034. // One or more instances.
  42035. //
  42036. // Instances is a required field
  42037. Instances []*string `locationName:"instanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  42038. // One or more reason codes that describes the health state of your instance.
  42039. //
  42040. // * instance-stuck-in-state: My instance is stuck in a state.
  42041. //
  42042. // * unresponsive: My instance is unresponsive.
  42043. //
  42044. // * not-accepting-credentials: My instance is not accepting my credentials.
  42045. //
  42046. // * password-not-available: A password is not available for my instance.
  42047. //
  42048. // * performance-network: My instance is experiencing performance problems
  42049. // which I believe are network related.
  42050. //
  42051. // * performance-instance-store: My instance is experiencing performance
  42052. // problems which I believe are related to the instance stores.
  42053. //
  42054. // * performance-ebs-volume: My instance is experiencing performance problems
  42055. // which I believe are related to an EBS volume.
  42056. //
  42057. // * performance-other: My instance is experiencing performance problems.
  42058. //
  42059. // * other: [explain using the description parameter]
  42060. //
  42061. // ReasonCodes is a required field
  42062. ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"`
  42063. // The time at which the reported instance health state began.
  42064. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  42065. // The status of all instances listed.
  42066. //
  42067. // Status is a required field
  42068. Status *string `locationName:"status" type:"string" required:"true" enum:"ReportStatusType"`
  42069. }
  42070. // String returns the string representation
  42071. func (s ReportInstanceStatusInput) String() string {
  42072. return awsutil.Prettify(s)
  42073. }
  42074. // GoString returns the string representation
  42075. func (s ReportInstanceStatusInput) GoString() string {
  42076. return s.String()
  42077. }
  42078. // Validate inspects the fields of the type to determine if they are valid.
  42079. func (s *ReportInstanceStatusInput) Validate() error {
  42080. invalidParams := request.ErrInvalidParams{Context: "ReportInstanceStatusInput"}
  42081. if s.Instances == nil {
  42082. invalidParams.Add(request.NewErrParamRequired("Instances"))
  42083. }
  42084. if s.ReasonCodes == nil {
  42085. invalidParams.Add(request.NewErrParamRequired("ReasonCodes"))
  42086. }
  42087. if s.Status == nil {
  42088. invalidParams.Add(request.NewErrParamRequired("Status"))
  42089. }
  42090. if invalidParams.Len() > 0 {
  42091. return invalidParams
  42092. }
  42093. return nil
  42094. }
  42095. // SetDescription sets the Description field's value.
  42096. func (s *ReportInstanceStatusInput) SetDescription(v string) *ReportInstanceStatusInput {
  42097. s.Description = &v
  42098. return s
  42099. }
  42100. // SetDryRun sets the DryRun field's value.
  42101. func (s *ReportInstanceStatusInput) SetDryRun(v bool) *ReportInstanceStatusInput {
  42102. s.DryRun = &v
  42103. return s
  42104. }
  42105. // SetEndTime sets the EndTime field's value.
  42106. func (s *ReportInstanceStatusInput) SetEndTime(v time.Time) *ReportInstanceStatusInput {
  42107. s.EndTime = &v
  42108. return s
  42109. }
  42110. // SetInstances sets the Instances field's value.
  42111. func (s *ReportInstanceStatusInput) SetInstances(v []*string) *ReportInstanceStatusInput {
  42112. s.Instances = v
  42113. return s
  42114. }
  42115. // SetReasonCodes sets the ReasonCodes field's value.
  42116. func (s *ReportInstanceStatusInput) SetReasonCodes(v []*string) *ReportInstanceStatusInput {
  42117. s.ReasonCodes = v
  42118. return s
  42119. }
  42120. // SetStartTime sets the StartTime field's value.
  42121. func (s *ReportInstanceStatusInput) SetStartTime(v time.Time) *ReportInstanceStatusInput {
  42122. s.StartTime = &v
  42123. return s
  42124. }
  42125. // SetStatus sets the Status field's value.
  42126. func (s *ReportInstanceStatusInput) SetStatus(v string) *ReportInstanceStatusInput {
  42127. s.Status = &v
  42128. return s
  42129. }
  42130. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatusOutput
  42131. type ReportInstanceStatusOutput struct {
  42132. _ struct{} `type:"structure"`
  42133. }
  42134. // String returns the string representation
  42135. func (s ReportInstanceStatusOutput) String() string {
  42136. return awsutil.Prettify(s)
  42137. }
  42138. // GoString returns the string representation
  42139. func (s ReportInstanceStatusOutput) GoString() string {
  42140. return s.String()
  42141. }
  42142. // Contains the parameters for RequestSpotFleet.
  42143. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleetRequest
  42144. type RequestSpotFleetInput struct {
  42145. _ struct{} `type:"structure"`
  42146. // Checks whether you have the required permissions for the action, without
  42147. // actually making the request, and provides an error response. If you have
  42148. // the required permissions, the error response is DryRunOperation. Otherwise,
  42149. // it is UnauthorizedOperation.
  42150. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42151. // The configuration for the Spot fleet request.
  42152. //
  42153. // SpotFleetRequestConfig is a required field
  42154. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  42155. }
  42156. // String returns the string representation
  42157. func (s RequestSpotFleetInput) String() string {
  42158. return awsutil.Prettify(s)
  42159. }
  42160. // GoString returns the string representation
  42161. func (s RequestSpotFleetInput) GoString() string {
  42162. return s.String()
  42163. }
  42164. // Validate inspects the fields of the type to determine if they are valid.
  42165. func (s *RequestSpotFleetInput) Validate() error {
  42166. invalidParams := request.ErrInvalidParams{Context: "RequestSpotFleetInput"}
  42167. if s.SpotFleetRequestConfig == nil {
  42168. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestConfig"))
  42169. }
  42170. if s.SpotFleetRequestConfig != nil {
  42171. if err := s.SpotFleetRequestConfig.Validate(); err != nil {
  42172. invalidParams.AddNested("SpotFleetRequestConfig", err.(request.ErrInvalidParams))
  42173. }
  42174. }
  42175. if invalidParams.Len() > 0 {
  42176. return invalidParams
  42177. }
  42178. return nil
  42179. }
  42180. // SetDryRun sets the DryRun field's value.
  42181. func (s *RequestSpotFleetInput) SetDryRun(v bool) *RequestSpotFleetInput {
  42182. s.DryRun = &v
  42183. return s
  42184. }
  42185. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  42186. func (s *RequestSpotFleetInput) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *RequestSpotFleetInput {
  42187. s.SpotFleetRequestConfig = v
  42188. return s
  42189. }
  42190. // Contains the output of RequestSpotFleet.
  42191. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleetResponse
  42192. type RequestSpotFleetOutput struct {
  42193. _ struct{} `type:"structure"`
  42194. // The ID of the Spot fleet request.
  42195. //
  42196. // SpotFleetRequestId is a required field
  42197. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  42198. }
  42199. // String returns the string representation
  42200. func (s RequestSpotFleetOutput) String() string {
  42201. return awsutil.Prettify(s)
  42202. }
  42203. // GoString returns the string representation
  42204. func (s RequestSpotFleetOutput) GoString() string {
  42205. return s.String()
  42206. }
  42207. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  42208. func (s *RequestSpotFleetOutput) SetSpotFleetRequestId(v string) *RequestSpotFleetOutput {
  42209. s.SpotFleetRequestId = &v
  42210. return s
  42211. }
  42212. // Contains the parameters for RequestSpotInstances.
  42213. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstancesRequest
  42214. type RequestSpotInstancesInput struct {
  42215. _ struct{} `type:"structure"`
  42216. // The user-specified name for a logical grouping of bids.
  42217. //
  42218. // When you specify an Availability Zone group in a Spot Instance request, all
  42219. // Spot instances in the request are launched in the same Availability Zone.
  42220. // Instance proximity is maintained with this parameter, but the choice of Availability
  42221. // Zone is not. The group applies only to bids for Spot Instances of the same
  42222. // instance type. Any additional Spot instance requests that are specified with
  42223. // the same Availability Zone group name are launched in that same Availability
  42224. // Zone, as long as at least one instance from the group is still active.
  42225. //
  42226. // If there is no active instance running in the Availability Zone group that
  42227. // you specify for a new Spot instance request (all instances are terminated,
  42228. // the bid is expired, or the bid falls below current market), then Amazon EC2
  42229. // launches the instance in any Availability Zone where the constraint can be
  42230. // met. Consequently, the subsequent set of Spot instances could be placed in
  42231. // a different zone from the original request, even if you specified the same
  42232. // Availability Zone group.
  42233. //
  42234. // Default: Instances are launched in any available Availability Zone.
  42235. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  42236. // The required duration for the Spot instances (also known as Spot blocks),
  42237. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  42238. // or 360).
  42239. //
  42240. // The duration period starts as soon as your Spot instance receives its instance
  42241. // ID. At the end of the duration period, Amazon EC2 marks the Spot instance
  42242. // for termination and provides a Spot instance termination notice, which gives
  42243. // the instance a two-minute warning before it terminates.
  42244. //
  42245. // Note that you can't specify an Availability Zone group or a launch group
  42246. // if you specify a duration.
  42247. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  42248. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  42249. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  42250. // in the Amazon Elastic Compute Cloud User Guide.
  42251. ClientToken *string `locationName:"clientToken" type:"string"`
  42252. // Checks whether you have the required permissions for the action, without
  42253. // actually making the request, and provides an error response. If you have
  42254. // the required permissions, the error response is DryRunOperation. Otherwise,
  42255. // it is UnauthorizedOperation.
  42256. DryRun *bool `locationName:"dryRun" type:"boolean"`
  42257. // The maximum number of Spot instances to launch.
  42258. //
  42259. // Default: 1
  42260. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  42261. // The instance launch group. Launch groups are Spot instances that launch together
  42262. // and terminate together.
  42263. //
  42264. // Default: Instances are launched and terminated individually
  42265. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  42266. // The launch specification.
  42267. LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"`
  42268. // The maximum hourly price (bid) for any Spot instance launched to fulfill
  42269. // the request.
  42270. //
  42271. // SpotPrice is a required field
  42272. SpotPrice *string `locationName:"spotPrice" type:"string" required:"true"`
  42273. // The Spot instance request type.
  42274. //
  42275. // Default: one-time
  42276. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  42277. // The start date of the request. If this is a one-time request, the request
  42278. // becomes active at this date and time and remains active until all instances
  42279. // launch, the request expires, or the request is canceled. If the request is
  42280. // persistent, the request becomes active at this date and time and remains
  42281. // active until it expires or is canceled.
  42282. //
  42283. // Default: The request is effective indefinitely.
  42284. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  42285. // The end date of the request. If this is a one-time request, the request remains
  42286. // active until all instances launch, the request is canceled, or this date
  42287. // is reached. If the request is persistent, it remains active until it is canceled
  42288. // or this date and time is reached.
  42289. //
  42290. // Default: The request is effective indefinitely.
  42291. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  42292. }
  42293. // String returns the string representation
  42294. func (s RequestSpotInstancesInput) String() string {
  42295. return awsutil.Prettify(s)
  42296. }
  42297. // GoString returns the string representation
  42298. func (s RequestSpotInstancesInput) GoString() string {
  42299. return s.String()
  42300. }
  42301. // Validate inspects the fields of the type to determine if they are valid.
  42302. func (s *RequestSpotInstancesInput) Validate() error {
  42303. invalidParams := request.ErrInvalidParams{Context: "RequestSpotInstancesInput"}
  42304. if s.SpotPrice == nil {
  42305. invalidParams.Add(request.NewErrParamRequired("SpotPrice"))
  42306. }
  42307. if s.LaunchSpecification != nil {
  42308. if err := s.LaunchSpecification.Validate(); err != nil {
  42309. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  42310. }
  42311. }
  42312. if invalidParams.Len() > 0 {
  42313. return invalidParams
  42314. }
  42315. return nil
  42316. }
  42317. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  42318. func (s *RequestSpotInstancesInput) SetAvailabilityZoneGroup(v string) *RequestSpotInstancesInput {
  42319. s.AvailabilityZoneGroup = &v
  42320. return s
  42321. }
  42322. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  42323. func (s *RequestSpotInstancesInput) SetBlockDurationMinutes(v int64) *RequestSpotInstancesInput {
  42324. s.BlockDurationMinutes = &v
  42325. return s
  42326. }
  42327. // SetClientToken sets the ClientToken field's value.
  42328. func (s *RequestSpotInstancesInput) SetClientToken(v string) *RequestSpotInstancesInput {
  42329. s.ClientToken = &v
  42330. return s
  42331. }
  42332. // SetDryRun sets the DryRun field's value.
  42333. func (s *RequestSpotInstancesInput) SetDryRun(v bool) *RequestSpotInstancesInput {
  42334. s.DryRun = &v
  42335. return s
  42336. }
  42337. // SetInstanceCount sets the InstanceCount field's value.
  42338. func (s *RequestSpotInstancesInput) SetInstanceCount(v int64) *RequestSpotInstancesInput {
  42339. s.InstanceCount = &v
  42340. return s
  42341. }
  42342. // SetLaunchGroup sets the LaunchGroup field's value.
  42343. func (s *RequestSpotInstancesInput) SetLaunchGroup(v string) *RequestSpotInstancesInput {
  42344. s.LaunchGroup = &v
  42345. return s
  42346. }
  42347. // SetLaunchSpecification sets the LaunchSpecification field's value.
  42348. func (s *RequestSpotInstancesInput) SetLaunchSpecification(v *RequestSpotLaunchSpecification) *RequestSpotInstancesInput {
  42349. s.LaunchSpecification = v
  42350. return s
  42351. }
  42352. // SetSpotPrice sets the SpotPrice field's value.
  42353. func (s *RequestSpotInstancesInput) SetSpotPrice(v string) *RequestSpotInstancesInput {
  42354. s.SpotPrice = &v
  42355. return s
  42356. }
  42357. // SetType sets the Type field's value.
  42358. func (s *RequestSpotInstancesInput) SetType(v string) *RequestSpotInstancesInput {
  42359. s.Type = &v
  42360. return s
  42361. }
  42362. // SetValidFrom sets the ValidFrom field's value.
  42363. func (s *RequestSpotInstancesInput) SetValidFrom(v time.Time) *RequestSpotInstancesInput {
  42364. s.ValidFrom = &v
  42365. return s
  42366. }
  42367. // SetValidUntil sets the ValidUntil field's value.
  42368. func (s *RequestSpotInstancesInput) SetValidUntil(v time.Time) *RequestSpotInstancesInput {
  42369. s.ValidUntil = &v
  42370. return s
  42371. }
  42372. // Contains the output of RequestSpotInstances.
  42373. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstancesResult
  42374. type RequestSpotInstancesOutput struct {
  42375. _ struct{} `type:"structure"`
  42376. // One or more Spot instance requests.
  42377. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  42378. }
  42379. // String returns the string representation
  42380. func (s RequestSpotInstancesOutput) String() string {
  42381. return awsutil.Prettify(s)
  42382. }
  42383. // GoString returns the string representation
  42384. func (s RequestSpotInstancesOutput) GoString() string {
  42385. return s.String()
  42386. }
  42387. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  42388. func (s *RequestSpotInstancesOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *RequestSpotInstancesOutput {
  42389. s.SpotInstanceRequests = v
  42390. return s
  42391. }
  42392. // Describes the launch specification for an instance.
  42393. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotLaunchSpecification
  42394. type RequestSpotLaunchSpecification struct {
  42395. _ struct{} `type:"structure"`
  42396. // Deprecated.
  42397. AddressingType *string `locationName:"addressingType" type:"string"`
  42398. // One or more block device mapping entries.
  42399. //
  42400. // Although you can specify encrypted EBS volumes in this block device mapping
  42401. // for your Spot Instances, these volumes are not encrypted.
  42402. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  42403. // Indicates whether the instance is optimized for EBS I/O. This optimization
  42404. // provides dedicated throughput to Amazon EBS and an optimized configuration
  42405. // stack to provide optimal EBS I/O performance. This optimization isn't available
  42406. // with all instance types. Additional usage charges apply when using an EBS
  42407. // Optimized instance.
  42408. //
  42409. // Default: false
  42410. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  42411. // The IAM instance profile.
  42412. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  42413. // The ID of the AMI.
  42414. ImageId *string `locationName:"imageId" type:"string"`
  42415. // The instance type.
  42416. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  42417. // The ID of the kernel.
  42418. KernelId *string `locationName:"kernelId" type:"string"`
  42419. // The name of the key pair.
  42420. KeyName *string `locationName:"keyName" type:"string"`
  42421. // Indicates whether basic or detailed monitoring is enabled for the instance.
  42422. //
  42423. // Default: Disabled
  42424. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  42425. // One or more network interfaces. If you specify a network interface, you must
  42426. // specify subnet IDs and security group IDs using the network interface.
  42427. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"`
  42428. // The placement information for the instance.
  42429. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  42430. // The ID of the RAM disk.
  42431. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  42432. // One or more security group IDs.
  42433. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  42434. // One or more security groups. When requesting instances in a VPC, you must
  42435. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  42436. // you can specify the names or the IDs of the security groups.
  42437. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"item" type:"list"`
  42438. // The ID of the subnet in which to launch the instance.
  42439. SubnetId *string `locationName:"subnetId" type:"string"`
  42440. // The user data to make available to the instances. If you are using an AWS
  42441. // SDK or command line tool, Base64-encoding is performed for you, and you can
  42442. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  42443. UserData *string `locationName:"userData" type:"string"`
  42444. }
  42445. // String returns the string representation
  42446. func (s RequestSpotLaunchSpecification) String() string {
  42447. return awsutil.Prettify(s)
  42448. }
  42449. // GoString returns the string representation
  42450. func (s RequestSpotLaunchSpecification) GoString() string {
  42451. return s.String()
  42452. }
  42453. // Validate inspects the fields of the type to determine if they are valid.
  42454. func (s *RequestSpotLaunchSpecification) Validate() error {
  42455. invalidParams := request.ErrInvalidParams{Context: "RequestSpotLaunchSpecification"}
  42456. if s.Monitoring != nil {
  42457. if err := s.Monitoring.Validate(); err != nil {
  42458. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  42459. }
  42460. }
  42461. if s.NetworkInterfaces != nil {
  42462. for i, v := range s.NetworkInterfaces {
  42463. if v == nil {
  42464. continue
  42465. }
  42466. if err := v.Validate(); err != nil {
  42467. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  42468. }
  42469. }
  42470. }
  42471. if invalidParams.Len() > 0 {
  42472. return invalidParams
  42473. }
  42474. return nil
  42475. }
  42476. // SetAddressingType sets the AddressingType field's value.
  42477. func (s *RequestSpotLaunchSpecification) SetAddressingType(v string) *RequestSpotLaunchSpecification {
  42478. s.AddressingType = &v
  42479. return s
  42480. }
  42481. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  42482. func (s *RequestSpotLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RequestSpotLaunchSpecification {
  42483. s.BlockDeviceMappings = v
  42484. return s
  42485. }
  42486. // SetEbsOptimized sets the EbsOptimized field's value.
  42487. func (s *RequestSpotLaunchSpecification) SetEbsOptimized(v bool) *RequestSpotLaunchSpecification {
  42488. s.EbsOptimized = &v
  42489. return s
  42490. }
  42491. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  42492. func (s *RequestSpotLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RequestSpotLaunchSpecification {
  42493. s.IamInstanceProfile = v
  42494. return s
  42495. }
  42496. // SetImageId sets the ImageId field's value.
  42497. func (s *RequestSpotLaunchSpecification) SetImageId(v string) *RequestSpotLaunchSpecification {
  42498. s.ImageId = &v
  42499. return s
  42500. }
  42501. // SetInstanceType sets the InstanceType field's value.
  42502. func (s *RequestSpotLaunchSpecification) SetInstanceType(v string) *RequestSpotLaunchSpecification {
  42503. s.InstanceType = &v
  42504. return s
  42505. }
  42506. // SetKernelId sets the KernelId field's value.
  42507. func (s *RequestSpotLaunchSpecification) SetKernelId(v string) *RequestSpotLaunchSpecification {
  42508. s.KernelId = &v
  42509. return s
  42510. }
  42511. // SetKeyName sets the KeyName field's value.
  42512. func (s *RequestSpotLaunchSpecification) SetKeyName(v string) *RequestSpotLaunchSpecification {
  42513. s.KeyName = &v
  42514. return s
  42515. }
  42516. // SetMonitoring sets the Monitoring field's value.
  42517. func (s *RequestSpotLaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *RequestSpotLaunchSpecification {
  42518. s.Monitoring = v
  42519. return s
  42520. }
  42521. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  42522. func (s *RequestSpotLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RequestSpotLaunchSpecification {
  42523. s.NetworkInterfaces = v
  42524. return s
  42525. }
  42526. // SetPlacement sets the Placement field's value.
  42527. func (s *RequestSpotLaunchSpecification) SetPlacement(v *SpotPlacement) *RequestSpotLaunchSpecification {
  42528. s.Placement = v
  42529. return s
  42530. }
  42531. // SetRamdiskId sets the RamdiskId field's value.
  42532. func (s *RequestSpotLaunchSpecification) SetRamdiskId(v string) *RequestSpotLaunchSpecification {
  42533. s.RamdiskId = &v
  42534. return s
  42535. }
  42536. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  42537. func (s *RequestSpotLaunchSpecification) SetSecurityGroupIds(v []*string) *RequestSpotLaunchSpecification {
  42538. s.SecurityGroupIds = v
  42539. return s
  42540. }
  42541. // SetSecurityGroups sets the SecurityGroups field's value.
  42542. func (s *RequestSpotLaunchSpecification) SetSecurityGroups(v []*string) *RequestSpotLaunchSpecification {
  42543. s.SecurityGroups = v
  42544. return s
  42545. }
  42546. // SetSubnetId sets the SubnetId field's value.
  42547. func (s *RequestSpotLaunchSpecification) SetSubnetId(v string) *RequestSpotLaunchSpecification {
  42548. s.SubnetId = &v
  42549. return s
  42550. }
  42551. // SetUserData sets the UserData field's value.
  42552. func (s *RequestSpotLaunchSpecification) SetUserData(v string) *RequestSpotLaunchSpecification {
  42553. s.UserData = &v
  42554. return s
  42555. }
  42556. // Describes a reservation.
  42557. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Reservation
  42558. type Reservation struct {
  42559. _ struct{} `type:"structure"`
  42560. // [EC2-Classic only] One or more security groups.
  42561. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  42562. // One or more instances.
  42563. Instances []*Instance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  42564. // The ID of the AWS account that owns the reservation.
  42565. OwnerId *string `locationName:"ownerId" type:"string"`
  42566. // The ID of the requester that launched the instances on your behalf (for example,
  42567. // AWS Management Console or Auto Scaling).
  42568. RequesterId *string `locationName:"requesterId" type:"string"`
  42569. // The ID of the reservation.
  42570. ReservationId *string `locationName:"reservationId" type:"string"`
  42571. }
  42572. // String returns the string representation
  42573. func (s Reservation) String() string {
  42574. return awsutil.Prettify(s)
  42575. }
  42576. // GoString returns the string representation
  42577. func (s Reservation) GoString() string {
  42578. return s.String()
  42579. }
  42580. // SetGroups sets the Groups field's value.
  42581. func (s *Reservation) SetGroups(v []*GroupIdentifier) *Reservation {
  42582. s.Groups = v
  42583. return s
  42584. }
  42585. // SetInstances sets the Instances field's value.
  42586. func (s *Reservation) SetInstances(v []*Instance) *Reservation {
  42587. s.Instances = v
  42588. return s
  42589. }
  42590. // SetOwnerId sets the OwnerId field's value.
  42591. func (s *Reservation) SetOwnerId(v string) *Reservation {
  42592. s.OwnerId = &v
  42593. return s
  42594. }
  42595. // SetRequesterId sets the RequesterId field's value.
  42596. func (s *Reservation) SetRequesterId(v string) *Reservation {
  42597. s.RequesterId = &v
  42598. return s
  42599. }
  42600. // SetReservationId sets the ReservationId field's value.
  42601. func (s *Reservation) SetReservationId(v string) *Reservation {
  42602. s.ReservationId = &v
  42603. return s
  42604. }
  42605. // The cost associated with the Reserved Instance.
  42606. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservationValue
  42607. type ReservationValue struct {
  42608. _ struct{} `type:"structure"`
  42609. // The hourly rate of the reservation.
  42610. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  42611. // The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice
  42612. // * number of hours remaining).
  42613. RemainingTotalValue *string `locationName:"remainingTotalValue" type:"string"`
  42614. // The remaining upfront cost of the reservation.
  42615. RemainingUpfrontValue *string `locationName:"remainingUpfrontValue" type:"string"`
  42616. }
  42617. // String returns the string representation
  42618. func (s ReservationValue) String() string {
  42619. return awsutil.Prettify(s)
  42620. }
  42621. // GoString returns the string representation
  42622. func (s ReservationValue) GoString() string {
  42623. return s.String()
  42624. }
  42625. // SetHourlyPrice sets the HourlyPrice field's value.
  42626. func (s *ReservationValue) SetHourlyPrice(v string) *ReservationValue {
  42627. s.HourlyPrice = &v
  42628. return s
  42629. }
  42630. // SetRemainingTotalValue sets the RemainingTotalValue field's value.
  42631. func (s *ReservationValue) SetRemainingTotalValue(v string) *ReservationValue {
  42632. s.RemainingTotalValue = &v
  42633. return s
  42634. }
  42635. // SetRemainingUpfrontValue sets the RemainingUpfrontValue field's value.
  42636. func (s *ReservationValue) SetRemainingUpfrontValue(v string) *ReservationValue {
  42637. s.RemainingUpfrontValue = &v
  42638. return s
  42639. }
  42640. // Describes the limit price of a Reserved Instance offering.
  42641. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstanceLimitPrice
  42642. type ReservedInstanceLimitPrice struct {
  42643. _ struct{} `type:"structure"`
  42644. // Used for Reserved Instance Marketplace offerings. Specifies the limit price
  42645. // on the total order (instanceCount * price).
  42646. Amount *float64 `locationName:"amount" type:"double"`
  42647. // The currency in which the limitPrice amount is specified. At this time, the
  42648. // only supported currency is USD.
  42649. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  42650. }
  42651. // String returns the string representation
  42652. func (s ReservedInstanceLimitPrice) String() string {
  42653. return awsutil.Prettify(s)
  42654. }
  42655. // GoString returns the string representation
  42656. func (s ReservedInstanceLimitPrice) GoString() string {
  42657. return s.String()
  42658. }
  42659. // SetAmount sets the Amount field's value.
  42660. func (s *ReservedInstanceLimitPrice) SetAmount(v float64) *ReservedInstanceLimitPrice {
  42661. s.Amount = &v
  42662. return s
  42663. }
  42664. // SetCurrencyCode sets the CurrencyCode field's value.
  42665. func (s *ReservedInstanceLimitPrice) SetCurrencyCode(v string) *ReservedInstanceLimitPrice {
  42666. s.CurrencyCode = &v
  42667. return s
  42668. }
  42669. // The total value of the Convertible Reserved Instance.
  42670. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstanceReservationValue
  42671. type ReservedInstanceReservationValue struct {
  42672. _ struct{} `type:"structure"`
  42673. // The total value of the Convertible Reserved Instance that you are exchanging.
  42674. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  42675. // The ID of the Convertible Reserved Instance that you are exchanging.
  42676. ReservedInstanceId *string `locationName:"reservedInstanceId" type:"string"`
  42677. }
  42678. // String returns the string representation
  42679. func (s ReservedInstanceReservationValue) String() string {
  42680. return awsutil.Prettify(s)
  42681. }
  42682. // GoString returns the string representation
  42683. func (s ReservedInstanceReservationValue) GoString() string {
  42684. return s.String()
  42685. }
  42686. // SetReservationValue sets the ReservationValue field's value.
  42687. func (s *ReservedInstanceReservationValue) SetReservationValue(v *ReservationValue) *ReservedInstanceReservationValue {
  42688. s.ReservationValue = v
  42689. return s
  42690. }
  42691. // SetReservedInstanceId sets the ReservedInstanceId field's value.
  42692. func (s *ReservedInstanceReservationValue) SetReservedInstanceId(v string) *ReservedInstanceReservationValue {
  42693. s.ReservedInstanceId = &v
  42694. return s
  42695. }
  42696. // Describes a Reserved Instance.
  42697. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstances
  42698. type ReservedInstances struct {
  42699. _ struct{} `type:"structure"`
  42700. // The Availability Zone in which the Reserved Instance can be used.
  42701. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  42702. // The currency of the Reserved Instance. It's specified using ISO 4217 standard
  42703. // currency codes. At this time, the only supported currency is USD.
  42704. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  42705. // The duration of the Reserved Instance, in seconds.
  42706. Duration *int64 `locationName:"duration" type:"long"`
  42707. // The time when the Reserved Instance expires.
  42708. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
  42709. // The purchase price of the Reserved Instance.
  42710. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  42711. // The number of reservations purchased.
  42712. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  42713. // The tenancy of the instance.
  42714. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  42715. // The instance type on which the Reserved Instance can be used.
  42716. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  42717. // The offering class of the Reserved Instance.
  42718. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  42719. // The Reserved Instance offering type.
  42720. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  42721. // The Reserved Instance product platform description.
  42722. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  42723. // The recurring charge tag assigned to the resource.
  42724. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  42725. // The ID of the Reserved Instance.
  42726. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  42727. // The scope of the Reserved Instance.
  42728. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  42729. // The date and time the Reserved Instance started.
  42730. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
  42731. // The state of the Reserved Instance purchase.
  42732. State *string `locationName:"state" type:"string" enum:"ReservedInstanceState"`
  42733. // Any tags assigned to the resource.
  42734. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  42735. // The usage price of the Reserved Instance, per hour.
  42736. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  42737. }
  42738. // String returns the string representation
  42739. func (s ReservedInstances) String() string {
  42740. return awsutil.Prettify(s)
  42741. }
  42742. // GoString returns the string representation
  42743. func (s ReservedInstances) GoString() string {
  42744. return s.String()
  42745. }
  42746. // SetAvailabilityZone sets the AvailabilityZone field's value.
  42747. func (s *ReservedInstances) SetAvailabilityZone(v string) *ReservedInstances {
  42748. s.AvailabilityZone = &v
  42749. return s
  42750. }
  42751. // SetCurrencyCode sets the CurrencyCode field's value.
  42752. func (s *ReservedInstances) SetCurrencyCode(v string) *ReservedInstances {
  42753. s.CurrencyCode = &v
  42754. return s
  42755. }
  42756. // SetDuration sets the Duration field's value.
  42757. func (s *ReservedInstances) SetDuration(v int64) *ReservedInstances {
  42758. s.Duration = &v
  42759. return s
  42760. }
  42761. // SetEnd sets the End field's value.
  42762. func (s *ReservedInstances) SetEnd(v time.Time) *ReservedInstances {
  42763. s.End = &v
  42764. return s
  42765. }
  42766. // SetFixedPrice sets the FixedPrice field's value.
  42767. func (s *ReservedInstances) SetFixedPrice(v float64) *ReservedInstances {
  42768. s.FixedPrice = &v
  42769. return s
  42770. }
  42771. // SetInstanceCount sets the InstanceCount field's value.
  42772. func (s *ReservedInstances) SetInstanceCount(v int64) *ReservedInstances {
  42773. s.InstanceCount = &v
  42774. return s
  42775. }
  42776. // SetInstanceTenancy sets the InstanceTenancy field's value.
  42777. func (s *ReservedInstances) SetInstanceTenancy(v string) *ReservedInstances {
  42778. s.InstanceTenancy = &v
  42779. return s
  42780. }
  42781. // SetInstanceType sets the InstanceType field's value.
  42782. func (s *ReservedInstances) SetInstanceType(v string) *ReservedInstances {
  42783. s.InstanceType = &v
  42784. return s
  42785. }
  42786. // SetOfferingClass sets the OfferingClass field's value.
  42787. func (s *ReservedInstances) SetOfferingClass(v string) *ReservedInstances {
  42788. s.OfferingClass = &v
  42789. return s
  42790. }
  42791. // SetOfferingType sets the OfferingType field's value.
  42792. func (s *ReservedInstances) SetOfferingType(v string) *ReservedInstances {
  42793. s.OfferingType = &v
  42794. return s
  42795. }
  42796. // SetProductDescription sets the ProductDescription field's value.
  42797. func (s *ReservedInstances) SetProductDescription(v string) *ReservedInstances {
  42798. s.ProductDescription = &v
  42799. return s
  42800. }
  42801. // SetRecurringCharges sets the RecurringCharges field's value.
  42802. func (s *ReservedInstances) SetRecurringCharges(v []*RecurringCharge) *ReservedInstances {
  42803. s.RecurringCharges = v
  42804. return s
  42805. }
  42806. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  42807. func (s *ReservedInstances) SetReservedInstancesId(v string) *ReservedInstances {
  42808. s.ReservedInstancesId = &v
  42809. return s
  42810. }
  42811. // SetScope sets the Scope field's value.
  42812. func (s *ReservedInstances) SetScope(v string) *ReservedInstances {
  42813. s.Scope = &v
  42814. return s
  42815. }
  42816. // SetStart sets the Start field's value.
  42817. func (s *ReservedInstances) SetStart(v time.Time) *ReservedInstances {
  42818. s.Start = &v
  42819. return s
  42820. }
  42821. // SetState sets the State field's value.
  42822. func (s *ReservedInstances) SetState(v string) *ReservedInstances {
  42823. s.State = &v
  42824. return s
  42825. }
  42826. // SetTags sets the Tags field's value.
  42827. func (s *ReservedInstances) SetTags(v []*Tag) *ReservedInstances {
  42828. s.Tags = v
  42829. return s
  42830. }
  42831. // SetUsagePrice sets the UsagePrice field's value.
  42832. func (s *ReservedInstances) SetUsagePrice(v float64) *ReservedInstances {
  42833. s.UsagePrice = &v
  42834. return s
  42835. }
  42836. // Describes the configuration settings for the modified Reserved Instances.
  42837. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesConfiguration
  42838. type ReservedInstancesConfiguration struct {
  42839. _ struct{} `type:"structure"`
  42840. // The Availability Zone for the modified Reserved Instances.
  42841. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  42842. // The number of modified Reserved Instances.
  42843. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  42844. // The instance type for the modified Reserved Instances.
  42845. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  42846. // The network platform of the modified Reserved Instances, which is either
  42847. // EC2-Classic or EC2-VPC.
  42848. Platform *string `locationName:"platform" type:"string"`
  42849. // Whether the Reserved Instance is applied to instances in a region or instances
  42850. // in a specific Availability Zone.
  42851. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  42852. }
  42853. // String returns the string representation
  42854. func (s ReservedInstancesConfiguration) String() string {
  42855. return awsutil.Prettify(s)
  42856. }
  42857. // GoString returns the string representation
  42858. func (s ReservedInstancesConfiguration) GoString() string {
  42859. return s.String()
  42860. }
  42861. // SetAvailabilityZone sets the AvailabilityZone field's value.
  42862. func (s *ReservedInstancesConfiguration) SetAvailabilityZone(v string) *ReservedInstancesConfiguration {
  42863. s.AvailabilityZone = &v
  42864. return s
  42865. }
  42866. // SetInstanceCount sets the InstanceCount field's value.
  42867. func (s *ReservedInstancesConfiguration) SetInstanceCount(v int64) *ReservedInstancesConfiguration {
  42868. s.InstanceCount = &v
  42869. return s
  42870. }
  42871. // SetInstanceType sets the InstanceType field's value.
  42872. func (s *ReservedInstancesConfiguration) SetInstanceType(v string) *ReservedInstancesConfiguration {
  42873. s.InstanceType = &v
  42874. return s
  42875. }
  42876. // SetPlatform sets the Platform field's value.
  42877. func (s *ReservedInstancesConfiguration) SetPlatform(v string) *ReservedInstancesConfiguration {
  42878. s.Platform = &v
  42879. return s
  42880. }
  42881. // SetScope sets the Scope field's value.
  42882. func (s *ReservedInstancesConfiguration) SetScope(v string) *ReservedInstancesConfiguration {
  42883. s.Scope = &v
  42884. return s
  42885. }
  42886. // Describes the ID of a Reserved Instance.
  42887. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesId
  42888. type ReservedInstancesId struct {
  42889. _ struct{} `type:"structure"`
  42890. // The ID of the Reserved Instance.
  42891. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  42892. }
  42893. // String returns the string representation
  42894. func (s ReservedInstancesId) String() string {
  42895. return awsutil.Prettify(s)
  42896. }
  42897. // GoString returns the string representation
  42898. func (s ReservedInstancesId) GoString() string {
  42899. return s.String()
  42900. }
  42901. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  42902. func (s *ReservedInstancesId) SetReservedInstancesId(v string) *ReservedInstancesId {
  42903. s.ReservedInstancesId = &v
  42904. return s
  42905. }
  42906. // Describes a Reserved Instance listing.
  42907. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesListing
  42908. type ReservedInstancesListing struct {
  42909. _ struct{} `type:"structure"`
  42910. // A unique, case-sensitive key supplied by the client to ensure that the request
  42911. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  42912. ClientToken *string `locationName:"clientToken" type:"string"`
  42913. // The time the listing was created.
  42914. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  42915. // The number of instances in this state.
  42916. InstanceCounts []*InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"`
  42917. // The price of the Reserved Instance listing.
  42918. PriceSchedules []*PriceSchedule `locationName:"priceSchedules" locationNameList:"item" type:"list"`
  42919. // The ID of the Reserved Instance.
  42920. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  42921. // The ID of the Reserved Instance listing.
  42922. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  42923. // The status of the Reserved Instance listing.
  42924. Status *string `locationName:"status" type:"string" enum:"ListingStatus"`
  42925. // The reason for the current status of the Reserved Instance listing. The response
  42926. // can be blank.
  42927. StatusMessage *string `locationName:"statusMessage" type:"string"`
  42928. // Any tags assigned to the resource.
  42929. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  42930. // The last modified timestamp of the listing.
  42931. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
  42932. }
  42933. // String returns the string representation
  42934. func (s ReservedInstancesListing) String() string {
  42935. return awsutil.Prettify(s)
  42936. }
  42937. // GoString returns the string representation
  42938. func (s ReservedInstancesListing) GoString() string {
  42939. return s.String()
  42940. }
  42941. // SetClientToken sets the ClientToken field's value.
  42942. func (s *ReservedInstancesListing) SetClientToken(v string) *ReservedInstancesListing {
  42943. s.ClientToken = &v
  42944. return s
  42945. }
  42946. // SetCreateDate sets the CreateDate field's value.
  42947. func (s *ReservedInstancesListing) SetCreateDate(v time.Time) *ReservedInstancesListing {
  42948. s.CreateDate = &v
  42949. return s
  42950. }
  42951. // SetInstanceCounts sets the InstanceCounts field's value.
  42952. func (s *ReservedInstancesListing) SetInstanceCounts(v []*InstanceCount) *ReservedInstancesListing {
  42953. s.InstanceCounts = v
  42954. return s
  42955. }
  42956. // SetPriceSchedules sets the PriceSchedules field's value.
  42957. func (s *ReservedInstancesListing) SetPriceSchedules(v []*PriceSchedule) *ReservedInstancesListing {
  42958. s.PriceSchedules = v
  42959. return s
  42960. }
  42961. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  42962. func (s *ReservedInstancesListing) SetReservedInstancesId(v string) *ReservedInstancesListing {
  42963. s.ReservedInstancesId = &v
  42964. return s
  42965. }
  42966. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  42967. func (s *ReservedInstancesListing) SetReservedInstancesListingId(v string) *ReservedInstancesListing {
  42968. s.ReservedInstancesListingId = &v
  42969. return s
  42970. }
  42971. // SetStatus sets the Status field's value.
  42972. func (s *ReservedInstancesListing) SetStatus(v string) *ReservedInstancesListing {
  42973. s.Status = &v
  42974. return s
  42975. }
  42976. // SetStatusMessage sets the StatusMessage field's value.
  42977. func (s *ReservedInstancesListing) SetStatusMessage(v string) *ReservedInstancesListing {
  42978. s.StatusMessage = &v
  42979. return s
  42980. }
  42981. // SetTags sets the Tags field's value.
  42982. func (s *ReservedInstancesListing) SetTags(v []*Tag) *ReservedInstancesListing {
  42983. s.Tags = v
  42984. return s
  42985. }
  42986. // SetUpdateDate sets the UpdateDate field's value.
  42987. func (s *ReservedInstancesListing) SetUpdateDate(v time.Time) *ReservedInstancesListing {
  42988. s.UpdateDate = &v
  42989. return s
  42990. }
  42991. // Describes a Reserved Instance modification.
  42992. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesModification
  42993. type ReservedInstancesModification struct {
  42994. _ struct{} `type:"structure"`
  42995. // A unique, case-sensitive key supplied by the client to ensure that the request
  42996. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  42997. ClientToken *string `locationName:"clientToken" type:"string"`
  42998. // The time when the modification request was created.
  42999. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  43000. // The time for the modification to become effective.
  43001. EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp" timestampFormat:"iso8601"`
  43002. // Contains target configurations along with their corresponding new Reserved
  43003. // Instance IDs.
  43004. ModificationResults []*ReservedInstancesModificationResult `locationName:"modificationResultSet" locationNameList:"item" type:"list"`
  43005. // The IDs of one or more Reserved Instances.
  43006. ReservedInstancesIds []*ReservedInstancesId `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  43007. // A unique ID for the Reserved Instance modification.
  43008. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  43009. // The status of the Reserved Instances modification request.
  43010. Status *string `locationName:"status" type:"string"`
  43011. // The reason for the status.
  43012. StatusMessage *string `locationName:"statusMessage" type:"string"`
  43013. // The time when the modification request was last updated.
  43014. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
  43015. }
  43016. // String returns the string representation
  43017. func (s ReservedInstancesModification) String() string {
  43018. return awsutil.Prettify(s)
  43019. }
  43020. // GoString returns the string representation
  43021. func (s ReservedInstancesModification) GoString() string {
  43022. return s.String()
  43023. }
  43024. // SetClientToken sets the ClientToken field's value.
  43025. func (s *ReservedInstancesModification) SetClientToken(v string) *ReservedInstancesModification {
  43026. s.ClientToken = &v
  43027. return s
  43028. }
  43029. // SetCreateDate sets the CreateDate field's value.
  43030. func (s *ReservedInstancesModification) SetCreateDate(v time.Time) *ReservedInstancesModification {
  43031. s.CreateDate = &v
  43032. return s
  43033. }
  43034. // SetEffectiveDate sets the EffectiveDate field's value.
  43035. func (s *ReservedInstancesModification) SetEffectiveDate(v time.Time) *ReservedInstancesModification {
  43036. s.EffectiveDate = &v
  43037. return s
  43038. }
  43039. // SetModificationResults sets the ModificationResults field's value.
  43040. func (s *ReservedInstancesModification) SetModificationResults(v []*ReservedInstancesModificationResult) *ReservedInstancesModification {
  43041. s.ModificationResults = v
  43042. return s
  43043. }
  43044. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  43045. func (s *ReservedInstancesModification) SetReservedInstancesIds(v []*ReservedInstancesId) *ReservedInstancesModification {
  43046. s.ReservedInstancesIds = v
  43047. return s
  43048. }
  43049. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  43050. func (s *ReservedInstancesModification) SetReservedInstancesModificationId(v string) *ReservedInstancesModification {
  43051. s.ReservedInstancesModificationId = &v
  43052. return s
  43053. }
  43054. // SetStatus sets the Status field's value.
  43055. func (s *ReservedInstancesModification) SetStatus(v string) *ReservedInstancesModification {
  43056. s.Status = &v
  43057. return s
  43058. }
  43059. // SetStatusMessage sets the StatusMessage field's value.
  43060. func (s *ReservedInstancesModification) SetStatusMessage(v string) *ReservedInstancesModification {
  43061. s.StatusMessage = &v
  43062. return s
  43063. }
  43064. // SetUpdateDate sets the UpdateDate field's value.
  43065. func (s *ReservedInstancesModification) SetUpdateDate(v time.Time) *ReservedInstancesModification {
  43066. s.UpdateDate = &v
  43067. return s
  43068. }
  43069. // Describes the modification request/s.
  43070. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesModificationResult
  43071. type ReservedInstancesModificationResult struct {
  43072. _ struct{} `type:"structure"`
  43073. // The ID for the Reserved Instances that were created as part of the modification
  43074. // request. This field is only available when the modification is fulfilled.
  43075. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  43076. // The target Reserved Instances configurations supplied as part of the modification
  43077. // request.
  43078. TargetConfiguration *ReservedInstancesConfiguration `locationName:"targetConfiguration" type:"structure"`
  43079. }
  43080. // String returns the string representation
  43081. func (s ReservedInstancesModificationResult) String() string {
  43082. return awsutil.Prettify(s)
  43083. }
  43084. // GoString returns the string representation
  43085. func (s ReservedInstancesModificationResult) GoString() string {
  43086. return s.String()
  43087. }
  43088. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  43089. func (s *ReservedInstancesModificationResult) SetReservedInstancesId(v string) *ReservedInstancesModificationResult {
  43090. s.ReservedInstancesId = &v
  43091. return s
  43092. }
  43093. // SetTargetConfiguration sets the TargetConfiguration field's value.
  43094. func (s *ReservedInstancesModificationResult) SetTargetConfiguration(v *ReservedInstancesConfiguration) *ReservedInstancesModificationResult {
  43095. s.TargetConfiguration = v
  43096. return s
  43097. }
  43098. // Describes a Reserved Instance offering.
  43099. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesOffering
  43100. type ReservedInstancesOffering struct {
  43101. _ struct{} `type:"structure"`
  43102. // The Availability Zone in which the Reserved Instance can be used.
  43103. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  43104. // The currency of the Reserved Instance offering you are purchasing. It's specified
  43105. // using ISO 4217 standard currency codes. At this time, the only supported
  43106. // currency is USD.
  43107. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  43108. // The duration of the Reserved Instance, in seconds.
  43109. Duration *int64 `locationName:"duration" type:"long"`
  43110. // The purchase price of the Reserved Instance.
  43111. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  43112. // The tenancy of the instance.
  43113. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  43114. // The instance type on which the Reserved Instance can be used.
  43115. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  43116. // Indicates whether the offering is available through the Reserved Instance
  43117. // Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering,
  43118. // this is true.
  43119. Marketplace *bool `locationName:"marketplace" type:"boolean"`
  43120. // If convertible it can be exchanged for Reserved Instances of the same or
  43121. // higher monetary value, with different configurations. If standard, it is
  43122. // not possible to perform an exchange.
  43123. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  43124. // The Reserved Instance offering type.
  43125. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  43126. // The pricing details of the Reserved Instance offering.
  43127. PricingDetails []*PricingDetail `locationName:"pricingDetailsSet" locationNameList:"item" type:"list"`
  43128. // The Reserved Instance product platform description.
  43129. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  43130. // The recurring charge tag assigned to the resource.
  43131. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  43132. // The ID of the Reserved Instance offering. This is the offering ID used in
  43133. // GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
  43134. ReservedInstancesOfferingId *string `locationName:"reservedInstancesOfferingId" type:"string"`
  43135. // Whether the Reserved Instance is applied to instances in a region or an Availability
  43136. // Zone.
  43137. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  43138. // The usage price of the Reserved Instance, per hour.
  43139. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  43140. }
  43141. // String returns the string representation
  43142. func (s ReservedInstancesOffering) String() string {
  43143. return awsutil.Prettify(s)
  43144. }
  43145. // GoString returns the string representation
  43146. func (s ReservedInstancesOffering) GoString() string {
  43147. return s.String()
  43148. }
  43149. // SetAvailabilityZone sets the AvailabilityZone field's value.
  43150. func (s *ReservedInstancesOffering) SetAvailabilityZone(v string) *ReservedInstancesOffering {
  43151. s.AvailabilityZone = &v
  43152. return s
  43153. }
  43154. // SetCurrencyCode sets the CurrencyCode field's value.
  43155. func (s *ReservedInstancesOffering) SetCurrencyCode(v string) *ReservedInstancesOffering {
  43156. s.CurrencyCode = &v
  43157. return s
  43158. }
  43159. // SetDuration sets the Duration field's value.
  43160. func (s *ReservedInstancesOffering) SetDuration(v int64) *ReservedInstancesOffering {
  43161. s.Duration = &v
  43162. return s
  43163. }
  43164. // SetFixedPrice sets the FixedPrice field's value.
  43165. func (s *ReservedInstancesOffering) SetFixedPrice(v float64) *ReservedInstancesOffering {
  43166. s.FixedPrice = &v
  43167. return s
  43168. }
  43169. // SetInstanceTenancy sets the InstanceTenancy field's value.
  43170. func (s *ReservedInstancesOffering) SetInstanceTenancy(v string) *ReservedInstancesOffering {
  43171. s.InstanceTenancy = &v
  43172. return s
  43173. }
  43174. // SetInstanceType sets the InstanceType field's value.
  43175. func (s *ReservedInstancesOffering) SetInstanceType(v string) *ReservedInstancesOffering {
  43176. s.InstanceType = &v
  43177. return s
  43178. }
  43179. // SetMarketplace sets the Marketplace field's value.
  43180. func (s *ReservedInstancesOffering) SetMarketplace(v bool) *ReservedInstancesOffering {
  43181. s.Marketplace = &v
  43182. return s
  43183. }
  43184. // SetOfferingClass sets the OfferingClass field's value.
  43185. func (s *ReservedInstancesOffering) SetOfferingClass(v string) *ReservedInstancesOffering {
  43186. s.OfferingClass = &v
  43187. return s
  43188. }
  43189. // SetOfferingType sets the OfferingType field's value.
  43190. func (s *ReservedInstancesOffering) SetOfferingType(v string) *ReservedInstancesOffering {
  43191. s.OfferingType = &v
  43192. return s
  43193. }
  43194. // SetPricingDetails sets the PricingDetails field's value.
  43195. func (s *ReservedInstancesOffering) SetPricingDetails(v []*PricingDetail) *ReservedInstancesOffering {
  43196. s.PricingDetails = v
  43197. return s
  43198. }
  43199. // SetProductDescription sets the ProductDescription field's value.
  43200. func (s *ReservedInstancesOffering) SetProductDescription(v string) *ReservedInstancesOffering {
  43201. s.ProductDescription = &v
  43202. return s
  43203. }
  43204. // SetRecurringCharges sets the RecurringCharges field's value.
  43205. func (s *ReservedInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedInstancesOffering {
  43206. s.RecurringCharges = v
  43207. return s
  43208. }
  43209. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  43210. func (s *ReservedInstancesOffering) SetReservedInstancesOfferingId(v string) *ReservedInstancesOffering {
  43211. s.ReservedInstancesOfferingId = &v
  43212. return s
  43213. }
  43214. // SetScope sets the Scope field's value.
  43215. func (s *ReservedInstancesOffering) SetScope(v string) *ReservedInstancesOffering {
  43216. s.Scope = &v
  43217. return s
  43218. }
  43219. // SetUsagePrice sets the UsagePrice field's value.
  43220. func (s *ReservedInstancesOffering) SetUsagePrice(v float64) *ReservedInstancesOffering {
  43221. s.UsagePrice = &v
  43222. return s
  43223. }
  43224. // Contains the parameters for ResetImageAttribute.
  43225. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttributeRequest
  43226. type ResetImageAttributeInput struct {
  43227. _ struct{} `type:"structure"`
  43228. // The attribute to reset (currently you can only reset the launch permission
  43229. // attribute).
  43230. //
  43231. // Attribute is a required field
  43232. Attribute *string `type:"string" required:"true" enum:"ResetImageAttributeName"`
  43233. // Checks whether you have the required permissions for the action, without
  43234. // actually making the request, and provides an error response. If you have
  43235. // the required permissions, the error response is DryRunOperation. Otherwise,
  43236. // it is UnauthorizedOperation.
  43237. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43238. // The ID of the AMI.
  43239. //
  43240. // ImageId is a required field
  43241. ImageId *string `type:"string" required:"true"`
  43242. }
  43243. // String returns the string representation
  43244. func (s ResetImageAttributeInput) String() string {
  43245. return awsutil.Prettify(s)
  43246. }
  43247. // GoString returns the string representation
  43248. func (s ResetImageAttributeInput) GoString() string {
  43249. return s.String()
  43250. }
  43251. // Validate inspects the fields of the type to determine if they are valid.
  43252. func (s *ResetImageAttributeInput) Validate() error {
  43253. invalidParams := request.ErrInvalidParams{Context: "ResetImageAttributeInput"}
  43254. if s.Attribute == nil {
  43255. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  43256. }
  43257. if s.ImageId == nil {
  43258. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  43259. }
  43260. if invalidParams.Len() > 0 {
  43261. return invalidParams
  43262. }
  43263. return nil
  43264. }
  43265. // SetAttribute sets the Attribute field's value.
  43266. func (s *ResetImageAttributeInput) SetAttribute(v string) *ResetImageAttributeInput {
  43267. s.Attribute = &v
  43268. return s
  43269. }
  43270. // SetDryRun sets the DryRun field's value.
  43271. func (s *ResetImageAttributeInput) SetDryRun(v bool) *ResetImageAttributeInput {
  43272. s.DryRun = &v
  43273. return s
  43274. }
  43275. // SetImageId sets the ImageId field's value.
  43276. func (s *ResetImageAttributeInput) SetImageId(v string) *ResetImageAttributeInput {
  43277. s.ImageId = &v
  43278. return s
  43279. }
  43280. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttributeOutput
  43281. type ResetImageAttributeOutput struct {
  43282. _ struct{} `type:"structure"`
  43283. }
  43284. // String returns the string representation
  43285. func (s ResetImageAttributeOutput) String() string {
  43286. return awsutil.Prettify(s)
  43287. }
  43288. // GoString returns the string representation
  43289. func (s ResetImageAttributeOutput) GoString() string {
  43290. return s.String()
  43291. }
  43292. // Contains the parameters for ResetInstanceAttribute.
  43293. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttributeRequest
  43294. type ResetInstanceAttributeInput struct {
  43295. _ struct{} `type:"structure"`
  43296. // The attribute to reset.
  43297. //
  43298. // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.
  43299. // To change an instance attribute, use ModifyInstanceAttribute.
  43300. //
  43301. // Attribute is a required field
  43302. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  43303. // Checks whether you have the required permissions for the action, without
  43304. // actually making the request, and provides an error response. If you have
  43305. // the required permissions, the error response is DryRunOperation. Otherwise,
  43306. // it is UnauthorizedOperation.
  43307. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43308. // The ID of the instance.
  43309. //
  43310. // InstanceId is a required field
  43311. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  43312. }
  43313. // String returns the string representation
  43314. func (s ResetInstanceAttributeInput) String() string {
  43315. return awsutil.Prettify(s)
  43316. }
  43317. // GoString returns the string representation
  43318. func (s ResetInstanceAttributeInput) GoString() string {
  43319. return s.String()
  43320. }
  43321. // Validate inspects the fields of the type to determine if they are valid.
  43322. func (s *ResetInstanceAttributeInput) Validate() error {
  43323. invalidParams := request.ErrInvalidParams{Context: "ResetInstanceAttributeInput"}
  43324. if s.Attribute == nil {
  43325. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  43326. }
  43327. if s.InstanceId == nil {
  43328. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  43329. }
  43330. if invalidParams.Len() > 0 {
  43331. return invalidParams
  43332. }
  43333. return nil
  43334. }
  43335. // SetAttribute sets the Attribute field's value.
  43336. func (s *ResetInstanceAttributeInput) SetAttribute(v string) *ResetInstanceAttributeInput {
  43337. s.Attribute = &v
  43338. return s
  43339. }
  43340. // SetDryRun sets the DryRun field's value.
  43341. func (s *ResetInstanceAttributeInput) SetDryRun(v bool) *ResetInstanceAttributeInput {
  43342. s.DryRun = &v
  43343. return s
  43344. }
  43345. // SetInstanceId sets the InstanceId field's value.
  43346. func (s *ResetInstanceAttributeInput) SetInstanceId(v string) *ResetInstanceAttributeInput {
  43347. s.InstanceId = &v
  43348. return s
  43349. }
  43350. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttributeOutput
  43351. type ResetInstanceAttributeOutput struct {
  43352. _ struct{} `type:"structure"`
  43353. }
  43354. // String returns the string representation
  43355. func (s ResetInstanceAttributeOutput) String() string {
  43356. return awsutil.Prettify(s)
  43357. }
  43358. // GoString returns the string representation
  43359. func (s ResetInstanceAttributeOutput) GoString() string {
  43360. return s.String()
  43361. }
  43362. // Contains the parameters for ResetNetworkInterfaceAttribute.
  43363. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttributeRequest
  43364. type ResetNetworkInterfaceAttributeInput struct {
  43365. _ struct{} `type:"structure"`
  43366. // Checks whether you have the required permissions for the action, without
  43367. // actually making the request, and provides an error response. If you have
  43368. // the required permissions, the error response is DryRunOperation. Otherwise,
  43369. // it is UnauthorizedOperation.
  43370. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43371. // The ID of the network interface.
  43372. //
  43373. // NetworkInterfaceId is a required field
  43374. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  43375. // The source/destination checking attribute. Resets the value to true.
  43376. SourceDestCheck *string `locationName:"sourceDestCheck" type:"string"`
  43377. }
  43378. // String returns the string representation
  43379. func (s ResetNetworkInterfaceAttributeInput) String() string {
  43380. return awsutil.Prettify(s)
  43381. }
  43382. // GoString returns the string representation
  43383. func (s ResetNetworkInterfaceAttributeInput) GoString() string {
  43384. return s.String()
  43385. }
  43386. // Validate inspects the fields of the type to determine if they are valid.
  43387. func (s *ResetNetworkInterfaceAttributeInput) Validate() error {
  43388. invalidParams := request.ErrInvalidParams{Context: "ResetNetworkInterfaceAttributeInput"}
  43389. if s.NetworkInterfaceId == nil {
  43390. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  43391. }
  43392. if invalidParams.Len() > 0 {
  43393. return invalidParams
  43394. }
  43395. return nil
  43396. }
  43397. // SetDryRun sets the DryRun field's value.
  43398. func (s *ResetNetworkInterfaceAttributeInput) SetDryRun(v bool) *ResetNetworkInterfaceAttributeInput {
  43399. s.DryRun = &v
  43400. return s
  43401. }
  43402. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  43403. func (s *ResetNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ResetNetworkInterfaceAttributeInput {
  43404. s.NetworkInterfaceId = &v
  43405. return s
  43406. }
  43407. // SetSourceDestCheck sets the SourceDestCheck field's value.
  43408. func (s *ResetNetworkInterfaceAttributeInput) SetSourceDestCheck(v string) *ResetNetworkInterfaceAttributeInput {
  43409. s.SourceDestCheck = &v
  43410. return s
  43411. }
  43412. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttributeOutput
  43413. type ResetNetworkInterfaceAttributeOutput struct {
  43414. _ struct{} `type:"structure"`
  43415. }
  43416. // String returns the string representation
  43417. func (s ResetNetworkInterfaceAttributeOutput) String() string {
  43418. return awsutil.Prettify(s)
  43419. }
  43420. // GoString returns the string representation
  43421. func (s ResetNetworkInterfaceAttributeOutput) GoString() string {
  43422. return s.String()
  43423. }
  43424. // Contains the parameters for ResetSnapshotAttribute.
  43425. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttributeRequest
  43426. type ResetSnapshotAttributeInput struct {
  43427. _ struct{} `type:"structure"`
  43428. // The attribute to reset. Currently, only the attribute for permission to create
  43429. // volumes can be reset.
  43430. //
  43431. // Attribute is a required field
  43432. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  43433. // Checks whether you have the required permissions for the action, without
  43434. // actually making the request, and provides an error response. If you have
  43435. // the required permissions, the error response is DryRunOperation. Otherwise,
  43436. // it is UnauthorizedOperation.
  43437. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43438. // The ID of the snapshot.
  43439. //
  43440. // SnapshotId is a required field
  43441. SnapshotId *string `type:"string" required:"true"`
  43442. }
  43443. // String returns the string representation
  43444. func (s ResetSnapshotAttributeInput) String() string {
  43445. return awsutil.Prettify(s)
  43446. }
  43447. // GoString returns the string representation
  43448. func (s ResetSnapshotAttributeInput) GoString() string {
  43449. return s.String()
  43450. }
  43451. // Validate inspects the fields of the type to determine if they are valid.
  43452. func (s *ResetSnapshotAttributeInput) Validate() error {
  43453. invalidParams := request.ErrInvalidParams{Context: "ResetSnapshotAttributeInput"}
  43454. if s.Attribute == nil {
  43455. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  43456. }
  43457. if s.SnapshotId == nil {
  43458. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  43459. }
  43460. if invalidParams.Len() > 0 {
  43461. return invalidParams
  43462. }
  43463. return nil
  43464. }
  43465. // SetAttribute sets the Attribute field's value.
  43466. func (s *ResetSnapshotAttributeInput) SetAttribute(v string) *ResetSnapshotAttributeInput {
  43467. s.Attribute = &v
  43468. return s
  43469. }
  43470. // SetDryRun sets the DryRun field's value.
  43471. func (s *ResetSnapshotAttributeInput) SetDryRun(v bool) *ResetSnapshotAttributeInput {
  43472. s.DryRun = &v
  43473. return s
  43474. }
  43475. // SetSnapshotId sets the SnapshotId field's value.
  43476. func (s *ResetSnapshotAttributeInput) SetSnapshotId(v string) *ResetSnapshotAttributeInput {
  43477. s.SnapshotId = &v
  43478. return s
  43479. }
  43480. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttributeOutput
  43481. type ResetSnapshotAttributeOutput struct {
  43482. _ struct{} `type:"structure"`
  43483. }
  43484. // String returns the string representation
  43485. func (s ResetSnapshotAttributeOutput) String() string {
  43486. return awsutil.Prettify(s)
  43487. }
  43488. // GoString returns the string representation
  43489. func (s ResetSnapshotAttributeOutput) GoString() string {
  43490. return s.String()
  43491. }
  43492. // Contains the parameters for RestoreAddressToClassic.
  43493. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassicRequest
  43494. type RestoreAddressToClassicInput struct {
  43495. _ struct{} `type:"structure"`
  43496. // Checks whether you have the required permissions for the action, without
  43497. // actually making the request, and provides an error response. If you have
  43498. // the required permissions, the error response is DryRunOperation. Otherwise,
  43499. // it is UnauthorizedOperation.
  43500. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43501. // The Elastic IP address.
  43502. //
  43503. // PublicIp is a required field
  43504. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  43505. }
  43506. // String returns the string representation
  43507. func (s RestoreAddressToClassicInput) String() string {
  43508. return awsutil.Prettify(s)
  43509. }
  43510. // GoString returns the string representation
  43511. func (s RestoreAddressToClassicInput) GoString() string {
  43512. return s.String()
  43513. }
  43514. // Validate inspects the fields of the type to determine if they are valid.
  43515. func (s *RestoreAddressToClassicInput) Validate() error {
  43516. invalidParams := request.ErrInvalidParams{Context: "RestoreAddressToClassicInput"}
  43517. if s.PublicIp == nil {
  43518. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  43519. }
  43520. if invalidParams.Len() > 0 {
  43521. return invalidParams
  43522. }
  43523. return nil
  43524. }
  43525. // SetDryRun sets the DryRun field's value.
  43526. func (s *RestoreAddressToClassicInput) SetDryRun(v bool) *RestoreAddressToClassicInput {
  43527. s.DryRun = &v
  43528. return s
  43529. }
  43530. // SetPublicIp sets the PublicIp field's value.
  43531. func (s *RestoreAddressToClassicInput) SetPublicIp(v string) *RestoreAddressToClassicInput {
  43532. s.PublicIp = &v
  43533. return s
  43534. }
  43535. // Contains the output of RestoreAddressToClassic.
  43536. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassicResult
  43537. type RestoreAddressToClassicOutput struct {
  43538. _ struct{} `type:"structure"`
  43539. // The Elastic IP address.
  43540. PublicIp *string `locationName:"publicIp" type:"string"`
  43541. // The move status for the IP address.
  43542. Status *string `locationName:"status" type:"string" enum:"Status"`
  43543. }
  43544. // String returns the string representation
  43545. func (s RestoreAddressToClassicOutput) String() string {
  43546. return awsutil.Prettify(s)
  43547. }
  43548. // GoString returns the string representation
  43549. func (s RestoreAddressToClassicOutput) GoString() string {
  43550. return s.String()
  43551. }
  43552. // SetPublicIp sets the PublicIp field's value.
  43553. func (s *RestoreAddressToClassicOutput) SetPublicIp(v string) *RestoreAddressToClassicOutput {
  43554. s.PublicIp = &v
  43555. return s
  43556. }
  43557. // SetStatus sets the Status field's value.
  43558. func (s *RestoreAddressToClassicOutput) SetStatus(v string) *RestoreAddressToClassicOutput {
  43559. s.Status = &v
  43560. return s
  43561. }
  43562. // Contains the parameters for RevokeSecurityGroupEgress.
  43563. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgressRequest
  43564. type RevokeSecurityGroupEgressInput struct {
  43565. _ struct{} `type:"structure"`
  43566. // The CIDR IP address range. We recommend that you specify the CIDR range in
  43567. // a set of IP permissions instead.
  43568. CidrIp *string `locationName:"cidrIp" type:"string"`
  43569. // Checks whether you have the required permissions for the action, without
  43570. // actually making the request, and provides an error response. If you have
  43571. // the required permissions, the error response is DryRunOperation. Otherwise,
  43572. // it is UnauthorizedOperation.
  43573. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43574. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  43575. // We recommend that you specify the port range in a set of IP permissions instead.
  43576. FromPort *int64 `locationName:"fromPort" type:"integer"`
  43577. // The ID of the security group.
  43578. //
  43579. // GroupId is a required field
  43580. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  43581. // A set of IP permissions. You can't specify a destination security group and
  43582. // a CIDR IP address range.
  43583. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  43584. // The IP protocol name or number. We recommend that you specify the protocol
  43585. // in a set of IP permissions instead.
  43586. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  43587. // The name of a destination security group. To revoke outbound access to a
  43588. // destination security group, we recommend that you use a set of IP permissions
  43589. // instead.
  43590. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  43591. // The AWS account number for a destination security group. To revoke outbound
  43592. // access to a destination security group, we recommend that you use a set of
  43593. // IP permissions instead.
  43594. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  43595. // The end of port range for the TCP and UDP protocols, or an ICMP type number.
  43596. // We recommend that you specify the port range in a set of IP permissions instead.
  43597. ToPort *int64 `locationName:"toPort" type:"integer"`
  43598. }
  43599. // String returns the string representation
  43600. func (s RevokeSecurityGroupEgressInput) String() string {
  43601. return awsutil.Prettify(s)
  43602. }
  43603. // GoString returns the string representation
  43604. func (s RevokeSecurityGroupEgressInput) GoString() string {
  43605. return s.String()
  43606. }
  43607. // Validate inspects the fields of the type to determine if they are valid.
  43608. func (s *RevokeSecurityGroupEgressInput) Validate() error {
  43609. invalidParams := request.ErrInvalidParams{Context: "RevokeSecurityGroupEgressInput"}
  43610. if s.GroupId == nil {
  43611. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  43612. }
  43613. if invalidParams.Len() > 0 {
  43614. return invalidParams
  43615. }
  43616. return nil
  43617. }
  43618. // SetCidrIp sets the CidrIp field's value.
  43619. func (s *RevokeSecurityGroupEgressInput) SetCidrIp(v string) *RevokeSecurityGroupEgressInput {
  43620. s.CidrIp = &v
  43621. return s
  43622. }
  43623. // SetDryRun sets the DryRun field's value.
  43624. func (s *RevokeSecurityGroupEgressInput) SetDryRun(v bool) *RevokeSecurityGroupEgressInput {
  43625. s.DryRun = &v
  43626. return s
  43627. }
  43628. // SetFromPort sets the FromPort field's value.
  43629. func (s *RevokeSecurityGroupEgressInput) SetFromPort(v int64) *RevokeSecurityGroupEgressInput {
  43630. s.FromPort = &v
  43631. return s
  43632. }
  43633. // SetGroupId sets the GroupId field's value.
  43634. func (s *RevokeSecurityGroupEgressInput) SetGroupId(v string) *RevokeSecurityGroupEgressInput {
  43635. s.GroupId = &v
  43636. return s
  43637. }
  43638. // SetIpPermissions sets the IpPermissions field's value.
  43639. func (s *RevokeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupEgressInput {
  43640. s.IpPermissions = v
  43641. return s
  43642. }
  43643. // SetIpProtocol sets the IpProtocol field's value.
  43644. func (s *RevokeSecurityGroupEgressInput) SetIpProtocol(v string) *RevokeSecurityGroupEgressInput {
  43645. s.IpProtocol = &v
  43646. return s
  43647. }
  43648. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  43649. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupEgressInput {
  43650. s.SourceSecurityGroupName = &v
  43651. return s
  43652. }
  43653. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  43654. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupEgressInput {
  43655. s.SourceSecurityGroupOwnerId = &v
  43656. return s
  43657. }
  43658. // SetToPort sets the ToPort field's value.
  43659. func (s *RevokeSecurityGroupEgressInput) SetToPort(v int64) *RevokeSecurityGroupEgressInput {
  43660. s.ToPort = &v
  43661. return s
  43662. }
  43663. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgressOutput
  43664. type RevokeSecurityGroupEgressOutput struct {
  43665. _ struct{} `type:"structure"`
  43666. }
  43667. // String returns the string representation
  43668. func (s RevokeSecurityGroupEgressOutput) String() string {
  43669. return awsutil.Prettify(s)
  43670. }
  43671. // GoString returns the string representation
  43672. func (s RevokeSecurityGroupEgressOutput) GoString() string {
  43673. return s.String()
  43674. }
  43675. // Contains the parameters for RevokeSecurityGroupIngress.
  43676. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngressRequest
  43677. type RevokeSecurityGroupIngressInput struct {
  43678. _ struct{} `type:"structure"`
  43679. // The CIDR IP address range. You can't specify this parameter when specifying
  43680. // a source security group.
  43681. CidrIp *string `type:"string"`
  43682. // Checks whether you have the required permissions for the action, without
  43683. // actually making the request, and provides an error response. If you have
  43684. // the required permissions, the error response is DryRunOperation. Otherwise,
  43685. // it is UnauthorizedOperation.
  43686. DryRun *bool `locationName:"dryRun" type:"boolean"`
  43687. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  43688. // For the ICMP type number, use -1 to specify all ICMP types.
  43689. FromPort *int64 `type:"integer"`
  43690. // The ID of the security group. Required for a security group in a nondefault
  43691. // VPC.
  43692. GroupId *string `type:"string"`
  43693. // [EC2-Classic, default VPC] The name of the security group.
  43694. GroupName *string `type:"string"`
  43695. // A set of IP permissions. You can't specify a source security group and a
  43696. // CIDR IP address range.
  43697. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  43698. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  43699. // Use -1 to specify all.
  43700. IpProtocol *string `type:"string"`
  43701. // [EC2-Classic, default VPC] The name of the source security group. You can't
  43702. // specify this parameter in combination with the following parameters: the
  43703. // CIDR IP address range, the start of the port range, the IP protocol, and
  43704. // the end of the port range. For EC2-VPC, the source security group must be
  43705. // in the same VPC. To revoke a specific rule for an IP protocol and port range,
  43706. // use a set of IP permissions instead.
  43707. SourceSecurityGroupName *string `type:"string"`
  43708. // [EC2-Classic] The AWS account ID of the source security group, if the source
  43709. // security group is in a different account. You can't specify this parameter
  43710. // in combination with the following parameters: the CIDR IP address range,
  43711. // the IP protocol, the start of the port range, and the end of the port range.
  43712. // To revoke a specific rule for an IP protocol and port range, use a set of
  43713. // IP permissions instead.
  43714. SourceSecurityGroupOwnerId *string `type:"string"`
  43715. // The end of port range for the TCP and UDP protocols, or an ICMP code number.
  43716. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
  43717. ToPort *int64 `type:"integer"`
  43718. }
  43719. // String returns the string representation
  43720. func (s RevokeSecurityGroupIngressInput) String() string {
  43721. return awsutil.Prettify(s)
  43722. }
  43723. // GoString returns the string representation
  43724. func (s RevokeSecurityGroupIngressInput) GoString() string {
  43725. return s.String()
  43726. }
  43727. // SetCidrIp sets the CidrIp field's value.
  43728. func (s *RevokeSecurityGroupIngressInput) SetCidrIp(v string) *RevokeSecurityGroupIngressInput {
  43729. s.CidrIp = &v
  43730. return s
  43731. }
  43732. // SetDryRun sets the DryRun field's value.
  43733. func (s *RevokeSecurityGroupIngressInput) SetDryRun(v bool) *RevokeSecurityGroupIngressInput {
  43734. s.DryRun = &v
  43735. return s
  43736. }
  43737. // SetFromPort sets the FromPort field's value.
  43738. func (s *RevokeSecurityGroupIngressInput) SetFromPort(v int64) *RevokeSecurityGroupIngressInput {
  43739. s.FromPort = &v
  43740. return s
  43741. }
  43742. // SetGroupId sets the GroupId field's value.
  43743. func (s *RevokeSecurityGroupIngressInput) SetGroupId(v string) *RevokeSecurityGroupIngressInput {
  43744. s.GroupId = &v
  43745. return s
  43746. }
  43747. // SetGroupName sets the GroupName field's value.
  43748. func (s *RevokeSecurityGroupIngressInput) SetGroupName(v string) *RevokeSecurityGroupIngressInput {
  43749. s.GroupName = &v
  43750. return s
  43751. }
  43752. // SetIpPermissions sets the IpPermissions field's value.
  43753. func (s *RevokeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupIngressInput {
  43754. s.IpPermissions = v
  43755. return s
  43756. }
  43757. // SetIpProtocol sets the IpProtocol field's value.
  43758. func (s *RevokeSecurityGroupIngressInput) SetIpProtocol(v string) *RevokeSecurityGroupIngressInput {
  43759. s.IpProtocol = &v
  43760. return s
  43761. }
  43762. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  43763. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupIngressInput {
  43764. s.SourceSecurityGroupName = &v
  43765. return s
  43766. }
  43767. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  43768. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupIngressInput {
  43769. s.SourceSecurityGroupOwnerId = &v
  43770. return s
  43771. }
  43772. // SetToPort sets the ToPort field's value.
  43773. func (s *RevokeSecurityGroupIngressInput) SetToPort(v int64) *RevokeSecurityGroupIngressInput {
  43774. s.ToPort = &v
  43775. return s
  43776. }
  43777. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngressOutput
  43778. type RevokeSecurityGroupIngressOutput struct {
  43779. _ struct{} `type:"structure"`
  43780. }
  43781. // String returns the string representation
  43782. func (s RevokeSecurityGroupIngressOutput) String() string {
  43783. return awsutil.Prettify(s)
  43784. }
  43785. // GoString returns the string representation
  43786. func (s RevokeSecurityGroupIngressOutput) GoString() string {
  43787. return s.String()
  43788. }
  43789. // Describes a route in a route table.
  43790. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Route
  43791. type Route struct {
  43792. _ struct{} `type:"structure"`
  43793. // The IPv4 CIDR block used for the destination match.
  43794. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  43795. // The IPv6 CIDR block used for the destination match.
  43796. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  43797. // The prefix of the AWS service.
  43798. DestinationPrefixListId *string `locationName:"destinationPrefixListId" type:"string"`
  43799. // The ID of the egress-only Internet gateway.
  43800. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  43801. // The ID of a gateway attached to your VPC.
  43802. GatewayId *string `locationName:"gatewayId" type:"string"`
  43803. // The ID of a NAT instance in your VPC.
  43804. InstanceId *string `locationName:"instanceId" type:"string"`
  43805. // The AWS account ID of the owner of the instance.
  43806. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  43807. // The ID of a NAT gateway.
  43808. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  43809. // The ID of the network interface.
  43810. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  43811. // Describes how the route was created.
  43812. //
  43813. // * CreateRouteTable - The route was automatically created when the route
  43814. // table was created.
  43815. //
  43816. // * CreateRoute - The route was manually added to the route table.
  43817. //
  43818. // * EnableVgwRoutePropagation - The route was propagated by route propagation.
  43819. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"`
  43820. // The state of the route. The blackhole state indicates that the route's target
  43821. // isn't available (for example, the specified gateway isn't attached to the
  43822. // VPC, or the specified NAT instance has been terminated).
  43823. State *string `locationName:"state" type:"string" enum:"RouteState"`
  43824. // The ID of the VPC peering connection.
  43825. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  43826. }
  43827. // String returns the string representation
  43828. func (s Route) String() string {
  43829. return awsutil.Prettify(s)
  43830. }
  43831. // GoString returns the string representation
  43832. func (s Route) GoString() string {
  43833. return s.String()
  43834. }
  43835. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  43836. func (s *Route) SetDestinationCidrBlock(v string) *Route {
  43837. s.DestinationCidrBlock = &v
  43838. return s
  43839. }
  43840. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  43841. func (s *Route) SetDestinationIpv6CidrBlock(v string) *Route {
  43842. s.DestinationIpv6CidrBlock = &v
  43843. return s
  43844. }
  43845. // SetDestinationPrefixListId sets the DestinationPrefixListId field's value.
  43846. func (s *Route) SetDestinationPrefixListId(v string) *Route {
  43847. s.DestinationPrefixListId = &v
  43848. return s
  43849. }
  43850. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  43851. func (s *Route) SetEgressOnlyInternetGatewayId(v string) *Route {
  43852. s.EgressOnlyInternetGatewayId = &v
  43853. return s
  43854. }
  43855. // SetGatewayId sets the GatewayId field's value.
  43856. func (s *Route) SetGatewayId(v string) *Route {
  43857. s.GatewayId = &v
  43858. return s
  43859. }
  43860. // SetInstanceId sets the InstanceId field's value.
  43861. func (s *Route) SetInstanceId(v string) *Route {
  43862. s.InstanceId = &v
  43863. return s
  43864. }
  43865. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  43866. func (s *Route) SetInstanceOwnerId(v string) *Route {
  43867. s.InstanceOwnerId = &v
  43868. return s
  43869. }
  43870. // SetNatGatewayId sets the NatGatewayId field's value.
  43871. func (s *Route) SetNatGatewayId(v string) *Route {
  43872. s.NatGatewayId = &v
  43873. return s
  43874. }
  43875. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  43876. func (s *Route) SetNetworkInterfaceId(v string) *Route {
  43877. s.NetworkInterfaceId = &v
  43878. return s
  43879. }
  43880. // SetOrigin sets the Origin field's value.
  43881. func (s *Route) SetOrigin(v string) *Route {
  43882. s.Origin = &v
  43883. return s
  43884. }
  43885. // SetState sets the State field's value.
  43886. func (s *Route) SetState(v string) *Route {
  43887. s.State = &v
  43888. return s
  43889. }
  43890. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  43891. func (s *Route) SetVpcPeeringConnectionId(v string) *Route {
  43892. s.VpcPeeringConnectionId = &v
  43893. return s
  43894. }
  43895. // Describes a route table.
  43896. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RouteTable
  43897. type RouteTable struct {
  43898. _ struct{} `type:"structure"`
  43899. // The associations between the route table and one or more subnets.
  43900. Associations []*RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  43901. // Any virtual private gateway (VGW) propagating routes.
  43902. PropagatingVgws []*PropagatingVgw `locationName:"propagatingVgwSet" locationNameList:"item" type:"list"`
  43903. // The ID of the route table.
  43904. RouteTableId *string `locationName:"routeTableId" type:"string"`
  43905. // The routes in the route table.
  43906. Routes []*Route `locationName:"routeSet" locationNameList:"item" type:"list"`
  43907. // Any tags assigned to the route table.
  43908. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  43909. // The ID of the VPC.
  43910. VpcId *string `locationName:"vpcId" type:"string"`
  43911. }
  43912. // String returns the string representation
  43913. func (s RouteTable) String() string {
  43914. return awsutil.Prettify(s)
  43915. }
  43916. // GoString returns the string representation
  43917. func (s RouteTable) GoString() string {
  43918. return s.String()
  43919. }
  43920. // SetAssociations sets the Associations field's value.
  43921. func (s *RouteTable) SetAssociations(v []*RouteTableAssociation) *RouteTable {
  43922. s.Associations = v
  43923. return s
  43924. }
  43925. // SetPropagatingVgws sets the PropagatingVgws field's value.
  43926. func (s *RouteTable) SetPropagatingVgws(v []*PropagatingVgw) *RouteTable {
  43927. s.PropagatingVgws = v
  43928. return s
  43929. }
  43930. // SetRouteTableId sets the RouteTableId field's value.
  43931. func (s *RouteTable) SetRouteTableId(v string) *RouteTable {
  43932. s.RouteTableId = &v
  43933. return s
  43934. }
  43935. // SetRoutes sets the Routes field's value.
  43936. func (s *RouteTable) SetRoutes(v []*Route) *RouteTable {
  43937. s.Routes = v
  43938. return s
  43939. }
  43940. // SetTags sets the Tags field's value.
  43941. func (s *RouteTable) SetTags(v []*Tag) *RouteTable {
  43942. s.Tags = v
  43943. return s
  43944. }
  43945. // SetVpcId sets the VpcId field's value.
  43946. func (s *RouteTable) SetVpcId(v string) *RouteTable {
  43947. s.VpcId = &v
  43948. return s
  43949. }
  43950. // Describes an association between a route table and a subnet.
  43951. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RouteTableAssociation
  43952. type RouteTableAssociation struct {
  43953. _ struct{} `type:"structure"`
  43954. // Indicates whether this is the main route table.
  43955. Main *bool `locationName:"main" type:"boolean"`
  43956. // The ID of the association between a route table and a subnet.
  43957. RouteTableAssociationId *string `locationName:"routeTableAssociationId" type:"string"`
  43958. // The ID of the route table.
  43959. RouteTableId *string `locationName:"routeTableId" type:"string"`
  43960. // The ID of the subnet. A subnet ID is not returned for an implicit association.
  43961. SubnetId *string `locationName:"subnetId" type:"string"`
  43962. }
  43963. // String returns the string representation
  43964. func (s RouteTableAssociation) String() string {
  43965. return awsutil.Prettify(s)
  43966. }
  43967. // GoString returns the string representation
  43968. func (s RouteTableAssociation) GoString() string {
  43969. return s.String()
  43970. }
  43971. // SetMain sets the Main field's value.
  43972. func (s *RouteTableAssociation) SetMain(v bool) *RouteTableAssociation {
  43973. s.Main = &v
  43974. return s
  43975. }
  43976. // SetRouteTableAssociationId sets the RouteTableAssociationId field's value.
  43977. func (s *RouteTableAssociation) SetRouteTableAssociationId(v string) *RouteTableAssociation {
  43978. s.RouteTableAssociationId = &v
  43979. return s
  43980. }
  43981. // SetRouteTableId sets the RouteTableId field's value.
  43982. func (s *RouteTableAssociation) SetRouteTableId(v string) *RouteTableAssociation {
  43983. s.RouteTableId = &v
  43984. return s
  43985. }
  43986. // SetSubnetId sets the SubnetId field's value.
  43987. func (s *RouteTableAssociation) SetSubnetId(v string) *RouteTableAssociation {
  43988. s.SubnetId = &v
  43989. return s
  43990. }
  43991. // Contains the parameters for RunInstances.
  43992. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesRequest
  43993. type RunInstancesInput struct {
  43994. _ struct{} `type:"structure"`
  43995. // Reserved.
  43996. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  43997. // The block device mapping.
  43998. //
  43999. // Supplying both a snapshot ID and an encryption value as arguments for block-device
  44000. // mapping results in an error. This is because only blank volumes can be encrypted
  44001. // on start, and these are not created from a snapshot. If a snapshot is the
  44002. // basis for the volume, it contains data by definition and its encryption status
  44003. // cannot be changed using this action.
  44004. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  44005. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  44006. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  44007. //
  44008. // Constraints: Maximum 64 ASCII characters
  44009. ClientToken *string `locationName:"clientToken" type:"string"`
  44010. // If you set this parameter to true, you can't terminate the instance using
  44011. // the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute
  44012. // to false after launch, use ModifyInstanceAttribute. Alternatively, if you
  44013. // set InstanceInitiatedShutdownBehavior to terminate, you can terminate the
  44014. // instance by running the shutdown command from the instance.
  44015. //
  44016. // Default: false
  44017. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  44018. // Checks whether you have the required permissions for the action, without
  44019. // actually making the request, and provides an error response. If you have
  44020. // the required permissions, the error response is DryRunOperation. Otherwise,
  44021. // it is UnauthorizedOperation.
  44022. DryRun *bool `locationName:"dryRun" type:"boolean"`
  44023. // Indicates whether the instance is optimized for EBS I/O. This optimization
  44024. // provides dedicated throughput to Amazon EBS and an optimized configuration
  44025. // stack to provide optimal EBS I/O performance. This optimization isn't available
  44026. // with all instance types. Additional usage charges apply when using an EBS-optimized
  44027. // instance.
  44028. //
  44029. // Default: false
  44030. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  44031. // The IAM instance profile.
  44032. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  44033. // The ID of the AMI, which you can get by calling DescribeImages.
  44034. //
  44035. // ImageId is a required field
  44036. ImageId *string `type:"string" required:"true"`
  44037. // Indicates whether an instance stops or terminates when you initiate shutdown
  44038. // from the instance (using the operating system command for system shutdown).
  44039. //
  44040. // Default: stop
  44041. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  44042. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  44043. // in the Amazon Elastic Compute Cloud User Guide.
  44044. //
  44045. // Default: m1.small
  44046. InstanceType *string `type:"string" enum:"InstanceType"`
  44047. // [EC2-VPC] A number of IPv6 addresses to associate with the primary network
  44048. // interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
  44049. // You cannot specify this option and the option to assign specific IPv6 addresses
  44050. // in the same request. You can specify this option if you've specified a minimum
  44051. // number of instances to launch.
  44052. Ipv6AddressCount *int64 `type:"integer"`
  44053. // [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet
  44054. // to associate with the primary network interface. You cannot specify this
  44055. // option and the option to assign a number of IPv6 addresses in the same request.
  44056. // You cannot specify this option if you've specified a minimum number of instances
  44057. // to launch.
  44058. Ipv6Addresses []*InstanceIpv6Address `locationName:"Ipv6Address" locationNameList:"item" type:"list"`
  44059. // The ID of the kernel.
  44060. //
  44061. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  44062. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  44063. // in the Amazon Elastic Compute Cloud User Guide.
  44064. KernelId *string `type:"string"`
  44065. // The name of the key pair. You can create a key pair using CreateKeyPair or
  44066. // ImportKeyPair.
  44067. //
  44068. // If you do not specify a key pair, you can't connect to the instance unless
  44069. // you choose an AMI that is configured to allow users another way to log in.
  44070. KeyName *string `type:"string"`
  44071. // The maximum number of instances to launch. If you specify more instances
  44072. // than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches
  44073. // the largest possible number of instances above MinCount.
  44074. //
  44075. // Constraints: Between 1 and the maximum number you're allowed for the specified
  44076. // instance type. For more information about the default limits, and how to
  44077. // 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)
  44078. // in the Amazon EC2 FAQ.
  44079. //
  44080. // MaxCount is a required field
  44081. MaxCount *int64 `type:"integer" required:"true"`
  44082. // The minimum number of instances to launch. If you specify a minimum that
  44083. // is more instances than Amazon EC2 can launch in the target Availability Zone,
  44084. // Amazon EC2 launches no instances.
  44085. //
  44086. // Constraints: Between 1 and the maximum number you're allowed for the specified
  44087. // instance type. For more information about the default limits, and how to
  44088. // 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)
  44089. // in the Amazon EC2 General FAQ.
  44090. //
  44091. // MinCount is a required field
  44092. MinCount *int64 `type:"integer" required:"true"`
  44093. // The monitoring for the instance.
  44094. Monitoring *RunInstancesMonitoringEnabled `type:"structure"`
  44095. // One or more network interfaces.
  44096. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterface" locationNameList:"item" type:"list"`
  44097. // The placement for the instance.
  44098. Placement *Placement `type:"structure"`
  44099. // [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4
  44100. // address range of the subnet.
  44101. //
  44102. // Only one private IP address can be designated as primary. You can't specify
  44103. // this option if you've specified the option to designate a private IP address
  44104. // as the primary IP address in a network interface specification. You cannot
  44105. // specify this option if you're launching more than one instance in the request.
  44106. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  44107. // The ID of the RAM disk.
  44108. //
  44109. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  44110. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  44111. // in the Amazon Elastic Compute Cloud User Guide.
  44112. RamdiskId *string `type:"string"`
  44113. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  44114. //
  44115. // Default: Amazon EC2 uses the default security group.
  44116. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  44117. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  44118. // VPC, you must use security group IDs instead.
  44119. //
  44120. // Default: Amazon EC2 uses the default security group.
  44121. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  44122. // [EC2-VPC] The ID of the subnet to launch the instance into.
  44123. SubnetId *string `type:"string"`
  44124. // The tags to apply to the resources during launch. You can tag instances and
  44125. // volumes. The specified tags are applied to all instances or volumes that
  44126. // are created during launch.
  44127. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  44128. // The user data to make available to the instance. For more information, see
  44129. // Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  44130. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  44131. // (Windows). If you are using an AWS SDK or command line tool, Base64-encoding
  44132. // is performed for you, and you can load the text from a file. Otherwise, you
  44133. // must provide Base64-encoded text.
  44134. UserData *string `type:"string"`
  44135. }
  44136. // String returns the string representation
  44137. func (s RunInstancesInput) String() string {
  44138. return awsutil.Prettify(s)
  44139. }
  44140. // GoString returns the string representation
  44141. func (s RunInstancesInput) GoString() string {
  44142. return s.String()
  44143. }
  44144. // Validate inspects the fields of the type to determine if they are valid.
  44145. func (s *RunInstancesInput) Validate() error {
  44146. invalidParams := request.ErrInvalidParams{Context: "RunInstancesInput"}
  44147. if s.ImageId == nil {
  44148. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  44149. }
  44150. if s.MaxCount == nil {
  44151. invalidParams.Add(request.NewErrParamRequired("MaxCount"))
  44152. }
  44153. if s.MinCount == nil {
  44154. invalidParams.Add(request.NewErrParamRequired("MinCount"))
  44155. }
  44156. if s.Monitoring != nil {
  44157. if err := s.Monitoring.Validate(); err != nil {
  44158. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  44159. }
  44160. }
  44161. if s.NetworkInterfaces != nil {
  44162. for i, v := range s.NetworkInterfaces {
  44163. if v == nil {
  44164. continue
  44165. }
  44166. if err := v.Validate(); err != nil {
  44167. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  44168. }
  44169. }
  44170. }
  44171. if invalidParams.Len() > 0 {
  44172. return invalidParams
  44173. }
  44174. return nil
  44175. }
  44176. // SetAdditionalInfo sets the AdditionalInfo field's value.
  44177. func (s *RunInstancesInput) SetAdditionalInfo(v string) *RunInstancesInput {
  44178. s.AdditionalInfo = &v
  44179. return s
  44180. }
  44181. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  44182. func (s *RunInstancesInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RunInstancesInput {
  44183. s.BlockDeviceMappings = v
  44184. return s
  44185. }
  44186. // SetClientToken sets the ClientToken field's value.
  44187. func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput {
  44188. s.ClientToken = &v
  44189. return s
  44190. }
  44191. // SetDisableApiTermination sets the DisableApiTermination field's value.
  44192. func (s *RunInstancesInput) SetDisableApiTermination(v bool) *RunInstancesInput {
  44193. s.DisableApiTermination = &v
  44194. return s
  44195. }
  44196. // SetDryRun sets the DryRun field's value.
  44197. func (s *RunInstancesInput) SetDryRun(v bool) *RunInstancesInput {
  44198. s.DryRun = &v
  44199. return s
  44200. }
  44201. // SetEbsOptimized sets the EbsOptimized field's value.
  44202. func (s *RunInstancesInput) SetEbsOptimized(v bool) *RunInstancesInput {
  44203. s.EbsOptimized = &v
  44204. return s
  44205. }
  44206. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  44207. func (s *RunInstancesInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RunInstancesInput {
  44208. s.IamInstanceProfile = v
  44209. return s
  44210. }
  44211. // SetImageId sets the ImageId field's value.
  44212. func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput {
  44213. s.ImageId = &v
  44214. return s
  44215. }
  44216. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  44217. func (s *RunInstancesInput) SetInstanceInitiatedShutdownBehavior(v string) *RunInstancesInput {
  44218. s.InstanceInitiatedShutdownBehavior = &v
  44219. return s
  44220. }
  44221. // SetInstanceType sets the InstanceType field's value.
  44222. func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput {
  44223. s.InstanceType = &v
  44224. return s
  44225. }
  44226. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  44227. func (s *RunInstancesInput) SetIpv6AddressCount(v int64) *RunInstancesInput {
  44228. s.Ipv6AddressCount = &v
  44229. return s
  44230. }
  44231. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  44232. func (s *RunInstancesInput) SetIpv6Addresses(v []*InstanceIpv6Address) *RunInstancesInput {
  44233. s.Ipv6Addresses = v
  44234. return s
  44235. }
  44236. // SetKernelId sets the KernelId field's value.
  44237. func (s *RunInstancesInput) SetKernelId(v string) *RunInstancesInput {
  44238. s.KernelId = &v
  44239. return s
  44240. }
  44241. // SetKeyName sets the KeyName field's value.
  44242. func (s *RunInstancesInput) SetKeyName(v string) *RunInstancesInput {
  44243. s.KeyName = &v
  44244. return s
  44245. }
  44246. // SetMaxCount sets the MaxCount field's value.
  44247. func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput {
  44248. s.MaxCount = &v
  44249. return s
  44250. }
  44251. // SetMinCount sets the MinCount field's value.
  44252. func (s *RunInstancesInput) SetMinCount(v int64) *RunInstancesInput {
  44253. s.MinCount = &v
  44254. return s
  44255. }
  44256. // SetMonitoring sets the Monitoring field's value.
  44257. func (s *RunInstancesInput) SetMonitoring(v *RunInstancesMonitoringEnabled) *RunInstancesInput {
  44258. s.Monitoring = v
  44259. return s
  44260. }
  44261. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  44262. func (s *RunInstancesInput) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RunInstancesInput {
  44263. s.NetworkInterfaces = v
  44264. return s
  44265. }
  44266. // SetPlacement sets the Placement field's value.
  44267. func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput {
  44268. s.Placement = v
  44269. return s
  44270. }
  44271. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  44272. func (s *RunInstancesInput) SetPrivateIpAddress(v string) *RunInstancesInput {
  44273. s.PrivateIpAddress = &v
  44274. return s
  44275. }
  44276. // SetRamdiskId sets the RamdiskId field's value.
  44277. func (s *RunInstancesInput) SetRamdiskId(v string) *RunInstancesInput {
  44278. s.RamdiskId = &v
  44279. return s
  44280. }
  44281. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  44282. func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput {
  44283. s.SecurityGroupIds = v
  44284. return s
  44285. }
  44286. // SetSecurityGroups sets the SecurityGroups field's value.
  44287. func (s *RunInstancesInput) SetSecurityGroups(v []*string) *RunInstancesInput {
  44288. s.SecurityGroups = v
  44289. return s
  44290. }
  44291. // SetSubnetId sets the SubnetId field's value.
  44292. func (s *RunInstancesInput) SetSubnetId(v string) *RunInstancesInput {
  44293. s.SubnetId = &v
  44294. return s
  44295. }
  44296. // SetTagSpecifications sets the TagSpecifications field's value.
  44297. func (s *RunInstancesInput) SetTagSpecifications(v []*TagSpecification) *RunInstancesInput {
  44298. s.TagSpecifications = v
  44299. return s
  44300. }
  44301. // SetUserData sets the UserData field's value.
  44302. func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput {
  44303. s.UserData = &v
  44304. return s
  44305. }
  44306. // Describes the monitoring of an instance.
  44307. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesMonitoringEnabled
  44308. type RunInstancesMonitoringEnabled struct {
  44309. _ struct{} `type:"structure"`
  44310. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  44311. // is enabled.
  44312. //
  44313. // Enabled is a required field
  44314. Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
  44315. }
  44316. // String returns the string representation
  44317. func (s RunInstancesMonitoringEnabled) String() string {
  44318. return awsutil.Prettify(s)
  44319. }
  44320. // GoString returns the string representation
  44321. func (s RunInstancesMonitoringEnabled) GoString() string {
  44322. return s.String()
  44323. }
  44324. // Validate inspects the fields of the type to determine if they are valid.
  44325. func (s *RunInstancesMonitoringEnabled) Validate() error {
  44326. invalidParams := request.ErrInvalidParams{Context: "RunInstancesMonitoringEnabled"}
  44327. if s.Enabled == nil {
  44328. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  44329. }
  44330. if invalidParams.Len() > 0 {
  44331. return invalidParams
  44332. }
  44333. return nil
  44334. }
  44335. // SetEnabled sets the Enabled field's value.
  44336. func (s *RunInstancesMonitoringEnabled) SetEnabled(v bool) *RunInstancesMonitoringEnabled {
  44337. s.Enabled = &v
  44338. return s
  44339. }
  44340. // Contains the parameters for RunScheduledInstances.
  44341. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstancesRequest
  44342. type RunScheduledInstancesInput struct {
  44343. _ struct{} `type:"structure"`
  44344. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  44345. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  44346. ClientToken *string `type:"string" idempotencyToken:"true"`
  44347. // Checks whether you have the required permissions for the action, without
  44348. // actually making the request, and provides an error response. If you have
  44349. // the required permissions, the error response is DryRunOperation. Otherwise,
  44350. // it is UnauthorizedOperation.
  44351. DryRun *bool `type:"boolean"`
  44352. // The number of instances.
  44353. //
  44354. // Default: 1
  44355. InstanceCount *int64 `type:"integer"`
  44356. // The launch specification. You must match the instance type, Availability
  44357. // Zone, network, and platform of the schedule that you purchased.
  44358. //
  44359. // LaunchSpecification is a required field
  44360. LaunchSpecification *ScheduledInstancesLaunchSpecification `type:"structure" required:"true"`
  44361. // The Scheduled Instance ID.
  44362. //
  44363. // ScheduledInstanceId is a required field
  44364. ScheduledInstanceId *string `type:"string" required:"true"`
  44365. }
  44366. // String returns the string representation
  44367. func (s RunScheduledInstancesInput) String() string {
  44368. return awsutil.Prettify(s)
  44369. }
  44370. // GoString returns the string representation
  44371. func (s RunScheduledInstancesInput) GoString() string {
  44372. return s.String()
  44373. }
  44374. // Validate inspects the fields of the type to determine if they are valid.
  44375. func (s *RunScheduledInstancesInput) Validate() error {
  44376. invalidParams := request.ErrInvalidParams{Context: "RunScheduledInstancesInput"}
  44377. if s.LaunchSpecification == nil {
  44378. invalidParams.Add(request.NewErrParamRequired("LaunchSpecification"))
  44379. }
  44380. if s.ScheduledInstanceId == nil {
  44381. invalidParams.Add(request.NewErrParamRequired("ScheduledInstanceId"))
  44382. }
  44383. if s.LaunchSpecification != nil {
  44384. if err := s.LaunchSpecification.Validate(); err != nil {
  44385. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  44386. }
  44387. }
  44388. if invalidParams.Len() > 0 {
  44389. return invalidParams
  44390. }
  44391. return nil
  44392. }
  44393. // SetClientToken sets the ClientToken field's value.
  44394. func (s *RunScheduledInstancesInput) SetClientToken(v string) *RunScheduledInstancesInput {
  44395. s.ClientToken = &v
  44396. return s
  44397. }
  44398. // SetDryRun sets the DryRun field's value.
  44399. func (s *RunScheduledInstancesInput) SetDryRun(v bool) *RunScheduledInstancesInput {
  44400. s.DryRun = &v
  44401. return s
  44402. }
  44403. // SetInstanceCount sets the InstanceCount field's value.
  44404. func (s *RunScheduledInstancesInput) SetInstanceCount(v int64) *RunScheduledInstancesInput {
  44405. s.InstanceCount = &v
  44406. return s
  44407. }
  44408. // SetLaunchSpecification sets the LaunchSpecification field's value.
  44409. func (s *RunScheduledInstancesInput) SetLaunchSpecification(v *ScheduledInstancesLaunchSpecification) *RunScheduledInstancesInput {
  44410. s.LaunchSpecification = v
  44411. return s
  44412. }
  44413. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  44414. func (s *RunScheduledInstancesInput) SetScheduledInstanceId(v string) *RunScheduledInstancesInput {
  44415. s.ScheduledInstanceId = &v
  44416. return s
  44417. }
  44418. // Contains the output of RunScheduledInstances.
  44419. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstancesResult
  44420. type RunScheduledInstancesOutput struct {
  44421. _ struct{} `type:"structure"`
  44422. // The IDs of the newly launched instances.
  44423. InstanceIdSet []*string `locationName:"instanceIdSet" locationNameList:"item" type:"list"`
  44424. }
  44425. // String returns the string representation
  44426. func (s RunScheduledInstancesOutput) String() string {
  44427. return awsutil.Prettify(s)
  44428. }
  44429. // GoString returns the string representation
  44430. func (s RunScheduledInstancesOutput) GoString() string {
  44431. return s.String()
  44432. }
  44433. // SetInstanceIdSet sets the InstanceIdSet field's value.
  44434. func (s *RunScheduledInstancesOutput) SetInstanceIdSet(v []*string) *RunScheduledInstancesOutput {
  44435. s.InstanceIdSet = v
  44436. return s
  44437. }
  44438. // Describes the storage parameters for S3 and S3 buckets for an instance store-backed
  44439. // AMI.
  44440. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/S3Storage
  44441. type S3Storage struct {
  44442. _ struct{} `type:"structure"`
  44443. // The access key ID of the owner of the bucket. Before you specify a value
  44444. // for your access key ID, review and follow the guidance in Best Practices
  44445. // for Managing AWS Access Keys (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
  44446. AWSAccessKeyId *string `type:"string"`
  44447. // The bucket in which to store the AMI. You can specify a bucket that you already
  44448. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  44449. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  44450. Bucket *string `locationName:"bucket" type:"string"`
  44451. // The beginning of the file name of the AMI.
  44452. Prefix *string `locationName:"prefix" type:"string"`
  44453. // An Amazon S3 upload policy that gives Amazon EC2 permission to upload items
  44454. // into Amazon S3 on your behalf.
  44455. //
  44456. // UploadPolicy is automatically base64 encoded/decoded by the SDK.
  44457. UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"`
  44458. // The signature of the JSON document.
  44459. UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"`
  44460. }
  44461. // String returns the string representation
  44462. func (s S3Storage) String() string {
  44463. return awsutil.Prettify(s)
  44464. }
  44465. // GoString returns the string representation
  44466. func (s S3Storage) GoString() string {
  44467. return s.String()
  44468. }
  44469. // SetAWSAccessKeyId sets the AWSAccessKeyId field's value.
  44470. func (s *S3Storage) SetAWSAccessKeyId(v string) *S3Storage {
  44471. s.AWSAccessKeyId = &v
  44472. return s
  44473. }
  44474. // SetBucket sets the Bucket field's value.
  44475. func (s *S3Storage) SetBucket(v string) *S3Storage {
  44476. s.Bucket = &v
  44477. return s
  44478. }
  44479. // SetPrefix sets the Prefix field's value.
  44480. func (s *S3Storage) SetPrefix(v string) *S3Storage {
  44481. s.Prefix = &v
  44482. return s
  44483. }
  44484. // SetUploadPolicy sets the UploadPolicy field's value.
  44485. func (s *S3Storage) SetUploadPolicy(v []byte) *S3Storage {
  44486. s.UploadPolicy = v
  44487. return s
  44488. }
  44489. // SetUploadPolicySignature sets the UploadPolicySignature field's value.
  44490. func (s *S3Storage) SetUploadPolicySignature(v string) *S3Storage {
  44491. s.UploadPolicySignature = &v
  44492. return s
  44493. }
  44494. // Describes a Scheduled Instance.
  44495. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstance
  44496. type ScheduledInstance struct {
  44497. _ struct{} `type:"structure"`
  44498. // The Availability Zone.
  44499. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  44500. // The date when the Scheduled Instance was purchased.
  44501. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  44502. // The hourly price for a single instance.
  44503. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  44504. // The number of instances.
  44505. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  44506. // The instance type.
  44507. InstanceType *string `locationName:"instanceType" type:"string"`
  44508. // The network platform (EC2-Classic or EC2-VPC).
  44509. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  44510. // The time for the next schedule to start.
  44511. NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
  44512. // The platform (Linux/UNIX or Windows).
  44513. Platform *string `locationName:"platform" type:"string"`
  44514. // The time that the previous schedule ended or will end.
  44515. PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp" timestampFormat:"iso8601"`
  44516. // The schedule recurrence.
  44517. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  44518. // The Scheduled Instance ID.
  44519. ScheduledInstanceId *string `locationName:"scheduledInstanceId" type:"string"`
  44520. // The number of hours in the schedule.
  44521. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  44522. // The end date for the Scheduled Instance.
  44523. TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp" timestampFormat:"iso8601"`
  44524. // The start date for the Scheduled Instance.
  44525. TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp" timestampFormat:"iso8601"`
  44526. // The total number of hours for a single instance for the entire term.
  44527. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  44528. }
  44529. // String returns the string representation
  44530. func (s ScheduledInstance) String() string {
  44531. return awsutil.Prettify(s)
  44532. }
  44533. // GoString returns the string representation
  44534. func (s ScheduledInstance) GoString() string {
  44535. return s.String()
  44536. }
  44537. // SetAvailabilityZone sets the AvailabilityZone field's value.
  44538. func (s *ScheduledInstance) SetAvailabilityZone(v string) *ScheduledInstance {
  44539. s.AvailabilityZone = &v
  44540. return s
  44541. }
  44542. // SetCreateDate sets the CreateDate field's value.
  44543. func (s *ScheduledInstance) SetCreateDate(v time.Time) *ScheduledInstance {
  44544. s.CreateDate = &v
  44545. return s
  44546. }
  44547. // SetHourlyPrice sets the HourlyPrice field's value.
  44548. func (s *ScheduledInstance) SetHourlyPrice(v string) *ScheduledInstance {
  44549. s.HourlyPrice = &v
  44550. return s
  44551. }
  44552. // SetInstanceCount sets the InstanceCount field's value.
  44553. func (s *ScheduledInstance) SetInstanceCount(v int64) *ScheduledInstance {
  44554. s.InstanceCount = &v
  44555. return s
  44556. }
  44557. // SetInstanceType sets the InstanceType field's value.
  44558. func (s *ScheduledInstance) SetInstanceType(v string) *ScheduledInstance {
  44559. s.InstanceType = &v
  44560. return s
  44561. }
  44562. // SetNetworkPlatform sets the NetworkPlatform field's value.
  44563. func (s *ScheduledInstance) SetNetworkPlatform(v string) *ScheduledInstance {
  44564. s.NetworkPlatform = &v
  44565. return s
  44566. }
  44567. // SetNextSlotStartTime sets the NextSlotStartTime field's value.
  44568. func (s *ScheduledInstance) SetNextSlotStartTime(v time.Time) *ScheduledInstance {
  44569. s.NextSlotStartTime = &v
  44570. return s
  44571. }
  44572. // SetPlatform sets the Platform field's value.
  44573. func (s *ScheduledInstance) SetPlatform(v string) *ScheduledInstance {
  44574. s.Platform = &v
  44575. return s
  44576. }
  44577. // SetPreviousSlotEndTime sets the PreviousSlotEndTime field's value.
  44578. func (s *ScheduledInstance) SetPreviousSlotEndTime(v time.Time) *ScheduledInstance {
  44579. s.PreviousSlotEndTime = &v
  44580. return s
  44581. }
  44582. // SetRecurrence sets the Recurrence field's value.
  44583. func (s *ScheduledInstance) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstance {
  44584. s.Recurrence = v
  44585. return s
  44586. }
  44587. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  44588. func (s *ScheduledInstance) SetScheduledInstanceId(v string) *ScheduledInstance {
  44589. s.ScheduledInstanceId = &v
  44590. return s
  44591. }
  44592. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  44593. func (s *ScheduledInstance) SetSlotDurationInHours(v int64) *ScheduledInstance {
  44594. s.SlotDurationInHours = &v
  44595. return s
  44596. }
  44597. // SetTermEndDate sets the TermEndDate field's value.
  44598. func (s *ScheduledInstance) SetTermEndDate(v time.Time) *ScheduledInstance {
  44599. s.TermEndDate = &v
  44600. return s
  44601. }
  44602. // SetTermStartDate sets the TermStartDate field's value.
  44603. func (s *ScheduledInstance) SetTermStartDate(v time.Time) *ScheduledInstance {
  44604. s.TermStartDate = &v
  44605. return s
  44606. }
  44607. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  44608. func (s *ScheduledInstance) SetTotalScheduledInstanceHours(v int64) *ScheduledInstance {
  44609. s.TotalScheduledInstanceHours = &v
  44610. return s
  44611. }
  44612. // Describes a schedule that is available for your Scheduled Instances.
  44613. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceAvailability
  44614. type ScheduledInstanceAvailability struct {
  44615. _ struct{} `type:"structure"`
  44616. // The Availability Zone.
  44617. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  44618. // The number of available instances.
  44619. AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
  44620. // The time period for the first schedule to start.
  44621. FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
  44622. // The hourly price for a single instance.
  44623. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  44624. // The instance type. You can specify one of the C3, C4, M4, or R3 instance
  44625. // types.
  44626. InstanceType *string `locationName:"instanceType" type:"string"`
  44627. // The maximum term. The only possible value is 365 days.
  44628. MaxTermDurationInDays *int64 `locationName:"maxTermDurationInDays" type:"integer"`
  44629. // The minimum term. The only possible value is 365 days.
  44630. MinTermDurationInDays *int64 `locationName:"minTermDurationInDays" type:"integer"`
  44631. // The network platform (EC2-Classic or EC2-VPC).
  44632. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  44633. // The platform (Linux/UNIX or Windows).
  44634. Platform *string `locationName:"platform" type:"string"`
  44635. // The purchase token. This token expires in two hours.
  44636. PurchaseToken *string `locationName:"purchaseToken" type:"string"`
  44637. // The schedule recurrence.
  44638. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  44639. // The number of hours in the schedule.
  44640. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  44641. // The total number of hours for a single instance for the entire term.
  44642. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  44643. }
  44644. // String returns the string representation
  44645. func (s ScheduledInstanceAvailability) String() string {
  44646. return awsutil.Prettify(s)
  44647. }
  44648. // GoString returns the string representation
  44649. func (s ScheduledInstanceAvailability) GoString() string {
  44650. return s.String()
  44651. }
  44652. // SetAvailabilityZone sets the AvailabilityZone field's value.
  44653. func (s *ScheduledInstanceAvailability) SetAvailabilityZone(v string) *ScheduledInstanceAvailability {
  44654. s.AvailabilityZone = &v
  44655. return s
  44656. }
  44657. // SetAvailableInstanceCount sets the AvailableInstanceCount field's value.
  44658. func (s *ScheduledInstanceAvailability) SetAvailableInstanceCount(v int64) *ScheduledInstanceAvailability {
  44659. s.AvailableInstanceCount = &v
  44660. return s
  44661. }
  44662. // SetFirstSlotStartTime sets the FirstSlotStartTime field's value.
  44663. func (s *ScheduledInstanceAvailability) SetFirstSlotStartTime(v time.Time) *ScheduledInstanceAvailability {
  44664. s.FirstSlotStartTime = &v
  44665. return s
  44666. }
  44667. // SetHourlyPrice sets the HourlyPrice field's value.
  44668. func (s *ScheduledInstanceAvailability) SetHourlyPrice(v string) *ScheduledInstanceAvailability {
  44669. s.HourlyPrice = &v
  44670. return s
  44671. }
  44672. // SetInstanceType sets the InstanceType field's value.
  44673. func (s *ScheduledInstanceAvailability) SetInstanceType(v string) *ScheduledInstanceAvailability {
  44674. s.InstanceType = &v
  44675. return s
  44676. }
  44677. // SetMaxTermDurationInDays sets the MaxTermDurationInDays field's value.
  44678. func (s *ScheduledInstanceAvailability) SetMaxTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  44679. s.MaxTermDurationInDays = &v
  44680. return s
  44681. }
  44682. // SetMinTermDurationInDays sets the MinTermDurationInDays field's value.
  44683. func (s *ScheduledInstanceAvailability) SetMinTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  44684. s.MinTermDurationInDays = &v
  44685. return s
  44686. }
  44687. // SetNetworkPlatform sets the NetworkPlatform field's value.
  44688. func (s *ScheduledInstanceAvailability) SetNetworkPlatform(v string) *ScheduledInstanceAvailability {
  44689. s.NetworkPlatform = &v
  44690. return s
  44691. }
  44692. // SetPlatform sets the Platform field's value.
  44693. func (s *ScheduledInstanceAvailability) SetPlatform(v string) *ScheduledInstanceAvailability {
  44694. s.Platform = &v
  44695. return s
  44696. }
  44697. // SetPurchaseToken sets the PurchaseToken field's value.
  44698. func (s *ScheduledInstanceAvailability) SetPurchaseToken(v string) *ScheduledInstanceAvailability {
  44699. s.PurchaseToken = &v
  44700. return s
  44701. }
  44702. // SetRecurrence sets the Recurrence field's value.
  44703. func (s *ScheduledInstanceAvailability) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstanceAvailability {
  44704. s.Recurrence = v
  44705. return s
  44706. }
  44707. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  44708. func (s *ScheduledInstanceAvailability) SetSlotDurationInHours(v int64) *ScheduledInstanceAvailability {
  44709. s.SlotDurationInHours = &v
  44710. return s
  44711. }
  44712. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  44713. func (s *ScheduledInstanceAvailability) SetTotalScheduledInstanceHours(v int64) *ScheduledInstanceAvailability {
  44714. s.TotalScheduledInstanceHours = &v
  44715. return s
  44716. }
  44717. // Describes the recurring schedule for a Scheduled Instance.
  44718. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceRecurrence
  44719. type ScheduledInstanceRecurrence struct {
  44720. _ struct{} `type:"structure"`
  44721. // The frequency (Daily, Weekly, or Monthly).
  44722. Frequency *string `locationName:"frequency" type:"string"`
  44723. // The interval quantity. The interval unit depends on the value of frequency.
  44724. // For example, every 2 weeks or every 2 months.
  44725. Interval *int64 `locationName:"interval" type:"integer"`
  44726. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  44727. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  44728. // is Sunday).
  44729. OccurrenceDaySet []*int64 `locationName:"occurrenceDaySet" locationNameList:"item" type:"list"`
  44730. // Indicates whether the occurrence is relative to the end of the specified
  44731. // week or month.
  44732. OccurrenceRelativeToEnd *bool `locationName:"occurrenceRelativeToEnd" type:"boolean"`
  44733. // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).
  44734. OccurrenceUnit *string `locationName:"occurrenceUnit" type:"string"`
  44735. }
  44736. // String returns the string representation
  44737. func (s ScheduledInstanceRecurrence) String() string {
  44738. return awsutil.Prettify(s)
  44739. }
  44740. // GoString returns the string representation
  44741. func (s ScheduledInstanceRecurrence) GoString() string {
  44742. return s.String()
  44743. }
  44744. // SetFrequency sets the Frequency field's value.
  44745. func (s *ScheduledInstanceRecurrence) SetFrequency(v string) *ScheduledInstanceRecurrence {
  44746. s.Frequency = &v
  44747. return s
  44748. }
  44749. // SetInterval sets the Interval field's value.
  44750. func (s *ScheduledInstanceRecurrence) SetInterval(v int64) *ScheduledInstanceRecurrence {
  44751. s.Interval = &v
  44752. return s
  44753. }
  44754. // SetOccurrenceDaySet sets the OccurrenceDaySet field's value.
  44755. func (s *ScheduledInstanceRecurrence) SetOccurrenceDaySet(v []*int64) *ScheduledInstanceRecurrence {
  44756. s.OccurrenceDaySet = v
  44757. return s
  44758. }
  44759. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  44760. func (s *ScheduledInstanceRecurrence) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrence {
  44761. s.OccurrenceRelativeToEnd = &v
  44762. return s
  44763. }
  44764. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  44765. func (s *ScheduledInstanceRecurrence) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrence {
  44766. s.OccurrenceUnit = &v
  44767. return s
  44768. }
  44769. // Describes the recurring schedule for a Scheduled Instance.
  44770. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceRecurrenceRequest
  44771. type ScheduledInstanceRecurrenceRequest struct {
  44772. _ struct{} `type:"structure"`
  44773. // The frequency (Daily, Weekly, or Monthly).
  44774. Frequency *string `type:"string"`
  44775. // The interval quantity. The interval unit depends on the value of Frequency.
  44776. // For example, every 2 weeks or every 2 months.
  44777. Interval *int64 `type:"integer"`
  44778. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  44779. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  44780. // is Sunday). You can't specify this value with a daily schedule. If the occurrence
  44781. // is relative to the end of the month, you can specify only a single day.
  44782. OccurrenceDays []*int64 `locationName:"OccurrenceDay" locationNameList:"OccurenceDay" type:"list"`
  44783. // Indicates whether the occurrence is relative to the end of the specified
  44784. // week or month. You can't specify this value with a daily schedule.
  44785. OccurrenceRelativeToEnd *bool `type:"boolean"`
  44786. // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required
  44787. // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule.
  44788. // You can't specify this value with a daily schedule.
  44789. OccurrenceUnit *string `type:"string"`
  44790. }
  44791. // String returns the string representation
  44792. func (s ScheduledInstanceRecurrenceRequest) String() string {
  44793. return awsutil.Prettify(s)
  44794. }
  44795. // GoString returns the string representation
  44796. func (s ScheduledInstanceRecurrenceRequest) GoString() string {
  44797. return s.String()
  44798. }
  44799. // SetFrequency sets the Frequency field's value.
  44800. func (s *ScheduledInstanceRecurrenceRequest) SetFrequency(v string) *ScheduledInstanceRecurrenceRequest {
  44801. s.Frequency = &v
  44802. return s
  44803. }
  44804. // SetInterval sets the Interval field's value.
  44805. func (s *ScheduledInstanceRecurrenceRequest) SetInterval(v int64) *ScheduledInstanceRecurrenceRequest {
  44806. s.Interval = &v
  44807. return s
  44808. }
  44809. // SetOccurrenceDays sets the OccurrenceDays field's value.
  44810. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceDays(v []*int64) *ScheduledInstanceRecurrenceRequest {
  44811. s.OccurrenceDays = v
  44812. return s
  44813. }
  44814. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  44815. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrenceRequest {
  44816. s.OccurrenceRelativeToEnd = &v
  44817. return s
  44818. }
  44819. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  44820. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrenceRequest {
  44821. s.OccurrenceUnit = &v
  44822. return s
  44823. }
  44824. // Describes a block device mapping for a Scheduled Instance.
  44825. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesBlockDeviceMapping
  44826. type ScheduledInstancesBlockDeviceMapping struct {
  44827. _ struct{} `type:"structure"`
  44828. // The device name exposed to the instance (for example, /dev/sdh or xvdh).
  44829. DeviceName *string `type:"string"`
  44830. // Parameters used to set up EBS volumes automatically when the instance is
  44831. // launched.
  44832. Ebs *ScheduledInstancesEbs `type:"structure"`
  44833. // Suppresses the specified device included in the block device mapping of the
  44834. // AMI.
  44835. NoDevice *string `type:"string"`
  44836. // The virtual device name (ephemeralN). Instance store volumes are numbered
  44837. // starting from 0. An instance type with two available instance store volumes
  44838. // can specify mappings for ephemeral0 and ephemeral1.The number of available
  44839. // instance store volumes depends on the instance type. After you connect to
  44840. // the instance, you must mount the volume.
  44841. //
  44842. // Constraints: For M3 instances, you must specify instance store volumes in
  44843. // the block device mapping for the instance. When you launch an M3 instance,
  44844. // we ignore any instance store volumes specified in the block device mapping
  44845. // for the AMI.
  44846. VirtualName *string `type:"string"`
  44847. }
  44848. // String returns the string representation
  44849. func (s ScheduledInstancesBlockDeviceMapping) String() string {
  44850. return awsutil.Prettify(s)
  44851. }
  44852. // GoString returns the string representation
  44853. func (s ScheduledInstancesBlockDeviceMapping) GoString() string {
  44854. return s.String()
  44855. }
  44856. // SetDeviceName sets the DeviceName field's value.
  44857. func (s *ScheduledInstancesBlockDeviceMapping) SetDeviceName(v string) *ScheduledInstancesBlockDeviceMapping {
  44858. s.DeviceName = &v
  44859. return s
  44860. }
  44861. // SetEbs sets the Ebs field's value.
  44862. func (s *ScheduledInstancesBlockDeviceMapping) SetEbs(v *ScheduledInstancesEbs) *ScheduledInstancesBlockDeviceMapping {
  44863. s.Ebs = v
  44864. return s
  44865. }
  44866. // SetNoDevice sets the NoDevice field's value.
  44867. func (s *ScheduledInstancesBlockDeviceMapping) SetNoDevice(v string) *ScheduledInstancesBlockDeviceMapping {
  44868. s.NoDevice = &v
  44869. return s
  44870. }
  44871. // SetVirtualName sets the VirtualName field's value.
  44872. func (s *ScheduledInstancesBlockDeviceMapping) SetVirtualName(v string) *ScheduledInstancesBlockDeviceMapping {
  44873. s.VirtualName = &v
  44874. return s
  44875. }
  44876. // Describes an EBS volume for a Scheduled Instance.
  44877. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesEbs
  44878. type ScheduledInstancesEbs struct {
  44879. _ struct{} `type:"structure"`
  44880. // Indicates whether the volume is deleted on instance termination.
  44881. DeleteOnTermination *bool `type:"boolean"`
  44882. // Indicates whether the volume is encrypted. You can attached encrypted volumes
  44883. // only to instances that support them.
  44884. Encrypted *bool `type:"boolean"`
  44885. // The number of I/O operations per second (IOPS) that the volume supports.
  44886. // For io1 volumes, this represents the number of IOPS that are provisioned
  44887. // for the volume. For gp2 volumes, this represents the baseline performance
  44888. // of the volume and the rate at which the volume accumulates I/O credits for
  44889. // bursting. For more information about gp2 baseline performance, I/O credits,
  44890. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  44891. // in the Amazon Elastic Compute Cloud User Guide.
  44892. //
  44893. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  44894. // gp2 volumes.
  44895. //
  44896. // Condition: This parameter is required for requests to create io1volumes;
  44897. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  44898. Iops *int64 `type:"integer"`
  44899. // The ID of the snapshot.
  44900. SnapshotId *string `type:"string"`
  44901. // The size of the volume, in GiB.
  44902. //
  44903. // Default: If you're creating the volume from a snapshot and don't specify
  44904. // a volume size, the default is the snapshot size.
  44905. VolumeSize *int64 `type:"integer"`
  44906. // The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD,
  44907. // Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.
  44908. //
  44909. // Default: standard
  44910. VolumeType *string `type:"string"`
  44911. }
  44912. // String returns the string representation
  44913. func (s ScheduledInstancesEbs) String() string {
  44914. return awsutil.Prettify(s)
  44915. }
  44916. // GoString returns the string representation
  44917. func (s ScheduledInstancesEbs) GoString() string {
  44918. return s.String()
  44919. }
  44920. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  44921. func (s *ScheduledInstancesEbs) SetDeleteOnTermination(v bool) *ScheduledInstancesEbs {
  44922. s.DeleteOnTermination = &v
  44923. return s
  44924. }
  44925. // SetEncrypted sets the Encrypted field's value.
  44926. func (s *ScheduledInstancesEbs) SetEncrypted(v bool) *ScheduledInstancesEbs {
  44927. s.Encrypted = &v
  44928. return s
  44929. }
  44930. // SetIops sets the Iops field's value.
  44931. func (s *ScheduledInstancesEbs) SetIops(v int64) *ScheduledInstancesEbs {
  44932. s.Iops = &v
  44933. return s
  44934. }
  44935. // SetSnapshotId sets the SnapshotId field's value.
  44936. func (s *ScheduledInstancesEbs) SetSnapshotId(v string) *ScheduledInstancesEbs {
  44937. s.SnapshotId = &v
  44938. return s
  44939. }
  44940. // SetVolumeSize sets the VolumeSize field's value.
  44941. func (s *ScheduledInstancesEbs) SetVolumeSize(v int64) *ScheduledInstancesEbs {
  44942. s.VolumeSize = &v
  44943. return s
  44944. }
  44945. // SetVolumeType sets the VolumeType field's value.
  44946. func (s *ScheduledInstancesEbs) SetVolumeType(v string) *ScheduledInstancesEbs {
  44947. s.VolumeType = &v
  44948. return s
  44949. }
  44950. // Describes an IAM instance profile for a Scheduled Instance.
  44951. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesIamInstanceProfile
  44952. type ScheduledInstancesIamInstanceProfile struct {
  44953. _ struct{} `type:"structure"`
  44954. // The Amazon Resource Name (ARN).
  44955. Arn *string `type:"string"`
  44956. // The name.
  44957. Name *string `type:"string"`
  44958. }
  44959. // String returns the string representation
  44960. func (s ScheduledInstancesIamInstanceProfile) String() string {
  44961. return awsutil.Prettify(s)
  44962. }
  44963. // GoString returns the string representation
  44964. func (s ScheduledInstancesIamInstanceProfile) GoString() string {
  44965. return s.String()
  44966. }
  44967. // SetArn sets the Arn field's value.
  44968. func (s *ScheduledInstancesIamInstanceProfile) SetArn(v string) *ScheduledInstancesIamInstanceProfile {
  44969. s.Arn = &v
  44970. return s
  44971. }
  44972. // SetName sets the Name field's value.
  44973. func (s *ScheduledInstancesIamInstanceProfile) SetName(v string) *ScheduledInstancesIamInstanceProfile {
  44974. s.Name = &v
  44975. return s
  44976. }
  44977. // Describes an IPv6 address.
  44978. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesIpv6Address
  44979. type ScheduledInstancesIpv6Address struct {
  44980. _ struct{} `type:"structure"`
  44981. // The IPv6 address.
  44982. Ipv6Address *string `type:"string"`
  44983. }
  44984. // String returns the string representation
  44985. func (s ScheduledInstancesIpv6Address) String() string {
  44986. return awsutil.Prettify(s)
  44987. }
  44988. // GoString returns the string representation
  44989. func (s ScheduledInstancesIpv6Address) GoString() string {
  44990. return s.String()
  44991. }
  44992. // SetIpv6Address sets the Ipv6Address field's value.
  44993. func (s *ScheduledInstancesIpv6Address) SetIpv6Address(v string) *ScheduledInstancesIpv6Address {
  44994. s.Ipv6Address = &v
  44995. return s
  44996. }
  44997. // Describes the launch specification for a Scheduled Instance.
  44998. //
  44999. // If you are launching the Scheduled Instance in EC2-VPC, you must specify
  45000. // the ID of the subnet. You can specify the subnet using either SubnetId or
  45001. // NetworkInterface.
  45002. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesLaunchSpecification
  45003. type ScheduledInstancesLaunchSpecification struct {
  45004. _ struct{} `type:"structure"`
  45005. // One or more block device mapping entries.
  45006. BlockDeviceMappings []*ScheduledInstancesBlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  45007. // Indicates whether the instances are optimized for EBS I/O. This optimization
  45008. // provides dedicated throughput to Amazon EBS and an optimized configuration
  45009. // stack to provide optimal EBS I/O performance. This optimization isn't available
  45010. // with all instance types. Additional usage charges apply when using an EBS-optimized
  45011. // instance.
  45012. //
  45013. // Default: false
  45014. EbsOptimized *bool `type:"boolean"`
  45015. // The IAM instance profile.
  45016. IamInstanceProfile *ScheduledInstancesIamInstanceProfile `type:"structure"`
  45017. // The ID of the Amazon Machine Image (AMI).
  45018. //
  45019. // ImageId is a required field
  45020. ImageId *string `type:"string" required:"true"`
  45021. // The instance type.
  45022. InstanceType *string `type:"string"`
  45023. // The ID of the kernel.
  45024. KernelId *string `type:"string"`
  45025. // The name of the key pair.
  45026. KeyName *string `type:"string"`
  45027. // Enable or disable monitoring for the instances.
  45028. Monitoring *ScheduledInstancesMonitoring `type:"structure"`
  45029. // One or more network interfaces.
  45030. NetworkInterfaces []*ScheduledInstancesNetworkInterface `locationName:"NetworkInterface" locationNameList:"NetworkInterface" type:"list"`
  45031. // The placement information.
  45032. Placement *ScheduledInstancesPlacement `type:"structure"`
  45033. // The ID of the RAM disk.
  45034. RamdiskId *string `type:"string"`
  45035. // The IDs of one or more security groups.
  45036. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  45037. // The ID of the subnet in which to launch the instances.
  45038. SubnetId *string `type:"string"`
  45039. // The base64-encoded MIME user data.
  45040. UserData *string `type:"string"`
  45041. }
  45042. // String returns the string representation
  45043. func (s ScheduledInstancesLaunchSpecification) String() string {
  45044. return awsutil.Prettify(s)
  45045. }
  45046. // GoString returns the string representation
  45047. func (s ScheduledInstancesLaunchSpecification) GoString() string {
  45048. return s.String()
  45049. }
  45050. // Validate inspects the fields of the type to determine if they are valid.
  45051. func (s *ScheduledInstancesLaunchSpecification) Validate() error {
  45052. invalidParams := request.ErrInvalidParams{Context: "ScheduledInstancesLaunchSpecification"}
  45053. if s.ImageId == nil {
  45054. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  45055. }
  45056. if invalidParams.Len() > 0 {
  45057. return invalidParams
  45058. }
  45059. return nil
  45060. }
  45061. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  45062. func (s *ScheduledInstancesLaunchSpecification) SetBlockDeviceMappings(v []*ScheduledInstancesBlockDeviceMapping) *ScheduledInstancesLaunchSpecification {
  45063. s.BlockDeviceMappings = v
  45064. return s
  45065. }
  45066. // SetEbsOptimized sets the EbsOptimized field's value.
  45067. func (s *ScheduledInstancesLaunchSpecification) SetEbsOptimized(v bool) *ScheduledInstancesLaunchSpecification {
  45068. s.EbsOptimized = &v
  45069. return s
  45070. }
  45071. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  45072. func (s *ScheduledInstancesLaunchSpecification) SetIamInstanceProfile(v *ScheduledInstancesIamInstanceProfile) *ScheduledInstancesLaunchSpecification {
  45073. s.IamInstanceProfile = v
  45074. return s
  45075. }
  45076. // SetImageId sets the ImageId field's value.
  45077. func (s *ScheduledInstancesLaunchSpecification) SetImageId(v string) *ScheduledInstancesLaunchSpecification {
  45078. s.ImageId = &v
  45079. return s
  45080. }
  45081. // SetInstanceType sets the InstanceType field's value.
  45082. func (s *ScheduledInstancesLaunchSpecification) SetInstanceType(v string) *ScheduledInstancesLaunchSpecification {
  45083. s.InstanceType = &v
  45084. return s
  45085. }
  45086. // SetKernelId sets the KernelId field's value.
  45087. func (s *ScheduledInstancesLaunchSpecification) SetKernelId(v string) *ScheduledInstancesLaunchSpecification {
  45088. s.KernelId = &v
  45089. return s
  45090. }
  45091. // SetKeyName sets the KeyName field's value.
  45092. func (s *ScheduledInstancesLaunchSpecification) SetKeyName(v string) *ScheduledInstancesLaunchSpecification {
  45093. s.KeyName = &v
  45094. return s
  45095. }
  45096. // SetMonitoring sets the Monitoring field's value.
  45097. func (s *ScheduledInstancesLaunchSpecification) SetMonitoring(v *ScheduledInstancesMonitoring) *ScheduledInstancesLaunchSpecification {
  45098. s.Monitoring = v
  45099. return s
  45100. }
  45101. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  45102. func (s *ScheduledInstancesLaunchSpecification) SetNetworkInterfaces(v []*ScheduledInstancesNetworkInterface) *ScheduledInstancesLaunchSpecification {
  45103. s.NetworkInterfaces = v
  45104. return s
  45105. }
  45106. // SetPlacement sets the Placement field's value.
  45107. func (s *ScheduledInstancesLaunchSpecification) SetPlacement(v *ScheduledInstancesPlacement) *ScheduledInstancesLaunchSpecification {
  45108. s.Placement = v
  45109. return s
  45110. }
  45111. // SetRamdiskId sets the RamdiskId field's value.
  45112. func (s *ScheduledInstancesLaunchSpecification) SetRamdiskId(v string) *ScheduledInstancesLaunchSpecification {
  45113. s.RamdiskId = &v
  45114. return s
  45115. }
  45116. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  45117. func (s *ScheduledInstancesLaunchSpecification) SetSecurityGroupIds(v []*string) *ScheduledInstancesLaunchSpecification {
  45118. s.SecurityGroupIds = v
  45119. return s
  45120. }
  45121. // SetSubnetId sets the SubnetId field's value.
  45122. func (s *ScheduledInstancesLaunchSpecification) SetSubnetId(v string) *ScheduledInstancesLaunchSpecification {
  45123. s.SubnetId = &v
  45124. return s
  45125. }
  45126. // SetUserData sets the UserData field's value.
  45127. func (s *ScheduledInstancesLaunchSpecification) SetUserData(v string) *ScheduledInstancesLaunchSpecification {
  45128. s.UserData = &v
  45129. return s
  45130. }
  45131. // Describes whether monitoring is enabled for a Scheduled Instance.
  45132. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesMonitoring
  45133. type ScheduledInstancesMonitoring struct {
  45134. _ struct{} `type:"structure"`
  45135. // Indicates whether monitoring is enabled.
  45136. Enabled *bool `type:"boolean"`
  45137. }
  45138. // String returns the string representation
  45139. func (s ScheduledInstancesMonitoring) String() string {
  45140. return awsutil.Prettify(s)
  45141. }
  45142. // GoString returns the string representation
  45143. func (s ScheduledInstancesMonitoring) GoString() string {
  45144. return s.String()
  45145. }
  45146. // SetEnabled sets the Enabled field's value.
  45147. func (s *ScheduledInstancesMonitoring) SetEnabled(v bool) *ScheduledInstancesMonitoring {
  45148. s.Enabled = &v
  45149. return s
  45150. }
  45151. // Describes a network interface for a Scheduled Instance.
  45152. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesNetworkInterface
  45153. type ScheduledInstancesNetworkInterface struct {
  45154. _ struct{} `type:"structure"`
  45155. // Indicates whether to assign a public IPv4 address to instances launched in
  45156. // a VPC. The public IPv4 address can only be assigned to a network interface
  45157. // for eth0, and can only be assigned to a new network interface, not an existing
  45158. // one. You cannot specify more than one network interface in the request. If
  45159. // launching into a default subnet, the default value is true.
  45160. AssociatePublicIpAddress *bool `type:"boolean"`
  45161. // Indicates whether to delete the interface when the instance is terminated.
  45162. DeleteOnTermination *bool `type:"boolean"`
  45163. // The description.
  45164. Description *string `type:"string"`
  45165. // The index of the device for the network interface attachment.
  45166. DeviceIndex *int64 `type:"integer"`
  45167. // The IDs of one or more security groups.
  45168. Groups []*string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"`
  45169. // The number of IPv6 addresses to assign to the network interface. The IPv6
  45170. // addresses are automatically selected from the subnet range.
  45171. Ipv6AddressCount *int64 `type:"integer"`
  45172. // One or more specific IPv6 addresses from the subnet range.
  45173. Ipv6Addresses []*ScheduledInstancesIpv6Address `locationName:"Ipv6Address" locationNameList:"Ipv6Address" type:"list"`
  45174. // The ID of the network interface.
  45175. NetworkInterfaceId *string `type:"string"`
  45176. // The IPv4 address of the network interface within the subnet.
  45177. PrivateIpAddress *string `type:"string"`
  45178. // The private IPv4 addresses.
  45179. PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"`
  45180. // The number of secondary private IPv4 addresses.
  45181. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  45182. // The ID of the subnet.
  45183. SubnetId *string `type:"string"`
  45184. }
  45185. // String returns the string representation
  45186. func (s ScheduledInstancesNetworkInterface) String() string {
  45187. return awsutil.Prettify(s)
  45188. }
  45189. // GoString returns the string representation
  45190. func (s ScheduledInstancesNetworkInterface) GoString() string {
  45191. return s.String()
  45192. }
  45193. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  45194. func (s *ScheduledInstancesNetworkInterface) SetAssociatePublicIpAddress(v bool) *ScheduledInstancesNetworkInterface {
  45195. s.AssociatePublicIpAddress = &v
  45196. return s
  45197. }
  45198. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  45199. func (s *ScheduledInstancesNetworkInterface) SetDeleteOnTermination(v bool) *ScheduledInstancesNetworkInterface {
  45200. s.DeleteOnTermination = &v
  45201. return s
  45202. }
  45203. // SetDescription sets the Description field's value.
  45204. func (s *ScheduledInstancesNetworkInterface) SetDescription(v string) *ScheduledInstancesNetworkInterface {
  45205. s.Description = &v
  45206. return s
  45207. }
  45208. // SetDeviceIndex sets the DeviceIndex field's value.
  45209. func (s *ScheduledInstancesNetworkInterface) SetDeviceIndex(v int64) *ScheduledInstancesNetworkInterface {
  45210. s.DeviceIndex = &v
  45211. return s
  45212. }
  45213. // SetGroups sets the Groups field's value.
  45214. func (s *ScheduledInstancesNetworkInterface) SetGroups(v []*string) *ScheduledInstancesNetworkInterface {
  45215. s.Groups = v
  45216. return s
  45217. }
  45218. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  45219. func (s *ScheduledInstancesNetworkInterface) SetIpv6AddressCount(v int64) *ScheduledInstancesNetworkInterface {
  45220. s.Ipv6AddressCount = &v
  45221. return s
  45222. }
  45223. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  45224. func (s *ScheduledInstancesNetworkInterface) SetIpv6Addresses(v []*ScheduledInstancesIpv6Address) *ScheduledInstancesNetworkInterface {
  45225. s.Ipv6Addresses = v
  45226. return s
  45227. }
  45228. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  45229. func (s *ScheduledInstancesNetworkInterface) SetNetworkInterfaceId(v string) *ScheduledInstancesNetworkInterface {
  45230. s.NetworkInterfaceId = &v
  45231. return s
  45232. }
  45233. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  45234. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddress(v string) *ScheduledInstancesNetworkInterface {
  45235. s.PrivateIpAddress = &v
  45236. return s
  45237. }
  45238. // SetPrivateIpAddressConfigs sets the PrivateIpAddressConfigs field's value.
  45239. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddressConfigs(v []*ScheduledInstancesPrivateIpAddressConfig) *ScheduledInstancesNetworkInterface {
  45240. s.PrivateIpAddressConfigs = v
  45241. return s
  45242. }
  45243. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  45244. func (s *ScheduledInstancesNetworkInterface) SetSecondaryPrivateIpAddressCount(v int64) *ScheduledInstancesNetworkInterface {
  45245. s.SecondaryPrivateIpAddressCount = &v
  45246. return s
  45247. }
  45248. // SetSubnetId sets the SubnetId field's value.
  45249. func (s *ScheduledInstancesNetworkInterface) SetSubnetId(v string) *ScheduledInstancesNetworkInterface {
  45250. s.SubnetId = &v
  45251. return s
  45252. }
  45253. // Describes the placement for a Scheduled Instance.
  45254. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesPlacement
  45255. type ScheduledInstancesPlacement struct {
  45256. _ struct{} `type:"structure"`
  45257. // The Availability Zone.
  45258. AvailabilityZone *string `type:"string"`
  45259. // The name of the placement group.
  45260. GroupName *string `type:"string"`
  45261. }
  45262. // String returns the string representation
  45263. func (s ScheduledInstancesPlacement) String() string {
  45264. return awsutil.Prettify(s)
  45265. }
  45266. // GoString returns the string representation
  45267. func (s ScheduledInstancesPlacement) GoString() string {
  45268. return s.String()
  45269. }
  45270. // SetAvailabilityZone sets the AvailabilityZone field's value.
  45271. func (s *ScheduledInstancesPlacement) SetAvailabilityZone(v string) *ScheduledInstancesPlacement {
  45272. s.AvailabilityZone = &v
  45273. return s
  45274. }
  45275. // SetGroupName sets the GroupName field's value.
  45276. func (s *ScheduledInstancesPlacement) SetGroupName(v string) *ScheduledInstancesPlacement {
  45277. s.GroupName = &v
  45278. return s
  45279. }
  45280. // Describes a private IPv4 address for a Scheduled Instance.
  45281. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesPrivateIpAddressConfig
  45282. type ScheduledInstancesPrivateIpAddressConfig struct {
  45283. _ struct{} `type:"structure"`
  45284. // Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary
  45285. // IPv4 address.
  45286. Primary *bool `type:"boolean"`
  45287. // The IPv4 address.
  45288. PrivateIpAddress *string `type:"string"`
  45289. }
  45290. // String returns the string representation
  45291. func (s ScheduledInstancesPrivateIpAddressConfig) String() string {
  45292. return awsutil.Prettify(s)
  45293. }
  45294. // GoString returns the string representation
  45295. func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string {
  45296. return s.String()
  45297. }
  45298. // SetPrimary sets the Primary field's value.
  45299. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrimary(v bool) *ScheduledInstancesPrivateIpAddressConfig {
  45300. s.Primary = &v
  45301. return s
  45302. }
  45303. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  45304. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrivateIpAddress(v string) *ScheduledInstancesPrivateIpAddressConfig {
  45305. s.PrivateIpAddress = &v
  45306. return s
  45307. }
  45308. // Describes a security group
  45309. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroup
  45310. type SecurityGroup struct {
  45311. _ struct{} `type:"structure"`
  45312. // A description of the security group.
  45313. Description *string `locationName:"groupDescription" type:"string"`
  45314. // The ID of the security group.
  45315. GroupId *string `locationName:"groupId" type:"string"`
  45316. // The name of the security group.
  45317. GroupName *string `locationName:"groupName" type:"string"`
  45318. // One or more inbound rules associated with the security group.
  45319. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  45320. // [EC2-VPC] One or more outbound rules associated with the security group.
  45321. IpPermissionsEgress []*IpPermission `locationName:"ipPermissionsEgress" locationNameList:"item" type:"list"`
  45322. // The AWS account ID of the owner of the security group.
  45323. OwnerId *string `locationName:"ownerId" type:"string"`
  45324. // Any tags assigned to the security group.
  45325. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  45326. // [EC2-VPC] The ID of the VPC for the security group.
  45327. VpcId *string `locationName:"vpcId" type:"string"`
  45328. }
  45329. // String returns the string representation
  45330. func (s SecurityGroup) String() string {
  45331. return awsutil.Prettify(s)
  45332. }
  45333. // GoString returns the string representation
  45334. func (s SecurityGroup) GoString() string {
  45335. return s.String()
  45336. }
  45337. // SetDescription sets the Description field's value.
  45338. func (s *SecurityGroup) SetDescription(v string) *SecurityGroup {
  45339. s.Description = &v
  45340. return s
  45341. }
  45342. // SetGroupId sets the GroupId field's value.
  45343. func (s *SecurityGroup) SetGroupId(v string) *SecurityGroup {
  45344. s.GroupId = &v
  45345. return s
  45346. }
  45347. // SetGroupName sets the GroupName field's value.
  45348. func (s *SecurityGroup) SetGroupName(v string) *SecurityGroup {
  45349. s.GroupName = &v
  45350. return s
  45351. }
  45352. // SetIpPermissions sets the IpPermissions field's value.
  45353. func (s *SecurityGroup) SetIpPermissions(v []*IpPermission) *SecurityGroup {
  45354. s.IpPermissions = v
  45355. return s
  45356. }
  45357. // SetIpPermissionsEgress sets the IpPermissionsEgress field's value.
  45358. func (s *SecurityGroup) SetIpPermissionsEgress(v []*IpPermission) *SecurityGroup {
  45359. s.IpPermissionsEgress = v
  45360. return s
  45361. }
  45362. // SetOwnerId sets the OwnerId field's value.
  45363. func (s *SecurityGroup) SetOwnerId(v string) *SecurityGroup {
  45364. s.OwnerId = &v
  45365. return s
  45366. }
  45367. // SetTags sets the Tags field's value.
  45368. func (s *SecurityGroup) SetTags(v []*Tag) *SecurityGroup {
  45369. s.Tags = v
  45370. return s
  45371. }
  45372. // SetVpcId sets the VpcId field's value.
  45373. func (s *SecurityGroup) SetVpcId(v string) *SecurityGroup {
  45374. s.VpcId = &v
  45375. return s
  45376. }
  45377. // Describes a VPC with a security group that references your security group.
  45378. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroupReference
  45379. type SecurityGroupReference struct {
  45380. _ struct{} `type:"structure"`
  45381. // The ID of your security group.
  45382. //
  45383. // GroupId is a required field
  45384. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  45385. // The ID of the VPC with the referencing security group.
  45386. //
  45387. // ReferencingVpcId is a required field
  45388. ReferencingVpcId *string `locationName:"referencingVpcId" type:"string" required:"true"`
  45389. // The ID of the VPC peering connection.
  45390. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  45391. }
  45392. // String returns the string representation
  45393. func (s SecurityGroupReference) String() string {
  45394. return awsutil.Prettify(s)
  45395. }
  45396. // GoString returns the string representation
  45397. func (s SecurityGroupReference) GoString() string {
  45398. return s.String()
  45399. }
  45400. // SetGroupId sets the GroupId field's value.
  45401. func (s *SecurityGroupReference) SetGroupId(v string) *SecurityGroupReference {
  45402. s.GroupId = &v
  45403. return s
  45404. }
  45405. // SetReferencingVpcId sets the ReferencingVpcId field's value.
  45406. func (s *SecurityGroupReference) SetReferencingVpcId(v string) *SecurityGroupReference {
  45407. s.ReferencingVpcId = &v
  45408. return s
  45409. }
  45410. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  45411. func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGroupReference {
  45412. s.VpcPeeringConnectionId = &v
  45413. return s
  45414. }
  45415. // Describes the time period for a Scheduled Instance to start its first schedule.
  45416. // The time period must span less than one day.
  45417. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SlotDateTimeRangeRequest
  45418. type SlotDateTimeRangeRequest struct {
  45419. _ struct{} `type:"structure"`
  45420. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  45421. //
  45422. // EarliestTime is a required field
  45423. EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  45424. // The latest date and time, in UTC, for the Scheduled Instance to start. This
  45425. // value must be later than or equal to the earliest date and at most three
  45426. // months in the future.
  45427. //
  45428. // LatestTime is a required field
  45429. LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  45430. }
  45431. // String returns the string representation
  45432. func (s SlotDateTimeRangeRequest) String() string {
  45433. return awsutil.Prettify(s)
  45434. }
  45435. // GoString returns the string representation
  45436. func (s SlotDateTimeRangeRequest) GoString() string {
  45437. return s.String()
  45438. }
  45439. // Validate inspects the fields of the type to determine if they are valid.
  45440. func (s *SlotDateTimeRangeRequest) Validate() error {
  45441. invalidParams := request.ErrInvalidParams{Context: "SlotDateTimeRangeRequest"}
  45442. if s.EarliestTime == nil {
  45443. invalidParams.Add(request.NewErrParamRequired("EarliestTime"))
  45444. }
  45445. if s.LatestTime == nil {
  45446. invalidParams.Add(request.NewErrParamRequired("LatestTime"))
  45447. }
  45448. if invalidParams.Len() > 0 {
  45449. return invalidParams
  45450. }
  45451. return nil
  45452. }
  45453. // SetEarliestTime sets the EarliestTime field's value.
  45454. func (s *SlotDateTimeRangeRequest) SetEarliestTime(v time.Time) *SlotDateTimeRangeRequest {
  45455. s.EarliestTime = &v
  45456. return s
  45457. }
  45458. // SetLatestTime sets the LatestTime field's value.
  45459. func (s *SlotDateTimeRangeRequest) SetLatestTime(v time.Time) *SlotDateTimeRangeRequest {
  45460. s.LatestTime = &v
  45461. return s
  45462. }
  45463. // Describes the time period for a Scheduled Instance to start its first schedule.
  45464. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SlotStartTimeRangeRequest
  45465. type SlotStartTimeRangeRequest struct {
  45466. _ struct{} `type:"structure"`
  45467. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  45468. EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  45469. // The latest date and time, in UTC, for the Scheduled Instance to start.
  45470. LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  45471. }
  45472. // String returns the string representation
  45473. func (s SlotStartTimeRangeRequest) String() string {
  45474. return awsutil.Prettify(s)
  45475. }
  45476. // GoString returns the string representation
  45477. func (s SlotStartTimeRangeRequest) GoString() string {
  45478. return s.String()
  45479. }
  45480. // SetEarliestTime sets the EarliestTime field's value.
  45481. func (s *SlotStartTimeRangeRequest) SetEarliestTime(v time.Time) *SlotStartTimeRangeRequest {
  45482. s.EarliestTime = &v
  45483. return s
  45484. }
  45485. // SetLatestTime sets the LatestTime field's value.
  45486. func (s *SlotStartTimeRangeRequest) SetLatestTime(v time.Time) *SlotStartTimeRangeRequest {
  45487. s.LatestTime = &v
  45488. return s
  45489. }
  45490. // Describes a snapshot.
  45491. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Snapshot
  45492. type Snapshot struct {
  45493. _ struct{} `type:"structure"`
  45494. // The data encryption key identifier for the snapshot. This value is a unique
  45495. // identifier that corresponds to the data encryption key that was used to encrypt
  45496. // the original volume or snapshot copy. Because data encryption keys are inherited
  45497. // by volumes created from snapshots, and vice versa, if snapshots share the
  45498. // same data encryption key identifier, then they belong to the same volume/snapshot
  45499. // lineage. This parameter is only returned by the DescribeSnapshots API operation.
  45500. DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"`
  45501. // The description for the snapshot.
  45502. Description *string `locationName:"description" type:"string"`
  45503. // Indicates whether the snapshot is encrypted.
  45504. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  45505. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  45506. // key (CMK) that was used to protect the volume encryption key for the parent
  45507. // volume.
  45508. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  45509. // Value from an Amazon-maintained list (amazon | aws-marketplace | microsoft)
  45510. // of snapshot owners. Not to be confused with the user-configured AWS account
  45511. // alias, which is set from the IAM console.
  45512. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  45513. // The AWS account ID of the EBS snapshot owner.
  45514. OwnerId *string `locationName:"ownerId" type:"string"`
  45515. // The progress of the snapshot, as a percentage.
  45516. Progress *string `locationName:"progress" type:"string"`
  45517. // The ID of the snapshot. Each snapshot receives a unique identifier when it
  45518. // is created.
  45519. SnapshotId *string `locationName:"snapshotId" type:"string"`
  45520. // The time stamp when the snapshot was initiated.
  45521. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  45522. // The snapshot state.
  45523. State *string `locationName:"status" type:"string" enum:"SnapshotState"`
  45524. // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
  45525. // operation fails (for example, if the proper AWS Key Management Service (AWS
  45526. // KMS) permissions are not obtained) this field displays error state details
  45527. // to help you diagnose why the error occurred. This parameter is only returned
  45528. // by the DescribeSnapshots API operation.
  45529. StateMessage *string `locationName:"statusMessage" type:"string"`
  45530. // Any tags assigned to the snapshot.
  45531. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  45532. // The ID of the volume that was used to create the snapshot. Snapshots created
  45533. // by the CopySnapshot action have an arbitrary volume ID that should not be
  45534. // used for any purpose.
  45535. VolumeId *string `locationName:"volumeId" type:"string"`
  45536. // The size of the volume, in GiB.
  45537. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  45538. }
  45539. // String returns the string representation
  45540. func (s Snapshot) String() string {
  45541. return awsutil.Prettify(s)
  45542. }
  45543. // GoString returns the string representation
  45544. func (s Snapshot) GoString() string {
  45545. return s.String()
  45546. }
  45547. // SetDataEncryptionKeyId sets the DataEncryptionKeyId field's value.
  45548. func (s *Snapshot) SetDataEncryptionKeyId(v string) *Snapshot {
  45549. s.DataEncryptionKeyId = &v
  45550. return s
  45551. }
  45552. // SetDescription sets the Description field's value.
  45553. func (s *Snapshot) SetDescription(v string) *Snapshot {
  45554. s.Description = &v
  45555. return s
  45556. }
  45557. // SetEncrypted sets the Encrypted field's value.
  45558. func (s *Snapshot) SetEncrypted(v bool) *Snapshot {
  45559. s.Encrypted = &v
  45560. return s
  45561. }
  45562. // SetKmsKeyId sets the KmsKeyId field's value.
  45563. func (s *Snapshot) SetKmsKeyId(v string) *Snapshot {
  45564. s.KmsKeyId = &v
  45565. return s
  45566. }
  45567. // SetOwnerAlias sets the OwnerAlias field's value.
  45568. func (s *Snapshot) SetOwnerAlias(v string) *Snapshot {
  45569. s.OwnerAlias = &v
  45570. return s
  45571. }
  45572. // SetOwnerId sets the OwnerId field's value.
  45573. func (s *Snapshot) SetOwnerId(v string) *Snapshot {
  45574. s.OwnerId = &v
  45575. return s
  45576. }
  45577. // SetProgress sets the Progress field's value.
  45578. func (s *Snapshot) SetProgress(v string) *Snapshot {
  45579. s.Progress = &v
  45580. return s
  45581. }
  45582. // SetSnapshotId sets the SnapshotId field's value.
  45583. func (s *Snapshot) SetSnapshotId(v string) *Snapshot {
  45584. s.SnapshotId = &v
  45585. return s
  45586. }
  45587. // SetStartTime sets the StartTime field's value.
  45588. func (s *Snapshot) SetStartTime(v time.Time) *Snapshot {
  45589. s.StartTime = &v
  45590. return s
  45591. }
  45592. // SetState sets the State field's value.
  45593. func (s *Snapshot) SetState(v string) *Snapshot {
  45594. s.State = &v
  45595. return s
  45596. }
  45597. // SetStateMessage sets the StateMessage field's value.
  45598. func (s *Snapshot) SetStateMessage(v string) *Snapshot {
  45599. s.StateMessage = &v
  45600. return s
  45601. }
  45602. // SetTags sets the Tags field's value.
  45603. func (s *Snapshot) SetTags(v []*Tag) *Snapshot {
  45604. s.Tags = v
  45605. return s
  45606. }
  45607. // SetVolumeId sets the VolumeId field's value.
  45608. func (s *Snapshot) SetVolumeId(v string) *Snapshot {
  45609. s.VolumeId = &v
  45610. return s
  45611. }
  45612. // SetVolumeSize sets the VolumeSize field's value.
  45613. func (s *Snapshot) SetVolumeSize(v int64) *Snapshot {
  45614. s.VolumeSize = &v
  45615. return s
  45616. }
  45617. // Describes the snapshot created from the imported disk.
  45618. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotDetail
  45619. type SnapshotDetail struct {
  45620. _ struct{} `type:"structure"`
  45621. // A description for the snapshot.
  45622. Description *string `locationName:"description" type:"string"`
  45623. // The block device mapping for the snapshot.
  45624. DeviceName *string `locationName:"deviceName" type:"string"`
  45625. // The size of the disk in the snapshot, in GiB.
  45626. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  45627. // The format of the disk image from which the snapshot is created.
  45628. Format *string `locationName:"format" type:"string"`
  45629. // The percentage of progress for the task.
  45630. Progress *string `locationName:"progress" type:"string"`
  45631. // The snapshot ID of the disk being imported.
  45632. SnapshotId *string `locationName:"snapshotId" type:"string"`
  45633. // A brief status of the snapshot creation.
  45634. Status *string `locationName:"status" type:"string"`
  45635. // A detailed status message for the snapshot creation.
  45636. StatusMessage *string `locationName:"statusMessage" type:"string"`
  45637. // The URL used to access the disk image.
  45638. Url *string `locationName:"url" type:"string"`
  45639. // The S3 bucket for the disk image.
  45640. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  45641. }
  45642. // String returns the string representation
  45643. func (s SnapshotDetail) String() string {
  45644. return awsutil.Prettify(s)
  45645. }
  45646. // GoString returns the string representation
  45647. func (s SnapshotDetail) GoString() string {
  45648. return s.String()
  45649. }
  45650. // SetDescription sets the Description field's value.
  45651. func (s *SnapshotDetail) SetDescription(v string) *SnapshotDetail {
  45652. s.Description = &v
  45653. return s
  45654. }
  45655. // SetDeviceName sets the DeviceName field's value.
  45656. func (s *SnapshotDetail) SetDeviceName(v string) *SnapshotDetail {
  45657. s.DeviceName = &v
  45658. return s
  45659. }
  45660. // SetDiskImageSize sets the DiskImageSize field's value.
  45661. func (s *SnapshotDetail) SetDiskImageSize(v float64) *SnapshotDetail {
  45662. s.DiskImageSize = &v
  45663. return s
  45664. }
  45665. // SetFormat sets the Format field's value.
  45666. func (s *SnapshotDetail) SetFormat(v string) *SnapshotDetail {
  45667. s.Format = &v
  45668. return s
  45669. }
  45670. // SetProgress sets the Progress field's value.
  45671. func (s *SnapshotDetail) SetProgress(v string) *SnapshotDetail {
  45672. s.Progress = &v
  45673. return s
  45674. }
  45675. // SetSnapshotId sets the SnapshotId field's value.
  45676. func (s *SnapshotDetail) SetSnapshotId(v string) *SnapshotDetail {
  45677. s.SnapshotId = &v
  45678. return s
  45679. }
  45680. // SetStatus sets the Status field's value.
  45681. func (s *SnapshotDetail) SetStatus(v string) *SnapshotDetail {
  45682. s.Status = &v
  45683. return s
  45684. }
  45685. // SetStatusMessage sets the StatusMessage field's value.
  45686. func (s *SnapshotDetail) SetStatusMessage(v string) *SnapshotDetail {
  45687. s.StatusMessage = &v
  45688. return s
  45689. }
  45690. // SetUrl sets the Url field's value.
  45691. func (s *SnapshotDetail) SetUrl(v string) *SnapshotDetail {
  45692. s.Url = &v
  45693. return s
  45694. }
  45695. // SetUserBucket sets the UserBucket field's value.
  45696. func (s *SnapshotDetail) SetUserBucket(v *UserBucketDetails) *SnapshotDetail {
  45697. s.UserBucket = v
  45698. return s
  45699. }
  45700. // The disk container object for the import snapshot request.
  45701. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotDiskContainer
  45702. type SnapshotDiskContainer struct {
  45703. _ struct{} `type:"structure"`
  45704. // The description of the disk image being imported.
  45705. Description *string `type:"string"`
  45706. // The format of the disk image being imported.
  45707. //
  45708. // Valid values: RAW | VHD | VMDK | OVA
  45709. Format *string `type:"string"`
  45710. // The URL to the Amazon S3-based disk image being imported. It can either be
  45711. // a https URL (https://..) or an Amazon S3 URL (s3://..).
  45712. Url *string `type:"string"`
  45713. // The S3 bucket for the disk image.
  45714. UserBucket *UserBucket `type:"structure"`
  45715. }
  45716. // String returns the string representation
  45717. func (s SnapshotDiskContainer) String() string {
  45718. return awsutil.Prettify(s)
  45719. }
  45720. // GoString returns the string representation
  45721. func (s SnapshotDiskContainer) GoString() string {
  45722. return s.String()
  45723. }
  45724. // SetDescription sets the Description field's value.
  45725. func (s *SnapshotDiskContainer) SetDescription(v string) *SnapshotDiskContainer {
  45726. s.Description = &v
  45727. return s
  45728. }
  45729. // SetFormat sets the Format field's value.
  45730. func (s *SnapshotDiskContainer) SetFormat(v string) *SnapshotDiskContainer {
  45731. s.Format = &v
  45732. return s
  45733. }
  45734. // SetUrl sets the Url field's value.
  45735. func (s *SnapshotDiskContainer) SetUrl(v string) *SnapshotDiskContainer {
  45736. s.Url = &v
  45737. return s
  45738. }
  45739. // SetUserBucket sets the UserBucket field's value.
  45740. func (s *SnapshotDiskContainer) SetUserBucket(v *UserBucket) *SnapshotDiskContainer {
  45741. s.UserBucket = v
  45742. return s
  45743. }
  45744. // Details about the import snapshot task.
  45745. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotTaskDetail
  45746. type SnapshotTaskDetail struct {
  45747. _ struct{} `type:"structure"`
  45748. // The description of the snapshot.
  45749. Description *string `locationName:"description" type:"string"`
  45750. // The size of the disk in the snapshot, in GiB.
  45751. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  45752. // The format of the disk image from which the snapshot is created.
  45753. Format *string `locationName:"format" type:"string"`
  45754. // The percentage of completion for the import snapshot task.
  45755. Progress *string `locationName:"progress" type:"string"`
  45756. // The snapshot ID of the disk being imported.
  45757. SnapshotId *string `locationName:"snapshotId" type:"string"`
  45758. // A brief status for the import snapshot task.
  45759. Status *string `locationName:"status" type:"string"`
  45760. // A detailed status message for the import snapshot task.
  45761. StatusMessage *string `locationName:"statusMessage" type:"string"`
  45762. // The URL of the disk image from which the snapshot is created.
  45763. Url *string `locationName:"url" type:"string"`
  45764. // The S3 bucket for the disk image.
  45765. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  45766. }
  45767. // String returns the string representation
  45768. func (s SnapshotTaskDetail) String() string {
  45769. return awsutil.Prettify(s)
  45770. }
  45771. // GoString returns the string representation
  45772. func (s SnapshotTaskDetail) GoString() string {
  45773. return s.String()
  45774. }
  45775. // SetDescription sets the Description field's value.
  45776. func (s *SnapshotTaskDetail) SetDescription(v string) *SnapshotTaskDetail {
  45777. s.Description = &v
  45778. return s
  45779. }
  45780. // SetDiskImageSize sets the DiskImageSize field's value.
  45781. func (s *SnapshotTaskDetail) SetDiskImageSize(v float64) *SnapshotTaskDetail {
  45782. s.DiskImageSize = &v
  45783. return s
  45784. }
  45785. // SetFormat sets the Format field's value.
  45786. func (s *SnapshotTaskDetail) SetFormat(v string) *SnapshotTaskDetail {
  45787. s.Format = &v
  45788. return s
  45789. }
  45790. // SetProgress sets the Progress field's value.
  45791. func (s *SnapshotTaskDetail) SetProgress(v string) *SnapshotTaskDetail {
  45792. s.Progress = &v
  45793. return s
  45794. }
  45795. // SetSnapshotId sets the SnapshotId field's value.
  45796. func (s *SnapshotTaskDetail) SetSnapshotId(v string) *SnapshotTaskDetail {
  45797. s.SnapshotId = &v
  45798. return s
  45799. }
  45800. // SetStatus sets the Status field's value.
  45801. func (s *SnapshotTaskDetail) SetStatus(v string) *SnapshotTaskDetail {
  45802. s.Status = &v
  45803. return s
  45804. }
  45805. // SetStatusMessage sets the StatusMessage field's value.
  45806. func (s *SnapshotTaskDetail) SetStatusMessage(v string) *SnapshotTaskDetail {
  45807. s.StatusMessage = &v
  45808. return s
  45809. }
  45810. // SetUrl sets the Url field's value.
  45811. func (s *SnapshotTaskDetail) SetUrl(v string) *SnapshotTaskDetail {
  45812. s.Url = &v
  45813. return s
  45814. }
  45815. // SetUserBucket sets the UserBucket field's value.
  45816. func (s *SnapshotTaskDetail) SetUserBucket(v *UserBucketDetails) *SnapshotTaskDetail {
  45817. s.UserBucket = v
  45818. return s
  45819. }
  45820. // Describes the data feed for a Spot instance.
  45821. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotDatafeedSubscription
  45822. type SpotDatafeedSubscription struct {
  45823. _ struct{} `type:"structure"`
  45824. // The Amazon S3 bucket where the Spot instance data feed is located.
  45825. Bucket *string `locationName:"bucket" type:"string"`
  45826. // The fault codes for the Spot instance request, if any.
  45827. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  45828. // The AWS account ID of the account.
  45829. OwnerId *string `locationName:"ownerId" type:"string"`
  45830. // The prefix that is prepended to data feed files.
  45831. Prefix *string `locationName:"prefix" type:"string"`
  45832. // The state of the Spot instance data feed subscription.
  45833. State *string `locationName:"state" type:"string" enum:"DatafeedSubscriptionState"`
  45834. }
  45835. // String returns the string representation
  45836. func (s SpotDatafeedSubscription) String() string {
  45837. return awsutil.Prettify(s)
  45838. }
  45839. // GoString returns the string representation
  45840. func (s SpotDatafeedSubscription) GoString() string {
  45841. return s.String()
  45842. }
  45843. // SetBucket sets the Bucket field's value.
  45844. func (s *SpotDatafeedSubscription) SetBucket(v string) *SpotDatafeedSubscription {
  45845. s.Bucket = &v
  45846. return s
  45847. }
  45848. // SetFault sets the Fault field's value.
  45849. func (s *SpotDatafeedSubscription) SetFault(v *SpotInstanceStateFault) *SpotDatafeedSubscription {
  45850. s.Fault = v
  45851. return s
  45852. }
  45853. // SetOwnerId sets the OwnerId field's value.
  45854. func (s *SpotDatafeedSubscription) SetOwnerId(v string) *SpotDatafeedSubscription {
  45855. s.OwnerId = &v
  45856. return s
  45857. }
  45858. // SetPrefix sets the Prefix field's value.
  45859. func (s *SpotDatafeedSubscription) SetPrefix(v string) *SpotDatafeedSubscription {
  45860. s.Prefix = &v
  45861. return s
  45862. }
  45863. // SetState sets the State field's value.
  45864. func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription {
  45865. s.State = &v
  45866. return s
  45867. }
  45868. // Describes the launch specification for one or more Spot instances.
  45869. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetLaunchSpecification
  45870. type SpotFleetLaunchSpecification struct {
  45871. _ struct{} `type:"structure"`
  45872. // Deprecated.
  45873. AddressingType *string `locationName:"addressingType" type:"string"`
  45874. // One or more block device mapping entries.
  45875. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  45876. // Indicates whether the instances are optimized for EBS I/O. This optimization
  45877. // provides dedicated throughput to Amazon EBS and an optimized configuration
  45878. // stack to provide optimal EBS I/O performance. This optimization isn't available
  45879. // with all instance types. Additional usage charges apply when using an EBS
  45880. // Optimized instance.
  45881. //
  45882. // Default: false
  45883. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  45884. // The IAM instance profile.
  45885. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  45886. // The ID of the AMI.
  45887. ImageId *string `locationName:"imageId" type:"string"`
  45888. // The instance type. Note that T2 and HS1 instance types are not supported.
  45889. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  45890. // The ID of the kernel.
  45891. KernelId *string `locationName:"kernelId" type:"string"`
  45892. // The name of the key pair.
  45893. KeyName *string `locationName:"keyName" type:"string"`
  45894. // Enable or disable monitoring for the instances.
  45895. Monitoring *SpotFleetMonitoring `locationName:"monitoring" type:"structure"`
  45896. // One or more network interfaces. If you specify a network interface, you must
  45897. // specify subnet IDs and security group IDs using the network interface.
  45898. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  45899. // The placement information.
  45900. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  45901. // The ID of the RAM disk.
  45902. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  45903. // One or more security groups. When requesting instances in a VPC, you must
  45904. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  45905. // you can specify the names or the IDs of the security groups.
  45906. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  45907. // The bid price per unit hour for the specified instance type. If this value
  45908. // is not specified, the default is the Spot bid price specified for the fleet.
  45909. // To determine the bid price per unit hour, divide the Spot bid price by the
  45910. // value of WeightedCapacity.
  45911. SpotPrice *string `locationName:"spotPrice" type:"string"`
  45912. // The ID of the subnet in which to launch the instances. To specify multiple
  45913. // subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
  45914. SubnetId *string `locationName:"subnetId" type:"string"`
  45915. // The user data to make available to the instances. If you are using an AWS
  45916. // SDK or command line tool, Base64-encoding is performed for you, and you can
  45917. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  45918. UserData *string `locationName:"userData" type:"string"`
  45919. // The number of units provided by the specified instance type. These are the
  45920. // same units that you chose to set the target capacity in terms (instances
  45921. // or a performance characteristic such as vCPUs, memory, or I/O).
  45922. //
  45923. // If the target capacity divided by this value is not a whole number, we round
  45924. // the number of instances to the next whole number. If this value is not specified,
  45925. // the default is 1.
  45926. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  45927. }
  45928. // String returns the string representation
  45929. func (s SpotFleetLaunchSpecification) String() string {
  45930. return awsutil.Prettify(s)
  45931. }
  45932. // GoString returns the string representation
  45933. func (s SpotFleetLaunchSpecification) GoString() string {
  45934. return s.String()
  45935. }
  45936. // Validate inspects the fields of the type to determine if they are valid.
  45937. func (s *SpotFleetLaunchSpecification) Validate() error {
  45938. invalidParams := request.ErrInvalidParams{Context: "SpotFleetLaunchSpecification"}
  45939. if s.NetworkInterfaces != nil {
  45940. for i, v := range s.NetworkInterfaces {
  45941. if v == nil {
  45942. continue
  45943. }
  45944. if err := v.Validate(); err != nil {
  45945. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  45946. }
  45947. }
  45948. }
  45949. if invalidParams.Len() > 0 {
  45950. return invalidParams
  45951. }
  45952. return nil
  45953. }
  45954. // SetAddressingType sets the AddressingType field's value.
  45955. func (s *SpotFleetLaunchSpecification) SetAddressingType(v string) *SpotFleetLaunchSpecification {
  45956. s.AddressingType = &v
  45957. return s
  45958. }
  45959. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  45960. func (s *SpotFleetLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *SpotFleetLaunchSpecification {
  45961. s.BlockDeviceMappings = v
  45962. return s
  45963. }
  45964. // SetEbsOptimized sets the EbsOptimized field's value.
  45965. func (s *SpotFleetLaunchSpecification) SetEbsOptimized(v bool) *SpotFleetLaunchSpecification {
  45966. s.EbsOptimized = &v
  45967. return s
  45968. }
  45969. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  45970. func (s *SpotFleetLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *SpotFleetLaunchSpecification {
  45971. s.IamInstanceProfile = v
  45972. return s
  45973. }
  45974. // SetImageId sets the ImageId field's value.
  45975. func (s *SpotFleetLaunchSpecification) SetImageId(v string) *SpotFleetLaunchSpecification {
  45976. s.ImageId = &v
  45977. return s
  45978. }
  45979. // SetInstanceType sets the InstanceType field's value.
  45980. func (s *SpotFleetLaunchSpecification) SetInstanceType(v string) *SpotFleetLaunchSpecification {
  45981. s.InstanceType = &v
  45982. return s
  45983. }
  45984. // SetKernelId sets the KernelId field's value.
  45985. func (s *SpotFleetLaunchSpecification) SetKernelId(v string) *SpotFleetLaunchSpecification {
  45986. s.KernelId = &v
  45987. return s
  45988. }
  45989. // SetKeyName sets the KeyName field's value.
  45990. func (s *SpotFleetLaunchSpecification) SetKeyName(v string) *SpotFleetLaunchSpecification {
  45991. s.KeyName = &v
  45992. return s
  45993. }
  45994. // SetMonitoring sets the Monitoring field's value.
  45995. func (s *SpotFleetLaunchSpecification) SetMonitoring(v *SpotFleetMonitoring) *SpotFleetLaunchSpecification {
  45996. s.Monitoring = v
  45997. return s
  45998. }
  45999. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  46000. func (s *SpotFleetLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *SpotFleetLaunchSpecification {
  46001. s.NetworkInterfaces = v
  46002. return s
  46003. }
  46004. // SetPlacement sets the Placement field's value.
  46005. func (s *SpotFleetLaunchSpecification) SetPlacement(v *SpotPlacement) *SpotFleetLaunchSpecification {
  46006. s.Placement = v
  46007. return s
  46008. }
  46009. // SetRamdiskId sets the RamdiskId field's value.
  46010. func (s *SpotFleetLaunchSpecification) SetRamdiskId(v string) *SpotFleetLaunchSpecification {
  46011. s.RamdiskId = &v
  46012. return s
  46013. }
  46014. // SetSecurityGroups sets the SecurityGroups field's value.
  46015. func (s *SpotFleetLaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *SpotFleetLaunchSpecification {
  46016. s.SecurityGroups = v
  46017. return s
  46018. }
  46019. // SetSpotPrice sets the SpotPrice field's value.
  46020. func (s *SpotFleetLaunchSpecification) SetSpotPrice(v string) *SpotFleetLaunchSpecification {
  46021. s.SpotPrice = &v
  46022. return s
  46023. }
  46024. // SetSubnetId sets the SubnetId field's value.
  46025. func (s *SpotFleetLaunchSpecification) SetSubnetId(v string) *SpotFleetLaunchSpecification {
  46026. s.SubnetId = &v
  46027. return s
  46028. }
  46029. // SetUserData sets the UserData field's value.
  46030. func (s *SpotFleetLaunchSpecification) SetUserData(v string) *SpotFleetLaunchSpecification {
  46031. s.UserData = &v
  46032. return s
  46033. }
  46034. // SetWeightedCapacity sets the WeightedCapacity field's value.
  46035. func (s *SpotFleetLaunchSpecification) SetWeightedCapacity(v float64) *SpotFleetLaunchSpecification {
  46036. s.WeightedCapacity = &v
  46037. return s
  46038. }
  46039. // Describes whether monitoring is enabled.
  46040. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetMonitoring
  46041. type SpotFleetMonitoring struct {
  46042. _ struct{} `type:"structure"`
  46043. // Enables monitoring for the instance.
  46044. //
  46045. // Default: false
  46046. Enabled *bool `locationName:"enabled" type:"boolean"`
  46047. }
  46048. // String returns the string representation
  46049. func (s SpotFleetMonitoring) String() string {
  46050. return awsutil.Prettify(s)
  46051. }
  46052. // GoString returns the string representation
  46053. func (s SpotFleetMonitoring) GoString() string {
  46054. return s.String()
  46055. }
  46056. // SetEnabled sets the Enabled field's value.
  46057. func (s *SpotFleetMonitoring) SetEnabled(v bool) *SpotFleetMonitoring {
  46058. s.Enabled = &v
  46059. return s
  46060. }
  46061. // Describes a Spot fleet request.
  46062. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetRequestConfig
  46063. type SpotFleetRequestConfig struct {
  46064. _ struct{} `type:"structure"`
  46065. // The progress of the Spot fleet request. If there is an error, the status
  46066. // is error. After all bids are placed, the status is pending_fulfillment. If
  46067. // the size of the fleet is equal to or greater than its target capacity, the
  46068. // status is fulfilled. If the size of the fleet is decreased, the status is
  46069. // pending_termination while Spot instances are terminating.
  46070. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"ActivityStatus"`
  46071. // The creation date and time of the request.
  46072. //
  46073. // CreateTime is a required field
  46074. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  46075. // Information about the configuration of the Spot fleet request.
  46076. //
  46077. // SpotFleetRequestConfig is a required field
  46078. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  46079. // The ID of the Spot fleet request.
  46080. //
  46081. // SpotFleetRequestId is a required field
  46082. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  46083. // The state of the Spot fleet request.
  46084. //
  46085. // SpotFleetRequestState is a required field
  46086. SpotFleetRequestState *string `locationName:"spotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  46087. }
  46088. // String returns the string representation
  46089. func (s SpotFleetRequestConfig) String() string {
  46090. return awsutil.Prettify(s)
  46091. }
  46092. // GoString returns the string representation
  46093. func (s SpotFleetRequestConfig) GoString() string {
  46094. return s.String()
  46095. }
  46096. // SetActivityStatus sets the ActivityStatus field's value.
  46097. func (s *SpotFleetRequestConfig) SetActivityStatus(v string) *SpotFleetRequestConfig {
  46098. s.ActivityStatus = &v
  46099. return s
  46100. }
  46101. // SetCreateTime sets the CreateTime field's value.
  46102. func (s *SpotFleetRequestConfig) SetCreateTime(v time.Time) *SpotFleetRequestConfig {
  46103. s.CreateTime = &v
  46104. return s
  46105. }
  46106. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  46107. func (s *SpotFleetRequestConfig) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *SpotFleetRequestConfig {
  46108. s.SpotFleetRequestConfig = v
  46109. return s
  46110. }
  46111. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  46112. func (s *SpotFleetRequestConfig) SetSpotFleetRequestId(v string) *SpotFleetRequestConfig {
  46113. s.SpotFleetRequestId = &v
  46114. return s
  46115. }
  46116. // SetSpotFleetRequestState sets the SpotFleetRequestState field's value.
  46117. func (s *SpotFleetRequestConfig) SetSpotFleetRequestState(v string) *SpotFleetRequestConfig {
  46118. s.SpotFleetRequestState = &v
  46119. return s
  46120. }
  46121. // Describes the configuration of a Spot fleet request.
  46122. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetRequestConfigData
  46123. type SpotFleetRequestConfigData struct {
  46124. _ struct{} `type:"structure"`
  46125. // Indicates how to allocate the target capacity across the Spot pools specified
  46126. // by the Spot fleet request. The default is lowestPrice.
  46127. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"`
  46128. // A unique, case-sensitive identifier you provide to ensure idempotency of
  46129. // your listings. This helps avoid duplicate listings. For more information,
  46130. // see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  46131. ClientToken *string `locationName:"clientToken" type:"string"`
  46132. // Indicates whether running Spot instances should be terminated if the target
  46133. // capacity of the Spot fleet request is decreased below the current size of
  46134. // the Spot fleet.
  46135. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  46136. // The number of units fulfilled by this request compared to the set target
  46137. // capacity.
  46138. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  46139. // Grants the Spot fleet permission to terminate Spot instances on your behalf
  46140. // when you cancel its Spot fleet request using CancelSpotFleetRequests or when
  46141. // the Spot fleet request expires, if you set terminateInstancesWithExpiration.
  46142. //
  46143. // IamFleetRole is a required field
  46144. IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"`
  46145. // Information about the launch specifications for the Spot fleet request.
  46146. //
  46147. // LaunchSpecifications is a required field
  46148. LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" min:"1" type:"list" required:"true"`
  46149. // Indicates whether Spot fleet should replace unhealthy instances.
  46150. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
  46151. // The bid price per unit hour.
  46152. //
  46153. // SpotPrice is a required field
  46154. SpotPrice *string `locationName:"spotPrice" type:"string" required:"true"`
  46155. // The number of units to request. You can choose to set the target capacity
  46156. // in terms of instances or a performance characteristic that is important to
  46157. // your application workload, such as vCPUs, memory, or I/O.
  46158. //
  46159. // TargetCapacity is a required field
  46160. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"`
  46161. // Indicates whether running Spot instances should be terminated when the Spot
  46162. // fleet request expires.
  46163. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  46164. // The type of request. Indicates whether the fleet will only request the target
  46165. // capacity or also attempt to maintain it. When you request a certain target
  46166. // capacity, the fleet will only place the required bids. It will not attempt
  46167. // to replenish Spot instances if capacity is diminished, nor will it submit
  46168. // bids in alternative Spot pools if capacity is not available. When you want
  46169. // to maintain a certain target capacity, fleet will place the required bids
  46170. // to meet this target capacity. It will also automatically replenish any interrupted
  46171. // instances. Default: maintain.
  46172. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  46173. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  46174. // The default is to start fulfilling the request immediately.
  46175. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  46176. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  46177. // At this point, no new Spot instance requests are placed or enabled to fulfill
  46178. // the request.
  46179. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  46180. }
  46181. // String returns the string representation
  46182. func (s SpotFleetRequestConfigData) String() string {
  46183. return awsutil.Prettify(s)
  46184. }
  46185. // GoString returns the string representation
  46186. func (s SpotFleetRequestConfigData) GoString() string {
  46187. return s.String()
  46188. }
  46189. // Validate inspects the fields of the type to determine if they are valid.
  46190. func (s *SpotFleetRequestConfigData) Validate() error {
  46191. invalidParams := request.ErrInvalidParams{Context: "SpotFleetRequestConfigData"}
  46192. if s.IamFleetRole == nil {
  46193. invalidParams.Add(request.NewErrParamRequired("IamFleetRole"))
  46194. }
  46195. if s.LaunchSpecifications == nil {
  46196. invalidParams.Add(request.NewErrParamRequired("LaunchSpecifications"))
  46197. }
  46198. if s.LaunchSpecifications != nil && len(s.LaunchSpecifications) < 1 {
  46199. invalidParams.Add(request.NewErrParamMinLen("LaunchSpecifications", 1))
  46200. }
  46201. if s.SpotPrice == nil {
  46202. invalidParams.Add(request.NewErrParamRequired("SpotPrice"))
  46203. }
  46204. if s.TargetCapacity == nil {
  46205. invalidParams.Add(request.NewErrParamRequired("TargetCapacity"))
  46206. }
  46207. if s.LaunchSpecifications != nil {
  46208. for i, v := range s.LaunchSpecifications {
  46209. if v == nil {
  46210. continue
  46211. }
  46212. if err := v.Validate(); err != nil {
  46213. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchSpecifications", i), err.(request.ErrInvalidParams))
  46214. }
  46215. }
  46216. }
  46217. if invalidParams.Len() > 0 {
  46218. return invalidParams
  46219. }
  46220. return nil
  46221. }
  46222. // SetAllocationStrategy sets the AllocationStrategy field's value.
  46223. func (s *SpotFleetRequestConfigData) SetAllocationStrategy(v string) *SpotFleetRequestConfigData {
  46224. s.AllocationStrategy = &v
  46225. return s
  46226. }
  46227. // SetClientToken sets the ClientToken field's value.
  46228. func (s *SpotFleetRequestConfigData) SetClientToken(v string) *SpotFleetRequestConfigData {
  46229. s.ClientToken = &v
  46230. return s
  46231. }
  46232. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  46233. func (s *SpotFleetRequestConfigData) SetExcessCapacityTerminationPolicy(v string) *SpotFleetRequestConfigData {
  46234. s.ExcessCapacityTerminationPolicy = &v
  46235. return s
  46236. }
  46237. // SetFulfilledCapacity sets the FulfilledCapacity field's value.
  46238. func (s *SpotFleetRequestConfigData) SetFulfilledCapacity(v float64) *SpotFleetRequestConfigData {
  46239. s.FulfilledCapacity = &v
  46240. return s
  46241. }
  46242. // SetIamFleetRole sets the IamFleetRole field's value.
  46243. func (s *SpotFleetRequestConfigData) SetIamFleetRole(v string) *SpotFleetRequestConfigData {
  46244. s.IamFleetRole = &v
  46245. return s
  46246. }
  46247. // SetLaunchSpecifications sets the LaunchSpecifications field's value.
  46248. func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunchSpecification) *SpotFleetRequestConfigData {
  46249. s.LaunchSpecifications = v
  46250. return s
  46251. }
  46252. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  46253. func (s *SpotFleetRequestConfigData) SetReplaceUnhealthyInstances(v bool) *SpotFleetRequestConfigData {
  46254. s.ReplaceUnhealthyInstances = &v
  46255. return s
  46256. }
  46257. // SetSpotPrice sets the SpotPrice field's value.
  46258. func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData {
  46259. s.SpotPrice = &v
  46260. return s
  46261. }
  46262. // SetTargetCapacity sets the TargetCapacity field's value.
  46263. func (s *SpotFleetRequestConfigData) SetTargetCapacity(v int64) *SpotFleetRequestConfigData {
  46264. s.TargetCapacity = &v
  46265. return s
  46266. }
  46267. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  46268. func (s *SpotFleetRequestConfigData) SetTerminateInstancesWithExpiration(v bool) *SpotFleetRequestConfigData {
  46269. s.TerminateInstancesWithExpiration = &v
  46270. return s
  46271. }
  46272. // SetType sets the Type field's value.
  46273. func (s *SpotFleetRequestConfigData) SetType(v string) *SpotFleetRequestConfigData {
  46274. s.Type = &v
  46275. return s
  46276. }
  46277. // SetValidFrom sets the ValidFrom field's value.
  46278. func (s *SpotFleetRequestConfigData) SetValidFrom(v time.Time) *SpotFleetRequestConfigData {
  46279. s.ValidFrom = &v
  46280. return s
  46281. }
  46282. // SetValidUntil sets the ValidUntil field's value.
  46283. func (s *SpotFleetRequestConfigData) SetValidUntil(v time.Time) *SpotFleetRequestConfigData {
  46284. s.ValidUntil = &v
  46285. return s
  46286. }
  46287. // Describes a Spot instance request.
  46288. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceRequest
  46289. type SpotInstanceRequest struct {
  46290. _ struct{} `type:"structure"`
  46291. // If you specified a duration and your Spot instance request was fulfilled,
  46292. // this is the fixed hourly price in effect for the Spot instance while it runs.
  46293. ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"`
  46294. // The Availability Zone group. If you specify the same Availability Zone group
  46295. // for all Spot instance requests, all Spot instances are launched in the same
  46296. // Availability Zone.
  46297. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  46298. // The duration for the Spot instance, in minutes.
  46299. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  46300. // The date and time when the Spot instance request was created, in UTC format
  46301. // (for example, YYYY-MM-DDTHH:MM:SSZ).
  46302. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  46303. // The fault codes for the Spot instance request, if any.
  46304. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  46305. // The instance ID, if an instance has been launched to fulfill the Spot instance
  46306. // request.
  46307. InstanceId *string `locationName:"instanceId" type:"string"`
  46308. // The instance launch group. Launch groups are Spot instances that launch together
  46309. // and terminate together.
  46310. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  46311. // Additional information for launching instances.
  46312. LaunchSpecification *LaunchSpecification `locationName:"launchSpecification" type:"structure"`
  46313. // The Availability Zone in which the bid is launched.
  46314. LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"`
  46315. // The product description associated with the Spot instance.
  46316. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  46317. // The ID of the Spot instance request.
  46318. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  46319. // The maximum hourly price (bid) for the Spot instance launched to fulfill
  46320. // the request.
  46321. SpotPrice *string `locationName:"spotPrice" type:"string"`
  46322. // The state of the Spot instance request. Spot bid status information can help
  46323. // you track your Spot instance requests. For more information, see Spot Bid
  46324. // Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  46325. // in the Amazon Elastic Compute Cloud User Guide.
  46326. State *string `locationName:"state" type:"string" enum:"SpotInstanceState"`
  46327. // The status code and status message describing the Spot instance request.
  46328. Status *SpotInstanceStatus `locationName:"status" type:"structure"`
  46329. // Any tags assigned to the resource.
  46330. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  46331. // The Spot instance request type.
  46332. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  46333. // The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  46334. // The request becomes active at this date and time.
  46335. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  46336. // The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  46337. // If this is a one-time request, it remains active until all instances launch,
  46338. // the request is canceled, or this date is reached. If the request is persistent,
  46339. // it remains active until it is canceled or this date is reached.
  46340. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  46341. }
  46342. // String returns the string representation
  46343. func (s SpotInstanceRequest) String() string {
  46344. return awsutil.Prettify(s)
  46345. }
  46346. // GoString returns the string representation
  46347. func (s SpotInstanceRequest) GoString() string {
  46348. return s.String()
  46349. }
  46350. // SetActualBlockHourlyPrice sets the ActualBlockHourlyPrice field's value.
  46351. func (s *SpotInstanceRequest) SetActualBlockHourlyPrice(v string) *SpotInstanceRequest {
  46352. s.ActualBlockHourlyPrice = &v
  46353. return s
  46354. }
  46355. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  46356. func (s *SpotInstanceRequest) SetAvailabilityZoneGroup(v string) *SpotInstanceRequest {
  46357. s.AvailabilityZoneGroup = &v
  46358. return s
  46359. }
  46360. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  46361. func (s *SpotInstanceRequest) SetBlockDurationMinutes(v int64) *SpotInstanceRequest {
  46362. s.BlockDurationMinutes = &v
  46363. return s
  46364. }
  46365. // SetCreateTime sets the CreateTime field's value.
  46366. func (s *SpotInstanceRequest) SetCreateTime(v time.Time) *SpotInstanceRequest {
  46367. s.CreateTime = &v
  46368. return s
  46369. }
  46370. // SetFault sets the Fault field's value.
  46371. func (s *SpotInstanceRequest) SetFault(v *SpotInstanceStateFault) *SpotInstanceRequest {
  46372. s.Fault = v
  46373. return s
  46374. }
  46375. // SetInstanceId sets the InstanceId field's value.
  46376. func (s *SpotInstanceRequest) SetInstanceId(v string) *SpotInstanceRequest {
  46377. s.InstanceId = &v
  46378. return s
  46379. }
  46380. // SetLaunchGroup sets the LaunchGroup field's value.
  46381. func (s *SpotInstanceRequest) SetLaunchGroup(v string) *SpotInstanceRequest {
  46382. s.LaunchGroup = &v
  46383. return s
  46384. }
  46385. // SetLaunchSpecification sets the LaunchSpecification field's value.
  46386. func (s *SpotInstanceRequest) SetLaunchSpecification(v *LaunchSpecification) *SpotInstanceRequest {
  46387. s.LaunchSpecification = v
  46388. return s
  46389. }
  46390. // SetLaunchedAvailabilityZone sets the LaunchedAvailabilityZone field's value.
  46391. func (s *SpotInstanceRequest) SetLaunchedAvailabilityZone(v string) *SpotInstanceRequest {
  46392. s.LaunchedAvailabilityZone = &v
  46393. return s
  46394. }
  46395. // SetProductDescription sets the ProductDescription field's value.
  46396. func (s *SpotInstanceRequest) SetProductDescription(v string) *SpotInstanceRequest {
  46397. s.ProductDescription = &v
  46398. return s
  46399. }
  46400. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  46401. func (s *SpotInstanceRequest) SetSpotInstanceRequestId(v string) *SpotInstanceRequest {
  46402. s.SpotInstanceRequestId = &v
  46403. return s
  46404. }
  46405. // SetSpotPrice sets the SpotPrice field's value.
  46406. func (s *SpotInstanceRequest) SetSpotPrice(v string) *SpotInstanceRequest {
  46407. s.SpotPrice = &v
  46408. return s
  46409. }
  46410. // SetState sets the State field's value.
  46411. func (s *SpotInstanceRequest) SetState(v string) *SpotInstanceRequest {
  46412. s.State = &v
  46413. return s
  46414. }
  46415. // SetStatus sets the Status field's value.
  46416. func (s *SpotInstanceRequest) SetStatus(v *SpotInstanceStatus) *SpotInstanceRequest {
  46417. s.Status = v
  46418. return s
  46419. }
  46420. // SetTags sets the Tags field's value.
  46421. func (s *SpotInstanceRequest) SetTags(v []*Tag) *SpotInstanceRequest {
  46422. s.Tags = v
  46423. return s
  46424. }
  46425. // SetType sets the Type field's value.
  46426. func (s *SpotInstanceRequest) SetType(v string) *SpotInstanceRequest {
  46427. s.Type = &v
  46428. return s
  46429. }
  46430. // SetValidFrom sets the ValidFrom field's value.
  46431. func (s *SpotInstanceRequest) SetValidFrom(v time.Time) *SpotInstanceRequest {
  46432. s.ValidFrom = &v
  46433. return s
  46434. }
  46435. // SetValidUntil sets the ValidUntil field's value.
  46436. func (s *SpotInstanceRequest) SetValidUntil(v time.Time) *SpotInstanceRequest {
  46437. s.ValidUntil = &v
  46438. return s
  46439. }
  46440. // Describes a Spot instance state change.
  46441. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceStateFault
  46442. type SpotInstanceStateFault struct {
  46443. _ struct{} `type:"structure"`
  46444. // The reason code for the Spot instance state change.
  46445. Code *string `locationName:"code" type:"string"`
  46446. // The message for the Spot instance state change.
  46447. Message *string `locationName:"message" type:"string"`
  46448. }
  46449. // String returns the string representation
  46450. func (s SpotInstanceStateFault) String() string {
  46451. return awsutil.Prettify(s)
  46452. }
  46453. // GoString returns the string representation
  46454. func (s SpotInstanceStateFault) GoString() string {
  46455. return s.String()
  46456. }
  46457. // SetCode sets the Code field's value.
  46458. func (s *SpotInstanceStateFault) SetCode(v string) *SpotInstanceStateFault {
  46459. s.Code = &v
  46460. return s
  46461. }
  46462. // SetMessage sets the Message field's value.
  46463. func (s *SpotInstanceStateFault) SetMessage(v string) *SpotInstanceStateFault {
  46464. s.Message = &v
  46465. return s
  46466. }
  46467. // Describes the status of a Spot instance request.
  46468. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceStatus
  46469. type SpotInstanceStatus struct {
  46470. _ struct{} `type:"structure"`
  46471. // 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)
  46472. // in the Amazon Elastic Compute Cloud User Guide.
  46473. Code *string `locationName:"code" type:"string"`
  46474. // The description for the status code.
  46475. Message *string `locationName:"message" type:"string"`
  46476. // The date and time of the most recent status update, in UTC format (for example,
  46477. // YYYY-MM-DDTHH:MM:SSZ).
  46478. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  46479. }
  46480. // String returns the string representation
  46481. func (s SpotInstanceStatus) String() string {
  46482. return awsutil.Prettify(s)
  46483. }
  46484. // GoString returns the string representation
  46485. func (s SpotInstanceStatus) GoString() string {
  46486. return s.String()
  46487. }
  46488. // SetCode sets the Code field's value.
  46489. func (s *SpotInstanceStatus) SetCode(v string) *SpotInstanceStatus {
  46490. s.Code = &v
  46491. return s
  46492. }
  46493. // SetMessage sets the Message field's value.
  46494. func (s *SpotInstanceStatus) SetMessage(v string) *SpotInstanceStatus {
  46495. s.Message = &v
  46496. return s
  46497. }
  46498. // SetUpdateTime sets the UpdateTime field's value.
  46499. func (s *SpotInstanceStatus) SetUpdateTime(v time.Time) *SpotInstanceStatus {
  46500. s.UpdateTime = &v
  46501. return s
  46502. }
  46503. // Describes Spot instance placement.
  46504. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPlacement
  46505. type SpotPlacement struct {
  46506. _ struct{} `type:"structure"`
  46507. // The Availability Zone.
  46508. //
  46509. // [Spot fleet only] To specify multiple Availability Zones, separate them using
  46510. // commas; for example, "us-west-2a, us-west-2b".
  46511. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  46512. // The name of the placement group (for cluster instances).
  46513. GroupName *string `locationName:"groupName" type:"string"`
  46514. // The tenancy of the instance (if the instance is running in a VPC). An instance
  46515. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  46516. // is not supported for Spot instances.
  46517. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  46518. }
  46519. // String returns the string representation
  46520. func (s SpotPlacement) String() string {
  46521. return awsutil.Prettify(s)
  46522. }
  46523. // GoString returns the string representation
  46524. func (s SpotPlacement) GoString() string {
  46525. return s.String()
  46526. }
  46527. // SetAvailabilityZone sets the AvailabilityZone field's value.
  46528. func (s *SpotPlacement) SetAvailabilityZone(v string) *SpotPlacement {
  46529. s.AvailabilityZone = &v
  46530. return s
  46531. }
  46532. // SetGroupName sets the GroupName field's value.
  46533. func (s *SpotPlacement) SetGroupName(v string) *SpotPlacement {
  46534. s.GroupName = &v
  46535. return s
  46536. }
  46537. // SetTenancy sets the Tenancy field's value.
  46538. func (s *SpotPlacement) SetTenancy(v string) *SpotPlacement {
  46539. s.Tenancy = &v
  46540. return s
  46541. }
  46542. // Describes the maximum hourly price (bid) for any Spot instance launched to
  46543. // fulfill the request.
  46544. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPrice
  46545. type SpotPrice struct {
  46546. _ struct{} `type:"structure"`
  46547. // The Availability Zone.
  46548. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  46549. // The instance type. Note that T2 and HS1 instance types are not supported.
  46550. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  46551. // A general description of the AMI.
  46552. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  46553. // The maximum price (bid) that you are willing to pay for a Spot instance.
  46554. SpotPrice *string `locationName:"spotPrice" type:"string"`
  46555. // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  46556. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  46557. }
  46558. // String returns the string representation
  46559. func (s SpotPrice) String() string {
  46560. return awsutil.Prettify(s)
  46561. }
  46562. // GoString returns the string representation
  46563. func (s SpotPrice) GoString() string {
  46564. return s.String()
  46565. }
  46566. // SetAvailabilityZone sets the AvailabilityZone field's value.
  46567. func (s *SpotPrice) SetAvailabilityZone(v string) *SpotPrice {
  46568. s.AvailabilityZone = &v
  46569. return s
  46570. }
  46571. // SetInstanceType sets the InstanceType field's value.
  46572. func (s *SpotPrice) SetInstanceType(v string) *SpotPrice {
  46573. s.InstanceType = &v
  46574. return s
  46575. }
  46576. // SetProductDescription sets the ProductDescription field's value.
  46577. func (s *SpotPrice) SetProductDescription(v string) *SpotPrice {
  46578. s.ProductDescription = &v
  46579. return s
  46580. }
  46581. // SetSpotPrice sets the SpotPrice field's value.
  46582. func (s *SpotPrice) SetSpotPrice(v string) *SpotPrice {
  46583. s.SpotPrice = &v
  46584. return s
  46585. }
  46586. // SetTimestamp sets the Timestamp field's value.
  46587. func (s *SpotPrice) SetTimestamp(v time.Time) *SpotPrice {
  46588. s.Timestamp = &v
  46589. return s
  46590. }
  46591. // Describes a stale rule in a security group.
  46592. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StaleIpPermission
  46593. type StaleIpPermission struct {
  46594. _ struct{} `type:"structure"`
  46595. // The start of the port range for the TCP and UDP protocols, or an ICMP type
  46596. // number. A value of -1 indicates all ICMP types.
  46597. FromPort *int64 `locationName:"fromPort" type:"integer"`
  46598. // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers)
  46599. // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
  46600. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  46601. // One or more IP ranges. Not applicable for stale security group rules.
  46602. IpRanges []*string `locationName:"ipRanges" locationNameList:"item" type:"list"`
  46603. // One or more prefix list IDs for an AWS service. Not applicable for stale
  46604. // security group rules.
  46605. PrefixListIds []*string `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  46606. // The end of the port range for the TCP and UDP protocols, or an ICMP type
  46607. // number. A value of -1 indicates all ICMP types.
  46608. ToPort *int64 `locationName:"toPort" type:"integer"`
  46609. // One or more security group pairs. Returns the ID of the referenced security
  46610. // group and VPC, and the ID and status of the VPC peering connection.
  46611. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  46612. }
  46613. // String returns the string representation
  46614. func (s StaleIpPermission) String() string {
  46615. return awsutil.Prettify(s)
  46616. }
  46617. // GoString returns the string representation
  46618. func (s StaleIpPermission) GoString() string {
  46619. return s.String()
  46620. }
  46621. // SetFromPort sets the FromPort field's value.
  46622. func (s *StaleIpPermission) SetFromPort(v int64) *StaleIpPermission {
  46623. s.FromPort = &v
  46624. return s
  46625. }
  46626. // SetIpProtocol sets the IpProtocol field's value.
  46627. func (s *StaleIpPermission) SetIpProtocol(v string) *StaleIpPermission {
  46628. s.IpProtocol = &v
  46629. return s
  46630. }
  46631. // SetIpRanges sets the IpRanges field's value.
  46632. func (s *StaleIpPermission) SetIpRanges(v []*string) *StaleIpPermission {
  46633. s.IpRanges = v
  46634. return s
  46635. }
  46636. // SetPrefixListIds sets the PrefixListIds field's value.
  46637. func (s *StaleIpPermission) SetPrefixListIds(v []*string) *StaleIpPermission {
  46638. s.PrefixListIds = v
  46639. return s
  46640. }
  46641. // SetToPort sets the ToPort field's value.
  46642. func (s *StaleIpPermission) SetToPort(v int64) *StaleIpPermission {
  46643. s.ToPort = &v
  46644. return s
  46645. }
  46646. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  46647. func (s *StaleIpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *StaleIpPermission {
  46648. s.UserIdGroupPairs = v
  46649. return s
  46650. }
  46651. // Describes a stale security group (a security group that contains stale rules).
  46652. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StaleSecurityGroup
  46653. type StaleSecurityGroup struct {
  46654. _ struct{} `type:"structure"`
  46655. // The description of the security group.
  46656. Description *string `locationName:"description" type:"string"`
  46657. // The ID of the security group.
  46658. //
  46659. // GroupId is a required field
  46660. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  46661. // The name of the security group.
  46662. GroupName *string `locationName:"groupName" type:"string"`
  46663. // Information about the stale inbound rules in the security group.
  46664. StaleIpPermissions []*StaleIpPermission `locationName:"staleIpPermissions" locationNameList:"item" type:"list"`
  46665. // Information about the stale outbound rules in the security group.
  46666. StaleIpPermissionsEgress []*StaleIpPermission `locationName:"staleIpPermissionsEgress" locationNameList:"item" type:"list"`
  46667. // The ID of the VPC for the security group.
  46668. VpcId *string `locationName:"vpcId" type:"string"`
  46669. }
  46670. // String returns the string representation
  46671. func (s StaleSecurityGroup) String() string {
  46672. return awsutil.Prettify(s)
  46673. }
  46674. // GoString returns the string representation
  46675. func (s StaleSecurityGroup) GoString() string {
  46676. return s.String()
  46677. }
  46678. // SetDescription sets the Description field's value.
  46679. func (s *StaleSecurityGroup) SetDescription(v string) *StaleSecurityGroup {
  46680. s.Description = &v
  46681. return s
  46682. }
  46683. // SetGroupId sets the GroupId field's value.
  46684. func (s *StaleSecurityGroup) SetGroupId(v string) *StaleSecurityGroup {
  46685. s.GroupId = &v
  46686. return s
  46687. }
  46688. // SetGroupName sets the GroupName field's value.
  46689. func (s *StaleSecurityGroup) SetGroupName(v string) *StaleSecurityGroup {
  46690. s.GroupName = &v
  46691. return s
  46692. }
  46693. // SetStaleIpPermissions sets the StaleIpPermissions field's value.
  46694. func (s *StaleSecurityGroup) SetStaleIpPermissions(v []*StaleIpPermission) *StaleSecurityGroup {
  46695. s.StaleIpPermissions = v
  46696. return s
  46697. }
  46698. // SetStaleIpPermissionsEgress sets the StaleIpPermissionsEgress field's value.
  46699. func (s *StaleSecurityGroup) SetStaleIpPermissionsEgress(v []*StaleIpPermission) *StaleSecurityGroup {
  46700. s.StaleIpPermissionsEgress = v
  46701. return s
  46702. }
  46703. // SetVpcId sets the VpcId field's value.
  46704. func (s *StaleSecurityGroup) SetVpcId(v string) *StaleSecurityGroup {
  46705. s.VpcId = &v
  46706. return s
  46707. }
  46708. // Contains the parameters for StartInstances.
  46709. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstancesRequest
  46710. type StartInstancesInput struct {
  46711. _ struct{} `type:"structure"`
  46712. // Reserved.
  46713. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  46714. // Checks whether you have the required permissions for the action, without
  46715. // actually making the request, and provides an error response. If you have
  46716. // the required permissions, the error response is DryRunOperation. Otherwise,
  46717. // it is UnauthorizedOperation.
  46718. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46719. // One or more instance IDs.
  46720. //
  46721. // InstanceIds is a required field
  46722. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  46723. }
  46724. // String returns the string representation
  46725. func (s StartInstancesInput) String() string {
  46726. return awsutil.Prettify(s)
  46727. }
  46728. // GoString returns the string representation
  46729. func (s StartInstancesInput) GoString() string {
  46730. return s.String()
  46731. }
  46732. // Validate inspects the fields of the type to determine if they are valid.
  46733. func (s *StartInstancesInput) Validate() error {
  46734. invalidParams := request.ErrInvalidParams{Context: "StartInstancesInput"}
  46735. if s.InstanceIds == nil {
  46736. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  46737. }
  46738. if invalidParams.Len() > 0 {
  46739. return invalidParams
  46740. }
  46741. return nil
  46742. }
  46743. // SetAdditionalInfo sets the AdditionalInfo field's value.
  46744. func (s *StartInstancesInput) SetAdditionalInfo(v string) *StartInstancesInput {
  46745. s.AdditionalInfo = &v
  46746. return s
  46747. }
  46748. // SetDryRun sets the DryRun field's value.
  46749. func (s *StartInstancesInput) SetDryRun(v bool) *StartInstancesInput {
  46750. s.DryRun = &v
  46751. return s
  46752. }
  46753. // SetInstanceIds sets the InstanceIds field's value.
  46754. func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput {
  46755. s.InstanceIds = v
  46756. return s
  46757. }
  46758. // Contains the output of StartInstances.
  46759. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstancesResult
  46760. type StartInstancesOutput struct {
  46761. _ struct{} `type:"structure"`
  46762. // Information about one or more started instances.
  46763. StartingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  46764. }
  46765. // String returns the string representation
  46766. func (s StartInstancesOutput) String() string {
  46767. return awsutil.Prettify(s)
  46768. }
  46769. // GoString returns the string representation
  46770. func (s StartInstancesOutput) GoString() string {
  46771. return s.String()
  46772. }
  46773. // SetStartingInstances sets the StartingInstances field's value.
  46774. func (s *StartInstancesOutput) SetStartingInstances(v []*InstanceStateChange) *StartInstancesOutput {
  46775. s.StartingInstances = v
  46776. return s
  46777. }
  46778. // Describes a state change.
  46779. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StateReason
  46780. type StateReason struct {
  46781. _ struct{} `type:"structure"`
  46782. // The reason code for the state change.
  46783. Code *string `locationName:"code" type:"string"`
  46784. // The message for the state change.
  46785. //
  46786. // * Server.InsufficientInstanceCapacity: There was insufficient instance
  46787. // capacity to satisfy the launch request.
  46788. //
  46789. // * Server.InternalError: An internal error occurred during instance launch,
  46790. // resulting in termination.
  46791. //
  46792. // * Server.ScheduledStop: The instance was stopped due to a scheduled retirement.
  46793. //
  46794. // * Server.SpotInstanceTermination: A Spot instance was terminated due to
  46795. // an increase in the market price.
  46796. //
  46797. // * Client.InternalError: A client error caused the instance to terminate
  46798. // on launch.
  46799. //
  46800. // * Client.InstanceInitiatedShutdown: The instance was shut down using the
  46801. // shutdown -h command from the instance.
  46802. //
  46803. // * Client.UserInitiatedShutdown: The instance was shut down using the Amazon
  46804. // EC2 API.
  46805. //
  46806. // * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or
  46807. // total storage was exceeded. Decrease usage or request an increase in your
  46808. // limits.
  46809. //
  46810. // * Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
  46811. Message *string `locationName:"message" type:"string"`
  46812. }
  46813. // String returns the string representation
  46814. func (s StateReason) String() string {
  46815. return awsutil.Prettify(s)
  46816. }
  46817. // GoString returns the string representation
  46818. func (s StateReason) GoString() string {
  46819. return s.String()
  46820. }
  46821. // SetCode sets the Code field's value.
  46822. func (s *StateReason) SetCode(v string) *StateReason {
  46823. s.Code = &v
  46824. return s
  46825. }
  46826. // SetMessage sets the Message field's value.
  46827. func (s *StateReason) SetMessage(v string) *StateReason {
  46828. s.Message = &v
  46829. return s
  46830. }
  46831. // Contains the parameters for StopInstances.
  46832. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstancesRequest
  46833. type StopInstancesInput struct {
  46834. _ struct{} `type:"structure"`
  46835. // Checks whether you have the required permissions for the action, without
  46836. // actually making the request, and provides an error response. If you have
  46837. // the required permissions, the error response is DryRunOperation. Otherwise,
  46838. // it is UnauthorizedOperation.
  46839. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46840. // Forces the instances to stop. The instances do not have an opportunity to
  46841. // flush file system caches or file system metadata. If you use this option,
  46842. // you must perform file system check and repair procedures. This option is
  46843. // not recommended for Windows instances.
  46844. //
  46845. // Default: false
  46846. Force *bool `locationName:"force" type:"boolean"`
  46847. // One or more instance IDs.
  46848. //
  46849. // InstanceIds is a required field
  46850. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  46851. }
  46852. // String returns the string representation
  46853. func (s StopInstancesInput) String() string {
  46854. return awsutil.Prettify(s)
  46855. }
  46856. // GoString returns the string representation
  46857. func (s StopInstancesInput) GoString() string {
  46858. return s.String()
  46859. }
  46860. // Validate inspects the fields of the type to determine if they are valid.
  46861. func (s *StopInstancesInput) Validate() error {
  46862. invalidParams := request.ErrInvalidParams{Context: "StopInstancesInput"}
  46863. if s.InstanceIds == nil {
  46864. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  46865. }
  46866. if invalidParams.Len() > 0 {
  46867. return invalidParams
  46868. }
  46869. return nil
  46870. }
  46871. // SetDryRun sets the DryRun field's value.
  46872. func (s *StopInstancesInput) SetDryRun(v bool) *StopInstancesInput {
  46873. s.DryRun = &v
  46874. return s
  46875. }
  46876. // SetForce sets the Force field's value.
  46877. func (s *StopInstancesInput) SetForce(v bool) *StopInstancesInput {
  46878. s.Force = &v
  46879. return s
  46880. }
  46881. // SetInstanceIds sets the InstanceIds field's value.
  46882. func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput {
  46883. s.InstanceIds = v
  46884. return s
  46885. }
  46886. // Contains the output of StopInstances.
  46887. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstancesResult
  46888. type StopInstancesOutput struct {
  46889. _ struct{} `type:"structure"`
  46890. // Information about one or more stopped instances.
  46891. StoppingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  46892. }
  46893. // String returns the string representation
  46894. func (s StopInstancesOutput) String() string {
  46895. return awsutil.Prettify(s)
  46896. }
  46897. // GoString returns the string representation
  46898. func (s StopInstancesOutput) GoString() string {
  46899. return s.String()
  46900. }
  46901. // SetStoppingInstances sets the StoppingInstances field's value.
  46902. func (s *StopInstancesOutput) SetStoppingInstances(v []*InstanceStateChange) *StopInstancesOutput {
  46903. s.StoppingInstances = v
  46904. return s
  46905. }
  46906. // Describes the storage location for an instance store-backed AMI.
  46907. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Storage
  46908. type Storage struct {
  46909. _ struct{} `type:"structure"`
  46910. // An Amazon S3 storage location.
  46911. S3 *S3Storage `type:"structure"`
  46912. }
  46913. // String returns the string representation
  46914. func (s Storage) String() string {
  46915. return awsutil.Prettify(s)
  46916. }
  46917. // GoString returns the string representation
  46918. func (s Storage) GoString() string {
  46919. return s.String()
  46920. }
  46921. // SetS3 sets the S3 field's value.
  46922. func (s *Storage) SetS3(v *S3Storage) *Storage {
  46923. s.S3 = v
  46924. return s
  46925. }
  46926. // Describes a storage location in Amazon S3.
  46927. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StorageLocation
  46928. type StorageLocation struct {
  46929. _ struct{} `type:"structure"`
  46930. // The name of the S3 bucket.
  46931. Bucket *string `type:"string"`
  46932. // The key.
  46933. Key *string `type:"string"`
  46934. }
  46935. // String returns the string representation
  46936. func (s StorageLocation) String() string {
  46937. return awsutil.Prettify(s)
  46938. }
  46939. // GoString returns the string representation
  46940. func (s StorageLocation) GoString() string {
  46941. return s.String()
  46942. }
  46943. // SetBucket sets the Bucket field's value.
  46944. func (s *StorageLocation) SetBucket(v string) *StorageLocation {
  46945. s.Bucket = &v
  46946. return s
  46947. }
  46948. // SetKey sets the Key field's value.
  46949. func (s *StorageLocation) SetKey(v string) *StorageLocation {
  46950. s.Key = &v
  46951. return s
  46952. }
  46953. // Describes a subnet.
  46954. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Subnet
  46955. type Subnet struct {
  46956. _ struct{} `type:"structure"`
  46957. // Indicates whether a network interface created in this subnet (including a
  46958. // network interface created by RunInstances) receives an IPv6 address.
  46959. AssignIpv6AddressOnCreation *bool `locationName:"assignIpv6AddressOnCreation" type:"boolean"`
  46960. // The Availability Zone of the subnet.
  46961. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  46962. // The number of unused private IPv4 addresses in the subnet. Note that the
  46963. // IPv4 addresses for any stopped instances are considered unavailable.
  46964. AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"`
  46965. // The IPv4 CIDR block assigned to the subnet.
  46966. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  46967. // Indicates whether this is the default subnet for the Availability Zone.
  46968. DefaultForAz *bool `locationName:"defaultForAz" type:"boolean"`
  46969. // Information about the IPv6 CIDR blocks associated with the subnet.
  46970. Ipv6CidrBlockAssociationSet []*SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  46971. // Indicates whether instances launched in this subnet receive a public IPv4
  46972. // address.
  46973. MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"`
  46974. // The current state of the subnet.
  46975. State *string `locationName:"state" type:"string" enum:"SubnetState"`
  46976. // The ID of the subnet.
  46977. SubnetId *string `locationName:"subnetId" type:"string"`
  46978. // Any tags assigned to the subnet.
  46979. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  46980. // The ID of the VPC the subnet is in.
  46981. VpcId *string `locationName:"vpcId" type:"string"`
  46982. }
  46983. // String returns the string representation
  46984. func (s Subnet) String() string {
  46985. return awsutil.Prettify(s)
  46986. }
  46987. // GoString returns the string representation
  46988. func (s Subnet) GoString() string {
  46989. return s.String()
  46990. }
  46991. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  46992. func (s *Subnet) SetAssignIpv6AddressOnCreation(v bool) *Subnet {
  46993. s.AssignIpv6AddressOnCreation = &v
  46994. return s
  46995. }
  46996. // SetAvailabilityZone sets the AvailabilityZone field's value.
  46997. func (s *Subnet) SetAvailabilityZone(v string) *Subnet {
  46998. s.AvailabilityZone = &v
  46999. return s
  47000. }
  47001. // SetAvailableIpAddressCount sets the AvailableIpAddressCount field's value.
  47002. func (s *Subnet) SetAvailableIpAddressCount(v int64) *Subnet {
  47003. s.AvailableIpAddressCount = &v
  47004. return s
  47005. }
  47006. // SetCidrBlock sets the CidrBlock field's value.
  47007. func (s *Subnet) SetCidrBlock(v string) *Subnet {
  47008. s.CidrBlock = &v
  47009. return s
  47010. }
  47011. // SetDefaultForAz sets the DefaultForAz field's value.
  47012. func (s *Subnet) SetDefaultForAz(v bool) *Subnet {
  47013. s.DefaultForAz = &v
  47014. return s
  47015. }
  47016. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  47017. func (s *Subnet) SetIpv6CidrBlockAssociationSet(v []*SubnetIpv6CidrBlockAssociation) *Subnet {
  47018. s.Ipv6CidrBlockAssociationSet = v
  47019. return s
  47020. }
  47021. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  47022. func (s *Subnet) SetMapPublicIpOnLaunch(v bool) *Subnet {
  47023. s.MapPublicIpOnLaunch = &v
  47024. return s
  47025. }
  47026. // SetState sets the State field's value.
  47027. func (s *Subnet) SetState(v string) *Subnet {
  47028. s.State = &v
  47029. return s
  47030. }
  47031. // SetSubnetId sets the SubnetId field's value.
  47032. func (s *Subnet) SetSubnetId(v string) *Subnet {
  47033. s.SubnetId = &v
  47034. return s
  47035. }
  47036. // SetTags sets the Tags field's value.
  47037. func (s *Subnet) SetTags(v []*Tag) *Subnet {
  47038. s.Tags = v
  47039. return s
  47040. }
  47041. // SetVpcId sets the VpcId field's value.
  47042. func (s *Subnet) SetVpcId(v string) *Subnet {
  47043. s.VpcId = &v
  47044. return s
  47045. }
  47046. // Describes the state of a CIDR block.
  47047. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SubnetCidrBlockState
  47048. type SubnetCidrBlockState struct {
  47049. _ struct{} `type:"structure"`
  47050. // The state of a CIDR block.
  47051. State *string `locationName:"state" type:"string" enum:"SubnetCidrBlockStateCode"`
  47052. // A message about the status of the CIDR block, if applicable.
  47053. StatusMessage *string `locationName:"statusMessage" type:"string"`
  47054. }
  47055. // String returns the string representation
  47056. func (s SubnetCidrBlockState) String() string {
  47057. return awsutil.Prettify(s)
  47058. }
  47059. // GoString returns the string representation
  47060. func (s SubnetCidrBlockState) GoString() string {
  47061. return s.String()
  47062. }
  47063. // SetState sets the State field's value.
  47064. func (s *SubnetCidrBlockState) SetState(v string) *SubnetCidrBlockState {
  47065. s.State = &v
  47066. return s
  47067. }
  47068. // SetStatusMessage sets the StatusMessage field's value.
  47069. func (s *SubnetCidrBlockState) SetStatusMessage(v string) *SubnetCidrBlockState {
  47070. s.StatusMessage = &v
  47071. return s
  47072. }
  47073. // Describes an IPv6 CIDR block associated with a subnet.
  47074. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SubnetIpv6CidrBlockAssociation
  47075. type SubnetIpv6CidrBlockAssociation struct {
  47076. _ struct{} `type:"structure"`
  47077. // The association ID for the CIDR block.
  47078. AssociationId *string `locationName:"associationId" type:"string"`
  47079. // The IPv6 CIDR block.
  47080. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  47081. // Information about the state of the CIDR block.
  47082. Ipv6CidrBlockState *SubnetCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  47083. }
  47084. // String returns the string representation
  47085. func (s SubnetIpv6CidrBlockAssociation) String() string {
  47086. return awsutil.Prettify(s)
  47087. }
  47088. // GoString returns the string representation
  47089. func (s SubnetIpv6CidrBlockAssociation) GoString() string {
  47090. return s.String()
  47091. }
  47092. // SetAssociationId sets the AssociationId field's value.
  47093. func (s *SubnetIpv6CidrBlockAssociation) SetAssociationId(v string) *SubnetIpv6CidrBlockAssociation {
  47094. s.AssociationId = &v
  47095. return s
  47096. }
  47097. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  47098. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *SubnetIpv6CidrBlockAssociation {
  47099. s.Ipv6CidrBlock = &v
  47100. return s
  47101. }
  47102. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  47103. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *SubnetCidrBlockState) *SubnetIpv6CidrBlockAssociation {
  47104. s.Ipv6CidrBlockState = v
  47105. return s
  47106. }
  47107. // Describes a tag.
  47108. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Tag
  47109. type Tag struct {
  47110. _ struct{} `type:"structure"`
  47111. // The key of the tag.
  47112. //
  47113. // Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
  47114. // characters. May not begin with aws:
  47115. Key *string `locationName:"key" type:"string"`
  47116. // The value of the tag.
  47117. //
  47118. // Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode
  47119. // characters.
  47120. Value *string `locationName:"value" type:"string"`
  47121. }
  47122. // String returns the string representation
  47123. func (s Tag) String() string {
  47124. return awsutil.Prettify(s)
  47125. }
  47126. // GoString returns the string representation
  47127. func (s Tag) GoString() string {
  47128. return s.String()
  47129. }
  47130. // SetKey sets the Key field's value.
  47131. func (s *Tag) SetKey(v string) *Tag {
  47132. s.Key = &v
  47133. return s
  47134. }
  47135. // SetValue sets the Value field's value.
  47136. func (s *Tag) SetValue(v string) *Tag {
  47137. s.Value = &v
  47138. return s
  47139. }
  47140. // Describes a tag.
  47141. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TagDescription
  47142. type TagDescription struct {
  47143. _ struct{} `type:"structure"`
  47144. // The tag key.
  47145. Key *string `locationName:"key" type:"string"`
  47146. // The ID of the resource. For example, ami-1a2b3c4d.
  47147. ResourceId *string `locationName:"resourceId" type:"string"`
  47148. // The resource type.
  47149. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  47150. // The tag value.
  47151. Value *string `locationName:"value" type:"string"`
  47152. }
  47153. // String returns the string representation
  47154. func (s TagDescription) String() string {
  47155. return awsutil.Prettify(s)
  47156. }
  47157. // GoString returns the string representation
  47158. func (s TagDescription) GoString() string {
  47159. return s.String()
  47160. }
  47161. // SetKey sets the Key field's value.
  47162. func (s *TagDescription) SetKey(v string) *TagDescription {
  47163. s.Key = &v
  47164. return s
  47165. }
  47166. // SetResourceId sets the ResourceId field's value.
  47167. func (s *TagDescription) SetResourceId(v string) *TagDescription {
  47168. s.ResourceId = &v
  47169. return s
  47170. }
  47171. // SetResourceType sets the ResourceType field's value.
  47172. func (s *TagDescription) SetResourceType(v string) *TagDescription {
  47173. s.ResourceType = &v
  47174. return s
  47175. }
  47176. // SetValue sets the Value field's value.
  47177. func (s *TagDescription) SetValue(v string) *TagDescription {
  47178. s.Value = &v
  47179. return s
  47180. }
  47181. // The tags to apply to a resource when the resource is being created.
  47182. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TagSpecification
  47183. type TagSpecification struct {
  47184. _ struct{} `type:"structure"`
  47185. // The type of resource to tag. Currently, the resource types that support tagging
  47186. // on creation are instance and volume.
  47187. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  47188. // The tags to apply to the resource.
  47189. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  47190. }
  47191. // String returns the string representation
  47192. func (s TagSpecification) String() string {
  47193. return awsutil.Prettify(s)
  47194. }
  47195. // GoString returns the string representation
  47196. func (s TagSpecification) GoString() string {
  47197. return s.String()
  47198. }
  47199. // SetResourceType sets the ResourceType field's value.
  47200. func (s *TagSpecification) SetResourceType(v string) *TagSpecification {
  47201. s.ResourceType = &v
  47202. return s
  47203. }
  47204. // SetTags sets the Tags field's value.
  47205. func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification {
  47206. s.Tags = v
  47207. return s
  47208. }
  47209. // Information about the Convertible Reserved Instance offering.
  47210. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetConfiguration
  47211. type TargetConfiguration struct {
  47212. _ struct{} `type:"structure"`
  47213. // The number of instances the Convertible Reserved Instance offering can be
  47214. // applied to. This parameter is reserved and cannot be specified in a request
  47215. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  47216. // The ID of the Convertible Reserved Instance offering.
  47217. OfferingId *string `locationName:"offeringId" type:"string"`
  47218. }
  47219. // String returns the string representation
  47220. func (s TargetConfiguration) String() string {
  47221. return awsutil.Prettify(s)
  47222. }
  47223. // GoString returns the string representation
  47224. func (s TargetConfiguration) GoString() string {
  47225. return s.String()
  47226. }
  47227. // SetInstanceCount sets the InstanceCount field's value.
  47228. func (s *TargetConfiguration) SetInstanceCount(v int64) *TargetConfiguration {
  47229. s.InstanceCount = &v
  47230. return s
  47231. }
  47232. // SetOfferingId sets the OfferingId field's value.
  47233. func (s *TargetConfiguration) SetOfferingId(v string) *TargetConfiguration {
  47234. s.OfferingId = &v
  47235. return s
  47236. }
  47237. // Details about the target configuration.
  47238. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetConfigurationRequest
  47239. type TargetConfigurationRequest struct {
  47240. _ struct{} `type:"structure"`
  47241. // The number of instances the Covertible Reserved Instance offering can be
  47242. // applied to. This parameter is reserved and cannot be specified in a request
  47243. InstanceCount *int64 `type:"integer"`
  47244. // The Convertible Reserved Instance offering ID.
  47245. //
  47246. // OfferingId is a required field
  47247. OfferingId *string `type:"string" required:"true"`
  47248. }
  47249. // String returns the string representation
  47250. func (s TargetConfigurationRequest) String() string {
  47251. return awsutil.Prettify(s)
  47252. }
  47253. // GoString returns the string representation
  47254. func (s TargetConfigurationRequest) GoString() string {
  47255. return s.String()
  47256. }
  47257. // Validate inspects the fields of the type to determine if they are valid.
  47258. func (s *TargetConfigurationRequest) Validate() error {
  47259. invalidParams := request.ErrInvalidParams{Context: "TargetConfigurationRequest"}
  47260. if s.OfferingId == nil {
  47261. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  47262. }
  47263. if invalidParams.Len() > 0 {
  47264. return invalidParams
  47265. }
  47266. return nil
  47267. }
  47268. // SetInstanceCount sets the InstanceCount field's value.
  47269. func (s *TargetConfigurationRequest) SetInstanceCount(v int64) *TargetConfigurationRequest {
  47270. s.InstanceCount = &v
  47271. return s
  47272. }
  47273. // SetOfferingId sets the OfferingId field's value.
  47274. func (s *TargetConfigurationRequest) SetOfferingId(v string) *TargetConfigurationRequest {
  47275. s.OfferingId = &v
  47276. return s
  47277. }
  47278. // The total value of the new Convertible Reserved Instances.
  47279. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetReservationValue
  47280. type TargetReservationValue struct {
  47281. _ struct{} `type:"structure"`
  47282. // The total value of the Convertible Reserved Instances that make up the exchange.
  47283. // This is the sum of the list value, remaining upfront price, and additional
  47284. // upfront cost of the exchange.
  47285. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  47286. // The configuration of the Convertible Reserved Instances that make up the
  47287. // exchange.
  47288. TargetConfiguration *TargetConfiguration `locationName:"targetConfiguration" type:"structure"`
  47289. }
  47290. // String returns the string representation
  47291. func (s TargetReservationValue) String() string {
  47292. return awsutil.Prettify(s)
  47293. }
  47294. // GoString returns the string representation
  47295. func (s TargetReservationValue) GoString() string {
  47296. return s.String()
  47297. }
  47298. // SetReservationValue sets the ReservationValue field's value.
  47299. func (s *TargetReservationValue) SetReservationValue(v *ReservationValue) *TargetReservationValue {
  47300. s.ReservationValue = v
  47301. return s
  47302. }
  47303. // SetTargetConfiguration sets the TargetConfiguration field's value.
  47304. func (s *TargetReservationValue) SetTargetConfiguration(v *TargetConfiguration) *TargetReservationValue {
  47305. s.TargetConfiguration = v
  47306. return s
  47307. }
  47308. // Contains the parameters for TerminateInstances.
  47309. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstancesRequest
  47310. type TerminateInstancesInput struct {
  47311. _ struct{} `type:"structure"`
  47312. // Checks whether you have the required permissions for the action, without
  47313. // actually making the request, and provides an error response. If you have
  47314. // the required permissions, the error response is DryRunOperation. Otherwise,
  47315. // it is UnauthorizedOperation.
  47316. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47317. // One or more instance IDs.
  47318. //
  47319. // Constraints: Up to 1000 instance IDs. We recommend breaking up this request
  47320. // into smaller batches.
  47321. //
  47322. // InstanceIds is a required field
  47323. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  47324. }
  47325. // String returns the string representation
  47326. func (s TerminateInstancesInput) String() string {
  47327. return awsutil.Prettify(s)
  47328. }
  47329. // GoString returns the string representation
  47330. func (s TerminateInstancesInput) GoString() string {
  47331. return s.String()
  47332. }
  47333. // Validate inspects the fields of the type to determine if they are valid.
  47334. func (s *TerminateInstancesInput) Validate() error {
  47335. invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"}
  47336. if s.InstanceIds == nil {
  47337. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  47338. }
  47339. if invalidParams.Len() > 0 {
  47340. return invalidParams
  47341. }
  47342. return nil
  47343. }
  47344. // SetDryRun sets the DryRun field's value.
  47345. func (s *TerminateInstancesInput) SetDryRun(v bool) *TerminateInstancesInput {
  47346. s.DryRun = &v
  47347. return s
  47348. }
  47349. // SetInstanceIds sets the InstanceIds field's value.
  47350. func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput {
  47351. s.InstanceIds = v
  47352. return s
  47353. }
  47354. // Contains the output of TerminateInstances.
  47355. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstancesResult
  47356. type TerminateInstancesOutput struct {
  47357. _ struct{} `type:"structure"`
  47358. // Information about one or more terminated instances.
  47359. TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  47360. }
  47361. // String returns the string representation
  47362. func (s TerminateInstancesOutput) String() string {
  47363. return awsutil.Prettify(s)
  47364. }
  47365. // GoString returns the string representation
  47366. func (s TerminateInstancesOutput) GoString() string {
  47367. return s.String()
  47368. }
  47369. // SetTerminatingInstances sets the TerminatingInstances field's value.
  47370. func (s *TerminateInstancesOutput) SetTerminatingInstances(v []*InstanceStateChange) *TerminateInstancesOutput {
  47371. s.TerminatingInstances = v
  47372. return s
  47373. }
  47374. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6AddressesRequest
  47375. type UnassignIpv6AddressesInput struct {
  47376. _ struct{} `type:"structure"`
  47377. // The IPv6 addresses to unassign from the network interface.
  47378. //
  47379. // Ipv6Addresses is a required field
  47380. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list" required:"true"`
  47381. // The ID of the network interface.
  47382. //
  47383. // NetworkInterfaceId is a required field
  47384. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  47385. }
  47386. // String returns the string representation
  47387. func (s UnassignIpv6AddressesInput) String() string {
  47388. return awsutil.Prettify(s)
  47389. }
  47390. // GoString returns the string representation
  47391. func (s UnassignIpv6AddressesInput) GoString() string {
  47392. return s.String()
  47393. }
  47394. // Validate inspects the fields of the type to determine if they are valid.
  47395. func (s *UnassignIpv6AddressesInput) Validate() error {
  47396. invalidParams := request.ErrInvalidParams{Context: "UnassignIpv6AddressesInput"}
  47397. if s.Ipv6Addresses == nil {
  47398. invalidParams.Add(request.NewErrParamRequired("Ipv6Addresses"))
  47399. }
  47400. if s.NetworkInterfaceId == nil {
  47401. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  47402. }
  47403. if invalidParams.Len() > 0 {
  47404. return invalidParams
  47405. }
  47406. return nil
  47407. }
  47408. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  47409. func (s *UnassignIpv6AddressesInput) SetIpv6Addresses(v []*string) *UnassignIpv6AddressesInput {
  47410. s.Ipv6Addresses = v
  47411. return s
  47412. }
  47413. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  47414. func (s *UnassignIpv6AddressesInput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesInput {
  47415. s.NetworkInterfaceId = &v
  47416. return s
  47417. }
  47418. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6AddressesResult
  47419. type UnassignIpv6AddressesOutput struct {
  47420. _ struct{} `type:"structure"`
  47421. // The ID of the network interface.
  47422. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  47423. // The IPv6 addresses that have been unassigned from the network interface.
  47424. UnassignedIpv6Addresses []*string `locationName:"unassignedIpv6Addresses" locationNameList:"item" type:"list"`
  47425. }
  47426. // String returns the string representation
  47427. func (s UnassignIpv6AddressesOutput) String() string {
  47428. return awsutil.Prettify(s)
  47429. }
  47430. // GoString returns the string representation
  47431. func (s UnassignIpv6AddressesOutput) GoString() string {
  47432. return s.String()
  47433. }
  47434. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  47435. func (s *UnassignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesOutput {
  47436. s.NetworkInterfaceId = &v
  47437. return s
  47438. }
  47439. // SetUnassignedIpv6Addresses sets the UnassignedIpv6Addresses field's value.
  47440. func (s *UnassignIpv6AddressesOutput) SetUnassignedIpv6Addresses(v []*string) *UnassignIpv6AddressesOutput {
  47441. s.UnassignedIpv6Addresses = v
  47442. return s
  47443. }
  47444. // Contains the parameters for UnassignPrivateIpAddresses.
  47445. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddressesRequest
  47446. type UnassignPrivateIpAddressesInput struct {
  47447. _ struct{} `type:"structure"`
  47448. // The ID of the network interface.
  47449. //
  47450. // NetworkInterfaceId is a required field
  47451. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  47452. // The secondary private IP addresses to unassign from the network interface.
  47453. // You can specify this option multiple times to unassign more than one IP address.
  47454. //
  47455. // PrivateIpAddresses is a required field
  47456. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list" required:"true"`
  47457. }
  47458. // String returns the string representation
  47459. func (s UnassignPrivateIpAddressesInput) String() string {
  47460. return awsutil.Prettify(s)
  47461. }
  47462. // GoString returns the string representation
  47463. func (s UnassignPrivateIpAddressesInput) GoString() string {
  47464. return s.String()
  47465. }
  47466. // Validate inspects the fields of the type to determine if they are valid.
  47467. func (s *UnassignPrivateIpAddressesInput) Validate() error {
  47468. invalidParams := request.ErrInvalidParams{Context: "UnassignPrivateIpAddressesInput"}
  47469. if s.NetworkInterfaceId == nil {
  47470. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  47471. }
  47472. if s.PrivateIpAddresses == nil {
  47473. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses"))
  47474. }
  47475. if invalidParams.Len() > 0 {
  47476. return invalidParams
  47477. }
  47478. return nil
  47479. }
  47480. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  47481. func (s *UnassignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *UnassignPrivateIpAddressesInput {
  47482. s.NetworkInterfaceId = &v
  47483. return s
  47484. }
  47485. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  47486. func (s *UnassignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *UnassignPrivateIpAddressesInput {
  47487. s.PrivateIpAddresses = v
  47488. return s
  47489. }
  47490. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddressesOutput
  47491. type UnassignPrivateIpAddressesOutput struct {
  47492. _ struct{} `type:"structure"`
  47493. }
  47494. // String returns the string representation
  47495. func (s UnassignPrivateIpAddressesOutput) String() string {
  47496. return awsutil.Prettify(s)
  47497. }
  47498. // GoString returns the string representation
  47499. func (s UnassignPrivateIpAddressesOutput) GoString() string {
  47500. return s.String()
  47501. }
  47502. // Contains the parameters for UnmonitorInstances.
  47503. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstancesRequest
  47504. type UnmonitorInstancesInput struct {
  47505. _ struct{} `type:"structure"`
  47506. // Checks whether you have the required permissions for the action, without
  47507. // actually making the request, and provides an error response. If you have
  47508. // the required permissions, the error response is DryRunOperation. Otherwise,
  47509. // it is UnauthorizedOperation.
  47510. DryRun *bool `locationName:"dryRun" type:"boolean"`
  47511. // One or more instance IDs.
  47512. //
  47513. // InstanceIds is a required field
  47514. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  47515. }
  47516. // String returns the string representation
  47517. func (s UnmonitorInstancesInput) String() string {
  47518. return awsutil.Prettify(s)
  47519. }
  47520. // GoString returns the string representation
  47521. func (s UnmonitorInstancesInput) GoString() string {
  47522. return s.String()
  47523. }
  47524. // Validate inspects the fields of the type to determine if they are valid.
  47525. func (s *UnmonitorInstancesInput) Validate() error {
  47526. invalidParams := request.ErrInvalidParams{Context: "UnmonitorInstancesInput"}
  47527. if s.InstanceIds == nil {
  47528. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  47529. }
  47530. if invalidParams.Len() > 0 {
  47531. return invalidParams
  47532. }
  47533. return nil
  47534. }
  47535. // SetDryRun sets the DryRun field's value.
  47536. func (s *UnmonitorInstancesInput) SetDryRun(v bool) *UnmonitorInstancesInput {
  47537. s.DryRun = &v
  47538. return s
  47539. }
  47540. // SetInstanceIds sets the InstanceIds field's value.
  47541. func (s *UnmonitorInstancesInput) SetInstanceIds(v []*string) *UnmonitorInstancesInput {
  47542. s.InstanceIds = v
  47543. return s
  47544. }
  47545. // Contains the output of UnmonitorInstances.
  47546. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstancesResult
  47547. type UnmonitorInstancesOutput struct {
  47548. _ struct{} `type:"structure"`
  47549. // The monitoring information.
  47550. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  47551. }
  47552. // String returns the string representation
  47553. func (s UnmonitorInstancesOutput) String() string {
  47554. return awsutil.Prettify(s)
  47555. }
  47556. // GoString returns the string representation
  47557. func (s UnmonitorInstancesOutput) GoString() string {
  47558. return s.String()
  47559. }
  47560. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  47561. func (s *UnmonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *UnmonitorInstancesOutput {
  47562. s.InstanceMonitorings = v
  47563. return s
  47564. }
  47565. // Information about items that were not successfully processed in a batch call.
  47566. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnsuccessfulItem
  47567. type UnsuccessfulItem struct {
  47568. _ struct{} `type:"structure"`
  47569. // Information about the error.
  47570. //
  47571. // Error is a required field
  47572. Error *UnsuccessfulItemError `locationName:"error" type:"structure" required:"true"`
  47573. // The ID of the resource.
  47574. ResourceId *string `locationName:"resourceId" type:"string"`
  47575. }
  47576. // String returns the string representation
  47577. func (s UnsuccessfulItem) String() string {
  47578. return awsutil.Prettify(s)
  47579. }
  47580. // GoString returns the string representation
  47581. func (s UnsuccessfulItem) GoString() string {
  47582. return s.String()
  47583. }
  47584. // SetError sets the Error field's value.
  47585. func (s *UnsuccessfulItem) SetError(v *UnsuccessfulItemError) *UnsuccessfulItem {
  47586. s.Error = v
  47587. return s
  47588. }
  47589. // SetResourceId sets the ResourceId field's value.
  47590. func (s *UnsuccessfulItem) SetResourceId(v string) *UnsuccessfulItem {
  47591. s.ResourceId = &v
  47592. return s
  47593. }
  47594. // Information about the error that occurred. For more information about errors,
  47595. // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
  47596. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnsuccessfulItemError
  47597. type UnsuccessfulItemError struct {
  47598. _ struct{} `type:"structure"`
  47599. // The error code.
  47600. //
  47601. // Code is a required field
  47602. Code *string `locationName:"code" type:"string" required:"true"`
  47603. // The error message accompanying the error code.
  47604. //
  47605. // Message is a required field
  47606. Message *string `locationName:"message" type:"string" required:"true"`
  47607. }
  47608. // String returns the string representation
  47609. func (s UnsuccessfulItemError) String() string {
  47610. return awsutil.Prettify(s)
  47611. }
  47612. // GoString returns the string representation
  47613. func (s UnsuccessfulItemError) GoString() string {
  47614. return s.String()
  47615. }
  47616. // SetCode sets the Code field's value.
  47617. func (s *UnsuccessfulItemError) SetCode(v string) *UnsuccessfulItemError {
  47618. s.Code = &v
  47619. return s
  47620. }
  47621. // SetMessage sets the Message field's value.
  47622. func (s *UnsuccessfulItemError) SetMessage(v string) *UnsuccessfulItemError {
  47623. s.Message = &v
  47624. return s
  47625. }
  47626. // Describes the S3 bucket for the disk image.
  47627. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserBucket
  47628. type UserBucket struct {
  47629. _ struct{} `type:"structure"`
  47630. // The name of the S3 bucket where the disk image is located.
  47631. S3Bucket *string `type:"string"`
  47632. // The file name of the disk image.
  47633. S3Key *string `type:"string"`
  47634. }
  47635. // String returns the string representation
  47636. func (s UserBucket) String() string {
  47637. return awsutil.Prettify(s)
  47638. }
  47639. // GoString returns the string representation
  47640. func (s UserBucket) GoString() string {
  47641. return s.String()
  47642. }
  47643. // SetS3Bucket sets the S3Bucket field's value.
  47644. func (s *UserBucket) SetS3Bucket(v string) *UserBucket {
  47645. s.S3Bucket = &v
  47646. return s
  47647. }
  47648. // SetS3Key sets the S3Key field's value.
  47649. func (s *UserBucket) SetS3Key(v string) *UserBucket {
  47650. s.S3Key = &v
  47651. return s
  47652. }
  47653. // Describes the S3 bucket for the disk image.
  47654. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserBucketDetails
  47655. type UserBucketDetails struct {
  47656. _ struct{} `type:"structure"`
  47657. // The S3 bucket from which the disk image was created.
  47658. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  47659. // The file name of the disk image.
  47660. S3Key *string `locationName:"s3Key" type:"string"`
  47661. }
  47662. // String returns the string representation
  47663. func (s UserBucketDetails) String() string {
  47664. return awsutil.Prettify(s)
  47665. }
  47666. // GoString returns the string representation
  47667. func (s UserBucketDetails) GoString() string {
  47668. return s.String()
  47669. }
  47670. // SetS3Bucket sets the S3Bucket field's value.
  47671. func (s *UserBucketDetails) SetS3Bucket(v string) *UserBucketDetails {
  47672. s.S3Bucket = &v
  47673. return s
  47674. }
  47675. // SetS3Key sets the S3Key field's value.
  47676. func (s *UserBucketDetails) SetS3Key(v string) *UserBucketDetails {
  47677. s.S3Key = &v
  47678. return s
  47679. }
  47680. // Describes the user data for an instance.
  47681. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserData
  47682. type UserData struct {
  47683. _ struct{} `type:"structure"`
  47684. // The user data. If you are using an AWS SDK or command line tool, Base64-encoding
  47685. // is performed for you, and you can load the text from a file. Otherwise, you
  47686. // must provide Base64-encoded text.
  47687. Data *string `locationName:"data" type:"string"`
  47688. }
  47689. // String returns the string representation
  47690. func (s UserData) String() string {
  47691. return awsutil.Prettify(s)
  47692. }
  47693. // GoString returns the string representation
  47694. func (s UserData) GoString() string {
  47695. return s.String()
  47696. }
  47697. // SetData sets the Data field's value.
  47698. func (s *UserData) SetData(v string) *UserData {
  47699. s.Data = &v
  47700. return s
  47701. }
  47702. // Describes a security group and AWS account ID pair.
  47703. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserIdGroupPair
  47704. type UserIdGroupPair struct {
  47705. _ struct{} `type:"structure"`
  47706. // The ID of the security group.
  47707. GroupId *string `locationName:"groupId" type:"string"`
  47708. // The name of the security group. In a request, use this parameter for a security
  47709. // group in EC2-Classic or a default VPC only. For a security group in a nondefault
  47710. // VPC, use the security group ID.
  47711. GroupName *string `locationName:"groupName" type:"string"`
  47712. // The status of a VPC peering connection, if applicable.
  47713. PeeringStatus *string `locationName:"peeringStatus" type:"string"`
  47714. // The ID of an AWS account. For a referenced security group in another VPC,
  47715. // the account ID of the referenced security group is returned.
  47716. //
  47717. // [EC2-Classic] Required when adding or removing rules that reference a security
  47718. // group in another AWS account.
  47719. UserId *string `locationName:"userId" type:"string"`
  47720. // The ID of the VPC for the referenced security group, if applicable.
  47721. VpcId *string `locationName:"vpcId" type:"string"`
  47722. // The ID of the VPC peering connection, if applicable.
  47723. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  47724. }
  47725. // String returns the string representation
  47726. func (s UserIdGroupPair) String() string {
  47727. return awsutil.Prettify(s)
  47728. }
  47729. // GoString returns the string representation
  47730. func (s UserIdGroupPair) GoString() string {
  47731. return s.String()
  47732. }
  47733. // SetGroupId sets the GroupId field's value.
  47734. func (s *UserIdGroupPair) SetGroupId(v string) *UserIdGroupPair {
  47735. s.GroupId = &v
  47736. return s
  47737. }
  47738. // SetGroupName sets the GroupName field's value.
  47739. func (s *UserIdGroupPair) SetGroupName(v string) *UserIdGroupPair {
  47740. s.GroupName = &v
  47741. return s
  47742. }
  47743. // SetPeeringStatus sets the PeeringStatus field's value.
  47744. func (s *UserIdGroupPair) SetPeeringStatus(v string) *UserIdGroupPair {
  47745. s.PeeringStatus = &v
  47746. return s
  47747. }
  47748. // SetUserId sets the UserId field's value.
  47749. func (s *UserIdGroupPair) SetUserId(v string) *UserIdGroupPair {
  47750. s.UserId = &v
  47751. return s
  47752. }
  47753. // SetVpcId sets the VpcId field's value.
  47754. func (s *UserIdGroupPair) SetVpcId(v string) *UserIdGroupPair {
  47755. s.VpcId = &v
  47756. return s
  47757. }
  47758. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  47759. func (s *UserIdGroupPair) SetVpcPeeringConnectionId(v string) *UserIdGroupPair {
  47760. s.VpcPeeringConnectionId = &v
  47761. return s
  47762. }
  47763. // Describes telemetry for a VPN tunnel.
  47764. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VgwTelemetry
  47765. type VgwTelemetry struct {
  47766. _ struct{} `type:"structure"`
  47767. // The number of accepted routes.
  47768. AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"`
  47769. // The date and time of the last change in status.
  47770. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"iso8601"`
  47771. // The Internet-routable IP address of the virtual private gateway's outside
  47772. // interface.
  47773. OutsideIpAddress *string `locationName:"outsideIpAddress" type:"string"`
  47774. // The status of the VPN tunnel.
  47775. Status *string `locationName:"status" type:"string" enum:"TelemetryStatus"`
  47776. // If an error occurs, a description of the error.
  47777. StatusMessage *string `locationName:"statusMessage" type:"string"`
  47778. }
  47779. // String returns the string representation
  47780. func (s VgwTelemetry) String() string {
  47781. return awsutil.Prettify(s)
  47782. }
  47783. // GoString returns the string representation
  47784. func (s VgwTelemetry) GoString() string {
  47785. return s.String()
  47786. }
  47787. // SetAcceptedRouteCount sets the AcceptedRouteCount field's value.
  47788. func (s *VgwTelemetry) SetAcceptedRouteCount(v int64) *VgwTelemetry {
  47789. s.AcceptedRouteCount = &v
  47790. return s
  47791. }
  47792. // SetLastStatusChange sets the LastStatusChange field's value.
  47793. func (s *VgwTelemetry) SetLastStatusChange(v time.Time) *VgwTelemetry {
  47794. s.LastStatusChange = &v
  47795. return s
  47796. }
  47797. // SetOutsideIpAddress sets the OutsideIpAddress field's value.
  47798. func (s *VgwTelemetry) SetOutsideIpAddress(v string) *VgwTelemetry {
  47799. s.OutsideIpAddress = &v
  47800. return s
  47801. }
  47802. // SetStatus sets the Status field's value.
  47803. func (s *VgwTelemetry) SetStatus(v string) *VgwTelemetry {
  47804. s.Status = &v
  47805. return s
  47806. }
  47807. // SetStatusMessage sets the StatusMessage field's value.
  47808. func (s *VgwTelemetry) SetStatusMessage(v string) *VgwTelemetry {
  47809. s.StatusMessage = &v
  47810. return s
  47811. }
  47812. // Describes a volume.
  47813. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Volume
  47814. type Volume struct {
  47815. _ struct{} `type:"structure"`
  47816. // Information about the volume attachments.
  47817. Attachments []*VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  47818. // The Availability Zone for the volume.
  47819. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  47820. // The time stamp when volume creation was initiated.
  47821. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  47822. // Indicates whether the volume will be encrypted.
  47823. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  47824. // The number of I/O operations per second (IOPS) that the volume supports.
  47825. // For Provisioned IOPS SSD volumes, this represents the number of IOPS that
  47826. // are provisioned for the volume. For General Purpose SSD volumes, this represents
  47827. // the baseline performance of the volume and the rate at which the volume accumulates
  47828. // I/O credits for bursting. For more information on General Purpose SSD baseline
  47829. // performance, I/O credits, and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  47830. // in the Amazon Elastic Compute Cloud User Guide.
  47831. //
  47832. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  47833. // gp2 volumes.
  47834. //
  47835. // Condition: This parameter is required for requests to create io1 volumes;
  47836. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  47837. Iops *int64 `locationName:"iops" type:"integer"`
  47838. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  47839. // key (CMK) that was used to protect the volume encryption key for the volume.
  47840. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  47841. // The size of the volume, in GiBs.
  47842. Size *int64 `locationName:"size" type:"integer"`
  47843. // The snapshot from which the volume was created, if applicable.
  47844. SnapshotId *string `locationName:"snapshotId" type:"string"`
  47845. // The volume state.
  47846. State *string `locationName:"status" type:"string" enum:"VolumeState"`
  47847. // Any tags assigned to the volume.
  47848. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  47849. // The ID of the volume.
  47850. VolumeId *string `locationName:"volumeId" type:"string"`
  47851. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  47852. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  47853. // for Magnetic volumes.
  47854. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  47855. }
  47856. // String returns the string representation
  47857. func (s Volume) String() string {
  47858. return awsutil.Prettify(s)
  47859. }
  47860. // GoString returns the string representation
  47861. func (s Volume) GoString() string {
  47862. return s.String()
  47863. }
  47864. // SetAttachments sets the Attachments field's value.
  47865. func (s *Volume) SetAttachments(v []*VolumeAttachment) *Volume {
  47866. s.Attachments = v
  47867. return s
  47868. }
  47869. // SetAvailabilityZone sets the AvailabilityZone field's value.
  47870. func (s *Volume) SetAvailabilityZone(v string) *Volume {
  47871. s.AvailabilityZone = &v
  47872. return s
  47873. }
  47874. // SetCreateTime sets the CreateTime field's value.
  47875. func (s *Volume) SetCreateTime(v time.Time) *Volume {
  47876. s.CreateTime = &v
  47877. return s
  47878. }
  47879. // SetEncrypted sets the Encrypted field's value.
  47880. func (s *Volume) SetEncrypted(v bool) *Volume {
  47881. s.Encrypted = &v
  47882. return s
  47883. }
  47884. // SetIops sets the Iops field's value.
  47885. func (s *Volume) SetIops(v int64) *Volume {
  47886. s.Iops = &v
  47887. return s
  47888. }
  47889. // SetKmsKeyId sets the KmsKeyId field's value.
  47890. func (s *Volume) SetKmsKeyId(v string) *Volume {
  47891. s.KmsKeyId = &v
  47892. return s
  47893. }
  47894. // SetSize sets the Size field's value.
  47895. func (s *Volume) SetSize(v int64) *Volume {
  47896. s.Size = &v
  47897. return s
  47898. }
  47899. // SetSnapshotId sets the SnapshotId field's value.
  47900. func (s *Volume) SetSnapshotId(v string) *Volume {
  47901. s.SnapshotId = &v
  47902. return s
  47903. }
  47904. // SetState sets the State field's value.
  47905. func (s *Volume) SetState(v string) *Volume {
  47906. s.State = &v
  47907. return s
  47908. }
  47909. // SetTags sets the Tags field's value.
  47910. func (s *Volume) SetTags(v []*Tag) *Volume {
  47911. s.Tags = v
  47912. return s
  47913. }
  47914. // SetVolumeId sets the VolumeId field's value.
  47915. func (s *Volume) SetVolumeId(v string) *Volume {
  47916. s.VolumeId = &v
  47917. return s
  47918. }
  47919. // SetVolumeType sets the VolumeType field's value.
  47920. func (s *Volume) SetVolumeType(v string) *Volume {
  47921. s.VolumeType = &v
  47922. return s
  47923. }
  47924. // Describes volume attachment details.
  47925. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeAttachment
  47926. type VolumeAttachment struct {
  47927. _ struct{} `type:"structure"`
  47928. // The time stamp when the attachment initiated.
  47929. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  47930. // Indicates whether the EBS volume is deleted on instance termination.
  47931. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  47932. // The device name.
  47933. Device *string `locationName:"device" type:"string"`
  47934. // The ID of the instance.
  47935. InstanceId *string `locationName:"instanceId" type:"string"`
  47936. // The attachment state of the volume.
  47937. State *string `locationName:"status" type:"string" enum:"VolumeAttachmentState"`
  47938. // The ID of the volume.
  47939. VolumeId *string `locationName:"volumeId" type:"string"`
  47940. }
  47941. // String returns the string representation
  47942. func (s VolumeAttachment) String() string {
  47943. return awsutil.Prettify(s)
  47944. }
  47945. // GoString returns the string representation
  47946. func (s VolumeAttachment) GoString() string {
  47947. return s.String()
  47948. }
  47949. // SetAttachTime sets the AttachTime field's value.
  47950. func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment {
  47951. s.AttachTime = &v
  47952. return s
  47953. }
  47954. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  47955. func (s *VolumeAttachment) SetDeleteOnTermination(v bool) *VolumeAttachment {
  47956. s.DeleteOnTermination = &v
  47957. return s
  47958. }
  47959. // SetDevice sets the Device field's value.
  47960. func (s *VolumeAttachment) SetDevice(v string) *VolumeAttachment {
  47961. s.Device = &v
  47962. return s
  47963. }
  47964. // SetInstanceId sets the InstanceId field's value.
  47965. func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment {
  47966. s.InstanceId = &v
  47967. return s
  47968. }
  47969. // SetState sets the State field's value.
  47970. func (s *VolumeAttachment) SetState(v string) *VolumeAttachment {
  47971. s.State = &v
  47972. return s
  47973. }
  47974. // SetVolumeId sets the VolumeId field's value.
  47975. func (s *VolumeAttachment) SetVolumeId(v string) *VolumeAttachment {
  47976. s.VolumeId = &v
  47977. return s
  47978. }
  47979. // Describes an EBS volume.
  47980. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeDetail
  47981. type VolumeDetail struct {
  47982. _ struct{} `type:"structure"`
  47983. // The size of the volume, in GiB.
  47984. //
  47985. // Size is a required field
  47986. Size *int64 `locationName:"size" type:"long" required:"true"`
  47987. }
  47988. // String returns the string representation
  47989. func (s VolumeDetail) String() string {
  47990. return awsutil.Prettify(s)
  47991. }
  47992. // GoString returns the string representation
  47993. func (s VolumeDetail) GoString() string {
  47994. return s.String()
  47995. }
  47996. // Validate inspects the fields of the type to determine if they are valid.
  47997. func (s *VolumeDetail) Validate() error {
  47998. invalidParams := request.ErrInvalidParams{Context: "VolumeDetail"}
  47999. if s.Size == nil {
  48000. invalidParams.Add(request.NewErrParamRequired("Size"))
  48001. }
  48002. if invalidParams.Len() > 0 {
  48003. return invalidParams
  48004. }
  48005. return nil
  48006. }
  48007. // SetSize sets the Size field's value.
  48008. func (s *VolumeDetail) SetSize(v int64) *VolumeDetail {
  48009. s.Size = &v
  48010. return s
  48011. }
  48012. // Describes the modification status of an EBS volume.
  48013. //
  48014. // If the volume has never been modified, some element values will be null.
  48015. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeModification
  48016. type VolumeModification struct {
  48017. _ struct{} `type:"structure"`
  48018. // Modification completion or failure time.
  48019. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  48020. // Current state of modification. Modification state is null for unmodified
  48021. // volumes.
  48022. ModificationState *string `locationName:"modificationState" type:"string" enum:"VolumeModificationState"`
  48023. // Original IOPS rate of the volume being modified.
  48024. OriginalIops *int64 `locationName:"originalIops" type:"integer"`
  48025. // Original size of the volume being modified.
  48026. OriginalSize *int64 `locationName:"originalSize" type:"integer"`
  48027. // Original EBS volume type of the volume being modified.
  48028. OriginalVolumeType *string `locationName:"originalVolumeType" type:"string" enum:"VolumeType"`
  48029. // Modification progress from 0 to 100%.
  48030. Progress *int64 `locationName:"progress" type:"long"`
  48031. // Modification start time
  48032. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  48033. // Generic status message on modification progress or failure.
  48034. StatusMessage *string `locationName:"statusMessage" type:"string"`
  48035. // Target IOPS rate of the volume being modified.
  48036. TargetIops *int64 `locationName:"targetIops" type:"integer"`
  48037. // Target size of the volume being modified.
  48038. TargetSize *int64 `locationName:"targetSize" type:"integer"`
  48039. // Target EBS volume type of the volume being modified.
  48040. TargetVolumeType *string `locationName:"targetVolumeType" type:"string" enum:"VolumeType"`
  48041. // ID of the volume being modified.
  48042. VolumeId *string `locationName:"volumeId" type:"string"`
  48043. }
  48044. // String returns the string representation
  48045. func (s VolumeModification) String() string {
  48046. return awsutil.Prettify(s)
  48047. }
  48048. // GoString returns the string representation
  48049. func (s VolumeModification) GoString() string {
  48050. return s.String()
  48051. }
  48052. // SetEndTime sets the EndTime field's value.
  48053. func (s *VolumeModification) SetEndTime(v time.Time) *VolumeModification {
  48054. s.EndTime = &v
  48055. return s
  48056. }
  48057. // SetModificationState sets the ModificationState field's value.
  48058. func (s *VolumeModification) SetModificationState(v string) *VolumeModification {
  48059. s.ModificationState = &v
  48060. return s
  48061. }
  48062. // SetOriginalIops sets the OriginalIops field's value.
  48063. func (s *VolumeModification) SetOriginalIops(v int64) *VolumeModification {
  48064. s.OriginalIops = &v
  48065. return s
  48066. }
  48067. // SetOriginalSize sets the OriginalSize field's value.
  48068. func (s *VolumeModification) SetOriginalSize(v int64) *VolumeModification {
  48069. s.OriginalSize = &v
  48070. return s
  48071. }
  48072. // SetOriginalVolumeType sets the OriginalVolumeType field's value.
  48073. func (s *VolumeModification) SetOriginalVolumeType(v string) *VolumeModification {
  48074. s.OriginalVolumeType = &v
  48075. return s
  48076. }
  48077. // SetProgress sets the Progress field's value.
  48078. func (s *VolumeModification) SetProgress(v int64) *VolumeModification {
  48079. s.Progress = &v
  48080. return s
  48081. }
  48082. // SetStartTime sets the StartTime field's value.
  48083. func (s *VolumeModification) SetStartTime(v time.Time) *VolumeModification {
  48084. s.StartTime = &v
  48085. return s
  48086. }
  48087. // SetStatusMessage sets the StatusMessage field's value.
  48088. func (s *VolumeModification) SetStatusMessage(v string) *VolumeModification {
  48089. s.StatusMessage = &v
  48090. return s
  48091. }
  48092. // SetTargetIops sets the TargetIops field's value.
  48093. func (s *VolumeModification) SetTargetIops(v int64) *VolumeModification {
  48094. s.TargetIops = &v
  48095. return s
  48096. }
  48097. // SetTargetSize sets the TargetSize field's value.
  48098. func (s *VolumeModification) SetTargetSize(v int64) *VolumeModification {
  48099. s.TargetSize = &v
  48100. return s
  48101. }
  48102. // SetTargetVolumeType sets the TargetVolumeType field's value.
  48103. func (s *VolumeModification) SetTargetVolumeType(v string) *VolumeModification {
  48104. s.TargetVolumeType = &v
  48105. return s
  48106. }
  48107. // SetVolumeId sets the VolumeId field's value.
  48108. func (s *VolumeModification) SetVolumeId(v string) *VolumeModification {
  48109. s.VolumeId = &v
  48110. return s
  48111. }
  48112. // Describes a volume status operation code.
  48113. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusAction
  48114. type VolumeStatusAction struct {
  48115. _ struct{} `type:"structure"`
  48116. // The code identifying the operation, for example, enable-volume-io.
  48117. Code *string `locationName:"code" type:"string"`
  48118. // A description of the operation.
  48119. Description *string `locationName:"description" type:"string"`
  48120. // The ID of the event associated with this operation.
  48121. EventId *string `locationName:"eventId" type:"string"`
  48122. // The event type associated with this operation.
  48123. EventType *string `locationName:"eventType" type:"string"`
  48124. }
  48125. // String returns the string representation
  48126. func (s VolumeStatusAction) String() string {
  48127. return awsutil.Prettify(s)
  48128. }
  48129. // GoString returns the string representation
  48130. func (s VolumeStatusAction) GoString() string {
  48131. return s.String()
  48132. }
  48133. // SetCode sets the Code field's value.
  48134. func (s *VolumeStatusAction) SetCode(v string) *VolumeStatusAction {
  48135. s.Code = &v
  48136. return s
  48137. }
  48138. // SetDescription sets the Description field's value.
  48139. func (s *VolumeStatusAction) SetDescription(v string) *VolumeStatusAction {
  48140. s.Description = &v
  48141. return s
  48142. }
  48143. // SetEventId sets the EventId field's value.
  48144. func (s *VolumeStatusAction) SetEventId(v string) *VolumeStatusAction {
  48145. s.EventId = &v
  48146. return s
  48147. }
  48148. // SetEventType sets the EventType field's value.
  48149. func (s *VolumeStatusAction) SetEventType(v string) *VolumeStatusAction {
  48150. s.EventType = &v
  48151. return s
  48152. }
  48153. // Describes a volume status.
  48154. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusDetails
  48155. type VolumeStatusDetails struct {
  48156. _ struct{} `type:"structure"`
  48157. // The name of the volume status.
  48158. Name *string `locationName:"name" type:"string" enum:"VolumeStatusName"`
  48159. // The intended status of the volume status.
  48160. Status *string `locationName:"status" type:"string"`
  48161. }
  48162. // String returns the string representation
  48163. func (s VolumeStatusDetails) String() string {
  48164. return awsutil.Prettify(s)
  48165. }
  48166. // GoString returns the string representation
  48167. func (s VolumeStatusDetails) GoString() string {
  48168. return s.String()
  48169. }
  48170. // SetName sets the Name field's value.
  48171. func (s *VolumeStatusDetails) SetName(v string) *VolumeStatusDetails {
  48172. s.Name = &v
  48173. return s
  48174. }
  48175. // SetStatus sets the Status field's value.
  48176. func (s *VolumeStatusDetails) SetStatus(v string) *VolumeStatusDetails {
  48177. s.Status = &v
  48178. return s
  48179. }
  48180. // Describes a volume status event.
  48181. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusEvent
  48182. type VolumeStatusEvent struct {
  48183. _ struct{} `type:"structure"`
  48184. // A description of the event.
  48185. Description *string `locationName:"description" type:"string"`
  48186. // The ID of this event.
  48187. EventId *string `locationName:"eventId" type:"string"`
  48188. // The type of this event.
  48189. EventType *string `locationName:"eventType" type:"string"`
  48190. // The latest end time of the event.
  48191. NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
  48192. // The earliest start time of the event.
  48193. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
  48194. }
  48195. // String returns the string representation
  48196. func (s VolumeStatusEvent) String() string {
  48197. return awsutil.Prettify(s)
  48198. }
  48199. // GoString returns the string representation
  48200. func (s VolumeStatusEvent) GoString() string {
  48201. return s.String()
  48202. }
  48203. // SetDescription sets the Description field's value.
  48204. func (s *VolumeStatusEvent) SetDescription(v string) *VolumeStatusEvent {
  48205. s.Description = &v
  48206. return s
  48207. }
  48208. // SetEventId sets the EventId field's value.
  48209. func (s *VolumeStatusEvent) SetEventId(v string) *VolumeStatusEvent {
  48210. s.EventId = &v
  48211. return s
  48212. }
  48213. // SetEventType sets the EventType field's value.
  48214. func (s *VolumeStatusEvent) SetEventType(v string) *VolumeStatusEvent {
  48215. s.EventType = &v
  48216. return s
  48217. }
  48218. // SetNotAfter sets the NotAfter field's value.
  48219. func (s *VolumeStatusEvent) SetNotAfter(v time.Time) *VolumeStatusEvent {
  48220. s.NotAfter = &v
  48221. return s
  48222. }
  48223. // SetNotBefore sets the NotBefore field's value.
  48224. func (s *VolumeStatusEvent) SetNotBefore(v time.Time) *VolumeStatusEvent {
  48225. s.NotBefore = &v
  48226. return s
  48227. }
  48228. // Describes the status of a volume.
  48229. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusInfo
  48230. type VolumeStatusInfo struct {
  48231. _ struct{} `type:"structure"`
  48232. // The details of the volume status.
  48233. Details []*VolumeStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  48234. // The status of the volume.
  48235. Status *string `locationName:"status" type:"string" enum:"VolumeStatusInfoStatus"`
  48236. }
  48237. // String returns the string representation
  48238. func (s VolumeStatusInfo) String() string {
  48239. return awsutil.Prettify(s)
  48240. }
  48241. // GoString returns the string representation
  48242. func (s VolumeStatusInfo) GoString() string {
  48243. return s.String()
  48244. }
  48245. // SetDetails sets the Details field's value.
  48246. func (s *VolumeStatusInfo) SetDetails(v []*VolumeStatusDetails) *VolumeStatusInfo {
  48247. s.Details = v
  48248. return s
  48249. }
  48250. // SetStatus sets the Status field's value.
  48251. func (s *VolumeStatusInfo) SetStatus(v string) *VolumeStatusInfo {
  48252. s.Status = &v
  48253. return s
  48254. }
  48255. // Describes the volume status.
  48256. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusItem
  48257. type VolumeStatusItem struct {
  48258. _ struct{} `type:"structure"`
  48259. // The details of the operation.
  48260. Actions []*VolumeStatusAction `locationName:"actionsSet" locationNameList:"item" type:"list"`
  48261. // The Availability Zone of the volume.
  48262. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  48263. // A list of events associated with the volume.
  48264. Events []*VolumeStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  48265. // The volume ID.
  48266. VolumeId *string `locationName:"volumeId" type:"string"`
  48267. // The volume status.
  48268. VolumeStatus *VolumeStatusInfo `locationName:"volumeStatus" type:"structure"`
  48269. }
  48270. // String returns the string representation
  48271. func (s VolumeStatusItem) String() string {
  48272. return awsutil.Prettify(s)
  48273. }
  48274. // GoString returns the string representation
  48275. func (s VolumeStatusItem) GoString() string {
  48276. return s.String()
  48277. }
  48278. // SetActions sets the Actions field's value.
  48279. func (s *VolumeStatusItem) SetActions(v []*VolumeStatusAction) *VolumeStatusItem {
  48280. s.Actions = v
  48281. return s
  48282. }
  48283. // SetAvailabilityZone sets the AvailabilityZone field's value.
  48284. func (s *VolumeStatusItem) SetAvailabilityZone(v string) *VolumeStatusItem {
  48285. s.AvailabilityZone = &v
  48286. return s
  48287. }
  48288. // SetEvents sets the Events field's value.
  48289. func (s *VolumeStatusItem) SetEvents(v []*VolumeStatusEvent) *VolumeStatusItem {
  48290. s.Events = v
  48291. return s
  48292. }
  48293. // SetVolumeId sets the VolumeId field's value.
  48294. func (s *VolumeStatusItem) SetVolumeId(v string) *VolumeStatusItem {
  48295. s.VolumeId = &v
  48296. return s
  48297. }
  48298. // SetVolumeStatus sets the VolumeStatus field's value.
  48299. func (s *VolumeStatusItem) SetVolumeStatus(v *VolumeStatusInfo) *VolumeStatusItem {
  48300. s.VolumeStatus = v
  48301. return s
  48302. }
  48303. // Describes a VPC.
  48304. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Vpc
  48305. type Vpc struct {
  48306. _ struct{} `type:"structure"`
  48307. // The IPv4 CIDR block for the VPC.
  48308. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  48309. // The ID of the set of DHCP options you've associated with the VPC (or default
  48310. // if the default options are associated with the VPC).
  48311. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  48312. // The allowed tenancy of instances launched into the VPC.
  48313. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  48314. // Information about the IPv6 CIDR blocks associated with the VPC.
  48315. Ipv6CidrBlockAssociationSet []*VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  48316. // Indicates whether the VPC is the default VPC.
  48317. IsDefault *bool `locationName:"isDefault" type:"boolean"`
  48318. // The current state of the VPC.
  48319. State *string `locationName:"state" type:"string" enum:"VpcState"`
  48320. // Any tags assigned to the VPC.
  48321. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  48322. // The ID of the VPC.
  48323. VpcId *string `locationName:"vpcId" type:"string"`
  48324. }
  48325. // String returns the string representation
  48326. func (s Vpc) String() string {
  48327. return awsutil.Prettify(s)
  48328. }
  48329. // GoString returns the string representation
  48330. func (s Vpc) GoString() string {
  48331. return s.String()
  48332. }
  48333. // SetCidrBlock sets the CidrBlock field's value.
  48334. func (s *Vpc) SetCidrBlock(v string) *Vpc {
  48335. s.CidrBlock = &v
  48336. return s
  48337. }
  48338. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  48339. func (s *Vpc) SetDhcpOptionsId(v string) *Vpc {
  48340. s.DhcpOptionsId = &v
  48341. return s
  48342. }
  48343. // SetInstanceTenancy sets the InstanceTenancy field's value.
  48344. func (s *Vpc) SetInstanceTenancy(v string) *Vpc {
  48345. s.InstanceTenancy = &v
  48346. return s
  48347. }
  48348. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  48349. func (s *Vpc) SetIpv6CidrBlockAssociationSet(v []*VpcIpv6CidrBlockAssociation) *Vpc {
  48350. s.Ipv6CidrBlockAssociationSet = v
  48351. return s
  48352. }
  48353. // SetIsDefault sets the IsDefault field's value.
  48354. func (s *Vpc) SetIsDefault(v bool) *Vpc {
  48355. s.IsDefault = &v
  48356. return s
  48357. }
  48358. // SetState sets the State field's value.
  48359. func (s *Vpc) SetState(v string) *Vpc {
  48360. s.State = &v
  48361. return s
  48362. }
  48363. // SetTags sets the Tags field's value.
  48364. func (s *Vpc) SetTags(v []*Tag) *Vpc {
  48365. s.Tags = v
  48366. return s
  48367. }
  48368. // SetVpcId sets the VpcId field's value.
  48369. func (s *Vpc) SetVpcId(v string) *Vpc {
  48370. s.VpcId = &v
  48371. return s
  48372. }
  48373. // Describes an attachment between a virtual private gateway and a VPC.
  48374. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcAttachment
  48375. type VpcAttachment struct {
  48376. _ struct{} `type:"structure"`
  48377. // The current state of the attachment.
  48378. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  48379. // The ID of the VPC.
  48380. VpcId *string `locationName:"vpcId" type:"string"`
  48381. }
  48382. // String returns the string representation
  48383. func (s VpcAttachment) String() string {
  48384. return awsutil.Prettify(s)
  48385. }
  48386. // GoString returns the string representation
  48387. func (s VpcAttachment) GoString() string {
  48388. return s.String()
  48389. }
  48390. // SetState sets the State field's value.
  48391. func (s *VpcAttachment) SetState(v string) *VpcAttachment {
  48392. s.State = &v
  48393. return s
  48394. }
  48395. // SetVpcId sets the VpcId field's value.
  48396. func (s *VpcAttachment) SetVpcId(v string) *VpcAttachment {
  48397. s.VpcId = &v
  48398. return s
  48399. }
  48400. // Describes the state of a CIDR block.
  48401. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcCidrBlockState
  48402. type VpcCidrBlockState struct {
  48403. _ struct{} `type:"structure"`
  48404. // The state of the CIDR block.
  48405. State *string `locationName:"state" type:"string" enum:"VpcCidrBlockStateCode"`
  48406. // A message about the status of the CIDR block, if applicable.
  48407. StatusMessage *string `locationName:"statusMessage" type:"string"`
  48408. }
  48409. // String returns the string representation
  48410. func (s VpcCidrBlockState) String() string {
  48411. return awsutil.Prettify(s)
  48412. }
  48413. // GoString returns the string representation
  48414. func (s VpcCidrBlockState) GoString() string {
  48415. return s.String()
  48416. }
  48417. // SetState sets the State field's value.
  48418. func (s *VpcCidrBlockState) SetState(v string) *VpcCidrBlockState {
  48419. s.State = &v
  48420. return s
  48421. }
  48422. // SetStatusMessage sets the StatusMessage field's value.
  48423. func (s *VpcCidrBlockState) SetStatusMessage(v string) *VpcCidrBlockState {
  48424. s.StatusMessage = &v
  48425. return s
  48426. }
  48427. // Describes whether a VPC is enabled for ClassicLink.
  48428. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcClassicLink
  48429. type VpcClassicLink struct {
  48430. _ struct{} `type:"structure"`
  48431. // Indicates whether the VPC is enabled for ClassicLink.
  48432. ClassicLinkEnabled *bool `locationName:"classicLinkEnabled" type:"boolean"`
  48433. // Any tags assigned to the VPC.
  48434. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  48435. // The ID of the VPC.
  48436. VpcId *string `locationName:"vpcId" type:"string"`
  48437. }
  48438. // String returns the string representation
  48439. func (s VpcClassicLink) String() string {
  48440. return awsutil.Prettify(s)
  48441. }
  48442. // GoString returns the string representation
  48443. func (s VpcClassicLink) GoString() string {
  48444. return s.String()
  48445. }
  48446. // SetClassicLinkEnabled sets the ClassicLinkEnabled field's value.
  48447. func (s *VpcClassicLink) SetClassicLinkEnabled(v bool) *VpcClassicLink {
  48448. s.ClassicLinkEnabled = &v
  48449. return s
  48450. }
  48451. // SetTags sets the Tags field's value.
  48452. func (s *VpcClassicLink) SetTags(v []*Tag) *VpcClassicLink {
  48453. s.Tags = v
  48454. return s
  48455. }
  48456. // SetVpcId sets the VpcId field's value.
  48457. func (s *VpcClassicLink) SetVpcId(v string) *VpcClassicLink {
  48458. s.VpcId = &v
  48459. return s
  48460. }
  48461. // Describes a VPC endpoint.
  48462. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcEndpoint
  48463. type VpcEndpoint struct {
  48464. _ struct{} `type:"structure"`
  48465. // The date and time the VPC endpoint was created.
  48466. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"`
  48467. // The policy document associated with the endpoint.
  48468. PolicyDocument *string `locationName:"policyDocument" type:"string"`
  48469. // One or more route tables associated with the endpoint.
  48470. RouteTableIds []*string `locationName:"routeTableIdSet" locationNameList:"item" type:"list"`
  48471. // The name of the AWS service to which the endpoint is associated.
  48472. ServiceName *string `locationName:"serviceName" type:"string"`
  48473. // The state of the VPC endpoint.
  48474. State *string `locationName:"state" type:"string" enum:"State"`
  48475. // The ID of the VPC endpoint.
  48476. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  48477. // The ID of the VPC to which the endpoint is associated.
  48478. VpcId *string `locationName:"vpcId" type:"string"`
  48479. }
  48480. // String returns the string representation
  48481. func (s VpcEndpoint) String() string {
  48482. return awsutil.Prettify(s)
  48483. }
  48484. // GoString returns the string representation
  48485. func (s VpcEndpoint) GoString() string {
  48486. return s.String()
  48487. }
  48488. // SetCreationTimestamp sets the CreationTimestamp field's value.
  48489. func (s *VpcEndpoint) SetCreationTimestamp(v time.Time) *VpcEndpoint {
  48490. s.CreationTimestamp = &v
  48491. return s
  48492. }
  48493. // SetPolicyDocument sets the PolicyDocument field's value.
  48494. func (s *VpcEndpoint) SetPolicyDocument(v string) *VpcEndpoint {
  48495. s.PolicyDocument = &v
  48496. return s
  48497. }
  48498. // SetRouteTableIds sets the RouteTableIds field's value.
  48499. func (s *VpcEndpoint) SetRouteTableIds(v []*string) *VpcEndpoint {
  48500. s.RouteTableIds = v
  48501. return s
  48502. }
  48503. // SetServiceName sets the ServiceName field's value.
  48504. func (s *VpcEndpoint) SetServiceName(v string) *VpcEndpoint {
  48505. s.ServiceName = &v
  48506. return s
  48507. }
  48508. // SetState sets the State field's value.
  48509. func (s *VpcEndpoint) SetState(v string) *VpcEndpoint {
  48510. s.State = &v
  48511. return s
  48512. }
  48513. // SetVpcEndpointId sets the VpcEndpointId field's value.
  48514. func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint {
  48515. s.VpcEndpointId = &v
  48516. return s
  48517. }
  48518. // SetVpcId sets the VpcId field's value.
  48519. func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint {
  48520. s.VpcId = &v
  48521. return s
  48522. }
  48523. // Describes an IPv6 CIDR block associated with a VPC.
  48524. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcIpv6CidrBlockAssociation
  48525. type VpcIpv6CidrBlockAssociation struct {
  48526. _ struct{} `type:"structure"`
  48527. // The association ID for the IPv6 CIDR block.
  48528. AssociationId *string `locationName:"associationId" type:"string"`
  48529. // The IPv6 CIDR block.
  48530. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  48531. // Information about the state of the CIDR block.
  48532. Ipv6CidrBlockState *VpcCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  48533. }
  48534. // String returns the string representation
  48535. func (s VpcIpv6CidrBlockAssociation) String() string {
  48536. return awsutil.Prettify(s)
  48537. }
  48538. // GoString returns the string representation
  48539. func (s VpcIpv6CidrBlockAssociation) GoString() string {
  48540. return s.String()
  48541. }
  48542. // SetAssociationId sets the AssociationId field's value.
  48543. func (s *VpcIpv6CidrBlockAssociation) SetAssociationId(v string) *VpcIpv6CidrBlockAssociation {
  48544. s.AssociationId = &v
  48545. return s
  48546. }
  48547. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  48548. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *VpcIpv6CidrBlockAssociation {
  48549. s.Ipv6CidrBlock = &v
  48550. return s
  48551. }
  48552. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  48553. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *VpcCidrBlockState) *VpcIpv6CidrBlockAssociation {
  48554. s.Ipv6CidrBlockState = v
  48555. return s
  48556. }
  48557. // Describes a VPC peering connection.
  48558. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnection
  48559. type VpcPeeringConnection struct {
  48560. _ struct{} `type:"structure"`
  48561. // Information about the accepter VPC. CIDR block information is only returned
  48562. // when describing an active VPC peering connection.
  48563. AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"`
  48564. // The time that an unaccepted VPC peering connection will expire.
  48565. ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp" timestampFormat:"iso8601"`
  48566. // Information about the requester VPC. CIDR block information is only returned
  48567. // when describing an active VPC peering connection.
  48568. RequesterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"requesterVpcInfo" type:"structure"`
  48569. // The status of the VPC peering connection.
  48570. Status *VpcPeeringConnectionStateReason `locationName:"status" type:"structure"`
  48571. // Any tags assigned to the resource.
  48572. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  48573. // The ID of the VPC peering connection.
  48574. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  48575. }
  48576. // String returns the string representation
  48577. func (s VpcPeeringConnection) String() string {
  48578. return awsutil.Prettify(s)
  48579. }
  48580. // GoString returns the string representation
  48581. func (s VpcPeeringConnection) GoString() string {
  48582. return s.String()
  48583. }
  48584. // SetAccepterVpcInfo sets the AccepterVpcInfo field's value.
  48585. func (s *VpcPeeringConnection) SetAccepterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  48586. s.AccepterVpcInfo = v
  48587. return s
  48588. }
  48589. // SetExpirationTime sets the ExpirationTime field's value.
  48590. func (s *VpcPeeringConnection) SetExpirationTime(v time.Time) *VpcPeeringConnection {
  48591. s.ExpirationTime = &v
  48592. return s
  48593. }
  48594. // SetRequesterVpcInfo sets the RequesterVpcInfo field's value.
  48595. func (s *VpcPeeringConnection) SetRequesterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  48596. s.RequesterVpcInfo = v
  48597. return s
  48598. }
  48599. // SetStatus sets the Status field's value.
  48600. func (s *VpcPeeringConnection) SetStatus(v *VpcPeeringConnectionStateReason) *VpcPeeringConnection {
  48601. s.Status = v
  48602. return s
  48603. }
  48604. // SetTags sets the Tags field's value.
  48605. func (s *VpcPeeringConnection) SetTags(v []*Tag) *VpcPeeringConnection {
  48606. s.Tags = v
  48607. return s
  48608. }
  48609. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  48610. func (s *VpcPeeringConnection) SetVpcPeeringConnectionId(v string) *VpcPeeringConnection {
  48611. s.VpcPeeringConnectionId = &v
  48612. return s
  48613. }
  48614. // Describes the VPC peering connection options.
  48615. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionOptionsDescription
  48616. type VpcPeeringConnectionOptionsDescription struct {
  48617. _ struct{} `type:"structure"`
  48618. // Indicates whether a local VPC can resolve public DNS hostnames to private
  48619. // IP addresses when queried from instances in a peer VPC.
  48620. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  48621. // Indicates whether a local ClassicLink connection can communicate with the
  48622. // peer VPC over the VPC peering connection.
  48623. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  48624. // Indicates whether a local VPC can communicate with a ClassicLink connection
  48625. // in the peer VPC over the VPC peering connection.
  48626. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  48627. }
  48628. // String returns the string representation
  48629. func (s VpcPeeringConnectionOptionsDescription) String() string {
  48630. return awsutil.Prettify(s)
  48631. }
  48632. // GoString returns the string representation
  48633. func (s VpcPeeringConnectionOptionsDescription) GoString() string {
  48634. return s.String()
  48635. }
  48636. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  48637. func (s *VpcPeeringConnectionOptionsDescription) SetAllowDnsResolutionFromRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  48638. s.AllowDnsResolutionFromRemoteVpc = &v
  48639. return s
  48640. }
  48641. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  48642. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  48643. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  48644. return s
  48645. }
  48646. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  48647. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *VpcPeeringConnectionOptionsDescription {
  48648. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  48649. return s
  48650. }
  48651. // Describes the status of a VPC peering connection.
  48652. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionStateReason
  48653. type VpcPeeringConnectionStateReason struct {
  48654. _ struct{} `type:"structure"`
  48655. // The status of the VPC peering connection.
  48656. Code *string `locationName:"code" type:"string" enum:"VpcPeeringConnectionStateReasonCode"`
  48657. // A message that provides more information about the status, if applicable.
  48658. Message *string `locationName:"message" type:"string"`
  48659. }
  48660. // String returns the string representation
  48661. func (s VpcPeeringConnectionStateReason) String() string {
  48662. return awsutil.Prettify(s)
  48663. }
  48664. // GoString returns the string representation
  48665. func (s VpcPeeringConnectionStateReason) GoString() string {
  48666. return s.String()
  48667. }
  48668. // SetCode sets the Code field's value.
  48669. func (s *VpcPeeringConnectionStateReason) SetCode(v string) *VpcPeeringConnectionStateReason {
  48670. s.Code = &v
  48671. return s
  48672. }
  48673. // SetMessage sets the Message field's value.
  48674. func (s *VpcPeeringConnectionStateReason) SetMessage(v string) *VpcPeeringConnectionStateReason {
  48675. s.Message = &v
  48676. return s
  48677. }
  48678. // Describes a VPC in a VPC peering connection.
  48679. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionVpcInfo
  48680. type VpcPeeringConnectionVpcInfo struct {
  48681. _ struct{} `type:"structure"`
  48682. // The IPv4 CIDR block for the VPC.
  48683. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  48684. // The IPv6 CIDR block for the VPC.
  48685. Ipv6CidrBlockSet []*Ipv6CidrBlock `locationName:"ipv6CidrBlockSet" locationNameList:"item" type:"list"`
  48686. // The AWS account ID of the VPC owner.
  48687. OwnerId *string `locationName:"ownerId" type:"string"`
  48688. // Information about the VPC peering connection options for the accepter or
  48689. // requester VPC.
  48690. PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"`
  48691. // The ID of the VPC.
  48692. VpcId *string `locationName:"vpcId" type:"string"`
  48693. }
  48694. // String returns the string representation
  48695. func (s VpcPeeringConnectionVpcInfo) String() string {
  48696. return awsutil.Prettify(s)
  48697. }
  48698. // GoString returns the string representation
  48699. func (s VpcPeeringConnectionVpcInfo) GoString() string {
  48700. return s.String()
  48701. }
  48702. // SetCidrBlock sets the CidrBlock field's value.
  48703. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlock(v string) *VpcPeeringConnectionVpcInfo {
  48704. s.CidrBlock = &v
  48705. return s
  48706. }
  48707. // SetIpv6CidrBlockSet sets the Ipv6CidrBlockSet field's value.
  48708. func (s *VpcPeeringConnectionVpcInfo) SetIpv6CidrBlockSet(v []*Ipv6CidrBlock) *VpcPeeringConnectionVpcInfo {
  48709. s.Ipv6CidrBlockSet = v
  48710. return s
  48711. }
  48712. // SetOwnerId sets the OwnerId field's value.
  48713. func (s *VpcPeeringConnectionVpcInfo) SetOwnerId(v string) *VpcPeeringConnectionVpcInfo {
  48714. s.OwnerId = &v
  48715. return s
  48716. }
  48717. // SetPeeringOptions sets the PeeringOptions field's value.
  48718. func (s *VpcPeeringConnectionVpcInfo) SetPeeringOptions(v *VpcPeeringConnectionOptionsDescription) *VpcPeeringConnectionVpcInfo {
  48719. s.PeeringOptions = v
  48720. return s
  48721. }
  48722. // SetVpcId sets the VpcId field's value.
  48723. func (s *VpcPeeringConnectionVpcInfo) SetVpcId(v string) *VpcPeeringConnectionVpcInfo {
  48724. s.VpcId = &v
  48725. return s
  48726. }
  48727. // Describes a VPN connection.
  48728. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnection
  48729. type VpnConnection struct {
  48730. _ struct{} `type:"structure"`
  48731. // The configuration information for the VPN connection's customer gateway (in
  48732. // the native XML format). This element is always present in the CreateVpnConnection
  48733. // response; however, it's present in the DescribeVpnConnections response only
  48734. // if the VPN connection is in the pending or available state.
  48735. CustomerGatewayConfiguration *string `locationName:"customerGatewayConfiguration" type:"string"`
  48736. // The ID of the customer gateway at your end of the VPN connection.
  48737. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  48738. // The VPN connection options.
  48739. Options *VpnConnectionOptions `locationName:"options" type:"structure"`
  48740. // The static routes associated with the VPN connection.
  48741. Routes []*VpnStaticRoute `locationName:"routes" locationNameList:"item" type:"list"`
  48742. // The current state of the VPN connection.
  48743. State *string `locationName:"state" type:"string" enum:"VpnState"`
  48744. // Any tags assigned to the VPN connection.
  48745. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  48746. // The type of VPN connection.
  48747. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  48748. // Information about the VPN tunnel.
  48749. VgwTelemetry []*VgwTelemetry `locationName:"vgwTelemetry" locationNameList:"item" type:"list"`
  48750. // The ID of the VPN connection.
  48751. VpnConnectionId *string `locationName:"vpnConnectionId" type:"string"`
  48752. // The ID of the virtual private gateway at the AWS side of the VPN connection.
  48753. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  48754. }
  48755. // String returns the string representation
  48756. func (s VpnConnection) String() string {
  48757. return awsutil.Prettify(s)
  48758. }
  48759. // GoString returns the string representation
  48760. func (s VpnConnection) GoString() string {
  48761. return s.String()
  48762. }
  48763. // SetCustomerGatewayConfiguration sets the CustomerGatewayConfiguration field's value.
  48764. func (s *VpnConnection) SetCustomerGatewayConfiguration(v string) *VpnConnection {
  48765. s.CustomerGatewayConfiguration = &v
  48766. return s
  48767. }
  48768. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  48769. func (s *VpnConnection) SetCustomerGatewayId(v string) *VpnConnection {
  48770. s.CustomerGatewayId = &v
  48771. return s
  48772. }
  48773. // SetOptions sets the Options field's value.
  48774. func (s *VpnConnection) SetOptions(v *VpnConnectionOptions) *VpnConnection {
  48775. s.Options = v
  48776. return s
  48777. }
  48778. // SetRoutes sets the Routes field's value.
  48779. func (s *VpnConnection) SetRoutes(v []*VpnStaticRoute) *VpnConnection {
  48780. s.Routes = v
  48781. return s
  48782. }
  48783. // SetState sets the State field's value.
  48784. func (s *VpnConnection) SetState(v string) *VpnConnection {
  48785. s.State = &v
  48786. return s
  48787. }
  48788. // SetTags sets the Tags field's value.
  48789. func (s *VpnConnection) SetTags(v []*Tag) *VpnConnection {
  48790. s.Tags = v
  48791. return s
  48792. }
  48793. // SetType sets the Type field's value.
  48794. func (s *VpnConnection) SetType(v string) *VpnConnection {
  48795. s.Type = &v
  48796. return s
  48797. }
  48798. // SetVgwTelemetry sets the VgwTelemetry field's value.
  48799. func (s *VpnConnection) SetVgwTelemetry(v []*VgwTelemetry) *VpnConnection {
  48800. s.VgwTelemetry = v
  48801. return s
  48802. }
  48803. // SetVpnConnectionId sets the VpnConnectionId field's value.
  48804. func (s *VpnConnection) SetVpnConnectionId(v string) *VpnConnection {
  48805. s.VpnConnectionId = &v
  48806. return s
  48807. }
  48808. // SetVpnGatewayId sets the VpnGatewayId field's value.
  48809. func (s *VpnConnection) SetVpnGatewayId(v string) *VpnConnection {
  48810. s.VpnGatewayId = &v
  48811. return s
  48812. }
  48813. // Describes VPN connection options.
  48814. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnectionOptions
  48815. type VpnConnectionOptions struct {
  48816. _ struct{} `type:"structure"`
  48817. // Indicates whether the VPN connection uses static routes only. Static routes
  48818. // must be used for devices that don't support BGP.
  48819. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  48820. }
  48821. // String returns the string representation
  48822. func (s VpnConnectionOptions) String() string {
  48823. return awsutil.Prettify(s)
  48824. }
  48825. // GoString returns the string representation
  48826. func (s VpnConnectionOptions) GoString() string {
  48827. return s.String()
  48828. }
  48829. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  48830. func (s *VpnConnectionOptions) SetStaticRoutesOnly(v bool) *VpnConnectionOptions {
  48831. s.StaticRoutesOnly = &v
  48832. return s
  48833. }
  48834. // Describes VPN connection options.
  48835. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnectionOptionsSpecification
  48836. type VpnConnectionOptionsSpecification struct {
  48837. _ struct{} `type:"structure"`
  48838. // Indicates whether the VPN connection uses static routes only. Static routes
  48839. // must be used for devices that don't support BGP.
  48840. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  48841. }
  48842. // String returns the string representation
  48843. func (s VpnConnectionOptionsSpecification) String() string {
  48844. return awsutil.Prettify(s)
  48845. }
  48846. // GoString returns the string representation
  48847. func (s VpnConnectionOptionsSpecification) GoString() string {
  48848. return s.String()
  48849. }
  48850. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  48851. func (s *VpnConnectionOptionsSpecification) SetStaticRoutesOnly(v bool) *VpnConnectionOptionsSpecification {
  48852. s.StaticRoutesOnly = &v
  48853. return s
  48854. }
  48855. // Describes a virtual private gateway.
  48856. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnGateway
  48857. type VpnGateway struct {
  48858. _ struct{} `type:"structure"`
  48859. // The Availability Zone where the virtual private gateway was created, if applicable.
  48860. // This field may be empty or not returned.
  48861. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  48862. // The current state of the virtual private gateway.
  48863. State *string `locationName:"state" type:"string" enum:"VpnState"`
  48864. // Any tags assigned to the virtual private gateway.
  48865. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  48866. // The type of VPN connection the virtual private gateway supports.
  48867. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  48868. // Any VPCs attached to the virtual private gateway.
  48869. VpcAttachments []*VpcAttachment `locationName:"attachments" locationNameList:"item" type:"list"`
  48870. // The ID of the virtual private gateway.
  48871. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  48872. }
  48873. // String returns the string representation
  48874. func (s VpnGateway) String() string {
  48875. return awsutil.Prettify(s)
  48876. }
  48877. // GoString returns the string representation
  48878. func (s VpnGateway) GoString() string {
  48879. return s.String()
  48880. }
  48881. // SetAvailabilityZone sets the AvailabilityZone field's value.
  48882. func (s *VpnGateway) SetAvailabilityZone(v string) *VpnGateway {
  48883. s.AvailabilityZone = &v
  48884. return s
  48885. }
  48886. // SetState sets the State field's value.
  48887. func (s *VpnGateway) SetState(v string) *VpnGateway {
  48888. s.State = &v
  48889. return s
  48890. }
  48891. // SetTags sets the Tags field's value.
  48892. func (s *VpnGateway) SetTags(v []*Tag) *VpnGateway {
  48893. s.Tags = v
  48894. return s
  48895. }
  48896. // SetType sets the Type field's value.
  48897. func (s *VpnGateway) SetType(v string) *VpnGateway {
  48898. s.Type = &v
  48899. return s
  48900. }
  48901. // SetVpcAttachments sets the VpcAttachments field's value.
  48902. func (s *VpnGateway) SetVpcAttachments(v []*VpcAttachment) *VpnGateway {
  48903. s.VpcAttachments = v
  48904. return s
  48905. }
  48906. // SetVpnGatewayId sets the VpnGatewayId field's value.
  48907. func (s *VpnGateway) SetVpnGatewayId(v string) *VpnGateway {
  48908. s.VpnGatewayId = &v
  48909. return s
  48910. }
  48911. // Describes a static route for a VPN connection.
  48912. // Please also see https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnStaticRoute
  48913. type VpnStaticRoute struct {
  48914. _ struct{} `type:"structure"`
  48915. // The CIDR block associated with the local subnet of the customer data center.
  48916. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  48917. // Indicates how the routes were provided.
  48918. Source *string `locationName:"source" type:"string" enum:"VpnStaticRouteSource"`
  48919. // The current state of the static route.
  48920. State *string `locationName:"state" type:"string" enum:"VpnState"`
  48921. }
  48922. // String returns the string representation
  48923. func (s VpnStaticRoute) String() string {
  48924. return awsutil.Prettify(s)
  48925. }
  48926. // GoString returns the string representation
  48927. func (s VpnStaticRoute) GoString() string {
  48928. return s.String()
  48929. }
  48930. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  48931. func (s *VpnStaticRoute) SetDestinationCidrBlock(v string) *VpnStaticRoute {
  48932. s.DestinationCidrBlock = &v
  48933. return s
  48934. }
  48935. // SetSource sets the Source field's value.
  48936. func (s *VpnStaticRoute) SetSource(v string) *VpnStaticRoute {
  48937. s.Source = &v
  48938. return s
  48939. }
  48940. // SetState sets the State field's value.
  48941. func (s *VpnStaticRoute) SetState(v string) *VpnStaticRoute {
  48942. s.State = &v
  48943. return s
  48944. }
  48945. const (
  48946. // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value
  48947. AccountAttributeNameSupportedPlatforms = "supported-platforms"
  48948. // AccountAttributeNameDefaultVpc is a AccountAttributeName enum value
  48949. AccountAttributeNameDefaultVpc = "default-vpc"
  48950. )
  48951. const (
  48952. // ActivityStatusError is a ActivityStatus enum value
  48953. ActivityStatusError = "error"
  48954. // ActivityStatusPendingFulfillment is a ActivityStatus enum value
  48955. ActivityStatusPendingFulfillment = "pending_fulfillment"
  48956. // ActivityStatusPendingTermination is a ActivityStatus enum value
  48957. ActivityStatusPendingTermination = "pending_termination"
  48958. // ActivityStatusFulfilled is a ActivityStatus enum value
  48959. ActivityStatusFulfilled = "fulfilled"
  48960. )
  48961. const (
  48962. // AffinityDefault is a Affinity enum value
  48963. AffinityDefault = "default"
  48964. // AffinityHost is a Affinity enum value
  48965. AffinityHost = "host"
  48966. )
  48967. const (
  48968. // AllocationStateAvailable is a AllocationState enum value
  48969. AllocationStateAvailable = "available"
  48970. // AllocationStateUnderAssessment is a AllocationState enum value
  48971. AllocationStateUnderAssessment = "under-assessment"
  48972. // AllocationStatePermanentFailure is a AllocationState enum value
  48973. AllocationStatePermanentFailure = "permanent-failure"
  48974. // AllocationStateReleased is a AllocationState enum value
  48975. AllocationStateReleased = "released"
  48976. // AllocationStateReleasedPermanentFailure is a AllocationState enum value
  48977. AllocationStateReleasedPermanentFailure = "released-permanent-failure"
  48978. )
  48979. const (
  48980. // AllocationStrategyLowestPrice is a AllocationStrategy enum value
  48981. AllocationStrategyLowestPrice = "lowestPrice"
  48982. // AllocationStrategyDiversified is a AllocationStrategy enum value
  48983. AllocationStrategyDiversified = "diversified"
  48984. )
  48985. const (
  48986. // ArchitectureValuesI386 is a ArchitectureValues enum value
  48987. ArchitectureValuesI386 = "i386"
  48988. // ArchitectureValuesX8664 is a ArchitectureValues enum value
  48989. ArchitectureValuesX8664 = "x86_64"
  48990. )
  48991. const (
  48992. // AttachmentStatusAttaching is a AttachmentStatus enum value
  48993. AttachmentStatusAttaching = "attaching"
  48994. // AttachmentStatusAttached is a AttachmentStatus enum value
  48995. AttachmentStatusAttached = "attached"
  48996. // AttachmentStatusDetaching is a AttachmentStatus enum value
  48997. AttachmentStatusDetaching = "detaching"
  48998. // AttachmentStatusDetached is a AttachmentStatus enum value
  48999. AttachmentStatusDetached = "detached"
  49000. )
  49001. const (
  49002. // AutoPlacementOn is a AutoPlacement enum value
  49003. AutoPlacementOn = "on"
  49004. // AutoPlacementOff is a AutoPlacement enum value
  49005. AutoPlacementOff = "off"
  49006. )
  49007. const (
  49008. // AvailabilityZoneStateAvailable is a AvailabilityZoneState enum value
  49009. AvailabilityZoneStateAvailable = "available"
  49010. // AvailabilityZoneStateInformation is a AvailabilityZoneState enum value
  49011. AvailabilityZoneStateInformation = "information"
  49012. // AvailabilityZoneStateImpaired is a AvailabilityZoneState enum value
  49013. AvailabilityZoneStateImpaired = "impaired"
  49014. // AvailabilityZoneStateUnavailable is a AvailabilityZoneState enum value
  49015. AvailabilityZoneStateUnavailable = "unavailable"
  49016. )
  49017. const (
  49018. // BatchStateSubmitted is a BatchState enum value
  49019. BatchStateSubmitted = "submitted"
  49020. // BatchStateActive is a BatchState enum value
  49021. BatchStateActive = "active"
  49022. // BatchStateCancelled is a BatchState enum value
  49023. BatchStateCancelled = "cancelled"
  49024. // BatchStateFailed is a BatchState enum value
  49025. BatchStateFailed = "failed"
  49026. // BatchStateCancelledRunning is a BatchState enum value
  49027. BatchStateCancelledRunning = "cancelled_running"
  49028. // BatchStateCancelledTerminating is a BatchState enum value
  49029. BatchStateCancelledTerminating = "cancelled_terminating"
  49030. // BatchStateModifying is a BatchState enum value
  49031. BatchStateModifying = "modifying"
  49032. )
  49033. const (
  49034. // BundleTaskStatePending is a BundleTaskState enum value
  49035. BundleTaskStatePending = "pending"
  49036. // BundleTaskStateWaitingForShutdown is a BundleTaskState enum value
  49037. BundleTaskStateWaitingForShutdown = "waiting-for-shutdown"
  49038. // BundleTaskStateBundling is a BundleTaskState enum value
  49039. BundleTaskStateBundling = "bundling"
  49040. // BundleTaskStateStoring is a BundleTaskState enum value
  49041. BundleTaskStateStoring = "storing"
  49042. // BundleTaskStateCancelling is a BundleTaskState enum value
  49043. BundleTaskStateCancelling = "cancelling"
  49044. // BundleTaskStateComplete is a BundleTaskState enum value
  49045. BundleTaskStateComplete = "complete"
  49046. // BundleTaskStateFailed is a BundleTaskState enum value
  49047. BundleTaskStateFailed = "failed"
  49048. )
  49049. const (
  49050. // CancelBatchErrorCodeFleetRequestIdDoesNotExist is a CancelBatchErrorCode enum value
  49051. CancelBatchErrorCodeFleetRequestIdDoesNotExist = "fleetRequestIdDoesNotExist"
  49052. // CancelBatchErrorCodeFleetRequestIdMalformed is a CancelBatchErrorCode enum value
  49053. CancelBatchErrorCodeFleetRequestIdMalformed = "fleetRequestIdMalformed"
  49054. // CancelBatchErrorCodeFleetRequestNotInCancellableState is a CancelBatchErrorCode enum value
  49055. CancelBatchErrorCodeFleetRequestNotInCancellableState = "fleetRequestNotInCancellableState"
  49056. // CancelBatchErrorCodeUnexpectedError is a CancelBatchErrorCode enum value
  49057. CancelBatchErrorCodeUnexpectedError = "unexpectedError"
  49058. )
  49059. const (
  49060. // CancelSpotInstanceRequestStateActive is a CancelSpotInstanceRequestState enum value
  49061. CancelSpotInstanceRequestStateActive = "active"
  49062. // CancelSpotInstanceRequestStateOpen is a CancelSpotInstanceRequestState enum value
  49063. CancelSpotInstanceRequestStateOpen = "open"
  49064. // CancelSpotInstanceRequestStateClosed is a CancelSpotInstanceRequestState enum value
  49065. CancelSpotInstanceRequestStateClosed = "closed"
  49066. // CancelSpotInstanceRequestStateCancelled is a CancelSpotInstanceRequestState enum value
  49067. CancelSpotInstanceRequestStateCancelled = "cancelled"
  49068. // CancelSpotInstanceRequestStateCompleted is a CancelSpotInstanceRequestState enum value
  49069. CancelSpotInstanceRequestStateCompleted = "completed"
  49070. )
  49071. const (
  49072. // ContainerFormatOva is a ContainerFormat enum value
  49073. ContainerFormatOva = "ova"
  49074. )
  49075. const (
  49076. // ConversionTaskStateActive is a ConversionTaskState enum value
  49077. ConversionTaskStateActive = "active"
  49078. // ConversionTaskStateCancelling is a ConversionTaskState enum value
  49079. ConversionTaskStateCancelling = "cancelling"
  49080. // ConversionTaskStateCancelled is a ConversionTaskState enum value
  49081. ConversionTaskStateCancelled = "cancelled"
  49082. // ConversionTaskStateCompleted is a ConversionTaskState enum value
  49083. ConversionTaskStateCompleted = "completed"
  49084. )
  49085. const (
  49086. // CurrencyCodeValuesUsd is a CurrencyCodeValues enum value
  49087. CurrencyCodeValuesUsd = "USD"
  49088. )
  49089. const (
  49090. // DatafeedSubscriptionStateActive is a DatafeedSubscriptionState enum value
  49091. DatafeedSubscriptionStateActive = "Active"
  49092. // DatafeedSubscriptionStateInactive is a DatafeedSubscriptionState enum value
  49093. DatafeedSubscriptionStateInactive = "Inactive"
  49094. )
  49095. const (
  49096. // DeviceTypeEbs is a DeviceType enum value
  49097. DeviceTypeEbs = "ebs"
  49098. // DeviceTypeInstanceStore is a DeviceType enum value
  49099. DeviceTypeInstanceStore = "instance-store"
  49100. )
  49101. const (
  49102. // DiskImageFormatVmdk is a DiskImageFormat enum value
  49103. DiskImageFormatVmdk = "VMDK"
  49104. // DiskImageFormatRaw is a DiskImageFormat enum value
  49105. DiskImageFormatRaw = "RAW"
  49106. // DiskImageFormatVhd is a DiskImageFormat enum value
  49107. DiskImageFormatVhd = "VHD"
  49108. )
  49109. const (
  49110. // DomainTypeVpc is a DomainType enum value
  49111. DomainTypeVpc = "vpc"
  49112. // DomainTypeStandard is a DomainType enum value
  49113. DomainTypeStandard = "standard"
  49114. )
  49115. const (
  49116. // EventCodeInstanceReboot is a EventCode enum value
  49117. EventCodeInstanceReboot = "instance-reboot"
  49118. // EventCodeSystemReboot is a EventCode enum value
  49119. EventCodeSystemReboot = "system-reboot"
  49120. // EventCodeSystemMaintenance is a EventCode enum value
  49121. EventCodeSystemMaintenance = "system-maintenance"
  49122. // EventCodeInstanceRetirement is a EventCode enum value
  49123. EventCodeInstanceRetirement = "instance-retirement"
  49124. // EventCodeInstanceStop is a EventCode enum value
  49125. EventCodeInstanceStop = "instance-stop"
  49126. )
  49127. const (
  49128. // EventTypeInstanceChange is a EventType enum value
  49129. EventTypeInstanceChange = "instanceChange"
  49130. // EventTypeFleetRequestChange is a EventType enum value
  49131. EventTypeFleetRequestChange = "fleetRequestChange"
  49132. // EventTypeError is a EventType enum value
  49133. EventTypeError = "error"
  49134. )
  49135. const (
  49136. // ExcessCapacityTerminationPolicyNoTermination is a ExcessCapacityTerminationPolicy enum value
  49137. ExcessCapacityTerminationPolicyNoTermination = "noTermination"
  49138. // ExcessCapacityTerminationPolicyDefault is a ExcessCapacityTerminationPolicy enum value
  49139. ExcessCapacityTerminationPolicyDefault = "default"
  49140. )
  49141. const (
  49142. // ExportEnvironmentCitrix is a ExportEnvironment enum value
  49143. ExportEnvironmentCitrix = "citrix"
  49144. // ExportEnvironmentVmware is a ExportEnvironment enum value
  49145. ExportEnvironmentVmware = "vmware"
  49146. // ExportEnvironmentMicrosoft is a ExportEnvironment enum value
  49147. ExportEnvironmentMicrosoft = "microsoft"
  49148. )
  49149. const (
  49150. // ExportTaskStateActive is a ExportTaskState enum value
  49151. ExportTaskStateActive = "active"
  49152. // ExportTaskStateCancelling is a ExportTaskState enum value
  49153. ExportTaskStateCancelling = "cancelling"
  49154. // ExportTaskStateCancelled is a ExportTaskState enum value
  49155. ExportTaskStateCancelled = "cancelled"
  49156. // ExportTaskStateCompleted is a ExportTaskState enum value
  49157. ExportTaskStateCompleted = "completed"
  49158. )
  49159. const (
  49160. // FleetTypeRequest is a FleetType enum value
  49161. FleetTypeRequest = "request"
  49162. // FleetTypeMaintain is a FleetType enum value
  49163. FleetTypeMaintain = "maintain"
  49164. )
  49165. const (
  49166. // FlowLogsResourceTypeVpc is a FlowLogsResourceType enum value
  49167. FlowLogsResourceTypeVpc = "VPC"
  49168. // FlowLogsResourceTypeSubnet is a FlowLogsResourceType enum value
  49169. FlowLogsResourceTypeSubnet = "Subnet"
  49170. // FlowLogsResourceTypeNetworkInterface is a FlowLogsResourceType enum value
  49171. FlowLogsResourceTypeNetworkInterface = "NetworkInterface"
  49172. )
  49173. const (
  49174. // FpgaImageStateCodePending is a FpgaImageStateCode enum value
  49175. FpgaImageStateCodePending = "pending"
  49176. // FpgaImageStateCodeFailed is a FpgaImageStateCode enum value
  49177. FpgaImageStateCodeFailed = "failed"
  49178. // FpgaImageStateCodeAvailable is a FpgaImageStateCode enum value
  49179. FpgaImageStateCodeAvailable = "available"
  49180. // FpgaImageStateCodeUnavailable is a FpgaImageStateCode enum value
  49181. FpgaImageStateCodeUnavailable = "unavailable"
  49182. )
  49183. const (
  49184. // GatewayTypeIpsec1 is a GatewayType enum value
  49185. GatewayTypeIpsec1 = "ipsec.1"
  49186. )
  49187. const (
  49188. // HostTenancyDedicated is a HostTenancy enum value
  49189. HostTenancyDedicated = "dedicated"
  49190. // HostTenancyHost is a HostTenancy enum value
  49191. HostTenancyHost = "host"
  49192. )
  49193. const (
  49194. // HypervisorTypeOvm is a HypervisorType enum value
  49195. HypervisorTypeOvm = "ovm"
  49196. // HypervisorTypeXen is a HypervisorType enum value
  49197. HypervisorTypeXen = "xen"
  49198. )
  49199. const (
  49200. // IamInstanceProfileAssociationStateAssociating is a IamInstanceProfileAssociationState enum value
  49201. IamInstanceProfileAssociationStateAssociating = "associating"
  49202. // IamInstanceProfileAssociationStateAssociated is a IamInstanceProfileAssociationState enum value
  49203. IamInstanceProfileAssociationStateAssociated = "associated"
  49204. // IamInstanceProfileAssociationStateDisassociating is a IamInstanceProfileAssociationState enum value
  49205. IamInstanceProfileAssociationStateDisassociating = "disassociating"
  49206. // IamInstanceProfileAssociationStateDisassociated is a IamInstanceProfileAssociationState enum value
  49207. IamInstanceProfileAssociationStateDisassociated = "disassociated"
  49208. )
  49209. const (
  49210. // ImageAttributeNameDescription is a ImageAttributeName enum value
  49211. ImageAttributeNameDescription = "description"
  49212. // ImageAttributeNameKernel is a ImageAttributeName enum value
  49213. ImageAttributeNameKernel = "kernel"
  49214. // ImageAttributeNameRamdisk is a ImageAttributeName enum value
  49215. ImageAttributeNameRamdisk = "ramdisk"
  49216. // ImageAttributeNameLaunchPermission is a ImageAttributeName enum value
  49217. ImageAttributeNameLaunchPermission = "launchPermission"
  49218. // ImageAttributeNameProductCodes is a ImageAttributeName enum value
  49219. ImageAttributeNameProductCodes = "productCodes"
  49220. // ImageAttributeNameBlockDeviceMapping is a ImageAttributeName enum value
  49221. ImageAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  49222. // ImageAttributeNameSriovNetSupport is a ImageAttributeName enum value
  49223. ImageAttributeNameSriovNetSupport = "sriovNetSupport"
  49224. )
  49225. const (
  49226. // ImageStatePending is a ImageState enum value
  49227. ImageStatePending = "pending"
  49228. // ImageStateAvailable is a ImageState enum value
  49229. ImageStateAvailable = "available"
  49230. // ImageStateInvalid is a ImageState enum value
  49231. ImageStateInvalid = "invalid"
  49232. // ImageStateDeregistered is a ImageState enum value
  49233. ImageStateDeregistered = "deregistered"
  49234. // ImageStateTransient is a ImageState enum value
  49235. ImageStateTransient = "transient"
  49236. // ImageStateFailed is a ImageState enum value
  49237. ImageStateFailed = "failed"
  49238. // ImageStateError is a ImageState enum value
  49239. ImageStateError = "error"
  49240. )
  49241. const (
  49242. // ImageTypeValuesMachine is a ImageTypeValues enum value
  49243. ImageTypeValuesMachine = "machine"
  49244. // ImageTypeValuesKernel is a ImageTypeValues enum value
  49245. ImageTypeValuesKernel = "kernel"
  49246. // ImageTypeValuesRamdisk is a ImageTypeValues enum value
  49247. ImageTypeValuesRamdisk = "ramdisk"
  49248. )
  49249. const (
  49250. // InstanceAttributeNameInstanceType is a InstanceAttributeName enum value
  49251. InstanceAttributeNameInstanceType = "instanceType"
  49252. // InstanceAttributeNameKernel is a InstanceAttributeName enum value
  49253. InstanceAttributeNameKernel = "kernel"
  49254. // InstanceAttributeNameRamdisk is a InstanceAttributeName enum value
  49255. InstanceAttributeNameRamdisk = "ramdisk"
  49256. // InstanceAttributeNameUserData is a InstanceAttributeName enum value
  49257. InstanceAttributeNameUserData = "userData"
  49258. // InstanceAttributeNameDisableApiTermination is a InstanceAttributeName enum value
  49259. InstanceAttributeNameDisableApiTermination = "disableApiTermination"
  49260. // InstanceAttributeNameInstanceInitiatedShutdownBehavior is a InstanceAttributeName enum value
  49261. InstanceAttributeNameInstanceInitiatedShutdownBehavior = "instanceInitiatedShutdownBehavior"
  49262. // InstanceAttributeNameRootDeviceName is a InstanceAttributeName enum value
  49263. InstanceAttributeNameRootDeviceName = "rootDeviceName"
  49264. // InstanceAttributeNameBlockDeviceMapping is a InstanceAttributeName enum value
  49265. InstanceAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  49266. // InstanceAttributeNameProductCodes is a InstanceAttributeName enum value
  49267. InstanceAttributeNameProductCodes = "productCodes"
  49268. // InstanceAttributeNameSourceDestCheck is a InstanceAttributeName enum value
  49269. InstanceAttributeNameSourceDestCheck = "sourceDestCheck"
  49270. // InstanceAttributeNameGroupSet is a InstanceAttributeName enum value
  49271. InstanceAttributeNameGroupSet = "groupSet"
  49272. // InstanceAttributeNameEbsOptimized is a InstanceAttributeName enum value
  49273. InstanceAttributeNameEbsOptimized = "ebsOptimized"
  49274. // InstanceAttributeNameSriovNetSupport is a InstanceAttributeName enum value
  49275. InstanceAttributeNameSriovNetSupport = "sriovNetSupport"
  49276. // InstanceAttributeNameEnaSupport is a InstanceAttributeName enum value
  49277. InstanceAttributeNameEnaSupport = "enaSupport"
  49278. )
  49279. const (
  49280. // InstanceHealthStatusHealthy is a InstanceHealthStatus enum value
  49281. InstanceHealthStatusHealthy = "healthy"
  49282. // InstanceHealthStatusUnhealthy is a InstanceHealthStatus enum value
  49283. InstanceHealthStatusUnhealthy = "unhealthy"
  49284. )
  49285. const (
  49286. // InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value
  49287. InstanceLifecycleTypeSpot = "spot"
  49288. // InstanceLifecycleTypeScheduled is a InstanceLifecycleType enum value
  49289. InstanceLifecycleTypeScheduled = "scheduled"
  49290. )
  49291. const (
  49292. // InstanceStateNamePending is a InstanceStateName enum value
  49293. InstanceStateNamePending = "pending"
  49294. // InstanceStateNameRunning is a InstanceStateName enum value
  49295. InstanceStateNameRunning = "running"
  49296. // InstanceStateNameShuttingDown is a InstanceStateName enum value
  49297. InstanceStateNameShuttingDown = "shutting-down"
  49298. // InstanceStateNameTerminated is a InstanceStateName enum value
  49299. InstanceStateNameTerminated = "terminated"
  49300. // InstanceStateNameStopping is a InstanceStateName enum value
  49301. InstanceStateNameStopping = "stopping"
  49302. // InstanceStateNameStopped is a InstanceStateName enum value
  49303. InstanceStateNameStopped = "stopped"
  49304. )
  49305. const (
  49306. // InstanceTypeT1Micro is a InstanceType enum value
  49307. InstanceTypeT1Micro = "t1.micro"
  49308. // InstanceTypeT2Nano is a InstanceType enum value
  49309. InstanceTypeT2Nano = "t2.nano"
  49310. // InstanceTypeT2Micro is a InstanceType enum value
  49311. InstanceTypeT2Micro = "t2.micro"
  49312. // InstanceTypeT2Small is a InstanceType enum value
  49313. InstanceTypeT2Small = "t2.small"
  49314. // InstanceTypeT2Medium is a InstanceType enum value
  49315. InstanceTypeT2Medium = "t2.medium"
  49316. // InstanceTypeT2Large is a InstanceType enum value
  49317. InstanceTypeT2Large = "t2.large"
  49318. // InstanceTypeT2Xlarge is a InstanceType enum value
  49319. InstanceTypeT2Xlarge = "t2.xlarge"
  49320. // InstanceTypeT22xlarge is a InstanceType enum value
  49321. InstanceTypeT22xlarge = "t2.2xlarge"
  49322. // InstanceTypeM1Small is a InstanceType enum value
  49323. InstanceTypeM1Small = "m1.small"
  49324. // InstanceTypeM1Medium is a InstanceType enum value
  49325. InstanceTypeM1Medium = "m1.medium"
  49326. // InstanceTypeM1Large is a InstanceType enum value
  49327. InstanceTypeM1Large = "m1.large"
  49328. // InstanceTypeM1Xlarge is a InstanceType enum value
  49329. InstanceTypeM1Xlarge = "m1.xlarge"
  49330. // InstanceTypeM3Medium is a InstanceType enum value
  49331. InstanceTypeM3Medium = "m3.medium"
  49332. // InstanceTypeM3Large is a InstanceType enum value
  49333. InstanceTypeM3Large = "m3.large"
  49334. // InstanceTypeM3Xlarge is a InstanceType enum value
  49335. InstanceTypeM3Xlarge = "m3.xlarge"
  49336. // InstanceTypeM32xlarge is a InstanceType enum value
  49337. InstanceTypeM32xlarge = "m3.2xlarge"
  49338. // InstanceTypeM4Large is a InstanceType enum value
  49339. InstanceTypeM4Large = "m4.large"
  49340. // InstanceTypeM4Xlarge is a InstanceType enum value
  49341. InstanceTypeM4Xlarge = "m4.xlarge"
  49342. // InstanceTypeM42xlarge is a InstanceType enum value
  49343. InstanceTypeM42xlarge = "m4.2xlarge"
  49344. // InstanceTypeM44xlarge is a InstanceType enum value
  49345. InstanceTypeM44xlarge = "m4.4xlarge"
  49346. // InstanceTypeM410xlarge is a InstanceType enum value
  49347. InstanceTypeM410xlarge = "m4.10xlarge"
  49348. // InstanceTypeM416xlarge is a InstanceType enum value
  49349. InstanceTypeM416xlarge = "m4.16xlarge"
  49350. // InstanceTypeM2Xlarge is a InstanceType enum value
  49351. InstanceTypeM2Xlarge = "m2.xlarge"
  49352. // InstanceTypeM22xlarge is a InstanceType enum value
  49353. InstanceTypeM22xlarge = "m2.2xlarge"
  49354. // InstanceTypeM24xlarge is a InstanceType enum value
  49355. InstanceTypeM24xlarge = "m2.4xlarge"
  49356. // InstanceTypeCr18xlarge is a InstanceType enum value
  49357. InstanceTypeCr18xlarge = "cr1.8xlarge"
  49358. // InstanceTypeR3Large is a InstanceType enum value
  49359. InstanceTypeR3Large = "r3.large"
  49360. // InstanceTypeR3Xlarge is a InstanceType enum value
  49361. InstanceTypeR3Xlarge = "r3.xlarge"
  49362. // InstanceTypeR32xlarge is a InstanceType enum value
  49363. InstanceTypeR32xlarge = "r3.2xlarge"
  49364. // InstanceTypeR34xlarge is a InstanceType enum value
  49365. InstanceTypeR34xlarge = "r3.4xlarge"
  49366. // InstanceTypeR38xlarge is a InstanceType enum value
  49367. InstanceTypeR38xlarge = "r3.8xlarge"
  49368. // InstanceTypeR4Large is a InstanceType enum value
  49369. InstanceTypeR4Large = "r4.large"
  49370. // InstanceTypeR4Xlarge is a InstanceType enum value
  49371. InstanceTypeR4Xlarge = "r4.xlarge"
  49372. // InstanceTypeR42xlarge is a InstanceType enum value
  49373. InstanceTypeR42xlarge = "r4.2xlarge"
  49374. // InstanceTypeR44xlarge is a InstanceType enum value
  49375. InstanceTypeR44xlarge = "r4.4xlarge"
  49376. // InstanceTypeR48xlarge is a InstanceType enum value
  49377. InstanceTypeR48xlarge = "r4.8xlarge"
  49378. // InstanceTypeR416xlarge is a InstanceType enum value
  49379. InstanceTypeR416xlarge = "r4.16xlarge"
  49380. // InstanceTypeX116xlarge is a InstanceType enum value
  49381. InstanceTypeX116xlarge = "x1.16xlarge"
  49382. // InstanceTypeX132xlarge is a InstanceType enum value
  49383. InstanceTypeX132xlarge = "x1.32xlarge"
  49384. // InstanceTypeI2Xlarge is a InstanceType enum value
  49385. InstanceTypeI2Xlarge = "i2.xlarge"
  49386. // InstanceTypeI22xlarge is a InstanceType enum value
  49387. InstanceTypeI22xlarge = "i2.2xlarge"
  49388. // InstanceTypeI24xlarge is a InstanceType enum value
  49389. InstanceTypeI24xlarge = "i2.4xlarge"
  49390. // InstanceTypeI28xlarge is a InstanceType enum value
  49391. InstanceTypeI28xlarge = "i2.8xlarge"
  49392. // InstanceTypeI3Large is a InstanceType enum value
  49393. InstanceTypeI3Large = "i3.large"
  49394. // InstanceTypeI3Xlarge is a InstanceType enum value
  49395. InstanceTypeI3Xlarge = "i3.xlarge"
  49396. // InstanceTypeI32xlarge is a InstanceType enum value
  49397. InstanceTypeI32xlarge = "i3.2xlarge"
  49398. // InstanceTypeI34xlarge is a InstanceType enum value
  49399. InstanceTypeI34xlarge = "i3.4xlarge"
  49400. // InstanceTypeI38xlarge is a InstanceType enum value
  49401. InstanceTypeI38xlarge = "i3.8xlarge"
  49402. // InstanceTypeI316xlarge is a InstanceType enum value
  49403. InstanceTypeI316xlarge = "i3.16xlarge"
  49404. // InstanceTypeHi14xlarge is a InstanceType enum value
  49405. InstanceTypeHi14xlarge = "hi1.4xlarge"
  49406. // InstanceTypeHs18xlarge is a InstanceType enum value
  49407. InstanceTypeHs18xlarge = "hs1.8xlarge"
  49408. // InstanceTypeC1Medium is a InstanceType enum value
  49409. InstanceTypeC1Medium = "c1.medium"
  49410. // InstanceTypeC1Xlarge is a InstanceType enum value
  49411. InstanceTypeC1Xlarge = "c1.xlarge"
  49412. // InstanceTypeC3Large is a InstanceType enum value
  49413. InstanceTypeC3Large = "c3.large"
  49414. // InstanceTypeC3Xlarge is a InstanceType enum value
  49415. InstanceTypeC3Xlarge = "c3.xlarge"
  49416. // InstanceTypeC32xlarge is a InstanceType enum value
  49417. InstanceTypeC32xlarge = "c3.2xlarge"
  49418. // InstanceTypeC34xlarge is a InstanceType enum value
  49419. InstanceTypeC34xlarge = "c3.4xlarge"
  49420. // InstanceTypeC38xlarge is a InstanceType enum value
  49421. InstanceTypeC38xlarge = "c3.8xlarge"
  49422. // InstanceTypeC4Large is a InstanceType enum value
  49423. InstanceTypeC4Large = "c4.large"
  49424. // InstanceTypeC4Xlarge is a InstanceType enum value
  49425. InstanceTypeC4Xlarge = "c4.xlarge"
  49426. // InstanceTypeC42xlarge is a InstanceType enum value
  49427. InstanceTypeC42xlarge = "c4.2xlarge"
  49428. // InstanceTypeC44xlarge is a InstanceType enum value
  49429. InstanceTypeC44xlarge = "c4.4xlarge"
  49430. // InstanceTypeC48xlarge is a InstanceType enum value
  49431. InstanceTypeC48xlarge = "c4.8xlarge"
  49432. // InstanceTypeCc14xlarge is a InstanceType enum value
  49433. InstanceTypeCc14xlarge = "cc1.4xlarge"
  49434. // InstanceTypeCc28xlarge is a InstanceType enum value
  49435. InstanceTypeCc28xlarge = "cc2.8xlarge"
  49436. // InstanceTypeG22xlarge is a InstanceType enum value
  49437. InstanceTypeG22xlarge = "g2.2xlarge"
  49438. // InstanceTypeG28xlarge is a InstanceType enum value
  49439. InstanceTypeG28xlarge = "g2.8xlarge"
  49440. // InstanceTypeCg14xlarge is a InstanceType enum value
  49441. InstanceTypeCg14xlarge = "cg1.4xlarge"
  49442. // InstanceTypeP2Xlarge is a InstanceType enum value
  49443. InstanceTypeP2Xlarge = "p2.xlarge"
  49444. // InstanceTypeP28xlarge is a InstanceType enum value
  49445. InstanceTypeP28xlarge = "p2.8xlarge"
  49446. // InstanceTypeP216xlarge is a InstanceType enum value
  49447. InstanceTypeP216xlarge = "p2.16xlarge"
  49448. // InstanceTypeD2Xlarge is a InstanceType enum value
  49449. InstanceTypeD2Xlarge = "d2.xlarge"
  49450. // InstanceTypeD22xlarge is a InstanceType enum value
  49451. InstanceTypeD22xlarge = "d2.2xlarge"
  49452. // InstanceTypeD24xlarge is a InstanceType enum value
  49453. InstanceTypeD24xlarge = "d2.4xlarge"
  49454. // InstanceTypeD28xlarge is a InstanceType enum value
  49455. InstanceTypeD28xlarge = "d2.8xlarge"
  49456. // InstanceTypeF12xlarge is a InstanceType enum value
  49457. InstanceTypeF12xlarge = "f1.2xlarge"
  49458. // InstanceTypeF116xlarge is a InstanceType enum value
  49459. InstanceTypeF116xlarge = "f1.16xlarge"
  49460. )
  49461. const (
  49462. // ListingStateAvailable is a ListingState enum value
  49463. ListingStateAvailable = "available"
  49464. // ListingStateSold is a ListingState enum value
  49465. ListingStateSold = "sold"
  49466. // ListingStateCancelled is a ListingState enum value
  49467. ListingStateCancelled = "cancelled"
  49468. // ListingStatePending is a ListingState enum value
  49469. ListingStatePending = "pending"
  49470. )
  49471. const (
  49472. // ListingStatusActive is a ListingStatus enum value
  49473. ListingStatusActive = "active"
  49474. // ListingStatusPending is a ListingStatus enum value
  49475. ListingStatusPending = "pending"
  49476. // ListingStatusCancelled is a ListingStatus enum value
  49477. ListingStatusCancelled = "cancelled"
  49478. // ListingStatusClosed is a ListingStatus enum value
  49479. ListingStatusClosed = "closed"
  49480. )
  49481. const (
  49482. // MonitoringStateDisabled is a MonitoringState enum value
  49483. MonitoringStateDisabled = "disabled"
  49484. // MonitoringStateDisabling is a MonitoringState enum value
  49485. MonitoringStateDisabling = "disabling"
  49486. // MonitoringStateEnabled is a MonitoringState enum value
  49487. MonitoringStateEnabled = "enabled"
  49488. // MonitoringStatePending is a MonitoringState enum value
  49489. MonitoringStatePending = "pending"
  49490. )
  49491. const (
  49492. // MoveStatusMovingToVpc is a MoveStatus enum value
  49493. MoveStatusMovingToVpc = "movingToVpc"
  49494. // MoveStatusRestoringToClassic is a MoveStatus enum value
  49495. MoveStatusRestoringToClassic = "restoringToClassic"
  49496. )
  49497. const (
  49498. // NatGatewayStatePending is a NatGatewayState enum value
  49499. NatGatewayStatePending = "pending"
  49500. // NatGatewayStateFailed is a NatGatewayState enum value
  49501. NatGatewayStateFailed = "failed"
  49502. // NatGatewayStateAvailable is a NatGatewayState enum value
  49503. NatGatewayStateAvailable = "available"
  49504. // NatGatewayStateDeleting is a NatGatewayState enum value
  49505. NatGatewayStateDeleting = "deleting"
  49506. // NatGatewayStateDeleted is a NatGatewayState enum value
  49507. NatGatewayStateDeleted = "deleted"
  49508. )
  49509. const (
  49510. // NetworkInterfaceAttributeDescription is a NetworkInterfaceAttribute enum value
  49511. NetworkInterfaceAttributeDescription = "description"
  49512. // NetworkInterfaceAttributeGroupSet is a NetworkInterfaceAttribute enum value
  49513. NetworkInterfaceAttributeGroupSet = "groupSet"
  49514. // NetworkInterfaceAttributeSourceDestCheck is a NetworkInterfaceAttribute enum value
  49515. NetworkInterfaceAttributeSourceDestCheck = "sourceDestCheck"
  49516. // NetworkInterfaceAttributeAttachment is a NetworkInterfaceAttribute enum value
  49517. NetworkInterfaceAttributeAttachment = "attachment"
  49518. )
  49519. const (
  49520. // NetworkInterfaceStatusAvailable is a NetworkInterfaceStatus enum value
  49521. NetworkInterfaceStatusAvailable = "available"
  49522. // NetworkInterfaceStatusAttaching is a NetworkInterfaceStatus enum value
  49523. NetworkInterfaceStatusAttaching = "attaching"
  49524. // NetworkInterfaceStatusInUse is a NetworkInterfaceStatus enum value
  49525. NetworkInterfaceStatusInUse = "in-use"
  49526. // NetworkInterfaceStatusDetaching is a NetworkInterfaceStatus enum value
  49527. NetworkInterfaceStatusDetaching = "detaching"
  49528. )
  49529. const (
  49530. // NetworkInterfaceTypeInterface is a NetworkInterfaceType enum value
  49531. NetworkInterfaceTypeInterface = "interface"
  49532. // NetworkInterfaceTypeNatGateway is a NetworkInterfaceType enum value
  49533. NetworkInterfaceTypeNatGateway = "natGateway"
  49534. )
  49535. const (
  49536. // OfferingClassTypeStandard is a OfferingClassType enum value
  49537. OfferingClassTypeStandard = "standard"
  49538. // OfferingClassTypeConvertible is a OfferingClassType enum value
  49539. OfferingClassTypeConvertible = "convertible"
  49540. )
  49541. const (
  49542. // OfferingTypeValuesHeavyUtilization is a OfferingTypeValues enum value
  49543. OfferingTypeValuesHeavyUtilization = "Heavy Utilization"
  49544. // OfferingTypeValuesMediumUtilization is a OfferingTypeValues enum value
  49545. OfferingTypeValuesMediumUtilization = "Medium Utilization"
  49546. // OfferingTypeValuesLightUtilization is a OfferingTypeValues enum value
  49547. OfferingTypeValuesLightUtilization = "Light Utilization"
  49548. // OfferingTypeValuesNoUpfront is a OfferingTypeValues enum value
  49549. OfferingTypeValuesNoUpfront = "No Upfront"
  49550. // OfferingTypeValuesPartialUpfront is a OfferingTypeValues enum value
  49551. OfferingTypeValuesPartialUpfront = "Partial Upfront"
  49552. // OfferingTypeValuesAllUpfront is a OfferingTypeValues enum value
  49553. OfferingTypeValuesAllUpfront = "All Upfront"
  49554. )
  49555. const (
  49556. // OperationTypeAdd is a OperationType enum value
  49557. OperationTypeAdd = "add"
  49558. // OperationTypeRemove is a OperationType enum value
  49559. OperationTypeRemove = "remove"
  49560. )
  49561. const (
  49562. // PaymentOptionAllUpfront is a PaymentOption enum value
  49563. PaymentOptionAllUpfront = "AllUpfront"
  49564. // PaymentOptionPartialUpfront is a PaymentOption enum value
  49565. PaymentOptionPartialUpfront = "PartialUpfront"
  49566. // PaymentOptionNoUpfront is a PaymentOption enum value
  49567. PaymentOptionNoUpfront = "NoUpfront"
  49568. )
  49569. const (
  49570. // PermissionGroupAll is a PermissionGroup enum value
  49571. PermissionGroupAll = "all"
  49572. )
  49573. const (
  49574. // PlacementGroupStatePending is a PlacementGroupState enum value
  49575. PlacementGroupStatePending = "pending"
  49576. // PlacementGroupStateAvailable is a PlacementGroupState enum value
  49577. PlacementGroupStateAvailable = "available"
  49578. // PlacementGroupStateDeleting is a PlacementGroupState enum value
  49579. PlacementGroupStateDeleting = "deleting"
  49580. // PlacementGroupStateDeleted is a PlacementGroupState enum value
  49581. PlacementGroupStateDeleted = "deleted"
  49582. )
  49583. const (
  49584. // PlacementStrategyCluster is a PlacementStrategy enum value
  49585. PlacementStrategyCluster = "cluster"
  49586. )
  49587. const (
  49588. // PlatformValuesWindows is a PlatformValues enum value
  49589. PlatformValuesWindows = "Windows"
  49590. )
  49591. const (
  49592. // ProductCodeValuesDevpay is a ProductCodeValues enum value
  49593. ProductCodeValuesDevpay = "devpay"
  49594. // ProductCodeValuesMarketplace is a ProductCodeValues enum value
  49595. ProductCodeValuesMarketplace = "marketplace"
  49596. )
  49597. const (
  49598. // RIProductDescriptionLinuxUnix is a RIProductDescription enum value
  49599. RIProductDescriptionLinuxUnix = "Linux/UNIX"
  49600. // RIProductDescriptionLinuxUnixamazonVpc is a RIProductDescription enum value
  49601. RIProductDescriptionLinuxUnixamazonVpc = "Linux/UNIX (Amazon VPC)"
  49602. // RIProductDescriptionWindows is a RIProductDescription enum value
  49603. RIProductDescriptionWindows = "Windows"
  49604. // RIProductDescriptionWindowsAmazonVpc is a RIProductDescription enum value
  49605. RIProductDescriptionWindowsAmazonVpc = "Windows (Amazon VPC)"
  49606. )
  49607. const (
  49608. // RecurringChargeFrequencyHourly is a RecurringChargeFrequency enum value
  49609. RecurringChargeFrequencyHourly = "Hourly"
  49610. )
  49611. const (
  49612. // ReportInstanceReasonCodesInstanceStuckInState is a ReportInstanceReasonCodes enum value
  49613. ReportInstanceReasonCodesInstanceStuckInState = "instance-stuck-in-state"
  49614. // ReportInstanceReasonCodesUnresponsive is a ReportInstanceReasonCodes enum value
  49615. ReportInstanceReasonCodesUnresponsive = "unresponsive"
  49616. // ReportInstanceReasonCodesNotAcceptingCredentials is a ReportInstanceReasonCodes enum value
  49617. ReportInstanceReasonCodesNotAcceptingCredentials = "not-accepting-credentials"
  49618. // ReportInstanceReasonCodesPasswordNotAvailable is a ReportInstanceReasonCodes enum value
  49619. ReportInstanceReasonCodesPasswordNotAvailable = "password-not-available"
  49620. // ReportInstanceReasonCodesPerformanceNetwork is a ReportInstanceReasonCodes enum value
  49621. ReportInstanceReasonCodesPerformanceNetwork = "performance-network"
  49622. // ReportInstanceReasonCodesPerformanceInstanceStore is a ReportInstanceReasonCodes enum value
  49623. ReportInstanceReasonCodesPerformanceInstanceStore = "performance-instance-store"
  49624. // ReportInstanceReasonCodesPerformanceEbsVolume is a ReportInstanceReasonCodes enum value
  49625. ReportInstanceReasonCodesPerformanceEbsVolume = "performance-ebs-volume"
  49626. // ReportInstanceReasonCodesPerformanceOther is a ReportInstanceReasonCodes enum value
  49627. ReportInstanceReasonCodesPerformanceOther = "performance-other"
  49628. // ReportInstanceReasonCodesOther is a ReportInstanceReasonCodes enum value
  49629. ReportInstanceReasonCodesOther = "other"
  49630. )
  49631. const (
  49632. // ReportStatusTypeOk is a ReportStatusType enum value
  49633. ReportStatusTypeOk = "ok"
  49634. // ReportStatusTypeImpaired is a ReportStatusType enum value
  49635. ReportStatusTypeImpaired = "impaired"
  49636. )
  49637. const (
  49638. // ReservationStatePaymentPending is a ReservationState enum value
  49639. ReservationStatePaymentPending = "payment-pending"
  49640. // ReservationStatePaymentFailed is a ReservationState enum value
  49641. ReservationStatePaymentFailed = "payment-failed"
  49642. // ReservationStateActive is a ReservationState enum value
  49643. ReservationStateActive = "active"
  49644. // ReservationStateRetired is a ReservationState enum value
  49645. ReservationStateRetired = "retired"
  49646. )
  49647. const (
  49648. // ReservedInstanceStatePaymentPending is a ReservedInstanceState enum value
  49649. ReservedInstanceStatePaymentPending = "payment-pending"
  49650. // ReservedInstanceStateActive is a ReservedInstanceState enum value
  49651. ReservedInstanceStateActive = "active"
  49652. // ReservedInstanceStatePaymentFailed is a ReservedInstanceState enum value
  49653. ReservedInstanceStatePaymentFailed = "payment-failed"
  49654. // ReservedInstanceStateRetired is a ReservedInstanceState enum value
  49655. ReservedInstanceStateRetired = "retired"
  49656. )
  49657. const (
  49658. // ResetImageAttributeNameLaunchPermission is a ResetImageAttributeName enum value
  49659. ResetImageAttributeNameLaunchPermission = "launchPermission"
  49660. )
  49661. const (
  49662. // ResourceTypeCustomerGateway is a ResourceType enum value
  49663. ResourceTypeCustomerGateway = "customer-gateway"
  49664. // ResourceTypeDhcpOptions is a ResourceType enum value
  49665. ResourceTypeDhcpOptions = "dhcp-options"
  49666. // ResourceTypeImage is a ResourceType enum value
  49667. ResourceTypeImage = "image"
  49668. // ResourceTypeInstance is a ResourceType enum value
  49669. ResourceTypeInstance = "instance"
  49670. // ResourceTypeInternetGateway is a ResourceType enum value
  49671. ResourceTypeInternetGateway = "internet-gateway"
  49672. // ResourceTypeNetworkAcl is a ResourceType enum value
  49673. ResourceTypeNetworkAcl = "network-acl"
  49674. // ResourceTypeNetworkInterface is a ResourceType enum value
  49675. ResourceTypeNetworkInterface = "network-interface"
  49676. // ResourceTypeReservedInstances is a ResourceType enum value
  49677. ResourceTypeReservedInstances = "reserved-instances"
  49678. // ResourceTypeRouteTable is a ResourceType enum value
  49679. ResourceTypeRouteTable = "route-table"
  49680. // ResourceTypeSnapshot is a ResourceType enum value
  49681. ResourceTypeSnapshot = "snapshot"
  49682. // ResourceTypeSpotInstancesRequest is a ResourceType enum value
  49683. ResourceTypeSpotInstancesRequest = "spot-instances-request"
  49684. // ResourceTypeSubnet is a ResourceType enum value
  49685. ResourceTypeSubnet = "subnet"
  49686. // ResourceTypeSecurityGroup is a ResourceType enum value
  49687. ResourceTypeSecurityGroup = "security-group"
  49688. // ResourceTypeVolume is a ResourceType enum value
  49689. ResourceTypeVolume = "volume"
  49690. // ResourceTypeVpc is a ResourceType enum value
  49691. ResourceTypeVpc = "vpc"
  49692. // ResourceTypeVpnConnection is a ResourceType enum value
  49693. ResourceTypeVpnConnection = "vpn-connection"
  49694. // ResourceTypeVpnGateway is a ResourceType enum value
  49695. ResourceTypeVpnGateway = "vpn-gateway"
  49696. )
  49697. const (
  49698. // RouteOriginCreateRouteTable is a RouteOrigin enum value
  49699. RouteOriginCreateRouteTable = "CreateRouteTable"
  49700. // RouteOriginCreateRoute is a RouteOrigin enum value
  49701. RouteOriginCreateRoute = "CreateRoute"
  49702. // RouteOriginEnableVgwRoutePropagation is a RouteOrigin enum value
  49703. RouteOriginEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  49704. )
  49705. const (
  49706. // RouteStateActive is a RouteState enum value
  49707. RouteStateActive = "active"
  49708. // RouteStateBlackhole is a RouteState enum value
  49709. RouteStateBlackhole = "blackhole"
  49710. )
  49711. const (
  49712. // RuleActionAllow is a RuleAction enum value
  49713. RuleActionAllow = "allow"
  49714. // RuleActionDeny is a RuleAction enum value
  49715. RuleActionDeny = "deny"
  49716. )
  49717. const (
  49718. // ShutdownBehaviorStop is a ShutdownBehavior enum value
  49719. ShutdownBehaviorStop = "stop"
  49720. // ShutdownBehaviorTerminate is a ShutdownBehavior enum value
  49721. ShutdownBehaviorTerminate = "terminate"
  49722. )
  49723. const (
  49724. // SnapshotAttributeNameProductCodes is a SnapshotAttributeName enum value
  49725. SnapshotAttributeNameProductCodes = "productCodes"
  49726. // SnapshotAttributeNameCreateVolumePermission is a SnapshotAttributeName enum value
  49727. SnapshotAttributeNameCreateVolumePermission = "createVolumePermission"
  49728. )
  49729. const (
  49730. // SnapshotStatePending is a SnapshotState enum value
  49731. SnapshotStatePending = "pending"
  49732. // SnapshotStateCompleted is a SnapshotState enum value
  49733. SnapshotStateCompleted = "completed"
  49734. // SnapshotStateError is a SnapshotState enum value
  49735. SnapshotStateError = "error"
  49736. )
  49737. const (
  49738. // SpotInstanceStateOpen is a SpotInstanceState enum value
  49739. SpotInstanceStateOpen = "open"
  49740. // SpotInstanceStateActive is a SpotInstanceState enum value
  49741. SpotInstanceStateActive = "active"
  49742. // SpotInstanceStateClosed is a SpotInstanceState enum value
  49743. SpotInstanceStateClosed = "closed"
  49744. // SpotInstanceStateCancelled is a SpotInstanceState enum value
  49745. SpotInstanceStateCancelled = "cancelled"
  49746. // SpotInstanceStateFailed is a SpotInstanceState enum value
  49747. SpotInstanceStateFailed = "failed"
  49748. )
  49749. const (
  49750. // SpotInstanceTypeOneTime is a SpotInstanceType enum value
  49751. SpotInstanceTypeOneTime = "one-time"
  49752. // SpotInstanceTypePersistent is a SpotInstanceType enum value
  49753. SpotInstanceTypePersistent = "persistent"
  49754. )
  49755. const (
  49756. // StatePending is a State enum value
  49757. StatePending = "Pending"
  49758. // StateAvailable is a State enum value
  49759. StateAvailable = "Available"
  49760. // StateDeleting is a State enum value
  49761. StateDeleting = "Deleting"
  49762. // StateDeleted is a State enum value
  49763. StateDeleted = "Deleted"
  49764. )
  49765. const (
  49766. // StatusMoveInProgress is a Status enum value
  49767. StatusMoveInProgress = "MoveInProgress"
  49768. // StatusInVpc is a Status enum value
  49769. StatusInVpc = "InVpc"
  49770. // StatusInClassic is a Status enum value
  49771. StatusInClassic = "InClassic"
  49772. )
  49773. const (
  49774. // StatusNameReachability is a StatusName enum value
  49775. StatusNameReachability = "reachability"
  49776. )
  49777. const (
  49778. // StatusTypePassed is a StatusType enum value
  49779. StatusTypePassed = "passed"
  49780. // StatusTypeFailed is a StatusType enum value
  49781. StatusTypeFailed = "failed"
  49782. // StatusTypeInsufficientData is a StatusType enum value
  49783. StatusTypeInsufficientData = "insufficient-data"
  49784. // StatusTypeInitializing is a StatusType enum value
  49785. StatusTypeInitializing = "initializing"
  49786. )
  49787. const (
  49788. // SubnetCidrBlockStateCodeAssociating is a SubnetCidrBlockStateCode enum value
  49789. SubnetCidrBlockStateCodeAssociating = "associating"
  49790. // SubnetCidrBlockStateCodeAssociated is a SubnetCidrBlockStateCode enum value
  49791. SubnetCidrBlockStateCodeAssociated = "associated"
  49792. // SubnetCidrBlockStateCodeDisassociating is a SubnetCidrBlockStateCode enum value
  49793. SubnetCidrBlockStateCodeDisassociating = "disassociating"
  49794. // SubnetCidrBlockStateCodeDisassociated is a SubnetCidrBlockStateCode enum value
  49795. SubnetCidrBlockStateCodeDisassociated = "disassociated"
  49796. // SubnetCidrBlockStateCodeFailing is a SubnetCidrBlockStateCode enum value
  49797. SubnetCidrBlockStateCodeFailing = "failing"
  49798. // SubnetCidrBlockStateCodeFailed is a SubnetCidrBlockStateCode enum value
  49799. SubnetCidrBlockStateCodeFailed = "failed"
  49800. )
  49801. const (
  49802. // SubnetStatePending is a SubnetState enum value
  49803. SubnetStatePending = "pending"
  49804. // SubnetStateAvailable is a SubnetState enum value
  49805. SubnetStateAvailable = "available"
  49806. )
  49807. const (
  49808. // SummaryStatusOk is a SummaryStatus enum value
  49809. SummaryStatusOk = "ok"
  49810. // SummaryStatusImpaired is a SummaryStatus enum value
  49811. SummaryStatusImpaired = "impaired"
  49812. // SummaryStatusInsufficientData is a SummaryStatus enum value
  49813. SummaryStatusInsufficientData = "insufficient-data"
  49814. // SummaryStatusNotApplicable is a SummaryStatus enum value
  49815. SummaryStatusNotApplicable = "not-applicable"
  49816. // SummaryStatusInitializing is a SummaryStatus enum value
  49817. SummaryStatusInitializing = "initializing"
  49818. )
  49819. const (
  49820. // TelemetryStatusUp is a TelemetryStatus enum value
  49821. TelemetryStatusUp = "UP"
  49822. // TelemetryStatusDown is a TelemetryStatus enum value
  49823. TelemetryStatusDown = "DOWN"
  49824. )
  49825. const (
  49826. // TenancyDefault is a Tenancy enum value
  49827. TenancyDefault = "default"
  49828. // TenancyDedicated is a Tenancy enum value
  49829. TenancyDedicated = "dedicated"
  49830. // TenancyHost is a Tenancy enum value
  49831. TenancyHost = "host"
  49832. )
  49833. const (
  49834. // TrafficTypeAccept is a TrafficType enum value
  49835. TrafficTypeAccept = "ACCEPT"
  49836. // TrafficTypeReject is a TrafficType enum value
  49837. TrafficTypeReject = "REJECT"
  49838. // TrafficTypeAll is a TrafficType enum value
  49839. TrafficTypeAll = "ALL"
  49840. )
  49841. const (
  49842. // VirtualizationTypeHvm is a VirtualizationType enum value
  49843. VirtualizationTypeHvm = "hvm"
  49844. // VirtualizationTypeParavirtual is a VirtualizationType enum value
  49845. VirtualizationTypeParavirtual = "paravirtual"
  49846. )
  49847. const (
  49848. // VolumeAttachmentStateAttaching is a VolumeAttachmentState enum value
  49849. VolumeAttachmentStateAttaching = "attaching"
  49850. // VolumeAttachmentStateAttached is a VolumeAttachmentState enum value
  49851. VolumeAttachmentStateAttached = "attached"
  49852. // VolumeAttachmentStateDetaching is a VolumeAttachmentState enum value
  49853. VolumeAttachmentStateDetaching = "detaching"
  49854. // VolumeAttachmentStateDetached is a VolumeAttachmentState enum value
  49855. VolumeAttachmentStateDetached = "detached"
  49856. )
  49857. const (
  49858. // VolumeAttributeNameAutoEnableIo is a VolumeAttributeName enum value
  49859. VolumeAttributeNameAutoEnableIo = "autoEnableIO"
  49860. // VolumeAttributeNameProductCodes is a VolumeAttributeName enum value
  49861. VolumeAttributeNameProductCodes = "productCodes"
  49862. )
  49863. const (
  49864. // VolumeModificationStateModifying is a VolumeModificationState enum value
  49865. VolumeModificationStateModifying = "modifying"
  49866. // VolumeModificationStateOptimizing is a VolumeModificationState enum value
  49867. VolumeModificationStateOptimizing = "optimizing"
  49868. // VolumeModificationStateCompleted is a VolumeModificationState enum value
  49869. VolumeModificationStateCompleted = "completed"
  49870. // VolumeModificationStateFailed is a VolumeModificationState enum value
  49871. VolumeModificationStateFailed = "failed"
  49872. )
  49873. const (
  49874. // VolumeStateCreating is a VolumeState enum value
  49875. VolumeStateCreating = "creating"
  49876. // VolumeStateAvailable is a VolumeState enum value
  49877. VolumeStateAvailable = "available"
  49878. // VolumeStateInUse is a VolumeState enum value
  49879. VolumeStateInUse = "in-use"
  49880. // VolumeStateDeleting is a VolumeState enum value
  49881. VolumeStateDeleting = "deleting"
  49882. // VolumeStateDeleted is a VolumeState enum value
  49883. VolumeStateDeleted = "deleted"
  49884. // VolumeStateError is a VolumeState enum value
  49885. VolumeStateError = "error"
  49886. )
  49887. const (
  49888. // VolumeStatusInfoStatusOk is a VolumeStatusInfoStatus enum value
  49889. VolumeStatusInfoStatusOk = "ok"
  49890. // VolumeStatusInfoStatusImpaired is a VolumeStatusInfoStatus enum value
  49891. VolumeStatusInfoStatusImpaired = "impaired"
  49892. // VolumeStatusInfoStatusInsufficientData is a VolumeStatusInfoStatus enum value
  49893. VolumeStatusInfoStatusInsufficientData = "insufficient-data"
  49894. )
  49895. const (
  49896. // VolumeStatusNameIoEnabled is a VolumeStatusName enum value
  49897. VolumeStatusNameIoEnabled = "io-enabled"
  49898. // VolumeStatusNameIoPerformance is a VolumeStatusName enum value
  49899. VolumeStatusNameIoPerformance = "io-performance"
  49900. )
  49901. const (
  49902. // VolumeTypeStandard is a VolumeType enum value
  49903. VolumeTypeStandard = "standard"
  49904. // VolumeTypeIo1 is a VolumeType enum value
  49905. VolumeTypeIo1 = "io1"
  49906. // VolumeTypeGp2 is a VolumeType enum value
  49907. VolumeTypeGp2 = "gp2"
  49908. // VolumeTypeSc1 is a VolumeType enum value
  49909. VolumeTypeSc1 = "sc1"
  49910. // VolumeTypeSt1 is a VolumeType enum value
  49911. VolumeTypeSt1 = "st1"
  49912. )
  49913. const (
  49914. // VpcAttributeNameEnableDnsSupport is a VpcAttributeName enum value
  49915. VpcAttributeNameEnableDnsSupport = "enableDnsSupport"
  49916. // VpcAttributeNameEnableDnsHostnames is a VpcAttributeName enum value
  49917. VpcAttributeNameEnableDnsHostnames = "enableDnsHostnames"
  49918. )
  49919. const (
  49920. // VpcCidrBlockStateCodeAssociating is a VpcCidrBlockStateCode enum value
  49921. VpcCidrBlockStateCodeAssociating = "associating"
  49922. // VpcCidrBlockStateCodeAssociated is a VpcCidrBlockStateCode enum value
  49923. VpcCidrBlockStateCodeAssociated = "associated"
  49924. // VpcCidrBlockStateCodeDisassociating is a VpcCidrBlockStateCode enum value
  49925. VpcCidrBlockStateCodeDisassociating = "disassociating"
  49926. // VpcCidrBlockStateCodeDisassociated is a VpcCidrBlockStateCode enum value
  49927. VpcCidrBlockStateCodeDisassociated = "disassociated"
  49928. // VpcCidrBlockStateCodeFailing is a VpcCidrBlockStateCode enum value
  49929. VpcCidrBlockStateCodeFailing = "failing"
  49930. // VpcCidrBlockStateCodeFailed is a VpcCidrBlockStateCode enum value
  49931. VpcCidrBlockStateCodeFailed = "failed"
  49932. )
  49933. const (
  49934. // VpcPeeringConnectionStateReasonCodeInitiatingRequest is a VpcPeeringConnectionStateReasonCode enum value
  49935. VpcPeeringConnectionStateReasonCodeInitiatingRequest = "initiating-request"
  49936. // VpcPeeringConnectionStateReasonCodePendingAcceptance is a VpcPeeringConnectionStateReasonCode enum value
  49937. VpcPeeringConnectionStateReasonCodePendingAcceptance = "pending-acceptance"
  49938. // VpcPeeringConnectionStateReasonCodeActive is a VpcPeeringConnectionStateReasonCode enum value
  49939. VpcPeeringConnectionStateReasonCodeActive = "active"
  49940. // VpcPeeringConnectionStateReasonCodeDeleted is a VpcPeeringConnectionStateReasonCode enum value
  49941. VpcPeeringConnectionStateReasonCodeDeleted = "deleted"
  49942. // VpcPeeringConnectionStateReasonCodeRejected is a VpcPeeringConnectionStateReasonCode enum value
  49943. VpcPeeringConnectionStateReasonCodeRejected = "rejected"
  49944. // VpcPeeringConnectionStateReasonCodeFailed is a VpcPeeringConnectionStateReasonCode enum value
  49945. VpcPeeringConnectionStateReasonCodeFailed = "failed"
  49946. // VpcPeeringConnectionStateReasonCodeExpired is a VpcPeeringConnectionStateReasonCode enum value
  49947. VpcPeeringConnectionStateReasonCodeExpired = "expired"
  49948. // VpcPeeringConnectionStateReasonCodeProvisioning is a VpcPeeringConnectionStateReasonCode enum value
  49949. VpcPeeringConnectionStateReasonCodeProvisioning = "provisioning"
  49950. // VpcPeeringConnectionStateReasonCodeDeleting is a VpcPeeringConnectionStateReasonCode enum value
  49951. VpcPeeringConnectionStateReasonCodeDeleting = "deleting"
  49952. )
  49953. const (
  49954. // VpcStatePending is a VpcState enum value
  49955. VpcStatePending = "pending"
  49956. // VpcStateAvailable is a VpcState enum value
  49957. VpcStateAvailable = "available"
  49958. )
  49959. const (
  49960. // VpnStatePending is a VpnState enum value
  49961. VpnStatePending = "pending"
  49962. // VpnStateAvailable is a VpnState enum value
  49963. VpnStateAvailable = "available"
  49964. // VpnStateDeleting is a VpnState enum value
  49965. VpnStateDeleting = "deleting"
  49966. // VpnStateDeleted is a VpnState enum value
  49967. VpnStateDeleted = "deleted"
  49968. )
  49969. const (
  49970. // VpnStaticRouteSourceStatic is a VpnStaticRouteSource enum value
  49971. VpnStaticRouteSourceStatic = "Static"
  49972. )
  49973. const (
  49974. // ScopeAvailabilityZone is a scope enum value
  49975. ScopeAvailabilityZone = "Availability Zone"
  49976. // ScopeRegion is a scope enum value
  49977. ScopeRegion = "Region"
  49978. )