api.go 2.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757
  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 will be populated with the request's response once the request complets
  16. // successfuly.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AcceptReservedInstancesExchangeQuote for more information on using the AcceptReservedInstancesExchangeQuote
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AcceptReservedInstancesExchangeQuoteRequest method.
  29. // req, resp := client.AcceptReservedInstancesExchangeQuoteRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuote
  37. func (c *EC2) AcceptReservedInstancesExchangeQuoteRequest(input *AcceptReservedInstancesExchangeQuoteInput) (req *request.Request, output *AcceptReservedInstancesExchangeQuoteOutput) {
  38. op := &request.Operation{
  39. Name: opAcceptReservedInstancesExchangeQuote,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AcceptReservedInstancesExchangeQuoteInput{}
  45. }
  46. output = &AcceptReservedInstancesExchangeQuoteOutput{}
  47. req = c.newRequest(op, input, output)
  48. return
  49. }
  50. // AcceptReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud.
  51. //
  52. // Accepts the Convertible Reserved Instance exchange quote described in the
  53. // GetReservedInstancesExchangeQuote call.
  54. //
  55. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  56. // with awserr.Error's Code and Message methods to get detailed information about
  57. // the error.
  58. //
  59. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  60. // API operation AcceptReservedInstancesExchangeQuote for usage and error information.
  61. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuote
  62. func (c *EC2) AcceptReservedInstancesExchangeQuote(input *AcceptReservedInstancesExchangeQuoteInput) (*AcceptReservedInstancesExchangeQuoteOutput, error) {
  63. req, out := c.AcceptReservedInstancesExchangeQuoteRequest(input)
  64. return out, req.Send()
  65. }
  66. // AcceptReservedInstancesExchangeQuoteWithContext is the same as AcceptReservedInstancesExchangeQuote with the addition of
  67. // the ability to pass a context and additional request options.
  68. //
  69. // See AcceptReservedInstancesExchangeQuote for details on how to use this API operation.
  70. //
  71. // The context must be non-nil and will be used for request cancellation. If
  72. // the context is nil a panic will occur. In the future the SDK may create
  73. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  74. // for more information on using Contexts.
  75. func (c *EC2) AcceptReservedInstancesExchangeQuoteWithContext(ctx aws.Context, input *AcceptReservedInstancesExchangeQuoteInput, opts ...request.Option) (*AcceptReservedInstancesExchangeQuoteOutput, error) {
  76. req, out := c.AcceptReservedInstancesExchangeQuoteRequest(input)
  77. req.SetContext(ctx)
  78. req.ApplyOptions(opts...)
  79. return out, req.Send()
  80. }
  81. const opAcceptVpcEndpointConnections = "AcceptVpcEndpointConnections"
  82. // AcceptVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  83. // client's request for the AcceptVpcEndpointConnections operation. The "output" return
  84. // value will be populated with the request's response once the request complets
  85. // successfuly.
  86. //
  87. // Use "Send" method on the returned Request to send the API call to the service.
  88. // the "output" return value is not valid until after Send returns without error.
  89. //
  90. // See AcceptVpcEndpointConnections for more information on using the AcceptVpcEndpointConnections
  91. // API call, and error handling.
  92. //
  93. // This method is useful when you want to inject custom logic or configuration
  94. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  95. //
  96. //
  97. // // Example sending a request using the AcceptVpcEndpointConnectionsRequest method.
  98. // req, resp := client.AcceptVpcEndpointConnectionsRequest(params)
  99. //
  100. // err := req.Send()
  101. // if err == nil { // resp is now filled
  102. // fmt.Println(resp)
  103. // }
  104. //
  105. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnections
  106. func (c *EC2) AcceptVpcEndpointConnectionsRequest(input *AcceptVpcEndpointConnectionsInput) (req *request.Request, output *AcceptVpcEndpointConnectionsOutput) {
  107. op := &request.Operation{
  108. Name: opAcceptVpcEndpointConnections,
  109. HTTPMethod: "POST",
  110. HTTPPath: "/",
  111. }
  112. if input == nil {
  113. input = &AcceptVpcEndpointConnectionsInput{}
  114. }
  115. output = &AcceptVpcEndpointConnectionsOutput{}
  116. req = c.newRequest(op, input, output)
  117. return
  118. }
  119. // AcceptVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  120. //
  121. // Accepts one or more interface VPC endpoint connection requests to your VPC
  122. // endpoint service.
  123. //
  124. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  125. // with awserr.Error's Code and Message methods to get detailed information about
  126. // the error.
  127. //
  128. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  129. // API operation AcceptVpcEndpointConnections for usage and error information.
  130. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnections
  131. func (c *EC2) AcceptVpcEndpointConnections(input *AcceptVpcEndpointConnectionsInput) (*AcceptVpcEndpointConnectionsOutput, error) {
  132. req, out := c.AcceptVpcEndpointConnectionsRequest(input)
  133. return out, req.Send()
  134. }
  135. // AcceptVpcEndpointConnectionsWithContext is the same as AcceptVpcEndpointConnections with the addition of
  136. // the ability to pass a context and additional request options.
  137. //
  138. // See AcceptVpcEndpointConnections for details on how to use this API operation.
  139. //
  140. // The context must be non-nil and will be used for request cancellation. If
  141. // the context is nil a panic will occur. In the future the SDK may create
  142. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  143. // for more information on using Contexts.
  144. func (c *EC2) AcceptVpcEndpointConnectionsWithContext(ctx aws.Context, input *AcceptVpcEndpointConnectionsInput, opts ...request.Option) (*AcceptVpcEndpointConnectionsOutput, error) {
  145. req, out := c.AcceptVpcEndpointConnectionsRequest(input)
  146. req.SetContext(ctx)
  147. req.ApplyOptions(opts...)
  148. return out, req.Send()
  149. }
  150. const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection"
  151. // AcceptVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  152. // client's request for the AcceptVpcPeeringConnection operation. The "output" return
  153. // value will be populated with the request's response once the request complets
  154. // successfuly.
  155. //
  156. // Use "Send" method on the returned Request to send the API call to the service.
  157. // the "output" return value is not valid until after Send returns without error.
  158. //
  159. // See AcceptVpcPeeringConnection for more information on using the AcceptVpcPeeringConnection
  160. // API call, and error handling.
  161. //
  162. // This method is useful when you want to inject custom logic or configuration
  163. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  164. //
  165. //
  166. // // Example sending a request using the AcceptVpcPeeringConnectionRequest method.
  167. // req, resp := client.AcceptVpcPeeringConnectionRequest(params)
  168. //
  169. // err := req.Send()
  170. // if err == nil { // resp is now filled
  171. // fmt.Println(resp)
  172. // }
  173. //
  174. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection
  175. func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectionInput) (req *request.Request, output *AcceptVpcPeeringConnectionOutput) {
  176. op := &request.Operation{
  177. Name: opAcceptVpcPeeringConnection,
  178. HTTPMethod: "POST",
  179. HTTPPath: "/",
  180. }
  181. if input == nil {
  182. input = &AcceptVpcPeeringConnectionInput{}
  183. }
  184. output = &AcceptVpcPeeringConnectionOutput{}
  185. req = c.newRequest(op, input, output)
  186. return
  187. }
  188. // AcceptVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  189. //
  190. // Accept a VPC peering connection request. To accept a request, the VPC peering
  191. // connection must be in the pending-acceptance state, and you must be the owner
  192. // of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding
  193. // VPC peering connection requests.
  194. //
  195. // For an inter-region VPC peering connection request, you must accept the VPC
  196. // peering connection in the region of the accepter VPC.
  197. //
  198. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  199. // with awserr.Error's Code and Message methods to get detailed information about
  200. // the error.
  201. //
  202. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  203. // API operation AcceptVpcPeeringConnection for usage and error information.
  204. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnection
  205. func (c *EC2) AcceptVpcPeeringConnection(input *AcceptVpcPeeringConnectionInput) (*AcceptVpcPeeringConnectionOutput, error) {
  206. req, out := c.AcceptVpcPeeringConnectionRequest(input)
  207. return out, req.Send()
  208. }
  209. // AcceptVpcPeeringConnectionWithContext is the same as AcceptVpcPeeringConnection with the addition of
  210. // the ability to pass a context and additional request options.
  211. //
  212. // See AcceptVpcPeeringConnection for details on how to use this API operation.
  213. //
  214. // The context must be non-nil and will be used for request cancellation. If
  215. // the context is nil a panic will occur. In the future the SDK may create
  216. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  217. // for more information on using Contexts.
  218. func (c *EC2) AcceptVpcPeeringConnectionWithContext(ctx aws.Context, input *AcceptVpcPeeringConnectionInput, opts ...request.Option) (*AcceptVpcPeeringConnectionOutput, error) {
  219. req, out := c.AcceptVpcPeeringConnectionRequest(input)
  220. req.SetContext(ctx)
  221. req.ApplyOptions(opts...)
  222. return out, req.Send()
  223. }
  224. const opAllocateAddress = "AllocateAddress"
  225. // AllocateAddressRequest generates a "aws/request.Request" representing the
  226. // client's request for the AllocateAddress operation. The "output" return
  227. // value will be populated with the request's response once the request complets
  228. // successfuly.
  229. //
  230. // Use "Send" method on the returned Request to send the API call to the service.
  231. // the "output" return value is not valid until after Send returns without error.
  232. //
  233. // See AllocateAddress for more information on using the AllocateAddress
  234. // API call, and error handling.
  235. //
  236. // This method is useful when you want to inject custom logic or configuration
  237. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  238. //
  239. //
  240. // // Example sending a request using the AllocateAddressRequest method.
  241. // req, resp := client.AllocateAddressRequest(params)
  242. //
  243. // err := req.Send()
  244. // if err == nil { // resp is now filled
  245. // fmt.Println(resp)
  246. // }
  247. //
  248. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress
  249. func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request.Request, output *AllocateAddressOutput) {
  250. op := &request.Operation{
  251. Name: opAllocateAddress,
  252. HTTPMethod: "POST",
  253. HTTPPath: "/",
  254. }
  255. if input == nil {
  256. input = &AllocateAddressInput{}
  257. }
  258. output = &AllocateAddressOutput{}
  259. req = c.newRequest(op, input, output)
  260. return
  261. }
  262. // AllocateAddress API operation for Amazon Elastic Compute Cloud.
  263. //
  264. // Allocates an Elastic IP address.
  265. //
  266. // An Elastic IP address is for use either in the EC2-Classic platform or in
  267. // a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic
  268. // per region and 5 Elastic IP addresses for EC2-VPC per region.
  269. //
  270. // If you release an Elastic IP address for use in a VPC, you might be able
  271. // to recover it. To recover an Elastic IP address that you released, specify
  272. // it in the Address parameter. Note that you cannot recover an Elastic IP address
  273. // that you released after it is allocated to another AWS account.
  274. //
  275. // For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  276. // in the Amazon Elastic Compute Cloud User Guide.
  277. //
  278. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  279. // with awserr.Error's Code and Message methods to get detailed information about
  280. // the error.
  281. //
  282. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  283. // API operation AllocateAddress for usage and error information.
  284. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddress
  285. func (c *EC2) AllocateAddress(input *AllocateAddressInput) (*AllocateAddressOutput, error) {
  286. req, out := c.AllocateAddressRequest(input)
  287. return out, req.Send()
  288. }
  289. // AllocateAddressWithContext is the same as AllocateAddress with the addition of
  290. // the ability to pass a context and additional request options.
  291. //
  292. // See AllocateAddress for details on how to use this API operation.
  293. //
  294. // The context must be non-nil and will be used for request cancellation. If
  295. // the context is nil a panic will occur. In the future the SDK may create
  296. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  297. // for more information on using Contexts.
  298. func (c *EC2) AllocateAddressWithContext(ctx aws.Context, input *AllocateAddressInput, opts ...request.Option) (*AllocateAddressOutput, error) {
  299. req, out := c.AllocateAddressRequest(input)
  300. req.SetContext(ctx)
  301. req.ApplyOptions(opts...)
  302. return out, req.Send()
  303. }
  304. const opAllocateHosts = "AllocateHosts"
  305. // AllocateHostsRequest generates a "aws/request.Request" representing the
  306. // client's request for the AllocateHosts operation. The "output" return
  307. // value will be populated with the request's response once the request complets
  308. // successfuly.
  309. //
  310. // Use "Send" method on the returned Request to send the API call to the service.
  311. // the "output" return value is not valid until after Send returns without error.
  312. //
  313. // See AllocateHosts for more information on using the AllocateHosts
  314. // API call, and error handling.
  315. //
  316. // This method is useful when you want to inject custom logic or configuration
  317. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  318. //
  319. //
  320. // // Example sending a request using the AllocateHostsRequest method.
  321. // req, resp := client.AllocateHostsRequest(params)
  322. //
  323. // err := req.Send()
  324. // if err == nil { // resp is now filled
  325. // fmt.Println(resp)
  326. // }
  327. //
  328. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts
  329. func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Request, output *AllocateHostsOutput) {
  330. op := &request.Operation{
  331. Name: opAllocateHosts,
  332. HTTPMethod: "POST",
  333. HTTPPath: "/",
  334. }
  335. if input == nil {
  336. input = &AllocateHostsInput{}
  337. }
  338. output = &AllocateHostsOutput{}
  339. req = c.newRequest(op, input, output)
  340. return
  341. }
  342. // AllocateHosts API operation for Amazon Elastic Compute Cloud.
  343. //
  344. // Allocates a Dedicated Host to your account. At minimum you need to specify
  345. // the instance size type, Availability Zone, and quantity of hosts you want
  346. // to allocate.
  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 AllocateHosts for usage and error information.
  354. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHosts
  355. func (c *EC2) AllocateHosts(input *AllocateHostsInput) (*AllocateHostsOutput, error) {
  356. req, out := c.AllocateHostsRequest(input)
  357. return out, req.Send()
  358. }
  359. // AllocateHostsWithContext is the same as AllocateHosts with the addition of
  360. // the ability to pass a context and additional request options.
  361. //
  362. // See AllocateHosts 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) AllocateHostsWithContext(ctx aws.Context, input *AllocateHostsInput, opts ...request.Option) (*AllocateHostsOutput, error) {
  369. req, out := c.AllocateHostsRequest(input)
  370. req.SetContext(ctx)
  371. req.ApplyOptions(opts...)
  372. return out, req.Send()
  373. }
  374. const opAssignIpv6Addresses = "AssignIpv6Addresses"
  375. // AssignIpv6AddressesRequest generates a "aws/request.Request" representing the
  376. // client's request for the AssignIpv6Addresses operation. The "output" return
  377. // value will be populated with the request's response once the request complets
  378. // successfuly.
  379. //
  380. // Use "Send" method on the returned Request to send the API call to the service.
  381. // the "output" return value is not valid until after Send returns without error.
  382. //
  383. // See AssignIpv6Addresses for more information on using the AssignIpv6Addresses
  384. // API call, and error handling.
  385. //
  386. // This method is useful when you want to inject custom logic or configuration
  387. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  388. //
  389. //
  390. // // Example sending a request using the AssignIpv6AddressesRequest method.
  391. // req, resp := client.AssignIpv6AddressesRequest(params)
  392. //
  393. // err := req.Send()
  394. // if err == nil { // resp is now filled
  395. // fmt.Println(resp)
  396. // }
  397. //
  398. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses
  399. func (c *EC2) AssignIpv6AddressesRequest(input *AssignIpv6AddressesInput) (req *request.Request, output *AssignIpv6AddressesOutput) {
  400. op := &request.Operation{
  401. Name: opAssignIpv6Addresses,
  402. HTTPMethod: "POST",
  403. HTTPPath: "/",
  404. }
  405. if input == nil {
  406. input = &AssignIpv6AddressesInput{}
  407. }
  408. output = &AssignIpv6AddressesOutput{}
  409. req = c.newRequest(op, input, output)
  410. return
  411. }
  412. // AssignIpv6Addresses API operation for Amazon Elastic Compute Cloud.
  413. //
  414. // Assigns one or more IPv6 addresses to the specified network interface. You
  415. // can specify one or more specific IPv6 addresses, or you can specify the number
  416. // of IPv6 addresses to be automatically assigned from within the subnet's IPv6
  417. // CIDR block range. You can assign as many IPv6 addresses to a network interface
  418. // as you can assign private IPv4 addresses, and the limit varies per instance
  419. // type. For information, see IP Addresses Per Network Interface Per Instance
  420. // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  421. // in the Amazon Elastic Compute Cloud User Guide.
  422. //
  423. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  424. // with awserr.Error's Code and Message methods to get detailed information about
  425. // the error.
  426. //
  427. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  428. // API operation AssignIpv6Addresses for usage and error information.
  429. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6Addresses
  430. func (c *EC2) AssignIpv6Addresses(input *AssignIpv6AddressesInput) (*AssignIpv6AddressesOutput, error) {
  431. req, out := c.AssignIpv6AddressesRequest(input)
  432. return out, req.Send()
  433. }
  434. // AssignIpv6AddressesWithContext is the same as AssignIpv6Addresses with the addition of
  435. // the ability to pass a context and additional request options.
  436. //
  437. // See AssignIpv6Addresses for details on how to use this API operation.
  438. //
  439. // The context must be non-nil and will be used for request cancellation. If
  440. // the context is nil a panic will occur. In the future the SDK may create
  441. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  442. // for more information on using Contexts.
  443. func (c *EC2) AssignIpv6AddressesWithContext(ctx aws.Context, input *AssignIpv6AddressesInput, opts ...request.Option) (*AssignIpv6AddressesOutput, error) {
  444. req, out := c.AssignIpv6AddressesRequest(input)
  445. req.SetContext(ctx)
  446. req.ApplyOptions(opts...)
  447. return out, req.Send()
  448. }
  449. const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses"
  450. // AssignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  451. // client's request for the AssignPrivateIpAddresses operation. The "output" return
  452. // value will be populated with the request's response once the request complets
  453. // successfuly.
  454. //
  455. // Use "Send" method on the returned Request to send the API call to the service.
  456. // the "output" return value is not valid until after Send returns without error.
  457. //
  458. // See AssignPrivateIpAddresses for more information on using the AssignPrivateIpAddresses
  459. // API call, and error handling.
  460. //
  461. // This method is useful when you want to inject custom logic or configuration
  462. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  463. //
  464. //
  465. // // Example sending a request using the AssignPrivateIpAddressesRequest method.
  466. // req, resp := client.AssignPrivateIpAddressesRequest(params)
  467. //
  468. // err := req.Send()
  469. // if err == nil { // resp is now filled
  470. // fmt.Println(resp)
  471. // }
  472. //
  473. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses
  474. func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInput) (req *request.Request, output *AssignPrivateIpAddressesOutput) {
  475. op := &request.Operation{
  476. Name: opAssignPrivateIpAddresses,
  477. HTTPMethod: "POST",
  478. HTTPPath: "/",
  479. }
  480. if input == nil {
  481. input = &AssignPrivateIpAddressesInput{}
  482. }
  483. output = &AssignPrivateIpAddressesOutput{}
  484. req = c.newRequest(op, input, output)
  485. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  486. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  487. return
  488. }
  489. // AssignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud.
  490. //
  491. // Assigns one or more secondary private IP addresses to the specified network
  492. // interface. You can specify one or more specific secondary IP addresses, or
  493. // you can specify the number of secondary IP addresses to be automatically
  494. // assigned within the subnet's CIDR block range. The number of secondary IP
  495. // addresses that you can assign to an instance varies by instance type. For
  496. // information about instance types, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  497. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  498. // Elastic IP addresses, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  499. // in the Amazon Elastic Compute Cloud User Guide.
  500. //
  501. // AssignPrivateIpAddresses is available only in EC2-VPC.
  502. //
  503. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  504. // with awserr.Error's Code and Message methods to get detailed information about
  505. // the error.
  506. //
  507. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  508. // API operation AssignPrivateIpAddresses for usage and error information.
  509. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddresses
  510. func (c *EC2) AssignPrivateIpAddresses(input *AssignPrivateIpAddressesInput) (*AssignPrivateIpAddressesOutput, error) {
  511. req, out := c.AssignPrivateIpAddressesRequest(input)
  512. return out, req.Send()
  513. }
  514. // AssignPrivateIpAddressesWithContext is the same as AssignPrivateIpAddresses with the addition of
  515. // the ability to pass a context and additional request options.
  516. //
  517. // See AssignPrivateIpAddresses for details on how to use this API operation.
  518. //
  519. // The context must be non-nil and will be used for request cancellation. If
  520. // the context is nil a panic will occur. In the future the SDK may create
  521. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  522. // for more information on using Contexts.
  523. func (c *EC2) AssignPrivateIpAddressesWithContext(ctx aws.Context, input *AssignPrivateIpAddressesInput, opts ...request.Option) (*AssignPrivateIpAddressesOutput, error) {
  524. req, out := c.AssignPrivateIpAddressesRequest(input)
  525. req.SetContext(ctx)
  526. req.ApplyOptions(opts...)
  527. return out, req.Send()
  528. }
  529. const opAssociateAddress = "AssociateAddress"
  530. // AssociateAddressRequest generates a "aws/request.Request" representing the
  531. // client's request for the AssociateAddress operation. The "output" return
  532. // value will be populated with the request's response once the request complets
  533. // successfuly.
  534. //
  535. // Use "Send" method on the returned Request to send the API call to the service.
  536. // the "output" return value is not valid until after Send returns without error.
  537. //
  538. // See AssociateAddress for more information on using the AssociateAddress
  539. // API call, and error handling.
  540. //
  541. // This method is useful when you want to inject custom logic or configuration
  542. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  543. //
  544. //
  545. // // Example sending a request using the AssociateAddressRequest method.
  546. // req, resp := client.AssociateAddressRequest(params)
  547. //
  548. // err := req.Send()
  549. // if err == nil { // resp is now filled
  550. // fmt.Println(resp)
  551. // }
  552. //
  553. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddress
  554. func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *request.Request, output *AssociateAddressOutput) {
  555. op := &request.Operation{
  556. Name: opAssociateAddress,
  557. HTTPMethod: "POST",
  558. HTTPPath: "/",
  559. }
  560. if input == nil {
  561. input = &AssociateAddressInput{}
  562. }
  563. output = &AssociateAddressOutput{}
  564. req = c.newRequest(op, input, output)
  565. return
  566. }
  567. // AssociateAddress API operation for Amazon Elastic Compute Cloud.
  568. //
  569. // Associates an Elastic IP address with an instance or a network interface.
  570. //
  571. // An Elastic IP address is for use in either the EC2-Classic platform or in
  572. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  573. // in the Amazon Elastic Compute Cloud User Guide.
  574. //
  575. // [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is
  576. // already associated with a different instance, it is disassociated from that
  577. // instance and associated with the specified instance. If you associate an
  578. // Elastic IP address with an instance that has an existing Elastic IP address,
  579. // the existing address is disassociated from the instance, but remains allocated
  580. // to your account.
  581. //
  582. // [VPC in an EC2-Classic account] If you don't specify a private IP address,
  583. // the Elastic IP address is associated with the primary IP address. If the
  584. // Elastic IP address is already associated with a different instance or a network
  585. // interface, you get an error unless you allow reassociation. You cannot associate
  586. // an Elastic IP address with an instance or network interface that has an existing
  587. // Elastic IP address.
  588. //
  589. // This is an idempotent operation. If you perform the operation more than once,
  590. // Amazon EC2 doesn't return an error, and you may be charged for each time
  591. // the Elastic IP address is remapped to the same instance. For more information,
  592. // see the Elastic IP Addresses section of Amazon EC2 Pricing (http://aws.amazon.com/ec2/pricing/).
  593. //
  594. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  595. // with awserr.Error's Code and Message methods to get detailed information about
  596. // the error.
  597. //
  598. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  599. // API operation AssociateAddress for usage and error information.
  600. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddress
  601. func (c *EC2) AssociateAddress(input *AssociateAddressInput) (*AssociateAddressOutput, error) {
  602. req, out := c.AssociateAddressRequest(input)
  603. return out, req.Send()
  604. }
  605. // AssociateAddressWithContext is the same as AssociateAddress with the addition of
  606. // the ability to pass a context and additional request options.
  607. //
  608. // See AssociateAddress for details on how to use this API operation.
  609. //
  610. // The context must be non-nil and will be used for request cancellation. If
  611. // the context is nil a panic will occur. In the future the SDK may create
  612. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  613. // for more information on using Contexts.
  614. func (c *EC2) AssociateAddressWithContext(ctx aws.Context, input *AssociateAddressInput, opts ...request.Option) (*AssociateAddressOutput, error) {
  615. req, out := c.AssociateAddressRequest(input)
  616. req.SetContext(ctx)
  617. req.ApplyOptions(opts...)
  618. return out, req.Send()
  619. }
  620. const opAssociateDhcpOptions = "AssociateDhcpOptions"
  621. // AssociateDhcpOptionsRequest generates a "aws/request.Request" representing the
  622. // client's request for the AssociateDhcpOptions operation. The "output" return
  623. // value will be populated with the request's response once the request complets
  624. // successfuly.
  625. //
  626. // Use "Send" method on the returned Request to send the API call to the service.
  627. // the "output" return value is not valid until after Send returns without error.
  628. //
  629. // See AssociateDhcpOptions for more information on using the AssociateDhcpOptions
  630. // API call, and error handling.
  631. //
  632. // This method is useful when you want to inject custom logic or configuration
  633. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  634. //
  635. //
  636. // // Example sending a request using the AssociateDhcpOptionsRequest method.
  637. // req, resp := client.AssociateDhcpOptionsRequest(params)
  638. //
  639. // err := req.Send()
  640. // if err == nil { // resp is now filled
  641. // fmt.Println(resp)
  642. // }
  643. //
  644. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions
  645. func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req *request.Request, output *AssociateDhcpOptionsOutput) {
  646. op := &request.Operation{
  647. Name: opAssociateDhcpOptions,
  648. HTTPMethod: "POST",
  649. HTTPPath: "/",
  650. }
  651. if input == nil {
  652. input = &AssociateDhcpOptionsInput{}
  653. }
  654. output = &AssociateDhcpOptionsOutput{}
  655. req = c.newRequest(op, input, output)
  656. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  657. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  658. return
  659. }
  660. // AssociateDhcpOptions API operation for Amazon Elastic Compute Cloud.
  661. //
  662. // Associates a set of DHCP options (that you've previously created) with the
  663. // specified VPC, or associates no DHCP options with the VPC.
  664. //
  665. // After you associate the options with the VPC, any existing instances and
  666. // all new instances that you launch in that VPC use the options. You don't
  667. // need to restart or relaunch the instances. They automatically pick up the
  668. // changes within a few hours, depending on how frequently the instance renews
  669. // its DHCP lease. You can explicitly renew the lease using the operating system
  670. // on the instance.
  671. //
  672. // For more information, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  673. // in the Amazon Virtual Private Cloud User Guide.
  674. //
  675. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  676. // with awserr.Error's Code and Message methods to get detailed information about
  677. // the error.
  678. //
  679. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  680. // API operation AssociateDhcpOptions for usage and error information.
  681. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptions
  682. func (c *EC2) AssociateDhcpOptions(input *AssociateDhcpOptionsInput) (*AssociateDhcpOptionsOutput, error) {
  683. req, out := c.AssociateDhcpOptionsRequest(input)
  684. return out, req.Send()
  685. }
  686. // AssociateDhcpOptionsWithContext is the same as AssociateDhcpOptions with the addition of
  687. // the ability to pass a context and additional request options.
  688. //
  689. // See AssociateDhcpOptions for details on how to use this API operation.
  690. //
  691. // The context must be non-nil and will be used for request cancellation. If
  692. // the context is nil a panic will occur. In the future the SDK may create
  693. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  694. // for more information on using Contexts.
  695. func (c *EC2) AssociateDhcpOptionsWithContext(ctx aws.Context, input *AssociateDhcpOptionsInput, opts ...request.Option) (*AssociateDhcpOptionsOutput, error) {
  696. req, out := c.AssociateDhcpOptionsRequest(input)
  697. req.SetContext(ctx)
  698. req.ApplyOptions(opts...)
  699. return out, req.Send()
  700. }
  701. const opAssociateIamInstanceProfile = "AssociateIamInstanceProfile"
  702. // AssociateIamInstanceProfileRequest generates a "aws/request.Request" representing the
  703. // client's request for the AssociateIamInstanceProfile operation. The "output" return
  704. // value will be populated with the request's response once the request complets
  705. // successfuly.
  706. //
  707. // Use "Send" method on the returned Request to send the API call to the service.
  708. // the "output" return value is not valid until after Send returns without error.
  709. //
  710. // See AssociateIamInstanceProfile for more information on using the AssociateIamInstanceProfile
  711. // API call, and error handling.
  712. //
  713. // This method is useful when you want to inject custom logic or configuration
  714. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  715. //
  716. //
  717. // // Example sending a request using the AssociateIamInstanceProfileRequest method.
  718. // req, resp := client.AssociateIamInstanceProfileRequest(params)
  719. //
  720. // err := req.Send()
  721. // if err == nil { // resp is now filled
  722. // fmt.Println(resp)
  723. // }
  724. //
  725. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile
  726. func (c *EC2) AssociateIamInstanceProfileRequest(input *AssociateIamInstanceProfileInput) (req *request.Request, output *AssociateIamInstanceProfileOutput) {
  727. op := &request.Operation{
  728. Name: opAssociateIamInstanceProfile,
  729. HTTPMethod: "POST",
  730. HTTPPath: "/",
  731. }
  732. if input == nil {
  733. input = &AssociateIamInstanceProfileInput{}
  734. }
  735. output = &AssociateIamInstanceProfileOutput{}
  736. req = c.newRequest(op, input, output)
  737. return
  738. }
  739. // AssociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud.
  740. //
  741. // Associates an IAM instance profile with a running or stopped instance. You
  742. // cannot associate more than one IAM instance profile with an instance.
  743. //
  744. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  745. // with awserr.Error's Code and Message methods to get detailed information about
  746. // the error.
  747. //
  748. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  749. // API operation AssociateIamInstanceProfile for usage and error information.
  750. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfile
  751. func (c *EC2) AssociateIamInstanceProfile(input *AssociateIamInstanceProfileInput) (*AssociateIamInstanceProfileOutput, error) {
  752. req, out := c.AssociateIamInstanceProfileRequest(input)
  753. return out, req.Send()
  754. }
  755. // AssociateIamInstanceProfileWithContext is the same as AssociateIamInstanceProfile with the addition of
  756. // the ability to pass a context and additional request options.
  757. //
  758. // See AssociateIamInstanceProfile for details on how to use this API operation.
  759. //
  760. // The context must be non-nil and will be used for request cancellation. If
  761. // the context is nil a panic will occur. In the future the SDK may create
  762. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  763. // for more information on using Contexts.
  764. func (c *EC2) AssociateIamInstanceProfileWithContext(ctx aws.Context, input *AssociateIamInstanceProfileInput, opts ...request.Option) (*AssociateIamInstanceProfileOutput, error) {
  765. req, out := c.AssociateIamInstanceProfileRequest(input)
  766. req.SetContext(ctx)
  767. req.ApplyOptions(opts...)
  768. return out, req.Send()
  769. }
  770. const opAssociateRouteTable = "AssociateRouteTable"
  771. // AssociateRouteTableRequest generates a "aws/request.Request" representing the
  772. // client's request for the AssociateRouteTable operation. The "output" return
  773. // value will be populated with the request's response once the request complets
  774. // successfuly.
  775. //
  776. // Use "Send" method on the returned Request to send the API call to the service.
  777. // the "output" return value is not valid until after Send returns without error.
  778. //
  779. // See AssociateRouteTable for more information on using the AssociateRouteTable
  780. // API call, and error handling.
  781. //
  782. // This method is useful when you want to inject custom logic or configuration
  783. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  784. //
  785. //
  786. // // Example sending a request using the AssociateRouteTableRequest method.
  787. // req, resp := client.AssociateRouteTableRequest(params)
  788. //
  789. // err := req.Send()
  790. // if err == nil { // resp is now filled
  791. // fmt.Println(resp)
  792. // }
  793. //
  794. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable
  795. func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req *request.Request, output *AssociateRouteTableOutput) {
  796. op := &request.Operation{
  797. Name: opAssociateRouteTable,
  798. HTTPMethod: "POST",
  799. HTTPPath: "/",
  800. }
  801. if input == nil {
  802. input = &AssociateRouteTableInput{}
  803. }
  804. output = &AssociateRouteTableOutput{}
  805. req = c.newRequest(op, input, output)
  806. return
  807. }
  808. // AssociateRouteTable API operation for Amazon Elastic Compute Cloud.
  809. //
  810. // Associates a subnet with a route table. The subnet and route table must be
  811. // in the same VPC. This association causes traffic originating from the subnet
  812. // to be routed according to the routes in the route table. The action returns
  813. // an association ID, which you need in order to disassociate the route table
  814. // from the subnet later. A route table can be associated with multiple subnets.
  815. //
  816. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  817. // in the Amazon Virtual Private Cloud User Guide.
  818. //
  819. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  820. // with awserr.Error's Code and Message methods to get detailed information about
  821. // the error.
  822. //
  823. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  824. // API operation AssociateRouteTable for usage and error information.
  825. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTable
  826. func (c *EC2) AssociateRouteTable(input *AssociateRouteTableInput) (*AssociateRouteTableOutput, error) {
  827. req, out := c.AssociateRouteTableRequest(input)
  828. return out, req.Send()
  829. }
  830. // AssociateRouteTableWithContext is the same as AssociateRouteTable with the addition of
  831. // the ability to pass a context and additional request options.
  832. //
  833. // See AssociateRouteTable for details on how to use this API operation.
  834. //
  835. // The context must be non-nil and will be used for request cancellation. If
  836. // the context is nil a panic will occur. In the future the SDK may create
  837. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  838. // for more information on using Contexts.
  839. func (c *EC2) AssociateRouteTableWithContext(ctx aws.Context, input *AssociateRouteTableInput, opts ...request.Option) (*AssociateRouteTableOutput, error) {
  840. req, out := c.AssociateRouteTableRequest(input)
  841. req.SetContext(ctx)
  842. req.ApplyOptions(opts...)
  843. return out, req.Send()
  844. }
  845. const opAssociateSubnetCidrBlock = "AssociateSubnetCidrBlock"
  846. // AssociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the
  847. // client's request for the AssociateSubnetCidrBlock operation. The "output" return
  848. // value will be populated with the request's response once the request complets
  849. // successfuly.
  850. //
  851. // Use "Send" method on the returned Request to send the API call to the service.
  852. // the "output" return value is not valid until after Send returns without error.
  853. //
  854. // See AssociateSubnetCidrBlock for more information on using the AssociateSubnetCidrBlock
  855. // API call, and error handling.
  856. //
  857. // This method is useful when you want to inject custom logic or configuration
  858. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  859. //
  860. //
  861. // // Example sending a request using the AssociateSubnetCidrBlockRequest method.
  862. // req, resp := client.AssociateSubnetCidrBlockRequest(params)
  863. //
  864. // err := req.Send()
  865. // if err == nil { // resp is now filled
  866. // fmt.Println(resp)
  867. // }
  868. //
  869. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock
  870. func (c *EC2) AssociateSubnetCidrBlockRequest(input *AssociateSubnetCidrBlockInput) (req *request.Request, output *AssociateSubnetCidrBlockOutput) {
  871. op := &request.Operation{
  872. Name: opAssociateSubnetCidrBlock,
  873. HTTPMethod: "POST",
  874. HTTPPath: "/",
  875. }
  876. if input == nil {
  877. input = &AssociateSubnetCidrBlockInput{}
  878. }
  879. output = &AssociateSubnetCidrBlockOutput{}
  880. req = c.newRequest(op, input, output)
  881. return
  882. }
  883. // AssociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud.
  884. //
  885. // Associates a CIDR block with your subnet. You can only associate a single
  886. // IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length
  887. // of /64.
  888. //
  889. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  890. // with awserr.Error's Code and Message methods to get detailed information about
  891. // the error.
  892. //
  893. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  894. // API operation AssociateSubnetCidrBlock for usage and error information.
  895. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlock
  896. func (c *EC2) AssociateSubnetCidrBlock(input *AssociateSubnetCidrBlockInput) (*AssociateSubnetCidrBlockOutput, error) {
  897. req, out := c.AssociateSubnetCidrBlockRequest(input)
  898. return out, req.Send()
  899. }
  900. // AssociateSubnetCidrBlockWithContext is the same as AssociateSubnetCidrBlock with the addition of
  901. // the ability to pass a context and additional request options.
  902. //
  903. // See AssociateSubnetCidrBlock for details on how to use this API operation.
  904. //
  905. // The context must be non-nil and will be used for request cancellation. If
  906. // the context is nil a panic will occur. In the future the SDK may create
  907. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  908. // for more information on using Contexts.
  909. func (c *EC2) AssociateSubnetCidrBlockWithContext(ctx aws.Context, input *AssociateSubnetCidrBlockInput, opts ...request.Option) (*AssociateSubnetCidrBlockOutput, error) {
  910. req, out := c.AssociateSubnetCidrBlockRequest(input)
  911. req.SetContext(ctx)
  912. req.ApplyOptions(opts...)
  913. return out, req.Send()
  914. }
  915. const opAssociateVpcCidrBlock = "AssociateVpcCidrBlock"
  916. // AssociateVpcCidrBlockRequest generates a "aws/request.Request" representing the
  917. // client's request for the AssociateVpcCidrBlock operation. The "output" return
  918. // value will be populated with the request's response once the request complets
  919. // successfuly.
  920. //
  921. // Use "Send" method on the returned Request to send the API call to the service.
  922. // the "output" return value is not valid until after Send returns without error.
  923. //
  924. // See AssociateVpcCidrBlock for more information on using the AssociateVpcCidrBlock
  925. // API call, and error handling.
  926. //
  927. // This method is useful when you want to inject custom logic or configuration
  928. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  929. //
  930. //
  931. // // Example sending a request using the AssociateVpcCidrBlockRequest method.
  932. // req, resp := client.AssociateVpcCidrBlockRequest(params)
  933. //
  934. // err := req.Send()
  935. // if err == nil { // resp is now filled
  936. // fmt.Println(resp)
  937. // }
  938. //
  939. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock
  940. func (c *EC2) AssociateVpcCidrBlockRequest(input *AssociateVpcCidrBlockInput) (req *request.Request, output *AssociateVpcCidrBlockOutput) {
  941. op := &request.Operation{
  942. Name: opAssociateVpcCidrBlock,
  943. HTTPMethod: "POST",
  944. HTTPPath: "/",
  945. }
  946. if input == nil {
  947. input = &AssociateVpcCidrBlockInput{}
  948. }
  949. output = &AssociateVpcCidrBlockOutput{}
  950. req = c.newRequest(op, input, output)
  951. return
  952. }
  953. // AssociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud.
  954. //
  955. // Associates a CIDR block with your VPC. You can associate a secondary IPv4
  956. // CIDR block, or you can associate an Amazon-provided IPv6 CIDR block. The
  957. // IPv6 CIDR block size is fixed at /56.
  958. //
  959. // For more information about associating CIDR blocks with your VPC and applicable
  960. // restrictions, see VPC and Subnet Sizing (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html#VPC_Sizing)
  961. // in the Amazon Virtual Private Cloud User Guide.
  962. //
  963. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  964. // with awserr.Error's Code and Message methods to get detailed information about
  965. // the error.
  966. //
  967. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  968. // API operation AssociateVpcCidrBlock for usage and error information.
  969. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlock
  970. func (c *EC2) AssociateVpcCidrBlock(input *AssociateVpcCidrBlockInput) (*AssociateVpcCidrBlockOutput, error) {
  971. req, out := c.AssociateVpcCidrBlockRequest(input)
  972. return out, req.Send()
  973. }
  974. // AssociateVpcCidrBlockWithContext is the same as AssociateVpcCidrBlock with the addition of
  975. // the ability to pass a context and additional request options.
  976. //
  977. // See AssociateVpcCidrBlock for details on how to use this API operation.
  978. //
  979. // The context must be non-nil and will be used for request cancellation. If
  980. // the context is nil a panic will occur. In the future the SDK may create
  981. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  982. // for more information on using Contexts.
  983. func (c *EC2) AssociateVpcCidrBlockWithContext(ctx aws.Context, input *AssociateVpcCidrBlockInput, opts ...request.Option) (*AssociateVpcCidrBlockOutput, error) {
  984. req, out := c.AssociateVpcCidrBlockRequest(input)
  985. req.SetContext(ctx)
  986. req.ApplyOptions(opts...)
  987. return out, req.Send()
  988. }
  989. const opAttachClassicLinkVpc = "AttachClassicLinkVpc"
  990. // AttachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  991. // client's request for the AttachClassicLinkVpc operation. The "output" return
  992. // value will be populated with the request's response once the request complets
  993. // successfuly.
  994. //
  995. // Use "Send" method on the returned Request to send the API call to the service.
  996. // the "output" return value is not valid until after Send returns without error.
  997. //
  998. // See AttachClassicLinkVpc for more information on using the AttachClassicLinkVpc
  999. // API call, and error handling.
  1000. //
  1001. // This method is useful when you want to inject custom logic or configuration
  1002. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1003. //
  1004. //
  1005. // // Example sending a request using the AttachClassicLinkVpcRequest method.
  1006. // req, resp := client.AttachClassicLinkVpcRequest(params)
  1007. //
  1008. // err := req.Send()
  1009. // if err == nil { // resp is now filled
  1010. // fmt.Println(resp)
  1011. // }
  1012. //
  1013. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc
  1014. func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req *request.Request, output *AttachClassicLinkVpcOutput) {
  1015. op := &request.Operation{
  1016. Name: opAttachClassicLinkVpc,
  1017. HTTPMethod: "POST",
  1018. HTTPPath: "/",
  1019. }
  1020. if input == nil {
  1021. input = &AttachClassicLinkVpcInput{}
  1022. }
  1023. output = &AttachClassicLinkVpcOutput{}
  1024. req = c.newRequest(op, input, output)
  1025. return
  1026. }
  1027. // AttachClassicLinkVpc API operation for Amazon Elastic Compute Cloud.
  1028. //
  1029. // Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or
  1030. // more of the VPC's security groups. You cannot link an EC2-Classic instance
  1031. // to more than one VPC at a time. You can only link an instance that's in the
  1032. // running state. An instance is automatically unlinked from a VPC when it's
  1033. // stopped - you can link it to the VPC again when you restart it.
  1034. //
  1035. // After you've linked an instance, you cannot change the VPC security groups
  1036. // that are associated with it. To change the security groups, you must first
  1037. // unlink the instance, and then link it again.
  1038. //
  1039. // Linking your instance to a VPC is sometimes referred to as attaching your
  1040. // instance.
  1041. //
  1042. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1043. // with awserr.Error's Code and Message methods to get detailed information about
  1044. // the error.
  1045. //
  1046. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1047. // API operation AttachClassicLinkVpc for usage and error information.
  1048. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpc
  1049. func (c *EC2) AttachClassicLinkVpc(input *AttachClassicLinkVpcInput) (*AttachClassicLinkVpcOutput, error) {
  1050. req, out := c.AttachClassicLinkVpcRequest(input)
  1051. return out, req.Send()
  1052. }
  1053. // AttachClassicLinkVpcWithContext is the same as AttachClassicLinkVpc with the addition of
  1054. // the ability to pass a context and additional request options.
  1055. //
  1056. // See AttachClassicLinkVpc for details on how to use this API operation.
  1057. //
  1058. // The context must be non-nil and will be used for request cancellation. If
  1059. // the context is nil a panic will occur. In the future the SDK may create
  1060. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1061. // for more information on using Contexts.
  1062. func (c *EC2) AttachClassicLinkVpcWithContext(ctx aws.Context, input *AttachClassicLinkVpcInput, opts ...request.Option) (*AttachClassicLinkVpcOutput, error) {
  1063. req, out := c.AttachClassicLinkVpcRequest(input)
  1064. req.SetContext(ctx)
  1065. req.ApplyOptions(opts...)
  1066. return out, req.Send()
  1067. }
  1068. const opAttachInternetGateway = "AttachInternetGateway"
  1069. // AttachInternetGatewayRequest generates a "aws/request.Request" representing the
  1070. // client's request for the AttachInternetGateway operation. The "output" return
  1071. // value will be populated with the request's response once the request complets
  1072. // successfuly.
  1073. //
  1074. // Use "Send" method on the returned Request to send the API call to the service.
  1075. // the "output" return value is not valid until after Send returns without error.
  1076. //
  1077. // See AttachInternetGateway for more information on using the AttachInternetGateway
  1078. // API call, and error handling.
  1079. //
  1080. // This method is useful when you want to inject custom logic or configuration
  1081. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1082. //
  1083. //
  1084. // // Example sending a request using the AttachInternetGatewayRequest method.
  1085. // req, resp := client.AttachInternetGatewayRequest(params)
  1086. //
  1087. // err := req.Send()
  1088. // if err == nil { // resp is now filled
  1089. // fmt.Println(resp)
  1090. // }
  1091. //
  1092. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway
  1093. func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (req *request.Request, output *AttachInternetGatewayOutput) {
  1094. op := &request.Operation{
  1095. Name: opAttachInternetGateway,
  1096. HTTPMethod: "POST",
  1097. HTTPPath: "/",
  1098. }
  1099. if input == nil {
  1100. input = &AttachInternetGatewayInput{}
  1101. }
  1102. output = &AttachInternetGatewayOutput{}
  1103. req = c.newRequest(op, input, output)
  1104. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1105. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1106. return
  1107. }
  1108. // AttachInternetGateway API operation for Amazon Elastic Compute Cloud.
  1109. //
  1110. // Attaches an Internet gateway to a VPC, enabling connectivity between the
  1111. // Internet and the VPC. For more information about your VPC and Internet gateway,
  1112. // see the Amazon Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  1113. //
  1114. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1115. // with awserr.Error's Code and Message methods to get detailed information about
  1116. // the error.
  1117. //
  1118. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1119. // API operation AttachInternetGateway for usage and error information.
  1120. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGateway
  1121. func (c *EC2) AttachInternetGateway(input *AttachInternetGatewayInput) (*AttachInternetGatewayOutput, error) {
  1122. req, out := c.AttachInternetGatewayRequest(input)
  1123. return out, req.Send()
  1124. }
  1125. // AttachInternetGatewayWithContext is the same as AttachInternetGateway with the addition of
  1126. // the ability to pass a context and additional request options.
  1127. //
  1128. // See AttachInternetGateway for details on how to use this API operation.
  1129. //
  1130. // The context must be non-nil and will be used for request cancellation. If
  1131. // the context is nil a panic will occur. In the future the SDK may create
  1132. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1133. // for more information on using Contexts.
  1134. func (c *EC2) AttachInternetGatewayWithContext(ctx aws.Context, input *AttachInternetGatewayInput, opts ...request.Option) (*AttachInternetGatewayOutput, error) {
  1135. req, out := c.AttachInternetGatewayRequest(input)
  1136. req.SetContext(ctx)
  1137. req.ApplyOptions(opts...)
  1138. return out, req.Send()
  1139. }
  1140. const opAttachNetworkInterface = "AttachNetworkInterface"
  1141. // AttachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  1142. // client's request for the AttachNetworkInterface operation. The "output" return
  1143. // value will be populated with the request's response once the request complets
  1144. // successfuly.
  1145. //
  1146. // Use "Send" method on the returned Request to send the API call to the service.
  1147. // the "output" return value is not valid until after Send returns without error.
  1148. //
  1149. // See AttachNetworkInterface for more information on using the AttachNetworkInterface
  1150. // API call, and error handling.
  1151. //
  1152. // This method is useful when you want to inject custom logic or configuration
  1153. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1154. //
  1155. //
  1156. // // Example sending a request using the AttachNetworkInterfaceRequest method.
  1157. // req, resp := client.AttachNetworkInterfaceRequest(params)
  1158. //
  1159. // err := req.Send()
  1160. // if err == nil { // resp is now filled
  1161. // fmt.Println(resp)
  1162. // }
  1163. //
  1164. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface
  1165. func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) (req *request.Request, output *AttachNetworkInterfaceOutput) {
  1166. op := &request.Operation{
  1167. Name: opAttachNetworkInterface,
  1168. HTTPMethod: "POST",
  1169. HTTPPath: "/",
  1170. }
  1171. if input == nil {
  1172. input = &AttachNetworkInterfaceInput{}
  1173. }
  1174. output = &AttachNetworkInterfaceOutput{}
  1175. req = c.newRequest(op, input, output)
  1176. return
  1177. }
  1178. // AttachNetworkInterface API operation for Amazon Elastic Compute Cloud.
  1179. //
  1180. // Attaches a network interface to an instance.
  1181. //
  1182. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1183. // with awserr.Error's Code and Message methods to get detailed information about
  1184. // the error.
  1185. //
  1186. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1187. // API operation AttachNetworkInterface for usage and error information.
  1188. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterface
  1189. func (c *EC2) AttachNetworkInterface(input *AttachNetworkInterfaceInput) (*AttachNetworkInterfaceOutput, error) {
  1190. req, out := c.AttachNetworkInterfaceRequest(input)
  1191. return out, req.Send()
  1192. }
  1193. // AttachNetworkInterfaceWithContext is the same as AttachNetworkInterface with the addition of
  1194. // the ability to pass a context and additional request options.
  1195. //
  1196. // See AttachNetworkInterface for details on how to use this API operation.
  1197. //
  1198. // The context must be non-nil and will be used for request cancellation. If
  1199. // the context is nil a panic will occur. In the future the SDK may create
  1200. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1201. // for more information on using Contexts.
  1202. func (c *EC2) AttachNetworkInterfaceWithContext(ctx aws.Context, input *AttachNetworkInterfaceInput, opts ...request.Option) (*AttachNetworkInterfaceOutput, error) {
  1203. req, out := c.AttachNetworkInterfaceRequest(input)
  1204. req.SetContext(ctx)
  1205. req.ApplyOptions(opts...)
  1206. return out, req.Send()
  1207. }
  1208. const opAttachVolume = "AttachVolume"
  1209. // AttachVolumeRequest generates a "aws/request.Request" representing the
  1210. // client's request for the AttachVolume operation. The "output" return
  1211. // value will be populated with the request's response once the request complets
  1212. // successfuly.
  1213. //
  1214. // Use "Send" method on the returned Request to send the API call to the service.
  1215. // the "output" return value is not valid until after Send returns without error.
  1216. //
  1217. // See AttachVolume for more information on using the AttachVolume
  1218. // API call, and error handling.
  1219. //
  1220. // This method is useful when you want to inject custom logic or configuration
  1221. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1222. //
  1223. //
  1224. // // Example sending a request using the AttachVolumeRequest method.
  1225. // req, resp := client.AttachVolumeRequest(params)
  1226. //
  1227. // err := req.Send()
  1228. // if err == nil { // resp is now filled
  1229. // fmt.Println(resp)
  1230. // }
  1231. //
  1232. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume
  1233. func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  1234. op := &request.Operation{
  1235. Name: opAttachVolume,
  1236. HTTPMethod: "POST",
  1237. HTTPPath: "/",
  1238. }
  1239. if input == nil {
  1240. input = &AttachVolumeInput{}
  1241. }
  1242. output = &VolumeAttachment{}
  1243. req = c.newRequest(op, input, output)
  1244. return
  1245. }
  1246. // AttachVolume API operation for Amazon Elastic Compute Cloud.
  1247. //
  1248. // Attaches an EBS volume to a running or stopped instance and exposes it to
  1249. // the instance with the specified device name.
  1250. //
  1251. // Encrypted EBS volumes may only be attached to instances that support Amazon
  1252. // EBS encryption. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  1253. // in the Amazon Elastic Compute Cloud User Guide.
  1254. //
  1255. // For a list of supported device names, see Attaching an EBS Volume to an Instance
  1256. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html).
  1257. // Any device names that aren't reserved for instance store volumes can be used
  1258. // for EBS volumes. For more information, see Amazon EC2 Instance Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html)
  1259. // in the Amazon Elastic Compute Cloud User Guide.
  1260. //
  1261. // If a volume has an AWS Marketplace product code:
  1262. //
  1263. // * The volume can be attached only to a stopped instance.
  1264. //
  1265. // * AWS Marketplace product codes are copied from the volume to the instance.
  1266. //
  1267. // * You must be subscribed to the product.
  1268. //
  1269. // * The instance type and operating system of the instance must support
  1270. // the product. For example, you can't detach a volume from a Windows instance
  1271. // and attach it to a Linux instance.
  1272. //
  1273. // For an overview of the AWS Marketplace, see Introducing AWS Marketplace (https://aws.amazon.com/marketplace/help/200900000).
  1274. //
  1275. // For more information about EBS volumes, see Attaching Amazon EBS Volumes
  1276. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html)
  1277. // in the Amazon Elastic Compute Cloud User Guide.
  1278. //
  1279. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1280. // with awserr.Error's Code and Message methods to get detailed information about
  1281. // the error.
  1282. //
  1283. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1284. // API operation AttachVolume for usage and error information.
  1285. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolume
  1286. func (c *EC2) AttachVolume(input *AttachVolumeInput) (*VolumeAttachment, error) {
  1287. req, out := c.AttachVolumeRequest(input)
  1288. return out, req.Send()
  1289. }
  1290. // AttachVolumeWithContext is the same as AttachVolume with the addition of
  1291. // the ability to pass a context and additional request options.
  1292. //
  1293. // See AttachVolume for details on how to use this API operation.
  1294. //
  1295. // The context must be non-nil and will be used for request cancellation. If
  1296. // the context is nil a panic will occur. In the future the SDK may create
  1297. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1298. // for more information on using Contexts.
  1299. func (c *EC2) AttachVolumeWithContext(ctx aws.Context, input *AttachVolumeInput, opts ...request.Option) (*VolumeAttachment, error) {
  1300. req, out := c.AttachVolumeRequest(input)
  1301. req.SetContext(ctx)
  1302. req.ApplyOptions(opts...)
  1303. return out, req.Send()
  1304. }
  1305. const opAttachVpnGateway = "AttachVpnGateway"
  1306. // AttachVpnGatewayRequest generates a "aws/request.Request" representing the
  1307. // client's request for the AttachVpnGateway operation. The "output" return
  1308. // value will be populated with the request's response once the request complets
  1309. // successfuly.
  1310. //
  1311. // Use "Send" method on the returned Request to send the API call to the service.
  1312. // the "output" return value is not valid until after Send returns without error.
  1313. //
  1314. // See AttachVpnGateway for more information on using the AttachVpnGateway
  1315. // API call, and error handling.
  1316. //
  1317. // This method is useful when you want to inject custom logic or configuration
  1318. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1319. //
  1320. //
  1321. // // Example sending a request using the AttachVpnGatewayRequest method.
  1322. // req, resp := client.AttachVpnGatewayRequest(params)
  1323. //
  1324. // err := req.Send()
  1325. // if err == nil { // resp is now filled
  1326. // fmt.Println(resp)
  1327. // }
  1328. //
  1329. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway
  1330. func (c *EC2) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) (req *request.Request, output *AttachVpnGatewayOutput) {
  1331. op := &request.Operation{
  1332. Name: opAttachVpnGateway,
  1333. HTTPMethod: "POST",
  1334. HTTPPath: "/",
  1335. }
  1336. if input == nil {
  1337. input = &AttachVpnGatewayInput{}
  1338. }
  1339. output = &AttachVpnGatewayOutput{}
  1340. req = c.newRequest(op, input, output)
  1341. return
  1342. }
  1343. // AttachVpnGateway API operation for Amazon Elastic Compute Cloud.
  1344. //
  1345. // Attaches a virtual private gateway to a VPC. You can attach one virtual private
  1346. // gateway to one VPC at a time.
  1347. //
  1348. // For more information, see AWS Managed VPN Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  1349. // in the Amazon Virtual Private Cloud User Guide.
  1350. //
  1351. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1352. // with awserr.Error's Code and Message methods to get detailed information about
  1353. // the error.
  1354. //
  1355. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1356. // API operation AttachVpnGateway for usage and error information.
  1357. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGateway
  1358. func (c *EC2) AttachVpnGateway(input *AttachVpnGatewayInput) (*AttachVpnGatewayOutput, error) {
  1359. req, out := c.AttachVpnGatewayRequest(input)
  1360. return out, req.Send()
  1361. }
  1362. // AttachVpnGatewayWithContext is the same as AttachVpnGateway with the addition of
  1363. // the ability to pass a context and additional request options.
  1364. //
  1365. // See AttachVpnGateway for details on how to use this API operation.
  1366. //
  1367. // The context must be non-nil and will be used for request cancellation. If
  1368. // the context is nil a panic will occur. In the future the SDK may create
  1369. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1370. // for more information on using Contexts.
  1371. func (c *EC2) AttachVpnGatewayWithContext(ctx aws.Context, input *AttachVpnGatewayInput, opts ...request.Option) (*AttachVpnGatewayOutput, error) {
  1372. req, out := c.AttachVpnGatewayRequest(input)
  1373. req.SetContext(ctx)
  1374. req.ApplyOptions(opts...)
  1375. return out, req.Send()
  1376. }
  1377. const opAuthorizeSecurityGroupEgress = "AuthorizeSecurityGroupEgress"
  1378. // AuthorizeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  1379. // client's request for the AuthorizeSecurityGroupEgress operation. The "output" return
  1380. // value will be populated with the request's response once the request complets
  1381. // successfuly.
  1382. //
  1383. // Use "Send" method on the returned Request to send the API call to the service.
  1384. // the "output" return value is not valid until after Send returns without error.
  1385. //
  1386. // See AuthorizeSecurityGroupEgress for more information on using the AuthorizeSecurityGroupEgress
  1387. // API call, and error handling.
  1388. //
  1389. // This method is useful when you want to inject custom logic or configuration
  1390. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1391. //
  1392. //
  1393. // // Example sending a request using the AuthorizeSecurityGroupEgressRequest method.
  1394. // req, resp := client.AuthorizeSecurityGroupEgressRequest(params)
  1395. //
  1396. // err := req.Send()
  1397. // if err == nil { // resp is now filled
  1398. // fmt.Println(resp)
  1399. // }
  1400. //
  1401. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress
  1402. func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupEgressInput) (req *request.Request, output *AuthorizeSecurityGroupEgressOutput) {
  1403. op := &request.Operation{
  1404. Name: opAuthorizeSecurityGroupEgress,
  1405. HTTPMethod: "POST",
  1406. HTTPPath: "/",
  1407. }
  1408. if input == nil {
  1409. input = &AuthorizeSecurityGroupEgressInput{}
  1410. }
  1411. output = &AuthorizeSecurityGroupEgressOutput{}
  1412. req = c.newRequest(op, input, output)
  1413. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1414. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1415. return
  1416. }
  1417. // AuthorizeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud.
  1418. //
  1419. // [EC2-VPC only] Adds one or more egress rules to a security group for use
  1420. // with a VPC. Specifically, this action permits instances to send traffic to
  1421. // one or more destination IPv4 or IPv6 CIDR address ranges, or to one or more
  1422. // destination security groups for the same VPC. This action doesn't apply to
  1423. // security groups for use in EC2-Classic. For more information, see Security
  1424. // Groups for Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  1425. // in the Amazon Virtual Private Cloud User Guide. For more information about
  1426. // security group limits, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html).
  1427. //
  1428. // Each rule consists of the protocol (for example, TCP), plus either a CIDR
  1429. // range or a source group. For the TCP and UDP protocols, you must also specify
  1430. // the destination port or port range. For the ICMP protocol, you must also
  1431. // specify the ICMP type and code. You can use -1 for the type or code to mean
  1432. // all types or all codes. You can optionally specify a description for the
  1433. // rule.
  1434. //
  1435. // Rule changes are propagated to affected instances as quickly as possible.
  1436. // However, a small delay might occur.
  1437. //
  1438. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1439. // with awserr.Error's Code and Message methods to get detailed information about
  1440. // the error.
  1441. //
  1442. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1443. // API operation AuthorizeSecurityGroupEgress for usage and error information.
  1444. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgress
  1445. func (c *EC2) AuthorizeSecurityGroupEgress(input *AuthorizeSecurityGroupEgressInput) (*AuthorizeSecurityGroupEgressOutput, error) {
  1446. req, out := c.AuthorizeSecurityGroupEgressRequest(input)
  1447. return out, req.Send()
  1448. }
  1449. // AuthorizeSecurityGroupEgressWithContext is the same as AuthorizeSecurityGroupEgress with the addition of
  1450. // the ability to pass a context and additional request options.
  1451. //
  1452. // See AuthorizeSecurityGroupEgress for details on how to use this API operation.
  1453. //
  1454. // The context must be non-nil and will be used for request cancellation. If
  1455. // the context is nil a panic will occur. In the future the SDK may create
  1456. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1457. // for more information on using Contexts.
  1458. func (c *EC2) AuthorizeSecurityGroupEgressWithContext(ctx aws.Context, input *AuthorizeSecurityGroupEgressInput, opts ...request.Option) (*AuthorizeSecurityGroupEgressOutput, error) {
  1459. req, out := c.AuthorizeSecurityGroupEgressRequest(input)
  1460. req.SetContext(ctx)
  1461. req.ApplyOptions(opts...)
  1462. return out, req.Send()
  1463. }
  1464. const opAuthorizeSecurityGroupIngress = "AuthorizeSecurityGroupIngress"
  1465. // AuthorizeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  1466. // client's request for the AuthorizeSecurityGroupIngress operation. The "output" return
  1467. // value will be populated with the request's response once the request complets
  1468. // successfuly.
  1469. //
  1470. // Use "Send" method on the returned Request to send the API call to the service.
  1471. // the "output" return value is not valid until after Send returns without error.
  1472. //
  1473. // See AuthorizeSecurityGroupIngress for more information on using the AuthorizeSecurityGroupIngress
  1474. // API call, and error handling.
  1475. //
  1476. // This method is useful when you want to inject custom logic or configuration
  1477. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1478. //
  1479. //
  1480. // // Example sending a request using the AuthorizeSecurityGroupIngressRequest method.
  1481. // req, resp := client.AuthorizeSecurityGroupIngressRequest(params)
  1482. //
  1483. // err := req.Send()
  1484. // if err == nil { // resp is now filled
  1485. // fmt.Println(resp)
  1486. // }
  1487. //
  1488. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress
  1489. func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroupIngressInput) (req *request.Request, output *AuthorizeSecurityGroupIngressOutput) {
  1490. op := &request.Operation{
  1491. Name: opAuthorizeSecurityGroupIngress,
  1492. HTTPMethod: "POST",
  1493. HTTPPath: "/",
  1494. }
  1495. if input == nil {
  1496. input = &AuthorizeSecurityGroupIngressInput{}
  1497. }
  1498. output = &AuthorizeSecurityGroupIngressOutput{}
  1499. req = c.newRequest(op, input, output)
  1500. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1501. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1502. return
  1503. }
  1504. // AuthorizeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud.
  1505. //
  1506. // Adds one or more ingress rules to a security group.
  1507. //
  1508. // Rule changes are propagated to instances within the security group as quickly
  1509. // as possible. However, a small delay might occur.
  1510. //
  1511. // [EC2-Classic] This action gives one or more IPv4 CIDR address ranges permission
  1512. // to access a security group in your account, or gives one or more security
  1513. // groups (called the source groups) permission to access a security group for
  1514. // your account. A source group can be for your own AWS account, or another.
  1515. // You can have up to 100 rules per group.
  1516. //
  1517. // [EC2-VPC] This action gives one or more IPv4 or IPv6 CIDR address ranges
  1518. // permission to access a security group in your VPC, or gives one or more other
  1519. // security groups (called the source groups) permission to access a security
  1520. // group for your VPC. The security groups must all be for the same VPC or a
  1521. // peer VPC in a VPC peering connection. For more information about VPC security
  1522. // group limits, see Amazon VPC Limits (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html).
  1523. //
  1524. // You can optionally specify a description for the security group rule.
  1525. //
  1526. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1527. // with awserr.Error's Code and Message methods to get detailed information about
  1528. // the error.
  1529. //
  1530. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1531. // API operation AuthorizeSecurityGroupIngress for usage and error information.
  1532. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngress
  1533. func (c *EC2) AuthorizeSecurityGroupIngress(input *AuthorizeSecurityGroupIngressInput) (*AuthorizeSecurityGroupIngressOutput, error) {
  1534. req, out := c.AuthorizeSecurityGroupIngressRequest(input)
  1535. return out, req.Send()
  1536. }
  1537. // AuthorizeSecurityGroupIngressWithContext is the same as AuthorizeSecurityGroupIngress with the addition of
  1538. // the ability to pass a context and additional request options.
  1539. //
  1540. // See AuthorizeSecurityGroupIngress for details on how to use this API operation.
  1541. //
  1542. // The context must be non-nil and will be used for request cancellation. If
  1543. // the context is nil a panic will occur. In the future the SDK may create
  1544. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1545. // for more information on using Contexts.
  1546. func (c *EC2) AuthorizeSecurityGroupIngressWithContext(ctx aws.Context, input *AuthorizeSecurityGroupIngressInput, opts ...request.Option) (*AuthorizeSecurityGroupIngressOutput, error) {
  1547. req, out := c.AuthorizeSecurityGroupIngressRequest(input)
  1548. req.SetContext(ctx)
  1549. req.ApplyOptions(opts...)
  1550. return out, req.Send()
  1551. }
  1552. const opBundleInstance = "BundleInstance"
  1553. // BundleInstanceRequest generates a "aws/request.Request" representing the
  1554. // client's request for the BundleInstance operation. The "output" return
  1555. // value will be populated with the request's response once the request complets
  1556. // successfuly.
  1557. //
  1558. // Use "Send" method on the returned Request to send the API call to the service.
  1559. // the "output" return value is not valid until after Send returns without error.
  1560. //
  1561. // See BundleInstance for more information on using the BundleInstance
  1562. // API call, and error handling.
  1563. //
  1564. // This method is useful when you want to inject custom logic or configuration
  1565. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1566. //
  1567. //
  1568. // // Example sending a request using the BundleInstanceRequest method.
  1569. // req, resp := client.BundleInstanceRequest(params)
  1570. //
  1571. // err := req.Send()
  1572. // if err == nil { // resp is now filled
  1573. // fmt.Println(resp)
  1574. // }
  1575. //
  1576. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance
  1577. func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Request, output *BundleInstanceOutput) {
  1578. op := &request.Operation{
  1579. Name: opBundleInstance,
  1580. HTTPMethod: "POST",
  1581. HTTPPath: "/",
  1582. }
  1583. if input == nil {
  1584. input = &BundleInstanceInput{}
  1585. }
  1586. output = &BundleInstanceOutput{}
  1587. req = c.newRequest(op, input, output)
  1588. return
  1589. }
  1590. // BundleInstance API operation for Amazon Elastic Compute Cloud.
  1591. //
  1592. // Bundles an Amazon instance store-backed Windows instance.
  1593. //
  1594. // During bundling, only the root device volume (C:\) is bundled. Data on other
  1595. // instance store volumes is not preserved.
  1596. //
  1597. // This action is not applicable for Linux/Unix instances or Windows instances
  1598. // that are backed by Amazon EBS.
  1599. //
  1600. // For more information, see Creating an Instance Store-Backed Windows AMI (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html).
  1601. //
  1602. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1603. // with awserr.Error's Code and Message methods to get detailed information about
  1604. // the error.
  1605. //
  1606. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1607. // API operation BundleInstance for usage and error information.
  1608. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstance
  1609. func (c *EC2) BundleInstance(input *BundleInstanceInput) (*BundleInstanceOutput, error) {
  1610. req, out := c.BundleInstanceRequest(input)
  1611. return out, req.Send()
  1612. }
  1613. // BundleInstanceWithContext is the same as BundleInstance with the addition of
  1614. // the ability to pass a context and additional request options.
  1615. //
  1616. // See BundleInstance for details on how to use this API operation.
  1617. //
  1618. // The context must be non-nil and will be used for request cancellation. If
  1619. // the context is nil a panic will occur. In the future the SDK may create
  1620. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1621. // for more information on using Contexts.
  1622. func (c *EC2) BundleInstanceWithContext(ctx aws.Context, input *BundleInstanceInput, opts ...request.Option) (*BundleInstanceOutput, error) {
  1623. req, out := c.BundleInstanceRequest(input)
  1624. req.SetContext(ctx)
  1625. req.ApplyOptions(opts...)
  1626. return out, req.Send()
  1627. }
  1628. const opCancelBundleTask = "CancelBundleTask"
  1629. // CancelBundleTaskRequest generates a "aws/request.Request" representing the
  1630. // client's request for the CancelBundleTask operation. The "output" return
  1631. // value will be populated with the request's response once the request complets
  1632. // successfuly.
  1633. //
  1634. // Use "Send" method on the returned Request to send the API call to the service.
  1635. // the "output" return value is not valid until after Send returns without error.
  1636. //
  1637. // See CancelBundleTask for more information on using the CancelBundleTask
  1638. // API call, and error handling.
  1639. //
  1640. // This method is useful when you want to inject custom logic or configuration
  1641. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1642. //
  1643. //
  1644. // // Example sending a request using the CancelBundleTaskRequest method.
  1645. // req, resp := client.CancelBundleTaskRequest(params)
  1646. //
  1647. // err := req.Send()
  1648. // if err == nil { // resp is now filled
  1649. // fmt.Println(resp)
  1650. // }
  1651. //
  1652. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask
  1653. func (c *EC2) CancelBundleTaskRequest(input *CancelBundleTaskInput) (req *request.Request, output *CancelBundleTaskOutput) {
  1654. op := &request.Operation{
  1655. Name: opCancelBundleTask,
  1656. HTTPMethod: "POST",
  1657. HTTPPath: "/",
  1658. }
  1659. if input == nil {
  1660. input = &CancelBundleTaskInput{}
  1661. }
  1662. output = &CancelBundleTaskOutput{}
  1663. req = c.newRequest(op, input, output)
  1664. return
  1665. }
  1666. // CancelBundleTask API operation for Amazon Elastic Compute Cloud.
  1667. //
  1668. // Cancels a bundling operation for an instance store-backed Windows instance.
  1669. //
  1670. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1671. // with awserr.Error's Code and Message methods to get detailed information about
  1672. // the error.
  1673. //
  1674. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1675. // API operation CancelBundleTask for usage and error information.
  1676. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTask
  1677. func (c *EC2) CancelBundleTask(input *CancelBundleTaskInput) (*CancelBundleTaskOutput, error) {
  1678. req, out := c.CancelBundleTaskRequest(input)
  1679. return out, req.Send()
  1680. }
  1681. // CancelBundleTaskWithContext is the same as CancelBundleTask with the addition of
  1682. // the ability to pass a context and additional request options.
  1683. //
  1684. // See CancelBundleTask for details on how to use this API operation.
  1685. //
  1686. // The context must be non-nil and will be used for request cancellation. If
  1687. // the context is nil a panic will occur. In the future the SDK may create
  1688. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1689. // for more information on using Contexts.
  1690. func (c *EC2) CancelBundleTaskWithContext(ctx aws.Context, input *CancelBundleTaskInput, opts ...request.Option) (*CancelBundleTaskOutput, error) {
  1691. req, out := c.CancelBundleTaskRequest(input)
  1692. req.SetContext(ctx)
  1693. req.ApplyOptions(opts...)
  1694. return out, req.Send()
  1695. }
  1696. const opCancelConversionTask = "CancelConversionTask"
  1697. // CancelConversionTaskRequest generates a "aws/request.Request" representing the
  1698. // client's request for the CancelConversionTask operation. The "output" return
  1699. // value will be populated with the request's response once the request complets
  1700. // successfuly.
  1701. //
  1702. // Use "Send" method on the returned Request to send the API call to the service.
  1703. // the "output" return value is not valid until after Send returns without error.
  1704. //
  1705. // See CancelConversionTask for more information on using the CancelConversionTask
  1706. // API call, and error handling.
  1707. //
  1708. // This method is useful when you want to inject custom logic or configuration
  1709. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1710. //
  1711. //
  1712. // // Example sending a request using the CancelConversionTaskRequest method.
  1713. // req, resp := client.CancelConversionTaskRequest(params)
  1714. //
  1715. // err := req.Send()
  1716. // if err == nil { // resp is now filled
  1717. // fmt.Println(resp)
  1718. // }
  1719. //
  1720. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask
  1721. func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req *request.Request, output *CancelConversionTaskOutput) {
  1722. op := &request.Operation{
  1723. Name: opCancelConversionTask,
  1724. HTTPMethod: "POST",
  1725. HTTPPath: "/",
  1726. }
  1727. if input == nil {
  1728. input = &CancelConversionTaskInput{}
  1729. }
  1730. output = &CancelConversionTaskOutput{}
  1731. req = c.newRequest(op, input, output)
  1732. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1733. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1734. return
  1735. }
  1736. // CancelConversionTask API operation for Amazon Elastic Compute Cloud.
  1737. //
  1738. // Cancels an active conversion task. The task can be the import of an instance
  1739. // or volume. The action removes all artifacts of the conversion, including
  1740. // a partially uploaded volume or instance. If the conversion is complete or
  1741. // is in the process of transferring the final disk image, the command fails
  1742. // and returns an exception.
  1743. //
  1744. // For more information, see Importing a Virtual Machine Using the Amazon EC2
  1745. // CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).
  1746. //
  1747. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1748. // with awserr.Error's Code and Message methods to get detailed information about
  1749. // the error.
  1750. //
  1751. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1752. // API operation CancelConversionTask for usage and error information.
  1753. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTask
  1754. func (c *EC2) CancelConversionTask(input *CancelConversionTaskInput) (*CancelConversionTaskOutput, error) {
  1755. req, out := c.CancelConversionTaskRequest(input)
  1756. return out, req.Send()
  1757. }
  1758. // CancelConversionTaskWithContext is the same as CancelConversionTask with the addition of
  1759. // the ability to pass a context and additional request options.
  1760. //
  1761. // See CancelConversionTask for details on how to use this API operation.
  1762. //
  1763. // The context must be non-nil and will be used for request cancellation. If
  1764. // the context is nil a panic will occur. In the future the SDK may create
  1765. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1766. // for more information on using Contexts.
  1767. func (c *EC2) CancelConversionTaskWithContext(ctx aws.Context, input *CancelConversionTaskInput, opts ...request.Option) (*CancelConversionTaskOutput, error) {
  1768. req, out := c.CancelConversionTaskRequest(input)
  1769. req.SetContext(ctx)
  1770. req.ApplyOptions(opts...)
  1771. return out, req.Send()
  1772. }
  1773. const opCancelExportTask = "CancelExportTask"
  1774. // CancelExportTaskRequest generates a "aws/request.Request" representing the
  1775. // client's request for the CancelExportTask operation. The "output" return
  1776. // value will be populated with the request's response once the request complets
  1777. // successfuly.
  1778. //
  1779. // Use "Send" method on the returned Request to send the API call to the service.
  1780. // the "output" return value is not valid until after Send returns without error.
  1781. //
  1782. // See CancelExportTask for more information on using the CancelExportTask
  1783. // API call, and error handling.
  1784. //
  1785. // This method is useful when you want to inject custom logic or configuration
  1786. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1787. //
  1788. //
  1789. // // Example sending a request using the CancelExportTaskRequest method.
  1790. // req, resp := client.CancelExportTaskRequest(params)
  1791. //
  1792. // err := req.Send()
  1793. // if err == nil { // resp is now filled
  1794. // fmt.Println(resp)
  1795. // }
  1796. //
  1797. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask
  1798. func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) {
  1799. op := &request.Operation{
  1800. Name: opCancelExportTask,
  1801. HTTPMethod: "POST",
  1802. HTTPPath: "/",
  1803. }
  1804. if input == nil {
  1805. input = &CancelExportTaskInput{}
  1806. }
  1807. output = &CancelExportTaskOutput{}
  1808. req = c.newRequest(op, input, output)
  1809. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1810. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1811. return
  1812. }
  1813. // CancelExportTask API operation for Amazon Elastic Compute Cloud.
  1814. //
  1815. // Cancels an active export task. The request removes all artifacts of the export,
  1816. // including any partially-created Amazon S3 objects. If the export task is
  1817. // complete or is in the process of transferring the final disk image, the command
  1818. // fails and returns an error.
  1819. //
  1820. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1821. // with awserr.Error's Code and Message methods to get detailed information about
  1822. // the error.
  1823. //
  1824. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1825. // API operation CancelExportTask for usage and error information.
  1826. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTask
  1827. func (c *EC2) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) {
  1828. req, out := c.CancelExportTaskRequest(input)
  1829. return out, req.Send()
  1830. }
  1831. // CancelExportTaskWithContext is the same as CancelExportTask with the addition of
  1832. // the ability to pass a context and additional request options.
  1833. //
  1834. // See CancelExportTask for details on how to use this API operation.
  1835. //
  1836. // The context must be non-nil and will be used for request cancellation. If
  1837. // the context is nil a panic will occur. In the future the SDK may create
  1838. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1839. // for more information on using Contexts.
  1840. func (c *EC2) CancelExportTaskWithContext(ctx aws.Context, input *CancelExportTaskInput, opts ...request.Option) (*CancelExportTaskOutput, error) {
  1841. req, out := c.CancelExportTaskRequest(input)
  1842. req.SetContext(ctx)
  1843. req.ApplyOptions(opts...)
  1844. return out, req.Send()
  1845. }
  1846. const opCancelImportTask = "CancelImportTask"
  1847. // CancelImportTaskRequest generates a "aws/request.Request" representing the
  1848. // client's request for the CancelImportTask operation. The "output" return
  1849. // value will be populated with the request's response once the request complets
  1850. // successfuly.
  1851. //
  1852. // Use "Send" method on the returned Request to send the API call to the service.
  1853. // the "output" return value is not valid until after Send returns without error.
  1854. //
  1855. // See CancelImportTask for more information on using the CancelImportTask
  1856. // API call, and error handling.
  1857. //
  1858. // This method is useful when you want to inject custom logic or configuration
  1859. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1860. //
  1861. //
  1862. // // Example sending a request using the CancelImportTaskRequest method.
  1863. // req, resp := client.CancelImportTaskRequest(params)
  1864. //
  1865. // err := req.Send()
  1866. // if err == nil { // resp is now filled
  1867. // fmt.Println(resp)
  1868. // }
  1869. //
  1870. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask
  1871. func (c *EC2) CancelImportTaskRequest(input *CancelImportTaskInput) (req *request.Request, output *CancelImportTaskOutput) {
  1872. op := &request.Operation{
  1873. Name: opCancelImportTask,
  1874. HTTPMethod: "POST",
  1875. HTTPPath: "/",
  1876. }
  1877. if input == nil {
  1878. input = &CancelImportTaskInput{}
  1879. }
  1880. output = &CancelImportTaskOutput{}
  1881. req = c.newRequest(op, input, output)
  1882. return
  1883. }
  1884. // CancelImportTask API operation for Amazon Elastic Compute Cloud.
  1885. //
  1886. // Cancels an in-process import virtual machine or import snapshot task.
  1887. //
  1888. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1889. // with awserr.Error's Code and Message methods to get detailed information about
  1890. // the error.
  1891. //
  1892. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1893. // API operation CancelImportTask for usage and error information.
  1894. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTask
  1895. func (c *EC2) CancelImportTask(input *CancelImportTaskInput) (*CancelImportTaskOutput, error) {
  1896. req, out := c.CancelImportTaskRequest(input)
  1897. return out, req.Send()
  1898. }
  1899. // CancelImportTaskWithContext is the same as CancelImportTask with the addition of
  1900. // the ability to pass a context and additional request options.
  1901. //
  1902. // See CancelImportTask for details on how to use this API operation.
  1903. //
  1904. // The context must be non-nil and will be used for request cancellation. If
  1905. // the context is nil a panic will occur. In the future the SDK may create
  1906. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1907. // for more information on using Contexts.
  1908. func (c *EC2) CancelImportTaskWithContext(ctx aws.Context, input *CancelImportTaskInput, opts ...request.Option) (*CancelImportTaskOutput, error) {
  1909. req, out := c.CancelImportTaskRequest(input)
  1910. req.SetContext(ctx)
  1911. req.ApplyOptions(opts...)
  1912. return out, req.Send()
  1913. }
  1914. const opCancelReservedInstancesListing = "CancelReservedInstancesListing"
  1915. // CancelReservedInstancesListingRequest generates a "aws/request.Request" representing the
  1916. // client's request for the CancelReservedInstancesListing operation. The "output" return
  1917. // value will be populated with the request's response once the request complets
  1918. // successfuly.
  1919. //
  1920. // Use "Send" method on the returned Request to send the API call to the service.
  1921. // the "output" return value is not valid until after Send returns without error.
  1922. //
  1923. // See CancelReservedInstancesListing for more information on using the CancelReservedInstancesListing
  1924. // API call, and error handling.
  1925. //
  1926. // This method is useful when you want to inject custom logic or configuration
  1927. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1928. //
  1929. //
  1930. // // Example sending a request using the CancelReservedInstancesListingRequest method.
  1931. // req, resp := client.CancelReservedInstancesListingRequest(params)
  1932. //
  1933. // err := req.Send()
  1934. // if err == nil { // resp is now filled
  1935. // fmt.Println(resp)
  1936. // }
  1937. //
  1938. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing
  1939. func (c *EC2) CancelReservedInstancesListingRequest(input *CancelReservedInstancesListingInput) (req *request.Request, output *CancelReservedInstancesListingOutput) {
  1940. op := &request.Operation{
  1941. Name: opCancelReservedInstancesListing,
  1942. HTTPMethod: "POST",
  1943. HTTPPath: "/",
  1944. }
  1945. if input == nil {
  1946. input = &CancelReservedInstancesListingInput{}
  1947. }
  1948. output = &CancelReservedInstancesListingOutput{}
  1949. req = c.newRequest(op, input, output)
  1950. return
  1951. }
  1952. // CancelReservedInstancesListing API operation for Amazon Elastic Compute Cloud.
  1953. //
  1954. // Cancels the specified Reserved Instance listing in the Reserved Instance
  1955. // Marketplace.
  1956. //
  1957. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  1958. // in the Amazon Elastic Compute Cloud User Guide.
  1959. //
  1960. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1961. // with awserr.Error's Code and Message methods to get detailed information about
  1962. // the error.
  1963. //
  1964. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  1965. // API operation CancelReservedInstancesListing for usage and error information.
  1966. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListing
  1967. func (c *EC2) CancelReservedInstancesListing(input *CancelReservedInstancesListingInput) (*CancelReservedInstancesListingOutput, error) {
  1968. req, out := c.CancelReservedInstancesListingRequest(input)
  1969. return out, req.Send()
  1970. }
  1971. // CancelReservedInstancesListingWithContext is the same as CancelReservedInstancesListing with the addition of
  1972. // the ability to pass a context and additional request options.
  1973. //
  1974. // See CancelReservedInstancesListing for details on how to use this API operation.
  1975. //
  1976. // The context must be non-nil and will be used for request cancellation. If
  1977. // the context is nil a panic will occur. In the future the SDK may create
  1978. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1979. // for more information on using Contexts.
  1980. func (c *EC2) CancelReservedInstancesListingWithContext(ctx aws.Context, input *CancelReservedInstancesListingInput, opts ...request.Option) (*CancelReservedInstancesListingOutput, error) {
  1981. req, out := c.CancelReservedInstancesListingRequest(input)
  1982. req.SetContext(ctx)
  1983. req.ApplyOptions(opts...)
  1984. return out, req.Send()
  1985. }
  1986. const opCancelSpotFleetRequests = "CancelSpotFleetRequests"
  1987. // CancelSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  1988. // client's request for the CancelSpotFleetRequests operation. The "output" return
  1989. // value will be populated with the request's response once the request complets
  1990. // successfuly.
  1991. //
  1992. // Use "Send" method on the returned Request to send the API call to the service.
  1993. // the "output" return value is not valid until after Send returns without error.
  1994. //
  1995. // See CancelSpotFleetRequests for more information on using the CancelSpotFleetRequests
  1996. // API call, and error handling.
  1997. //
  1998. // This method is useful when you want to inject custom logic or configuration
  1999. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2000. //
  2001. //
  2002. // // Example sending a request using the CancelSpotFleetRequestsRequest method.
  2003. // req, resp := client.CancelSpotFleetRequestsRequest(params)
  2004. //
  2005. // err := req.Send()
  2006. // if err == nil { // resp is now filled
  2007. // fmt.Println(resp)
  2008. // }
  2009. //
  2010. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests
  2011. func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput) (req *request.Request, output *CancelSpotFleetRequestsOutput) {
  2012. op := &request.Operation{
  2013. Name: opCancelSpotFleetRequests,
  2014. HTTPMethod: "POST",
  2015. HTTPPath: "/",
  2016. }
  2017. if input == nil {
  2018. input = &CancelSpotFleetRequestsInput{}
  2019. }
  2020. output = &CancelSpotFleetRequestsOutput{}
  2021. req = c.newRequest(op, input, output)
  2022. return
  2023. }
  2024. // CancelSpotFleetRequests API operation for Amazon Elastic Compute Cloud.
  2025. //
  2026. // Cancels the specified Spot Fleet requests.
  2027. //
  2028. // After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot
  2029. // Instances. You must specify whether the Spot Fleet should also terminate
  2030. // its Spot Instances. If you terminate the instances, the Spot Fleet request
  2031. // enters the cancelled_terminating state. Otherwise, the Spot Fleet request
  2032. // enters the cancelled_running state and the instances continue to run until
  2033. // they are interrupted or you terminate them manually.
  2034. //
  2035. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2036. // with awserr.Error's Code and Message methods to get detailed information about
  2037. // the error.
  2038. //
  2039. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2040. // API operation CancelSpotFleetRequests for usage and error information.
  2041. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequests
  2042. func (c *EC2) CancelSpotFleetRequests(input *CancelSpotFleetRequestsInput) (*CancelSpotFleetRequestsOutput, error) {
  2043. req, out := c.CancelSpotFleetRequestsRequest(input)
  2044. return out, req.Send()
  2045. }
  2046. // CancelSpotFleetRequestsWithContext is the same as CancelSpotFleetRequests with the addition of
  2047. // the ability to pass a context and additional request options.
  2048. //
  2049. // See CancelSpotFleetRequests for details on how to use this API operation.
  2050. //
  2051. // The context must be non-nil and will be used for request cancellation. If
  2052. // the context is nil a panic will occur. In the future the SDK may create
  2053. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2054. // for more information on using Contexts.
  2055. func (c *EC2) CancelSpotFleetRequestsWithContext(ctx aws.Context, input *CancelSpotFleetRequestsInput, opts ...request.Option) (*CancelSpotFleetRequestsOutput, error) {
  2056. req, out := c.CancelSpotFleetRequestsRequest(input)
  2057. req.SetContext(ctx)
  2058. req.ApplyOptions(opts...)
  2059. return out, req.Send()
  2060. }
  2061. const opCancelSpotInstanceRequests = "CancelSpotInstanceRequests"
  2062. // CancelSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  2063. // client's request for the CancelSpotInstanceRequests operation. The "output" return
  2064. // value will be populated with the request's response once the request complets
  2065. // successfuly.
  2066. //
  2067. // Use "Send" method on the returned Request to send the API call to the service.
  2068. // the "output" return value is not valid until after Send returns without error.
  2069. //
  2070. // See CancelSpotInstanceRequests for more information on using the CancelSpotInstanceRequests
  2071. // API call, and error handling.
  2072. //
  2073. // This method is useful when you want to inject custom logic or configuration
  2074. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2075. //
  2076. //
  2077. // // Example sending a request using the CancelSpotInstanceRequestsRequest method.
  2078. // req, resp := client.CancelSpotInstanceRequestsRequest(params)
  2079. //
  2080. // err := req.Send()
  2081. // if err == nil { // resp is now filled
  2082. // fmt.Println(resp)
  2083. // }
  2084. //
  2085. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests
  2086. func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequestsInput) (req *request.Request, output *CancelSpotInstanceRequestsOutput) {
  2087. op := &request.Operation{
  2088. Name: opCancelSpotInstanceRequests,
  2089. HTTPMethod: "POST",
  2090. HTTPPath: "/",
  2091. }
  2092. if input == nil {
  2093. input = &CancelSpotInstanceRequestsInput{}
  2094. }
  2095. output = &CancelSpotInstanceRequestsOutput{}
  2096. req = c.newRequest(op, input, output)
  2097. return
  2098. }
  2099. // CancelSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
  2100. //
  2101. // Cancels one or more Spot Instance requests. Spot Instances are instances
  2102. // that Amazon EC2 starts on your behalf when the maximum price that you specify
  2103. // exceeds the current Spot price. For more information, see Spot Instance Requests
  2104. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) in
  2105. // the Amazon Elastic Compute Cloud User Guide.
  2106. //
  2107. // Canceling a Spot Instance request does not terminate running Spot Instances
  2108. // associated with the request.
  2109. //
  2110. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2111. // with awserr.Error's Code and Message methods to get detailed information about
  2112. // the error.
  2113. //
  2114. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2115. // API operation CancelSpotInstanceRequests for usage and error information.
  2116. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequests
  2117. func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) {
  2118. req, out := c.CancelSpotInstanceRequestsRequest(input)
  2119. return out, req.Send()
  2120. }
  2121. // CancelSpotInstanceRequestsWithContext is the same as CancelSpotInstanceRequests with the addition of
  2122. // the ability to pass a context and additional request options.
  2123. //
  2124. // See CancelSpotInstanceRequests for details on how to use this API operation.
  2125. //
  2126. // The context must be non-nil and will be used for request cancellation. If
  2127. // the context is nil a panic will occur. In the future the SDK may create
  2128. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2129. // for more information on using Contexts.
  2130. func (c *EC2) CancelSpotInstanceRequestsWithContext(ctx aws.Context, input *CancelSpotInstanceRequestsInput, opts ...request.Option) (*CancelSpotInstanceRequestsOutput, error) {
  2131. req, out := c.CancelSpotInstanceRequestsRequest(input)
  2132. req.SetContext(ctx)
  2133. req.ApplyOptions(opts...)
  2134. return out, req.Send()
  2135. }
  2136. const opConfirmProductInstance = "ConfirmProductInstance"
  2137. // ConfirmProductInstanceRequest generates a "aws/request.Request" representing the
  2138. // client's request for the ConfirmProductInstance operation. The "output" return
  2139. // value will be populated with the request's response once the request complets
  2140. // successfuly.
  2141. //
  2142. // Use "Send" method on the returned Request to send the API call to the service.
  2143. // the "output" return value is not valid until after Send returns without error.
  2144. //
  2145. // See ConfirmProductInstance for more information on using the ConfirmProductInstance
  2146. // API call, and error handling.
  2147. //
  2148. // This method is useful when you want to inject custom logic or configuration
  2149. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2150. //
  2151. //
  2152. // // Example sending a request using the ConfirmProductInstanceRequest method.
  2153. // req, resp := client.ConfirmProductInstanceRequest(params)
  2154. //
  2155. // err := req.Send()
  2156. // if err == nil { // resp is now filled
  2157. // fmt.Println(resp)
  2158. // }
  2159. //
  2160. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance
  2161. func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) (req *request.Request, output *ConfirmProductInstanceOutput) {
  2162. op := &request.Operation{
  2163. Name: opConfirmProductInstance,
  2164. HTTPMethod: "POST",
  2165. HTTPPath: "/",
  2166. }
  2167. if input == nil {
  2168. input = &ConfirmProductInstanceInput{}
  2169. }
  2170. output = &ConfirmProductInstanceOutput{}
  2171. req = c.newRequest(op, input, output)
  2172. return
  2173. }
  2174. // ConfirmProductInstance API operation for Amazon Elastic Compute Cloud.
  2175. //
  2176. // Determines whether a product code is associated with an instance. This action
  2177. // can only be used by the owner of the product code. It is useful when a product
  2178. // code owner must verify whether another user's instance is eligible for support.
  2179. //
  2180. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2181. // with awserr.Error's Code and Message methods to get detailed information about
  2182. // the error.
  2183. //
  2184. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2185. // API operation ConfirmProductInstance for usage and error information.
  2186. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstance
  2187. func (c *EC2) ConfirmProductInstance(input *ConfirmProductInstanceInput) (*ConfirmProductInstanceOutput, error) {
  2188. req, out := c.ConfirmProductInstanceRequest(input)
  2189. return out, req.Send()
  2190. }
  2191. // ConfirmProductInstanceWithContext is the same as ConfirmProductInstance with the addition of
  2192. // the ability to pass a context and additional request options.
  2193. //
  2194. // See ConfirmProductInstance for details on how to use this API operation.
  2195. //
  2196. // The context must be non-nil and will be used for request cancellation. If
  2197. // the context is nil a panic will occur. In the future the SDK may create
  2198. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2199. // for more information on using Contexts.
  2200. func (c *EC2) ConfirmProductInstanceWithContext(ctx aws.Context, input *ConfirmProductInstanceInput, opts ...request.Option) (*ConfirmProductInstanceOutput, error) {
  2201. req, out := c.ConfirmProductInstanceRequest(input)
  2202. req.SetContext(ctx)
  2203. req.ApplyOptions(opts...)
  2204. return out, req.Send()
  2205. }
  2206. const opCopyFpgaImage = "CopyFpgaImage"
  2207. // CopyFpgaImageRequest generates a "aws/request.Request" representing the
  2208. // client's request for the CopyFpgaImage operation. The "output" return
  2209. // value will be populated with the request's response once the request complets
  2210. // successfuly.
  2211. //
  2212. // Use "Send" method on the returned Request to send the API call to the service.
  2213. // the "output" return value is not valid until after Send returns without error.
  2214. //
  2215. // See CopyFpgaImage for more information on using the CopyFpgaImage
  2216. // API call, and error handling.
  2217. //
  2218. // This method is useful when you want to inject custom logic or configuration
  2219. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2220. //
  2221. //
  2222. // // Example sending a request using the CopyFpgaImageRequest method.
  2223. // req, resp := client.CopyFpgaImageRequest(params)
  2224. //
  2225. // err := req.Send()
  2226. // if err == nil { // resp is now filled
  2227. // fmt.Println(resp)
  2228. // }
  2229. //
  2230. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImage
  2231. func (c *EC2) CopyFpgaImageRequest(input *CopyFpgaImageInput) (req *request.Request, output *CopyFpgaImageOutput) {
  2232. op := &request.Operation{
  2233. Name: opCopyFpgaImage,
  2234. HTTPMethod: "POST",
  2235. HTTPPath: "/",
  2236. }
  2237. if input == nil {
  2238. input = &CopyFpgaImageInput{}
  2239. }
  2240. output = &CopyFpgaImageOutput{}
  2241. req = c.newRequest(op, input, output)
  2242. return
  2243. }
  2244. // CopyFpgaImage API operation for Amazon Elastic Compute Cloud.
  2245. //
  2246. // Copies the specified Amazon FPGA Image (AFI) to the current region.
  2247. //
  2248. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2249. // with awserr.Error's Code and Message methods to get detailed information about
  2250. // the error.
  2251. //
  2252. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2253. // API operation CopyFpgaImage for usage and error information.
  2254. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImage
  2255. func (c *EC2) CopyFpgaImage(input *CopyFpgaImageInput) (*CopyFpgaImageOutput, error) {
  2256. req, out := c.CopyFpgaImageRequest(input)
  2257. return out, req.Send()
  2258. }
  2259. // CopyFpgaImageWithContext is the same as CopyFpgaImage with the addition of
  2260. // the ability to pass a context and additional request options.
  2261. //
  2262. // See CopyFpgaImage for details on how to use this API operation.
  2263. //
  2264. // The context must be non-nil and will be used for request cancellation. If
  2265. // the context is nil a panic will occur. In the future the SDK may create
  2266. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2267. // for more information on using Contexts.
  2268. func (c *EC2) CopyFpgaImageWithContext(ctx aws.Context, input *CopyFpgaImageInput, opts ...request.Option) (*CopyFpgaImageOutput, error) {
  2269. req, out := c.CopyFpgaImageRequest(input)
  2270. req.SetContext(ctx)
  2271. req.ApplyOptions(opts...)
  2272. return out, req.Send()
  2273. }
  2274. const opCopyImage = "CopyImage"
  2275. // CopyImageRequest generates a "aws/request.Request" representing the
  2276. // client's request for the CopyImage operation. The "output" return
  2277. // value will be populated with the request's response once the request complets
  2278. // successfuly.
  2279. //
  2280. // Use "Send" method on the returned Request to send the API call to the service.
  2281. // the "output" return value is not valid until after Send returns without error.
  2282. //
  2283. // See CopyImage for more information on using the CopyImage
  2284. // API call, and error handling.
  2285. //
  2286. // This method is useful when you want to inject custom logic or configuration
  2287. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2288. //
  2289. //
  2290. // // Example sending a request using the CopyImageRequest method.
  2291. // req, resp := client.CopyImageRequest(params)
  2292. //
  2293. // err := req.Send()
  2294. // if err == nil { // resp is now filled
  2295. // fmt.Println(resp)
  2296. // }
  2297. //
  2298. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage
  2299. func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) {
  2300. op := &request.Operation{
  2301. Name: opCopyImage,
  2302. HTTPMethod: "POST",
  2303. HTTPPath: "/",
  2304. }
  2305. if input == nil {
  2306. input = &CopyImageInput{}
  2307. }
  2308. output = &CopyImageOutput{}
  2309. req = c.newRequest(op, input, output)
  2310. return
  2311. }
  2312. // CopyImage API operation for Amazon Elastic Compute Cloud.
  2313. //
  2314. // Initiates the copy of an AMI from the specified source region to the current
  2315. // region. You specify the destination region by using its endpoint when making
  2316. // the request.
  2317. //
  2318. // For more information about the prerequisites and limits when copying an AMI,
  2319. // see Copying an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html)
  2320. // in the Amazon Elastic Compute Cloud User Guide.
  2321. //
  2322. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2323. // with awserr.Error's Code and Message methods to get detailed information about
  2324. // the error.
  2325. //
  2326. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2327. // API operation CopyImage for usage and error information.
  2328. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImage
  2329. func (c *EC2) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) {
  2330. req, out := c.CopyImageRequest(input)
  2331. return out, req.Send()
  2332. }
  2333. // CopyImageWithContext is the same as CopyImage with the addition of
  2334. // the ability to pass a context and additional request options.
  2335. //
  2336. // See CopyImage for details on how to use this API operation.
  2337. //
  2338. // The context must be non-nil and will be used for request cancellation. If
  2339. // the context is nil a panic will occur. In the future the SDK may create
  2340. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2341. // for more information on using Contexts.
  2342. func (c *EC2) CopyImageWithContext(ctx aws.Context, input *CopyImageInput, opts ...request.Option) (*CopyImageOutput, error) {
  2343. req, out := c.CopyImageRequest(input)
  2344. req.SetContext(ctx)
  2345. req.ApplyOptions(opts...)
  2346. return out, req.Send()
  2347. }
  2348. const opCopySnapshot = "CopySnapshot"
  2349. // CopySnapshotRequest generates a "aws/request.Request" representing the
  2350. // client's request for the CopySnapshot operation. The "output" return
  2351. // value will be populated with the request's response once the request complets
  2352. // successfuly.
  2353. //
  2354. // Use "Send" method on the returned Request to send the API call to the service.
  2355. // the "output" return value is not valid until after Send returns without error.
  2356. //
  2357. // See CopySnapshot for more information on using the CopySnapshot
  2358. // API call, and error handling.
  2359. //
  2360. // This method is useful when you want to inject custom logic or configuration
  2361. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2362. //
  2363. //
  2364. // // Example sending a request using the CopySnapshotRequest method.
  2365. // req, resp := client.CopySnapshotRequest(params)
  2366. //
  2367. // err := req.Send()
  2368. // if err == nil { // resp is now filled
  2369. // fmt.Println(resp)
  2370. // }
  2371. //
  2372. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot
  2373. func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Request, output *CopySnapshotOutput) {
  2374. op := &request.Operation{
  2375. Name: opCopySnapshot,
  2376. HTTPMethod: "POST",
  2377. HTTPPath: "/",
  2378. }
  2379. if input == nil {
  2380. input = &CopySnapshotInput{}
  2381. }
  2382. output = &CopySnapshotOutput{}
  2383. req = c.newRequest(op, input, output)
  2384. return
  2385. }
  2386. // CopySnapshot API operation for Amazon Elastic Compute Cloud.
  2387. //
  2388. // Copies a point-in-time snapshot of an EBS volume and stores it in Amazon
  2389. // S3. You can copy the snapshot within the same region or from one region to
  2390. // another. You can use the snapshot to create EBS volumes or Amazon Machine
  2391. // Images (AMIs). The snapshot is copied to the regional endpoint that you send
  2392. // the HTTP request to.
  2393. //
  2394. // Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted
  2395. // snapshots remain unencrypted, unless the Encrypted flag is specified during
  2396. // the snapshot copy operation. By default, encrypted snapshot copies use the
  2397. // default AWS Key Management Service (AWS KMS) customer master key (CMK); however,
  2398. // you can specify a non-default CMK with the KmsKeyId parameter.
  2399. //
  2400. // To copy an encrypted snapshot that has been shared from another account,
  2401. // you must have permissions for the CMK used to encrypt the snapshot.
  2402. //
  2403. // Snapshots created by the CopySnapshot action have an arbitrary volume ID
  2404. // that should not be used for any purpose.
  2405. //
  2406. // For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html)
  2407. // in the Amazon Elastic Compute Cloud User Guide.
  2408. //
  2409. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2410. // with awserr.Error's Code and Message methods to get detailed information about
  2411. // the error.
  2412. //
  2413. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2414. // API operation CopySnapshot for usage and error information.
  2415. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshot
  2416. func (c *EC2) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) {
  2417. req, out := c.CopySnapshotRequest(input)
  2418. return out, req.Send()
  2419. }
  2420. // CopySnapshotWithContext is the same as CopySnapshot with the addition of
  2421. // the ability to pass a context and additional request options.
  2422. //
  2423. // See CopySnapshot for details on how to use this API operation.
  2424. //
  2425. // The context must be non-nil and will be used for request cancellation. If
  2426. // the context is nil a panic will occur. In the future the SDK may create
  2427. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2428. // for more information on using Contexts.
  2429. func (c *EC2) CopySnapshotWithContext(ctx aws.Context, input *CopySnapshotInput, opts ...request.Option) (*CopySnapshotOutput, error) {
  2430. req, out := c.CopySnapshotRequest(input)
  2431. req.SetContext(ctx)
  2432. req.ApplyOptions(opts...)
  2433. return out, req.Send()
  2434. }
  2435. const opCreateCustomerGateway = "CreateCustomerGateway"
  2436. // CreateCustomerGatewayRequest generates a "aws/request.Request" representing the
  2437. // client's request for the CreateCustomerGateway operation. The "output" return
  2438. // value will be populated with the request's response once the request complets
  2439. // successfuly.
  2440. //
  2441. // Use "Send" method on the returned Request to send the API call to the service.
  2442. // the "output" return value is not valid until after Send returns without error.
  2443. //
  2444. // See CreateCustomerGateway for more information on using the CreateCustomerGateway
  2445. // API call, and error handling.
  2446. //
  2447. // This method is useful when you want to inject custom logic or configuration
  2448. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2449. //
  2450. //
  2451. // // Example sending a request using the CreateCustomerGatewayRequest method.
  2452. // req, resp := client.CreateCustomerGatewayRequest(params)
  2453. //
  2454. // err := req.Send()
  2455. // if err == nil { // resp is now filled
  2456. // fmt.Println(resp)
  2457. // }
  2458. //
  2459. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway
  2460. func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (req *request.Request, output *CreateCustomerGatewayOutput) {
  2461. op := &request.Operation{
  2462. Name: opCreateCustomerGateway,
  2463. HTTPMethod: "POST",
  2464. HTTPPath: "/",
  2465. }
  2466. if input == nil {
  2467. input = &CreateCustomerGatewayInput{}
  2468. }
  2469. output = &CreateCustomerGatewayOutput{}
  2470. req = c.newRequest(op, input, output)
  2471. return
  2472. }
  2473. // CreateCustomerGateway API operation for Amazon Elastic Compute Cloud.
  2474. //
  2475. // Provides information to AWS about your VPN customer gateway device. The customer
  2476. // gateway is the appliance at your end of the VPN connection. (The device on
  2477. // the AWS side of the VPN connection is the virtual private gateway.) You must
  2478. // provide the Internet-routable IP address of the customer gateway's external
  2479. // interface. The IP address must be static and may be behind a device performing
  2480. // network address translation (NAT).
  2481. //
  2482. // For devices that use Border Gateway Protocol (BGP), you can also provide
  2483. // the device's BGP Autonomous System Number (ASN). You can use an existing
  2484. // ASN assigned to your network. If you don't have an ASN already, you can use
  2485. // a private ASN (in the 64512 - 65534 range).
  2486. //
  2487. // Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with
  2488. // the exception of 7224, which is reserved in the us-east-1 region, and 9059,
  2489. // which is reserved in the eu-west-1 region.
  2490. //
  2491. // For more information about VPN customer gateways, see AWS Managed VPN Connections
  2492. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  2493. // Amazon Virtual Private Cloud User Guide.
  2494. //
  2495. // You cannot create more than one customer gateway with the same VPN type,
  2496. // IP address, and BGP ASN parameter values. If you run an identical request
  2497. // more than one time, the first request creates the customer gateway, and subsequent
  2498. // requests return information about the existing customer gateway. The subsequent
  2499. // requests do not create new customer gateway resources.
  2500. //
  2501. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2502. // with awserr.Error's Code and Message methods to get detailed information about
  2503. // the error.
  2504. //
  2505. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2506. // API operation CreateCustomerGateway for usage and error information.
  2507. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGateway
  2508. func (c *EC2) CreateCustomerGateway(input *CreateCustomerGatewayInput) (*CreateCustomerGatewayOutput, error) {
  2509. req, out := c.CreateCustomerGatewayRequest(input)
  2510. return out, req.Send()
  2511. }
  2512. // CreateCustomerGatewayWithContext is the same as CreateCustomerGateway with the addition of
  2513. // the ability to pass a context and additional request options.
  2514. //
  2515. // See CreateCustomerGateway for details on how to use this API operation.
  2516. //
  2517. // The context must be non-nil and will be used for request cancellation. If
  2518. // the context is nil a panic will occur. In the future the SDK may create
  2519. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2520. // for more information on using Contexts.
  2521. func (c *EC2) CreateCustomerGatewayWithContext(ctx aws.Context, input *CreateCustomerGatewayInput, opts ...request.Option) (*CreateCustomerGatewayOutput, error) {
  2522. req, out := c.CreateCustomerGatewayRequest(input)
  2523. req.SetContext(ctx)
  2524. req.ApplyOptions(opts...)
  2525. return out, req.Send()
  2526. }
  2527. const opCreateDefaultSubnet = "CreateDefaultSubnet"
  2528. // CreateDefaultSubnetRequest generates a "aws/request.Request" representing the
  2529. // client's request for the CreateDefaultSubnet operation. The "output" return
  2530. // value will be populated with the request's response once the request complets
  2531. // successfuly.
  2532. //
  2533. // Use "Send" method on the returned Request to send the API call to the service.
  2534. // the "output" return value is not valid until after Send returns without error.
  2535. //
  2536. // See CreateDefaultSubnet for more information on using the CreateDefaultSubnet
  2537. // API call, and error handling.
  2538. //
  2539. // This method is useful when you want to inject custom logic or configuration
  2540. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2541. //
  2542. //
  2543. // // Example sending a request using the CreateDefaultSubnetRequest method.
  2544. // req, resp := client.CreateDefaultSubnetRequest(params)
  2545. //
  2546. // err := req.Send()
  2547. // if err == nil { // resp is now filled
  2548. // fmt.Println(resp)
  2549. // }
  2550. //
  2551. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnet
  2552. func (c *EC2) CreateDefaultSubnetRequest(input *CreateDefaultSubnetInput) (req *request.Request, output *CreateDefaultSubnetOutput) {
  2553. op := &request.Operation{
  2554. Name: opCreateDefaultSubnet,
  2555. HTTPMethod: "POST",
  2556. HTTPPath: "/",
  2557. }
  2558. if input == nil {
  2559. input = &CreateDefaultSubnetInput{}
  2560. }
  2561. output = &CreateDefaultSubnetOutput{}
  2562. req = c.newRequest(op, input, output)
  2563. return
  2564. }
  2565. // CreateDefaultSubnet API operation for Amazon Elastic Compute Cloud.
  2566. //
  2567. // Creates a default subnet with a size /20 IPv4 CIDR block in the specified
  2568. // Availability Zone in your default VPC. You can have only one default subnet
  2569. // per Availability Zone. For more information, see Creating a Default Subnet
  2570. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html#create-default-subnet)
  2571. // in the Amazon Virtual Private Cloud User Guide.
  2572. //
  2573. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2574. // with awserr.Error's Code and Message methods to get detailed information about
  2575. // the error.
  2576. //
  2577. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2578. // API operation CreateDefaultSubnet for usage and error information.
  2579. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnet
  2580. func (c *EC2) CreateDefaultSubnet(input *CreateDefaultSubnetInput) (*CreateDefaultSubnetOutput, error) {
  2581. req, out := c.CreateDefaultSubnetRequest(input)
  2582. return out, req.Send()
  2583. }
  2584. // CreateDefaultSubnetWithContext is the same as CreateDefaultSubnet with the addition of
  2585. // the ability to pass a context and additional request options.
  2586. //
  2587. // See CreateDefaultSubnet for details on how to use this API operation.
  2588. //
  2589. // The context must be non-nil and will be used for request cancellation. If
  2590. // the context is nil a panic will occur. In the future the SDK may create
  2591. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2592. // for more information on using Contexts.
  2593. func (c *EC2) CreateDefaultSubnetWithContext(ctx aws.Context, input *CreateDefaultSubnetInput, opts ...request.Option) (*CreateDefaultSubnetOutput, error) {
  2594. req, out := c.CreateDefaultSubnetRequest(input)
  2595. req.SetContext(ctx)
  2596. req.ApplyOptions(opts...)
  2597. return out, req.Send()
  2598. }
  2599. const opCreateDefaultVpc = "CreateDefaultVpc"
  2600. // CreateDefaultVpcRequest generates a "aws/request.Request" representing the
  2601. // client's request for the CreateDefaultVpc operation. The "output" return
  2602. // value will be populated with the request's response once the request complets
  2603. // successfuly.
  2604. //
  2605. // Use "Send" method on the returned Request to send the API call to the service.
  2606. // the "output" return value is not valid until after Send returns without error.
  2607. //
  2608. // See CreateDefaultVpc for more information on using the CreateDefaultVpc
  2609. // API call, and error handling.
  2610. //
  2611. // This method is useful when you want to inject custom logic or configuration
  2612. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2613. //
  2614. //
  2615. // // Example sending a request using the CreateDefaultVpcRequest method.
  2616. // req, resp := client.CreateDefaultVpcRequest(params)
  2617. //
  2618. // err := req.Send()
  2619. // if err == nil { // resp is now filled
  2620. // fmt.Println(resp)
  2621. // }
  2622. //
  2623. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpc
  2624. func (c *EC2) CreateDefaultVpcRequest(input *CreateDefaultVpcInput) (req *request.Request, output *CreateDefaultVpcOutput) {
  2625. op := &request.Operation{
  2626. Name: opCreateDefaultVpc,
  2627. HTTPMethod: "POST",
  2628. HTTPPath: "/",
  2629. }
  2630. if input == nil {
  2631. input = &CreateDefaultVpcInput{}
  2632. }
  2633. output = &CreateDefaultVpcOutput{}
  2634. req = c.newRequest(op, input, output)
  2635. return
  2636. }
  2637. // CreateDefaultVpc API operation for Amazon Elastic Compute Cloud.
  2638. //
  2639. // Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet
  2640. // in each Availability Zone. For more information about the components of a
  2641. // default VPC, see Default VPC and Default Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/default-vpc.html)
  2642. // in the Amazon Virtual Private Cloud User Guide. You cannot specify the components
  2643. // of the default VPC yourself.
  2644. //
  2645. // You can create a default VPC if you deleted your previous default VPC. You
  2646. // cannot have more than one default VPC per region.
  2647. //
  2648. // If your account supports EC2-Classic, you cannot use this action to create
  2649. // a default VPC in a region that supports EC2-Classic. If you want a default
  2650. // VPC in a region that supports EC2-Classic, see "I really want a default VPC
  2651. // for my existing EC2 account. Is that possible?" in the Default VPCs FAQ (http://aws.amazon.com/vpc/faqs/#Default_VPCs).
  2652. //
  2653. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2654. // with awserr.Error's Code and Message methods to get detailed information about
  2655. // the error.
  2656. //
  2657. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2658. // API operation CreateDefaultVpc for usage and error information.
  2659. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpc
  2660. func (c *EC2) CreateDefaultVpc(input *CreateDefaultVpcInput) (*CreateDefaultVpcOutput, error) {
  2661. req, out := c.CreateDefaultVpcRequest(input)
  2662. return out, req.Send()
  2663. }
  2664. // CreateDefaultVpcWithContext is the same as CreateDefaultVpc with the addition of
  2665. // the ability to pass a context and additional request options.
  2666. //
  2667. // See CreateDefaultVpc for details on how to use this API operation.
  2668. //
  2669. // The context must be non-nil and will be used for request cancellation. If
  2670. // the context is nil a panic will occur. In the future the SDK may create
  2671. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2672. // for more information on using Contexts.
  2673. func (c *EC2) CreateDefaultVpcWithContext(ctx aws.Context, input *CreateDefaultVpcInput, opts ...request.Option) (*CreateDefaultVpcOutput, error) {
  2674. req, out := c.CreateDefaultVpcRequest(input)
  2675. req.SetContext(ctx)
  2676. req.ApplyOptions(opts...)
  2677. return out, req.Send()
  2678. }
  2679. const opCreateDhcpOptions = "CreateDhcpOptions"
  2680. // CreateDhcpOptionsRequest generates a "aws/request.Request" representing the
  2681. // client's request for the CreateDhcpOptions operation. The "output" return
  2682. // value will be populated with the request's response once the request complets
  2683. // successfuly.
  2684. //
  2685. // Use "Send" method on the returned Request to send the API call to the service.
  2686. // the "output" return value is not valid until after Send returns without error.
  2687. //
  2688. // See CreateDhcpOptions for more information on using the CreateDhcpOptions
  2689. // API call, and error handling.
  2690. //
  2691. // This method is useful when you want to inject custom logic or configuration
  2692. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2693. //
  2694. //
  2695. // // Example sending a request using the CreateDhcpOptionsRequest method.
  2696. // req, resp := client.CreateDhcpOptionsRequest(params)
  2697. //
  2698. // err := req.Send()
  2699. // if err == nil { // resp is now filled
  2700. // fmt.Println(resp)
  2701. // }
  2702. //
  2703. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions
  2704. func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *request.Request, output *CreateDhcpOptionsOutput) {
  2705. op := &request.Operation{
  2706. Name: opCreateDhcpOptions,
  2707. HTTPMethod: "POST",
  2708. HTTPPath: "/",
  2709. }
  2710. if input == nil {
  2711. input = &CreateDhcpOptionsInput{}
  2712. }
  2713. output = &CreateDhcpOptionsOutput{}
  2714. req = c.newRequest(op, input, output)
  2715. return
  2716. }
  2717. // CreateDhcpOptions API operation for Amazon Elastic Compute Cloud.
  2718. //
  2719. // Creates a set of DHCP options for your VPC. After creating the set, you must
  2720. // associate it with the VPC, causing all existing and new instances that you
  2721. // launch in the VPC to use this set of DHCP options. The following are the
  2722. // individual DHCP options you can specify. For more information about the options,
  2723. // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  2724. //
  2725. // * domain-name-servers - The IP addresses of up to four domain name servers,
  2726. // or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS.
  2727. // If specifying more than one domain name server, specify the IP addresses
  2728. // in a single parameter, separated by commas. If you want your instance
  2729. // to receive a custom DNS hostname as specified in domain-name, you must
  2730. // set domain-name-servers to a custom DNS server.
  2731. //
  2732. // * domain-name - If you're using AmazonProvidedDNS in us-east-1, specify
  2733. // ec2.internal. If you're using AmazonProvidedDNS in another region, specify
  2734. // region.compute.internal (for example, ap-northeast-1.compute.internal).
  2735. // Otherwise, specify a domain name (for example, MyCompany.com). This value
  2736. // is used to complete unqualified DNS hostnames. Important: Some Linux operating
  2737. // systems accept multiple domain names separated by spaces. However, Windows
  2738. // and other Linux operating systems treat the value as a single domain,
  2739. // which results in unexpected behavior. If your DHCP options set is associated
  2740. // with a VPC that has instances with multiple operating systems, specify
  2741. // only one domain name.
  2742. //
  2743. // * ntp-servers - The IP addresses of up to four Network Time Protocol (NTP)
  2744. // servers.
  2745. //
  2746. // * netbios-name-servers - The IP addresses of up to four NetBIOS name servers.
  2747. //
  2748. // * netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend
  2749. // that you specify 2 (broadcast and multicast are not currently supported).
  2750. // For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  2751. //
  2752. // Your VPC automatically starts out with a set of DHCP options that includes
  2753. // only a DNS server that we provide (AmazonProvidedDNS). If you create a set
  2754. // of options, and if your VPC has an Internet gateway, make sure to set the
  2755. // domain-name-servers option either to AmazonProvidedDNS or to a domain name
  2756. // server of your choice. For more information about DHCP options, see DHCP
  2757. // Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  2758. // in the Amazon Virtual Private Cloud User Guide.
  2759. //
  2760. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2761. // with awserr.Error's Code and Message methods to get detailed information about
  2762. // the error.
  2763. //
  2764. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2765. // API operation CreateDhcpOptions for usage and error information.
  2766. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptions
  2767. func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) {
  2768. req, out := c.CreateDhcpOptionsRequest(input)
  2769. return out, req.Send()
  2770. }
  2771. // CreateDhcpOptionsWithContext is the same as CreateDhcpOptions with the addition of
  2772. // the ability to pass a context and additional request options.
  2773. //
  2774. // See CreateDhcpOptions for details on how to use this API operation.
  2775. //
  2776. // The context must be non-nil and will be used for request cancellation. If
  2777. // the context is nil a panic will occur. In the future the SDK may create
  2778. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2779. // for more information on using Contexts.
  2780. func (c *EC2) CreateDhcpOptionsWithContext(ctx aws.Context, input *CreateDhcpOptionsInput, opts ...request.Option) (*CreateDhcpOptionsOutput, error) {
  2781. req, out := c.CreateDhcpOptionsRequest(input)
  2782. req.SetContext(ctx)
  2783. req.ApplyOptions(opts...)
  2784. return out, req.Send()
  2785. }
  2786. const opCreateEgressOnlyInternetGateway = "CreateEgressOnlyInternetGateway"
  2787. // CreateEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the
  2788. // client's request for the CreateEgressOnlyInternetGateway operation. The "output" return
  2789. // value will be populated with the request's response once the request complets
  2790. // successfuly.
  2791. //
  2792. // Use "Send" method on the returned Request to send the API call to the service.
  2793. // the "output" return value is not valid until after Send returns without error.
  2794. //
  2795. // See CreateEgressOnlyInternetGateway for more information on using the CreateEgressOnlyInternetGateway
  2796. // API call, and error handling.
  2797. //
  2798. // This method is useful when you want to inject custom logic or configuration
  2799. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2800. //
  2801. //
  2802. // // Example sending a request using the CreateEgressOnlyInternetGatewayRequest method.
  2803. // req, resp := client.CreateEgressOnlyInternetGatewayRequest(params)
  2804. //
  2805. // err := req.Send()
  2806. // if err == nil { // resp is now filled
  2807. // fmt.Println(resp)
  2808. // }
  2809. //
  2810. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway
  2811. func (c *EC2) CreateEgressOnlyInternetGatewayRequest(input *CreateEgressOnlyInternetGatewayInput) (req *request.Request, output *CreateEgressOnlyInternetGatewayOutput) {
  2812. op := &request.Operation{
  2813. Name: opCreateEgressOnlyInternetGateway,
  2814. HTTPMethod: "POST",
  2815. HTTPPath: "/",
  2816. }
  2817. if input == nil {
  2818. input = &CreateEgressOnlyInternetGatewayInput{}
  2819. }
  2820. output = &CreateEgressOnlyInternetGatewayOutput{}
  2821. req = c.newRequest(op, input, output)
  2822. return
  2823. }
  2824. // CreateEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud.
  2825. //
  2826. // [IPv6 only] Creates an egress-only Internet gateway for your VPC. An egress-only
  2827. // Internet gateway is used to enable outbound communication over IPv6 from
  2828. // instances in your VPC to the Internet, and prevents hosts outside of your
  2829. // VPC from initiating an IPv6 connection with your instance.
  2830. //
  2831. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2832. // with awserr.Error's Code and Message methods to get detailed information about
  2833. // the error.
  2834. //
  2835. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2836. // API operation CreateEgressOnlyInternetGateway for usage and error information.
  2837. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGateway
  2838. func (c *EC2) CreateEgressOnlyInternetGateway(input *CreateEgressOnlyInternetGatewayInput) (*CreateEgressOnlyInternetGatewayOutput, error) {
  2839. req, out := c.CreateEgressOnlyInternetGatewayRequest(input)
  2840. return out, req.Send()
  2841. }
  2842. // CreateEgressOnlyInternetGatewayWithContext is the same as CreateEgressOnlyInternetGateway with the addition of
  2843. // the ability to pass a context and additional request options.
  2844. //
  2845. // See CreateEgressOnlyInternetGateway for details on how to use this API operation.
  2846. //
  2847. // The context must be non-nil and will be used for request cancellation. If
  2848. // the context is nil a panic will occur. In the future the SDK may create
  2849. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2850. // for more information on using Contexts.
  2851. func (c *EC2) CreateEgressOnlyInternetGatewayWithContext(ctx aws.Context, input *CreateEgressOnlyInternetGatewayInput, opts ...request.Option) (*CreateEgressOnlyInternetGatewayOutput, error) {
  2852. req, out := c.CreateEgressOnlyInternetGatewayRequest(input)
  2853. req.SetContext(ctx)
  2854. req.ApplyOptions(opts...)
  2855. return out, req.Send()
  2856. }
  2857. const opCreateFlowLogs = "CreateFlowLogs"
  2858. // CreateFlowLogsRequest generates a "aws/request.Request" representing the
  2859. // client's request for the CreateFlowLogs operation. The "output" return
  2860. // value will be populated with the request's response once the request complets
  2861. // successfuly.
  2862. //
  2863. // Use "Send" method on the returned Request to send the API call to the service.
  2864. // the "output" return value is not valid until after Send returns without error.
  2865. //
  2866. // See CreateFlowLogs for more information on using the CreateFlowLogs
  2867. // API call, and error handling.
  2868. //
  2869. // This method is useful when you want to inject custom logic or configuration
  2870. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2871. //
  2872. //
  2873. // // Example sending a request using the CreateFlowLogsRequest method.
  2874. // req, resp := client.CreateFlowLogsRequest(params)
  2875. //
  2876. // err := req.Send()
  2877. // if err == nil { // resp is now filled
  2878. // fmt.Println(resp)
  2879. // }
  2880. //
  2881. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs
  2882. func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Request, output *CreateFlowLogsOutput) {
  2883. op := &request.Operation{
  2884. Name: opCreateFlowLogs,
  2885. HTTPMethod: "POST",
  2886. HTTPPath: "/",
  2887. }
  2888. if input == nil {
  2889. input = &CreateFlowLogsInput{}
  2890. }
  2891. output = &CreateFlowLogsOutput{}
  2892. req = c.newRequest(op, input, output)
  2893. return
  2894. }
  2895. // CreateFlowLogs API operation for Amazon Elastic Compute Cloud.
  2896. //
  2897. // Creates one or more flow logs to capture IP traffic for a specific network
  2898. // interface, subnet, or VPC. Flow logs are delivered to a specified log group
  2899. // in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request,
  2900. // a log stream is created in CloudWatch Logs for each network interface in
  2901. // the subnet or VPC. Log streams can include information about accepted and
  2902. // rejected traffic to a network interface. You can view the data in your log
  2903. // streams using Amazon CloudWatch Logs.
  2904. //
  2905. // In your request, you must also specify an IAM role that has permission to
  2906. // publish logs to CloudWatch Logs.
  2907. //
  2908. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2909. // with awserr.Error's Code and Message methods to get detailed information about
  2910. // the error.
  2911. //
  2912. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2913. // API operation CreateFlowLogs for usage and error information.
  2914. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogs
  2915. func (c *EC2) CreateFlowLogs(input *CreateFlowLogsInput) (*CreateFlowLogsOutput, error) {
  2916. req, out := c.CreateFlowLogsRequest(input)
  2917. return out, req.Send()
  2918. }
  2919. // CreateFlowLogsWithContext is the same as CreateFlowLogs with the addition of
  2920. // the ability to pass a context and additional request options.
  2921. //
  2922. // See CreateFlowLogs for details on how to use this API operation.
  2923. //
  2924. // The context must be non-nil and will be used for request cancellation. If
  2925. // the context is nil a panic will occur. In the future the SDK may create
  2926. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2927. // for more information on using Contexts.
  2928. func (c *EC2) CreateFlowLogsWithContext(ctx aws.Context, input *CreateFlowLogsInput, opts ...request.Option) (*CreateFlowLogsOutput, error) {
  2929. req, out := c.CreateFlowLogsRequest(input)
  2930. req.SetContext(ctx)
  2931. req.ApplyOptions(opts...)
  2932. return out, req.Send()
  2933. }
  2934. const opCreateFpgaImage = "CreateFpgaImage"
  2935. // CreateFpgaImageRequest generates a "aws/request.Request" representing the
  2936. // client's request for the CreateFpgaImage operation. The "output" return
  2937. // value will be populated with the request's response once the request complets
  2938. // successfuly.
  2939. //
  2940. // Use "Send" method on the returned Request to send the API call to the service.
  2941. // the "output" return value is not valid until after Send returns without error.
  2942. //
  2943. // See CreateFpgaImage for more information on using the CreateFpgaImage
  2944. // API call, and error handling.
  2945. //
  2946. // This method is useful when you want to inject custom logic or configuration
  2947. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2948. //
  2949. //
  2950. // // Example sending a request using the CreateFpgaImageRequest method.
  2951. // req, resp := client.CreateFpgaImageRequest(params)
  2952. //
  2953. // err := req.Send()
  2954. // if err == nil { // resp is now filled
  2955. // fmt.Println(resp)
  2956. // }
  2957. //
  2958. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage
  2959. func (c *EC2) CreateFpgaImageRequest(input *CreateFpgaImageInput) (req *request.Request, output *CreateFpgaImageOutput) {
  2960. op := &request.Operation{
  2961. Name: opCreateFpgaImage,
  2962. HTTPMethod: "POST",
  2963. HTTPPath: "/",
  2964. }
  2965. if input == nil {
  2966. input = &CreateFpgaImageInput{}
  2967. }
  2968. output = &CreateFpgaImageOutput{}
  2969. req = c.newRequest(op, input, output)
  2970. return
  2971. }
  2972. // CreateFpgaImage API operation for Amazon Elastic Compute Cloud.
  2973. //
  2974. // Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
  2975. //
  2976. // The create operation is asynchronous. To verify that the AFI is ready for
  2977. // use, check the output logs.
  2978. //
  2979. // An AFI contains the FPGA bitstream that is ready to download to an FPGA.
  2980. // You can securely deploy an AFI on one or more FPGA-accelerated instances.
  2981. // For more information, see the AWS FPGA Hardware Development Kit (https://github.com/aws/aws-fpga/).
  2982. //
  2983. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2984. // with awserr.Error's Code and Message methods to get detailed information about
  2985. // the error.
  2986. //
  2987. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  2988. // API operation CreateFpgaImage for usage and error information.
  2989. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImage
  2990. func (c *EC2) CreateFpgaImage(input *CreateFpgaImageInput) (*CreateFpgaImageOutput, error) {
  2991. req, out := c.CreateFpgaImageRequest(input)
  2992. return out, req.Send()
  2993. }
  2994. // CreateFpgaImageWithContext is the same as CreateFpgaImage with the addition of
  2995. // the ability to pass a context and additional request options.
  2996. //
  2997. // See CreateFpgaImage for details on how to use this API operation.
  2998. //
  2999. // The context must be non-nil and will be used for request cancellation. If
  3000. // the context is nil a panic will occur. In the future the SDK may create
  3001. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3002. // for more information on using Contexts.
  3003. func (c *EC2) CreateFpgaImageWithContext(ctx aws.Context, input *CreateFpgaImageInput, opts ...request.Option) (*CreateFpgaImageOutput, error) {
  3004. req, out := c.CreateFpgaImageRequest(input)
  3005. req.SetContext(ctx)
  3006. req.ApplyOptions(opts...)
  3007. return out, req.Send()
  3008. }
  3009. const opCreateImage = "CreateImage"
  3010. // CreateImageRequest generates a "aws/request.Request" representing the
  3011. // client's request for the CreateImage operation. The "output" return
  3012. // value will be populated with the request's response once the request complets
  3013. // successfuly.
  3014. //
  3015. // Use "Send" method on the returned Request to send the API call to the service.
  3016. // the "output" return value is not valid until after Send returns without error.
  3017. //
  3018. // See CreateImage for more information on using the CreateImage
  3019. // API call, and error handling.
  3020. //
  3021. // This method is useful when you want to inject custom logic or configuration
  3022. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3023. //
  3024. //
  3025. // // Example sending a request using the CreateImageRequest method.
  3026. // req, resp := client.CreateImageRequest(params)
  3027. //
  3028. // err := req.Send()
  3029. // if err == nil { // resp is now filled
  3030. // fmt.Println(resp)
  3031. // }
  3032. //
  3033. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage
  3034. func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, output *CreateImageOutput) {
  3035. op := &request.Operation{
  3036. Name: opCreateImage,
  3037. HTTPMethod: "POST",
  3038. HTTPPath: "/",
  3039. }
  3040. if input == nil {
  3041. input = &CreateImageInput{}
  3042. }
  3043. output = &CreateImageOutput{}
  3044. req = c.newRequest(op, input, output)
  3045. return
  3046. }
  3047. // CreateImage API operation for Amazon Elastic Compute Cloud.
  3048. //
  3049. // Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that
  3050. // is either running or stopped.
  3051. //
  3052. // If you customized your instance with instance store volumes or EBS volumes
  3053. // in addition to the root device volume, the new AMI contains block device
  3054. // mapping information for those volumes. When you launch an instance from this
  3055. // new AMI, the instance automatically launches with those additional volumes.
  3056. //
  3057. // For more information, see Creating Amazon EBS-Backed Linux AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html)
  3058. // in the Amazon Elastic Compute Cloud User Guide.
  3059. //
  3060. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3061. // with awserr.Error's Code and Message methods to get detailed information about
  3062. // the error.
  3063. //
  3064. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3065. // API operation CreateImage for usage and error information.
  3066. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImage
  3067. func (c *EC2) CreateImage(input *CreateImageInput) (*CreateImageOutput, error) {
  3068. req, out := c.CreateImageRequest(input)
  3069. return out, req.Send()
  3070. }
  3071. // CreateImageWithContext is the same as CreateImage with the addition of
  3072. // the ability to pass a context and additional request options.
  3073. //
  3074. // See CreateImage for details on how to use this API operation.
  3075. //
  3076. // The context must be non-nil and will be used for request cancellation. If
  3077. // the context is nil a panic will occur. In the future the SDK may create
  3078. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3079. // for more information on using Contexts.
  3080. func (c *EC2) CreateImageWithContext(ctx aws.Context, input *CreateImageInput, opts ...request.Option) (*CreateImageOutput, error) {
  3081. req, out := c.CreateImageRequest(input)
  3082. req.SetContext(ctx)
  3083. req.ApplyOptions(opts...)
  3084. return out, req.Send()
  3085. }
  3086. const opCreateInstanceExportTask = "CreateInstanceExportTask"
  3087. // CreateInstanceExportTaskRequest generates a "aws/request.Request" representing the
  3088. // client's request for the CreateInstanceExportTask operation. The "output" return
  3089. // value will be populated with the request's response once the request complets
  3090. // successfuly.
  3091. //
  3092. // Use "Send" method on the returned Request to send the API call to the service.
  3093. // the "output" return value is not valid until after Send returns without error.
  3094. //
  3095. // See CreateInstanceExportTask for more information on using the CreateInstanceExportTask
  3096. // API call, and error handling.
  3097. //
  3098. // This method is useful when you want to inject custom logic or configuration
  3099. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3100. //
  3101. //
  3102. // // Example sending a request using the CreateInstanceExportTaskRequest method.
  3103. // req, resp := client.CreateInstanceExportTaskRequest(params)
  3104. //
  3105. // err := req.Send()
  3106. // if err == nil { // resp is now filled
  3107. // fmt.Println(resp)
  3108. // }
  3109. //
  3110. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask
  3111. func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInput) (req *request.Request, output *CreateInstanceExportTaskOutput) {
  3112. op := &request.Operation{
  3113. Name: opCreateInstanceExportTask,
  3114. HTTPMethod: "POST",
  3115. HTTPPath: "/",
  3116. }
  3117. if input == nil {
  3118. input = &CreateInstanceExportTaskInput{}
  3119. }
  3120. output = &CreateInstanceExportTaskOutput{}
  3121. req = c.newRequest(op, input, output)
  3122. return
  3123. }
  3124. // CreateInstanceExportTask API operation for Amazon Elastic Compute Cloud.
  3125. //
  3126. // Exports a running or stopped instance to an S3 bucket.
  3127. //
  3128. // For information about the supported operating systems, image formats, and
  3129. // known limitations for the types of instances you can export, see Exporting
  3130. // an Instance as a VM Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html)
  3131. // in the VM Import/Export User Guide.
  3132. //
  3133. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3134. // with awserr.Error's Code and Message methods to get detailed information about
  3135. // the error.
  3136. //
  3137. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3138. // API operation CreateInstanceExportTask for usage and error information.
  3139. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTask
  3140. func (c *EC2) CreateInstanceExportTask(input *CreateInstanceExportTaskInput) (*CreateInstanceExportTaskOutput, error) {
  3141. req, out := c.CreateInstanceExportTaskRequest(input)
  3142. return out, req.Send()
  3143. }
  3144. // CreateInstanceExportTaskWithContext is the same as CreateInstanceExportTask with the addition of
  3145. // the ability to pass a context and additional request options.
  3146. //
  3147. // See CreateInstanceExportTask for details on how to use this API operation.
  3148. //
  3149. // The context must be non-nil and will be used for request cancellation. If
  3150. // the context is nil a panic will occur. In the future the SDK may create
  3151. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3152. // for more information on using Contexts.
  3153. func (c *EC2) CreateInstanceExportTaskWithContext(ctx aws.Context, input *CreateInstanceExportTaskInput, opts ...request.Option) (*CreateInstanceExportTaskOutput, error) {
  3154. req, out := c.CreateInstanceExportTaskRequest(input)
  3155. req.SetContext(ctx)
  3156. req.ApplyOptions(opts...)
  3157. return out, req.Send()
  3158. }
  3159. const opCreateInternetGateway = "CreateInternetGateway"
  3160. // CreateInternetGatewayRequest generates a "aws/request.Request" representing the
  3161. // client's request for the CreateInternetGateway operation. The "output" return
  3162. // value will be populated with the request's response once the request complets
  3163. // successfuly.
  3164. //
  3165. // Use "Send" method on the returned Request to send the API call to the service.
  3166. // the "output" return value is not valid until after Send returns without error.
  3167. //
  3168. // See CreateInternetGateway for more information on using the CreateInternetGateway
  3169. // API call, and error handling.
  3170. //
  3171. // This method is useful when you want to inject custom logic or configuration
  3172. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3173. //
  3174. //
  3175. // // Example sending a request using the CreateInternetGatewayRequest method.
  3176. // req, resp := client.CreateInternetGatewayRequest(params)
  3177. //
  3178. // err := req.Send()
  3179. // if err == nil { // resp is now filled
  3180. // fmt.Println(resp)
  3181. // }
  3182. //
  3183. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway
  3184. func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (req *request.Request, output *CreateInternetGatewayOutput) {
  3185. op := &request.Operation{
  3186. Name: opCreateInternetGateway,
  3187. HTTPMethod: "POST",
  3188. HTTPPath: "/",
  3189. }
  3190. if input == nil {
  3191. input = &CreateInternetGatewayInput{}
  3192. }
  3193. output = &CreateInternetGatewayOutput{}
  3194. req = c.newRequest(op, input, output)
  3195. return
  3196. }
  3197. // CreateInternetGateway API operation for Amazon Elastic Compute Cloud.
  3198. //
  3199. // Creates an Internet gateway for use with a VPC. After creating the Internet
  3200. // gateway, you attach it to a VPC using AttachInternetGateway.
  3201. //
  3202. // For more information about your VPC and Internet gateway, see the Amazon
  3203. // Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  3204. //
  3205. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3206. // with awserr.Error's Code and Message methods to get detailed information about
  3207. // the error.
  3208. //
  3209. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3210. // API operation CreateInternetGateway for usage and error information.
  3211. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGateway
  3212. func (c *EC2) CreateInternetGateway(input *CreateInternetGatewayInput) (*CreateInternetGatewayOutput, error) {
  3213. req, out := c.CreateInternetGatewayRequest(input)
  3214. return out, req.Send()
  3215. }
  3216. // CreateInternetGatewayWithContext is the same as CreateInternetGateway with the addition of
  3217. // the ability to pass a context and additional request options.
  3218. //
  3219. // See CreateInternetGateway for details on how to use this API operation.
  3220. //
  3221. // The context must be non-nil and will be used for request cancellation. If
  3222. // the context is nil a panic will occur. In the future the SDK may create
  3223. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3224. // for more information on using Contexts.
  3225. func (c *EC2) CreateInternetGatewayWithContext(ctx aws.Context, input *CreateInternetGatewayInput, opts ...request.Option) (*CreateInternetGatewayOutput, error) {
  3226. req, out := c.CreateInternetGatewayRequest(input)
  3227. req.SetContext(ctx)
  3228. req.ApplyOptions(opts...)
  3229. return out, req.Send()
  3230. }
  3231. const opCreateKeyPair = "CreateKeyPair"
  3232. // CreateKeyPairRequest generates a "aws/request.Request" representing the
  3233. // client's request for the CreateKeyPair operation. The "output" return
  3234. // value will be populated with the request's response once the request complets
  3235. // successfuly.
  3236. //
  3237. // Use "Send" method on the returned Request to send the API call to the service.
  3238. // the "output" return value is not valid until after Send returns without error.
  3239. //
  3240. // See CreateKeyPair for more information on using the CreateKeyPair
  3241. // API call, and error handling.
  3242. //
  3243. // This method is useful when you want to inject custom logic or configuration
  3244. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3245. //
  3246. //
  3247. // // Example sending a request using the CreateKeyPairRequest method.
  3248. // req, resp := client.CreateKeyPairRequest(params)
  3249. //
  3250. // err := req.Send()
  3251. // if err == nil { // resp is now filled
  3252. // fmt.Println(resp)
  3253. // }
  3254. //
  3255. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair
  3256. func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput) {
  3257. op := &request.Operation{
  3258. Name: opCreateKeyPair,
  3259. HTTPMethod: "POST",
  3260. HTTPPath: "/",
  3261. }
  3262. if input == nil {
  3263. input = &CreateKeyPairInput{}
  3264. }
  3265. output = &CreateKeyPairOutput{}
  3266. req = c.newRequest(op, input, output)
  3267. return
  3268. }
  3269. // CreateKeyPair API operation for Amazon Elastic Compute Cloud.
  3270. //
  3271. // Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores
  3272. // the public key and displays the private key for you to save to a file. The
  3273. // private key is returned as an unencrypted PEM encoded PKCS#1 private key.
  3274. // If a key with the specified name already exists, Amazon EC2 returns an error.
  3275. //
  3276. // You can have up to five thousand key pairs per region.
  3277. //
  3278. // The key pair returned to you is available only in the region in which you
  3279. // create it. If you prefer, you can create your own key pair using a third-party
  3280. // tool and upload it to any region using ImportKeyPair.
  3281. //
  3282. // For more information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  3283. // in the Amazon Elastic Compute Cloud User Guide.
  3284. //
  3285. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3286. // with awserr.Error's Code and Message methods to get detailed information about
  3287. // the error.
  3288. //
  3289. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3290. // API operation CreateKeyPair for usage and error information.
  3291. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair
  3292. func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) {
  3293. req, out := c.CreateKeyPairRequest(input)
  3294. return out, req.Send()
  3295. }
  3296. // CreateKeyPairWithContext is the same as CreateKeyPair with the addition of
  3297. // the ability to pass a context and additional request options.
  3298. //
  3299. // See CreateKeyPair for details on how to use this API operation.
  3300. //
  3301. // The context must be non-nil and will be used for request cancellation. If
  3302. // the context is nil a panic will occur. In the future the SDK may create
  3303. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3304. // for more information on using Contexts.
  3305. func (c *EC2) CreateKeyPairWithContext(ctx aws.Context, input *CreateKeyPairInput, opts ...request.Option) (*CreateKeyPairOutput, error) {
  3306. req, out := c.CreateKeyPairRequest(input)
  3307. req.SetContext(ctx)
  3308. req.ApplyOptions(opts...)
  3309. return out, req.Send()
  3310. }
  3311. const opCreateLaunchTemplate = "CreateLaunchTemplate"
  3312. // CreateLaunchTemplateRequest generates a "aws/request.Request" representing the
  3313. // client's request for the CreateLaunchTemplate operation. The "output" return
  3314. // value will be populated with the request's response once the request complets
  3315. // successfuly.
  3316. //
  3317. // Use "Send" method on the returned Request to send the API call to the service.
  3318. // the "output" return value is not valid until after Send returns without error.
  3319. //
  3320. // See CreateLaunchTemplate for more information on using the CreateLaunchTemplate
  3321. // API call, and error handling.
  3322. //
  3323. // This method is useful when you want to inject custom logic or configuration
  3324. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3325. //
  3326. //
  3327. // // Example sending a request using the CreateLaunchTemplateRequest method.
  3328. // req, resp := client.CreateLaunchTemplateRequest(params)
  3329. //
  3330. // err := req.Send()
  3331. // if err == nil { // resp is now filled
  3332. // fmt.Println(resp)
  3333. // }
  3334. //
  3335. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate
  3336. func (c *EC2) CreateLaunchTemplateRequest(input *CreateLaunchTemplateInput) (req *request.Request, output *CreateLaunchTemplateOutput) {
  3337. op := &request.Operation{
  3338. Name: opCreateLaunchTemplate,
  3339. HTTPMethod: "POST",
  3340. HTTPPath: "/",
  3341. }
  3342. if input == nil {
  3343. input = &CreateLaunchTemplateInput{}
  3344. }
  3345. output = &CreateLaunchTemplateOutput{}
  3346. req = c.newRequest(op, input, output)
  3347. return
  3348. }
  3349. // CreateLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  3350. //
  3351. // Creates a launch template. A launch template contains the parameters to launch
  3352. // an instance. When you launch an instance using RunInstances, you can specify
  3353. // a launch template instead of providing the launch parameters in the request.
  3354. //
  3355. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3356. // with awserr.Error's Code and Message methods to get detailed information about
  3357. // the error.
  3358. //
  3359. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3360. // API operation CreateLaunchTemplate for usage and error information.
  3361. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplate
  3362. func (c *EC2) CreateLaunchTemplate(input *CreateLaunchTemplateInput) (*CreateLaunchTemplateOutput, error) {
  3363. req, out := c.CreateLaunchTemplateRequest(input)
  3364. return out, req.Send()
  3365. }
  3366. // CreateLaunchTemplateWithContext is the same as CreateLaunchTemplate with the addition of
  3367. // the ability to pass a context and additional request options.
  3368. //
  3369. // See CreateLaunchTemplate for details on how to use this API operation.
  3370. //
  3371. // The context must be non-nil and will be used for request cancellation. If
  3372. // the context is nil a panic will occur. In the future the SDK may create
  3373. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3374. // for more information on using Contexts.
  3375. func (c *EC2) CreateLaunchTemplateWithContext(ctx aws.Context, input *CreateLaunchTemplateInput, opts ...request.Option) (*CreateLaunchTemplateOutput, error) {
  3376. req, out := c.CreateLaunchTemplateRequest(input)
  3377. req.SetContext(ctx)
  3378. req.ApplyOptions(opts...)
  3379. return out, req.Send()
  3380. }
  3381. const opCreateLaunchTemplateVersion = "CreateLaunchTemplateVersion"
  3382. // CreateLaunchTemplateVersionRequest generates a "aws/request.Request" representing the
  3383. // client's request for the CreateLaunchTemplateVersion operation. The "output" return
  3384. // value will be populated with the request's response once the request complets
  3385. // successfuly.
  3386. //
  3387. // Use "Send" method on the returned Request to send the API call to the service.
  3388. // the "output" return value is not valid until after Send returns without error.
  3389. //
  3390. // See CreateLaunchTemplateVersion for more information on using the CreateLaunchTemplateVersion
  3391. // API call, and error handling.
  3392. //
  3393. // This method is useful when you want to inject custom logic or configuration
  3394. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3395. //
  3396. //
  3397. // // Example sending a request using the CreateLaunchTemplateVersionRequest method.
  3398. // req, resp := client.CreateLaunchTemplateVersionRequest(params)
  3399. //
  3400. // err := req.Send()
  3401. // if err == nil { // resp is now filled
  3402. // fmt.Println(resp)
  3403. // }
  3404. //
  3405. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion
  3406. func (c *EC2) CreateLaunchTemplateVersionRequest(input *CreateLaunchTemplateVersionInput) (req *request.Request, output *CreateLaunchTemplateVersionOutput) {
  3407. op := &request.Operation{
  3408. Name: opCreateLaunchTemplateVersion,
  3409. HTTPMethod: "POST",
  3410. HTTPPath: "/",
  3411. }
  3412. if input == nil {
  3413. input = &CreateLaunchTemplateVersionInput{}
  3414. }
  3415. output = &CreateLaunchTemplateVersionOutput{}
  3416. req = c.newRequest(op, input, output)
  3417. return
  3418. }
  3419. // CreateLaunchTemplateVersion API operation for Amazon Elastic Compute Cloud.
  3420. //
  3421. // Creates a new version for a launch template. You can specify an existing
  3422. // version of launch template from which to base the new version.
  3423. //
  3424. // Launch template versions are numbered in the order in which they are created.
  3425. // You cannot specify, change, or replace the numbering of launch template versions.
  3426. //
  3427. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3428. // with awserr.Error's Code and Message methods to get detailed information about
  3429. // the error.
  3430. //
  3431. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3432. // API operation CreateLaunchTemplateVersion for usage and error information.
  3433. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion
  3434. func (c *EC2) CreateLaunchTemplateVersion(input *CreateLaunchTemplateVersionInput) (*CreateLaunchTemplateVersionOutput, error) {
  3435. req, out := c.CreateLaunchTemplateVersionRequest(input)
  3436. return out, req.Send()
  3437. }
  3438. // CreateLaunchTemplateVersionWithContext is the same as CreateLaunchTemplateVersion with the addition of
  3439. // the ability to pass a context and additional request options.
  3440. //
  3441. // See CreateLaunchTemplateVersion for details on how to use this API operation.
  3442. //
  3443. // The context must be non-nil and will be used for request cancellation. If
  3444. // the context is nil a panic will occur. In the future the SDK may create
  3445. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3446. // for more information on using Contexts.
  3447. func (c *EC2) CreateLaunchTemplateVersionWithContext(ctx aws.Context, input *CreateLaunchTemplateVersionInput, opts ...request.Option) (*CreateLaunchTemplateVersionOutput, error) {
  3448. req, out := c.CreateLaunchTemplateVersionRequest(input)
  3449. req.SetContext(ctx)
  3450. req.ApplyOptions(opts...)
  3451. return out, req.Send()
  3452. }
  3453. const opCreateNatGateway = "CreateNatGateway"
  3454. // CreateNatGatewayRequest generates a "aws/request.Request" representing the
  3455. // client's request for the CreateNatGateway operation. The "output" return
  3456. // value will be populated with the request's response once the request complets
  3457. // successfuly.
  3458. //
  3459. // Use "Send" method on the returned Request to send the API call to the service.
  3460. // the "output" return value is not valid until after Send returns without error.
  3461. //
  3462. // See CreateNatGateway for more information on using the CreateNatGateway
  3463. // API call, and error handling.
  3464. //
  3465. // This method is useful when you want to inject custom logic or configuration
  3466. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3467. //
  3468. //
  3469. // // Example sending a request using the CreateNatGatewayRequest method.
  3470. // req, resp := client.CreateNatGatewayRequest(params)
  3471. //
  3472. // err := req.Send()
  3473. // if err == nil { // resp is now filled
  3474. // fmt.Println(resp)
  3475. // }
  3476. //
  3477. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway
  3478. func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *request.Request, output *CreateNatGatewayOutput) {
  3479. op := &request.Operation{
  3480. Name: opCreateNatGateway,
  3481. HTTPMethod: "POST",
  3482. HTTPPath: "/",
  3483. }
  3484. if input == nil {
  3485. input = &CreateNatGatewayInput{}
  3486. }
  3487. output = &CreateNatGatewayOutput{}
  3488. req = c.newRequest(op, input, output)
  3489. return
  3490. }
  3491. // CreateNatGateway API operation for Amazon Elastic Compute Cloud.
  3492. //
  3493. // Creates a NAT gateway in the specified subnet. A NAT gateway can be used
  3494. // to enable instances in a private subnet to connect to the Internet. This
  3495. // action creates a network interface in the specified subnet with a private
  3496. // IP address from the IP address range of the subnet. For more information,
  3497. // see NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html)
  3498. // in the Amazon Virtual Private Cloud User Guide.
  3499. //
  3500. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3501. // with awserr.Error's Code and Message methods to get detailed information about
  3502. // the error.
  3503. //
  3504. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3505. // API operation CreateNatGateway for usage and error information.
  3506. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway
  3507. func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) {
  3508. req, out := c.CreateNatGatewayRequest(input)
  3509. return out, req.Send()
  3510. }
  3511. // CreateNatGatewayWithContext is the same as CreateNatGateway with the addition of
  3512. // the ability to pass a context and additional request options.
  3513. //
  3514. // See CreateNatGateway for details on how to use this API operation.
  3515. //
  3516. // The context must be non-nil and will be used for request cancellation. If
  3517. // the context is nil a panic will occur. In the future the SDK may create
  3518. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3519. // for more information on using Contexts.
  3520. func (c *EC2) CreateNatGatewayWithContext(ctx aws.Context, input *CreateNatGatewayInput, opts ...request.Option) (*CreateNatGatewayOutput, error) {
  3521. req, out := c.CreateNatGatewayRequest(input)
  3522. req.SetContext(ctx)
  3523. req.ApplyOptions(opts...)
  3524. return out, req.Send()
  3525. }
  3526. const opCreateNetworkAcl = "CreateNetworkAcl"
  3527. // CreateNetworkAclRequest generates a "aws/request.Request" representing the
  3528. // client's request for the CreateNetworkAcl operation. The "output" return
  3529. // value will be populated with the request's response once the request complets
  3530. // successfuly.
  3531. //
  3532. // Use "Send" method on the returned Request to send the API call to the service.
  3533. // the "output" return value is not valid until after Send returns without error.
  3534. //
  3535. // See CreateNetworkAcl for more information on using the CreateNetworkAcl
  3536. // API call, and error handling.
  3537. //
  3538. // This method is useful when you want to inject custom logic or configuration
  3539. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3540. //
  3541. //
  3542. // // Example sending a request using the CreateNetworkAclRequest method.
  3543. // req, resp := client.CreateNetworkAclRequest(params)
  3544. //
  3545. // err := req.Send()
  3546. // if err == nil { // resp is now filled
  3547. // fmt.Println(resp)
  3548. // }
  3549. //
  3550. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl
  3551. func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *request.Request, output *CreateNetworkAclOutput) {
  3552. op := &request.Operation{
  3553. Name: opCreateNetworkAcl,
  3554. HTTPMethod: "POST",
  3555. HTTPPath: "/",
  3556. }
  3557. if input == nil {
  3558. input = &CreateNetworkAclInput{}
  3559. }
  3560. output = &CreateNetworkAclOutput{}
  3561. req = c.newRequest(op, input, output)
  3562. return
  3563. }
  3564. // CreateNetworkAcl API operation for Amazon Elastic Compute Cloud.
  3565. //
  3566. // Creates a network ACL in a VPC. Network ACLs provide an optional layer of
  3567. // security (in addition to security groups) for the instances in your VPC.
  3568. //
  3569. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  3570. // in the Amazon Virtual Private Cloud User Guide.
  3571. //
  3572. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3573. // with awserr.Error's Code and Message methods to get detailed information about
  3574. // the error.
  3575. //
  3576. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3577. // API operation CreateNetworkAcl for usage and error information.
  3578. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAcl
  3579. func (c *EC2) CreateNetworkAcl(input *CreateNetworkAclInput) (*CreateNetworkAclOutput, error) {
  3580. req, out := c.CreateNetworkAclRequest(input)
  3581. return out, req.Send()
  3582. }
  3583. // CreateNetworkAclWithContext is the same as CreateNetworkAcl with the addition of
  3584. // the ability to pass a context and additional request options.
  3585. //
  3586. // See CreateNetworkAcl for details on how to use this API operation.
  3587. //
  3588. // The context must be non-nil and will be used for request cancellation. If
  3589. // the context is nil a panic will occur. In the future the SDK may create
  3590. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3591. // for more information on using Contexts.
  3592. func (c *EC2) CreateNetworkAclWithContext(ctx aws.Context, input *CreateNetworkAclInput, opts ...request.Option) (*CreateNetworkAclOutput, error) {
  3593. req, out := c.CreateNetworkAclRequest(input)
  3594. req.SetContext(ctx)
  3595. req.ApplyOptions(opts...)
  3596. return out, req.Send()
  3597. }
  3598. const opCreateNetworkAclEntry = "CreateNetworkAclEntry"
  3599. // CreateNetworkAclEntryRequest generates a "aws/request.Request" representing the
  3600. // client's request for the CreateNetworkAclEntry operation. The "output" return
  3601. // value will be populated with the request's response once the request complets
  3602. // successfuly.
  3603. //
  3604. // Use "Send" method on the returned Request to send the API call to the service.
  3605. // the "output" return value is not valid until after Send returns without error.
  3606. //
  3607. // See CreateNetworkAclEntry for more information on using the CreateNetworkAclEntry
  3608. // API call, and error handling.
  3609. //
  3610. // This method is useful when you want to inject custom logic or configuration
  3611. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3612. //
  3613. //
  3614. // // Example sending a request using the CreateNetworkAclEntryRequest method.
  3615. // req, resp := client.CreateNetworkAclEntryRequest(params)
  3616. //
  3617. // err := req.Send()
  3618. // if err == nil { // resp is now filled
  3619. // fmt.Println(resp)
  3620. // }
  3621. //
  3622. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry
  3623. func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (req *request.Request, output *CreateNetworkAclEntryOutput) {
  3624. op := &request.Operation{
  3625. Name: opCreateNetworkAclEntry,
  3626. HTTPMethod: "POST",
  3627. HTTPPath: "/",
  3628. }
  3629. if input == nil {
  3630. input = &CreateNetworkAclEntryInput{}
  3631. }
  3632. output = &CreateNetworkAclEntryOutput{}
  3633. req = c.newRequest(op, input, output)
  3634. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3635. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3636. return
  3637. }
  3638. // CreateNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  3639. //
  3640. // Creates an entry (a rule) in a network ACL with the specified rule number.
  3641. // Each network ACL has a set of numbered ingress rules and a separate set of
  3642. // numbered egress rules. When determining whether a packet should be allowed
  3643. // in or out of a subnet associated with the ACL, we process the entries in
  3644. // the ACL according to the rule numbers, in ascending order. Each network ACL
  3645. // has a set of ingress rules and a separate set of egress rules.
  3646. //
  3647. // We recommend that you leave room between the rule numbers (for example, 100,
  3648. // 110, 120, ...), and not number them one right after the other (for example,
  3649. // 101, 102, 103, ...). This makes it easier to add a rule between existing
  3650. // ones without having to renumber the rules.
  3651. //
  3652. // After you add an entry, you can't modify it; you must either replace it,
  3653. // or create an entry and delete the old one.
  3654. //
  3655. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  3656. // in the Amazon Virtual Private Cloud User Guide.
  3657. //
  3658. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3659. // with awserr.Error's Code and Message methods to get detailed information about
  3660. // the error.
  3661. //
  3662. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3663. // API operation CreateNetworkAclEntry for usage and error information.
  3664. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntry
  3665. func (c *EC2) CreateNetworkAclEntry(input *CreateNetworkAclEntryInput) (*CreateNetworkAclEntryOutput, error) {
  3666. req, out := c.CreateNetworkAclEntryRequest(input)
  3667. return out, req.Send()
  3668. }
  3669. // CreateNetworkAclEntryWithContext is the same as CreateNetworkAclEntry with the addition of
  3670. // the ability to pass a context and additional request options.
  3671. //
  3672. // See CreateNetworkAclEntry for details on how to use this API operation.
  3673. //
  3674. // The context must be non-nil and will be used for request cancellation. If
  3675. // the context is nil a panic will occur. In the future the SDK may create
  3676. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3677. // for more information on using Contexts.
  3678. func (c *EC2) CreateNetworkAclEntryWithContext(ctx aws.Context, input *CreateNetworkAclEntryInput, opts ...request.Option) (*CreateNetworkAclEntryOutput, error) {
  3679. req, out := c.CreateNetworkAclEntryRequest(input)
  3680. req.SetContext(ctx)
  3681. req.ApplyOptions(opts...)
  3682. return out, req.Send()
  3683. }
  3684. const opCreateNetworkInterface = "CreateNetworkInterface"
  3685. // CreateNetworkInterfaceRequest generates a "aws/request.Request" representing the
  3686. // client's request for the CreateNetworkInterface operation. The "output" return
  3687. // value will be populated with the request's response once the request complets
  3688. // successfuly.
  3689. //
  3690. // Use "Send" method on the returned Request to send the API call to the service.
  3691. // the "output" return value is not valid until after Send returns without error.
  3692. //
  3693. // See CreateNetworkInterface for more information on using the CreateNetworkInterface
  3694. // API call, and error handling.
  3695. //
  3696. // This method is useful when you want to inject custom logic or configuration
  3697. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3698. //
  3699. //
  3700. // // Example sending a request using the CreateNetworkInterfaceRequest method.
  3701. // req, resp := client.CreateNetworkInterfaceRequest(params)
  3702. //
  3703. // err := req.Send()
  3704. // if err == nil { // resp is now filled
  3705. // fmt.Println(resp)
  3706. // }
  3707. //
  3708. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface
  3709. func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) (req *request.Request, output *CreateNetworkInterfaceOutput) {
  3710. op := &request.Operation{
  3711. Name: opCreateNetworkInterface,
  3712. HTTPMethod: "POST",
  3713. HTTPPath: "/",
  3714. }
  3715. if input == nil {
  3716. input = &CreateNetworkInterfaceInput{}
  3717. }
  3718. output = &CreateNetworkInterfaceOutput{}
  3719. req = c.newRequest(op, input, output)
  3720. return
  3721. }
  3722. // CreateNetworkInterface API operation for Amazon Elastic Compute Cloud.
  3723. //
  3724. // Creates a network interface in the specified subnet.
  3725. //
  3726. // For more information about network interfaces, see Elastic Network Interfaces
  3727. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the
  3728. // Amazon Virtual Private Cloud User Guide.
  3729. //
  3730. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3731. // with awserr.Error's Code and Message methods to get detailed information about
  3732. // the error.
  3733. //
  3734. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3735. // API operation CreateNetworkInterface for usage and error information.
  3736. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface
  3737. func (c *EC2) CreateNetworkInterface(input *CreateNetworkInterfaceInput) (*CreateNetworkInterfaceOutput, error) {
  3738. req, out := c.CreateNetworkInterfaceRequest(input)
  3739. return out, req.Send()
  3740. }
  3741. // CreateNetworkInterfaceWithContext is the same as CreateNetworkInterface with the addition of
  3742. // the ability to pass a context and additional request options.
  3743. //
  3744. // See CreateNetworkInterface for details on how to use this API operation.
  3745. //
  3746. // The context must be non-nil and will be used for request cancellation. If
  3747. // the context is nil a panic will occur. In the future the SDK may create
  3748. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3749. // for more information on using Contexts.
  3750. func (c *EC2) CreateNetworkInterfaceWithContext(ctx aws.Context, input *CreateNetworkInterfaceInput, opts ...request.Option) (*CreateNetworkInterfaceOutput, error) {
  3751. req, out := c.CreateNetworkInterfaceRequest(input)
  3752. req.SetContext(ctx)
  3753. req.ApplyOptions(opts...)
  3754. return out, req.Send()
  3755. }
  3756. const opCreateNetworkInterfacePermission = "CreateNetworkInterfacePermission"
  3757. // CreateNetworkInterfacePermissionRequest generates a "aws/request.Request" representing the
  3758. // client's request for the CreateNetworkInterfacePermission operation. The "output" return
  3759. // value will be populated with the request's response once the request complets
  3760. // successfuly.
  3761. //
  3762. // Use "Send" method on the returned Request to send the API call to the service.
  3763. // the "output" return value is not valid until after Send returns without error.
  3764. //
  3765. // See CreateNetworkInterfacePermission for more information on using the CreateNetworkInterfacePermission
  3766. // API call, and error handling.
  3767. //
  3768. // This method is useful when you want to inject custom logic or configuration
  3769. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3770. //
  3771. //
  3772. // // Example sending a request using the CreateNetworkInterfacePermissionRequest method.
  3773. // req, resp := client.CreateNetworkInterfacePermissionRequest(params)
  3774. //
  3775. // err := req.Send()
  3776. // if err == nil { // resp is now filled
  3777. // fmt.Println(resp)
  3778. // }
  3779. //
  3780. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfacePermission
  3781. func (c *EC2) CreateNetworkInterfacePermissionRequest(input *CreateNetworkInterfacePermissionInput) (req *request.Request, output *CreateNetworkInterfacePermissionOutput) {
  3782. op := &request.Operation{
  3783. Name: opCreateNetworkInterfacePermission,
  3784. HTTPMethod: "POST",
  3785. HTTPPath: "/",
  3786. }
  3787. if input == nil {
  3788. input = &CreateNetworkInterfacePermissionInput{}
  3789. }
  3790. output = &CreateNetworkInterfacePermissionOutput{}
  3791. req = c.newRequest(op, input, output)
  3792. return
  3793. }
  3794. // CreateNetworkInterfacePermission API operation for Amazon Elastic Compute Cloud.
  3795. //
  3796. // Grants an AWS authorized partner account permission to attach the specified
  3797. // network interface to an instance in their account.
  3798. //
  3799. // You can grant permission to a single AWS account only, and only one account
  3800. // at a time.
  3801. //
  3802. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3803. // with awserr.Error's Code and Message methods to get detailed information about
  3804. // the error.
  3805. //
  3806. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3807. // API operation CreateNetworkInterfacePermission for usage and error information.
  3808. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfacePermission
  3809. func (c *EC2) CreateNetworkInterfacePermission(input *CreateNetworkInterfacePermissionInput) (*CreateNetworkInterfacePermissionOutput, error) {
  3810. req, out := c.CreateNetworkInterfacePermissionRequest(input)
  3811. return out, req.Send()
  3812. }
  3813. // CreateNetworkInterfacePermissionWithContext is the same as CreateNetworkInterfacePermission with the addition of
  3814. // the ability to pass a context and additional request options.
  3815. //
  3816. // See CreateNetworkInterfacePermission for details on how to use this API operation.
  3817. //
  3818. // The context must be non-nil and will be used for request cancellation. If
  3819. // the context is nil a panic will occur. In the future the SDK may create
  3820. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3821. // for more information on using Contexts.
  3822. func (c *EC2) CreateNetworkInterfacePermissionWithContext(ctx aws.Context, input *CreateNetworkInterfacePermissionInput, opts ...request.Option) (*CreateNetworkInterfacePermissionOutput, error) {
  3823. req, out := c.CreateNetworkInterfacePermissionRequest(input)
  3824. req.SetContext(ctx)
  3825. req.ApplyOptions(opts...)
  3826. return out, req.Send()
  3827. }
  3828. const opCreatePlacementGroup = "CreatePlacementGroup"
  3829. // CreatePlacementGroupRequest generates a "aws/request.Request" representing the
  3830. // client's request for the CreatePlacementGroup operation. The "output" return
  3831. // value will be populated with the request's response once the request complets
  3832. // successfuly.
  3833. //
  3834. // Use "Send" method on the returned Request to send the API call to the service.
  3835. // the "output" return value is not valid until after Send returns without error.
  3836. //
  3837. // See CreatePlacementGroup for more information on using the CreatePlacementGroup
  3838. // API call, and error handling.
  3839. //
  3840. // This method is useful when you want to inject custom logic or configuration
  3841. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3842. //
  3843. //
  3844. // // Example sending a request using the CreatePlacementGroupRequest method.
  3845. // req, resp := client.CreatePlacementGroupRequest(params)
  3846. //
  3847. // err := req.Send()
  3848. // if err == nil { // resp is now filled
  3849. // fmt.Println(resp)
  3850. // }
  3851. //
  3852. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup
  3853. func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req *request.Request, output *CreatePlacementGroupOutput) {
  3854. op := &request.Operation{
  3855. Name: opCreatePlacementGroup,
  3856. HTTPMethod: "POST",
  3857. HTTPPath: "/",
  3858. }
  3859. if input == nil {
  3860. input = &CreatePlacementGroupInput{}
  3861. }
  3862. output = &CreatePlacementGroupOutput{}
  3863. req = c.newRequest(op, input, output)
  3864. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3865. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3866. return
  3867. }
  3868. // CreatePlacementGroup API operation for Amazon Elastic Compute Cloud.
  3869. //
  3870. // Creates a placement group in which to launch instances. The strategy of the
  3871. // placement group determines how the instances are organized within the group.
  3872. //
  3873. // A cluster placement group is a logical grouping of instances within a single
  3874. // Availability Zone that benefit from low network latency, high network throughput.
  3875. // A spread placement group places instances on distinct hardware.
  3876. //
  3877. // For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  3878. // in the Amazon Elastic Compute Cloud User Guide.
  3879. //
  3880. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3881. // with awserr.Error's Code and Message methods to get detailed information about
  3882. // the error.
  3883. //
  3884. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3885. // API operation CreatePlacementGroup for usage and error information.
  3886. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup
  3887. func (c *EC2) CreatePlacementGroup(input *CreatePlacementGroupInput) (*CreatePlacementGroupOutput, error) {
  3888. req, out := c.CreatePlacementGroupRequest(input)
  3889. return out, req.Send()
  3890. }
  3891. // CreatePlacementGroupWithContext is the same as CreatePlacementGroup with the addition of
  3892. // the ability to pass a context and additional request options.
  3893. //
  3894. // See CreatePlacementGroup for details on how to use this API operation.
  3895. //
  3896. // The context must be non-nil and will be used for request cancellation. If
  3897. // the context is nil a panic will occur. In the future the SDK may create
  3898. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3899. // for more information on using Contexts.
  3900. func (c *EC2) CreatePlacementGroupWithContext(ctx aws.Context, input *CreatePlacementGroupInput, opts ...request.Option) (*CreatePlacementGroupOutput, error) {
  3901. req, out := c.CreatePlacementGroupRequest(input)
  3902. req.SetContext(ctx)
  3903. req.ApplyOptions(opts...)
  3904. return out, req.Send()
  3905. }
  3906. const opCreateReservedInstancesListing = "CreateReservedInstancesListing"
  3907. // CreateReservedInstancesListingRequest generates a "aws/request.Request" representing the
  3908. // client's request for the CreateReservedInstancesListing operation. The "output" return
  3909. // value will be populated with the request's response once the request complets
  3910. // successfuly.
  3911. //
  3912. // Use "Send" method on the returned Request to send the API call to the service.
  3913. // the "output" return value is not valid until after Send returns without error.
  3914. //
  3915. // See CreateReservedInstancesListing for more information on using the CreateReservedInstancesListing
  3916. // API call, and error handling.
  3917. //
  3918. // This method is useful when you want to inject custom logic or configuration
  3919. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3920. //
  3921. //
  3922. // // Example sending a request using the CreateReservedInstancesListingRequest method.
  3923. // req, resp := client.CreateReservedInstancesListingRequest(params)
  3924. //
  3925. // err := req.Send()
  3926. // if err == nil { // resp is now filled
  3927. // fmt.Println(resp)
  3928. // }
  3929. //
  3930. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing
  3931. func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstancesListingInput) (req *request.Request, output *CreateReservedInstancesListingOutput) {
  3932. op := &request.Operation{
  3933. Name: opCreateReservedInstancesListing,
  3934. HTTPMethod: "POST",
  3935. HTTPPath: "/",
  3936. }
  3937. if input == nil {
  3938. input = &CreateReservedInstancesListingInput{}
  3939. }
  3940. output = &CreateReservedInstancesListingOutput{}
  3941. req = c.newRequest(op, input, output)
  3942. return
  3943. }
  3944. // CreateReservedInstancesListing API operation for Amazon Elastic Compute Cloud.
  3945. //
  3946. // Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in
  3947. // the Reserved Instance Marketplace. You can submit one Standard Reserved Instance
  3948. // listing at a time. To get a list of your Standard Reserved Instances, you
  3949. // can use the DescribeReservedInstances operation.
  3950. //
  3951. // Only Standard Reserved Instances with a capacity reservation can be sold
  3952. // in the Reserved Instance Marketplace. Convertible Reserved Instances and
  3953. // Standard Reserved Instances with a regional benefit cannot be sold.
  3954. //
  3955. // The Reserved Instance Marketplace matches sellers who want to resell Standard
  3956. // Reserved Instance capacity that they no longer need with buyers who want
  3957. // to purchase additional capacity. Reserved Instances bought and sold through
  3958. // the Reserved Instance Marketplace work like any other Reserved Instances.
  3959. //
  3960. // To sell your Standard Reserved Instances, you must first register as a seller
  3961. // in the Reserved Instance Marketplace. After completing the registration process,
  3962. // you can create a Reserved Instance Marketplace listing of some or all of
  3963. // your Standard Reserved Instances, and specify the upfront price to receive
  3964. // for them. Your Standard Reserved Instance listings then become available
  3965. // for purchase. To view the details of your Standard Reserved Instance listing,
  3966. // you can use the DescribeReservedInstancesListings operation.
  3967. //
  3968. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  3969. // in the Amazon Elastic Compute Cloud User Guide.
  3970. //
  3971. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3972. // with awserr.Error's Code and Message methods to get detailed information about
  3973. // the error.
  3974. //
  3975. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  3976. // API operation CreateReservedInstancesListing for usage and error information.
  3977. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListing
  3978. func (c *EC2) CreateReservedInstancesListing(input *CreateReservedInstancesListingInput) (*CreateReservedInstancesListingOutput, error) {
  3979. req, out := c.CreateReservedInstancesListingRequest(input)
  3980. return out, req.Send()
  3981. }
  3982. // CreateReservedInstancesListingWithContext is the same as CreateReservedInstancesListing with the addition of
  3983. // the ability to pass a context and additional request options.
  3984. //
  3985. // See CreateReservedInstancesListing for details on how to use this API operation.
  3986. //
  3987. // The context must be non-nil and will be used for request cancellation. If
  3988. // the context is nil a panic will occur. In the future the SDK may create
  3989. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3990. // for more information on using Contexts.
  3991. func (c *EC2) CreateReservedInstancesListingWithContext(ctx aws.Context, input *CreateReservedInstancesListingInput, opts ...request.Option) (*CreateReservedInstancesListingOutput, error) {
  3992. req, out := c.CreateReservedInstancesListingRequest(input)
  3993. req.SetContext(ctx)
  3994. req.ApplyOptions(opts...)
  3995. return out, req.Send()
  3996. }
  3997. const opCreateRoute = "CreateRoute"
  3998. // CreateRouteRequest generates a "aws/request.Request" representing the
  3999. // client's request for the CreateRoute operation. The "output" return
  4000. // value will be populated with the request's response once the request complets
  4001. // successfuly.
  4002. //
  4003. // Use "Send" method on the returned Request to send the API call to the service.
  4004. // the "output" return value is not valid until after Send returns without error.
  4005. //
  4006. // See CreateRoute for more information on using the CreateRoute
  4007. // API call, and error handling.
  4008. //
  4009. // This method is useful when you want to inject custom logic or configuration
  4010. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4011. //
  4012. //
  4013. // // Example sending a request using the CreateRouteRequest method.
  4014. // req, resp := client.CreateRouteRequest(params)
  4015. //
  4016. // err := req.Send()
  4017. // if err == nil { // resp is now filled
  4018. // fmt.Println(resp)
  4019. // }
  4020. //
  4021. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute
  4022. func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, output *CreateRouteOutput) {
  4023. op := &request.Operation{
  4024. Name: opCreateRoute,
  4025. HTTPMethod: "POST",
  4026. HTTPPath: "/",
  4027. }
  4028. if input == nil {
  4029. input = &CreateRouteInput{}
  4030. }
  4031. output = &CreateRouteOutput{}
  4032. req = c.newRequest(op, input, output)
  4033. return
  4034. }
  4035. // CreateRoute API operation for Amazon Elastic Compute Cloud.
  4036. //
  4037. // Creates a route in a route table within a VPC.
  4038. //
  4039. // You must specify one of the following targets: Internet gateway or virtual
  4040. // private gateway, NAT instance, NAT gateway, VPC peering connection, network
  4041. // interface, or egress-only Internet gateway.
  4042. //
  4043. // When determining how to route traffic, we use the route with the most specific
  4044. // match. For example, traffic is destined for the IPv4 address 192.0.2.3, and
  4045. // the route table includes the following two IPv4 routes:
  4046. //
  4047. // * 192.0.2.0/24 (goes to some target A)
  4048. //
  4049. // * 192.0.2.0/28 (goes to some target B)
  4050. //
  4051. // Both routes apply to the traffic destined for 192.0.2.3. However, the second
  4052. // route in the list covers a smaller number of IP addresses and is therefore
  4053. // more specific, so we use that route to determine where to target the traffic.
  4054. //
  4055. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  4056. // in the Amazon Virtual Private Cloud User Guide.
  4057. //
  4058. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4059. // with awserr.Error's Code and Message methods to get detailed information about
  4060. // the error.
  4061. //
  4062. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4063. // API operation CreateRoute for usage and error information.
  4064. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRoute
  4065. func (c *EC2) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) {
  4066. req, out := c.CreateRouteRequest(input)
  4067. return out, req.Send()
  4068. }
  4069. // CreateRouteWithContext is the same as CreateRoute with the addition of
  4070. // the ability to pass a context and additional request options.
  4071. //
  4072. // See CreateRoute for details on how to use this API operation.
  4073. //
  4074. // The context must be non-nil and will be used for request cancellation. If
  4075. // the context is nil a panic will occur. In the future the SDK may create
  4076. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4077. // for more information on using Contexts.
  4078. func (c *EC2) CreateRouteWithContext(ctx aws.Context, input *CreateRouteInput, opts ...request.Option) (*CreateRouteOutput, error) {
  4079. req, out := c.CreateRouteRequest(input)
  4080. req.SetContext(ctx)
  4081. req.ApplyOptions(opts...)
  4082. return out, req.Send()
  4083. }
  4084. const opCreateRouteTable = "CreateRouteTable"
  4085. // CreateRouteTableRequest generates a "aws/request.Request" representing the
  4086. // client's request for the CreateRouteTable operation. The "output" return
  4087. // value will be populated with the request's response once the request complets
  4088. // successfuly.
  4089. //
  4090. // Use "Send" method on the returned Request to send the API call to the service.
  4091. // the "output" return value is not valid until after Send returns without error.
  4092. //
  4093. // See CreateRouteTable for more information on using the CreateRouteTable
  4094. // API call, and error handling.
  4095. //
  4096. // This method is useful when you want to inject custom logic or configuration
  4097. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4098. //
  4099. //
  4100. // // Example sending a request using the CreateRouteTableRequest method.
  4101. // req, resp := client.CreateRouteTableRequest(params)
  4102. //
  4103. // err := req.Send()
  4104. // if err == nil { // resp is now filled
  4105. // fmt.Println(resp)
  4106. // }
  4107. //
  4108. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable
  4109. func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *request.Request, output *CreateRouteTableOutput) {
  4110. op := &request.Operation{
  4111. Name: opCreateRouteTable,
  4112. HTTPMethod: "POST",
  4113. HTTPPath: "/",
  4114. }
  4115. if input == nil {
  4116. input = &CreateRouteTableInput{}
  4117. }
  4118. output = &CreateRouteTableOutput{}
  4119. req = c.newRequest(op, input, output)
  4120. return
  4121. }
  4122. // CreateRouteTable API operation for Amazon Elastic Compute Cloud.
  4123. //
  4124. // Creates a route table for the specified VPC. After you create a route table,
  4125. // you can add routes and associate the table with a subnet.
  4126. //
  4127. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  4128. // in the Amazon Virtual Private Cloud User Guide.
  4129. //
  4130. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4131. // with awserr.Error's Code and Message methods to get detailed information about
  4132. // the error.
  4133. //
  4134. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4135. // API operation CreateRouteTable for usage and error information.
  4136. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTable
  4137. func (c *EC2) CreateRouteTable(input *CreateRouteTableInput) (*CreateRouteTableOutput, error) {
  4138. req, out := c.CreateRouteTableRequest(input)
  4139. return out, req.Send()
  4140. }
  4141. // CreateRouteTableWithContext is the same as CreateRouteTable with the addition of
  4142. // the ability to pass a context and additional request options.
  4143. //
  4144. // See CreateRouteTable for details on how to use this API operation.
  4145. //
  4146. // The context must be non-nil and will be used for request cancellation. If
  4147. // the context is nil a panic will occur. In the future the SDK may create
  4148. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4149. // for more information on using Contexts.
  4150. func (c *EC2) CreateRouteTableWithContext(ctx aws.Context, input *CreateRouteTableInput, opts ...request.Option) (*CreateRouteTableOutput, error) {
  4151. req, out := c.CreateRouteTableRequest(input)
  4152. req.SetContext(ctx)
  4153. req.ApplyOptions(opts...)
  4154. return out, req.Send()
  4155. }
  4156. const opCreateSecurityGroup = "CreateSecurityGroup"
  4157. // CreateSecurityGroupRequest generates a "aws/request.Request" representing the
  4158. // client's request for the CreateSecurityGroup operation. The "output" return
  4159. // value will be populated with the request's response once the request complets
  4160. // successfuly.
  4161. //
  4162. // Use "Send" method on the returned Request to send the API call to the service.
  4163. // the "output" return value is not valid until after Send returns without error.
  4164. //
  4165. // See CreateSecurityGroup for more information on using the CreateSecurityGroup
  4166. // API call, and error handling.
  4167. //
  4168. // This method is useful when you want to inject custom logic or configuration
  4169. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4170. //
  4171. //
  4172. // // Example sending a request using the CreateSecurityGroupRequest method.
  4173. // req, resp := client.CreateSecurityGroupRequest(params)
  4174. //
  4175. // err := req.Send()
  4176. // if err == nil { // resp is now filled
  4177. // fmt.Println(resp)
  4178. // }
  4179. //
  4180. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup
  4181. func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput) {
  4182. op := &request.Operation{
  4183. Name: opCreateSecurityGroup,
  4184. HTTPMethod: "POST",
  4185. HTTPPath: "/",
  4186. }
  4187. if input == nil {
  4188. input = &CreateSecurityGroupInput{}
  4189. }
  4190. output = &CreateSecurityGroupOutput{}
  4191. req = c.newRequest(op, input, output)
  4192. return
  4193. }
  4194. // CreateSecurityGroup API operation for Amazon Elastic Compute Cloud.
  4195. //
  4196. // Creates a security group.
  4197. //
  4198. // A security group is for use with instances either in the EC2-Classic platform
  4199. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  4200. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  4201. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  4202. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  4203. // in the Amazon Virtual Private Cloud User Guide.
  4204. //
  4205. // EC2-Classic: You can have up to 500 security groups.
  4206. //
  4207. // EC2-VPC: You can create up to 500 security groups per VPC.
  4208. //
  4209. // When you create a security group, you specify a friendly name of your choice.
  4210. // You can have a security group for use in EC2-Classic with the same name as
  4211. // a security group for use in a VPC. However, you can't have two security groups
  4212. // for use in EC2-Classic with the same name or two security groups for use
  4213. // in a VPC with the same name.
  4214. //
  4215. // You have a default security group for use in EC2-Classic and a default security
  4216. // group for use in your VPC. If you don't specify a security group when you
  4217. // launch an instance, the instance is launched into the appropriate default
  4218. // security group. A default security group includes a default rule that grants
  4219. // instances unrestricted network access to each other.
  4220. //
  4221. // You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress,
  4222. // AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
  4223. //
  4224. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4225. // with awserr.Error's Code and Message methods to get detailed information about
  4226. // the error.
  4227. //
  4228. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4229. // API operation CreateSecurityGroup for usage and error information.
  4230. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroup
  4231. func (c *EC2) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error) {
  4232. req, out := c.CreateSecurityGroupRequest(input)
  4233. return out, req.Send()
  4234. }
  4235. // CreateSecurityGroupWithContext is the same as CreateSecurityGroup with the addition of
  4236. // the ability to pass a context and additional request options.
  4237. //
  4238. // See CreateSecurityGroup for details on how to use this API operation.
  4239. //
  4240. // The context must be non-nil and will be used for request cancellation. If
  4241. // the context is nil a panic will occur. In the future the SDK may create
  4242. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4243. // for more information on using Contexts.
  4244. func (c *EC2) CreateSecurityGroupWithContext(ctx aws.Context, input *CreateSecurityGroupInput, opts ...request.Option) (*CreateSecurityGroupOutput, error) {
  4245. req, out := c.CreateSecurityGroupRequest(input)
  4246. req.SetContext(ctx)
  4247. req.ApplyOptions(opts...)
  4248. return out, req.Send()
  4249. }
  4250. const opCreateSnapshot = "CreateSnapshot"
  4251. // CreateSnapshotRequest generates a "aws/request.Request" representing the
  4252. // client's request for the CreateSnapshot operation. The "output" return
  4253. // value will be populated with the request's response once the request complets
  4254. // successfuly.
  4255. //
  4256. // Use "Send" method on the returned Request to send the API call to the service.
  4257. // the "output" return value is not valid until after Send returns without error.
  4258. //
  4259. // See CreateSnapshot for more information on using the CreateSnapshot
  4260. // API call, and error handling.
  4261. //
  4262. // This method is useful when you want to inject custom logic or configuration
  4263. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4264. //
  4265. //
  4266. // // Example sending a request using the CreateSnapshotRequest method.
  4267. // req, resp := client.CreateSnapshotRequest(params)
  4268. //
  4269. // err := req.Send()
  4270. // if err == nil { // resp is now filled
  4271. // fmt.Println(resp)
  4272. // }
  4273. //
  4274. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot
  4275. func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *Snapshot) {
  4276. op := &request.Operation{
  4277. Name: opCreateSnapshot,
  4278. HTTPMethod: "POST",
  4279. HTTPPath: "/",
  4280. }
  4281. if input == nil {
  4282. input = &CreateSnapshotInput{}
  4283. }
  4284. output = &Snapshot{}
  4285. req = c.newRequest(op, input, output)
  4286. return
  4287. }
  4288. // CreateSnapshot API operation for Amazon Elastic Compute Cloud.
  4289. //
  4290. // Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use
  4291. // snapshots for backups, to make copies of EBS volumes, and to save data before
  4292. // shutting down an instance.
  4293. //
  4294. // When a snapshot is created, any AWS Marketplace product codes that are associated
  4295. // with the source volume are propagated to the snapshot.
  4296. //
  4297. // You can take a snapshot of an attached volume that is in use. However, snapshots
  4298. // only capture data that has been written to your EBS volume at the time the
  4299. // snapshot command is issued; this may exclude any data that has been cached
  4300. // by any applications or the operating system. If you can pause any file systems
  4301. // on the volume long enough to take a snapshot, your snapshot should be complete.
  4302. // However, if you cannot pause all file writes to the volume, you should unmount
  4303. // the volume from within the instance, issue the snapshot command, and then
  4304. // remount the volume to ensure a consistent and complete snapshot. You may
  4305. // remount and use your volume while the snapshot status is pending.
  4306. //
  4307. // To create a snapshot for EBS volumes that serve as root devices, you should
  4308. // stop the instance before taking the snapshot.
  4309. //
  4310. // Snapshots that are taken from encrypted volumes are automatically encrypted.
  4311. // Volumes that are created from encrypted snapshots are also automatically
  4312. // encrypted. Your encrypted volumes and any associated snapshots always remain
  4313. // protected.
  4314. //
  4315. // For more information, see Amazon Elastic Block Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html)
  4316. // and Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  4317. // in the Amazon Elastic Compute Cloud User Guide.
  4318. //
  4319. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4320. // with awserr.Error's Code and Message methods to get detailed information about
  4321. // the error.
  4322. //
  4323. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4324. // API operation CreateSnapshot for usage and error information.
  4325. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshot
  4326. func (c *EC2) CreateSnapshot(input *CreateSnapshotInput) (*Snapshot, error) {
  4327. req, out := c.CreateSnapshotRequest(input)
  4328. return out, req.Send()
  4329. }
  4330. // CreateSnapshotWithContext is the same as CreateSnapshot with the addition of
  4331. // the ability to pass a context and additional request options.
  4332. //
  4333. // See CreateSnapshot for details on how to use this API operation.
  4334. //
  4335. // The context must be non-nil and will be used for request cancellation. If
  4336. // the context is nil a panic will occur. In the future the SDK may create
  4337. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4338. // for more information on using Contexts.
  4339. func (c *EC2) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*Snapshot, error) {
  4340. req, out := c.CreateSnapshotRequest(input)
  4341. req.SetContext(ctx)
  4342. req.ApplyOptions(opts...)
  4343. return out, req.Send()
  4344. }
  4345. const opCreateSpotDatafeedSubscription = "CreateSpotDatafeedSubscription"
  4346. // CreateSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  4347. // client's request for the CreateSpotDatafeedSubscription operation. The "output" return
  4348. // value will be populated with the request's response once the request complets
  4349. // successfuly.
  4350. //
  4351. // Use "Send" method on the returned Request to send the API call to the service.
  4352. // the "output" return value is not valid until after Send returns without error.
  4353. //
  4354. // See CreateSpotDatafeedSubscription for more information on using the CreateSpotDatafeedSubscription
  4355. // API call, and error handling.
  4356. //
  4357. // This method is useful when you want to inject custom logic or configuration
  4358. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4359. //
  4360. //
  4361. // // Example sending a request using the CreateSpotDatafeedSubscriptionRequest method.
  4362. // req, resp := client.CreateSpotDatafeedSubscriptionRequest(params)
  4363. //
  4364. // err := req.Send()
  4365. // if err == nil { // resp is now filled
  4366. // fmt.Println(resp)
  4367. // }
  4368. //
  4369. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription
  4370. func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSubscriptionInput) (req *request.Request, output *CreateSpotDatafeedSubscriptionOutput) {
  4371. op := &request.Operation{
  4372. Name: opCreateSpotDatafeedSubscription,
  4373. HTTPMethod: "POST",
  4374. HTTPPath: "/",
  4375. }
  4376. if input == nil {
  4377. input = &CreateSpotDatafeedSubscriptionInput{}
  4378. }
  4379. output = &CreateSpotDatafeedSubscriptionOutput{}
  4380. req = c.newRequest(op, input, output)
  4381. return
  4382. }
  4383. // CreateSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  4384. //
  4385. // Creates a data feed for Spot Instances, enabling you to view Spot Instance
  4386. // usage logs. You can create one data feed per AWS account. For more information,
  4387. // see Spot Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  4388. // in the Amazon Elastic Compute Cloud User Guide.
  4389. //
  4390. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4391. // with awserr.Error's Code and Message methods to get detailed information about
  4392. // the error.
  4393. //
  4394. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4395. // API operation CreateSpotDatafeedSubscription for usage and error information.
  4396. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscription
  4397. func (c *EC2) CreateSpotDatafeedSubscription(input *CreateSpotDatafeedSubscriptionInput) (*CreateSpotDatafeedSubscriptionOutput, error) {
  4398. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  4399. return out, req.Send()
  4400. }
  4401. // CreateSpotDatafeedSubscriptionWithContext is the same as CreateSpotDatafeedSubscription with the addition of
  4402. // the ability to pass a context and additional request options.
  4403. //
  4404. // See CreateSpotDatafeedSubscription for details on how to use this API operation.
  4405. //
  4406. // The context must be non-nil and will be used for request cancellation. If
  4407. // the context is nil a panic will occur. In the future the SDK may create
  4408. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4409. // for more information on using Contexts.
  4410. func (c *EC2) CreateSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *CreateSpotDatafeedSubscriptionInput, opts ...request.Option) (*CreateSpotDatafeedSubscriptionOutput, error) {
  4411. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  4412. req.SetContext(ctx)
  4413. req.ApplyOptions(opts...)
  4414. return out, req.Send()
  4415. }
  4416. const opCreateSubnet = "CreateSubnet"
  4417. // CreateSubnetRequest generates a "aws/request.Request" representing the
  4418. // client's request for the CreateSubnet operation. The "output" return
  4419. // value will be populated with the request's response once the request complets
  4420. // successfuly.
  4421. //
  4422. // Use "Send" method on the returned Request to send the API call to the service.
  4423. // the "output" return value is not valid until after Send returns without error.
  4424. //
  4425. // See CreateSubnet for more information on using the CreateSubnet
  4426. // API call, and error handling.
  4427. //
  4428. // This method is useful when you want to inject custom logic or configuration
  4429. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4430. //
  4431. //
  4432. // // Example sending a request using the CreateSubnetRequest method.
  4433. // req, resp := client.CreateSubnetRequest(params)
  4434. //
  4435. // err := req.Send()
  4436. // if err == nil { // resp is now filled
  4437. // fmt.Println(resp)
  4438. // }
  4439. //
  4440. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet
  4441. func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Request, output *CreateSubnetOutput) {
  4442. op := &request.Operation{
  4443. Name: opCreateSubnet,
  4444. HTTPMethod: "POST",
  4445. HTTPPath: "/",
  4446. }
  4447. if input == nil {
  4448. input = &CreateSubnetInput{}
  4449. }
  4450. output = &CreateSubnetOutput{}
  4451. req = c.newRequest(op, input, output)
  4452. return
  4453. }
  4454. // CreateSubnet API operation for Amazon Elastic Compute Cloud.
  4455. //
  4456. // Creates a subnet in an existing VPC.
  4457. //
  4458. // When you create each subnet, you provide the VPC ID and the IPv4 CIDR block
  4459. // you want for the subnet. After you create a subnet, you can't change its
  4460. // CIDR block. The size of the subnet's IPv4 CIDR block can be the same as a
  4461. // VPC's IPv4 CIDR block, or a subset of a VPC's IPv4 CIDR block. If you create
  4462. // more than one subnet in a VPC, the subnets' CIDR blocks must not overlap.
  4463. // The smallest IPv4 subnet (and VPC) you can create uses a /28 netmask (16
  4464. // IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses).
  4465. //
  4466. // If you've associated an IPv6 CIDR block with your VPC, you can create a subnet
  4467. // with an IPv6 CIDR block that uses a /64 prefix length.
  4468. //
  4469. // AWS reserves both the first four and the last IPv4 address in each subnet's
  4470. // CIDR block. They're not available for use.
  4471. //
  4472. // If you add more than one subnet to a VPC, they're set up in a star topology
  4473. // with a logical router in the middle.
  4474. //
  4475. // If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP
  4476. // address doesn't change if you stop and restart the instance (unlike a similar
  4477. // instance launched outside a VPC, which gets a new IP address when restarted).
  4478. // It's therefore possible to have a subnet with no running instances (they're
  4479. // all stopped), but no remaining IP addresses available.
  4480. //
  4481. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  4482. // in the Amazon Virtual Private Cloud User Guide.
  4483. //
  4484. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4485. // with awserr.Error's Code and Message methods to get detailed information about
  4486. // the error.
  4487. //
  4488. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4489. // API operation CreateSubnet for usage and error information.
  4490. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnet
  4491. func (c *EC2) CreateSubnet(input *CreateSubnetInput) (*CreateSubnetOutput, error) {
  4492. req, out := c.CreateSubnetRequest(input)
  4493. return out, req.Send()
  4494. }
  4495. // CreateSubnetWithContext is the same as CreateSubnet with the addition of
  4496. // the ability to pass a context and additional request options.
  4497. //
  4498. // See CreateSubnet for details on how to use this API operation.
  4499. //
  4500. // The context must be non-nil and will be used for request cancellation. If
  4501. // the context is nil a panic will occur. In the future the SDK may create
  4502. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4503. // for more information on using Contexts.
  4504. func (c *EC2) CreateSubnetWithContext(ctx aws.Context, input *CreateSubnetInput, opts ...request.Option) (*CreateSubnetOutput, error) {
  4505. req, out := c.CreateSubnetRequest(input)
  4506. req.SetContext(ctx)
  4507. req.ApplyOptions(opts...)
  4508. return out, req.Send()
  4509. }
  4510. const opCreateTags = "CreateTags"
  4511. // CreateTagsRequest generates a "aws/request.Request" representing the
  4512. // client's request for the CreateTags operation. The "output" return
  4513. // value will be populated with the request's response once the request complets
  4514. // successfuly.
  4515. //
  4516. // Use "Send" method on the returned Request to send the API call to the service.
  4517. // the "output" return value is not valid until after Send returns without error.
  4518. //
  4519. // See CreateTags for more information on using the CreateTags
  4520. // API call, and error handling.
  4521. //
  4522. // This method is useful when you want to inject custom logic or configuration
  4523. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4524. //
  4525. //
  4526. // // Example sending a request using the CreateTagsRequest method.
  4527. // req, resp := client.CreateTagsRequest(params)
  4528. //
  4529. // err := req.Send()
  4530. // if err == nil { // resp is now filled
  4531. // fmt.Println(resp)
  4532. // }
  4533. //
  4534. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags
  4535. func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
  4536. op := &request.Operation{
  4537. Name: opCreateTags,
  4538. HTTPMethod: "POST",
  4539. HTTPPath: "/",
  4540. }
  4541. if input == nil {
  4542. input = &CreateTagsInput{}
  4543. }
  4544. output = &CreateTagsOutput{}
  4545. req = c.newRequest(op, input, output)
  4546. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  4547. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4548. return
  4549. }
  4550. // CreateTags API operation for Amazon Elastic Compute Cloud.
  4551. //
  4552. // Adds or overwrites one or more tags for the specified Amazon EC2 resource
  4553. // or resources. Each resource can have a maximum of 50 tags. Each tag consists
  4554. // of a key and optional value. Tag keys must be unique per resource.
  4555. //
  4556. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  4557. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  4558. // creating IAM policies that control users' access to resources based on tags,
  4559. // see Supported Resource-Level Permissions for Amazon EC2 API Actions (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html)
  4560. // in the Amazon Elastic Compute Cloud User Guide.
  4561. //
  4562. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4563. // with awserr.Error's Code and Message methods to get detailed information about
  4564. // the error.
  4565. //
  4566. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4567. // API operation CreateTags for usage and error information.
  4568. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTags
  4569. func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
  4570. req, out := c.CreateTagsRequest(input)
  4571. return out, req.Send()
  4572. }
  4573. // CreateTagsWithContext is the same as CreateTags with the addition of
  4574. // the ability to pass a context and additional request options.
  4575. //
  4576. // See CreateTags for details on how to use this API operation.
  4577. //
  4578. // The context must be non-nil and will be used for request cancellation. If
  4579. // the context is nil a panic will occur. In the future the SDK may create
  4580. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4581. // for more information on using Contexts.
  4582. func (c *EC2) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) {
  4583. req, out := c.CreateTagsRequest(input)
  4584. req.SetContext(ctx)
  4585. req.ApplyOptions(opts...)
  4586. return out, req.Send()
  4587. }
  4588. const opCreateVolume = "CreateVolume"
  4589. // CreateVolumeRequest generates a "aws/request.Request" representing the
  4590. // client's request for the CreateVolume operation. The "output" return
  4591. // value will be populated with the request's response once the request complets
  4592. // successfuly.
  4593. //
  4594. // Use "Send" method on the returned Request to send the API call to the service.
  4595. // the "output" return value is not valid until after Send returns without error.
  4596. //
  4597. // See CreateVolume for more information on using the CreateVolume
  4598. // API call, and error handling.
  4599. //
  4600. // This method is useful when you want to inject custom logic or configuration
  4601. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4602. //
  4603. //
  4604. // // Example sending a request using the CreateVolumeRequest method.
  4605. // req, resp := client.CreateVolumeRequest(params)
  4606. //
  4607. // err := req.Send()
  4608. // if err == nil { // resp is now filled
  4609. // fmt.Println(resp)
  4610. // }
  4611. //
  4612. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume
  4613. func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Request, output *Volume) {
  4614. op := &request.Operation{
  4615. Name: opCreateVolume,
  4616. HTTPMethod: "POST",
  4617. HTTPPath: "/",
  4618. }
  4619. if input == nil {
  4620. input = &CreateVolumeInput{}
  4621. }
  4622. output = &Volume{}
  4623. req = c.newRequest(op, input, output)
  4624. return
  4625. }
  4626. // CreateVolume API operation for Amazon Elastic Compute Cloud.
  4627. //
  4628. // Creates an EBS volume that can be attached to an instance in the same Availability
  4629. // Zone. The volume is created in the regional endpoint that you send the HTTP
  4630. // request to. For more information see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4631. //
  4632. // You can create a new empty volume or restore a volume from an EBS snapshot.
  4633. // Any AWS Marketplace product codes from the snapshot are propagated to the
  4634. // volume.
  4635. //
  4636. // You can create encrypted volumes with the Encrypted parameter. Encrypted
  4637. // volumes may only be attached to instances that support Amazon EBS encryption.
  4638. // Volumes that are created from encrypted snapshots are also automatically
  4639. // encrypted. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  4640. // in the Amazon Elastic Compute Cloud User Guide.
  4641. //
  4642. // You can tag your volumes during creation. For more information, see Tagging
  4643. // Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  4644. //
  4645. // For more information, see Creating an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html)
  4646. // in the Amazon Elastic Compute Cloud User Guide.
  4647. //
  4648. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4649. // with awserr.Error's Code and Message methods to get detailed information about
  4650. // the error.
  4651. //
  4652. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4653. // API operation CreateVolume for usage and error information.
  4654. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume
  4655. func (c *EC2) CreateVolume(input *CreateVolumeInput) (*Volume, error) {
  4656. req, out := c.CreateVolumeRequest(input)
  4657. return out, req.Send()
  4658. }
  4659. // CreateVolumeWithContext is the same as CreateVolume with the addition of
  4660. // the ability to pass a context and additional request options.
  4661. //
  4662. // See CreateVolume for details on how to use this API operation.
  4663. //
  4664. // The context must be non-nil and will be used for request cancellation. If
  4665. // the context is nil a panic will occur. In the future the SDK may create
  4666. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4667. // for more information on using Contexts.
  4668. func (c *EC2) CreateVolumeWithContext(ctx aws.Context, input *CreateVolumeInput, opts ...request.Option) (*Volume, error) {
  4669. req, out := c.CreateVolumeRequest(input)
  4670. req.SetContext(ctx)
  4671. req.ApplyOptions(opts...)
  4672. return out, req.Send()
  4673. }
  4674. const opCreateVpc = "CreateVpc"
  4675. // CreateVpcRequest generates a "aws/request.Request" representing the
  4676. // client's request for the CreateVpc operation. The "output" return
  4677. // value will be populated with the request's response once the request complets
  4678. // successfuly.
  4679. //
  4680. // Use "Send" method on the returned Request to send the API call to the service.
  4681. // the "output" return value is not valid until after Send returns without error.
  4682. //
  4683. // See CreateVpc for more information on using the CreateVpc
  4684. // API call, and error handling.
  4685. //
  4686. // This method is useful when you want to inject custom logic or configuration
  4687. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4688. //
  4689. //
  4690. // // Example sending a request using the CreateVpcRequest method.
  4691. // req, resp := client.CreateVpcRequest(params)
  4692. //
  4693. // err := req.Send()
  4694. // if err == nil { // resp is now filled
  4695. // fmt.Println(resp)
  4696. // }
  4697. //
  4698. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc
  4699. func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, output *CreateVpcOutput) {
  4700. op := &request.Operation{
  4701. Name: opCreateVpc,
  4702. HTTPMethod: "POST",
  4703. HTTPPath: "/",
  4704. }
  4705. if input == nil {
  4706. input = &CreateVpcInput{}
  4707. }
  4708. output = &CreateVpcOutput{}
  4709. req = c.newRequest(op, input, output)
  4710. return
  4711. }
  4712. // CreateVpc API operation for Amazon Elastic Compute Cloud.
  4713. //
  4714. // Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can
  4715. // create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16
  4716. // netmask (65,536 IPv4 addresses). To help you decide how big to make your
  4717. // VPC, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  4718. // in the Amazon Virtual Private Cloud User Guide.
  4719. //
  4720. // You can optionally request an Amazon-provided IPv6 CIDR block for the VPC.
  4721. // The IPv6 CIDR block uses a /56 prefix length, and is allocated from Amazon's
  4722. // pool of IPv6 addresses. You cannot choose the IPv6 range for your VPC.
  4723. //
  4724. // By default, each instance you launch in the VPC has the default DHCP options,
  4725. // which includes only a default DNS server that we provide (AmazonProvidedDNS).
  4726. // For more information about DHCP options, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  4727. // in the Amazon Virtual Private Cloud User Guide.
  4728. //
  4729. // You can specify the instance tenancy value for the VPC when you create it.
  4730. // You can't change this value for the VPC after you create it. For more information,
  4731. // see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html)
  4732. // in the Amazon Elastic Compute Cloud User Guide.
  4733. //
  4734. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4735. // with awserr.Error's Code and Message methods to get detailed information about
  4736. // the error.
  4737. //
  4738. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4739. // API operation CreateVpc for usage and error information.
  4740. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpc
  4741. func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) {
  4742. req, out := c.CreateVpcRequest(input)
  4743. return out, req.Send()
  4744. }
  4745. // CreateVpcWithContext is the same as CreateVpc with the addition of
  4746. // the ability to pass a context and additional request options.
  4747. //
  4748. // See CreateVpc for details on how to use this API operation.
  4749. //
  4750. // The context must be non-nil and will be used for request cancellation. If
  4751. // the context is nil a panic will occur. In the future the SDK may create
  4752. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4753. // for more information on using Contexts.
  4754. func (c *EC2) CreateVpcWithContext(ctx aws.Context, input *CreateVpcInput, opts ...request.Option) (*CreateVpcOutput, error) {
  4755. req, out := c.CreateVpcRequest(input)
  4756. req.SetContext(ctx)
  4757. req.ApplyOptions(opts...)
  4758. return out, req.Send()
  4759. }
  4760. const opCreateVpcEndpoint = "CreateVpcEndpoint"
  4761. // CreateVpcEndpointRequest generates a "aws/request.Request" representing the
  4762. // client's request for the CreateVpcEndpoint operation. The "output" return
  4763. // value will be populated with the request's response once the request complets
  4764. // successfuly.
  4765. //
  4766. // Use "Send" method on the returned Request to send the API call to the service.
  4767. // the "output" return value is not valid until after Send returns without error.
  4768. //
  4769. // See CreateVpcEndpoint for more information on using the CreateVpcEndpoint
  4770. // API call, and error handling.
  4771. //
  4772. // This method is useful when you want to inject custom logic or configuration
  4773. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4774. //
  4775. //
  4776. // // Example sending a request using the CreateVpcEndpointRequest method.
  4777. // req, resp := client.CreateVpcEndpointRequest(params)
  4778. //
  4779. // err := req.Send()
  4780. // if err == nil { // resp is now filled
  4781. // fmt.Println(resp)
  4782. // }
  4783. //
  4784. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint
  4785. func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *request.Request, output *CreateVpcEndpointOutput) {
  4786. op := &request.Operation{
  4787. Name: opCreateVpcEndpoint,
  4788. HTTPMethod: "POST",
  4789. HTTPPath: "/",
  4790. }
  4791. if input == nil {
  4792. input = &CreateVpcEndpointInput{}
  4793. }
  4794. output = &CreateVpcEndpointOutput{}
  4795. req = c.newRequest(op, input, output)
  4796. return
  4797. }
  4798. // CreateVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  4799. //
  4800. // Creates a VPC endpoint for a specified service. An endpoint enables you to
  4801. // create a private connection between your VPC and the service. The service
  4802. // may be provided by AWS, an AWS Marketplace partner, or another AWS account.
  4803. // For more information, see VPC Endpoints (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html)
  4804. // in the Amazon Virtual Private Cloud User Guide.
  4805. //
  4806. // A gateway endpoint serves as a target for a route in your route table for
  4807. // traffic destined for the AWS service. You can specify an endpoint policy
  4808. // to attach to the endpoint that will control access to the service from your
  4809. // VPC. You can also specify the VPC route tables that use the endpoint.
  4810. //
  4811. // An interface endpoint is a network interface in your subnet that serves as
  4812. // an endpoint for communicating with the specified service. You can specify
  4813. // the subnets in which to create an endpoint, and the security groups to associate
  4814. // with the endpoint network interface.
  4815. //
  4816. // Use DescribeVpcEndpointServices to get a list of supported services.
  4817. //
  4818. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4819. // with awserr.Error's Code and Message methods to get detailed information about
  4820. // the error.
  4821. //
  4822. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4823. // API operation CreateVpcEndpoint for usage and error information.
  4824. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpoint
  4825. func (c *EC2) CreateVpcEndpoint(input *CreateVpcEndpointInput) (*CreateVpcEndpointOutput, error) {
  4826. req, out := c.CreateVpcEndpointRequest(input)
  4827. return out, req.Send()
  4828. }
  4829. // CreateVpcEndpointWithContext is the same as CreateVpcEndpoint with the addition of
  4830. // the ability to pass a context and additional request options.
  4831. //
  4832. // See CreateVpcEndpoint for details on how to use this API operation.
  4833. //
  4834. // The context must be non-nil and will be used for request cancellation. If
  4835. // the context is nil a panic will occur. In the future the SDK may create
  4836. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4837. // for more information on using Contexts.
  4838. func (c *EC2) CreateVpcEndpointWithContext(ctx aws.Context, input *CreateVpcEndpointInput, opts ...request.Option) (*CreateVpcEndpointOutput, error) {
  4839. req, out := c.CreateVpcEndpointRequest(input)
  4840. req.SetContext(ctx)
  4841. req.ApplyOptions(opts...)
  4842. return out, req.Send()
  4843. }
  4844. const opCreateVpcEndpointConnectionNotification = "CreateVpcEndpointConnectionNotification"
  4845. // CreateVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the
  4846. // client's request for the CreateVpcEndpointConnectionNotification operation. The "output" return
  4847. // value will be populated with the request's response once the request complets
  4848. // successfuly.
  4849. //
  4850. // Use "Send" method on the returned Request to send the API call to the service.
  4851. // the "output" return value is not valid until after Send returns without error.
  4852. //
  4853. // See CreateVpcEndpointConnectionNotification for more information on using the CreateVpcEndpointConnectionNotification
  4854. // API call, and error handling.
  4855. //
  4856. // This method is useful when you want to inject custom logic or configuration
  4857. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4858. //
  4859. //
  4860. // // Example sending a request using the CreateVpcEndpointConnectionNotificationRequest method.
  4861. // req, resp := client.CreateVpcEndpointConnectionNotificationRequest(params)
  4862. //
  4863. // err := req.Send()
  4864. // if err == nil { // resp is now filled
  4865. // fmt.Println(resp)
  4866. // }
  4867. //
  4868. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification
  4869. func (c *EC2) CreateVpcEndpointConnectionNotificationRequest(input *CreateVpcEndpointConnectionNotificationInput) (req *request.Request, output *CreateVpcEndpointConnectionNotificationOutput) {
  4870. op := &request.Operation{
  4871. Name: opCreateVpcEndpointConnectionNotification,
  4872. HTTPMethod: "POST",
  4873. HTTPPath: "/",
  4874. }
  4875. if input == nil {
  4876. input = &CreateVpcEndpointConnectionNotificationInput{}
  4877. }
  4878. output = &CreateVpcEndpointConnectionNotificationOutput{}
  4879. req = c.newRequest(op, input, output)
  4880. return
  4881. }
  4882. // CreateVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud.
  4883. //
  4884. // Creates a connection notification for a specified VPC endpoint or VPC endpoint
  4885. // service. A connection notification notifies you of specific endpoint events.
  4886. // You must create an SNS topic to receive notifications. For more information,
  4887. // see Create a Topic (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html)
  4888. // in the Amazon Simple Notification Service Developer Guide.
  4889. //
  4890. // You can create a connection notification for interface endpoints only.
  4891. //
  4892. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4893. // with awserr.Error's Code and Message methods to get detailed information about
  4894. // the error.
  4895. //
  4896. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4897. // API operation CreateVpcEndpointConnectionNotification for usage and error information.
  4898. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotification
  4899. func (c *EC2) CreateVpcEndpointConnectionNotification(input *CreateVpcEndpointConnectionNotificationInput) (*CreateVpcEndpointConnectionNotificationOutput, error) {
  4900. req, out := c.CreateVpcEndpointConnectionNotificationRequest(input)
  4901. return out, req.Send()
  4902. }
  4903. // CreateVpcEndpointConnectionNotificationWithContext is the same as CreateVpcEndpointConnectionNotification with the addition of
  4904. // the ability to pass a context and additional request options.
  4905. //
  4906. // See CreateVpcEndpointConnectionNotification for details on how to use this API operation.
  4907. //
  4908. // The context must be non-nil and will be used for request cancellation. If
  4909. // the context is nil a panic will occur. In the future the SDK may create
  4910. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4911. // for more information on using Contexts.
  4912. func (c *EC2) CreateVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *CreateVpcEndpointConnectionNotificationInput, opts ...request.Option) (*CreateVpcEndpointConnectionNotificationOutput, error) {
  4913. req, out := c.CreateVpcEndpointConnectionNotificationRequest(input)
  4914. req.SetContext(ctx)
  4915. req.ApplyOptions(opts...)
  4916. return out, req.Send()
  4917. }
  4918. const opCreateVpcEndpointServiceConfiguration = "CreateVpcEndpointServiceConfiguration"
  4919. // CreateVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the
  4920. // client's request for the CreateVpcEndpointServiceConfiguration operation. The "output" return
  4921. // value will be populated with the request's response once the request complets
  4922. // successfuly.
  4923. //
  4924. // Use "Send" method on the returned Request to send the API call to the service.
  4925. // the "output" return value is not valid until after Send returns without error.
  4926. //
  4927. // See CreateVpcEndpointServiceConfiguration for more information on using the CreateVpcEndpointServiceConfiguration
  4928. // API call, and error handling.
  4929. //
  4930. // This method is useful when you want to inject custom logic or configuration
  4931. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4932. //
  4933. //
  4934. // // Example sending a request using the CreateVpcEndpointServiceConfigurationRequest method.
  4935. // req, resp := client.CreateVpcEndpointServiceConfigurationRequest(params)
  4936. //
  4937. // err := req.Send()
  4938. // if err == nil { // resp is now filled
  4939. // fmt.Println(resp)
  4940. // }
  4941. //
  4942. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration
  4943. func (c *EC2) CreateVpcEndpointServiceConfigurationRequest(input *CreateVpcEndpointServiceConfigurationInput) (req *request.Request, output *CreateVpcEndpointServiceConfigurationOutput) {
  4944. op := &request.Operation{
  4945. Name: opCreateVpcEndpointServiceConfiguration,
  4946. HTTPMethod: "POST",
  4947. HTTPPath: "/",
  4948. }
  4949. if input == nil {
  4950. input = &CreateVpcEndpointServiceConfigurationInput{}
  4951. }
  4952. output = &CreateVpcEndpointServiceConfigurationOutput{}
  4953. req = c.newRequest(op, input, output)
  4954. return
  4955. }
  4956. // CreateVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud.
  4957. //
  4958. // Creates a VPC endpoint service configuration to which service consumers (AWS
  4959. // accounts, IAM users, and IAM roles) can connect. Service consumers can create
  4960. // an interface VPC endpoint to connect to your service.
  4961. //
  4962. // To create an endpoint service configuration, you must first create a Network
  4963. // Load Balancer for your service. For more information, see VPC Endpoint Services
  4964. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/endpoint-service.html)
  4965. // in the Amazon Virtual Private Cloud User Guide.
  4966. //
  4967. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4968. // with awserr.Error's Code and Message methods to get detailed information about
  4969. // the error.
  4970. //
  4971. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  4972. // API operation CreateVpcEndpointServiceConfiguration for usage and error information.
  4973. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfiguration
  4974. func (c *EC2) CreateVpcEndpointServiceConfiguration(input *CreateVpcEndpointServiceConfigurationInput) (*CreateVpcEndpointServiceConfigurationOutput, error) {
  4975. req, out := c.CreateVpcEndpointServiceConfigurationRequest(input)
  4976. return out, req.Send()
  4977. }
  4978. // CreateVpcEndpointServiceConfigurationWithContext is the same as CreateVpcEndpointServiceConfiguration with the addition of
  4979. // the ability to pass a context and additional request options.
  4980. //
  4981. // See CreateVpcEndpointServiceConfiguration for details on how to use this API operation.
  4982. //
  4983. // The context must be non-nil and will be used for request cancellation. If
  4984. // the context is nil a panic will occur. In the future the SDK may create
  4985. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4986. // for more information on using Contexts.
  4987. func (c *EC2) CreateVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *CreateVpcEndpointServiceConfigurationInput, opts ...request.Option) (*CreateVpcEndpointServiceConfigurationOutput, error) {
  4988. req, out := c.CreateVpcEndpointServiceConfigurationRequest(input)
  4989. req.SetContext(ctx)
  4990. req.ApplyOptions(opts...)
  4991. return out, req.Send()
  4992. }
  4993. const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection"
  4994. // CreateVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  4995. // client's request for the CreateVpcPeeringConnection operation. The "output" return
  4996. // value will be populated with the request's response once the request complets
  4997. // successfuly.
  4998. //
  4999. // Use "Send" method on the returned Request to send the API call to the service.
  5000. // the "output" return value is not valid until after Send returns without error.
  5001. //
  5002. // See CreateVpcPeeringConnection for more information on using the CreateVpcPeeringConnection
  5003. // API call, and error handling.
  5004. //
  5005. // This method is useful when you want to inject custom logic or configuration
  5006. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5007. //
  5008. //
  5009. // // Example sending a request using the CreateVpcPeeringConnectionRequest method.
  5010. // req, resp := client.CreateVpcPeeringConnectionRequest(params)
  5011. //
  5012. // err := req.Send()
  5013. // if err == nil { // resp is now filled
  5014. // fmt.Println(resp)
  5015. // }
  5016. //
  5017. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection
  5018. func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectionInput) (req *request.Request, output *CreateVpcPeeringConnectionOutput) {
  5019. op := &request.Operation{
  5020. Name: opCreateVpcPeeringConnection,
  5021. HTTPMethod: "POST",
  5022. HTTPPath: "/",
  5023. }
  5024. if input == nil {
  5025. input = &CreateVpcPeeringConnectionInput{}
  5026. }
  5027. output = &CreateVpcPeeringConnectionOutput{}
  5028. req = c.newRequest(op, input, output)
  5029. return
  5030. }
  5031. // CreateVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  5032. //
  5033. // Requests a VPC peering connection between two VPCs: a requester VPC that
  5034. // you own and an accepter VPC with which to create the connection. The accepter
  5035. // VPC can belong to another AWS account and can be in a different region to
  5036. // the requester VPC. The requester VPC and accepter VPC cannot have overlapping
  5037. // CIDR blocks.
  5038. //
  5039. // Limitations and rules apply to a VPC peering connection. For more information,
  5040. // see the limitations (http://docs.aws.amazon.com/AmazonVPC/latest/PeeringGuide/vpc-peering-basics.html#vpc-peering-limitations)
  5041. // section in the VPC Peering Guide.
  5042. //
  5043. // The owner of the accepter VPC must accept the peering request to activate
  5044. // the peering connection. The VPC peering connection request expires after
  5045. // 7 days, after which it cannot be accepted or rejected.
  5046. //
  5047. // If you create a VPC peering connection request between VPCs with overlapping
  5048. // CIDR blocks, the VPC peering connection has a status of failed.
  5049. //
  5050. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5051. // with awserr.Error's Code and Message methods to get detailed information about
  5052. // the error.
  5053. //
  5054. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5055. // API operation CreateVpcPeeringConnection for usage and error information.
  5056. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnection
  5057. func (c *EC2) CreateVpcPeeringConnection(input *CreateVpcPeeringConnectionInput) (*CreateVpcPeeringConnectionOutput, error) {
  5058. req, out := c.CreateVpcPeeringConnectionRequest(input)
  5059. return out, req.Send()
  5060. }
  5061. // CreateVpcPeeringConnectionWithContext is the same as CreateVpcPeeringConnection with the addition of
  5062. // the ability to pass a context and additional request options.
  5063. //
  5064. // See CreateVpcPeeringConnection for details on how to use this API operation.
  5065. //
  5066. // The context must be non-nil and will be used for request cancellation. If
  5067. // the context is nil a panic will occur. In the future the SDK may create
  5068. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5069. // for more information on using Contexts.
  5070. func (c *EC2) CreateVpcPeeringConnectionWithContext(ctx aws.Context, input *CreateVpcPeeringConnectionInput, opts ...request.Option) (*CreateVpcPeeringConnectionOutput, error) {
  5071. req, out := c.CreateVpcPeeringConnectionRequest(input)
  5072. req.SetContext(ctx)
  5073. req.ApplyOptions(opts...)
  5074. return out, req.Send()
  5075. }
  5076. const opCreateVpnConnection = "CreateVpnConnection"
  5077. // CreateVpnConnectionRequest generates a "aws/request.Request" representing the
  5078. // client's request for the CreateVpnConnection operation. The "output" return
  5079. // value will be populated with the request's response once the request complets
  5080. // successfuly.
  5081. //
  5082. // Use "Send" method on the returned Request to send the API call to the service.
  5083. // the "output" return value is not valid until after Send returns without error.
  5084. //
  5085. // See CreateVpnConnection for more information on using the CreateVpnConnection
  5086. // API call, and error handling.
  5087. //
  5088. // This method is useful when you want to inject custom logic or configuration
  5089. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5090. //
  5091. //
  5092. // // Example sending a request using the CreateVpnConnectionRequest method.
  5093. // req, resp := client.CreateVpnConnectionRequest(params)
  5094. //
  5095. // err := req.Send()
  5096. // if err == nil { // resp is now filled
  5097. // fmt.Println(resp)
  5098. // }
  5099. //
  5100. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection
  5101. func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req *request.Request, output *CreateVpnConnectionOutput) {
  5102. op := &request.Operation{
  5103. Name: opCreateVpnConnection,
  5104. HTTPMethod: "POST",
  5105. HTTPPath: "/",
  5106. }
  5107. if input == nil {
  5108. input = &CreateVpnConnectionInput{}
  5109. }
  5110. output = &CreateVpnConnectionOutput{}
  5111. req = c.newRequest(op, input, output)
  5112. return
  5113. }
  5114. // CreateVpnConnection API operation for Amazon Elastic Compute Cloud.
  5115. //
  5116. // Creates a VPN connection between an existing virtual private gateway and
  5117. // a VPN customer gateway. The only supported connection type is ipsec.1.
  5118. //
  5119. // The response includes information that you need to give to your network administrator
  5120. // to configure your customer gateway.
  5121. //
  5122. // We strongly recommend that you use HTTPS when calling this operation because
  5123. // the response contains sensitive cryptographic information for configuring
  5124. // your customer gateway.
  5125. //
  5126. // If you decide to shut down your VPN connection for any reason and later create
  5127. // a new VPN connection, you must reconfigure your customer gateway with the
  5128. // new information returned from this call.
  5129. //
  5130. // This is an idempotent operation. If you perform the operation more than once,
  5131. // Amazon EC2 doesn't return an error.
  5132. //
  5133. // For more information, see AWS Managed VPN Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  5134. // in the Amazon Virtual Private Cloud User Guide.
  5135. //
  5136. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5137. // with awserr.Error's Code and Message methods to get detailed information about
  5138. // the error.
  5139. //
  5140. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5141. // API operation CreateVpnConnection for usage and error information.
  5142. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnection
  5143. func (c *EC2) CreateVpnConnection(input *CreateVpnConnectionInput) (*CreateVpnConnectionOutput, error) {
  5144. req, out := c.CreateVpnConnectionRequest(input)
  5145. return out, req.Send()
  5146. }
  5147. // CreateVpnConnectionWithContext is the same as CreateVpnConnection with the addition of
  5148. // the ability to pass a context and additional request options.
  5149. //
  5150. // See CreateVpnConnection for details on how to use this API operation.
  5151. //
  5152. // The context must be non-nil and will be used for request cancellation. If
  5153. // the context is nil a panic will occur. In the future the SDK may create
  5154. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5155. // for more information on using Contexts.
  5156. func (c *EC2) CreateVpnConnectionWithContext(ctx aws.Context, input *CreateVpnConnectionInput, opts ...request.Option) (*CreateVpnConnectionOutput, error) {
  5157. req, out := c.CreateVpnConnectionRequest(input)
  5158. req.SetContext(ctx)
  5159. req.ApplyOptions(opts...)
  5160. return out, req.Send()
  5161. }
  5162. const opCreateVpnConnectionRoute = "CreateVpnConnectionRoute"
  5163. // CreateVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  5164. // client's request for the CreateVpnConnectionRoute operation. The "output" return
  5165. // value will be populated with the request's response once the request complets
  5166. // successfuly.
  5167. //
  5168. // Use "Send" method on the returned Request to send the API call to the service.
  5169. // the "output" return value is not valid until after Send returns without error.
  5170. //
  5171. // See CreateVpnConnectionRoute for more information on using the CreateVpnConnectionRoute
  5172. // API call, and error handling.
  5173. //
  5174. // This method is useful when you want to inject custom logic or configuration
  5175. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5176. //
  5177. //
  5178. // // Example sending a request using the CreateVpnConnectionRouteRequest method.
  5179. // req, resp := client.CreateVpnConnectionRouteRequest(params)
  5180. //
  5181. // err := req.Send()
  5182. // if err == nil { // resp is now filled
  5183. // fmt.Println(resp)
  5184. // }
  5185. //
  5186. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute
  5187. func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInput) (req *request.Request, output *CreateVpnConnectionRouteOutput) {
  5188. op := &request.Operation{
  5189. Name: opCreateVpnConnectionRoute,
  5190. HTTPMethod: "POST",
  5191. HTTPPath: "/",
  5192. }
  5193. if input == nil {
  5194. input = &CreateVpnConnectionRouteInput{}
  5195. }
  5196. output = &CreateVpnConnectionRouteOutput{}
  5197. req = c.newRequest(op, input, output)
  5198. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5199. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5200. return
  5201. }
  5202. // CreateVpnConnectionRoute API operation for Amazon Elastic Compute Cloud.
  5203. //
  5204. // Creates a static route associated with a VPN connection between an existing
  5205. // virtual private gateway and a VPN customer gateway. The static route allows
  5206. // traffic to be routed from the virtual private gateway to the VPN customer
  5207. // gateway.
  5208. //
  5209. // For more information about VPN connections, see AWS Managed VPN Connections
  5210. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  5211. // Amazon Virtual Private Cloud User Guide.
  5212. //
  5213. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5214. // with awserr.Error's Code and Message methods to get detailed information about
  5215. // the error.
  5216. //
  5217. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5218. // API operation CreateVpnConnectionRoute for usage and error information.
  5219. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute
  5220. func (c *EC2) CreateVpnConnectionRoute(input *CreateVpnConnectionRouteInput) (*CreateVpnConnectionRouteOutput, error) {
  5221. req, out := c.CreateVpnConnectionRouteRequest(input)
  5222. return out, req.Send()
  5223. }
  5224. // CreateVpnConnectionRouteWithContext is the same as CreateVpnConnectionRoute with the addition of
  5225. // the ability to pass a context and additional request options.
  5226. //
  5227. // See CreateVpnConnectionRoute for details on how to use this API operation.
  5228. //
  5229. // The context must be non-nil and will be used for request cancellation. If
  5230. // the context is nil a panic will occur. In the future the SDK may create
  5231. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5232. // for more information on using Contexts.
  5233. func (c *EC2) CreateVpnConnectionRouteWithContext(ctx aws.Context, input *CreateVpnConnectionRouteInput, opts ...request.Option) (*CreateVpnConnectionRouteOutput, error) {
  5234. req, out := c.CreateVpnConnectionRouteRequest(input)
  5235. req.SetContext(ctx)
  5236. req.ApplyOptions(opts...)
  5237. return out, req.Send()
  5238. }
  5239. const opCreateVpnGateway = "CreateVpnGateway"
  5240. // CreateVpnGatewayRequest generates a "aws/request.Request" representing the
  5241. // client's request for the CreateVpnGateway operation. The "output" return
  5242. // value will be populated with the request's response once the request complets
  5243. // successfuly.
  5244. //
  5245. // Use "Send" method on the returned Request to send the API call to the service.
  5246. // the "output" return value is not valid until after Send returns without error.
  5247. //
  5248. // See CreateVpnGateway for more information on using the CreateVpnGateway
  5249. // API call, and error handling.
  5250. //
  5251. // This method is useful when you want to inject custom logic or configuration
  5252. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5253. //
  5254. //
  5255. // // Example sending a request using the CreateVpnGatewayRequest method.
  5256. // req, resp := client.CreateVpnGatewayRequest(params)
  5257. //
  5258. // err := req.Send()
  5259. // if err == nil { // resp is now filled
  5260. // fmt.Println(resp)
  5261. // }
  5262. //
  5263. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway
  5264. func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *request.Request, output *CreateVpnGatewayOutput) {
  5265. op := &request.Operation{
  5266. Name: opCreateVpnGateway,
  5267. HTTPMethod: "POST",
  5268. HTTPPath: "/",
  5269. }
  5270. if input == nil {
  5271. input = &CreateVpnGatewayInput{}
  5272. }
  5273. output = &CreateVpnGatewayOutput{}
  5274. req = c.newRequest(op, input, output)
  5275. return
  5276. }
  5277. // CreateVpnGateway API operation for Amazon Elastic Compute Cloud.
  5278. //
  5279. // Creates a virtual private gateway. A virtual private gateway is the endpoint
  5280. // on the VPC side of your VPN connection. You can create a virtual private
  5281. // gateway before creating the VPC itself.
  5282. //
  5283. // For more information about virtual private gateways, see AWS Managed VPN
  5284. // Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  5285. // in the Amazon Virtual Private Cloud User Guide.
  5286. //
  5287. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5288. // with awserr.Error's Code and Message methods to get detailed information about
  5289. // the error.
  5290. //
  5291. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5292. // API operation CreateVpnGateway for usage and error information.
  5293. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGateway
  5294. func (c *EC2) CreateVpnGateway(input *CreateVpnGatewayInput) (*CreateVpnGatewayOutput, error) {
  5295. req, out := c.CreateVpnGatewayRequest(input)
  5296. return out, req.Send()
  5297. }
  5298. // CreateVpnGatewayWithContext is the same as CreateVpnGateway with the addition of
  5299. // the ability to pass a context and additional request options.
  5300. //
  5301. // See CreateVpnGateway for details on how to use this API operation.
  5302. //
  5303. // The context must be non-nil and will be used for request cancellation. If
  5304. // the context is nil a panic will occur. In the future the SDK may create
  5305. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5306. // for more information on using Contexts.
  5307. func (c *EC2) CreateVpnGatewayWithContext(ctx aws.Context, input *CreateVpnGatewayInput, opts ...request.Option) (*CreateVpnGatewayOutput, error) {
  5308. req, out := c.CreateVpnGatewayRequest(input)
  5309. req.SetContext(ctx)
  5310. req.ApplyOptions(opts...)
  5311. return out, req.Send()
  5312. }
  5313. const opDeleteCustomerGateway = "DeleteCustomerGateway"
  5314. // DeleteCustomerGatewayRequest generates a "aws/request.Request" representing the
  5315. // client's request for the DeleteCustomerGateway operation. The "output" return
  5316. // value will be populated with the request's response once the request complets
  5317. // successfuly.
  5318. //
  5319. // Use "Send" method on the returned Request to send the API call to the service.
  5320. // the "output" return value is not valid until after Send returns without error.
  5321. //
  5322. // See DeleteCustomerGateway for more information on using the DeleteCustomerGateway
  5323. // API call, and error handling.
  5324. //
  5325. // This method is useful when you want to inject custom logic or configuration
  5326. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5327. //
  5328. //
  5329. // // Example sending a request using the DeleteCustomerGatewayRequest method.
  5330. // req, resp := client.DeleteCustomerGatewayRequest(params)
  5331. //
  5332. // err := req.Send()
  5333. // if err == nil { // resp is now filled
  5334. // fmt.Println(resp)
  5335. // }
  5336. //
  5337. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway
  5338. func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (req *request.Request, output *DeleteCustomerGatewayOutput) {
  5339. op := &request.Operation{
  5340. Name: opDeleteCustomerGateway,
  5341. HTTPMethod: "POST",
  5342. HTTPPath: "/",
  5343. }
  5344. if input == nil {
  5345. input = &DeleteCustomerGatewayInput{}
  5346. }
  5347. output = &DeleteCustomerGatewayOutput{}
  5348. req = c.newRequest(op, input, output)
  5349. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5350. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5351. return
  5352. }
  5353. // DeleteCustomerGateway API operation for Amazon Elastic Compute Cloud.
  5354. //
  5355. // Deletes the specified customer gateway. You must delete the VPN connection
  5356. // before you can delete the customer gateway.
  5357. //
  5358. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5359. // with awserr.Error's Code and Message methods to get detailed information about
  5360. // the error.
  5361. //
  5362. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5363. // API operation DeleteCustomerGateway for usage and error information.
  5364. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGateway
  5365. func (c *EC2) DeleteCustomerGateway(input *DeleteCustomerGatewayInput) (*DeleteCustomerGatewayOutput, error) {
  5366. req, out := c.DeleteCustomerGatewayRequest(input)
  5367. return out, req.Send()
  5368. }
  5369. // DeleteCustomerGatewayWithContext is the same as DeleteCustomerGateway with the addition of
  5370. // the ability to pass a context and additional request options.
  5371. //
  5372. // See DeleteCustomerGateway for details on how to use this API operation.
  5373. //
  5374. // The context must be non-nil and will be used for request cancellation. If
  5375. // the context is nil a panic will occur. In the future the SDK may create
  5376. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5377. // for more information on using Contexts.
  5378. func (c *EC2) DeleteCustomerGatewayWithContext(ctx aws.Context, input *DeleteCustomerGatewayInput, opts ...request.Option) (*DeleteCustomerGatewayOutput, error) {
  5379. req, out := c.DeleteCustomerGatewayRequest(input)
  5380. req.SetContext(ctx)
  5381. req.ApplyOptions(opts...)
  5382. return out, req.Send()
  5383. }
  5384. const opDeleteDhcpOptions = "DeleteDhcpOptions"
  5385. // DeleteDhcpOptionsRequest generates a "aws/request.Request" representing the
  5386. // client's request for the DeleteDhcpOptions operation. The "output" return
  5387. // value will be populated with the request's response once the request complets
  5388. // successfuly.
  5389. //
  5390. // Use "Send" method on the returned Request to send the API call to the service.
  5391. // the "output" return value is not valid until after Send returns without error.
  5392. //
  5393. // See DeleteDhcpOptions for more information on using the DeleteDhcpOptions
  5394. // API call, and error handling.
  5395. //
  5396. // This method is useful when you want to inject custom logic or configuration
  5397. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5398. //
  5399. //
  5400. // // Example sending a request using the DeleteDhcpOptionsRequest method.
  5401. // req, resp := client.DeleteDhcpOptionsRequest(params)
  5402. //
  5403. // err := req.Send()
  5404. // if err == nil { // resp is now filled
  5405. // fmt.Println(resp)
  5406. // }
  5407. //
  5408. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions
  5409. func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *request.Request, output *DeleteDhcpOptionsOutput) {
  5410. op := &request.Operation{
  5411. Name: opDeleteDhcpOptions,
  5412. HTTPMethod: "POST",
  5413. HTTPPath: "/",
  5414. }
  5415. if input == nil {
  5416. input = &DeleteDhcpOptionsInput{}
  5417. }
  5418. output = &DeleteDhcpOptionsOutput{}
  5419. req = c.newRequest(op, input, output)
  5420. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5421. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5422. return
  5423. }
  5424. // DeleteDhcpOptions API operation for Amazon Elastic Compute Cloud.
  5425. //
  5426. // Deletes the specified set of DHCP options. You must disassociate the set
  5427. // of DHCP options before you can delete it. You can disassociate the set of
  5428. // DHCP options by associating either a new set of options or the default set
  5429. // of options with the VPC.
  5430. //
  5431. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5432. // with awserr.Error's Code and Message methods to get detailed information about
  5433. // the error.
  5434. //
  5435. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5436. // API operation DeleteDhcpOptions for usage and error information.
  5437. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptions
  5438. func (c *EC2) DeleteDhcpOptions(input *DeleteDhcpOptionsInput) (*DeleteDhcpOptionsOutput, error) {
  5439. req, out := c.DeleteDhcpOptionsRequest(input)
  5440. return out, req.Send()
  5441. }
  5442. // DeleteDhcpOptionsWithContext is the same as DeleteDhcpOptions with the addition of
  5443. // the ability to pass a context and additional request options.
  5444. //
  5445. // See DeleteDhcpOptions for details on how to use this API operation.
  5446. //
  5447. // The context must be non-nil and will be used for request cancellation. If
  5448. // the context is nil a panic will occur. In the future the SDK may create
  5449. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5450. // for more information on using Contexts.
  5451. func (c *EC2) DeleteDhcpOptionsWithContext(ctx aws.Context, input *DeleteDhcpOptionsInput, opts ...request.Option) (*DeleteDhcpOptionsOutput, error) {
  5452. req, out := c.DeleteDhcpOptionsRequest(input)
  5453. req.SetContext(ctx)
  5454. req.ApplyOptions(opts...)
  5455. return out, req.Send()
  5456. }
  5457. const opDeleteEgressOnlyInternetGateway = "DeleteEgressOnlyInternetGateway"
  5458. // DeleteEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the
  5459. // client's request for the DeleteEgressOnlyInternetGateway operation. The "output" return
  5460. // value will be populated with the request's response once the request complets
  5461. // successfuly.
  5462. //
  5463. // Use "Send" method on the returned Request to send the API call to the service.
  5464. // the "output" return value is not valid until after Send returns without error.
  5465. //
  5466. // See DeleteEgressOnlyInternetGateway for more information on using the DeleteEgressOnlyInternetGateway
  5467. // API call, and error handling.
  5468. //
  5469. // This method is useful when you want to inject custom logic or configuration
  5470. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5471. //
  5472. //
  5473. // // Example sending a request using the DeleteEgressOnlyInternetGatewayRequest method.
  5474. // req, resp := client.DeleteEgressOnlyInternetGatewayRequest(params)
  5475. //
  5476. // err := req.Send()
  5477. // if err == nil { // resp is now filled
  5478. // fmt.Println(resp)
  5479. // }
  5480. //
  5481. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway
  5482. func (c *EC2) DeleteEgressOnlyInternetGatewayRequest(input *DeleteEgressOnlyInternetGatewayInput) (req *request.Request, output *DeleteEgressOnlyInternetGatewayOutput) {
  5483. op := &request.Operation{
  5484. Name: opDeleteEgressOnlyInternetGateway,
  5485. HTTPMethod: "POST",
  5486. HTTPPath: "/",
  5487. }
  5488. if input == nil {
  5489. input = &DeleteEgressOnlyInternetGatewayInput{}
  5490. }
  5491. output = &DeleteEgressOnlyInternetGatewayOutput{}
  5492. req = c.newRequest(op, input, output)
  5493. return
  5494. }
  5495. // DeleteEgressOnlyInternetGateway API operation for Amazon Elastic Compute Cloud.
  5496. //
  5497. // Deletes an egress-only Internet gateway.
  5498. //
  5499. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5500. // with awserr.Error's Code and Message methods to get detailed information about
  5501. // the error.
  5502. //
  5503. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5504. // API operation DeleteEgressOnlyInternetGateway for usage and error information.
  5505. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGateway
  5506. func (c *EC2) DeleteEgressOnlyInternetGateway(input *DeleteEgressOnlyInternetGatewayInput) (*DeleteEgressOnlyInternetGatewayOutput, error) {
  5507. req, out := c.DeleteEgressOnlyInternetGatewayRequest(input)
  5508. return out, req.Send()
  5509. }
  5510. // DeleteEgressOnlyInternetGatewayWithContext is the same as DeleteEgressOnlyInternetGateway with the addition of
  5511. // the ability to pass a context and additional request options.
  5512. //
  5513. // See DeleteEgressOnlyInternetGateway for details on how to use this API operation.
  5514. //
  5515. // The context must be non-nil and will be used for request cancellation. If
  5516. // the context is nil a panic will occur. In the future the SDK may create
  5517. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5518. // for more information on using Contexts.
  5519. func (c *EC2) DeleteEgressOnlyInternetGatewayWithContext(ctx aws.Context, input *DeleteEgressOnlyInternetGatewayInput, opts ...request.Option) (*DeleteEgressOnlyInternetGatewayOutput, error) {
  5520. req, out := c.DeleteEgressOnlyInternetGatewayRequest(input)
  5521. req.SetContext(ctx)
  5522. req.ApplyOptions(opts...)
  5523. return out, req.Send()
  5524. }
  5525. const opDeleteFlowLogs = "DeleteFlowLogs"
  5526. // DeleteFlowLogsRequest generates a "aws/request.Request" representing the
  5527. // client's request for the DeleteFlowLogs operation. The "output" return
  5528. // value will be populated with the request's response once the request complets
  5529. // successfuly.
  5530. //
  5531. // Use "Send" method on the returned Request to send the API call to the service.
  5532. // the "output" return value is not valid until after Send returns without error.
  5533. //
  5534. // See DeleteFlowLogs for more information on using the DeleteFlowLogs
  5535. // API call, and error handling.
  5536. //
  5537. // This method is useful when you want to inject custom logic or configuration
  5538. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5539. //
  5540. //
  5541. // // Example sending a request using the DeleteFlowLogsRequest method.
  5542. // req, resp := client.DeleteFlowLogsRequest(params)
  5543. //
  5544. // err := req.Send()
  5545. // if err == nil { // resp is now filled
  5546. // fmt.Println(resp)
  5547. // }
  5548. //
  5549. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs
  5550. func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Request, output *DeleteFlowLogsOutput) {
  5551. op := &request.Operation{
  5552. Name: opDeleteFlowLogs,
  5553. HTTPMethod: "POST",
  5554. HTTPPath: "/",
  5555. }
  5556. if input == nil {
  5557. input = &DeleteFlowLogsInput{}
  5558. }
  5559. output = &DeleteFlowLogsOutput{}
  5560. req = c.newRequest(op, input, output)
  5561. return
  5562. }
  5563. // DeleteFlowLogs API operation for Amazon Elastic Compute Cloud.
  5564. //
  5565. // Deletes one or more flow logs.
  5566. //
  5567. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5568. // with awserr.Error's Code and Message methods to get detailed information about
  5569. // the error.
  5570. //
  5571. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5572. // API operation DeleteFlowLogs for usage and error information.
  5573. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogs
  5574. func (c *EC2) DeleteFlowLogs(input *DeleteFlowLogsInput) (*DeleteFlowLogsOutput, error) {
  5575. req, out := c.DeleteFlowLogsRequest(input)
  5576. return out, req.Send()
  5577. }
  5578. // DeleteFlowLogsWithContext is the same as DeleteFlowLogs with the addition of
  5579. // the ability to pass a context and additional request options.
  5580. //
  5581. // See DeleteFlowLogs for details on how to use this API operation.
  5582. //
  5583. // The context must be non-nil and will be used for request cancellation. If
  5584. // the context is nil a panic will occur. In the future the SDK may create
  5585. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5586. // for more information on using Contexts.
  5587. func (c *EC2) DeleteFlowLogsWithContext(ctx aws.Context, input *DeleteFlowLogsInput, opts ...request.Option) (*DeleteFlowLogsOutput, error) {
  5588. req, out := c.DeleteFlowLogsRequest(input)
  5589. req.SetContext(ctx)
  5590. req.ApplyOptions(opts...)
  5591. return out, req.Send()
  5592. }
  5593. const opDeleteFpgaImage = "DeleteFpgaImage"
  5594. // DeleteFpgaImageRequest generates a "aws/request.Request" representing the
  5595. // client's request for the DeleteFpgaImage operation. The "output" return
  5596. // value will be populated with the request's response once the request complets
  5597. // successfuly.
  5598. //
  5599. // Use "Send" method on the returned Request to send the API call to the service.
  5600. // the "output" return value is not valid until after Send returns without error.
  5601. //
  5602. // See DeleteFpgaImage for more information on using the DeleteFpgaImage
  5603. // API call, and error handling.
  5604. //
  5605. // This method is useful when you want to inject custom logic or configuration
  5606. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5607. //
  5608. //
  5609. // // Example sending a request using the DeleteFpgaImageRequest method.
  5610. // req, resp := client.DeleteFpgaImageRequest(params)
  5611. //
  5612. // err := req.Send()
  5613. // if err == nil { // resp is now filled
  5614. // fmt.Println(resp)
  5615. // }
  5616. //
  5617. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImage
  5618. func (c *EC2) DeleteFpgaImageRequest(input *DeleteFpgaImageInput) (req *request.Request, output *DeleteFpgaImageOutput) {
  5619. op := &request.Operation{
  5620. Name: opDeleteFpgaImage,
  5621. HTTPMethod: "POST",
  5622. HTTPPath: "/",
  5623. }
  5624. if input == nil {
  5625. input = &DeleteFpgaImageInput{}
  5626. }
  5627. output = &DeleteFpgaImageOutput{}
  5628. req = c.newRequest(op, input, output)
  5629. return
  5630. }
  5631. // DeleteFpgaImage API operation for Amazon Elastic Compute Cloud.
  5632. //
  5633. // Deletes the specified Amazon FPGA Image (AFI).
  5634. //
  5635. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5636. // with awserr.Error's Code and Message methods to get detailed information about
  5637. // the error.
  5638. //
  5639. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5640. // API operation DeleteFpgaImage for usage and error information.
  5641. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImage
  5642. func (c *EC2) DeleteFpgaImage(input *DeleteFpgaImageInput) (*DeleteFpgaImageOutput, error) {
  5643. req, out := c.DeleteFpgaImageRequest(input)
  5644. return out, req.Send()
  5645. }
  5646. // DeleteFpgaImageWithContext is the same as DeleteFpgaImage with the addition of
  5647. // the ability to pass a context and additional request options.
  5648. //
  5649. // See DeleteFpgaImage for details on how to use this API operation.
  5650. //
  5651. // The context must be non-nil and will be used for request cancellation. If
  5652. // the context is nil a panic will occur. In the future the SDK may create
  5653. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5654. // for more information on using Contexts.
  5655. func (c *EC2) DeleteFpgaImageWithContext(ctx aws.Context, input *DeleteFpgaImageInput, opts ...request.Option) (*DeleteFpgaImageOutput, error) {
  5656. req, out := c.DeleteFpgaImageRequest(input)
  5657. req.SetContext(ctx)
  5658. req.ApplyOptions(opts...)
  5659. return out, req.Send()
  5660. }
  5661. const opDeleteInternetGateway = "DeleteInternetGateway"
  5662. // DeleteInternetGatewayRequest generates a "aws/request.Request" representing the
  5663. // client's request for the DeleteInternetGateway operation. The "output" return
  5664. // value will be populated with the request's response once the request complets
  5665. // successfuly.
  5666. //
  5667. // Use "Send" method on the returned Request to send the API call to the service.
  5668. // the "output" return value is not valid until after Send returns without error.
  5669. //
  5670. // See DeleteInternetGateway for more information on using the DeleteInternetGateway
  5671. // API call, and error handling.
  5672. //
  5673. // This method is useful when you want to inject custom logic or configuration
  5674. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5675. //
  5676. //
  5677. // // Example sending a request using the DeleteInternetGatewayRequest method.
  5678. // req, resp := client.DeleteInternetGatewayRequest(params)
  5679. //
  5680. // err := req.Send()
  5681. // if err == nil { // resp is now filled
  5682. // fmt.Println(resp)
  5683. // }
  5684. //
  5685. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
  5686. func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (req *request.Request, output *DeleteInternetGatewayOutput) {
  5687. op := &request.Operation{
  5688. Name: opDeleteInternetGateway,
  5689. HTTPMethod: "POST",
  5690. HTTPPath: "/",
  5691. }
  5692. if input == nil {
  5693. input = &DeleteInternetGatewayInput{}
  5694. }
  5695. output = &DeleteInternetGatewayOutput{}
  5696. req = c.newRequest(op, input, output)
  5697. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5698. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5699. return
  5700. }
  5701. // DeleteInternetGateway API operation for Amazon Elastic Compute Cloud.
  5702. //
  5703. // Deletes the specified Internet gateway. You must detach the Internet gateway
  5704. // from the VPC before you can delete it.
  5705. //
  5706. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5707. // with awserr.Error's Code and Message methods to get detailed information about
  5708. // the error.
  5709. //
  5710. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5711. // API operation DeleteInternetGateway for usage and error information.
  5712. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGateway
  5713. func (c *EC2) DeleteInternetGateway(input *DeleteInternetGatewayInput) (*DeleteInternetGatewayOutput, error) {
  5714. req, out := c.DeleteInternetGatewayRequest(input)
  5715. return out, req.Send()
  5716. }
  5717. // DeleteInternetGatewayWithContext is the same as DeleteInternetGateway with the addition of
  5718. // the ability to pass a context and additional request options.
  5719. //
  5720. // See DeleteInternetGateway for details on how to use this API operation.
  5721. //
  5722. // The context must be non-nil and will be used for request cancellation. If
  5723. // the context is nil a panic will occur. In the future the SDK may create
  5724. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5725. // for more information on using Contexts.
  5726. func (c *EC2) DeleteInternetGatewayWithContext(ctx aws.Context, input *DeleteInternetGatewayInput, opts ...request.Option) (*DeleteInternetGatewayOutput, error) {
  5727. req, out := c.DeleteInternetGatewayRequest(input)
  5728. req.SetContext(ctx)
  5729. req.ApplyOptions(opts...)
  5730. return out, req.Send()
  5731. }
  5732. const opDeleteKeyPair = "DeleteKeyPair"
  5733. // DeleteKeyPairRequest generates a "aws/request.Request" representing the
  5734. // client's request for the DeleteKeyPair operation. The "output" return
  5735. // value will be populated with the request's response once the request complets
  5736. // successfuly.
  5737. //
  5738. // Use "Send" method on the returned Request to send the API call to the service.
  5739. // the "output" return value is not valid until after Send returns without error.
  5740. //
  5741. // See DeleteKeyPair for more information on using the DeleteKeyPair
  5742. // API call, and error handling.
  5743. //
  5744. // This method is useful when you want to inject custom logic or configuration
  5745. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5746. //
  5747. //
  5748. // // Example sending a request using the DeleteKeyPairRequest method.
  5749. // req, resp := client.DeleteKeyPairRequest(params)
  5750. //
  5751. // err := req.Send()
  5752. // if err == nil { // resp is now filled
  5753. // fmt.Println(resp)
  5754. // }
  5755. //
  5756. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair
  5757. func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput) {
  5758. op := &request.Operation{
  5759. Name: opDeleteKeyPair,
  5760. HTTPMethod: "POST",
  5761. HTTPPath: "/",
  5762. }
  5763. if input == nil {
  5764. input = &DeleteKeyPairInput{}
  5765. }
  5766. output = &DeleteKeyPairOutput{}
  5767. req = c.newRequest(op, input, output)
  5768. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  5769. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5770. return
  5771. }
  5772. // DeleteKeyPair API operation for Amazon Elastic Compute Cloud.
  5773. //
  5774. // Deletes the specified key pair, by removing the public key from Amazon EC2.
  5775. //
  5776. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5777. // with awserr.Error's Code and Message methods to get detailed information about
  5778. // the error.
  5779. //
  5780. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5781. // API operation DeleteKeyPair for usage and error information.
  5782. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair
  5783. func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) {
  5784. req, out := c.DeleteKeyPairRequest(input)
  5785. return out, req.Send()
  5786. }
  5787. // DeleteKeyPairWithContext is the same as DeleteKeyPair with the addition of
  5788. // the ability to pass a context and additional request options.
  5789. //
  5790. // See DeleteKeyPair for details on how to use this API operation.
  5791. //
  5792. // The context must be non-nil and will be used for request cancellation. If
  5793. // the context is nil a panic will occur. In the future the SDK may create
  5794. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5795. // for more information on using Contexts.
  5796. func (c *EC2) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInput, opts ...request.Option) (*DeleteKeyPairOutput, error) {
  5797. req, out := c.DeleteKeyPairRequest(input)
  5798. req.SetContext(ctx)
  5799. req.ApplyOptions(opts...)
  5800. return out, req.Send()
  5801. }
  5802. const opDeleteLaunchTemplate = "DeleteLaunchTemplate"
  5803. // DeleteLaunchTemplateRequest generates a "aws/request.Request" representing the
  5804. // client's request for the DeleteLaunchTemplate operation. The "output" return
  5805. // value will be populated with the request's response once the request complets
  5806. // successfuly.
  5807. //
  5808. // Use "Send" method on the returned Request to send the API call to the service.
  5809. // the "output" return value is not valid until after Send returns without error.
  5810. //
  5811. // See DeleteLaunchTemplate for more information on using the DeleteLaunchTemplate
  5812. // API call, and error handling.
  5813. //
  5814. // This method is useful when you want to inject custom logic or configuration
  5815. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5816. //
  5817. //
  5818. // // Example sending a request using the DeleteLaunchTemplateRequest method.
  5819. // req, resp := client.DeleteLaunchTemplateRequest(params)
  5820. //
  5821. // err := req.Send()
  5822. // if err == nil { // resp is now filled
  5823. // fmt.Println(resp)
  5824. // }
  5825. //
  5826. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate
  5827. func (c *EC2) DeleteLaunchTemplateRequest(input *DeleteLaunchTemplateInput) (req *request.Request, output *DeleteLaunchTemplateOutput) {
  5828. op := &request.Operation{
  5829. Name: opDeleteLaunchTemplate,
  5830. HTTPMethod: "POST",
  5831. HTTPPath: "/",
  5832. }
  5833. if input == nil {
  5834. input = &DeleteLaunchTemplateInput{}
  5835. }
  5836. output = &DeleteLaunchTemplateOutput{}
  5837. req = c.newRequest(op, input, output)
  5838. return
  5839. }
  5840. // DeleteLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  5841. //
  5842. // Deletes a launch template. Deleting a launch template deletes all of its
  5843. // versions.
  5844. //
  5845. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5846. // with awserr.Error's Code and Message methods to get detailed information about
  5847. // the error.
  5848. //
  5849. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5850. // API operation DeleteLaunchTemplate for usage and error information.
  5851. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplate
  5852. func (c *EC2) DeleteLaunchTemplate(input *DeleteLaunchTemplateInput) (*DeleteLaunchTemplateOutput, error) {
  5853. req, out := c.DeleteLaunchTemplateRequest(input)
  5854. return out, req.Send()
  5855. }
  5856. // DeleteLaunchTemplateWithContext is the same as DeleteLaunchTemplate with the addition of
  5857. // the ability to pass a context and additional request options.
  5858. //
  5859. // See DeleteLaunchTemplate for details on how to use this API operation.
  5860. //
  5861. // The context must be non-nil and will be used for request cancellation. If
  5862. // the context is nil a panic will occur. In the future the SDK may create
  5863. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5864. // for more information on using Contexts.
  5865. func (c *EC2) DeleteLaunchTemplateWithContext(ctx aws.Context, input *DeleteLaunchTemplateInput, opts ...request.Option) (*DeleteLaunchTemplateOutput, error) {
  5866. req, out := c.DeleteLaunchTemplateRequest(input)
  5867. req.SetContext(ctx)
  5868. req.ApplyOptions(opts...)
  5869. return out, req.Send()
  5870. }
  5871. const opDeleteLaunchTemplateVersions = "DeleteLaunchTemplateVersions"
  5872. // DeleteLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the
  5873. // client's request for the DeleteLaunchTemplateVersions operation. The "output" return
  5874. // value will be populated with the request's response once the request complets
  5875. // successfuly.
  5876. //
  5877. // Use "Send" method on the returned Request to send the API call to the service.
  5878. // the "output" return value is not valid until after Send returns without error.
  5879. //
  5880. // See DeleteLaunchTemplateVersions for more information on using the DeleteLaunchTemplateVersions
  5881. // API call, and error handling.
  5882. //
  5883. // This method is useful when you want to inject custom logic or configuration
  5884. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5885. //
  5886. //
  5887. // // Example sending a request using the DeleteLaunchTemplateVersionsRequest method.
  5888. // req, resp := client.DeleteLaunchTemplateVersionsRequest(params)
  5889. //
  5890. // err := req.Send()
  5891. // if err == nil { // resp is now filled
  5892. // fmt.Println(resp)
  5893. // }
  5894. //
  5895. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions
  5896. func (c *EC2) DeleteLaunchTemplateVersionsRequest(input *DeleteLaunchTemplateVersionsInput) (req *request.Request, output *DeleteLaunchTemplateVersionsOutput) {
  5897. op := &request.Operation{
  5898. Name: opDeleteLaunchTemplateVersions,
  5899. HTTPMethod: "POST",
  5900. HTTPPath: "/",
  5901. }
  5902. if input == nil {
  5903. input = &DeleteLaunchTemplateVersionsInput{}
  5904. }
  5905. output = &DeleteLaunchTemplateVersionsOutput{}
  5906. req = c.newRequest(op, input, output)
  5907. return
  5908. }
  5909. // DeleteLaunchTemplateVersions API operation for Amazon Elastic Compute Cloud.
  5910. //
  5911. // Deletes one or more versions of a launch template. You cannot delete the
  5912. // default version of a launch template; you must first assign a different version
  5913. // as the default. If the default version is the only version for the launch
  5914. // template, you must delete the entire launch template using DeleteLaunchTemplate.
  5915. //
  5916. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5917. // with awserr.Error's Code and Message methods to get detailed information about
  5918. // the error.
  5919. //
  5920. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5921. // API operation DeleteLaunchTemplateVersions for usage and error information.
  5922. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersions
  5923. func (c *EC2) DeleteLaunchTemplateVersions(input *DeleteLaunchTemplateVersionsInput) (*DeleteLaunchTemplateVersionsOutput, error) {
  5924. req, out := c.DeleteLaunchTemplateVersionsRequest(input)
  5925. return out, req.Send()
  5926. }
  5927. // DeleteLaunchTemplateVersionsWithContext is the same as DeleteLaunchTemplateVersions with the addition of
  5928. // the ability to pass a context and additional request options.
  5929. //
  5930. // See DeleteLaunchTemplateVersions for details on how to use this API operation.
  5931. //
  5932. // The context must be non-nil and will be used for request cancellation. If
  5933. // the context is nil a panic will occur. In the future the SDK may create
  5934. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5935. // for more information on using Contexts.
  5936. func (c *EC2) DeleteLaunchTemplateVersionsWithContext(ctx aws.Context, input *DeleteLaunchTemplateVersionsInput, opts ...request.Option) (*DeleteLaunchTemplateVersionsOutput, error) {
  5937. req, out := c.DeleteLaunchTemplateVersionsRequest(input)
  5938. req.SetContext(ctx)
  5939. req.ApplyOptions(opts...)
  5940. return out, req.Send()
  5941. }
  5942. const opDeleteNatGateway = "DeleteNatGateway"
  5943. // DeleteNatGatewayRequest generates a "aws/request.Request" representing the
  5944. // client's request for the DeleteNatGateway operation. The "output" return
  5945. // value will be populated with the request's response once the request complets
  5946. // successfuly.
  5947. //
  5948. // Use "Send" method on the returned Request to send the API call to the service.
  5949. // the "output" return value is not valid until after Send returns without error.
  5950. //
  5951. // See DeleteNatGateway for more information on using the DeleteNatGateway
  5952. // API call, and error handling.
  5953. //
  5954. // This method is useful when you want to inject custom logic or configuration
  5955. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5956. //
  5957. //
  5958. // // Example sending a request using the DeleteNatGatewayRequest method.
  5959. // req, resp := client.DeleteNatGatewayRequest(params)
  5960. //
  5961. // err := req.Send()
  5962. // if err == nil { // resp is now filled
  5963. // fmt.Println(resp)
  5964. // }
  5965. //
  5966. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway
  5967. func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *request.Request, output *DeleteNatGatewayOutput) {
  5968. op := &request.Operation{
  5969. Name: opDeleteNatGateway,
  5970. HTTPMethod: "POST",
  5971. HTTPPath: "/",
  5972. }
  5973. if input == nil {
  5974. input = &DeleteNatGatewayInput{}
  5975. }
  5976. output = &DeleteNatGatewayOutput{}
  5977. req = c.newRequest(op, input, output)
  5978. return
  5979. }
  5980. // DeleteNatGateway API operation for Amazon Elastic Compute Cloud.
  5981. //
  5982. // Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its
  5983. // Elastic IP address, but does not release the address from your account. Deleting
  5984. // a NAT gateway does not delete any NAT gateway routes in your route tables.
  5985. //
  5986. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5987. // with awserr.Error's Code and Message methods to get detailed information about
  5988. // the error.
  5989. //
  5990. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  5991. // API operation DeleteNatGateway for usage and error information.
  5992. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGateway
  5993. func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) {
  5994. req, out := c.DeleteNatGatewayRequest(input)
  5995. return out, req.Send()
  5996. }
  5997. // DeleteNatGatewayWithContext is the same as DeleteNatGateway with the addition of
  5998. // the ability to pass a context and additional request options.
  5999. //
  6000. // See DeleteNatGateway for details on how to use this API operation.
  6001. //
  6002. // The context must be non-nil and will be used for request cancellation. If
  6003. // the context is nil a panic will occur. In the future the SDK may create
  6004. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6005. // for more information on using Contexts.
  6006. func (c *EC2) DeleteNatGatewayWithContext(ctx aws.Context, input *DeleteNatGatewayInput, opts ...request.Option) (*DeleteNatGatewayOutput, error) {
  6007. req, out := c.DeleteNatGatewayRequest(input)
  6008. req.SetContext(ctx)
  6009. req.ApplyOptions(opts...)
  6010. return out, req.Send()
  6011. }
  6012. const opDeleteNetworkAcl = "DeleteNetworkAcl"
  6013. // DeleteNetworkAclRequest generates a "aws/request.Request" representing the
  6014. // client's request for the DeleteNetworkAcl operation. The "output" return
  6015. // value will be populated with the request's response once the request complets
  6016. // successfuly.
  6017. //
  6018. // Use "Send" method on the returned Request to send the API call to the service.
  6019. // the "output" return value is not valid until after Send returns without error.
  6020. //
  6021. // See DeleteNetworkAcl for more information on using the DeleteNetworkAcl
  6022. // API call, and error handling.
  6023. //
  6024. // This method is useful when you want to inject custom logic or configuration
  6025. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6026. //
  6027. //
  6028. // // Example sending a request using the DeleteNetworkAclRequest method.
  6029. // req, resp := client.DeleteNetworkAclRequest(params)
  6030. //
  6031. // err := req.Send()
  6032. // if err == nil { // resp is now filled
  6033. // fmt.Println(resp)
  6034. // }
  6035. //
  6036. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl
  6037. func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *request.Request, output *DeleteNetworkAclOutput) {
  6038. op := &request.Operation{
  6039. Name: opDeleteNetworkAcl,
  6040. HTTPMethod: "POST",
  6041. HTTPPath: "/",
  6042. }
  6043. if input == nil {
  6044. input = &DeleteNetworkAclInput{}
  6045. }
  6046. output = &DeleteNetworkAclOutput{}
  6047. req = c.newRequest(op, input, output)
  6048. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6049. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6050. return
  6051. }
  6052. // DeleteNetworkAcl API operation for Amazon Elastic Compute Cloud.
  6053. //
  6054. // Deletes the specified network ACL. You can't delete the ACL if it's associated
  6055. // with any subnets. You can't delete the default network ACL.
  6056. //
  6057. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6058. // with awserr.Error's Code and Message methods to get detailed information about
  6059. // the error.
  6060. //
  6061. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6062. // API operation DeleteNetworkAcl for usage and error information.
  6063. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAcl
  6064. func (c *EC2) DeleteNetworkAcl(input *DeleteNetworkAclInput) (*DeleteNetworkAclOutput, error) {
  6065. req, out := c.DeleteNetworkAclRequest(input)
  6066. return out, req.Send()
  6067. }
  6068. // DeleteNetworkAclWithContext is the same as DeleteNetworkAcl with the addition of
  6069. // the ability to pass a context and additional request options.
  6070. //
  6071. // See DeleteNetworkAcl for details on how to use this API operation.
  6072. //
  6073. // The context must be non-nil and will be used for request cancellation. If
  6074. // the context is nil a panic will occur. In the future the SDK may create
  6075. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6076. // for more information on using Contexts.
  6077. func (c *EC2) DeleteNetworkAclWithContext(ctx aws.Context, input *DeleteNetworkAclInput, opts ...request.Option) (*DeleteNetworkAclOutput, error) {
  6078. req, out := c.DeleteNetworkAclRequest(input)
  6079. req.SetContext(ctx)
  6080. req.ApplyOptions(opts...)
  6081. return out, req.Send()
  6082. }
  6083. const opDeleteNetworkAclEntry = "DeleteNetworkAclEntry"
  6084. // DeleteNetworkAclEntryRequest generates a "aws/request.Request" representing the
  6085. // client's request for the DeleteNetworkAclEntry operation. The "output" return
  6086. // value will be populated with the request's response once the request complets
  6087. // successfuly.
  6088. //
  6089. // Use "Send" method on the returned Request to send the API call to the service.
  6090. // the "output" return value is not valid until after Send returns without error.
  6091. //
  6092. // See DeleteNetworkAclEntry for more information on using the DeleteNetworkAclEntry
  6093. // API call, and error handling.
  6094. //
  6095. // This method is useful when you want to inject custom logic or configuration
  6096. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6097. //
  6098. //
  6099. // // Example sending a request using the DeleteNetworkAclEntryRequest method.
  6100. // req, resp := client.DeleteNetworkAclEntryRequest(params)
  6101. //
  6102. // err := req.Send()
  6103. // if err == nil { // resp is now filled
  6104. // fmt.Println(resp)
  6105. // }
  6106. //
  6107. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry
  6108. func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (req *request.Request, output *DeleteNetworkAclEntryOutput) {
  6109. op := &request.Operation{
  6110. Name: opDeleteNetworkAclEntry,
  6111. HTTPMethod: "POST",
  6112. HTTPPath: "/",
  6113. }
  6114. if input == nil {
  6115. input = &DeleteNetworkAclEntryInput{}
  6116. }
  6117. output = &DeleteNetworkAclEntryOutput{}
  6118. req = c.newRequest(op, input, output)
  6119. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6120. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6121. return
  6122. }
  6123. // DeleteNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  6124. //
  6125. // Deletes the specified ingress or egress entry (rule) from the specified network
  6126. // ACL.
  6127. //
  6128. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6129. // with awserr.Error's Code and Message methods to get detailed information about
  6130. // the error.
  6131. //
  6132. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6133. // API operation DeleteNetworkAclEntry for usage and error information.
  6134. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntry
  6135. func (c *EC2) DeleteNetworkAclEntry(input *DeleteNetworkAclEntryInput) (*DeleteNetworkAclEntryOutput, error) {
  6136. req, out := c.DeleteNetworkAclEntryRequest(input)
  6137. return out, req.Send()
  6138. }
  6139. // DeleteNetworkAclEntryWithContext is the same as DeleteNetworkAclEntry with the addition of
  6140. // the ability to pass a context and additional request options.
  6141. //
  6142. // See DeleteNetworkAclEntry for details on how to use this API operation.
  6143. //
  6144. // The context must be non-nil and will be used for request cancellation. If
  6145. // the context is nil a panic will occur. In the future the SDK may create
  6146. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6147. // for more information on using Contexts.
  6148. func (c *EC2) DeleteNetworkAclEntryWithContext(ctx aws.Context, input *DeleteNetworkAclEntryInput, opts ...request.Option) (*DeleteNetworkAclEntryOutput, error) {
  6149. req, out := c.DeleteNetworkAclEntryRequest(input)
  6150. req.SetContext(ctx)
  6151. req.ApplyOptions(opts...)
  6152. return out, req.Send()
  6153. }
  6154. const opDeleteNetworkInterface = "DeleteNetworkInterface"
  6155. // DeleteNetworkInterfaceRequest generates a "aws/request.Request" representing the
  6156. // client's request for the DeleteNetworkInterface operation. The "output" return
  6157. // value will be populated with the request's response once the request complets
  6158. // successfuly.
  6159. //
  6160. // Use "Send" method on the returned Request to send the API call to the service.
  6161. // the "output" return value is not valid until after Send returns without error.
  6162. //
  6163. // See DeleteNetworkInterface for more information on using the DeleteNetworkInterface
  6164. // API call, and error handling.
  6165. //
  6166. // This method is useful when you want to inject custom logic or configuration
  6167. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6168. //
  6169. //
  6170. // // Example sending a request using the DeleteNetworkInterfaceRequest method.
  6171. // req, resp := client.DeleteNetworkInterfaceRequest(params)
  6172. //
  6173. // err := req.Send()
  6174. // if err == nil { // resp is now filled
  6175. // fmt.Println(resp)
  6176. // }
  6177. //
  6178. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface
  6179. func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) (req *request.Request, output *DeleteNetworkInterfaceOutput) {
  6180. op := &request.Operation{
  6181. Name: opDeleteNetworkInterface,
  6182. HTTPMethod: "POST",
  6183. HTTPPath: "/",
  6184. }
  6185. if input == nil {
  6186. input = &DeleteNetworkInterfaceInput{}
  6187. }
  6188. output = &DeleteNetworkInterfaceOutput{}
  6189. req = c.newRequest(op, input, output)
  6190. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6191. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6192. return
  6193. }
  6194. // DeleteNetworkInterface API operation for Amazon Elastic Compute Cloud.
  6195. //
  6196. // Deletes the specified network interface. You must detach the network interface
  6197. // before you can delete it.
  6198. //
  6199. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6200. // with awserr.Error's Code and Message methods to get detailed information about
  6201. // the error.
  6202. //
  6203. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6204. // API operation DeleteNetworkInterface for usage and error information.
  6205. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterface
  6206. func (c *EC2) DeleteNetworkInterface(input *DeleteNetworkInterfaceInput) (*DeleteNetworkInterfaceOutput, error) {
  6207. req, out := c.DeleteNetworkInterfaceRequest(input)
  6208. return out, req.Send()
  6209. }
  6210. // DeleteNetworkInterfaceWithContext is the same as DeleteNetworkInterface with the addition of
  6211. // the ability to pass a context and additional request options.
  6212. //
  6213. // See DeleteNetworkInterface for details on how to use this API operation.
  6214. //
  6215. // The context must be non-nil and will be used for request cancellation. If
  6216. // the context is nil a panic will occur. In the future the SDK may create
  6217. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6218. // for more information on using Contexts.
  6219. func (c *EC2) DeleteNetworkInterfaceWithContext(ctx aws.Context, input *DeleteNetworkInterfaceInput, opts ...request.Option) (*DeleteNetworkInterfaceOutput, error) {
  6220. req, out := c.DeleteNetworkInterfaceRequest(input)
  6221. req.SetContext(ctx)
  6222. req.ApplyOptions(opts...)
  6223. return out, req.Send()
  6224. }
  6225. const opDeleteNetworkInterfacePermission = "DeleteNetworkInterfacePermission"
  6226. // DeleteNetworkInterfacePermissionRequest generates a "aws/request.Request" representing the
  6227. // client's request for the DeleteNetworkInterfacePermission operation. The "output" return
  6228. // value will be populated with the request's response once the request complets
  6229. // successfuly.
  6230. //
  6231. // Use "Send" method on the returned Request to send the API call to the service.
  6232. // the "output" return value is not valid until after Send returns without error.
  6233. //
  6234. // See DeleteNetworkInterfacePermission for more information on using the DeleteNetworkInterfacePermission
  6235. // API call, and error handling.
  6236. //
  6237. // This method is useful when you want to inject custom logic or configuration
  6238. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6239. //
  6240. //
  6241. // // Example sending a request using the DeleteNetworkInterfacePermissionRequest method.
  6242. // req, resp := client.DeleteNetworkInterfacePermissionRequest(params)
  6243. //
  6244. // err := req.Send()
  6245. // if err == nil { // resp is now filled
  6246. // fmt.Println(resp)
  6247. // }
  6248. //
  6249. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermission
  6250. func (c *EC2) DeleteNetworkInterfacePermissionRequest(input *DeleteNetworkInterfacePermissionInput) (req *request.Request, output *DeleteNetworkInterfacePermissionOutput) {
  6251. op := &request.Operation{
  6252. Name: opDeleteNetworkInterfacePermission,
  6253. HTTPMethod: "POST",
  6254. HTTPPath: "/",
  6255. }
  6256. if input == nil {
  6257. input = &DeleteNetworkInterfacePermissionInput{}
  6258. }
  6259. output = &DeleteNetworkInterfacePermissionOutput{}
  6260. req = c.newRequest(op, input, output)
  6261. return
  6262. }
  6263. // DeleteNetworkInterfacePermission API operation for Amazon Elastic Compute Cloud.
  6264. //
  6265. // Deletes a permission for a network interface. By default, you cannot delete
  6266. // the permission if the account for which you're removing the permission has
  6267. // attached the network interface to an instance. However, you can force delete
  6268. // the permission, regardless of any attachment.
  6269. //
  6270. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6271. // with awserr.Error's Code and Message methods to get detailed information about
  6272. // the error.
  6273. //
  6274. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6275. // API operation DeleteNetworkInterfacePermission for usage and error information.
  6276. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermission
  6277. func (c *EC2) DeleteNetworkInterfacePermission(input *DeleteNetworkInterfacePermissionInput) (*DeleteNetworkInterfacePermissionOutput, error) {
  6278. req, out := c.DeleteNetworkInterfacePermissionRequest(input)
  6279. return out, req.Send()
  6280. }
  6281. // DeleteNetworkInterfacePermissionWithContext is the same as DeleteNetworkInterfacePermission with the addition of
  6282. // the ability to pass a context and additional request options.
  6283. //
  6284. // See DeleteNetworkInterfacePermission for details on how to use this API operation.
  6285. //
  6286. // The context must be non-nil and will be used for request cancellation. If
  6287. // the context is nil a panic will occur. In the future the SDK may create
  6288. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6289. // for more information on using Contexts.
  6290. func (c *EC2) DeleteNetworkInterfacePermissionWithContext(ctx aws.Context, input *DeleteNetworkInterfacePermissionInput, opts ...request.Option) (*DeleteNetworkInterfacePermissionOutput, error) {
  6291. req, out := c.DeleteNetworkInterfacePermissionRequest(input)
  6292. req.SetContext(ctx)
  6293. req.ApplyOptions(opts...)
  6294. return out, req.Send()
  6295. }
  6296. const opDeletePlacementGroup = "DeletePlacementGroup"
  6297. // DeletePlacementGroupRequest generates a "aws/request.Request" representing the
  6298. // client's request for the DeletePlacementGroup operation. The "output" return
  6299. // value will be populated with the request's response once the request complets
  6300. // successfuly.
  6301. //
  6302. // Use "Send" method on the returned Request to send the API call to the service.
  6303. // the "output" return value is not valid until after Send returns without error.
  6304. //
  6305. // See DeletePlacementGroup for more information on using the DeletePlacementGroup
  6306. // API call, and error handling.
  6307. //
  6308. // This method is useful when you want to inject custom logic or configuration
  6309. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6310. //
  6311. //
  6312. // // Example sending a request using the DeletePlacementGroupRequest method.
  6313. // req, resp := client.DeletePlacementGroupRequest(params)
  6314. //
  6315. // err := req.Send()
  6316. // if err == nil { // resp is now filled
  6317. // fmt.Println(resp)
  6318. // }
  6319. //
  6320. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup
  6321. func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req *request.Request, output *DeletePlacementGroupOutput) {
  6322. op := &request.Operation{
  6323. Name: opDeletePlacementGroup,
  6324. HTTPMethod: "POST",
  6325. HTTPPath: "/",
  6326. }
  6327. if input == nil {
  6328. input = &DeletePlacementGroupInput{}
  6329. }
  6330. output = &DeletePlacementGroupOutput{}
  6331. req = c.newRequest(op, input, output)
  6332. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6333. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6334. return
  6335. }
  6336. // DeletePlacementGroup API operation for Amazon Elastic Compute Cloud.
  6337. //
  6338. // Deletes the specified placement group. You must terminate all instances in
  6339. // the placement group before you can delete the placement group. For more information,
  6340. // see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  6341. // in the Amazon Elastic Compute Cloud User Guide.
  6342. //
  6343. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6344. // with awserr.Error's Code and Message methods to get detailed information about
  6345. // the error.
  6346. //
  6347. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6348. // API operation DeletePlacementGroup for usage and error information.
  6349. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroup
  6350. func (c *EC2) DeletePlacementGroup(input *DeletePlacementGroupInput) (*DeletePlacementGroupOutput, error) {
  6351. req, out := c.DeletePlacementGroupRequest(input)
  6352. return out, req.Send()
  6353. }
  6354. // DeletePlacementGroupWithContext is the same as DeletePlacementGroup with the addition of
  6355. // the ability to pass a context and additional request options.
  6356. //
  6357. // See DeletePlacementGroup for details on how to use this API operation.
  6358. //
  6359. // The context must be non-nil and will be used for request cancellation. If
  6360. // the context is nil a panic will occur. In the future the SDK may create
  6361. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6362. // for more information on using Contexts.
  6363. func (c *EC2) DeletePlacementGroupWithContext(ctx aws.Context, input *DeletePlacementGroupInput, opts ...request.Option) (*DeletePlacementGroupOutput, error) {
  6364. req, out := c.DeletePlacementGroupRequest(input)
  6365. req.SetContext(ctx)
  6366. req.ApplyOptions(opts...)
  6367. return out, req.Send()
  6368. }
  6369. const opDeleteRoute = "DeleteRoute"
  6370. // DeleteRouteRequest generates a "aws/request.Request" representing the
  6371. // client's request for the DeleteRoute operation. The "output" return
  6372. // value will be populated with the request's response once the request complets
  6373. // successfuly.
  6374. //
  6375. // Use "Send" method on the returned Request to send the API call to the service.
  6376. // the "output" return value is not valid until after Send returns without error.
  6377. //
  6378. // See DeleteRoute for more information on using the DeleteRoute
  6379. // API call, and error handling.
  6380. //
  6381. // This method is useful when you want to inject custom logic or configuration
  6382. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6383. //
  6384. //
  6385. // // Example sending a request using the DeleteRouteRequest method.
  6386. // req, resp := client.DeleteRouteRequest(params)
  6387. //
  6388. // err := req.Send()
  6389. // if err == nil { // resp is now filled
  6390. // fmt.Println(resp)
  6391. // }
  6392. //
  6393. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute
  6394. func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, output *DeleteRouteOutput) {
  6395. op := &request.Operation{
  6396. Name: opDeleteRoute,
  6397. HTTPMethod: "POST",
  6398. HTTPPath: "/",
  6399. }
  6400. if input == nil {
  6401. input = &DeleteRouteInput{}
  6402. }
  6403. output = &DeleteRouteOutput{}
  6404. req = c.newRequest(op, input, output)
  6405. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6406. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6407. return
  6408. }
  6409. // DeleteRoute API operation for Amazon Elastic Compute Cloud.
  6410. //
  6411. // Deletes the specified route from the specified route table.
  6412. //
  6413. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6414. // with awserr.Error's Code and Message methods to get detailed information about
  6415. // the error.
  6416. //
  6417. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6418. // API operation DeleteRoute for usage and error information.
  6419. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute
  6420. func (c *EC2) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) {
  6421. req, out := c.DeleteRouteRequest(input)
  6422. return out, req.Send()
  6423. }
  6424. // DeleteRouteWithContext is the same as DeleteRoute with the addition of
  6425. // the ability to pass a context and additional request options.
  6426. //
  6427. // See DeleteRoute for details on how to use this API operation.
  6428. //
  6429. // The context must be non-nil and will be used for request cancellation. If
  6430. // the context is nil a panic will occur. In the future the SDK may create
  6431. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6432. // for more information on using Contexts.
  6433. func (c *EC2) DeleteRouteWithContext(ctx aws.Context, input *DeleteRouteInput, opts ...request.Option) (*DeleteRouteOutput, error) {
  6434. req, out := c.DeleteRouteRequest(input)
  6435. req.SetContext(ctx)
  6436. req.ApplyOptions(opts...)
  6437. return out, req.Send()
  6438. }
  6439. const opDeleteRouteTable = "DeleteRouteTable"
  6440. // DeleteRouteTableRequest generates a "aws/request.Request" representing the
  6441. // client's request for the DeleteRouteTable operation. The "output" return
  6442. // value will be populated with the request's response once the request complets
  6443. // successfuly.
  6444. //
  6445. // Use "Send" method on the returned Request to send the API call to the service.
  6446. // the "output" return value is not valid until after Send returns without error.
  6447. //
  6448. // See DeleteRouteTable for more information on using the DeleteRouteTable
  6449. // API call, and error handling.
  6450. //
  6451. // This method is useful when you want to inject custom logic or configuration
  6452. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6453. //
  6454. //
  6455. // // Example sending a request using the DeleteRouteTableRequest method.
  6456. // req, resp := client.DeleteRouteTableRequest(params)
  6457. //
  6458. // err := req.Send()
  6459. // if err == nil { // resp is now filled
  6460. // fmt.Println(resp)
  6461. // }
  6462. //
  6463. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable
  6464. func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *request.Request, output *DeleteRouteTableOutput) {
  6465. op := &request.Operation{
  6466. Name: opDeleteRouteTable,
  6467. HTTPMethod: "POST",
  6468. HTTPPath: "/",
  6469. }
  6470. if input == nil {
  6471. input = &DeleteRouteTableInput{}
  6472. }
  6473. output = &DeleteRouteTableOutput{}
  6474. req = c.newRequest(op, input, output)
  6475. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6476. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6477. return
  6478. }
  6479. // DeleteRouteTable API operation for Amazon Elastic Compute Cloud.
  6480. //
  6481. // Deletes the specified route table. You must disassociate the route table
  6482. // from any subnets before you can delete it. You can't delete the main route
  6483. // table.
  6484. //
  6485. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6486. // with awserr.Error's Code and Message methods to get detailed information about
  6487. // the error.
  6488. //
  6489. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6490. // API operation DeleteRouteTable for usage and error information.
  6491. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTable
  6492. func (c *EC2) DeleteRouteTable(input *DeleteRouteTableInput) (*DeleteRouteTableOutput, error) {
  6493. req, out := c.DeleteRouteTableRequest(input)
  6494. return out, req.Send()
  6495. }
  6496. // DeleteRouteTableWithContext is the same as DeleteRouteTable with the addition of
  6497. // the ability to pass a context and additional request options.
  6498. //
  6499. // See DeleteRouteTable for details on how to use this API operation.
  6500. //
  6501. // The context must be non-nil and will be used for request cancellation. If
  6502. // the context is nil a panic will occur. In the future the SDK may create
  6503. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6504. // for more information on using Contexts.
  6505. func (c *EC2) DeleteRouteTableWithContext(ctx aws.Context, input *DeleteRouteTableInput, opts ...request.Option) (*DeleteRouteTableOutput, error) {
  6506. req, out := c.DeleteRouteTableRequest(input)
  6507. req.SetContext(ctx)
  6508. req.ApplyOptions(opts...)
  6509. return out, req.Send()
  6510. }
  6511. const opDeleteSecurityGroup = "DeleteSecurityGroup"
  6512. // DeleteSecurityGroupRequest generates a "aws/request.Request" representing the
  6513. // client's request for the DeleteSecurityGroup operation. The "output" return
  6514. // value will be populated with the request's response once the request complets
  6515. // successfuly.
  6516. //
  6517. // Use "Send" method on the returned Request to send the API call to the service.
  6518. // the "output" return value is not valid until after Send returns without error.
  6519. //
  6520. // See DeleteSecurityGroup for more information on using the DeleteSecurityGroup
  6521. // API call, and error handling.
  6522. //
  6523. // This method is useful when you want to inject custom logic or configuration
  6524. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6525. //
  6526. //
  6527. // // Example sending a request using the DeleteSecurityGroupRequest method.
  6528. // req, resp := client.DeleteSecurityGroupRequest(params)
  6529. //
  6530. // err := req.Send()
  6531. // if err == nil { // resp is now filled
  6532. // fmt.Println(resp)
  6533. // }
  6534. //
  6535. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup
  6536. func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput) {
  6537. op := &request.Operation{
  6538. Name: opDeleteSecurityGroup,
  6539. HTTPMethod: "POST",
  6540. HTTPPath: "/",
  6541. }
  6542. if input == nil {
  6543. input = &DeleteSecurityGroupInput{}
  6544. }
  6545. output = &DeleteSecurityGroupOutput{}
  6546. req = c.newRequest(op, input, output)
  6547. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6548. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6549. return
  6550. }
  6551. // DeleteSecurityGroup API operation for Amazon Elastic Compute Cloud.
  6552. //
  6553. // Deletes a security group.
  6554. //
  6555. // If you attempt to delete a security group that is associated with an instance,
  6556. // or is referenced by another security group, the operation fails with InvalidGroup.InUse
  6557. // in EC2-Classic or DependencyViolation in EC2-VPC.
  6558. //
  6559. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6560. // with awserr.Error's Code and Message methods to get detailed information about
  6561. // the error.
  6562. //
  6563. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6564. // API operation DeleteSecurityGroup for usage and error information.
  6565. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroup
  6566. func (c *EC2) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error) {
  6567. req, out := c.DeleteSecurityGroupRequest(input)
  6568. return out, req.Send()
  6569. }
  6570. // DeleteSecurityGroupWithContext is the same as DeleteSecurityGroup with the addition of
  6571. // the ability to pass a context and additional request options.
  6572. //
  6573. // See DeleteSecurityGroup for details on how to use this API operation.
  6574. //
  6575. // The context must be non-nil and will be used for request cancellation. If
  6576. // the context is nil a panic will occur. In the future the SDK may create
  6577. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6578. // for more information on using Contexts.
  6579. func (c *EC2) DeleteSecurityGroupWithContext(ctx aws.Context, input *DeleteSecurityGroupInput, opts ...request.Option) (*DeleteSecurityGroupOutput, error) {
  6580. req, out := c.DeleteSecurityGroupRequest(input)
  6581. req.SetContext(ctx)
  6582. req.ApplyOptions(opts...)
  6583. return out, req.Send()
  6584. }
  6585. const opDeleteSnapshot = "DeleteSnapshot"
  6586. // DeleteSnapshotRequest generates a "aws/request.Request" representing the
  6587. // client's request for the DeleteSnapshot operation. The "output" return
  6588. // value will be populated with the request's response once the request complets
  6589. // successfuly.
  6590. //
  6591. // Use "Send" method on the returned Request to send the API call to the service.
  6592. // the "output" return value is not valid until after Send returns without error.
  6593. //
  6594. // See DeleteSnapshot for more information on using the DeleteSnapshot
  6595. // API call, and error handling.
  6596. //
  6597. // This method is useful when you want to inject custom logic or configuration
  6598. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6599. //
  6600. //
  6601. // // Example sending a request using the DeleteSnapshotRequest method.
  6602. // req, resp := client.DeleteSnapshotRequest(params)
  6603. //
  6604. // err := req.Send()
  6605. // if err == nil { // resp is now filled
  6606. // fmt.Println(resp)
  6607. // }
  6608. //
  6609. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot
  6610. func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) {
  6611. op := &request.Operation{
  6612. Name: opDeleteSnapshot,
  6613. HTTPMethod: "POST",
  6614. HTTPPath: "/",
  6615. }
  6616. if input == nil {
  6617. input = &DeleteSnapshotInput{}
  6618. }
  6619. output = &DeleteSnapshotOutput{}
  6620. req = c.newRequest(op, input, output)
  6621. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6622. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6623. return
  6624. }
  6625. // DeleteSnapshot API operation for Amazon Elastic Compute Cloud.
  6626. //
  6627. // Deletes the specified snapshot.
  6628. //
  6629. // When you make periodic snapshots of a volume, the snapshots are incremental,
  6630. // and only the blocks on the device that have changed since your last snapshot
  6631. // are saved in the new snapshot. When you delete a snapshot, only the data
  6632. // not needed for any other snapshot is removed. So regardless of which prior
  6633. // snapshots have been deleted, all active snapshots will have access to all
  6634. // the information needed to restore the volume.
  6635. //
  6636. // You cannot delete a snapshot of the root device of an EBS volume used by
  6637. // a registered AMI. You must first de-register the AMI before you can delete
  6638. // the snapshot.
  6639. //
  6640. // For more information, see Deleting an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html)
  6641. // in the Amazon Elastic Compute Cloud User Guide.
  6642. //
  6643. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6644. // with awserr.Error's Code and Message methods to get detailed information about
  6645. // the error.
  6646. //
  6647. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6648. // API operation DeleteSnapshot for usage and error information.
  6649. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshot
  6650. func (c *EC2) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) {
  6651. req, out := c.DeleteSnapshotRequest(input)
  6652. return out, req.Send()
  6653. }
  6654. // DeleteSnapshotWithContext is the same as DeleteSnapshot with the addition of
  6655. // the ability to pass a context and additional request options.
  6656. //
  6657. // See DeleteSnapshot for details on how to use this API operation.
  6658. //
  6659. // The context must be non-nil and will be used for request cancellation. If
  6660. // the context is nil a panic will occur. In the future the SDK may create
  6661. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6662. // for more information on using Contexts.
  6663. func (c *EC2) DeleteSnapshotWithContext(ctx aws.Context, input *DeleteSnapshotInput, opts ...request.Option) (*DeleteSnapshotOutput, error) {
  6664. req, out := c.DeleteSnapshotRequest(input)
  6665. req.SetContext(ctx)
  6666. req.ApplyOptions(opts...)
  6667. return out, req.Send()
  6668. }
  6669. const opDeleteSpotDatafeedSubscription = "DeleteSpotDatafeedSubscription"
  6670. // DeleteSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  6671. // client's request for the DeleteSpotDatafeedSubscription operation. The "output" return
  6672. // value will be populated with the request's response once the request complets
  6673. // successfuly.
  6674. //
  6675. // Use "Send" method on the returned Request to send the API call to the service.
  6676. // the "output" return value is not valid until after Send returns without error.
  6677. //
  6678. // See DeleteSpotDatafeedSubscription for more information on using the DeleteSpotDatafeedSubscription
  6679. // API call, and error handling.
  6680. //
  6681. // This method is useful when you want to inject custom logic or configuration
  6682. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6683. //
  6684. //
  6685. // // Example sending a request using the DeleteSpotDatafeedSubscriptionRequest method.
  6686. // req, resp := client.DeleteSpotDatafeedSubscriptionRequest(params)
  6687. //
  6688. // err := req.Send()
  6689. // if err == nil { // resp is now filled
  6690. // fmt.Println(resp)
  6691. // }
  6692. //
  6693. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription
  6694. func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSubscriptionInput) (req *request.Request, output *DeleteSpotDatafeedSubscriptionOutput) {
  6695. op := &request.Operation{
  6696. Name: opDeleteSpotDatafeedSubscription,
  6697. HTTPMethod: "POST",
  6698. HTTPPath: "/",
  6699. }
  6700. if input == nil {
  6701. input = &DeleteSpotDatafeedSubscriptionInput{}
  6702. }
  6703. output = &DeleteSpotDatafeedSubscriptionOutput{}
  6704. req = c.newRequest(op, input, output)
  6705. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6706. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6707. return
  6708. }
  6709. // DeleteSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  6710. //
  6711. // Deletes the data feed for Spot Instances.
  6712. //
  6713. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6714. // with awserr.Error's Code and Message methods to get detailed information about
  6715. // the error.
  6716. //
  6717. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6718. // API operation DeleteSpotDatafeedSubscription for usage and error information.
  6719. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscription
  6720. func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  6721. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  6722. return out, req.Send()
  6723. }
  6724. // DeleteSpotDatafeedSubscriptionWithContext is the same as DeleteSpotDatafeedSubscription with the addition of
  6725. // the ability to pass a context and additional request options.
  6726. //
  6727. // See DeleteSpotDatafeedSubscription for details on how to use this API operation.
  6728. //
  6729. // The context must be non-nil and will be used for request cancellation. If
  6730. // the context is nil a panic will occur. In the future the SDK may create
  6731. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6732. // for more information on using Contexts.
  6733. func (c *EC2) DeleteSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *DeleteSpotDatafeedSubscriptionInput, opts ...request.Option) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  6734. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  6735. req.SetContext(ctx)
  6736. req.ApplyOptions(opts...)
  6737. return out, req.Send()
  6738. }
  6739. const opDeleteSubnet = "DeleteSubnet"
  6740. // DeleteSubnetRequest generates a "aws/request.Request" representing the
  6741. // client's request for the DeleteSubnet operation. The "output" return
  6742. // value will be populated with the request's response once the request complets
  6743. // successfuly.
  6744. //
  6745. // Use "Send" method on the returned Request to send the API call to the service.
  6746. // the "output" return value is not valid until after Send returns without error.
  6747. //
  6748. // See DeleteSubnet for more information on using the DeleteSubnet
  6749. // API call, and error handling.
  6750. //
  6751. // This method is useful when you want to inject custom logic or configuration
  6752. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6753. //
  6754. //
  6755. // // Example sending a request using the DeleteSubnetRequest method.
  6756. // req, resp := client.DeleteSubnetRequest(params)
  6757. //
  6758. // err := req.Send()
  6759. // if err == nil { // resp is now filled
  6760. // fmt.Println(resp)
  6761. // }
  6762. //
  6763. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet
  6764. func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Request, output *DeleteSubnetOutput) {
  6765. op := &request.Operation{
  6766. Name: opDeleteSubnet,
  6767. HTTPMethod: "POST",
  6768. HTTPPath: "/",
  6769. }
  6770. if input == nil {
  6771. input = &DeleteSubnetInput{}
  6772. }
  6773. output = &DeleteSubnetOutput{}
  6774. req = c.newRequest(op, input, output)
  6775. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6776. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6777. return
  6778. }
  6779. // DeleteSubnet API operation for Amazon Elastic Compute Cloud.
  6780. //
  6781. // Deletes the specified subnet. You must terminate all running instances in
  6782. // the subnet before you can delete the subnet.
  6783. //
  6784. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6785. // with awserr.Error's Code and Message methods to get detailed information about
  6786. // the error.
  6787. //
  6788. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6789. // API operation DeleteSubnet for usage and error information.
  6790. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnet
  6791. func (c *EC2) DeleteSubnet(input *DeleteSubnetInput) (*DeleteSubnetOutput, error) {
  6792. req, out := c.DeleteSubnetRequest(input)
  6793. return out, req.Send()
  6794. }
  6795. // DeleteSubnetWithContext is the same as DeleteSubnet with the addition of
  6796. // the ability to pass a context and additional request options.
  6797. //
  6798. // See DeleteSubnet for details on how to use this API operation.
  6799. //
  6800. // The context must be non-nil and will be used for request cancellation. If
  6801. // the context is nil a panic will occur. In the future the SDK may create
  6802. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6803. // for more information on using Contexts.
  6804. func (c *EC2) DeleteSubnetWithContext(ctx aws.Context, input *DeleteSubnetInput, opts ...request.Option) (*DeleteSubnetOutput, error) {
  6805. req, out := c.DeleteSubnetRequest(input)
  6806. req.SetContext(ctx)
  6807. req.ApplyOptions(opts...)
  6808. return out, req.Send()
  6809. }
  6810. const opDeleteTags = "DeleteTags"
  6811. // DeleteTagsRequest generates a "aws/request.Request" representing the
  6812. // client's request for the DeleteTags operation. The "output" return
  6813. // value will be populated with the request's response once the request complets
  6814. // successfuly.
  6815. //
  6816. // Use "Send" method on the returned Request to send the API call to the service.
  6817. // the "output" return value is not valid until after Send returns without error.
  6818. //
  6819. // See DeleteTags for more information on using the DeleteTags
  6820. // API call, and error handling.
  6821. //
  6822. // This method is useful when you want to inject custom logic or configuration
  6823. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6824. //
  6825. //
  6826. // // Example sending a request using the DeleteTagsRequest method.
  6827. // req, resp := client.DeleteTagsRequest(params)
  6828. //
  6829. // err := req.Send()
  6830. // if err == nil { // resp is now filled
  6831. // fmt.Println(resp)
  6832. // }
  6833. //
  6834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags
  6835. func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  6836. op := &request.Operation{
  6837. Name: opDeleteTags,
  6838. HTTPMethod: "POST",
  6839. HTTPPath: "/",
  6840. }
  6841. if input == nil {
  6842. input = &DeleteTagsInput{}
  6843. }
  6844. output = &DeleteTagsOutput{}
  6845. req = c.newRequest(op, input, output)
  6846. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6847. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6848. return
  6849. }
  6850. // DeleteTags API operation for Amazon Elastic Compute Cloud.
  6851. //
  6852. // Deletes the specified set of tags from the specified set of resources.
  6853. //
  6854. // To list the current tags, use DescribeTags. For more information about tags,
  6855. // see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  6856. // in the Amazon Elastic Compute Cloud User Guide.
  6857. //
  6858. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6859. // with awserr.Error's Code and Message methods to get detailed information about
  6860. // the error.
  6861. //
  6862. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6863. // API operation DeleteTags for usage and error information.
  6864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTags
  6865. func (c *EC2) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  6866. req, out := c.DeleteTagsRequest(input)
  6867. return out, req.Send()
  6868. }
  6869. // DeleteTagsWithContext is the same as DeleteTags with the addition of
  6870. // the ability to pass a context and additional request options.
  6871. //
  6872. // See DeleteTags for details on how to use this API operation.
  6873. //
  6874. // The context must be non-nil and will be used for request cancellation. If
  6875. // the context is nil a panic will occur. In the future the SDK may create
  6876. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6877. // for more information on using Contexts.
  6878. func (c *EC2) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
  6879. req, out := c.DeleteTagsRequest(input)
  6880. req.SetContext(ctx)
  6881. req.ApplyOptions(opts...)
  6882. return out, req.Send()
  6883. }
  6884. const opDeleteVolume = "DeleteVolume"
  6885. // DeleteVolumeRequest generates a "aws/request.Request" representing the
  6886. // client's request for the DeleteVolume operation. The "output" return
  6887. // value will be populated with the request's response once the request complets
  6888. // successfuly.
  6889. //
  6890. // Use "Send" method on the returned Request to send the API call to the service.
  6891. // the "output" return value is not valid until after Send returns without error.
  6892. //
  6893. // See DeleteVolume for more information on using the DeleteVolume
  6894. // API call, and error handling.
  6895. //
  6896. // This method is useful when you want to inject custom logic or configuration
  6897. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6898. //
  6899. //
  6900. // // Example sending a request using the DeleteVolumeRequest method.
  6901. // req, resp := client.DeleteVolumeRequest(params)
  6902. //
  6903. // err := req.Send()
  6904. // if err == nil { // resp is now filled
  6905. // fmt.Println(resp)
  6906. // }
  6907. //
  6908. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume
  6909. func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) {
  6910. op := &request.Operation{
  6911. Name: opDeleteVolume,
  6912. HTTPMethod: "POST",
  6913. HTTPPath: "/",
  6914. }
  6915. if input == nil {
  6916. input = &DeleteVolumeInput{}
  6917. }
  6918. output = &DeleteVolumeOutput{}
  6919. req = c.newRequest(op, input, output)
  6920. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6921. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6922. return
  6923. }
  6924. // DeleteVolume API operation for Amazon Elastic Compute Cloud.
  6925. //
  6926. // Deletes the specified EBS volume. The volume must be in the available state
  6927. // (not attached to an instance).
  6928. //
  6929. // The volume may remain in the deleting state for several minutes.
  6930. //
  6931. // For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html)
  6932. // in the Amazon Elastic Compute Cloud User Guide.
  6933. //
  6934. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6935. // with awserr.Error's Code and Message methods to get detailed information about
  6936. // the error.
  6937. //
  6938. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  6939. // API operation DeleteVolume for usage and error information.
  6940. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolume
  6941. func (c *EC2) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) {
  6942. req, out := c.DeleteVolumeRequest(input)
  6943. return out, req.Send()
  6944. }
  6945. // DeleteVolumeWithContext is the same as DeleteVolume with the addition of
  6946. // the ability to pass a context and additional request options.
  6947. //
  6948. // See DeleteVolume for details on how to use this API operation.
  6949. //
  6950. // The context must be non-nil and will be used for request cancellation. If
  6951. // the context is nil a panic will occur. In the future the SDK may create
  6952. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6953. // for more information on using Contexts.
  6954. func (c *EC2) DeleteVolumeWithContext(ctx aws.Context, input *DeleteVolumeInput, opts ...request.Option) (*DeleteVolumeOutput, error) {
  6955. req, out := c.DeleteVolumeRequest(input)
  6956. req.SetContext(ctx)
  6957. req.ApplyOptions(opts...)
  6958. return out, req.Send()
  6959. }
  6960. const opDeleteVpc = "DeleteVpc"
  6961. // DeleteVpcRequest generates a "aws/request.Request" representing the
  6962. // client's request for the DeleteVpc operation. The "output" return
  6963. // value will be populated with the request's response once the request complets
  6964. // successfuly.
  6965. //
  6966. // Use "Send" method on the returned Request to send the API call to the service.
  6967. // the "output" return value is not valid until after Send returns without error.
  6968. //
  6969. // See DeleteVpc for more information on using the DeleteVpc
  6970. // API call, and error handling.
  6971. //
  6972. // This method is useful when you want to inject custom logic or configuration
  6973. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6974. //
  6975. //
  6976. // // Example sending a request using the DeleteVpcRequest method.
  6977. // req, resp := client.DeleteVpcRequest(params)
  6978. //
  6979. // err := req.Send()
  6980. // if err == nil { // resp is now filled
  6981. // fmt.Println(resp)
  6982. // }
  6983. //
  6984. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc
  6985. func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, output *DeleteVpcOutput) {
  6986. op := &request.Operation{
  6987. Name: opDeleteVpc,
  6988. HTTPMethod: "POST",
  6989. HTTPPath: "/",
  6990. }
  6991. if input == nil {
  6992. input = &DeleteVpcInput{}
  6993. }
  6994. output = &DeleteVpcOutput{}
  6995. req = c.newRequest(op, input, output)
  6996. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  6997. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  6998. return
  6999. }
  7000. // DeleteVpc API operation for Amazon Elastic Compute Cloud.
  7001. //
  7002. // Deletes the specified VPC. You must detach or delete all gateways and resources
  7003. // that are associated with the VPC before you can delete it. For example, you
  7004. // must terminate all instances running in the VPC, delete all security groups
  7005. // associated with the VPC (except the default one), delete all route tables
  7006. // associated with the VPC (except the default one), and so on.
  7007. //
  7008. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7009. // with awserr.Error's Code and Message methods to get detailed information about
  7010. // the error.
  7011. //
  7012. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7013. // API operation DeleteVpc for usage and error information.
  7014. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpc
  7015. func (c *EC2) DeleteVpc(input *DeleteVpcInput) (*DeleteVpcOutput, error) {
  7016. req, out := c.DeleteVpcRequest(input)
  7017. return out, req.Send()
  7018. }
  7019. // DeleteVpcWithContext is the same as DeleteVpc with the addition of
  7020. // the ability to pass a context and additional request options.
  7021. //
  7022. // See DeleteVpc for details on how to use this API operation.
  7023. //
  7024. // The context must be non-nil and will be used for request cancellation. If
  7025. // the context is nil a panic will occur. In the future the SDK may create
  7026. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7027. // for more information on using Contexts.
  7028. func (c *EC2) DeleteVpcWithContext(ctx aws.Context, input *DeleteVpcInput, opts ...request.Option) (*DeleteVpcOutput, error) {
  7029. req, out := c.DeleteVpcRequest(input)
  7030. req.SetContext(ctx)
  7031. req.ApplyOptions(opts...)
  7032. return out, req.Send()
  7033. }
  7034. const opDeleteVpcEndpointConnectionNotifications = "DeleteVpcEndpointConnectionNotifications"
  7035. // DeleteVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the
  7036. // client's request for the DeleteVpcEndpointConnectionNotifications operation. The "output" return
  7037. // value will be populated with the request's response once the request complets
  7038. // successfuly.
  7039. //
  7040. // Use "Send" method on the returned Request to send the API call to the service.
  7041. // the "output" return value is not valid until after Send returns without error.
  7042. //
  7043. // See DeleteVpcEndpointConnectionNotifications for more information on using the DeleteVpcEndpointConnectionNotifications
  7044. // API call, and error handling.
  7045. //
  7046. // This method is useful when you want to inject custom logic or configuration
  7047. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7048. //
  7049. //
  7050. // // Example sending a request using the DeleteVpcEndpointConnectionNotificationsRequest method.
  7051. // req, resp := client.DeleteVpcEndpointConnectionNotificationsRequest(params)
  7052. //
  7053. // err := req.Send()
  7054. // if err == nil { // resp is now filled
  7055. // fmt.Println(resp)
  7056. // }
  7057. //
  7058. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications
  7059. func (c *EC2) DeleteVpcEndpointConnectionNotificationsRequest(input *DeleteVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DeleteVpcEndpointConnectionNotificationsOutput) {
  7060. op := &request.Operation{
  7061. Name: opDeleteVpcEndpointConnectionNotifications,
  7062. HTTPMethod: "POST",
  7063. HTTPPath: "/",
  7064. }
  7065. if input == nil {
  7066. input = &DeleteVpcEndpointConnectionNotificationsInput{}
  7067. }
  7068. output = &DeleteVpcEndpointConnectionNotificationsOutput{}
  7069. req = c.newRequest(op, input, output)
  7070. return
  7071. }
  7072. // DeleteVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud.
  7073. //
  7074. // Deletes one or more VPC endpoint connection notifications.
  7075. //
  7076. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7077. // with awserr.Error's Code and Message methods to get detailed information about
  7078. // the error.
  7079. //
  7080. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7081. // API operation DeleteVpcEndpointConnectionNotifications for usage and error information.
  7082. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotifications
  7083. func (c *EC2) DeleteVpcEndpointConnectionNotifications(input *DeleteVpcEndpointConnectionNotificationsInput) (*DeleteVpcEndpointConnectionNotificationsOutput, error) {
  7084. req, out := c.DeleteVpcEndpointConnectionNotificationsRequest(input)
  7085. return out, req.Send()
  7086. }
  7087. // DeleteVpcEndpointConnectionNotificationsWithContext is the same as DeleteVpcEndpointConnectionNotifications with the addition of
  7088. // the ability to pass a context and additional request options.
  7089. //
  7090. // See DeleteVpcEndpointConnectionNotifications for details on how to use this API operation.
  7091. //
  7092. // The context must be non-nil and will be used for request cancellation. If
  7093. // the context is nil a panic will occur. In the future the SDK may create
  7094. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7095. // for more information on using Contexts.
  7096. func (c *EC2) DeleteVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DeleteVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DeleteVpcEndpointConnectionNotificationsOutput, error) {
  7097. req, out := c.DeleteVpcEndpointConnectionNotificationsRequest(input)
  7098. req.SetContext(ctx)
  7099. req.ApplyOptions(opts...)
  7100. return out, req.Send()
  7101. }
  7102. const opDeleteVpcEndpointServiceConfigurations = "DeleteVpcEndpointServiceConfigurations"
  7103. // DeleteVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the
  7104. // client's request for the DeleteVpcEndpointServiceConfigurations operation. The "output" return
  7105. // value will be populated with the request's response once the request complets
  7106. // successfuly.
  7107. //
  7108. // Use "Send" method on the returned Request to send the API call to the service.
  7109. // the "output" return value is not valid until after Send returns without error.
  7110. //
  7111. // See DeleteVpcEndpointServiceConfigurations for more information on using the DeleteVpcEndpointServiceConfigurations
  7112. // API call, and error handling.
  7113. //
  7114. // This method is useful when you want to inject custom logic or configuration
  7115. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7116. //
  7117. //
  7118. // // Example sending a request using the DeleteVpcEndpointServiceConfigurationsRequest method.
  7119. // req, resp := client.DeleteVpcEndpointServiceConfigurationsRequest(params)
  7120. //
  7121. // err := req.Send()
  7122. // if err == nil { // resp is now filled
  7123. // fmt.Println(resp)
  7124. // }
  7125. //
  7126. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations
  7127. func (c *EC2) DeleteVpcEndpointServiceConfigurationsRequest(input *DeleteVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DeleteVpcEndpointServiceConfigurationsOutput) {
  7128. op := &request.Operation{
  7129. Name: opDeleteVpcEndpointServiceConfigurations,
  7130. HTTPMethod: "POST",
  7131. HTTPPath: "/",
  7132. }
  7133. if input == nil {
  7134. input = &DeleteVpcEndpointServiceConfigurationsInput{}
  7135. }
  7136. output = &DeleteVpcEndpointServiceConfigurationsOutput{}
  7137. req = c.newRequest(op, input, output)
  7138. return
  7139. }
  7140. // DeleteVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud.
  7141. //
  7142. // Deletes one or more VPC endpoint service configurations in your account.
  7143. // Before you delete the endpoint service configuration, you must reject any
  7144. // Available or PendingAcceptance interface endpoint connections that are attached
  7145. // to the service.
  7146. //
  7147. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7148. // with awserr.Error's Code and Message methods to get detailed information about
  7149. // the error.
  7150. //
  7151. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7152. // API operation DeleteVpcEndpointServiceConfigurations for usage and error information.
  7153. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurations
  7154. func (c *EC2) DeleteVpcEndpointServiceConfigurations(input *DeleteVpcEndpointServiceConfigurationsInput) (*DeleteVpcEndpointServiceConfigurationsOutput, error) {
  7155. req, out := c.DeleteVpcEndpointServiceConfigurationsRequest(input)
  7156. return out, req.Send()
  7157. }
  7158. // DeleteVpcEndpointServiceConfigurationsWithContext is the same as DeleteVpcEndpointServiceConfigurations with the addition of
  7159. // the ability to pass a context and additional request options.
  7160. //
  7161. // See DeleteVpcEndpointServiceConfigurations for details on how to use this API operation.
  7162. //
  7163. // The context must be non-nil and will be used for request cancellation. If
  7164. // the context is nil a panic will occur. In the future the SDK may create
  7165. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7166. // for more information on using Contexts.
  7167. func (c *EC2) DeleteVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DeleteVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DeleteVpcEndpointServiceConfigurationsOutput, error) {
  7168. req, out := c.DeleteVpcEndpointServiceConfigurationsRequest(input)
  7169. req.SetContext(ctx)
  7170. req.ApplyOptions(opts...)
  7171. return out, req.Send()
  7172. }
  7173. const opDeleteVpcEndpoints = "DeleteVpcEndpoints"
  7174. // DeleteVpcEndpointsRequest generates a "aws/request.Request" representing the
  7175. // client's request for the DeleteVpcEndpoints operation. The "output" return
  7176. // value will be populated with the request's response once the request complets
  7177. // successfuly.
  7178. //
  7179. // Use "Send" method on the returned Request to send the API call to the service.
  7180. // the "output" return value is not valid until after Send returns without error.
  7181. //
  7182. // See DeleteVpcEndpoints for more information on using the DeleteVpcEndpoints
  7183. // API call, and error handling.
  7184. //
  7185. // This method is useful when you want to inject custom logic or configuration
  7186. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7187. //
  7188. //
  7189. // // Example sending a request using the DeleteVpcEndpointsRequest method.
  7190. // req, resp := client.DeleteVpcEndpointsRequest(params)
  7191. //
  7192. // err := req.Send()
  7193. // if err == nil { // resp is now filled
  7194. // fmt.Println(resp)
  7195. // }
  7196. //
  7197. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints
  7198. func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *request.Request, output *DeleteVpcEndpointsOutput) {
  7199. op := &request.Operation{
  7200. Name: opDeleteVpcEndpoints,
  7201. HTTPMethod: "POST",
  7202. HTTPPath: "/",
  7203. }
  7204. if input == nil {
  7205. input = &DeleteVpcEndpointsInput{}
  7206. }
  7207. output = &DeleteVpcEndpointsOutput{}
  7208. req = c.newRequest(op, input, output)
  7209. return
  7210. }
  7211. // DeleteVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  7212. //
  7213. // Deletes one or more specified VPC endpoints. Deleting a gateway endpoint
  7214. // also deletes the endpoint routes in the route tables that were associated
  7215. // with the endpoint. Deleting an interface endpoint deletes the endpoint network
  7216. // interfaces.
  7217. //
  7218. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7219. // with awserr.Error's Code and Message methods to get detailed information about
  7220. // the error.
  7221. //
  7222. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7223. // API operation DeleteVpcEndpoints for usage and error information.
  7224. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpoints
  7225. func (c *EC2) DeleteVpcEndpoints(input *DeleteVpcEndpointsInput) (*DeleteVpcEndpointsOutput, error) {
  7226. req, out := c.DeleteVpcEndpointsRequest(input)
  7227. return out, req.Send()
  7228. }
  7229. // DeleteVpcEndpointsWithContext is the same as DeleteVpcEndpoints with the addition of
  7230. // the ability to pass a context and additional request options.
  7231. //
  7232. // See DeleteVpcEndpoints for details on how to use this API operation.
  7233. //
  7234. // The context must be non-nil and will be used for request cancellation. If
  7235. // the context is nil a panic will occur. In the future the SDK may create
  7236. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7237. // for more information on using Contexts.
  7238. func (c *EC2) DeleteVpcEndpointsWithContext(ctx aws.Context, input *DeleteVpcEndpointsInput, opts ...request.Option) (*DeleteVpcEndpointsOutput, error) {
  7239. req, out := c.DeleteVpcEndpointsRequest(input)
  7240. req.SetContext(ctx)
  7241. req.ApplyOptions(opts...)
  7242. return out, req.Send()
  7243. }
  7244. const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection"
  7245. // DeleteVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  7246. // client's request for the DeleteVpcPeeringConnection operation. The "output" return
  7247. // value will be populated with the request's response once the request complets
  7248. // successfuly.
  7249. //
  7250. // Use "Send" method on the returned Request to send the API call to the service.
  7251. // the "output" return value is not valid until after Send returns without error.
  7252. //
  7253. // See DeleteVpcPeeringConnection for more information on using the DeleteVpcPeeringConnection
  7254. // API call, and error handling.
  7255. //
  7256. // This method is useful when you want to inject custom logic or configuration
  7257. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7258. //
  7259. //
  7260. // // Example sending a request using the DeleteVpcPeeringConnectionRequest method.
  7261. // req, resp := client.DeleteVpcPeeringConnectionRequest(params)
  7262. //
  7263. // err := req.Send()
  7264. // if err == nil { // resp is now filled
  7265. // fmt.Println(resp)
  7266. // }
  7267. //
  7268. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection
  7269. func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectionInput) (req *request.Request, output *DeleteVpcPeeringConnectionOutput) {
  7270. op := &request.Operation{
  7271. Name: opDeleteVpcPeeringConnection,
  7272. HTTPMethod: "POST",
  7273. HTTPPath: "/",
  7274. }
  7275. if input == nil {
  7276. input = &DeleteVpcPeeringConnectionInput{}
  7277. }
  7278. output = &DeleteVpcPeeringConnectionOutput{}
  7279. req = c.newRequest(op, input, output)
  7280. return
  7281. }
  7282. // DeleteVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  7283. //
  7284. // Deletes a VPC peering connection. Either the owner of the requester VPC or
  7285. // the owner of the accepter VPC can delete the VPC peering connection if it's
  7286. // in the active state. The owner of the requester VPC can delete a VPC peering
  7287. // connection in the pending-acceptance state.
  7288. //
  7289. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7290. // with awserr.Error's Code and Message methods to get detailed information about
  7291. // the error.
  7292. //
  7293. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7294. // API operation DeleteVpcPeeringConnection for usage and error information.
  7295. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnection
  7296. func (c *EC2) DeleteVpcPeeringConnection(input *DeleteVpcPeeringConnectionInput) (*DeleteVpcPeeringConnectionOutput, error) {
  7297. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  7298. return out, req.Send()
  7299. }
  7300. // DeleteVpcPeeringConnectionWithContext is the same as DeleteVpcPeeringConnection with the addition of
  7301. // the ability to pass a context and additional request options.
  7302. //
  7303. // See DeleteVpcPeeringConnection for details on how to use this API operation.
  7304. //
  7305. // The context must be non-nil and will be used for request cancellation. If
  7306. // the context is nil a panic will occur. In the future the SDK may create
  7307. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7308. // for more information on using Contexts.
  7309. func (c *EC2) DeleteVpcPeeringConnectionWithContext(ctx aws.Context, input *DeleteVpcPeeringConnectionInput, opts ...request.Option) (*DeleteVpcPeeringConnectionOutput, error) {
  7310. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  7311. req.SetContext(ctx)
  7312. req.ApplyOptions(opts...)
  7313. return out, req.Send()
  7314. }
  7315. const opDeleteVpnConnection = "DeleteVpnConnection"
  7316. // DeleteVpnConnectionRequest generates a "aws/request.Request" representing the
  7317. // client's request for the DeleteVpnConnection operation. The "output" return
  7318. // value will be populated with the request's response once the request complets
  7319. // successfuly.
  7320. //
  7321. // Use "Send" method on the returned Request to send the API call to the service.
  7322. // the "output" return value is not valid until after Send returns without error.
  7323. //
  7324. // See DeleteVpnConnection for more information on using the DeleteVpnConnection
  7325. // API call, and error handling.
  7326. //
  7327. // This method is useful when you want to inject custom logic or configuration
  7328. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7329. //
  7330. //
  7331. // // Example sending a request using the DeleteVpnConnectionRequest method.
  7332. // req, resp := client.DeleteVpnConnectionRequest(params)
  7333. //
  7334. // err := req.Send()
  7335. // if err == nil { // resp is now filled
  7336. // fmt.Println(resp)
  7337. // }
  7338. //
  7339. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection
  7340. func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req *request.Request, output *DeleteVpnConnectionOutput) {
  7341. op := &request.Operation{
  7342. Name: opDeleteVpnConnection,
  7343. HTTPMethod: "POST",
  7344. HTTPPath: "/",
  7345. }
  7346. if input == nil {
  7347. input = &DeleteVpnConnectionInput{}
  7348. }
  7349. output = &DeleteVpnConnectionOutput{}
  7350. req = c.newRequest(op, input, output)
  7351. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7352. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7353. return
  7354. }
  7355. // DeleteVpnConnection API operation for Amazon Elastic Compute Cloud.
  7356. //
  7357. // Deletes the specified VPN connection.
  7358. //
  7359. // If you're deleting the VPC and its associated components, we recommend that
  7360. // you detach the virtual private gateway from the VPC and delete the VPC before
  7361. // deleting the VPN connection. If you believe that the tunnel credentials for
  7362. // your VPN connection have been compromised, you can delete the VPN connection
  7363. // and create a new one that has new keys, without needing to delete the VPC
  7364. // or virtual private gateway. If you create a new VPN connection, you must
  7365. // reconfigure the customer gateway using the new configuration information
  7366. // returned with the new VPN connection ID.
  7367. //
  7368. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7369. // with awserr.Error's Code and Message methods to get detailed information about
  7370. // the error.
  7371. //
  7372. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7373. // API operation DeleteVpnConnection for usage and error information.
  7374. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnection
  7375. func (c *EC2) DeleteVpnConnection(input *DeleteVpnConnectionInput) (*DeleteVpnConnectionOutput, error) {
  7376. req, out := c.DeleteVpnConnectionRequest(input)
  7377. return out, req.Send()
  7378. }
  7379. // DeleteVpnConnectionWithContext is the same as DeleteVpnConnection with the addition of
  7380. // the ability to pass a context and additional request options.
  7381. //
  7382. // See DeleteVpnConnection for details on how to use this API operation.
  7383. //
  7384. // The context must be non-nil and will be used for request cancellation. If
  7385. // the context is nil a panic will occur. In the future the SDK may create
  7386. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7387. // for more information on using Contexts.
  7388. func (c *EC2) DeleteVpnConnectionWithContext(ctx aws.Context, input *DeleteVpnConnectionInput, opts ...request.Option) (*DeleteVpnConnectionOutput, error) {
  7389. req, out := c.DeleteVpnConnectionRequest(input)
  7390. req.SetContext(ctx)
  7391. req.ApplyOptions(opts...)
  7392. return out, req.Send()
  7393. }
  7394. const opDeleteVpnConnectionRoute = "DeleteVpnConnectionRoute"
  7395. // DeleteVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  7396. // client's request for the DeleteVpnConnectionRoute operation. The "output" return
  7397. // value will be populated with the request's response once the request complets
  7398. // successfuly.
  7399. //
  7400. // Use "Send" method on the returned Request to send the API call to the service.
  7401. // the "output" return value is not valid until after Send returns without error.
  7402. //
  7403. // See DeleteVpnConnectionRoute for more information on using the DeleteVpnConnectionRoute
  7404. // API call, and error handling.
  7405. //
  7406. // This method is useful when you want to inject custom logic or configuration
  7407. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7408. //
  7409. //
  7410. // // Example sending a request using the DeleteVpnConnectionRouteRequest method.
  7411. // req, resp := client.DeleteVpnConnectionRouteRequest(params)
  7412. //
  7413. // err := req.Send()
  7414. // if err == nil { // resp is now filled
  7415. // fmt.Println(resp)
  7416. // }
  7417. //
  7418. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute
  7419. func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInput) (req *request.Request, output *DeleteVpnConnectionRouteOutput) {
  7420. op := &request.Operation{
  7421. Name: opDeleteVpnConnectionRoute,
  7422. HTTPMethod: "POST",
  7423. HTTPPath: "/",
  7424. }
  7425. if input == nil {
  7426. input = &DeleteVpnConnectionRouteInput{}
  7427. }
  7428. output = &DeleteVpnConnectionRouteOutput{}
  7429. req = c.newRequest(op, input, output)
  7430. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7431. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7432. return
  7433. }
  7434. // DeleteVpnConnectionRoute API operation for Amazon Elastic Compute Cloud.
  7435. //
  7436. // Deletes the specified static route associated with a VPN connection between
  7437. // an existing virtual private gateway and a VPN customer gateway. The static
  7438. // route allows traffic to be routed from the virtual private gateway to the
  7439. // VPN customer gateway.
  7440. //
  7441. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7442. // with awserr.Error's Code and Message methods to get detailed information about
  7443. // the error.
  7444. //
  7445. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7446. // API operation DeleteVpnConnectionRoute for usage and error information.
  7447. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRoute
  7448. func (c *EC2) DeleteVpnConnectionRoute(input *DeleteVpnConnectionRouteInput) (*DeleteVpnConnectionRouteOutput, error) {
  7449. req, out := c.DeleteVpnConnectionRouteRequest(input)
  7450. return out, req.Send()
  7451. }
  7452. // DeleteVpnConnectionRouteWithContext is the same as DeleteVpnConnectionRoute with the addition of
  7453. // the ability to pass a context and additional request options.
  7454. //
  7455. // See DeleteVpnConnectionRoute for details on how to use this API operation.
  7456. //
  7457. // The context must be non-nil and will be used for request cancellation. If
  7458. // the context is nil a panic will occur. In the future the SDK may create
  7459. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7460. // for more information on using Contexts.
  7461. func (c *EC2) DeleteVpnConnectionRouteWithContext(ctx aws.Context, input *DeleteVpnConnectionRouteInput, opts ...request.Option) (*DeleteVpnConnectionRouteOutput, error) {
  7462. req, out := c.DeleteVpnConnectionRouteRequest(input)
  7463. req.SetContext(ctx)
  7464. req.ApplyOptions(opts...)
  7465. return out, req.Send()
  7466. }
  7467. const opDeleteVpnGateway = "DeleteVpnGateway"
  7468. // DeleteVpnGatewayRequest generates a "aws/request.Request" representing the
  7469. // client's request for the DeleteVpnGateway operation. The "output" return
  7470. // value will be populated with the request's response once the request complets
  7471. // successfuly.
  7472. //
  7473. // Use "Send" method on the returned Request to send the API call to the service.
  7474. // the "output" return value is not valid until after Send returns without error.
  7475. //
  7476. // See DeleteVpnGateway for more information on using the DeleteVpnGateway
  7477. // API call, and error handling.
  7478. //
  7479. // This method is useful when you want to inject custom logic or configuration
  7480. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7481. //
  7482. //
  7483. // // Example sending a request using the DeleteVpnGatewayRequest method.
  7484. // req, resp := client.DeleteVpnGatewayRequest(params)
  7485. //
  7486. // err := req.Send()
  7487. // if err == nil { // resp is now filled
  7488. // fmt.Println(resp)
  7489. // }
  7490. //
  7491. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway
  7492. func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *request.Request, output *DeleteVpnGatewayOutput) {
  7493. op := &request.Operation{
  7494. Name: opDeleteVpnGateway,
  7495. HTTPMethod: "POST",
  7496. HTTPPath: "/",
  7497. }
  7498. if input == nil {
  7499. input = &DeleteVpnGatewayInput{}
  7500. }
  7501. output = &DeleteVpnGatewayOutput{}
  7502. req = c.newRequest(op, input, output)
  7503. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7504. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7505. return
  7506. }
  7507. // DeleteVpnGateway API operation for Amazon Elastic Compute Cloud.
  7508. //
  7509. // Deletes the specified virtual private gateway. We recommend that before you
  7510. // delete a virtual private gateway, you detach it from the VPC and delete the
  7511. // VPN connection. Note that you don't need to delete the virtual private gateway
  7512. // if you plan to delete and recreate the VPN connection between your VPC and
  7513. // your network.
  7514. //
  7515. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7516. // with awserr.Error's Code and Message methods to get detailed information about
  7517. // the error.
  7518. //
  7519. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7520. // API operation DeleteVpnGateway for usage and error information.
  7521. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGateway
  7522. func (c *EC2) DeleteVpnGateway(input *DeleteVpnGatewayInput) (*DeleteVpnGatewayOutput, error) {
  7523. req, out := c.DeleteVpnGatewayRequest(input)
  7524. return out, req.Send()
  7525. }
  7526. // DeleteVpnGatewayWithContext is the same as DeleteVpnGateway with the addition of
  7527. // the ability to pass a context and additional request options.
  7528. //
  7529. // See DeleteVpnGateway for details on how to use this API operation.
  7530. //
  7531. // The context must be non-nil and will be used for request cancellation. If
  7532. // the context is nil a panic will occur. In the future the SDK may create
  7533. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7534. // for more information on using Contexts.
  7535. func (c *EC2) DeleteVpnGatewayWithContext(ctx aws.Context, input *DeleteVpnGatewayInput, opts ...request.Option) (*DeleteVpnGatewayOutput, error) {
  7536. req, out := c.DeleteVpnGatewayRequest(input)
  7537. req.SetContext(ctx)
  7538. req.ApplyOptions(opts...)
  7539. return out, req.Send()
  7540. }
  7541. const opDeregisterImage = "DeregisterImage"
  7542. // DeregisterImageRequest generates a "aws/request.Request" representing the
  7543. // client's request for the DeregisterImage operation. The "output" return
  7544. // value will be populated with the request's response once the request complets
  7545. // successfuly.
  7546. //
  7547. // Use "Send" method on the returned Request to send the API call to the service.
  7548. // the "output" return value is not valid until after Send returns without error.
  7549. //
  7550. // See DeregisterImage for more information on using the DeregisterImage
  7551. // API call, and error handling.
  7552. //
  7553. // This method is useful when you want to inject custom logic or configuration
  7554. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7555. //
  7556. //
  7557. // // Example sending a request using the DeregisterImageRequest method.
  7558. // req, resp := client.DeregisterImageRequest(params)
  7559. //
  7560. // err := req.Send()
  7561. // if err == nil { // resp is now filled
  7562. // fmt.Println(resp)
  7563. // }
  7564. //
  7565. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage
  7566. func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request.Request, output *DeregisterImageOutput) {
  7567. op := &request.Operation{
  7568. Name: opDeregisterImage,
  7569. HTTPMethod: "POST",
  7570. HTTPPath: "/",
  7571. }
  7572. if input == nil {
  7573. input = &DeregisterImageInput{}
  7574. }
  7575. output = &DeregisterImageOutput{}
  7576. req = c.newRequest(op, input, output)
  7577. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7578. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7579. return
  7580. }
  7581. // DeregisterImage API operation for Amazon Elastic Compute Cloud.
  7582. //
  7583. // Deregisters the specified AMI. After you deregister an AMI, it can't be used
  7584. // to launch new instances; however, it doesn't affect any instances that you've
  7585. // already launched from the AMI. You'll continue to incur usage costs for those
  7586. // instances until you terminate them.
  7587. //
  7588. // When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot
  7589. // that was created for the root volume of the instance during the AMI creation
  7590. // process. When you deregister an instance store-backed AMI, it doesn't affect
  7591. // the files that you uploaded to Amazon S3 when you created the AMI.
  7592. //
  7593. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7594. // with awserr.Error's Code and Message methods to get detailed information about
  7595. // the error.
  7596. //
  7597. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7598. // API operation DeregisterImage for usage and error information.
  7599. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImage
  7600. func (c *EC2) DeregisterImage(input *DeregisterImageInput) (*DeregisterImageOutput, error) {
  7601. req, out := c.DeregisterImageRequest(input)
  7602. return out, req.Send()
  7603. }
  7604. // DeregisterImageWithContext is the same as DeregisterImage with the addition of
  7605. // the ability to pass a context and additional request options.
  7606. //
  7607. // See DeregisterImage for details on how to use this API operation.
  7608. //
  7609. // The context must be non-nil and will be used for request cancellation. If
  7610. // the context is nil a panic will occur. In the future the SDK may create
  7611. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7612. // for more information on using Contexts.
  7613. func (c *EC2) DeregisterImageWithContext(ctx aws.Context, input *DeregisterImageInput, opts ...request.Option) (*DeregisterImageOutput, error) {
  7614. req, out := c.DeregisterImageRequest(input)
  7615. req.SetContext(ctx)
  7616. req.ApplyOptions(opts...)
  7617. return out, req.Send()
  7618. }
  7619. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  7620. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  7621. // client's request for the DescribeAccountAttributes operation. The "output" return
  7622. // value will be populated with the request's response once the request complets
  7623. // successfuly.
  7624. //
  7625. // Use "Send" method on the returned Request to send the API call to the service.
  7626. // the "output" return value is not valid until after Send returns without error.
  7627. //
  7628. // See DescribeAccountAttributes for more information on using the DescribeAccountAttributes
  7629. // API call, and error handling.
  7630. //
  7631. // This method is useful when you want to inject custom logic or configuration
  7632. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7633. //
  7634. //
  7635. // // Example sending a request using the DescribeAccountAttributesRequest method.
  7636. // req, resp := client.DescribeAccountAttributesRequest(params)
  7637. //
  7638. // err := req.Send()
  7639. // if err == nil { // resp is now filled
  7640. // fmt.Println(resp)
  7641. // }
  7642. //
  7643. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes
  7644. func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  7645. op := &request.Operation{
  7646. Name: opDescribeAccountAttributes,
  7647. HTTPMethod: "POST",
  7648. HTTPPath: "/",
  7649. }
  7650. if input == nil {
  7651. input = &DescribeAccountAttributesInput{}
  7652. }
  7653. output = &DescribeAccountAttributesOutput{}
  7654. req = c.newRequest(op, input, output)
  7655. return
  7656. }
  7657. // DescribeAccountAttributes API operation for Amazon Elastic Compute Cloud.
  7658. //
  7659. // Describes attributes of your AWS account. The following are the supported
  7660. // account attributes:
  7661. //
  7662. // * supported-platforms: Indicates whether your account can launch instances
  7663. // into EC2-Classic and EC2-VPC, or only into EC2-VPC.
  7664. //
  7665. // * default-vpc: The ID of the default VPC for your account, or none.
  7666. //
  7667. // * max-instances: The maximum number of On-Demand instances that you can
  7668. // run.
  7669. //
  7670. // * vpc-max-security-groups-per-interface: The maximum number of security
  7671. // groups that you can assign to a network interface.
  7672. //
  7673. // * max-elastic-ips: The maximum number of Elastic IP addresses that you
  7674. // can allocate for use with EC2-Classic.
  7675. //
  7676. // * vpc-max-elastic-ips: The maximum number of Elastic IP addresses that
  7677. // you can allocate for use with EC2-VPC.
  7678. //
  7679. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7680. // with awserr.Error's Code and Message methods to get detailed information about
  7681. // the error.
  7682. //
  7683. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7684. // API operation DescribeAccountAttributes for usage and error information.
  7685. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes
  7686. func (c *EC2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  7687. req, out := c.DescribeAccountAttributesRequest(input)
  7688. return out, req.Send()
  7689. }
  7690. // DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of
  7691. // the ability to pass a context and additional request options.
  7692. //
  7693. // See DescribeAccountAttributes for details on how to use this API operation.
  7694. //
  7695. // The context must be non-nil and will be used for request cancellation. If
  7696. // the context is nil a panic will occur. In the future the SDK may create
  7697. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7698. // for more information on using Contexts.
  7699. func (c *EC2) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error) {
  7700. req, out := c.DescribeAccountAttributesRequest(input)
  7701. req.SetContext(ctx)
  7702. req.ApplyOptions(opts...)
  7703. return out, req.Send()
  7704. }
  7705. const opDescribeAddresses = "DescribeAddresses"
  7706. // DescribeAddressesRequest generates a "aws/request.Request" representing the
  7707. // client's request for the DescribeAddresses operation. The "output" return
  7708. // value will be populated with the request's response once the request complets
  7709. // successfuly.
  7710. //
  7711. // Use "Send" method on the returned Request to send the API call to the service.
  7712. // the "output" return value is not valid until after Send returns without error.
  7713. //
  7714. // See DescribeAddresses for more information on using the DescribeAddresses
  7715. // API call, and error handling.
  7716. //
  7717. // This method is useful when you want to inject custom logic or configuration
  7718. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7719. //
  7720. //
  7721. // // Example sending a request using the DescribeAddressesRequest method.
  7722. // req, resp := client.DescribeAddressesRequest(params)
  7723. //
  7724. // err := req.Send()
  7725. // if err == nil { // resp is now filled
  7726. // fmt.Println(resp)
  7727. // }
  7728. //
  7729. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses
  7730. func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *request.Request, output *DescribeAddressesOutput) {
  7731. op := &request.Operation{
  7732. Name: opDescribeAddresses,
  7733. HTTPMethod: "POST",
  7734. HTTPPath: "/",
  7735. }
  7736. if input == nil {
  7737. input = &DescribeAddressesInput{}
  7738. }
  7739. output = &DescribeAddressesOutput{}
  7740. req = c.newRequest(op, input, output)
  7741. return
  7742. }
  7743. // DescribeAddresses API operation for Amazon Elastic Compute Cloud.
  7744. //
  7745. // Describes one or more of your Elastic IP addresses.
  7746. //
  7747. // An Elastic IP address is for use in either the EC2-Classic platform or in
  7748. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  7749. // in the Amazon Elastic Compute Cloud User Guide.
  7750. //
  7751. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7752. // with awserr.Error's Code and Message methods to get detailed information about
  7753. // the error.
  7754. //
  7755. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7756. // API operation DescribeAddresses for usage and error information.
  7757. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddresses
  7758. func (c *EC2) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) {
  7759. req, out := c.DescribeAddressesRequest(input)
  7760. return out, req.Send()
  7761. }
  7762. // DescribeAddressesWithContext is the same as DescribeAddresses with the addition of
  7763. // the ability to pass a context and additional request options.
  7764. //
  7765. // See DescribeAddresses for details on how to use this API operation.
  7766. //
  7767. // The context must be non-nil and will be used for request cancellation. If
  7768. // the context is nil a panic will occur. In the future the SDK may create
  7769. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7770. // for more information on using Contexts.
  7771. func (c *EC2) DescribeAddressesWithContext(ctx aws.Context, input *DescribeAddressesInput, opts ...request.Option) (*DescribeAddressesOutput, error) {
  7772. req, out := c.DescribeAddressesRequest(input)
  7773. req.SetContext(ctx)
  7774. req.ApplyOptions(opts...)
  7775. return out, req.Send()
  7776. }
  7777. const opDescribeAvailabilityZones = "DescribeAvailabilityZones"
  7778. // DescribeAvailabilityZonesRequest generates a "aws/request.Request" representing the
  7779. // client's request for the DescribeAvailabilityZones operation. The "output" return
  7780. // value will be populated with the request's response once the request complets
  7781. // successfuly.
  7782. //
  7783. // Use "Send" method on the returned Request to send the API call to the service.
  7784. // the "output" return value is not valid until after Send returns without error.
  7785. //
  7786. // See DescribeAvailabilityZones for more information on using the DescribeAvailabilityZones
  7787. // API call, and error handling.
  7788. //
  7789. // This method is useful when you want to inject custom logic or configuration
  7790. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7791. //
  7792. //
  7793. // // Example sending a request using the DescribeAvailabilityZonesRequest method.
  7794. // req, resp := client.DescribeAvailabilityZonesRequest(params)
  7795. //
  7796. // err := req.Send()
  7797. // if err == nil { // resp is now filled
  7798. // fmt.Println(resp)
  7799. // }
  7800. //
  7801. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones
  7802. func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesInput) (req *request.Request, output *DescribeAvailabilityZonesOutput) {
  7803. op := &request.Operation{
  7804. Name: opDescribeAvailabilityZones,
  7805. HTTPMethod: "POST",
  7806. HTTPPath: "/",
  7807. }
  7808. if input == nil {
  7809. input = &DescribeAvailabilityZonesInput{}
  7810. }
  7811. output = &DescribeAvailabilityZonesOutput{}
  7812. req = c.newRequest(op, input, output)
  7813. return
  7814. }
  7815. // DescribeAvailabilityZones API operation for Amazon Elastic Compute Cloud.
  7816. //
  7817. // Describes one or more of the Availability Zones that are available to you.
  7818. // The results include zones only for the region you're currently using. If
  7819. // there is an event impacting an Availability Zone, you can use this request
  7820. // to view the state and any provided message for that Availability Zone.
  7821. //
  7822. // For more information, see Regions and Availability Zones (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html)
  7823. // in the Amazon Elastic Compute Cloud User Guide.
  7824. //
  7825. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7826. // with awserr.Error's Code and Message methods to get detailed information about
  7827. // the error.
  7828. //
  7829. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7830. // API operation DescribeAvailabilityZones for usage and error information.
  7831. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZones
  7832. func (c *EC2) DescribeAvailabilityZones(input *DescribeAvailabilityZonesInput) (*DescribeAvailabilityZonesOutput, error) {
  7833. req, out := c.DescribeAvailabilityZonesRequest(input)
  7834. return out, req.Send()
  7835. }
  7836. // DescribeAvailabilityZonesWithContext is the same as DescribeAvailabilityZones with the addition of
  7837. // the ability to pass a context and additional request options.
  7838. //
  7839. // See DescribeAvailabilityZones for details on how to use this API operation.
  7840. //
  7841. // The context must be non-nil and will be used for request cancellation. If
  7842. // the context is nil a panic will occur. In the future the SDK may create
  7843. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7844. // for more information on using Contexts.
  7845. func (c *EC2) DescribeAvailabilityZonesWithContext(ctx aws.Context, input *DescribeAvailabilityZonesInput, opts ...request.Option) (*DescribeAvailabilityZonesOutput, error) {
  7846. req, out := c.DescribeAvailabilityZonesRequest(input)
  7847. req.SetContext(ctx)
  7848. req.ApplyOptions(opts...)
  7849. return out, req.Send()
  7850. }
  7851. const opDescribeBundleTasks = "DescribeBundleTasks"
  7852. // DescribeBundleTasksRequest generates a "aws/request.Request" representing the
  7853. // client's request for the DescribeBundleTasks operation. The "output" return
  7854. // value will be populated with the request's response once the request complets
  7855. // successfuly.
  7856. //
  7857. // Use "Send" method on the returned Request to send the API call to the service.
  7858. // the "output" return value is not valid until after Send returns without error.
  7859. //
  7860. // See DescribeBundleTasks for more information on using the DescribeBundleTasks
  7861. // API call, and error handling.
  7862. //
  7863. // This method is useful when you want to inject custom logic or configuration
  7864. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7865. //
  7866. //
  7867. // // Example sending a request using the DescribeBundleTasksRequest method.
  7868. // req, resp := client.DescribeBundleTasksRequest(params)
  7869. //
  7870. // err := req.Send()
  7871. // if err == nil { // resp is now filled
  7872. // fmt.Println(resp)
  7873. // }
  7874. //
  7875. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks
  7876. func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req *request.Request, output *DescribeBundleTasksOutput) {
  7877. op := &request.Operation{
  7878. Name: opDescribeBundleTasks,
  7879. HTTPMethod: "POST",
  7880. HTTPPath: "/",
  7881. }
  7882. if input == nil {
  7883. input = &DescribeBundleTasksInput{}
  7884. }
  7885. output = &DescribeBundleTasksOutput{}
  7886. req = c.newRequest(op, input, output)
  7887. return
  7888. }
  7889. // DescribeBundleTasks API operation for Amazon Elastic Compute Cloud.
  7890. //
  7891. // Describes one or more of your bundling tasks.
  7892. //
  7893. // Completed bundle tasks are listed for only a limited time. If your bundle
  7894. // task is no longer in the list, you can still register an AMI from it. Just
  7895. // use RegisterImage with the Amazon S3 bucket name and image manifest name
  7896. // you provided to the bundle task.
  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 DescribeBundleTasks for usage and error information.
  7904. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasks
  7905. func (c *EC2) DescribeBundleTasks(input *DescribeBundleTasksInput) (*DescribeBundleTasksOutput, error) {
  7906. req, out := c.DescribeBundleTasksRequest(input)
  7907. return out, req.Send()
  7908. }
  7909. // DescribeBundleTasksWithContext is the same as DescribeBundleTasks with the addition of
  7910. // the ability to pass a context and additional request options.
  7911. //
  7912. // See DescribeBundleTasks 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) DescribeBundleTasksWithContext(ctx aws.Context, input *DescribeBundleTasksInput, opts ...request.Option) (*DescribeBundleTasksOutput, error) {
  7919. req, out := c.DescribeBundleTasksRequest(input)
  7920. req.SetContext(ctx)
  7921. req.ApplyOptions(opts...)
  7922. return out, req.Send()
  7923. }
  7924. const opDescribeClassicLinkInstances = "DescribeClassicLinkInstances"
  7925. // DescribeClassicLinkInstancesRequest generates a "aws/request.Request" representing the
  7926. // client's request for the DescribeClassicLinkInstances operation. The "output" return
  7927. // value will be populated with the request's response once the request complets
  7928. // successfuly.
  7929. //
  7930. // Use "Send" method on the returned Request to send the API call to the service.
  7931. // the "output" return value is not valid until after Send returns without error.
  7932. //
  7933. // See DescribeClassicLinkInstances for more information on using the DescribeClassicLinkInstances
  7934. // API call, and error handling.
  7935. //
  7936. // This method is useful when you want to inject custom logic or configuration
  7937. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7938. //
  7939. //
  7940. // // Example sending a request using the DescribeClassicLinkInstancesRequest method.
  7941. // req, resp := client.DescribeClassicLinkInstancesRequest(params)
  7942. //
  7943. // err := req.Send()
  7944. // if err == nil { // resp is now filled
  7945. // fmt.Println(resp)
  7946. // }
  7947. //
  7948. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances
  7949. func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInstancesInput) (req *request.Request, output *DescribeClassicLinkInstancesOutput) {
  7950. op := &request.Operation{
  7951. Name: opDescribeClassicLinkInstances,
  7952. HTTPMethod: "POST",
  7953. HTTPPath: "/",
  7954. }
  7955. if input == nil {
  7956. input = &DescribeClassicLinkInstancesInput{}
  7957. }
  7958. output = &DescribeClassicLinkInstancesOutput{}
  7959. req = c.newRequest(op, input, output)
  7960. return
  7961. }
  7962. // DescribeClassicLinkInstances API operation for Amazon Elastic Compute Cloud.
  7963. //
  7964. // Describes one or more of your linked EC2-Classic instances. This request
  7965. // only returns information about EC2-Classic instances linked to a VPC through
  7966. // ClassicLink; you cannot use this request to return information about other
  7967. // instances.
  7968. //
  7969. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7970. // with awserr.Error's Code and Message methods to get detailed information about
  7971. // the error.
  7972. //
  7973. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  7974. // API operation DescribeClassicLinkInstances for usage and error information.
  7975. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstances
  7976. func (c *EC2) DescribeClassicLinkInstances(input *DescribeClassicLinkInstancesInput) (*DescribeClassicLinkInstancesOutput, error) {
  7977. req, out := c.DescribeClassicLinkInstancesRequest(input)
  7978. return out, req.Send()
  7979. }
  7980. // DescribeClassicLinkInstancesWithContext is the same as DescribeClassicLinkInstances with the addition of
  7981. // the ability to pass a context and additional request options.
  7982. //
  7983. // See DescribeClassicLinkInstances for details on how to use this API operation.
  7984. //
  7985. // The context must be non-nil and will be used for request cancellation. If
  7986. // the context is nil a panic will occur. In the future the SDK may create
  7987. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7988. // for more information on using Contexts.
  7989. func (c *EC2) DescribeClassicLinkInstancesWithContext(ctx aws.Context, input *DescribeClassicLinkInstancesInput, opts ...request.Option) (*DescribeClassicLinkInstancesOutput, error) {
  7990. req, out := c.DescribeClassicLinkInstancesRequest(input)
  7991. req.SetContext(ctx)
  7992. req.ApplyOptions(opts...)
  7993. return out, req.Send()
  7994. }
  7995. const opDescribeConversionTasks = "DescribeConversionTasks"
  7996. // DescribeConversionTasksRequest generates a "aws/request.Request" representing the
  7997. // client's request for the DescribeConversionTasks operation. The "output" return
  7998. // value will be populated with the request's response once the request complets
  7999. // successfuly.
  8000. //
  8001. // Use "Send" method on the returned Request to send the API call to the service.
  8002. // the "output" return value is not valid until after Send returns without error.
  8003. //
  8004. // See DescribeConversionTasks for more information on using the DescribeConversionTasks
  8005. // API call, and error handling.
  8006. //
  8007. // This method is useful when you want to inject custom logic or configuration
  8008. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8009. //
  8010. //
  8011. // // Example sending a request using the DescribeConversionTasksRequest method.
  8012. // req, resp := client.DescribeConversionTasksRequest(params)
  8013. //
  8014. // err := req.Send()
  8015. // if err == nil { // resp is now filled
  8016. // fmt.Println(resp)
  8017. // }
  8018. //
  8019. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks
  8020. func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput) (req *request.Request, output *DescribeConversionTasksOutput) {
  8021. op := &request.Operation{
  8022. Name: opDescribeConversionTasks,
  8023. HTTPMethod: "POST",
  8024. HTTPPath: "/",
  8025. }
  8026. if input == nil {
  8027. input = &DescribeConversionTasksInput{}
  8028. }
  8029. output = &DescribeConversionTasksOutput{}
  8030. req = c.newRequest(op, input, output)
  8031. return
  8032. }
  8033. // DescribeConversionTasks API operation for Amazon Elastic Compute Cloud.
  8034. //
  8035. // Describes one or more of your conversion tasks. For more information, see
  8036. // the VM Import/Export User Guide (http://docs.aws.amazon.com/vm-import/latest/userguide/).
  8037. //
  8038. // For information about the import manifest referenced by this API action,
  8039. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  8040. //
  8041. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8042. // with awserr.Error's Code and Message methods to get detailed information about
  8043. // the error.
  8044. //
  8045. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8046. // API operation DescribeConversionTasks for usage and error information.
  8047. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasks
  8048. func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) {
  8049. req, out := c.DescribeConversionTasksRequest(input)
  8050. return out, req.Send()
  8051. }
  8052. // DescribeConversionTasksWithContext is the same as DescribeConversionTasks with the addition of
  8053. // the ability to pass a context and additional request options.
  8054. //
  8055. // See DescribeConversionTasks for details on how to use this API operation.
  8056. //
  8057. // The context must be non-nil and will be used for request cancellation. If
  8058. // the context is nil a panic will occur. In the future the SDK may create
  8059. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8060. // for more information on using Contexts.
  8061. func (c *EC2) DescribeConversionTasksWithContext(ctx aws.Context, input *DescribeConversionTasksInput, opts ...request.Option) (*DescribeConversionTasksOutput, error) {
  8062. req, out := c.DescribeConversionTasksRequest(input)
  8063. req.SetContext(ctx)
  8064. req.ApplyOptions(opts...)
  8065. return out, req.Send()
  8066. }
  8067. const opDescribeCustomerGateways = "DescribeCustomerGateways"
  8068. // DescribeCustomerGatewaysRequest generates a "aws/request.Request" representing the
  8069. // client's request for the DescribeCustomerGateways operation. The "output" return
  8070. // value will be populated with the request's response once the request complets
  8071. // successfuly.
  8072. //
  8073. // Use "Send" method on the returned Request to send the API call to the service.
  8074. // the "output" return value is not valid until after Send returns without error.
  8075. //
  8076. // See DescribeCustomerGateways for more information on using the DescribeCustomerGateways
  8077. // API call, and error handling.
  8078. //
  8079. // This method is useful when you want to inject custom logic or configuration
  8080. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8081. //
  8082. //
  8083. // // Example sending a request using the DescribeCustomerGatewaysRequest method.
  8084. // req, resp := client.DescribeCustomerGatewaysRequest(params)
  8085. //
  8086. // err := req.Send()
  8087. // if err == nil { // resp is now filled
  8088. // fmt.Println(resp)
  8089. // }
  8090. //
  8091. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways
  8092. func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInput) (req *request.Request, output *DescribeCustomerGatewaysOutput) {
  8093. op := &request.Operation{
  8094. Name: opDescribeCustomerGateways,
  8095. HTTPMethod: "POST",
  8096. HTTPPath: "/",
  8097. }
  8098. if input == nil {
  8099. input = &DescribeCustomerGatewaysInput{}
  8100. }
  8101. output = &DescribeCustomerGatewaysOutput{}
  8102. req = c.newRequest(op, input, output)
  8103. return
  8104. }
  8105. // DescribeCustomerGateways API operation for Amazon Elastic Compute Cloud.
  8106. //
  8107. // Describes one or more of your VPN customer gateways.
  8108. //
  8109. // For more information about VPN customer gateways, see AWS Managed VPN Connections
  8110. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  8111. // Amazon Virtual Private Cloud User Guide.
  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 DescribeCustomerGateways for usage and error information.
  8119. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGateways
  8120. func (c *EC2) DescribeCustomerGateways(input *DescribeCustomerGatewaysInput) (*DescribeCustomerGatewaysOutput, error) {
  8121. req, out := c.DescribeCustomerGatewaysRequest(input)
  8122. return out, req.Send()
  8123. }
  8124. // DescribeCustomerGatewaysWithContext is the same as DescribeCustomerGateways with the addition of
  8125. // the ability to pass a context and additional request options.
  8126. //
  8127. // See DescribeCustomerGateways 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) DescribeCustomerGatewaysWithContext(ctx aws.Context, input *DescribeCustomerGatewaysInput, opts ...request.Option) (*DescribeCustomerGatewaysOutput, error) {
  8134. req, out := c.DescribeCustomerGatewaysRequest(input)
  8135. req.SetContext(ctx)
  8136. req.ApplyOptions(opts...)
  8137. return out, req.Send()
  8138. }
  8139. const opDescribeDhcpOptions = "DescribeDhcpOptions"
  8140. // DescribeDhcpOptionsRequest generates a "aws/request.Request" representing the
  8141. // client's request for the DescribeDhcpOptions operation. The "output" return
  8142. // value will be populated with the request's response once the request complets
  8143. // successfuly.
  8144. //
  8145. // Use "Send" method on the returned Request to send the API call to the service.
  8146. // the "output" return value is not valid until after Send returns without error.
  8147. //
  8148. // See DescribeDhcpOptions for more information on using the DescribeDhcpOptions
  8149. // API call, and error handling.
  8150. //
  8151. // This method is useful when you want to inject custom logic or configuration
  8152. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8153. //
  8154. //
  8155. // // Example sending a request using the DescribeDhcpOptionsRequest method.
  8156. // req, resp := client.DescribeDhcpOptionsRequest(params)
  8157. //
  8158. // err := req.Send()
  8159. // if err == nil { // resp is now filled
  8160. // fmt.Println(resp)
  8161. // }
  8162. //
  8163. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions
  8164. func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req *request.Request, output *DescribeDhcpOptionsOutput) {
  8165. op := &request.Operation{
  8166. Name: opDescribeDhcpOptions,
  8167. HTTPMethod: "POST",
  8168. HTTPPath: "/",
  8169. }
  8170. if input == nil {
  8171. input = &DescribeDhcpOptionsInput{}
  8172. }
  8173. output = &DescribeDhcpOptionsOutput{}
  8174. req = c.newRequest(op, input, output)
  8175. return
  8176. }
  8177. // DescribeDhcpOptions API operation for Amazon Elastic Compute Cloud.
  8178. //
  8179. // Describes one or more of your DHCP options sets.
  8180. //
  8181. // For more information about DHCP options sets, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  8182. // in the Amazon Virtual Private Cloud User Guide.
  8183. //
  8184. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8185. // with awserr.Error's Code and Message methods to get detailed information about
  8186. // the error.
  8187. //
  8188. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8189. // API operation DescribeDhcpOptions for usage and error information.
  8190. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptions
  8191. func (c *EC2) DescribeDhcpOptions(input *DescribeDhcpOptionsInput) (*DescribeDhcpOptionsOutput, error) {
  8192. req, out := c.DescribeDhcpOptionsRequest(input)
  8193. return out, req.Send()
  8194. }
  8195. // DescribeDhcpOptionsWithContext is the same as DescribeDhcpOptions with the addition of
  8196. // the ability to pass a context and additional request options.
  8197. //
  8198. // See DescribeDhcpOptions for details on how to use this API operation.
  8199. //
  8200. // The context must be non-nil and will be used for request cancellation. If
  8201. // the context is nil a panic will occur. In the future the SDK may create
  8202. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8203. // for more information on using Contexts.
  8204. func (c *EC2) DescribeDhcpOptionsWithContext(ctx aws.Context, input *DescribeDhcpOptionsInput, opts ...request.Option) (*DescribeDhcpOptionsOutput, error) {
  8205. req, out := c.DescribeDhcpOptionsRequest(input)
  8206. req.SetContext(ctx)
  8207. req.ApplyOptions(opts...)
  8208. return out, req.Send()
  8209. }
  8210. const opDescribeEgressOnlyInternetGateways = "DescribeEgressOnlyInternetGateways"
  8211. // DescribeEgressOnlyInternetGatewaysRequest generates a "aws/request.Request" representing the
  8212. // client's request for the DescribeEgressOnlyInternetGateways operation. The "output" return
  8213. // value will be populated with the request's response once the request complets
  8214. // successfuly.
  8215. //
  8216. // Use "Send" method on the returned Request to send the API call to the service.
  8217. // the "output" return value is not valid until after Send returns without error.
  8218. //
  8219. // See DescribeEgressOnlyInternetGateways for more information on using the DescribeEgressOnlyInternetGateways
  8220. // API call, and error handling.
  8221. //
  8222. // This method is useful when you want to inject custom logic or configuration
  8223. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8224. //
  8225. //
  8226. // // Example sending a request using the DescribeEgressOnlyInternetGatewaysRequest method.
  8227. // req, resp := client.DescribeEgressOnlyInternetGatewaysRequest(params)
  8228. //
  8229. // err := req.Send()
  8230. // if err == nil { // resp is now filled
  8231. // fmt.Println(resp)
  8232. // }
  8233. //
  8234. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways
  8235. func (c *EC2) DescribeEgressOnlyInternetGatewaysRequest(input *DescribeEgressOnlyInternetGatewaysInput) (req *request.Request, output *DescribeEgressOnlyInternetGatewaysOutput) {
  8236. op := &request.Operation{
  8237. Name: opDescribeEgressOnlyInternetGateways,
  8238. HTTPMethod: "POST",
  8239. HTTPPath: "/",
  8240. }
  8241. if input == nil {
  8242. input = &DescribeEgressOnlyInternetGatewaysInput{}
  8243. }
  8244. output = &DescribeEgressOnlyInternetGatewaysOutput{}
  8245. req = c.newRequest(op, input, output)
  8246. return
  8247. }
  8248. // DescribeEgressOnlyInternetGateways API operation for Amazon Elastic Compute Cloud.
  8249. //
  8250. // Describes one or more of your egress-only Internet gateways.
  8251. //
  8252. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8253. // with awserr.Error's Code and Message methods to get detailed information about
  8254. // the error.
  8255. //
  8256. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8257. // API operation DescribeEgressOnlyInternetGateways for usage and error information.
  8258. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGateways
  8259. func (c *EC2) DescribeEgressOnlyInternetGateways(input *DescribeEgressOnlyInternetGatewaysInput) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
  8260. req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input)
  8261. return out, req.Send()
  8262. }
  8263. // DescribeEgressOnlyInternetGatewaysWithContext is the same as DescribeEgressOnlyInternetGateways with the addition of
  8264. // the ability to pass a context and additional request options.
  8265. //
  8266. // See DescribeEgressOnlyInternetGateways for details on how to use this API operation.
  8267. //
  8268. // The context must be non-nil and will be used for request cancellation. If
  8269. // the context is nil a panic will occur. In the future the SDK may create
  8270. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8271. // for more information on using Contexts.
  8272. func (c *EC2) DescribeEgressOnlyInternetGatewaysWithContext(ctx aws.Context, input *DescribeEgressOnlyInternetGatewaysInput, opts ...request.Option) (*DescribeEgressOnlyInternetGatewaysOutput, error) {
  8273. req, out := c.DescribeEgressOnlyInternetGatewaysRequest(input)
  8274. req.SetContext(ctx)
  8275. req.ApplyOptions(opts...)
  8276. return out, req.Send()
  8277. }
  8278. const opDescribeElasticGpus = "DescribeElasticGpus"
  8279. // DescribeElasticGpusRequest generates a "aws/request.Request" representing the
  8280. // client's request for the DescribeElasticGpus operation. The "output" return
  8281. // value will be populated with the request's response once the request complets
  8282. // successfuly.
  8283. //
  8284. // Use "Send" method on the returned Request to send the API call to the service.
  8285. // the "output" return value is not valid until after Send returns without error.
  8286. //
  8287. // See DescribeElasticGpus for more information on using the DescribeElasticGpus
  8288. // API call, and error handling.
  8289. //
  8290. // This method is useful when you want to inject custom logic or configuration
  8291. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8292. //
  8293. //
  8294. // // Example sending a request using the DescribeElasticGpusRequest method.
  8295. // req, resp := client.DescribeElasticGpusRequest(params)
  8296. //
  8297. // err := req.Send()
  8298. // if err == nil { // resp is now filled
  8299. // fmt.Println(resp)
  8300. // }
  8301. //
  8302. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpus
  8303. func (c *EC2) DescribeElasticGpusRequest(input *DescribeElasticGpusInput) (req *request.Request, output *DescribeElasticGpusOutput) {
  8304. op := &request.Operation{
  8305. Name: opDescribeElasticGpus,
  8306. HTTPMethod: "POST",
  8307. HTTPPath: "/",
  8308. }
  8309. if input == nil {
  8310. input = &DescribeElasticGpusInput{}
  8311. }
  8312. output = &DescribeElasticGpusOutput{}
  8313. req = c.newRequest(op, input, output)
  8314. return
  8315. }
  8316. // DescribeElasticGpus API operation for Amazon Elastic Compute Cloud.
  8317. //
  8318. // Describes the Elastic GPUs associated with your instances. For more information
  8319. // about Elastic GPUs, see Amazon EC2 Elastic GPUs (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-gpus.html).
  8320. //
  8321. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8322. // with awserr.Error's Code and Message methods to get detailed information about
  8323. // the error.
  8324. //
  8325. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8326. // API operation DescribeElasticGpus for usage and error information.
  8327. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpus
  8328. func (c *EC2) DescribeElasticGpus(input *DescribeElasticGpusInput) (*DescribeElasticGpusOutput, error) {
  8329. req, out := c.DescribeElasticGpusRequest(input)
  8330. return out, req.Send()
  8331. }
  8332. // DescribeElasticGpusWithContext is the same as DescribeElasticGpus with the addition of
  8333. // the ability to pass a context and additional request options.
  8334. //
  8335. // See DescribeElasticGpus for details on how to use this API operation.
  8336. //
  8337. // The context must be non-nil and will be used for request cancellation. If
  8338. // the context is nil a panic will occur. In the future the SDK may create
  8339. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8340. // for more information on using Contexts.
  8341. func (c *EC2) DescribeElasticGpusWithContext(ctx aws.Context, input *DescribeElasticGpusInput, opts ...request.Option) (*DescribeElasticGpusOutput, error) {
  8342. req, out := c.DescribeElasticGpusRequest(input)
  8343. req.SetContext(ctx)
  8344. req.ApplyOptions(opts...)
  8345. return out, req.Send()
  8346. }
  8347. const opDescribeExportTasks = "DescribeExportTasks"
  8348. // DescribeExportTasksRequest generates a "aws/request.Request" representing the
  8349. // client's request for the DescribeExportTasks operation. The "output" return
  8350. // value will be populated with the request's response once the request complets
  8351. // successfuly.
  8352. //
  8353. // Use "Send" method on the returned Request to send the API call to the service.
  8354. // the "output" return value is not valid until after Send returns without error.
  8355. //
  8356. // See DescribeExportTasks for more information on using the DescribeExportTasks
  8357. // API call, and error handling.
  8358. //
  8359. // This method is useful when you want to inject custom logic or configuration
  8360. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8361. //
  8362. //
  8363. // // Example sending a request using the DescribeExportTasksRequest method.
  8364. // req, resp := client.DescribeExportTasksRequest(params)
  8365. //
  8366. // err := req.Send()
  8367. // if err == nil { // resp is now filled
  8368. // fmt.Println(resp)
  8369. // }
  8370. //
  8371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks
  8372. func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
  8373. op := &request.Operation{
  8374. Name: opDescribeExportTasks,
  8375. HTTPMethod: "POST",
  8376. HTTPPath: "/",
  8377. }
  8378. if input == nil {
  8379. input = &DescribeExportTasksInput{}
  8380. }
  8381. output = &DescribeExportTasksOutput{}
  8382. req = c.newRequest(op, input, output)
  8383. return
  8384. }
  8385. // DescribeExportTasks API operation for Amazon Elastic Compute Cloud.
  8386. //
  8387. // Describes one or more of your export tasks.
  8388. //
  8389. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8390. // with awserr.Error's Code and Message methods to get detailed information about
  8391. // the error.
  8392. //
  8393. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8394. // API operation DescribeExportTasks for usage and error information.
  8395. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasks
  8396. func (c *EC2) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
  8397. req, out := c.DescribeExportTasksRequest(input)
  8398. return out, req.Send()
  8399. }
  8400. // DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
  8401. // the ability to pass a context and additional request options.
  8402. //
  8403. // See DescribeExportTasks for details on how to use this API operation.
  8404. //
  8405. // The context must be non-nil and will be used for request cancellation. If
  8406. // the context is nil a panic will occur. In the future the SDK may create
  8407. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8408. // for more information on using Contexts.
  8409. func (c *EC2) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
  8410. req, out := c.DescribeExportTasksRequest(input)
  8411. req.SetContext(ctx)
  8412. req.ApplyOptions(opts...)
  8413. return out, req.Send()
  8414. }
  8415. const opDescribeFlowLogs = "DescribeFlowLogs"
  8416. // DescribeFlowLogsRequest generates a "aws/request.Request" representing the
  8417. // client's request for the DescribeFlowLogs operation. The "output" return
  8418. // value will be populated with the request's response once the request complets
  8419. // successfuly.
  8420. //
  8421. // Use "Send" method on the returned Request to send the API call to the service.
  8422. // the "output" return value is not valid until after Send returns without error.
  8423. //
  8424. // See DescribeFlowLogs for more information on using the DescribeFlowLogs
  8425. // API call, and error handling.
  8426. //
  8427. // This method is useful when you want to inject custom logic or configuration
  8428. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8429. //
  8430. //
  8431. // // Example sending a request using the DescribeFlowLogsRequest method.
  8432. // req, resp := client.DescribeFlowLogsRequest(params)
  8433. //
  8434. // err := req.Send()
  8435. // if err == nil { // resp is now filled
  8436. // fmt.Println(resp)
  8437. // }
  8438. //
  8439. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs
  8440. func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *request.Request, output *DescribeFlowLogsOutput) {
  8441. op := &request.Operation{
  8442. Name: opDescribeFlowLogs,
  8443. HTTPMethod: "POST",
  8444. HTTPPath: "/",
  8445. }
  8446. if input == nil {
  8447. input = &DescribeFlowLogsInput{}
  8448. }
  8449. output = &DescribeFlowLogsOutput{}
  8450. req = c.newRequest(op, input, output)
  8451. return
  8452. }
  8453. // DescribeFlowLogs API operation for Amazon Elastic Compute Cloud.
  8454. //
  8455. // Describes one or more flow logs. To view the information in your flow logs
  8456. // (the log streams for the network interfaces), you must use the CloudWatch
  8457. // Logs console or the CloudWatch Logs API.
  8458. //
  8459. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8460. // with awserr.Error's Code and Message methods to get detailed information about
  8461. // the error.
  8462. //
  8463. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8464. // API operation DescribeFlowLogs for usage and error information.
  8465. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogs
  8466. func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsOutput, error) {
  8467. req, out := c.DescribeFlowLogsRequest(input)
  8468. return out, req.Send()
  8469. }
  8470. // DescribeFlowLogsWithContext is the same as DescribeFlowLogs with the addition of
  8471. // the ability to pass a context and additional request options.
  8472. //
  8473. // See DescribeFlowLogs for details on how to use this API operation.
  8474. //
  8475. // The context must be non-nil and will be used for request cancellation. If
  8476. // the context is nil a panic will occur. In the future the SDK may create
  8477. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8478. // for more information on using Contexts.
  8479. func (c *EC2) DescribeFlowLogsWithContext(ctx aws.Context, input *DescribeFlowLogsInput, opts ...request.Option) (*DescribeFlowLogsOutput, error) {
  8480. req, out := c.DescribeFlowLogsRequest(input)
  8481. req.SetContext(ctx)
  8482. req.ApplyOptions(opts...)
  8483. return out, req.Send()
  8484. }
  8485. const opDescribeFpgaImageAttribute = "DescribeFpgaImageAttribute"
  8486. // DescribeFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  8487. // client's request for the DescribeFpgaImageAttribute operation. The "output" return
  8488. // value will be populated with the request's response once the request complets
  8489. // successfuly.
  8490. //
  8491. // Use "Send" method on the returned Request to send the API call to the service.
  8492. // the "output" return value is not valid until after Send returns without error.
  8493. //
  8494. // See DescribeFpgaImageAttribute for more information on using the DescribeFpgaImageAttribute
  8495. // API call, and error handling.
  8496. //
  8497. // This method is useful when you want to inject custom logic or configuration
  8498. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8499. //
  8500. //
  8501. // // Example sending a request using the DescribeFpgaImageAttributeRequest method.
  8502. // req, resp := client.DescribeFpgaImageAttributeRequest(params)
  8503. //
  8504. // err := req.Send()
  8505. // if err == nil { // resp is now filled
  8506. // fmt.Println(resp)
  8507. // }
  8508. //
  8509. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttribute
  8510. func (c *EC2) DescribeFpgaImageAttributeRequest(input *DescribeFpgaImageAttributeInput) (req *request.Request, output *DescribeFpgaImageAttributeOutput) {
  8511. op := &request.Operation{
  8512. Name: opDescribeFpgaImageAttribute,
  8513. HTTPMethod: "POST",
  8514. HTTPPath: "/",
  8515. }
  8516. if input == nil {
  8517. input = &DescribeFpgaImageAttributeInput{}
  8518. }
  8519. output = &DescribeFpgaImageAttributeOutput{}
  8520. req = c.newRequest(op, input, output)
  8521. return
  8522. }
  8523. // DescribeFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  8524. //
  8525. // Describes the specified attribute of the specified Amazon FPGA Image (AFI).
  8526. //
  8527. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8528. // with awserr.Error's Code and Message methods to get detailed information about
  8529. // the error.
  8530. //
  8531. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8532. // API operation DescribeFpgaImageAttribute for usage and error information.
  8533. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttribute
  8534. func (c *EC2) DescribeFpgaImageAttribute(input *DescribeFpgaImageAttributeInput) (*DescribeFpgaImageAttributeOutput, error) {
  8535. req, out := c.DescribeFpgaImageAttributeRequest(input)
  8536. return out, req.Send()
  8537. }
  8538. // DescribeFpgaImageAttributeWithContext is the same as DescribeFpgaImageAttribute with the addition of
  8539. // the ability to pass a context and additional request options.
  8540. //
  8541. // See DescribeFpgaImageAttribute for details on how to use this API operation.
  8542. //
  8543. // The context must be non-nil and will be used for request cancellation. If
  8544. // the context is nil a panic will occur. In the future the SDK may create
  8545. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8546. // for more information on using Contexts.
  8547. func (c *EC2) DescribeFpgaImageAttributeWithContext(ctx aws.Context, input *DescribeFpgaImageAttributeInput, opts ...request.Option) (*DescribeFpgaImageAttributeOutput, error) {
  8548. req, out := c.DescribeFpgaImageAttributeRequest(input)
  8549. req.SetContext(ctx)
  8550. req.ApplyOptions(opts...)
  8551. return out, req.Send()
  8552. }
  8553. const opDescribeFpgaImages = "DescribeFpgaImages"
  8554. // DescribeFpgaImagesRequest generates a "aws/request.Request" representing the
  8555. // client's request for the DescribeFpgaImages operation. The "output" return
  8556. // value will be populated with the request's response once the request complets
  8557. // successfuly.
  8558. //
  8559. // Use "Send" method on the returned Request to send the API call to the service.
  8560. // the "output" return value is not valid until after Send returns without error.
  8561. //
  8562. // See DescribeFpgaImages for more information on using the DescribeFpgaImages
  8563. // API call, and error handling.
  8564. //
  8565. // This method is useful when you want to inject custom logic or configuration
  8566. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8567. //
  8568. //
  8569. // // Example sending a request using the DescribeFpgaImagesRequest method.
  8570. // req, resp := client.DescribeFpgaImagesRequest(params)
  8571. //
  8572. // err := req.Send()
  8573. // if err == nil { // resp is now filled
  8574. // fmt.Println(resp)
  8575. // }
  8576. //
  8577. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages
  8578. func (c *EC2) DescribeFpgaImagesRequest(input *DescribeFpgaImagesInput) (req *request.Request, output *DescribeFpgaImagesOutput) {
  8579. op := &request.Operation{
  8580. Name: opDescribeFpgaImages,
  8581. HTTPMethod: "POST",
  8582. HTTPPath: "/",
  8583. }
  8584. if input == nil {
  8585. input = &DescribeFpgaImagesInput{}
  8586. }
  8587. output = &DescribeFpgaImagesOutput{}
  8588. req = c.newRequest(op, input, output)
  8589. return
  8590. }
  8591. // DescribeFpgaImages API operation for Amazon Elastic Compute Cloud.
  8592. //
  8593. // Describes one or more available Amazon FPGA Images (AFIs). These include
  8594. // public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts
  8595. // for which you have load permissions.
  8596. //
  8597. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8598. // with awserr.Error's Code and Message methods to get detailed information about
  8599. // the error.
  8600. //
  8601. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8602. // API operation DescribeFpgaImages for usage and error information.
  8603. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImages
  8604. func (c *EC2) DescribeFpgaImages(input *DescribeFpgaImagesInput) (*DescribeFpgaImagesOutput, error) {
  8605. req, out := c.DescribeFpgaImagesRequest(input)
  8606. return out, req.Send()
  8607. }
  8608. // DescribeFpgaImagesWithContext is the same as DescribeFpgaImages with the addition of
  8609. // the ability to pass a context and additional request options.
  8610. //
  8611. // See DescribeFpgaImages for details on how to use this API operation.
  8612. //
  8613. // The context must be non-nil and will be used for request cancellation. If
  8614. // the context is nil a panic will occur. In the future the SDK may create
  8615. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8616. // for more information on using Contexts.
  8617. func (c *EC2) DescribeFpgaImagesWithContext(ctx aws.Context, input *DescribeFpgaImagesInput, opts ...request.Option) (*DescribeFpgaImagesOutput, error) {
  8618. req, out := c.DescribeFpgaImagesRequest(input)
  8619. req.SetContext(ctx)
  8620. req.ApplyOptions(opts...)
  8621. return out, req.Send()
  8622. }
  8623. const opDescribeHostReservationOfferings = "DescribeHostReservationOfferings"
  8624. // DescribeHostReservationOfferingsRequest generates a "aws/request.Request" representing the
  8625. // client's request for the DescribeHostReservationOfferings operation. The "output" return
  8626. // value will be populated with the request's response once the request complets
  8627. // successfuly.
  8628. //
  8629. // Use "Send" method on the returned Request to send the API call to the service.
  8630. // the "output" return value is not valid until after Send returns without error.
  8631. //
  8632. // See DescribeHostReservationOfferings for more information on using the DescribeHostReservationOfferings
  8633. // API call, and error handling.
  8634. //
  8635. // This method is useful when you want to inject custom logic or configuration
  8636. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8637. //
  8638. //
  8639. // // Example sending a request using the DescribeHostReservationOfferingsRequest method.
  8640. // req, resp := client.DescribeHostReservationOfferingsRequest(params)
  8641. //
  8642. // err := req.Send()
  8643. // if err == nil { // resp is now filled
  8644. // fmt.Println(resp)
  8645. // }
  8646. //
  8647. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings
  8648. func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReservationOfferingsInput) (req *request.Request, output *DescribeHostReservationOfferingsOutput) {
  8649. op := &request.Operation{
  8650. Name: opDescribeHostReservationOfferings,
  8651. HTTPMethod: "POST",
  8652. HTTPPath: "/",
  8653. }
  8654. if input == nil {
  8655. input = &DescribeHostReservationOfferingsInput{}
  8656. }
  8657. output = &DescribeHostReservationOfferingsOutput{}
  8658. req = c.newRequest(op, input, output)
  8659. return
  8660. }
  8661. // DescribeHostReservationOfferings API operation for Amazon Elastic Compute Cloud.
  8662. //
  8663. // Describes the Dedicated Host Reservations that are available to purchase.
  8664. //
  8665. // The results describe all the Dedicated Host Reservation offerings, including
  8666. // offerings that may not match the instance family and region of your Dedicated
  8667. // Hosts. When purchasing an offering, ensure that the the instance family and
  8668. // region of the offering matches that of the Dedicated Host/s it will be associated
  8669. // with. For an overview of supported instance types, see Dedicated Hosts Overview
  8670. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html)
  8671. // in the Amazon Elastic Compute Cloud User Guide.
  8672. //
  8673. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8674. // with awserr.Error's Code and Message methods to get detailed information about
  8675. // the error.
  8676. //
  8677. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8678. // API operation DescribeHostReservationOfferings for usage and error information.
  8679. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferings
  8680. func (c *EC2) DescribeHostReservationOfferings(input *DescribeHostReservationOfferingsInput) (*DescribeHostReservationOfferingsOutput, error) {
  8681. req, out := c.DescribeHostReservationOfferingsRequest(input)
  8682. return out, req.Send()
  8683. }
  8684. // DescribeHostReservationOfferingsWithContext is the same as DescribeHostReservationOfferings with the addition of
  8685. // the ability to pass a context and additional request options.
  8686. //
  8687. // See DescribeHostReservationOfferings for details on how to use this API operation.
  8688. //
  8689. // The context must be non-nil and will be used for request cancellation. If
  8690. // the context is nil a panic will occur. In the future the SDK may create
  8691. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8692. // for more information on using Contexts.
  8693. func (c *EC2) DescribeHostReservationOfferingsWithContext(ctx aws.Context, input *DescribeHostReservationOfferingsInput, opts ...request.Option) (*DescribeHostReservationOfferingsOutput, error) {
  8694. req, out := c.DescribeHostReservationOfferingsRequest(input)
  8695. req.SetContext(ctx)
  8696. req.ApplyOptions(opts...)
  8697. return out, req.Send()
  8698. }
  8699. const opDescribeHostReservations = "DescribeHostReservations"
  8700. // DescribeHostReservationsRequest generates a "aws/request.Request" representing the
  8701. // client's request for the DescribeHostReservations operation. The "output" return
  8702. // value will be populated with the request's response once the request complets
  8703. // successfuly.
  8704. //
  8705. // Use "Send" method on the returned Request to send the API call to the service.
  8706. // the "output" return value is not valid until after Send returns without error.
  8707. //
  8708. // See DescribeHostReservations for more information on using the DescribeHostReservations
  8709. // API call, and error handling.
  8710. //
  8711. // This method is useful when you want to inject custom logic or configuration
  8712. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8713. //
  8714. //
  8715. // // Example sending a request using the DescribeHostReservationsRequest method.
  8716. // req, resp := client.DescribeHostReservationsRequest(params)
  8717. //
  8718. // err := req.Send()
  8719. // if err == nil { // resp is now filled
  8720. // fmt.Println(resp)
  8721. // }
  8722. //
  8723. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations
  8724. func (c *EC2) DescribeHostReservationsRequest(input *DescribeHostReservationsInput) (req *request.Request, output *DescribeHostReservationsOutput) {
  8725. op := &request.Operation{
  8726. Name: opDescribeHostReservations,
  8727. HTTPMethod: "POST",
  8728. HTTPPath: "/",
  8729. }
  8730. if input == nil {
  8731. input = &DescribeHostReservationsInput{}
  8732. }
  8733. output = &DescribeHostReservationsOutput{}
  8734. req = c.newRequest(op, input, output)
  8735. return
  8736. }
  8737. // DescribeHostReservations API operation for Amazon Elastic Compute Cloud.
  8738. //
  8739. // Describes Dedicated Host Reservations which are associated with Dedicated
  8740. // Hosts in your account.
  8741. //
  8742. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8743. // with awserr.Error's Code and Message methods to get detailed information about
  8744. // the error.
  8745. //
  8746. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8747. // API operation DescribeHostReservations for usage and error information.
  8748. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservations
  8749. func (c *EC2) DescribeHostReservations(input *DescribeHostReservationsInput) (*DescribeHostReservationsOutput, error) {
  8750. req, out := c.DescribeHostReservationsRequest(input)
  8751. return out, req.Send()
  8752. }
  8753. // DescribeHostReservationsWithContext is the same as DescribeHostReservations with the addition of
  8754. // the ability to pass a context and additional request options.
  8755. //
  8756. // See DescribeHostReservations for details on how to use this API operation.
  8757. //
  8758. // The context must be non-nil and will be used for request cancellation. If
  8759. // the context is nil a panic will occur. In the future the SDK may create
  8760. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8761. // for more information on using Contexts.
  8762. func (c *EC2) DescribeHostReservationsWithContext(ctx aws.Context, input *DescribeHostReservationsInput, opts ...request.Option) (*DescribeHostReservationsOutput, error) {
  8763. req, out := c.DescribeHostReservationsRequest(input)
  8764. req.SetContext(ctx)
  8765. req.ApplyOptions(opts...)
  8766. return out, req.Send()
  8767. }
  8768. const opDescribeHosts = "DescribeHosts"
  8769. // DescribeHostsRequest generates a "aws/request.Request" representing the
  8770. // client's request for the DescribeHosts operation. The "output" return
  8771. // value will be populated with the request's response once the request complets
  8772. // successfuly.
  8773. //
  8774. // Use "Send" method on the returned Request to send the API call to the service.
  8775. // the "output" return value is not valid until after Send returns without error.
  8776. //
  8777. // See DescribeHosts for more information on using the DescribeHosts
  8778. // API call, and error handling.
  8779. //
  8780. // This method is useful when you want to inject custom logic or configuration
  8781. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8782. //
  8783. //
  8784. // // Example sending a request using the DescribeHostsRequest method.
  8785. // req, resp := client.DescribeHostsRequest(params)
  8786. //
  8787. // err := req.Send()
  8788. // if err == nil { // resp is now filled
  8789. // fmt.Println(resp)
  8790. // }
  8791. //
  8792. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts
  8793. func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Request, output *DescribeHostsOutput) {
  8794. op := &request.Operation{
  8795. Name: opDescribeHosts,
  8796. HTTPMethod: "POST",
  8797. HTTPPath: "/",
  8798. }
  8799. if input == nil {
  8800. input = &DescribeHostsInput{}
  8801. }
  8802. output = &DescribeHostsOutput{}
  8803. req = c.newRequest(op, input, output)
  8804. return
  8805. }
  8806. // DescribeHosts API operation for Amazon Elastic Compute Cloud.
  8807. //
  8808. // Describes one or more of your Dedicated Hosts.
  8809. //
  8810. // The results describe only the Dedicated Hosts in the region you're currently
  8811. // using. All listed instances consume capacity on your Dedicated Host. Dedicated
  8812. // Hosts that have recently been released will be listed with the state released.
  8813. //
  8814. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8815. // with awserr.Error's Code and Message methods to get detailed information about
  8816. // the error.
  8817. //
  8818. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8819. // API operation DescribeHosts for usage and error information.
  8820. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHosts
  8821. func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) {
  8822. req, out := c.DescribeHostsRequest(input)
  8823. return out, req.Send()
  8824. }
  8825. // DescribeHostsWithContext is the same as DescribeHosts with the addition of
  8826. // the ability to pass a context and additional request options.
  8827. //
  8828. // See DescribeHosts for details on how to use this API operation.
  8829. //
  8830. // The context must be non-nil and will be used for request cancellation. If
  8831. // the context is nil a panic will occur. In the future the SDK may create
  8832. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8833. // for more information on using Contexts.
  8834. func (c *EC2) DescribeHostsWithContext(ctx aws.Context, input *DescribeHostsInput, opts ...request.Option) (*DescribeHostsOutput, error) {
  8835. req, out := c.DescribeHostsRequest(input)
  8836. req.SetContext(ctx)
  8837. req.ApplyOptions(opts...)
  8838. return out, req.Send()
  8839. }
  8840. const opDescribeIamInstanceProfileAssociations = "DescribeIamInstanceProfileAssociations"
  8841. // DescribeIamInstanceProfileAssociationsRequest generates a "aws/request.Request" representing the
  8842. // client's request for the DescribeIamInstanceProfileAssociations operation. The "output" return
  8843. // value will be populated with the request's response once the request complets
  8844. // successfuly.
  8845. //
  8846. // Use "Send" method on the returned Request to send the API call to the service.
  8847. // the "output" return value is not valid until after Send returns without error.
  8848. //
  8849. // See DescribeIamInstanceProfileAssociations for more information on using the DescribeIamInstanceProfileAssociations
  8850. // API call, and error handling.
  8851. //
  8852. // This method is useful when you want to inject custom logic or configuration
  8853. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8854. //
  8855. //
  8856. // // Example sending a request using the DescribeIamInstanceProfileAssociationsRequest method.
  8857. // req, resp := client.DescribeIamInstanceProfileAssociationsRequest(params)
  8858. //
  8859. // err := req.Send()
  8860. // if err == nil { // resp is now filled
  8861. // fmt.Println(resp)
  8862. // }
  8863. //
  8864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations
  8865. func (c *EC2) DescribeIamInstanceProfileAssociationsRequest(input *DescribeIamInstanceProfileAssociationsInput) (req *request.Request, output *DescribeIamInstanceProfileAssociationsOutput) {
  8866. op := &request.Operation{
  8867. Name: opDescribeIamInstanceProfileAssociations,
  8868. HTTPMethod: "POST",
  8869. HTTPPath: "/",
  8870. }
  8871. if input == nil {
  8872. input = &DescribeIamInstanceProfileAssociationsInput{}
  8873. }
  8874. output = &DescribeIamInstanceProfileAssociationsOutput{}
  8875. req = c.newRequest(op, input, output)
  8876. return
  8877. }
  8878. // DescribeIamInstanceProfileAssociations API operation for Amazon Elastic Compute Cloud.
  8879. //
  8880. // Describes your IAM instance profile associations.
  8881. //
  8882. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8883. // with awserr.Error's Code and Message methods to get detailed information about
  8884. // the error.
  8885. //
  8886. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8887. // API operation DescribeIamInstanceProfileAssociations for usage and error information.
  8888. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociations
  8889. func (c *EC2) DescribeIamInstanceProfileAssociations(input *DescribeIamInstanceProfileAssociationsInput) (*DescribeIamInstanceProfileAssociationsOutput, error) {
  8890. req, out := c.DescribeIamInstanceProfileAssociationsRequest(input)
  8891. return out, req.Send()
  8892. }
  8893. // DescribeIamInstanceProfileAssociationsWithContext is the same as DescribeIamInstanceProfileAssociations with the addition of
  8894. // the ability to pass a context and additional request options.
  8895. //
  8896. // See DescribeIamInstanceProfileAssociations for details on how to use this API operation.
  8897. //
  8898. // The context must be non-nil and will be used for request cancellation. If
  8899. // the context is nil a panic will occur. In the future the SDK may create
  8900. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8901. // for more information on using Contexts.
  8902. func (c *EC2) DescribeIamInstanceProfileAssociationsWithContext(ctx aws.Context, input *DescribeIamInstanceProfileAssociationsInput, opts ...request.Option) (*DescribeIamInstanceProfileAssociationsOutput, error) {
  8903. req, out := c.DescribeIamInstanceProfileAssociationsRequest(input)
  8904. req.SetContext(ctx)
  8905. req.ApplyOptions(opts...)
  8906. return out, req.Send()
  8907. }
  8908. const opDescribeIdFormat = "DescribeIdFormat"
  8909. // DescribeIdFormatRequest generates a "aws/request.Request" representing the
  8910. // client's request for the DescribeIdFormat operation. The "output" return
  8911. // value will be populated with the request's response once the request complets
  8912. // successfuly.
  8913. //
  8914. // Use "Send" method on the returned Request to send the API call to the service.
  8915. // the "output" return value is not valid until after Send returns without error.
  8916. //
  8917. // See DescribeIdFormat for more information on using the DescribeIdFormat
  8918. // API call, and error handling.
  8919. //
  8920. // This method is useful when you want to inject custom logic or configuration
  8921. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8922. //
  8923. //
  8924. // // Example sending a request using the DescribeIdFormatRequest method.
  8925. // req, resp := client.DescribeIdFormatRequest(params)
  8926. //
  8927. // err := req.Send()
  8928. // if err == nil { // resp is now filled
  8929. // fmt.Println(resp)
  8930. // }
  8931. //
  8932. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat
  8933. func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *request.Request, output *DescribeIdFormatOutput) {
  8934. op := &request.Operation{
  8935. Name: opDescribeIdFormat,
  8936. HTTPMethod: "POST",
  8937. HTTPPath: "/",
  8938. }
  8939. if input == nil {
  8940. input = &DescribeIdFormatInput{}
  8941. }
  8942. output = &DescribeIdFormatOutput{}
  8943. req = c.newRequest(op, input, output)
  8944. return
  8945. }
  8946. // DescribeIdFormat API operation for Amazon Elastic Compute Cloud.
  8947. //
  8948. // Describes the ID format settings for your resources on a per-region basis,
  8949. // for example, to view which resource types are enabled for longer IDs. This
  8950. // request only returns information about resource types whose ID formats can
  8951. // be modified; it does not return information about other resource types.
  8952. //
  8953. // The following resource types support longer IDs: instance | reservation |
  8954. // snapshot | volume.
  8955. //
  8956. // These settings apply to the IAM user who makes the request; they do not apply
  8957. // to the entire AWS account. By default, an IAM user defaults to the same settings
  8958. // as the root user, unless they explicitly override the settings by running
  8959. // the ModifyIdFormat command. Resources created with longer IDs are visible
  8960. // to all IAM users, regardless of these settings and provided that they have
  8961. // permission to use the relevant Describe command for the resource type.
  8962. //
  8963. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8964. // with awserr.Error's Code and Message methods to get detailed information about
  8965. // the error.
  8966. //
  8967. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  8968. // API operation DescribeIdFormat for usage and error information.
  8969. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormat
  8970. func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) {
  8971. req, out := c.DescribeIdFormatRequest(input)
  8972. return out, req.Send()
  8973. }
  8974. // DescribeIdFormatWithContext is the same as DescribeIdFormat with the addition of
  8975. // the ability to pass a context and additional request options.
  8976. //
  8977. // See DescribeIdFormat for details on how to use this API operation.
  8978. //
  8979. // The context must be non-nil and will be used for request cancellation. If
  8980. // the context is nil a panic will occur. In the future the SDK may create
  8981. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8982. // for more information on using Contexts.
  8983. func (c *EC2) DescribeIdFormatWithContext(ctx aws.Context, input *DescribeIdFormatInput, opts ...request.Option) (*DescribeIdFormatOutput, error) {
  8984. req, out := c.DescribeIdFormatRequest(input)
  8985. req.SetContext(ctx)
  8986. req.ApplyOptions(opts...)
  8987. return out, req.Send()
  8988. }
  8989. const opDescribeIdentityIdFormat = "DescribeIdentityIdFormat"
  8990. // DescribeIdentityIdFormatRequest generates a "aws/request.Request" representing the
  8991. // client's request for the DescribeIdentityIdFormat operation. The "output" return
  8992. // value will be populated with the request's response once the request complets
  8993. // successfuly.
  8994. //
  8995. // Use "Send" method on the returned Request to send the API call to the service.
  8996. // the "output" return value is not valid until after Send returns without error.
  8997. //
  8998. // See DescribeIdentityIdFormat for more information on using the DescribeIdentityIdFormat
  8999. // API call, and error handling.
  9000. //
  9001. // This method is useful when you want to inject custom logic or configuration
  9002. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9003. //
  9004. //
  9005. // // Example sending a request using the DescribeIdentityIdFormatRequest method.
  9006. // req, resp := client.DescribeIdentityIdFormatRequest(params)
  9007. //
  9008. // err := req.Send()
  9009. // if err == nil { // resp is now filled
  9010. // fmt.Println(resp)
  9011. // }
  9012. //
  9013. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat
  9014. func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInput) (req *request.Request, output *DescribeIdentityIdFormatOutput) {
  9015. op := &request.Operation{
  9016. Name: opDescribeIdentityIdFormat,
  9017. HTTPMethod: "POST",
  9018. HTTPPath: "/",
  9019. }
  9020. if input == nil {
  9021. input = &DescribeIdentityIdFormatInput{}
  9022. }
  9023. output = &DescribeIdentityIdFormatOutput{}
  9024. req = c.newRequest(op, input, output)
  9025. return
  9026. }
  9027. // DescribeIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  9028. //
  9029. // Describes the ID format settings for resources for the specified IAM user,
  9030. // IAM role, or root user. For example, you can view the resource types that
  9031. // are enabled for longer IDs. This request only returns information about resource
  9032. // types whose ID formats can be modified; it does not return information about
  9033. // other resource types. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  9034. // in the Amazon Elastic Compute Cloud User Guide.
  9035. //
  9036. // The following resource types support longer IDs: instance | reservation |
  9037. // snapshot | volume.
  9038. //
  9039. // These settings apply to the principal specified in the request. They do not
  9040. // apply to the principal that makes the request.
  9041. //
  9042. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9043. // with awserr.Error's Code and Message methods to get detailed information about
  9044. // the error.
  9045. //
  9046. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9047. // API operation DescribeIdentityIdFormat for usage and error information.
  9048. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormat
  9049. func (c *EC2) DescribeIdentityIdFormat(input *DescribeIdentityIdFormatInput) (*DescribeIdentityIdFormatOutput, error) {
  9050. req, out := c.DescribeIdentityIdFormatRequest(input)
  9051. return out, req.Send()
  9052. }
  9053. // DescribeIdentityIdFormatWithContext is the same as DescribeIdentityIdFormat with the addition of
  9054. // the ability to pass a context and additional request options.
  9055. //
  9056. // See DescribeIdentityIdFormat for details on how to use this API operation.
  9057. //
  9058. // The context must be non-nil and will be used for request cancellation. If
  9059. // the context is nil a panic will occur. In the future the SDK may create
  9060. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9061. // for more information on using Contexts.
  9062. func (c *EC2) DescribeIdentityIdFormatWithContext(ctx aws.Context, input *DescribeIdentityIdFormatInput, opts ...request.Option) (*DescribeIdentityIdFormatOutput, error) {
  9063. req, out := c.DescribeIdentityIdFormatRequest(input)
  9064. req.SetContext(ctx)
  9065. req.ApplyOptions(opts...)
  9066. return out, req.Send()
  9067. }
  9068. const opDescribeImageAttribute = "DescribeImageAttribute"
  9069. // DescribeImageAttributeRequest generates a "aws/request.Request" representing the
  9070. // client's request for the DescribeImageAttribute operation. The "output" return
  9071. // value will be populated with the request's response once the request complets
  9072. // successfuly.
  9073. //
  9074. // Use "Send" method on the returned Request to send the API call to the service.
  9075. // the "output" return value is not valid until after Send returns without error.
  9076. //
  9077. // See DescribeImageAttribute for more information on using the DescribeImageAttribute
  9078. // API call, and error handling.
  9079. //
  9080. // This method is useful when you want to inject custom logic or configuration
  9081. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9082. //
  9083. //
  9084. // // Example sending a request using the DescribeImageAttributeRequest method.
  9085. // req, resp := client.DescribeImageAttributeRequest(params)
  9086. //
  9087. // err := req.Send()
  9088. // if err == nil { // resp is now filled
  9089. // fmt.Println(resp)
  9090. // }
  9091. //
  9092. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute
  9093. func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) (req *request.Request, output *DescribeImageAttributeOutput) {
  9094. op := &request.Operation{
  9095. Name: opDescribeImageAttribute,
  9096. HTTPMethod: "POST",
  9097. HTTPPath: "/",
  9098. }
  9099. if input == nil {
  9100. input = &DescribeImageAttributeInput{}
  9101. }
  9102. output = &DescribeImageAttributeOutput{}
  9103. req = c.newRequest(op, input, output)
  9104. return
  9105. }
  9106. // DescribeImageAttribute API operation for Amazon Elastic Compute Cloud.
  9107. //
  9108. // Describes the specified attribute of the specified AMI. You can specify only
  9109. // one attribute at a time.
  9110. //
  9111. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9112. // with awserr.Error's Code and Message methods to get detailed information about
  9113. // the error.
  9114. //
  9115. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9116. // API operation DescribeImageAttribute for usage and error information.
  9117. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute
  9118. func (c *EC2) DescribeImageAttribute(input *DescribeImageAttributeInput) (*DescribeImageAttributeOutput, error) {
  9119. req, out := c.DescribeImageAttributeRequest(input)
  9120. return out, req.Send()
  9121. }
  9122. // DescribeImageAttributeWithContext is the same as DescribeImageAttribute with the addition of
  9123. // the ability to pass a context and additional request options.
  9124. //
  9125. // See DescribeImageAttribute for details on how to use this API operation.
  9126. //
  9127. // The context must be non-nil and will be used for request cancellation. If
  9128. // the context is nil a panic will occur. In the future the SDK may create
  9129. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9130. // for more information on using Contexts.
  9131. func (c *EC2) DescribeImageAttributeWithContext(ctx aws.Context, input *DescribeImageAttributeInput, opts ...request.Option) (*DescribeImageAttributeOutput, error) {
  9132. req, out := c.DescribeImageAttributeRequest(input)
  9133. req.SetContext(ctx)
  9134. req.ApplyOptions(opts...)
  9135. return out, req.Send()
  9136. }
  9137. const opDescribeImages = "DescribeImages"
  9138. // DescribeImagesRequest generates a "aws/request.Request" representing the
  9139. // client's request for the DescribeImages operation. The "output" return
  9140. // value will be populated with the request's response once the request complets
  9141. // successfuly.
  9142. //
  9143. // Use "Send" method on the returned Request to send the API call to the service.
  9144. // the "output" return value is not valid until after Send returns without error.
  9145. //
  9146. // See DescribeImages for more information on using the DescribeImages
  9147. // API call, and error handling.
  9148. //
  9149. // This method is useful when you want to inject custom logic or configuration
  9150. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9151. //
  9152. //
  9153. // // Example sending a request using the DescribeImagesRequest method.
  9154. // req, resp := client.DescribeImagesRequest(params)
  9155. //
  9156. // err := req.Send()
  9157. // if err == nil { // resp is now filled
  9158. // fmt.Println(resp)
  9159. // }
  9160. //
  9161. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages
  9162. func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) {
  9163. op := &request.Operation{
  9164. Name: opDescribeImages,
  9165. HTTPMethod: "POST",
  9166. HTTPPath: "/",
  9167. }
  9168. if input == nil {
  9169. input = &DescribeImagesInput{}
  9170. }
  9171. output = &DescribeImagesOutput{}
  9172. req = c.newRequest(op, input, output)
  9173. return
  9174. }
  9175. // DescribeImages API operation for Amazon Elastic Compute Cloud.
  9176. //
  9177. // Describes one or more of the images (AMIs, AKIs, and ARIs) available to you.
  9178. // Images available to you include public images, private images that you own,
  9179. // and private images owned by other AWS accounts but for which you have explicit
  9180. // launch permissions.
  9181. //
  9182. // Deregistered images are included in the returned results for an unspecified
  9183. // interval after deregistration.
  9184. //
  9185. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9186. // with awserr.Error's Code and Message methods to get detailed information about
  9187. // the error.
  9188. //
  9189. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9190. // API operation DescribeImages for usage and error information.
  9191. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImages
  9192. func (c *EC2) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) {
  9193. req, out := c.DescribeImagesRequest(input)
  9194. return out, req.Send()
  9195. }
  9196. // DescribeImagesWithContext is the same as DescribeImages with the addition of
  9197. // the ability to pass a context and additional request options.
  9198. //
  9199. // See DescribeImages for details on how to use this API operation.
  9200. //
  9201. // The context must be non-nil and will be used for request cancellation. If
  9202. // the context is nil a panic will occur. In the future the SDK may create
  9203. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9204. // for more information on using Contexts.
  9205. func (c *EC2) DescribeImagesWithContext(ctx aws.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error) {
  9206. req, out := c.DescribeImagesRequest(input)
  9207. req.SetContext(ctx)
  9208. req.ApplyOptions(opts...)
  9209. return out, req.Send()
  9210. }
  9211. const opDescribeImportImageTasks = "DescribeImportImageTasks"
  9212. // DescribeImportImageTasksRequest generates a "aws/request.Request" representing the
  9213. // client's request for the DescribeImportImageTasks operation. The "output" return
  9214. // value will be populated with the request's response once the request complets
  9215. // successfuly.
  9216. //
  9217. // Use "Send" method on the returned Request to send the API call to the service.
  9218. // the "output" return value is not valid until after Send returns without error.
  9219. //
  9220. // See DescribeImportImageTasks for more information on using the DescribeImportImageTasks
  9221. // API call, and error handling.
  9222. //
  9223. // This method is useful when you want to inject custom logic or configuration
  9224. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9225. //
  9226. //
  9227. // // Example sending a request using the DescribeImportImageTasksRequest method.
  9228. // req, resp := client.DescribeImportImageTasksRequest(params)
  9229. //
  9230. // err := req.Send()
  9231. // if err == nil { // resp is now filled
  9232. // fmt.Println(resp)
  9233. // }
  9234. //
  9235. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks
  9236. func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInput) (req *request.Request, output *DescribeImportImageTasksOutput) {
  9237. op := &request.Operation{
  9238. Name: opDescribeImportImageTasks,
  9239. HTTPMethod: "POST",
  9240. HTTPPath: "/",
  9241. }
  9242. if input == nil {
  9243. input = &DescribeImportImageTasksInput{}
  9244. }
  9245. output = &DescribeImportImageTasksOutput{}
  9246. req = c.newRequest(op, input, output)
  9247. return
  9248. }
  9249. // DescribeImportImageTasks API operation for Amazon Elastic Compute Cloud.
  9250. //
  9251. // Displays details about an import virtual machine or import snapshot tasks
  9252. // that are already created.
  9253. //
  9254. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9255. // with awserr.Error's Code and Message methods to get detailed information about
  9256. // the error.
  9257. //
  9258. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9259. // API operation DescribeImportImageTasks for usage and error information.
  9260. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasks
  9261. func (c *EC2) DescribeImportImageTasks(input *DescribeImportImageTasksInput) (*DescribeImportImageTasksOutput, error) {
  9262. req, out := c.DescribeImportImageTasksRequest(input)
  9263. return out, req.Send()
  9264. }
  9265. // DescribeImportImageTasksWithContext is the same as DescribeImportImageTasks with the addition of
  9266. // the ability to pass a context and additional request options.
  9267. //
  9268. // See DescribeImportImageTasks for details on how to use this API operation.
  9269. //
  9270. // The context must be non-nil and will be used for request cancellation. If
  9271. // the context is nil a panic will occur. In the future the SDK may create
  9272. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9273. // for more information on using Contexts.
  9274. func (c *EC2) DescribeImportImageTasksWithContext(ctx aws.Context, input *DescribeImportImageTasksInput, opts ...request.Option) (*DescribeImportImageTasksOutput, error) {
  9275. req, out := c.DescribeImportImageTasksRequest(input)
  9276. req.SetContext(ctx)
  9277. req.ApplyOptions(opts...)
  9278. return out, req.Send()
  9279. }
  9280. const opDescribeImportSnapshotTasks = "DescribeImportSnapshotTasks"
  9281. // DescribeImportSnapshotTasksRequest generates a "aws/request.Request" representing the
  9282. // client's request for the DescribeImportSnapshotTasks operation. The "output" return
  9283. // value will be populated with the request's response once the request complets
  9284. // successfuly.
  9285. //
  9286. // Use "Send" method on the returned Request to send the API call to the service.
  9287. // the "output" return value is not valid until after Send returns without error.
  9288. //
  9289. // See DescribeImportSnapshotTasks for more information on using the DescribeImportSnapshotTasks
  9290. // API call, and error handling.
  9291. //
  9292. // This method is useful when you want to inject custom logic or configuration
  9293. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9294. //
  9295. //
  9296. // // Example sending a request using the DescribeImportSnapshotTasksRequest method.
  9297. // req, resp := client.DescribeImportSnapshotTasksRequest(params)
  9298. //
  9299. // err := req.Send()
  9300. // if err == nil { // resp is now filled
  9301. // fmt.Println(resp)
  9302. // }
  9303. //
  9304. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks
  9305. func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTasksInput) (req *request.Request, output *DescribeImportSnapshotTasksOutput) {
  9306. op := &request.Operation{
  9307. Name: opDescribeImportSnapshotTasks,
  9308. HTTPMethod: "POST",
  9309. HTTPPath: "/",
  9310. }
  9311. if input == nil {
  9312. input = &DescribeImportSnapshotTasksInput{}
  9313. }
  9314. output = &DescribeImportSnapshotTasksOutput{}
  9315. req = c.newRequest(op, input, output)
  9316. return
  9317. }
  9318. // DescribeImportSnapshotTasks API operation for Amazon Elastic Compute Cloud.
  9319. //
  9320. // Describes your import snapshot tasks.
  9321. //
  9322. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9323. // with awserr.Error's Code and Message methods to get detailed information about
  9324. // the error.
  9325. //
  9326. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9327. // API operation DescribeImportSnapshotTasks for usage and error information.
  9328. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasks
  9329. func (c *EC2) DescribeImportSnapshotTasks(input *DescribeImportSnapshotTasksInput) (*DescribeImportSnapshotTasksOutput, error) {
  9330. req, out := c.DescribeImportSnapshotTasksRequest(input)
  9331. return out, req.Send()
  9332. }
  9333. // DescribeImportSnapshotTasksWithContext is the same as DescribeImportSnapshotTasks with the addition of
  9334. // the ability to pass a context and additional request options.
  9335. //
  9336. // See DescribeImportSnapshotTasks for details on how to use this API operation.
  9337. //
  9338. // The context must be non-nil and will be used for request cancellation. If
  9339. // the context is nil a panic will occur. In the future the SDK may create
  9340. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9341. // for more information on using Contexts.
  9342. func (c *EC2) DescribeImportSnapshotTasksWithContext(ctx aws.Context, input *DescribeImportSnapshotTasksInput, opts ...request.Option) (*DescribeImportSnapshotTasksOutput, error) {
  9343. req, out := c.DescribeImportSnapshotTasksRequest(input)
  9344. req.SetContext(ctx)
  9345. req.ApplyOptions(opts...)
  9346. return out, req.Send()
  9347. }
  9348. const opDescribeInstanceAttribute = "DescribeInstanceAttribute"
  9349. // DescribeInstanceAttributeRequest generates a "aws/request.Request" representing the
  9350. // client's request for the DescribeInstanceAttribute operation. The "output" return
  9351. // value will be populated with the request's response once the request complets
  9352. // successfuly.
  9353. //
  9354. // Use "Send" method on the returned Request to send the API call to the service.
  9355. // the "output" return value is not valid until after Send returns without error.
  9356. //
  9357. // See DescribeInstanceAttribute for more information on using the DescribeInstanceAttribute
  9358. // API call, and error handling.
  9359. //
  9360. // This method is useful when you want to inject custom logic or configuration
  9361. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9362. //
  9363. //
  9364. // // Example sending a request using the DescribeInstanceAttributeRequest method.
  9365. // req, resp := client.DescribeInstanceAttributeRequest(params)
  9366. //
  9367. // err := req.Send()
  9368. // if err == nil { // resp is now filled
  9369. // fmt.Println(resp)
  9370. // }
  9371. //
  9372. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute
  9373. func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeInput) (req *request.Request, output *DescribeInstanceAttributeOutput) {
  9374. op := &request.Operation{
  9375. Name: opDescribeInstanceAttribute,
  9376. HTTPMethod: "POST",
  9377. HTTPPath: "/",
  9378. }
  9379. if input == nil {
  9380. input = &DescribeInstanceAttributeInput{}
  9381. }
  9382. output = &DescribeInstanceAttributeOutput{}
  9383. req = c.newRequest(op, input, output)
  9384. return
  9385. }
  9386. // DescribeInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  9387. //
  9388. // Describes the specified attribute of the specified instance. You can specify
  9389. // only one attribute at a time. Valid attribute values are: instanceType |
  9390. // kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior
  9391. // | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck |
  9392. // groupSet | ebsOptimized | sriovNetSupport
  9393. //
  9394. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9395. // with awserr.Error's Code and Message methods to get detailed information about
  9396. // the error.
  9397. //
  9398. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9399. // API operation DescribeInstanceAttribute for usage and error information.
  9400. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute
  9401. func (c *EC2) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) {
  9402. req, out := c.DescribeInstanceAttributeRequest(input)
  9403. return out, req.Send()
  9404. }
  9405. // DescribeInstanceAttributeWithContext is the same as DescribeInstanceAttribute with the addition of
  9406. // the ability to pass a context and additional request options.
  9407. //
  9408. // See DescribeInstanceAttribute for details on how to use this API operation.
  9409. //
  9410. // The context must be non-nil and will be used for request cancellation. If
  9411. // the context is nil a panic will occur. In the future the SDK may create
  9412. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9413. // for more information on using Contexts.
  9414. func (c *EC2) DescribeInstanceAttributeWithContext(ctx aws.Context, input *DescribeInstanceAttributeInput, opts ...request.Option) (*DescribeInstanceAttributeOutput, error) {
  9415. req, out := c.DescribeInstanceAttributeRequest(input)
  9416. req.SetContext(ctx)
  9417. req.ApplyOptions(opts...)
  9418. return out, req.Send()
  9419. }
  9420. const opDescribeInstanceCreditSpecifications = "DescribeInstanceCreditSpecifications"
  9421. // DescribeInstanceCreditSpecificationsRequest generates a "aws/request.Request" representing the
  9422. // client's request for the DescribeInstanceCreditSpecifications operation. The "output" return
  9423. // value will be populated with the request's response once the request complets
  9424. // successfuly.
  9425. //
  9426. // Use "Send" method on the returned Request to send the API call to the service.
  9427. // the "output" return value is not valid until after Send returns without error.
  9428. //
  9429. // See DescribeInstanceCreditSpecifications for more information on using the DescribeInstanceCreditSpecifications
  9430. // API call, and error handling.
  9431. //
  9432. // This method is useful when you want to inject custom logic or configuration
  9433. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9434. //
  9435. //
  9436. // // Example sending a request using the DescribeInstanceCreditSpecificationsRequest method.
  9437. // req, resp := client.DescribeInstanceCreditSpecificationsRequest(params)
  9438. //
  9439. // err := req.Send()
  9440. // if err == nil { // resp is now filled
  9441. // fmt.Println(resp)
  9442. // }
  9443. //
  9444. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecifications
  9445. func (c *EC2) DescribeInstanceCreditSpecificationsRequest(input *DescribeInstanceCreditSpecificationsInput) (req *request.Request, output *DescribeInstanceCreditSpecificationsOutput) {
  9446. op := &request.Operation{
  9447. Name: opDescribeInstanceCreditSpecifications,
  9448. HTTPMethod: "POST",
  9449. HTTPPath: "/",
  9450. }
  9451. if input == nil {
  9452. input = &DescribeInstanceCreditSpecificationsInput{}
  9453. }
  9454. output = &DescribeInstanceCreditSpecificationsOutput{}
  9455. req = c.newRequest(op, input, output)
  9456. return
  9457. }
  9458. // DescribeInstanceCreditSpecifications API operation for Amazon Elastic Compute Cloud.
  9459. //
  9460. // Describes the credit option for CPU usage of one or more of your T2 instances.
  9461. // The credit options are standard and unlimited.
  9462. //
  9463. // If you do not specify an instance ID, Amazon EC2 returns only the T2 instances
  9464. // with the unlimited credit option. If you specify one or more instance IDs,
  9465. // Amazon EC2 returns the credit option (standard or unlimited) of those instances.
  9466. // If you specify an instance ID that is not valid, such as an instance that
  9467. // is not a T2 instance, an error is returned.
  9468. //
  9469. // Recently terminated instances might appear in the returned results. This
  9470. // interval is usually less than one hour.
  9471. //
  9472. // If an Availability Zone is experiencing a service disruption and you specify
  9473. // instance IDs in the affected zone, or do not specify any instance IDs at
  9474. // all, the call fails. If you specify only instance IDs in an unaffected zone,
  9475. // the call works normally.
  9476. //
  9477. // For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
  9478. // in the Amazon Elastic Compute Cloud User Guide.
  9479. //
  9480. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9481. // with awserr.Error's Code and Message methods to get detailed information about
  9482. // the error.
  9483. //
  9484. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9485. // API operation DescribeInstanceCreditSpecifications for usage and error information.
  9486. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecifications
  9487. func (c *EC2) DescribeInstanceCreditSpecifications(input *DescribeInstanceCreditSpecificationsInput) (*DescribeInstanceCreditSpecificationsOutput, error) {
  9488. req, out := c.DescribeInstanceCreditSpecificationsRequest(input)
  9489. return out, req.Send()
  9490. }
  9491. // DescribeInstanceCreditSpecificationsWithContext is the same as DescribeInstanceCreditSpecifications with the addition of
  9492. // the ability to pass a context and additional request options.
  9493. //
  9494. // See DescribeInstanceCreditSpecifications for details on how to use this API operation.
  9495. //
  9496. // The context must be non-nil and will be used for request cancellation. If
  9497. // the context is nil a panic will occur. In the future the SDK may create
  9498. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9499. // for more information on using Contexts.
  9500. func (c *EC2) DescribeInstanceCreditSpecificationsWithContext(ctx aws.Context, input *DescribeInstanceCreditSpecificationsInput, opts ...request.Option) (*DescribeInstanceCreditSpecificationsOutput, error) {
  9501. req, out := c.DescribeInstanceCreditSpecificationsRequest(input)
  9502. req.SetContext(ctx)
  9503. req.ApplyOptions(opts...)
  9504. return out, req.Send()
  9505. }
  9506. const opDescribeInstanceStatus = "DescribeInstanceStatus"
  9507. // DescribeInstanceStatusRequest generates a "aws/request.Request" representing the
  9508. // client's request for the DescribeInstanceStatus operation. The "output" return
  9509. // value will be populated with the request's response once the request complets
  9510. // successfuly.
  9511. //
  9512. // Use "Send" method on the returned Request to send the API call to the service.
  9513. // the "output" return value is not valid until after Send returns without error.
  9514. //
  9515. // See DescribeInstanceStatus for more information on using the DescribeInstanceStatus
  9516. // API call, and error handling.
  9517. //
  9518. // This method is useful when you want to inject custom logic or configuration
  9519. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9520. //
  9521. //
  9522. // // Example sending a request using the DescribeInstanceStatusRequest method.
  9523. // req, resp := client.DescribeInstanceStatusRequest(params)
  9524. //
  9525. // err := req.Send()
  9526. // if err == nil { // resp is now filled
  9527. // fmt.Println(resp)
  9528. // }
  9529. //
  9530. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus
  9531. func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) (req *request.Request, output *DescribeInstanceStatusOutput) {
  9532. op := &request.Operation{
  9533. Name: opDescribeInstanceStatus,
  9534. HTTPMethod: "POST",
  9535. HTTPPath: "/",
  9536. Paginator: &request.Paginator{
  9537. InputTokens: []string{"NextToken"},
  9538. OutputTokens: []string{"NextToken"},
  9539. LimitToken: "MaxResults",
  9540. TruncationToken: "",
  9541. },
  9542. }
  9543. if input == nil {
  9544. input = &DescribeInstanceStatusInput{}
  9545. }
  9546. output = &DescribeInstanceStatusOutput{}
  9547. req = c.newRequest(op, input, output)
  9548. return
  9549. }
  9550. // DescribeInstanceStatus API operation for Amazon Elastic Compute Cloud.
  9551. //
  9552. // Describes the status of one or more instances. By default, only running instances
  9553. // are described, unless you specifically indicate to return the status of all
  9554. // instances.
  9555. //
  9556. // Instance status includes the following components:
  9557. //
  9558. // * Status checks - Amazon EC2 performs status checks on running EC2 instances
  9559. // to identify hardware and software issues. For more information, see Status
  9560. // Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html)
  9561. // and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html)
  9562. // in the Amazon Elastic Compute Cloud User Guide.
  9563. //
  9564. // * Scheduled events - Amazon EC2 can schedule events (such as reboot, stop,
  9565. // or terminate) for your instances related to hardware issues, software
  9566. // updates, or system maintenance. For more information, see Scheduled Events
  9567. // for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html)
  9568. // in the Amazon Elastic Compute Cloud User Guide.
  9569. //
  9570. // * Instance state - You can manage your instances from the moment you launch
  9571. // them through their termination. For more information, see Instance Lifecycle
  9572. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  9573. // in the Amazon Elastic Compute Cloud User Guide.
  9574. //
  9575. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9576. // with awserr.Error's Code and Message methods to get detailed information about
  9577. // the error.
  9578. //
  9579. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9580. // API operation DescribeInstanceStatus for usage and error information.
  9581. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatus
  9582. func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*DescribeInstanceStatusOutput, error) {
  9583. req, out := c.DescribeInstanceStatusRequest(input)
  9584. return out, req.Send()
  9585. }
  9586. // DescribeInstanceStatusWithContext is the same as DescribeInstanceStatus with the addition of
  9587. // the ability to pass a context and additional request options.
  9588. //
  9589. // See DescribeInstanceStatus for details on how to use this API operation.
  9590. //
  9591. // The context must be non-nil and will be used for request cancellation. If
  9592. // the context is nil a panic will occur. In the future the SDK may create
  9593. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9594. // for more information on using Contexts.
  9595. func (c *EC2) DescribeInstanceStatusWithContext(ctx aws.Context, input *DescribeInstanceStatusInput, opts ...request.Option) (*DescribeInstanceStatusOutput, error) {
  9596. req, out := c.DescribeInstanceStatusRequest(input)
  9597. req.SetContext(ctx)
  9598. req.ApplyOptions(opts...)
  9599. return out, req.Send()
  9600. }
  9601. // DescribeInstanceStatusPages iterates over the pages of a DescribeInstanceStatus operation,
  9602. // calling the "fn" function with the response data for each page. To stop
  9603. // iterating, return false from the fn function.
  9604. //
  9605. // See DescribeInstanceStatus method for more information on how to use this operation.
  9606. //
  9607. // Note: This operation can generate multiple requests to a service.
  9608. //
  9609. // // Example iterating over at most 3 pages of a DescribeInstanceStatus operation.
  9610. // pageNum := 0
  9611. // err := client.DescribeInstanceStatusPages(params,
  9612. // func(page *DescribeInstanceStatusOutput, lastPage bool) bool {
  9613. // pageNum++
  9614. // fmt.Println(page)
  9615. // return pageNum <= 3
  9616. // })
  9617. //
  9618. func (c *EC2) DescribeInstanceStatusPages(input *DescribeInstanceStatusInput, fn func(*DescribeInstanceStatusOutput, bool) bool) error {
  9619. return c.DescribeInstanceStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  9620. }
  9621. // DescribeInstanceStatusPagesWithContext same as DescribeInstanceStatusPages except
  9622. // it takes a Context and allows setting request options on the pages.
  9623. //
  9624. // The context must be non-nil and will be used for request cancellation. If
  9625. // the context is nil a panic will occur. In the future the SDK may create
  9626. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9627. // for more information on using Contexts.
  9628. func (c *EC2) DescribeInstanceStatusPagesWithContext(ctx aws.Context, input *DescribeInstanceStatusInput, fn func(*DescribeInstanceStatusOutput, bool) bool, opts ...request.Option) error {
  9629. p := request.Pagination{
  9630. NewRequest: func() (*request.Request, error) {
  9631. var inCpy *DescribeInstanceStatusInput
  9632. if input != nil {
  9633. tmp := *input
  9634. inCpy = &tmp
  9635. }
  9636. req, _ := c.DescribeInstanceStatusRequest(inCpy)
  9637. req.SetContext(ctx)
  9638. req.ApplyOptions(opts...)
  9639. return req, nil
  9640. },
  9641. }
  9642. cont := true
  9643. for p.Next() && cont {
  9644. cont = fn(p.Page().(*DescribeInstanceStatusOutput), !p.HasNextPage())
  9645. }
  9646. return p.Err()
  9647. }
  9648. const opDescribeInstances = "DescribeInstances"
  9649. // DescribeInstancesRequest generates a "aws/request.Request" representing the
  9650. // client's request for the DescribeInstances operation. The "output" return
  9651. // value will be populated with the request's response once the request complets
  9652. // successfuly.
  9653. //
  9654. // Use "Send" method on the returned Request to send the API call to the service.
  9655. // the "output" return value is not valid until after Send returns without error.
  9656. //
  9657. // See DescribeInstances for more information on using the DescribeInstances
  9658. // API call, and error handling.
  9659. //
  9660. // This method is useful when you want to inject custom logic or configuration
  9661. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9662. //
  9663. //
  9664. // // Example sending a request using the DescribeInstancesRequest method.
  9665. // req, resp := client.DescribeInstancesRequest(params)
  9666. //
  9667. // err := req.Send()
  9668. // if err == nil { // resp is now filled
  9669. // fmt.Println(resp)
  9670. // }
  9671. //
  9672. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances
  9673. func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  9674. op := &request.Operation{
  9675. Name: opDescribeInstances,
  9676. HTTPMethod: "POST",
  9677. HTTPPath: "/",
  9678. Paginator: &request.Paginator{
  9679. InputTokens: []string{"NextToken"},
  9680. OutputTokens: []string{"NextToken"},
  9681. LimitToken: "MaxResults",
  9682. TruncationToken: "",
  9683. },
  9684. }
  9685. if input == nil {
  9686. input = &DescribeInstancesInput{}
  9687. }
  9688. output = &DescribeInstancesOutput{}
  9689. req = c.newRequest(op, input, output)
  9690. return
  9691. }
  9692. // DescribeInstances API operation for Amazon Elastic Compute Cloud.
  9693. //
  9694. // Describes one or more of your instances.
  9695. //
  9696. // If you specify one or more instance IDs, Amazon EC2 returns information for
  9697. // those instances. If you do not specify instance IDs, Amazon EC2 returns information
  9698. // for all relevant instances. If you specify an instance ID that is not valid,
  9699. // an error is returned. If you specify an instance that you do not own, it
  9700. // is not included in the returned results.
  9701. //
  9702. // Recently terminated instances might appear in the returned results. This
  9703. // interval is usually less than one hour.
  9704. //
  9705. // If you describe instances in the rare case where an Availability Zone is
  9706. // experiencing a service disruption and you specify instance IDs that are in
  9707. // the affected zone, or do not specify any instance IDs at all, the call fails.
  9708. // If you describe instances and specify only instance IDs that are in an unaffected
  9709. // zone, the call works normally.
  9710. //
  9711. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9712. // with awserr.Error's Code and Message methods to get detailed information about
  9713. // the error.
  9714. //
  9715. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9716. // API operation DescribeInstances for usage and error information.
  9717. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstances
  9718. func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  9719. req, out := c.DescribeInstancesRequest(input)
  9720. return out, req.Send()
  9721. }
  9722. // DescribeInstancesWithContext is the same as DescribeInstances with the addition of
  9723. // the ability to pass a context and additional request options.
  9724. //
  9725. // See DescribeInstances for details on how to use this API operation.
  9726. //
  9727. // The context must be non-nil and will be used for request cancellation. If
  9728. // the context is nil a panic will occur. In the future the SDK may create
  9729. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9730. // for more information on using Contexts.
  9731. func (c *EC2) DescribeInstancesWithContext(ctx aws.Context, input *DescribeInstancesInput, opts ...request.Option) (*DescribeInstancesOutput, error) {
  9732. req, out := c.DescribeInstancesRequest(input)
  9733. req.SetContext(ctx)
  9734. req.ApplyOptions(opts...)
  9735. return out, req.Send()
  9736. }
  9737. // DescribeInstancesPages iterates over the pages of a DescribeInstances operation,
  9738. // calling the "fn" function with the response data for each page. To stop
  9739. // iterating, return false from the fn function.
  9740. //
  9741. // See DescribeInstances method for more information on how to use this operation.
  9742. //
  9743. // Note: This operation can generate multiple requests to a service.
  9744. //
  9745. // // Example iterating over at most 3 pages of a DescribeInstances operation.
  9746. // pageNum := 0
  9747. // err := client.DescribeInstancesPages(params,
  9748. // func(page *DescribeInstancesOutput, lastPage bool) bool {
  9749. // pageNum++
  9750. // fmt.Println(page)
  9751. // return pageNum <= 3
  9752. // })
  9753. //
  9754. func (c *EC2) DescribeInstancesPages(input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool) error {
  9755. return c.DescribeInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  9756. }
  9757. // DescribeInstancesPagesWithContext same as DescribeInstancesPages except
  9758. // it takes a Context and allows setting request options on the pages.
  9759. //
  9760. // The context must be non-nil and will be used for request cancellation. If
  9761. // the context is nil a panic will occur. In the future the SDK may create
  9762. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9763. // for more information on using Contexts.
  9764. func (c *EC2) DescribeInstancesPagesWithContext(ctx aws.Context, input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool, opts ...request.Option) error {
  9765. p := request.Pagination{
  9766. NewRequest: func() (*request.Request, error) {
  9767. var inCpy *DescribeInstancesInput
  9768. if input != nil {
  9769. tmp := *input
  9770. inCpy = &tmp
  9771. }
  9772. req, _ := c.DescribeInstancesRequest(inCpy)
  9773. req.SetContext(ctx)
  9774. req.ApplyOptions(opts...)
  9775. return req, nil
  9776. },
  9777. }
  9778. cont := true
  9779. for p.Next() && cont {
  9780. cont = fn(p.Page().(*DescribeInstancesOutput), !p.HasNextPage())
  9781. }
  9782. return p.Err()
  9783. }
  9784. const opDescribeInternetGateways = "DescribeInternetGateways"
  9785. // DescribeInternetGatewaysRequest generates a "aws/request.Request" representing the
  9786. // client's request for the DescribeInternetGateways operation. The "output" return
  9787. // value will be populated with the request's response once the request complets
  9788. // successfuly.
  9789. //
  9790. // Use "Send" method on the returned Request to send the API call to the service.
  9791. // the "output" return value is not valid until after Send returns without error.
  9792. //
  9793. // See DescribeInternetGateways for more information on using the DescribeInternetGateways
  9794. // API call, and error handling.
  9795. //
  9796. // This method is useful when you want to inject custom logic or configuration
  9797. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9798. //
  9799. //
  9800. // // Example sending a request using the DescribeInternetGatewaysRequest method.
  9801. // req, resp := client.DescribeInternetGatewaysRequest(params)
  9802. //
  9803. // err := req.Send()
  9804. // if err == nil { // resp is now filled
  9805. // fmt.Println(resp)
  9806. // }
  9807. //
  9808. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways
  9809. func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInput) (req *request.Request, output *DescribeInternetGatewaysOutput) {
  9810. op := &request.Operation{
  9811. Name: opDescribeInternetGateways,
  9812. HTTPMethod: "POST",
  9813. HTTPPath: "/",
  9814. }
  9815. if input == nil {
  9816. input = &DescribeInternetGatewaysInput{}
  9817. }
  9818. output = &DescribeInternetGatewaysOutput{}
  9819. req = c.newRequest(op, input, output)
  9820. return
  9821. }
  9822. // DescribeInternetGateways API operation for Amazon Elastic Compute Cloud.
  9823. //
  9824. // Describes one or more of your Internet gateways.
  9825. //
  9826. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9827. // with awserr.Error's Code and Message methods to get detailed information about
  9828. // the error.
  9829. //
  9830. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9831. // API operation DescribeInternetGateways for usage and error information.
  9832. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways
  9833. func (c *EC2) DescribeInternetGateways(input *DescribeInternetGatewaysInput) (*DescribeInternetGatewaysOutput, error) {
  9834. req, out := c.DescribeInternetGatewaysRequest(input)
  9835. return out, req.Send()
  9836. }
  9837. // DescribeInternetGatewaysWithContext is the same as DescribeInternetGateways with the addition of
  9838. // the ability to pass a context and additional request options.
  9839. //
  9840. // See DescribeInternetGateways for details on how to use this API operation.
  9841. //
  9842. // The context must be non-nil and will be used for request cancellation. If
  9843. // the context is nil a panic will occur. In the future the SDK may create
  9844. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9845. // for more information on using Contexts.
  9846. func (c *EC2) DescribeInternetGatewaysWithContext(ctx aws.Context, input *DescribeInternetGatewaysInput, opts ...request.Option) (*DescribeInternetGatewaysOutput, error) {
  9847. req, out := c.DescribeInternetGatewaysRequest(input)
  9848. req.SetContext(ctx)
  9849. req.ApplyOptions(opts...)
  9850. return out, req.Send()
  9851. }
  9852. const opDescribeKeyPairs = "DescribeKeyPairs"
  9853. // DescribeKeyPairsRequest generates a "aws/request.Request" representing the
  9854. // client's request for the DescribeKeyPairs operation. The "output" return
  9855. // value will be populated with the request's response once the request complets
  9856. // successfuly.
  9857. //
  9858. // Use "Send" method on the returned Request to send the API call to the service.
  9859. // the "output" return value is not valid until after Send returns without error.
  9860. //
  9861. // See DescribeKeyPairs for more information on using the DescribeKeyPairs
  9862. // API call, and error handling.
  9863. //
  9864. // This method is useful when you want to inject custom logic or configuration
  9865. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9866. //
  9867. //
  9868. // // Example sending a request using the DescribeKeyPairsRequest method.
  9869. // req, resp := client.DescribeKeyPairsRequest(params)
  9870. //
  9871. // err := req.Send()
  9872. // if err == nil { // resp is now filled
  9873. // fmt.Println(resp)
  9874. // }
  9875. //
  9876. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs
  9877. func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *request.Request, output *DescribeKeyPairsOutput) {
  9878. op := &request.Operation{
  9879. Name: opDescribeKeyPairs,
  9880. HTTPMethod: "POST",
  9881. HTTPPath: "/",
  9882. }
  9883. if input == nil {
  9884. input = &DescribeKeyPairsInput{}
  9885. }
  9886. output = &DescribeKeyPairsOutput{}
  9887. req = c.newRequest(op, input, output)
  9888. return
  9889. }
  9890. // DescribeKeyPairs API operation for Amazon Elastic Compute Cloud.
  9891. //
  9892. // Describes one or more of your key pairs.
  9893. //
  9894. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  9895. // in the Amazon Elastic Compute Cloud User Guide.
  9896. //
  9897. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9898. // with awserr.Error's Code and Message methods to get detailed information about
  9899. // the error.
  9900. //
  9901. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9902. // API operation DescribeKeyPairs for usage and error information.
  9903. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairs
  9904. func (c *EC2) DescribeKeyPairs(input *DescribeKeyPairsInput) (*DescribeKeyPairsOutput, error) {
  9905. req, out := c.DescribeKeyPairsRequest(input)
  9906. return out, req.Send()
  9907. }
  9908. // DescribeKeyPairsWithContext is the same as DescribeKeyPairs with the addition of
  9909. // the ability to pass a context and additional request options.
  9910. //
  9911. // See DescribeKeyPairs for details on how to use this API operation.
  9912. //
  9913. // The context must be non-nil and will be used for request cancellation. If
  9914. // the context is nil a panic will occur. In the future the SDK may create
  9915. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9916. // for more information on using Contexts.
  9917. func (c *EC2) DescribeKeyPairsWithContext(ctx aws.Context, input *DescribeKeyPairsInput, opts ...request.Option) (*DescribeKeyPairsOutput, error) {
  9918. req, out := c.DescribeKeyPairsRequest(input)
  9919. req.SetContext(ctx)
  9920. req.ApplyOptions(opts...)
  9921. return out, req.Send()
  9922. }
  9923. const opDescribeLaunchTemplateVersions = "DescribeLaunchTemplateVersions"
  9924. // DescribeLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the
  9925. // client's request for the DescribeLaunchTemplateVersions operation. The "output" return
  9926. // value will be populated with the request's response once the request complets
  9927. // successfuly.
  9928. //
  9929. // Use "Send" method on the returned Request to send the API call to the service.
  9930. // the "output" return value is not valid until after Send returns without error.
  9931. //
  9932. // See DescribeLaunchTemplateVersions for more information on using the DescribeLaunchTemplateVersions
  9933. // API call, and error handling.
  9934. //
  9935. // This method is useful when you want to inject custom logic or configuration
  9936. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9937. //
  9938. //
  9939. // // Example sending a request using the DescribeLaunchTemplateVersionsRequest method.
  9940. // req, resp := client.DescribeLaunchTemplateVersionsRequest(params)
  9941. //
  9942. // err := req.Send()
  9943. // if err == nil { // resp is now filled
  9944. // fmt.Println(resp)
  9945. // }
  9946. //
  9947. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions
  9948. func (c *EC2) DescribeLaunchTemplateVersionsRequest(input *DescribeLaunchTemplateVersionsInput) (req *request.Request, output *DescribeLaunchTemplateVersionsOutput) {
  9949. op := &request.Operation{
  9950. Name: opDescribeLaunchTemplateVersions,
  9951. HTTPMethod: "POST",
  9952. HTTPPath: "/",
  9953. }
  9954. if input == nil {
  9955. input = &DescribeLaunchTemplateVersionsInput{}
  9956. }
  9957. output = &DescribeLaunchTemplateVersionsOutput{}
  9958. req = c.newRequest(op, input, output)
  9959. return
  9960. }
  9961. // DescribeLaunchTemplateVersions API operation for Amazon Elastic Compute Cloud.
  9962. //
  9963. // Describes one or more versions of a specified launch template. You can describe
  9964. // all versions, individual versions, or a range of versions.
  9965. //
  9966. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9967. // with awserr.Error's Code and Message methods to get detailed information about
  9968. // the error.
  9969. //
  9970. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  9971. // API operation DescribeLaunchTemplateVersions for usage and error information.
  9972. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions
  9973. func (c *EC2) DescribeLaunchTemplateVersions(input *DescribeLaunchTemplateVersionsInput) (*DescribeLaunchTemplateVersionsOutput, error) {
  9974. req, out := c.DescribeLaunchTemplateVersionsRequest(input)
  9975. return out, req.Send()
  9976. }
  9977. // DescribeLaunchTemplateVersionsWithContext is the same as DescribeLaunchTemplateVersions with the addition of
  9978. // the ability to pass a context and additional request options.
  9979. //
  9980. // See DescribeLaunchTemplateVersions for details on how to use this API operation.
  9981. //
  9982. // The context must be non-nil and will be used for request cancellation. If
  9983. // the context is nil a panic will occur. In the future the SDK may create
  9984. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9985. // for more information on using Contexts.
  9986. func (c *EC2) DescribeLaunchTemplateVersionsWithContext(ctx aws.Context, input *DescribeLaunchTemplateVersionsInput, opts ...request.Option) (*DescribeLaunchTemplateVersionsOutput, error) {
  9987. req, out := c.DescribeLaunchTemplateVersionsRequest(input)
  9988. req.SetContext(ctx)
  9989. req.ApplyOptions(opts...)
  9990. return out, req.Send()
  9991. }
  9992. const opDescribeLaunchTemplates = "DescribeLaunchTemplates"
  9993. // DescribeLaunchTemplatesRequest generates a "aws/request.Request" representing the
  9994. // client's request for the DescribeLaunchTemplates operation. The "output" return
  9995. // value will be populated with the request's response once the request complets
  9996. // successfuly.
  9997. //
  9998. // Use "Send" method on the returned Request to send the API call to the service.
  9999. // the "output" return value is not valid until after Send returns without error.
  10000. //
  10001. // See DescribeLaunchTemplates for more information on using the DescribeLaunchTemplates
  10002. // API call, and error handling.
  10003. //
  10004. // This method is useful when you want to inject custom logic or configuration
  10005. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10006. //
  10007. //
  10008. // // Example sending a request using the DescribeLaunchTemplatesRequest method.
  10009. // req, resp := client.DescribeLaunchTemplatesRequest(params)
  10010. //
  10011. // err := req.Send()
  10012. // if err == nil { // resp is now filled
  10013. // fmt.Println(resp)
  10014. // }
  10015. //
  10016. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates
  10017. func (c *EC2) DescribeLaunchTemplatesRequest(input *DescribeLaunchTemplatesInput) (req *request.Request, output *DescribeLaunchTemplatesOutput) {
  10018. op := &request.Operation{
  10019. Name: opDescribeLaunchTemplates,
  10020. HTTPMethod: "POST",
  10021. HTTPPath: "/",
  10022. }
  10023. if input == nil {
  10024. input = &DescribeLaunchTemplatesInput{}
  10025. }
  10026. output = &DescribeLaunchTemplatesOutput{}
  10027. req = c.newRequest(op, input, output)
  10028. return
  10029. }
  10030. // DescribeLaunchTemplates API operation for Amazon Elastic Compute Cloud.
  10031. //
  10032. // Describes one or more launch templates.
  10033. //
  10034. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10035. // with awserr.Error's Code and Message methods to get detailed information about
  10036. // the error.
  10037. //
  10038. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10039. // API operation DescribeLaunchTemplates for usage and error information.
  10040. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplates
  10041. func (c *EC2) DescribeLaunchTemplates(input *DescribeLaunchTemplatesInput) (*DescribeLaunchTemplatesOutput, error) {
  10042. req, out := c.DescribeLaunchTemplatesRequest(input)
  10043. return out, req.Send()
  10044. }
  10045. // DescribeLaunchTemplatesWithContext is the same as DescribeLaunchTemplates with the addition of
  10046. // the ability to pass a context and additional request options.
  10047. //
  10048. // See DescribeLaunchTemplates for details on how to use this API operation.
  10049. //
  10050. // The context must be non-nil and will be used for request cancellation. If
  10051. // the context is nil a panic will occur. In the future the SDK may create
  10052. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10053. // for more information on using Contexts.
  10054. func (c *EC2) DescribeLaunchTemplatesWithContext(ctx aws.Context, input *DescribeLaunchTemplatesInput, opts ...request.Option) (*DescribeLaunchTemplatesOutput, error) {
  10055. req, out := c.DescribeLaunchTemplatesRequest(input)
  10056. req.SetContext(ctx)
  10057. req.ApplyOptions(opts...)
  10058. return out, req.Send()
  10059. }
  10060. const opDescribeMovingAddresses = "DescribeMovingAddresses"
  10061. // DescribeMovingAddressesRequest generates a "aws/request.Request" representing the
  10062. // client's request for the DescribeMovingAddresses operation. The "output" return
  10063. // value will be populated with the request's response once the request complets
  10064. // successfuly.
  10065. //
  10066. // Use "Send" method on the returned Request to send the API call to the service.
  10067. // the "output" return value is not valid until after Send returns without error.
  10068. //
  10069. // See DescribeMovingAddresses for more information on using the DescribeMovingAddresses
  10070. // API call, and error handling.
  10071. //
  10072. // This method is useful when you want to inject custom logic or configuration
  10073. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10074. //
  10075. //
  10076. // // Example sending a request using the DescribeMovingAddressesRequest method.
  10077. // req, resp := client.DescribeMovingAddressesRequest(params)
  10078. //
  10079. // err := req.Send()
  10080. // if err == nil { // resp is now filled
  10081. // fmt.Println(resp)
  10082. // }
  10083. //
  10084. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses
  10085. func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput) (req *request.Request, output *DescribeMovingAddressesOutput) {
  10086. op := &request.Operation{
  10087. Name: opDescribeMovingAddresses,
  10088. HTTPMethod: "POST",
  10089. HTTPPath: "/",
  10090. }
  10091. if input == nil {
  10092. input = &DescribeMovingAddressesInput{}
  10093. }
  10094. output = &DescribeMovingAddressesOutput{}
  10095. req = c.newRequest(op, input, output)
  10096. return
  10097. }
  10098. // DescribeMovingAddresses API operation for Amazon Elastic Compute Cloud.
  10099. //
  10100. // Describes your Elastic IP addresses that are being moved to the EC2-VPC platform,
  10101. // or that are being restored to the EC2-Classic platform. This request does
  10102. // not return information about any other Elastic IP addresses in your account.
  10103. //
  10104. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10105. // with awserr.Error's Code and Message methods to get detailed information about
  10106. // the error.
  10107. //
  10108. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10109. // API operation DescribeMovingAddresses for usage and error information.
  10110. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddresses
  10111. func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*DescribeMovingAddressesOutput, error) {
  10112. req, out := c.DescribeMovingAddressesRequest(input)
  10113. return out, req.Send()
  10114. }
  10115. // DescribeMovingAddressesWithContext is the same as DescribeMovingAddresses with the addition of
  10116. // the ability to pass a context and additional request options.
  10117. //
  10118. // See DescribeMovingAddresses for details on how to use this API operation.
  10119. //
  10120. // The context must be non-nil and will be used for request cancellation. If
  10121. // the context is nil a panic will occur. In the future the SDK may create
  10122. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10123. // for more information on using Contexts.
  10124. func (c *EC2) DescribeMovingAddressesWithContext(ctx aws.Context, input *DescribeMovingAddressesInput, opts ...request.Option) (*DescribeMovingAddressesOutput, error) {
  10125. req, out := c.DescribeMovingAddressesRequest(input)
  10126. req.SetContext(ctx)
  10127. req.ApplyOptions(opts...)
  10128. return out, req.Send()
  10129. }
  10130. const opDescribeNatGateways = "DescribeNatGateways"
  10131. // DescribeNatGatewaysRequest generates a "aws/request.Request" representing the
  10132. // client's request for the DescribeNatGateways operation. The "output" return
  10133. // value will be populated with the request's response once the request complets
  10134. // successfuly.
  10135. //
  10136. // Use "Send" method on the returned Request to send the API call to the service.
  10137. // the "output" return value is not valid until after Send returns without error.
  10138. //
  10139. // See DescribeNatGateways for more information on using the DescribeNatGateways
  10140. // API call, and error handling.
  10141. //
  10142. // This method is useful when you want to inject custom logic or configuration
  10143. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10144. //
  10145. //
  10146. // // Example sending a request using the DescribeNatGatewaysRequest method.
  10147. // req, resp := client.DescribeNatGatewaysRequest(params)
  10148. //
  10149. // err := req.Send()
  10150. // if err == nil { // resp is now filled
  10151. // fmt.Println(resp)
  10152. // }
  10153. //
  10154. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways
  10155. func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req *request.Request, output *DescribeNatGatewaysOutput) {
  10156. op := &request.Operation{
  10157. Name: opDescribeNatGateways,
  10158. HTTPMethod: "POST",
  10159. HTTPPath: "/",
  10160. Paginator: &request.Paginator{
  10161. InputTokens: []string{"NextToken"},
  10162. OutputTokens: []string{"NextToken"},
  10163. LimitToken: "MaxResults",
  10164. TruncationToken: "",
  10165. },
  10166. }
  10167. if input == nil {
  10168. input = &DescribeNatGatewaysInput{}
  10169. }
  10170. output = &DescribeNatGatewaysOutput{}
  10171. req = c.newRequest(op, input, output)
  10172. return
  10173. }
  10174. // DescribeNatGateways API operation for Amazon Elastic Compute Cloud.
  10175. //
  10176. // Describes one or more of the your NAT gateways.
  10177. //
  10178. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10179. // with awserr.Error's Code and Message methods to get detailed information about
  10180. // the error.
  10181. //
  10182. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10183. // API operation DescribeNatGateways for usage and error information.
  10184. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGateways
  10185. func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) {
  10186. req, out := c.DescribeNatGatewaysRequest(input)
  10187. return out, req.Send()
  10188. }
  10189. // DescribeNatGatewaysWithContext is the same as DescribeNatGateways with the addition of
  10190. // the ability to pass a context and additional request options.
  10191. //
  10192. // See DescribeNatGateways for details on how to use this API operation.
  10193. //
  10194. // The context must be non-nil and will be used for request cancellation. If
  10195. // the context is nil a panic will occur. In the future the SDK may create
  10196. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10197. // for more information on using Contexts.
  10198. func (c *EC2) DescribeNatGatewaysWithContext(ctx aws.Context, input *DescribeNatGatewaysInput, opts ...request.Option) (*DescribeNatGatewaysOutput, error) {
  10199. req, out := c.DescribeNatGatewaysRequest(input)
  10200. req.SetContext(ctx)
  10201. req.ApplyOptions(opts...)
  10202. return out, req.Send()
  10203. }
  10204. // DescribeNatGatewaysPages iterates over the pages of a DescribeNatGateways operation,
  10205. // calling the "fn" function with the response data for each page. To stop
  10206. // iterating, return false from the fn function.
  10207. //
  10208. // See DescribeNatGateways method for more information on how to use this operation.
  10209. //
  10210. // Note: This operation can generate multiple requests to a service.
  10211. //
  10212. // // Example iterating over at most 3 pages of a DescribeNatGateways operation.
  10213. // pageNum := 0
  10214. // err := client.DescribeNatGatewaysPages(params,
  10215. // func(page *DescribeNatGatewaysOutput, lastPage bool) bool {
  10216. // pageNum++
  10217. // fmt.Println(page)
  10218. // return pageNum <= 3
  10219. // })
  10220. //
  10221. func (c *EC2) DescribeNatGatewaysPages(input *DescribeNatGatewaysInput, fn func(*DescribeNatGatewaysOutput, bool) bool) error {
  10222. return c.DescribeNatGatewaysPagesWithContext(aws.BackgroundContext(), input, fn)
  10223. }
  10224. // DescribeNatGatewaysPagesWithContext same as DescribeNatGatewaysPages except
  10225. // it takes a Context and allows setting request options on the pages.
  10226. //
  10227. // The context must be non-nil and will be used for request cancellation. If
  10228. // the context is nil a panic will occur. In the future the SDK may create
  10229. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10230. // for more information on using Contexts.
  10231. func (c *EC2) DescribeNatGatewaysPagesWithContext(ctx aws.Context, input *DescribeNatGatewaysInput, fn func(*DescribeNatGatewaysOutput, bool) bool, opts ...request.Option) error {
  10232. p := request.Pagination{
  10233. NewRequest: func() (*request.Request, error) {
  10234. var inCpy *DescribeNatGatewaysInput
  10235. if input != nil {
  10236. tmp := *input
  10237. inCpy = &tmp
  10238. }
  10239. req, _ := c.DescribeNatGatewaysRequest(inCpy)
  10240. req.SetContext(ctx)
  10241. req.ApplyOptions(opts...)
  10242. return req, nil
  10243. },
  10244. }
  10245. cont := true
  10246. for p.Next() && cont {
  10247. cont = fn(p.Page().(*DescribeNatGatewaysOutput), !p.HasNextPage())
  10248. }
  10249. return p.Err()
  10250. }
  10251. const opDescribeNetworkAcls = "DescribeNetworkAcls"
  10252. // DescribeNetworkAclsRequest generates a "aws/request.Request" representing the
  10253. // client's request for the DescribeNetworkAcls operation. The "output" return
  10254. // value will be populated with the request's response once the request complets
  10255. // successfuly.
  10256. //
  10257. // Use "Send" method on the returned Request to send the API call to the service.
  10258. // the "output" return value is not valid until after Send returns without error.
  10259. //
  10260. // See DescribeNetworkAcls for more information on using the DescribeNetworkAcls
  10261. // API call, and error handling.
  10262. //
  10263. // This method is useful when you want to inject custom logic or configuration
  10264. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10265. //
  10266. //
  10267. // // Example sending a request using the DescribeNetworkAclsRequest method.
  10268. // req, resp := client.DescribeNetworkAclsRequest(params)
  10269. //
  10270. // err := req.Send()
  10271. // if err == nil { // resp is now filled
  10272. // fmt.Println(resp)
  10273. // }
  10274. //
  10275. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls
  10276. func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req *request.Request, output *DescribeNetworkAclsOutput) {
  10277. op := &request.Operation{
  10278. Name: opDescribeNetworkAcls,
  10279. HTTPMethod: "POST",
  10280. HTTPPath: "/",
  10281. }
  10282. if input == nil {
  10283. input = &DescribeNetworkAclsInput{}
  10284. }
  10285. output = &DescribeNetworkAclsOutput{}
  10286. req = c.newRequest(op, input, output)
  10287. return
  10288. }
  10289. // DescribeNetworkAcls API operation for Amazon Elastic Compute Cloud.
  10290. //
  10291. // Describes one or more of your network ACLs.
  10292. //
  10293. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  10294. // in the Amazon Virtual Private Cloud User Guide.
  10295. //
  10296. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10297. // with awserr.Error's Code and Message methods to get detailed information about
  10298. // the error.
  10299. //
  10300. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10301. // API operation DescribeNetworkAcls for usage and error information.
  10302. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls
  10303. func (c *EC2) DescribeNetworkAcls(input *DescribeNetworkAclsInput) (*DescribeNetworkAclsOutput, error) {
  10304. req, out := c.DescribeNetworkAclsRequest(input)
  10305. return out, req.Send()
  10306. }
  10307. // DescribeNetworkAclsWithContext is the same as DescribeNetworkAcls with the addition of
  10308. // the ability to pass a context and additional request options.
  10309. //
  10310. // See DescribeNetworkAcls for details on how to use this API operation.
  10311. //
  10312. // The context must be non-nil and will be used for request cancellation. If
  10313. // the context is nil a panic will occur. In the future the SDK may create
  10314. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10315. // for more information on using Contexts.
  10316. func (c *EC2) DescribeNetworkAclsWithContext(ctx aws.Context, input *DescribeNetworkAclsInput, opts ...request.Option) (*DescribeNetworkAclsOutput, error) {
  10317. req, out := c.DescribeNetworkAclsRequest(input)
  10318. req.SetContext(ctx)
  10319. req.ApplyOptions(opts...)
  10320. return out, req.Send()
  10321. }
  10322. const opDescribeNetworkInterfaceAttribute = "DescribeNetworkInterfaceAttribute"
  10323. // DescribeNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  10324. // client's request for the DescribeNetworkInterfaceAttribute operation. The "output" return
  10325. // value will be populated with the request's response once the request complets
  10326. // successfuly.
  10327. //
  10328. // Use "Send" method on the returned Request to send the API call to the service.
  10329. // the "output" return value is not valid until after Send returns without error.
  10330. //
  10331. // See DescribeNetworkInterfaceAttribute for more information on using the DescribeNetworkInterfaceAttribute
  10332. // API call, and error handling.
  10333. //
  10334. // This method is useful when you want to inject custom logic or configuration
  10335. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10336. //
  10337. //
  10338. // // Example sending a request using the DescribeNetworkInterfaceAttributeRequest method.
  10339. // req, resp := client.DescribeNetworkInterfaceAttributeRequest(params)
  10340. //
  10341. // err := req.Send()
  10342. // if err == nil { // resp is now filled
  10343. // fmt.Println(resp)
  10344. // }
  10345. //
  10346. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute
  10347. func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInterfaceAttributeInput) (req *request.Request, output *DescribeNetworkInterfaceAttributeOutput) {
  10348. op := &request.Operation{
  10349. Name: opDescribeNetworkInterfaceAttribute,
  10350. HTTPMethod: "POST",
  10351. HTTPPath: "/",
  10352. }
  10353. if input == nil {
  10354. input = &DescribeNetworkInterfaceAttributeInput{}
  10355. }
  10356. output = &DescribeNetworkInterfaceAttributeOutput{}
  10357. req = c.newRequest(op, input, output)
  10358. return
  10359. }
  10360. // DescribeNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  10361. //
  10362. // Describes a network interface attribute. You can specify only one attribute
  10363. // at a time.
  10364. //
  10365. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10366. // with awserr.Error's Code and Message methods to get detailed information about
  10367. // the error.
  10368. //
  10369. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10370. // API operation DescribeNetworkInterfaceAttribute for usage and error information.
  10371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttribute
  10372. func (c *EC2) DescribeNetworkInterfaceAttribute(input *DescribeNetworkInterfaceAttributeInput) (*DescribeNetworkInterfaceAttributeOutput, error) {
  10373. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  10374. return out, req.Send()
  10375. }
  10376. // DescribeNetworkInterfaceAttributeWithContext is the same as DescribeNetworkInterfaceAttribute with the addition of
  10377. // the ability to pass a context and additional request options.
  10378. //
  10379. // See DescribeNetworkInterfaceAttribute for details on how to use this API operation.
  10380. //
  10381. // The context must be non-nil and will be used for request cancellation. If
  10382. // the context is nil a panic will occur. In the future the SDK may create
  10383. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10384. // for more information on using Contexts.
  10385. func (c *EC2) DescribeNetworkInterfaceAttributeWithContext(ctx aws.Context, input *DescribeNetworkInterfaceAttributeInput, opts ...request.Option) (*DescribeNetworkInterfaceAttributeOutput, error) {
  10386. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  10387. req.SetContext(ctx)
  10388. req.ApplyOptions(opts...)
  10389. return out, req.Send()
  10390. }
  10391. const opDescribeNetworkInterfacePermissions = "DescribeNetworkInterfacePermissions"
  10392. // DescribeNetworkInterfacePermissionsRequest generates a "aws/request.Request" representing the
  10393. // client's request for the DescribeNetworkInterfacePermissions operation. The "output" return
  10394. // value will be populated with the request's response once the request complets
  10395. // successfuly.
  10396. //
  10397. // Use "Send" method on the returned Request to send the API call to the service.
  10398. // the "output" return value is not valid until after Send returns without error.
  10399. //
  10400. // See DescribeNetworkInterfacePermissions for more information on using the DescribeNetworkInterfacePermissions
  10401. // API call, and error handling.
  10402. //
  10403. // This method is useful when you want to inject custom logic or configuration
  10404. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10405. //
  10406. //
  10407. // // Example sending a request using the DescribeNetworkInterfacePermissionsRequest method.
  10408. // req, resp := client.DescribeNetworkInterfacePermissionsRequest(params)
  10409. //
  10410. // err := req.Send()
  10411. // if err == nil { // resp is now filled
  10412. // fmt.Println(resp)
  10413. // }
  10414. //
  10415. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissions
  10416. func (c *EC2) DescribeNetworkInterfacePermissionsRequest(input *DescribeNetworkInterfacePermissionsInput) (req *request.Request, output *DescribeNetworkInterfacePermissionsOutput) {
  10417. op := &request.Operation{
  10418. Name: opDescribeNetworkInterfacePermissions,
  10419. HTTPMethod: "POST",
  10420. HTTPPath: "/",
  10421. }
  10422. if input == nil {
  10423. input = &DescribeNetworkInterfacePermissionsInput{}
  10424. }
  10425. output = &DescribeNetworkInterfacePermissionsOutput{}
  10426. req = c.newRequest(op, input, output)
  10427. return
  10428. }
  10429. // DescribeNetworkInterfacePermissions API operation for Amazon Elastic Compute Cloud.
  10430. //
  10431. // Describes the permissions for your network interfaces.
  10432. //
  10433. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10434. // with awserr.Error's Code and Message methods to get detailed information about
  10435. // the error.
  10436. //
  10437. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10438. // API operation DescribeNetworkInterfacePermissions for usage and error information.
  10439. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissions
  10440. func (c *EC2) DescribeNetworkInterfacePermissions(input *DescribeNetworkInterfacePermissionsInput) (*DescribeNetworkInterfacePermissionsOutput, error) {
  10441. req, out := c.DescribeNetworkInterfacePermissionsRequest(input)
  10442. return out, req.Send()
  10443. }
  10444. // DescribeNetworkInterfacePermissionsWithContext is the same as DescribeNetworkInterfacePermissions with the addition of
  10445. // the ability to pass a context and additional request options.
  10446. //
  10447. // See DescribeNetworkInterfacePermissions for details on how to use this API operation.
  10448. //
  10449. // The context must be non-nil and will be used for request cancellation. If
  10450. // the context is nil a panic will occur. In the future the SDK may create
  10451. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10452. // for more information on using Contexts.
  10453. func (c *EC2) DescribeNetworkInterfacePermissionsWithContext(ctx aws.Context, input *DescribeNetworkInterfacePermissionsInput, opts ...request.Option) (*DescribeNetworkInterfacePermissionsOutput, error) {
  10454. req, out := c.DescribeNetworkInterfacePermissionsRequest(input)
  10455. req.SetContext(ctx)
  10456. req.ApplyOptions(opts...)
  10457. return out, req.Send()
  10458. }
  10459. const opDescribeNetworkInterfaces = "DescribeNetworkInterfaces"
  10460. // DescribeNetworkInterfacesRequest generates a "aws/request.Request" representing the
  10461. // client's request for the DescribeNetworkInterfaces operation. The "output" return
  10462. // value will be populated with the request's response once the request complets
  10463. // successfuly.
  10464. //
  10465. // Use "Send" method on the returned Request to send the API call to the service.
  10466. // the "output" return value is not valid until after Send returns without error.
  10467. //
  10468. // See DescribeNetworkInterfaces for more information on using the DescribeNetworkInterfaces
  10469. // API call, and error handling.
  10470. //
  10471. // This method is useful when you want to inject custom logic or configuration
  10472. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10473. //
  10474. //
  10475. // // Example sending a request using the DescribeNetworkInterfacesRequest method.
  10476. // req, resp := client.DescribeNetworkInterfacesRequest(params)
  10477. //
  10478. // err := req.Send()
  10479. // if err == nil { // resp is now filled
  10480. // fmt.Println(resp)
  10481. // }
  10482. //
  10483. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces
  10484. func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesInput) (req *request.Request, output *DescribeNetworkInterfacesOutput) {
  10485. op := &request.Operation{
  10486. Name: opDescribeNetworkInterfaces,
  10487. HTTPMethod: "POST",
  10488. HTTPPath: "/",
  10489. }
  10490. if input == nil {
  10491. input = &DescribeNetworkInterfacesInput{}
  10492. }
  10493. output = &DescribeNetworkInterfacesOutput{}
  10494. req = c.newRequest(op, input, output)
  10495. return
  10496. }
  10497. // DescribeNetworkInterfaces API operation for Amazon Elastic Compute Cloud.
  10498. //
  10499. // Describes one or more of your network interfaces.
  10500. //
  10501. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10502. // with awserr.Error's Code and Message methods to get detailed information about
  10503. // the error.
  10504. //
  10505. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10506. // API operation DescribeNetworkInterfaces for usage and error information.
  10507. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaces
  10508. func (c *EC2) DescribeNetworkInterfaces(input *DescribeNetworkInterfacesInput) (*DescribeNetworkInterfacesOutput, error) {
  10509. req, out := c.DescribeNetworkInterfacesRequest(input)
  10510. return out, req.Send()
  10511. }
  10512. // DescribeNetworkInterfacesWithContext is the same as DescribeNetworkInterfaces with the addition of
  10513. // the ability to pass a context and additional request options.
  10514. //
  10515. // See DescribeNetworkInterfaces for details on how to use this API operation.
  10516. //
  10517. // The context must be non-nil and will be used for request cancellation. If
  10518. // the context is nil a panic will occur. In the future the SDK may create
  10519. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10520. // for more information on using Contexts.
  10521. func (c *EC2) DescribeNetworkInterfacesWithContext(ctx aws.Context, input *DescribeNetworkInterfacesInput, opts ...request.Option) (*DescribeNetworkInterfacesOutput, error) {
  10522. req, out := c.DescribeNetworkInterfacesRequest(input)
  10523. req.SetContext(ctx)
  10524. req.ApplyOptions(opts...)
  10525. return out, req.Send()
  10526. }
  10527. const opDescribePlacementGroups = "DescribePlacementGroups"
  10528. // DescribePlacementGroupsRequest generates a "aws/request.Request" representing the
  10529. // client's request for the DescribePlacementGroups operation. The "output" return
  10530. // value will be populated with the request's response once the request complets
  10531. // successfuly.
  10532. //
  10533. // Use "Send" method on the returned Request to send the API call to the service.
  10534. // the "output" return value is not valid until after Send returns without error.
  10535. //
  10536. // See DescribePlacementGroups for more information on using the DescribePlacementGroups
  10537. // API call, and error handling.
  10538. //
  10539. // This method is useful when you want to inject custom logic or configuration
  10540. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10541. //
  10542. //
  10543. // // Example sending a request using the DescribePlacementGroupsRequest method.
  10544. // req, resp := client.DescribePlacementGroupsRequest(params)
  10545. //
  10546. // err := req.Send()
  10547. // if err == nil { // resp is now filled
  10548. // fmt.Println(resp)
  10549. // }
  10550. //
  10551. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups
  10552. func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput) (req *request.Request, output *DescribePlacementGroupsOutput) {
  10553. op := &request.Operation{
  10554. Name: opDescribePlacementGroups,
  10555. HTTPMethod: "POST",
  10556. HTTPPath: "/",
  10557. }
  10558. if input == nil {
  10559. input = &DescribePlacementGroupsInput{}
  10560. }
  10561. output = &DescribePlacementGroupsOutput{}
  10562. req = c.newRequest(op, input, output)
  10563. return
  10564. }
  10565. // DescribePlacementGroups API operation for Amazon Elastic Compute Cloud.
  10566. //
  10567. // Describes one or more of your placement groups. For more information, see
  10568. // Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html)
  10569. // in the Amazon Elastic Compute Cloud User Guide.
  10570. //
  10571. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10572. // with awserr.Error's Code and Message methods to get detailed information about
  10573. // the error.
  10574. //
  10575. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10576. // API operation DescribePlacementGroups for usage and error information.
  10577. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroups
  10578. func (c *EC2) DescribePlacementGroups(input *DescribePlacementGroupsInput) (*DescribePlacementGroupsOutput, error) {
  10579. req, out := c.DescribePlacementGroupsRequest(input)
  10580. return out, req.Send()
  10581. }
  10582. // DescribePlacementGroupsWithContext is the same as DescribePlacementGroups with the addition of
  10583. // the ability to pass a context and additional request options.
  10584. //
  10585. // See DescribePlacementGroups for details on how to use this API operation.
  10586. //
  10587. // The context must be non-nil and will be used for request cancellation. If
  10588. // the context is nil a panic will occur. In the future the SDK may create
  10589. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10590. // for more information on using Contexts.
  10591. func (c *EC2) DescribePlacementGroupsWithContext(ctx aws.Context, input *DescribePlacementGroupsInput, opts ...request.Option) (*DescribePlacementGroupsOutput, error) {
  10592. req, out := c.DescribePlacementGroupsRequest(input)
  10593. req.SetContext(ctx)
  10594. req.ApplyOptions(opts...)
  10595. return out, req.Send()
  10596. }
  10597. const opDescribePrefixLists = "DescribePrefixLists"
  10598. // DescribePrefixListsRequest generates a "aws/request.Request" representing the
  10599. // client's request for the DescribePrefixLists operation. The "output" return
  10600. // value will be populated with the request's response once the request complets
  10601. // successfuly.
  10602. //
  10603. // Use "Send" method on the returned Request to send the API call to the service.
  10604. // the "output" return value is not valid until after Send returns without error.
  10605. //
  10606. // See DescribePrefixLists for more information on using the DescribePrefixLists
  10607. // API call, and error handling.
  10608. //
  10609. // This method is useful when you want to inject custom logic or configuration
  10610. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10611. //
  10612. //
  10613. // // Example sending a request using the DescribePrefixListsRequest method.
  10614. // req, resp := client.DescribePrefixListsRequest(params)
  10615. //
  10616. // err := req.Send()
  10617. // if err == nil { // resp is now filled
  10618. // fmt.Println(resp)
  10619. // }
  10620. //
  10621. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists
  10622. func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req *request.Request, output *DescribePrefixListsOutput) {
  10623. op := &request.Operation{
  10624. Name: opDescribePrefixLists,
  10625. HTTPMethod: "POST",
  10626. HTTPPath: "/",
  10627. }
  10628. if input == nil {
  10629. input = &DescribePrefixListsInput{}
  10630. }
  10631. output = &DescribePrefixListsOutput{}
  10632. req = c.newRequest(op, input, output)
  10633. return
  10634. }
  10635. // DescribePrefixLists API operation for Amazon Elastic Compute Cloud.
  10636. //
  10637. // Describes available AWS services in a prefix list format, which includes
  10638. // the prefix list name and prefix list ID of the service and the IP address
  10639. // range for the service. A prefix list ID is required for creating an outbound
  10640. // security group rule that allows traffic from a VPC to access an AWS service
  10641. // through a gateway VPC endpoint.
  10642. //
  10643. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10644. // with awserr.Error's Code and Message methods to get detailed information about
  10645. // the error.
  10646. //
  10647. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10648. // API operation DescribePrefixLists for usage and error information.
  10649. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixLists
  10650. func (c *EC2) DescribePrefixLists(input *DescribePrefixListsInput) (*DescribePrefixListsOutput, error) {
  10651. req, out := c.DescribePrefixListsRequest(input)
  10652. return out, req.Send()
  10653. }
  10654. // DescribePrefixListsWithContext is the same as DescribePrefixLists with the addition of
  10655. // the ability to pass a context and additional request options.
  10656. //
  10657. // See DescribePrefixLists for details on how to use this API operation.
  10658. //
  10659. // The context must be non-nil and will be used for request cancellation. If
  10660. // the context is nil a panic will occur. In the future the SDK may create
  10661. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10662. // for more information on using Contexts.
  10663. func (c *EC2) DescribePrefixListsWithContext(ctx aws.Context, input *DescribePrefixListsInput, opts ...request.Option) (*DescribePrefixListsOutput, error) {
  10664. req, out := c.DescribePrefixListsRequest(input)
  10665. req.SetContext(ctx)
  10666. req.ApplyOptions(opts...)
  10667. return out, req.Send()
  10668. }
  10669. const opDescribeRegions = "DescribeRegions"
  10670. // DescribeRegionsRequest generates a "aws/request.Request" representing the
  10671. // client's request for the DescribeRegions operation. The "output" return
  10672. // value will be populated with the request's response once the request complets
  10673. // successfuly.
  10674. //
  10675. // Use "Send" method on the returned Request to send the API call to the service.
  10676. // the "output" return value is not valid until after Send returns without error.
  10677. //
  10678. // See DescribeRegions for more information on using the DescribeRegions
  10679. // API call, and error handling.
  10680. //
  10681. // This method is useful when you want to inject custom logic or configuration
  10682. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10683. //
  10684. //
  10685. // // Example sending a request using the DescribeRegionsRequest method.
  10686. // req, resp := client.DescribeRegionsRequest(params)
  10687. //
  10688. // err := req.Send()
  10689. // if err == nil { // resp is now filled
  10690. // fmt.Println(resp)
  10691. // }
  10692. //
  10693. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions
  10694. func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request.Request, output *DescribeRegionsOutput) {
  10695. op := &request.Operation{
  10696. Name: opDescribeRegions,
  10697. HTTPMethod: "POST",
  10698. HTTPPath: "/",
  10699. }
  10700. if input == nil {
  10701. input = &DescribeRegionsInput{}
  10702. }
  10703. output = &DescribeRegionsOutput{}
  10704. req = c.newRequest(op, input, output)
  10705. return
  10706. }
  10707. // DescribeRegions API operation for Amazon Elastic Compute Cloud.
  10708. //
  10709. // Describes one or more regions that are currently available to you.
  10710. //
  10711. // For a list of the regions supported by Amazon EC2, see Regions and Endpoints
  10712. // (http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region).
  10713. //
  10714. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10715. // with awserr.Error's Code and Message methods to get detailed information about
  10716. // the error.
  10717. //
  10718. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10719. // API operation DescribeRegions for usage and error information.
  10720. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegions
  10721. func (c *EC2) DescribeRegions(input *DescribeRegionsInput) (*DescribeRegionsOutput, error) {
  10722. req, out := c.DescribeRegionsRequest(input)
  10723. return out, req.Send()
  10724. }
  10725. // DescribeRegionsWithContext is the same as DescribeRegions with the addition of
  10726. // the ability to pass a context and additional request options.
  10727. //
  10728. // See DescribeRegions for details on how to use this API operation.
  10729. //
  10730. // The context must be non-nil and will be used for request cancellation. If
  10731. // the context is nil a panic will occur. In the future the SDK may create
  10732. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10733. // for more information on using Contexts.
  10734. func (c *EC2) DescribeRegionsWithContext(ctx aws.Context, input *DescribeRegionsInput, opts ...request.Option) (*DescribeRegionsOutput, error) {
  10735. req, out := c.DescribeRegionsRequest(input)
  10736. req.SetContext(ctx)
  10737. req.ApplyOptions(opts...)
  10738. return out, req.Send()
  10739. }
  10740. const opDescribeReservedInstances = "DescribeReservedInstances"
  10741. // DescribeReservedInstancesRequest generates a "aws/request.Request" representing the
  10742. // client's request for the DescribeReservedInstances operation. The "output" return
  10743. // value will be populated with the request's response once the request complets
  10744. // successfuly.
  10745. //
  10746. // Use "Send" method on the returned Request to send the API call to the service.
  10747. // the "output" return value is not valid until after Send returns without error.
  10748. //
  10749. // See DescribeReservedInstances for more information on using the DescribeReservedInstances
  10750. // API call, and error handling.
  10751. //
  10752. // This method is useful when you want to inject custom logic or configuration
  10753. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10754. //
  10755. //
  10756. // // Example sending a request using the DescribeReservedInstancesRequest method.
  10757. // req, resp := client.DescribeReservedInstancesRequest(params)
  10758. //
  10759. // err := req.Send()
  10760. // if err == nil { // resp is now filled
  10761. // fmt.Println(resp)
  10762. // }
  10763. //
  10764. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances
  10765. func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesInput) (req *request.Request, output *DescribeReservedInstancesOutput) {
  10766. op := &request.Operation{
  10767. Name: opDescribeReservedInstances,
  10768. HTTPMethod: "POST",
  10769. HTTPPath: "/",
  10770. }
  10771. if input == nil {
  10772. input = &DescribeReservedInstancesInput{}
  10773. }
  10774. output = &DescribeReservedInstancesOutput{}
  10775. req = c.newRequest(op, input, output)
  10776. return
  10777. }
  10778. // DescribeReservedInstances API operation for Amazon Elastic Compute Cloud.
  10779. //
  10780. // Describes one or more of the Reserved Instances that you purchased.
  10781. //
  10782. // For more information about Reserved Instances, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  10783. // in the Amazon Elastic Compute Cloud User Guide.
  10784. //
  10785. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10786. // with awserr.Error's Code and Message methods to get detailed information about
  10787. // the error.
  10788. //
  10789. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10790. // API operation DescribeReservedInstances for usage and error information.
  10791. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstances
  10792. func (c *EC2) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) {
  10793. req, out := c.DescribeReservedInstancesRequest(input)
  10794. return out, req.Send()
  10795. }
  10796. // DescribeReservedInstancesWithContext is the same as DescribeReservedInstances with the addition of
  10797. // the ability to pass a context and additional request options.
  10798. //
  10799. // See DescribeReservedInstances for details on how to use this API operation.
  10800. //
  10801. // The context must be non-nil and will be used for request cancellation. If
  10802. // the context is nil a panic will occur. In the future the SDK may create
  10803. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10804. // for more information on using Contexts.
  10805. func (c *EC2) DescribeReservedInstancesWithContext(ctx aws.Context, input *DescribeReservedInstancesInput, opts ...request.Option) (*DescribeReservedInstancesOutput, error) {
  10806. req, out := c.DescribeReservedInstancesRequest(input)
  10807. req.SetContext(ctx)
  10808. req.ApplyOptions(opts...)
  10809. return out, req.Send()
  10810. }
  10811. const opDescribeReservedInstancesListings = "DescribeReservedInstancesListings"
  10812. // DescribeReservedInstancesListingsRequest generates a "aws/request.Request" representing the
  10813. // client's request for the DescribeReservedInstancesListings operation. The "output" return
  10814. // value will be populated with the request's response once the request complets
  10815. // successfuly.
  10816. //
  10817. // Use "Send" method on the returned Request to send the API call to the service.
  10818. // the "output" return value is not valid until after Send returns without error.
  10819. //
  10820. // See DescribeReservedInstancesListings for more information on using the DescribeReservedInstancesListings
  10821. // API call, and error handling.
  10822. //
  10823. // This method is useful when you want to inject custom logic or configuration
  10824. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10825. //
  10826. //
  10827. // // Example sending a request using the DescribeReservedInstancesListingsRequest method.
  10828. // req, resp := client.DescribeReservedInstancesListingsRequest(params)
  10829. //
  10830. // err := req.Send()
  10831. // if err == nil { // resp is now filled
  10832. // fmt.Println(resp)
  10833. // }
  10834. //
  10835. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings
  10836. func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedInstancesListingsInput) (req *request.Request, output *DescribeReservedInstancesListingsOutput) {
  10837. op := &request.Operation{
  10838. Name: opDescribeReservedInstancesListings,
  10839. HTTPMethod: "POST",
  10840. HTTPPath: "/",
  10841. }
  10842. if input == nil {
  10843. input = &DescribeReservedInstancesListingsInput{}
  10844. }
  10845. output = &DescribeReservedInstancesListingsOutput{}
  10846. req = c.newRequest(op, input, output)
  10847. return
  10848. }
  10849. // DescribeReservedInstancesListings API operation for Amazon Elastic Compute Cloud.
  10850. //
  10851. // Describes your account's Reserved Instance listings in the Reserved Instance
  10852. // Marketplace.
  10853. //
  10854. // The Reserved Instance Marketplace matches sellers who want to resell Reserved
  10855. // Instance capacity that they no longer need with buyers who want to purchase
  10856. // additional capacity. Reserved Instances bought and sold through the Reserved
  10857. // Instance Marketplace work like any other Reserved Instances.
  10858. //
  10859. // As a seller, you choose to list some or all of your Reserved Instances, and
  10860. // you specify the upfront price to receive for them. Your Reserved Instances
  10861. // are then listed in the Reserved Instance Marketplace and are available for
  10862. // purchase.
  10863. //
  10864. // As a buyer, you specify the configuration of the Reserved Instance to purchase,
  10865. // and the Marketplace matches what you're searching for with what's available.
  10866. // The Marketplace first sells the lowest priced Reserved Instances to you,
  10867. // and continues to sell available Reserved Instance listings to you until your
  10868. // demand is met. You are charged based on the total price of all of the listings
  10869. // that you purchase.
  10870. //
  10871. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  10872. // in the Amazon Elastic Compute Cloud User Guide.
  10873. //
  10874. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10875. // with awserr.Error's Code and Message methods to get detailed information about
  10876. // the error.
  10877. //
  10878. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10879. // API operation DescribeReservedInstancesListings for usage and error information.
  10880. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListings
  10881. func (c *EC2) DescribeReservedInstancesListings(input *DescribeReservedInstancesListingsInput) (*DescribeReservedInstancesListingsOutput, error) {
  10882. req, out := c.DescribeReservedInstancesListingsRequest(input)
  10883. return out, req.Send()
  10884. }
  10885. // DescribeReservedInstancesListingsWithContext is the same as DescribeReservedInstancesListings with the addition of
  10886. // the ability to pass a context and additional request options.
  10887. //
  10888. // See DescribeReservedInstancesListings for details on how to use this API operation.
  10889. //
  10890. // The context must be non-nil and will be used for request cancellation. If
  10891. // the context is nil a panic will occur. In the future the SDK may create
  10892. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10893. // for more information on using Contexts.
  10894. func (c *EC2) DescribeReservedInstancesListingsWithContext(ctx aws.Context, input *DescribeReservedInstancesListingsInput, opts ...request.Option) (*DescribeReservedInstancesListingsOutput, error) {
  10895. req, out := c.DescribeReservedInstancesListingsRequest(input)
  10896. req.SetContext(ctx)
  10897. req.ApplyOptions(opts...)
  10898. return out, req.Send()
  10899. }
  10900. const opDescribeReservedInstancesModifications = "DescribeReservedInstancesModifications"
  10901. // DescribeReservedInstancesModificationsRequest generates a "aws/request.Request" representing the
  10902. // client's request for the DescribeReservedInstancesModifications operation. The "output" return
  10903. // value will be populated with the request's response once the request complets
  10904. // successfuly.
  10905. //
  10906. // Use "Send" method on the returned Request to send the API call to the service.
  10907. // the "output" return value is not valid until after Send returns without error.
  10908. //
  10909. // See DescribeReservedInstancesModifications for more information on using the DescribeReservedInstancesModifications
  10910. // API call, and error handling.
  10911. //
  10912. // This method is useful when you want to inject custom logic or configuration
  10913. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10914. //
  10915. //
  10916. // // Example sending a request using the DescribeReservedInstancesModificationsRequest method.
  10917. // req, resp := client.DescribeReservedInstancesModificationsRequest(params)
  10918. //
  10919. // err := req.Send()
  10920. // if err == nil { // resp is now filled
  10921. // fmt.Println(resp)
  10922. // }
  10923. //
  10924. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications
  10925. func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReservedInstancesModificationsInput) (req *request.Request, output *DescribeReservedInstancesModificationsOutput) {
  10926. op := &request.Operation{
  10927. Name: opDescribeReservedInstancesModifications,
  10928. HTTPMethod: "POST",
  10929. HTTPPath: "/",
  10930. Paginator: &request.Paginator{
  10931. InputTokens: []string{"NextToken"},
  10932. OutputTokens: []string{"NextToken"},
  10933. LimitToken: "",
  10934. TruncationToken: "",
  10935. },
  10936. }
  10937. if input == nil {
  10938. input = &DescribeReservedInstancesModificationsInput{}
  10939. }
  10940. output = &DescribeReservedInstancesModificationsOutput{}
  10941. req = c.newRequest(op, input, output)
  10942. return
  10943. }
  10944. // DescribeReservedInstancesModifications API operation for Amazon Elastic Compute Cloud.
  10945. //
  10946. // Describes the modifications made to your Reserved Instances. If no parameter
  10947. // is specified, information about all your Reserved Instances modification
  10948. // requests is returned. If a modification ID is specified, only information
  10949. // about the specific modification is returned.
  10950. //
  10951. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  10952. // in the Amazon Elastic Compute Cloud User Guide.
  10953. //
  10954. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10955. // with awserr.Error's Code and Message methods to get detailed information about
  10956. // the error.
  10957. //
  10958. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  10959. // API operation DescribeReservedInstancesModifications for usage and error information.
  10960. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModifications
  10961. func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInstancesModificationsInput) (*DescribeReservedInstancesModificationsOutput, error) {
  10962. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  10963. return out, req.Send()
  10964. }
  10965. // DescribeReservedInstancesModificationsWithContext is the same as DescribeReservedInstancesModifications with the addition of
  10966. // the ability to pass a context and additional request options.
  10967. //
  10968. // See DescribeReservedInstancesModifications for details on how to use this API operation.
  10969. //
  10970. // The context must be non-nil and will be used for request cancellation. If
  10971. // the context is nil a panic will occur. In the future the SDK may create
  10972. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10973. // for more information on using Contexts.
  10974. func (c *EC2) DescribeReservedInstancesModificationsWithContext(ctx aws.Context, input *DescribeReservedInstancesModificationsInput, opts ...request.Option) (*DescribeReservedInstancesModificationsOutput, error) {
  10975. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  10976. req.SetContext(ctx)
  10977. req.ApplyOptions(opts...)
  10978. return out, req.Send()
  10979. }
  10980. // DescribeReservedInstancesModificationsPages iterates over the pages of a DescribeReservedInstancesModifications operation,
  10981. // calling the "fn" function with the response data for each page. To stop
  10982. // iterating, return false from the fn function.
  10983. //
  10984. // See DescribeReservedInstancesModifications method for more information on how to use this operation.
  10985. //
  10986. // Note: This operation can generate multiple requests to a service.
  10987. //
  10988. // // Example iterating over at most 3 pages of a DescribeReservedInstancesModifications operation.
  10989. // pageNum := 0
  10990. // err := client.DescribeReservedInstancesModificationsPages(params,
  10991. // func(page *DescribeReservedInstancesModificationsOutput, lastPage bool) bool {
  10992. // pageNum++
  10993. // fmt.Println(page)
  10994. // return pageNum <= 3
  10995. // })
  10996. //
  10997. func (c *EC2) DescribeReservedInstancesModificationsPages(input *DescribeReservedInstancesModificationsInput, fn func(*DescribeReservedInstancesModificationsOutput, bool) bool) error {
  10998. return c.DescribeReservedInstancesModificationsPagesWithContext(aws.BackgroundContext(), input, fn)
  10999. }
  11000. // DescribeReservedInstancesModificationsPagesWithContext same as DescribeReservedInstancesModificationsPages except
  11001. // it takes a Context and allows setting request options on the pages.
  11002. //
  11003. // The context must be non-nil and will be used for request cancellation. If
  11004. // the context is nil a panic will occur. In the future the SDK may create
  11005. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11006. // for more information on using Contexts.
  11007. func (c *EC2) DescribeReservedInstancesModificationsPagesWithContext(ctx aws.Context, input *DescribeReservedInstancesModificationsInput, fn func(*DescribeReservedInstancesModificationsOutput, bool) bool, opts ...request.Option) error {
  11008. p := request.Pagination{
  11009. NewRequest: func() (*request.Request, error) {
  11010. var inCpy *DescribeReservedInstancesModificationsInput
  11011. if input != nil {
  11012. tmp := *input
  11013. inCpy = &tmp
  11014. }
  11015. req, _ := c.DescribeReservedInstancesModificationsRequest(inCpy)
  11016. req.SetContext(ctx)
  11017. req.ApplyOptions(opts...)
  11018. return req, nil
  11019. },
  11020. }
  11021. cont := true
  11022. for p.Next() && cont {
  11023. cont = fn(p.Page().(*DescribeReservedInstancesModificationsOutput), !p.HasNextPage())
  11024. }
  11025. return p.Err()
  11026. }
  11027. const opDescribeReservedInstancesOfferings = "DescribeReservedInstancesOfferings"
  11028. // DescribeReservedInstancesOfferingsRequest generates a "aws/request.Request" representing the
  11029. // client's request for the DescribeReservedInstancesOfferings operation. The "output" return
  11030. // value will be populated with the request's response once the request complets
  11031. // successfuly.
  11032. //
  11033. // Use "Send" method on the returned Request to send the API call to the service.
  11034. // the "output" return value is not valid until after Send returns without error.
  11035. //
  11036. // See DescribeReservedInstancesOfferings for more information on using the DescribeReservedInstancesOfferings
  11037. // API call, and error handling.
  11038. //
  11039. // This method is useful when you want to inject custom logic or configuration
  11040. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11041. //
  11042. //
  11043. // // Example sending a request using the DescribeReservedInstancesOfferingsRequest method.
  11044. // req, resp := client.DescribeReservedInstancesOfferingsRequest(params)
  11045. //
  11046. // err := req.Send()
  11047. // if err == nil { // resp is now filled
  11048. // fmt.Println(resp)
  11049. // }
  11050. //
  11051. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings
  11052. func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedInstancesOfferingsInput) (req *request.Request, output *DescribeReservedInstancesOfferingsOutput) {
  11053. op := &request.Operation{
  11054. Name: opDescribeReservedInstancesOfferings,
  11055. HTTPMethod: "POST",
  11056. HTTPPath: "/",
  11057. Paginator: &request.Paginator{
  11058. InputTokens: []string{"NextToken"},
  11059. OutputTokens: []string{"NextToken"},
  11060. LimitToken: "MaxResults",
  11061. TruncationToken: "",
  11062. },
  11063. }
  11064. if input == nil {
  11065. input = &DescribeReservedInstancesOfferingsInput{}
  11066. }
  11067. output = &DescribeReservedInstancesOfferingsOutput{}
  11068. req = c.newRequest(op, input, output)
  11069. return
  11070. }
  11071. // DescribeReservedInstancesOfferings API operation for Amazon Elastic Compute Cloud.
  11072. //
  11073. // Describes Reserved Instance offerings that are available for purchase. With
  11074. // Reserved Instances, you purchase the right to launch instances for a period
  11075. // of time. During that time period, you do not receive insufficient capacity
  11076. // errors, and you pay a lower usage rate than the rate charged for On-Demand
  11077. // instances for the actual time used.
  11078. //
  11079. // If you have listed your own Reserved Instances for sale in the Reserved Instance
  11080. // Marketplace, they will be excluded from these results. This is to ensure
  11081. // that you do not purchase your own Reserved Instances.
  11082. //
  11083. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  11084. // in the Amazon Elastic Compute Cloud User Guide.
  11085. //
  11086. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11087. // with awserr.Error's Code and Message methods to get detailed information about
  11088. // the error.
  11089. //
  11090. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11091. // API operation DescribeReservedInstancesOfferings for usage and error information.
  11092. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferings
  11093. func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) {
  11094. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  11095. return out, req.Send()
  11096. }
  11097. // DescribeReservedInstancesOfferingsWithContext is the same as DescribeReservedInstancesOfferings with the addition of
  11098. // the ability to pass a context and additional request options.
  11099. //
  11100. // See DescribeReservedInstancesOfferings for details on how to use this API operation.
  11101. //
  11102. // The context must be non-nil and will be used for request cancellation. If
  11103. // the context is nil a panic will occur. In the future the SDK may create
  11104. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11105. // for more information on using Contexts.
  11106. func (c *EC2) DescribeReservedInstancesOfferingsWithContext(ctx aws.Context, input *DescribeReservedInstancesOfferingsInput, opts ...request.Option) (*DescribeReservedInstancesOfferingsOutput, error) {
  11107. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  11108. req.SetContext(ctx)
  11109. req.ApplyOptions(opts...)
  11110. return out, req.Send()
  11111. }
  11112. // DescribeReservedInstancesOfferingsPages iterates over the pages of a DescribeReservedInstancesOfferings operation,
  11113. // calling the "fn" function with the response data for each page. To stop
  11114. // iterating, return false from the fn function.
  11115. //
  11116. // See DescribeReservedInstancesOfferings method for more information on how to use this operation.
  11117. //
  11118. // Note: This operation can generate multiple requests to a service.
  11119. //
  11120. // // Example iterating over at most 3 pages of a DescribeReservedInstancesOfferings operation.
  11121. // pageNum := 0
  11122. // err := client.DescribeReservedInstancesOfferingsPages(params,
  11123. // func(page *DescribeReservedInstancesOfferingsOutput, lastPage bool) bool {
  11124. // pageNum++
  11125. // fmt.Println(page)
  11126. // return pageNum <= 3
  11127. // })
  11128. //
  11129. func (c *EC2) DescribeReservedInstancesOfferingsPages(input *DescribeReservedInstancesOfferingsInput, fn func(*DescribeReservedInstancesOfferingsOutput, bool) bool) error {
  11130. return c.DescribeReservedInstancesOfferingsPagesWithContext(aws.BackgroundContext(), input, fn)
  11131. }
  11132. // DescribeReservedInstancesOfferingsPagesWithContext same as DescribeReservedInstancesOfferingsPages except
  11133. // it takes a Context and allows setting request options on the pages.
  11134. //
  11135. // The context must be non-nil and will be used for request cancellation. If
  11136. // the context is nil a panic will occur. In the future the SDK may create
  11137. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11138. // for more information on using Contexts.
  11139. func (c *EC2) DescribeReservedInstancesOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedInstancesOfferingsInput, fn func(*DescribeReservedInstancesOfferingsOutput, bool) bool, opts ...request.Option) error {
  11140. p := request.Pagination{
  11141. NewRequest: func() (*request.Request, error) {
  11142. var inCpy *DescribeReservedInstancesOfferingsInput
  11143. if input != nil {
  11144. tmp := *input
  11145. inCpy = &tmp
  11146. }
  11147. req, _ := c.DescribeReservedInstancesOfferingsRequest(inCpy)
  11148. req.SetContext(ctx)
  11149. req.ApplyOptions(opts...)
  11150. return req, nil
  11151. },
  11152. }
  11153. cont := true
  11154. for p.Next() && cont {
  11155. cont = fn(p.Page().(*DescribeReservedInstancesOfferingsOutput), !p.HasNextPage())
  11156. }
  11157. return p.Err()
  11158. }
  11159. const opDescribeRouteTables = "DescribeRouteTables"
  11160. // DescribeRouteTablesRequest generates a "aws/request.Request" representing the
  11161. // client's request for the DescribeRouteTables operation. The "output" return
  11162. // value will be populated with the request's response once the request complets
  11163. // successfuly.
  11164. //
  11165. // Use "Send" method on the returned Request to send the API call to the service.
  11166. // the "output" return value is not valid until after Send returns without error.
  11167. //
  11168. // See DescribeRouteTables for more information on using the DescribeRouteTables
  11169. // API call, and error handling.
  11170. //
  11171. // This method is useful when you want to inject custom logic or configuration
  11172. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11173. //
  11174. //
  11175. // // Example sending a request using the DescribeRouteTablesRequest method.
  11176. // req, resp := client.DescribeRouteTablesRequest(params)
  11177. //
  11178. // err := req.Send()
  11179. // if err == nil { // resp is now filled
  11180. // fmt.Println(resp)
  11181. // }
  11182. //
  11183. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables
  11184. func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req *request.Request, output *DescribeRouteTablesOutput) {
  11185. op := &request.Operation{
  11186. Name: opDescribeRouteTables,
  11187. HTTPMethod: "POST",
  11188. HTTPPath: "/",
  11189. }
  11190. if input == nil {
  11191. input = &DescribeRouteTablesInput{}
  11192. }
  11193. output = &DescribeRouteTablesOutput{}
  11194. req = c.newRequest(op, input, output)
  11195. return
  11196. }
  11197. // DescribeRouteTables API operation for Amazon Elastic Compute Cloud.
  11198. //
  11199. // Describes one or more of your route tables.
  11200. //
  11201. // Each subnet in your VPC must be associated with a route table. If a subnet
  11202. // is not explicitly associated with any route table, it is implicitly associated
  11203. // with the main route table. This command does not return the subnet ID for
  11204. // implicit associations.
  11205. //
  11206. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  11207. // in the Amazon Virtual Private Cloud User Guide.
  11208. //
  11209. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11210. // with awserr.Error's Code and Message methods to get detailed information about
  11211. // the error.
  11212. //
  11213. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11214. // API operation DescribeRouteTables for usage and error information.
  11215. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTables
  11216. func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRouteTablesOutput, error) {
  11217. req, out := c.DescribeRouteTablesRequest(input)
  11218. return out, req.Send()
  11219. }
  11220. // DescribeRouteTablesWithContext is the same as DescribeRouteTables with the addition of
  11221. // the ability to pass a context and additional request options.
  11222. //
  11223. // See DescribeRouteTables for details on how to use this API operation.
  11224. //
  11225. // The context must be non-nil and will be used for request cancellation. If
  11226. // the context is nil a panic will occur. In the future the SDK may create
  11227. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11228. // for more information on using Contexts.
  11229. func (c *EC2) DescribeRouteTablesWithContext(ctx aws.Context, input *DescribeRouteTablesInput, opts ...request.Option) (*DescribeRouteTablesOutput, error) {
  11230. req, out := c.DescribeRouteTablesRequest(input)
  11231. req.SetContext(ctx)
  11232. req.ApplyOptions(opts...)
  11233. return out, req.Send()
  11234. }
  11235. const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvailability"
  11236. // DescribeScheduledInstanceAvailabilityRequest generates a "aws/request.Request" representing the
  11237. // client's request for the DescribeScheduledInstanceAvailability operation. The "output" return
  11238. // value will be populated with the request's response once the request complets
  11239. // successfuly.
  11240. //
  11241. // Use "Send" method on the returned Request to send the API call to the service.
  11242. // the "output" return value is not valid until after Send returns without error.
  11243. //
  11244. // See DescribeScheduledInstanceAvailability for more information on using the DescribeScheduledInstanceAvailability
  11245. // API call, and error handling.
  11246. //
  11247. // This method is useful when you want to inject custom logic or configuration
  11248. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11249. //
  11250. //
  11251. // // Example sending a request using the DescribeScheduledInstanceAvailabilityRequest method.
  11252. // req, resp := client.DescribeScheduledInstanceAvailabilityRequest(params)
  11253. //
  11254. // err := req.Send()
  11255. // if err == nil { // resp is now filled
  11256. // fmt.Println(resp)
  11257. // }
  11258. //
  11259. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability
  11260. func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeScheduledInstanceAvailabilityInput) (req *request.Request, output *DescribeScheduledInstanceAvailabilityOutput) {
  11261. op := &request.Operation{
  11262. Name: opDescribeScheduledInstanceAvailability,
  11263. HTTPMethod: "POST",
  11264. HTTPPath: "/",
  11265. }
  11266. if input == nil {
  11267. input = &DescribeScheduledInstanceAvailabilityInput{}
  11268. }
  11269. output = &DescribeScheduledInstanceAvailabilityOutput{}
  11270. req = c.newRequest(op, input, output)
  11271. return
  11272. }
  11273. // DescribeScheduledInstanceAvailability API operation for Amazon Elastic Compute Cloud.
  11274. //
  11275. // Finds available schedules that meet the specified criteria.
  11276. //
  11277. // You can search for an available schedule no more than 3 months in advance.
  11278. // You must meet the minimum required duration of 1,200 hours per year. For
  11279. // example, the minimum daily schedule is 4 hours, the minimum weekly schedule
  11280. // is 24 hours, and the minimum monthly schedule is 100 hours.
  11281. //
  11282. // After you find a schedule that meets your needs, call PurchaseScheduledInstances
  11283. // to purchase Scheduled Instances with that schedule.
  11284. //
  11285. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11286. // with awserr.Error's Code and Message methods to get detailed information about
  11287. // the error.
  11288. //
  11289. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11290. // API operation DescribeScheduledInstanceAvailability for usage and error information.
  11291. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailability
  11292. func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  11293. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  11294. return out, req.Send()
  11295. }
  11296. // DescribeScheduledInstanceAvailabilityWithContext is the same as DescribeScheduledInstanceAvailability with the addition of
  11297. // the ability to pass a context and additional request options.
  11298. //
  11299. // See DescribeScheduledInstanceAvailability for details on how to use this API operation.
  11300. //
  11301. // The context must be non-nil and will be used for request cancellation. If
  11302. // the context is nil a panic will occur. In the future the SDK may create
  11303. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11304. // for more information on using Contexts.
  11305. func (c *EC2) DescribeScheduledInstanceAvailabilityWithContext(ctx aws.Context, input *DescribeScheduledInstanceAvailabilityInput, opts ...request.Option) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  11306. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  11307. req.SetContext(ctx)
  11308. req.ApplyOptions(opts...)
  11309. return out, req.Send()
  11310. }
  11311. const opDescribeScheduledInstances = "DescribeScheduledInstances"
  11312. // DescribeScheduledInstancesRequest generates a "aws/request.Request" representing the
  11313. // client's request for the DescribeScheduledInstances operation. The "output" return
  11314. // value will be populated with the request's response once the request complets
  11315. // successfuly.
  11316. //
  11317. // Use "Send" method on the returned Request to send the API call to the service.
  11318. // the "output" return value is not valid until after Send returns without error.
  11319. //
  11320. // See DescribeScheduledInstances for more information on using the DescribeScheduledInstances
  11321. // API call, and error handling.
  11322. //
  11323. // This method is useful when you want to inject custom logic or configuration
  11324. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11325. //
  11326. //
  11327. // // Example sending a request using the DescribeScheduledInstancesRequest method.
  11328. // req, resp := client.DescribeScheduledInstancesRequest(params)
  11329. //
  11330. // err := req.Send()
  11331. // if err == nil { // resp is now filled
  11332. // fmt.Println(resp)
  11333. // }
  11334. //
  11335. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances
  11336. func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstancesInput) (req *request.Request, output *DescribeScheduledInstancesOutput) {
  11337. op := &request.Operation{
  11338. Name: opDescribeScheduledInstances,
  11339. HTTPMethod: "POST",
  11340. HTTPPath: "/",
  11341. }
  11342. if input == nil {
  11343. input = &DescribeScheduledInstancesInput{}
  11344. }
  11345. output = &DescribeScheduledInstancesOutput{}
  11346. req = c.newRequest(op, input, output)
  11347. return
  11348. }
  11349. // DescribeScheduledInstances API operation for Amazon Elastic Compute Cloud.
  11350. //
  11351. // Describes one or more of your Scheduled Instances.
  11352. //
  11353. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11354. // with awserr.Error's Code and Message methods to get detailed information about
  11355. // the error.
  11356. //
  11357. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11358. // API operation DescribeScheduledInstances for usage and error information.
  11359. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstances
  11360. func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) {
  11361. req, out := c.DescribeScheduledInstancesRequest(input)
  11362. return out, req.Send()
  11363. }
  11364. // DescribeScheduledInstancesWithContext is the same as DescribeScheduledInstances with the addition of
  11365. // the ability to pass a context and additional request options.
  11366. //
  11367. // See DescribeScheduledInstances for details on how to use this API operation.
  11368. //
  11369. // The context must be non-nil and will be used for request cancellation. If
  11370. // the context is nil a panic will occur. In the future the SDK may create
  11371. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11372. // for more information on using Contexts.
  11373. func (c *EC2) DescribeScheduledInstancesWithContext(ctx aws.Context, input *DescribeScheduledInstancesInput, opts ...request.Option) (*DescribeScheduledInstancesOutput, error) {
  11374. req, out := c.DescribeScheduledInstancesRequest(input)
  11375. req.SetContext(ctx)
  11376. req.ApplyOptions(opts...)
  11377. return out, req.Send()
  11378. }
  11379. const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences"
  11380. // DescribeSecurityGroupReferencesRequest generates a "aws/request.Request" representing the
  11381. // client's request for the DescribeSecurityGroupReferences operation. The "output" return
  11382. // value will be populated with the request's response once the request complets
  11383. // successfuly.
  11384. //
  11385. // Use "Send" method on the returned Request to send the API call to the service.
  11386. // the "output" return value is not valid until after Send returns without error.
  11387. //
  11388. // See DescribeSecurityGroupReferences for more information on using the DescribeSecurityGroupReferences
  11389. // API call, and error handling.
  11390. //
  11391. // This method is useful when you want to inject custom logic or configuration
  11392. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11393. //
  11394. //
  11395. // // Example sending a request using the DescribeSecurityGroupReferencesRequest method.
  11396. // req, resp := client.DescribeSecurityGroupReferencesRequest(params)
  11397. //
  11398. // err := req.Send()
  11399. // if err == nil { // resp is now filled
  11400. // fmt.Println(resp)
  11401. // }
  11402. //
  11403. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences
  11404. func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGroupReferencesInput) (req *request.Request, output *DescribeSecurityGroupReferencesOutput) {
  11405. op := &request.Operation{
  11406. Name: opDescribeSecurityGroupReferences,
  11407. HTTPMethod: "POST",
  11408. HTTPPath: "/",
  11409. }
  11410. if input == nil {
  11411. input = &DescribeSecurityGroupReferencesInput{}
  11412. }
  11413. output = &DescribeSecurityGroupReferencesOutput{}
  11414. req = c.newRequest(op, input, output)
  11415. return
  11416. }
  11417. // DescribeSecurityGroupReferences API operation for Amazon Elastic Compute Cloud.
  11418. //
  11419. // [EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection
  11420. // that are referencing the security groups you've specified in this request.
  11421. //
  11422. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11423. // with awserr.Error's Code and Message methods to get detailed information about
  11424. // the error.
  11425. //
  11426. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11427. // API operation DescribeSecurityGroupReferences for usage and error information.
  11428. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferences
  11429. func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) {
  11430. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  11431. return out, req.Send()
  11432. }
  11433. // DescribeSecurityGroupReferencesWithContext is the same as DescribeSecurityGroupReferences with the addition of
  11434. // the ability to pass a context and additional request options.
  11435. //
  11436. // See DescribeSecurityGroupReferences for details on how to use this API operation.
  11437. //
  11438. // The context must be non-nil and will be used for request cancellation. If
  11439. // the context is nil a panic will occur. In the future the SDK may create
  11440. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11441. // for more information on using Contexts.
  11442. func (c *EC2) DescribeSecurityGroupReferencesWithContext(ctx aws.Context, input *DescribeSecurityGroupReferencesInput, opts ...request.Option) (*DescribeSecurityGroupReferencesOutput, error) {
  11443. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  11444. req.SetContext(ctx)
  11445. req.ApplyOptions(opts...)
  11446. return out, req.Send()
  11447. }
  11448. const opDescribeSecurityGroups = "DescribeSecurityGroups"
  11449. // DescribeSecurityGroupsRequest generates a "aws/request.Request" representing the
  11450. // client's request for the DescribeSecurityGroups operation. The "output" return
  11451. // value will be populated with the request's response once the request complets
  11452. // successfuly.
  11453. //
  11454. // Use "Send" method on the returned Request to send the API call to the service.
  11455. // the "output" return value is not valid until after Send returns without error.
  11456. //
  11457. // See DescribeSecurityGroups for more information on using the DescribeSecurityGroups
  11458. // API call, and error handling.
  11459. //
  11460. // This method is useful when you want to inject custom logic or configuration
  11461. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11462. //
  11463. //
  11464. // // Example sending a request using the DescribeSecurityGroupsRequest method.
  11465. // req, resp := client.DescribeSecurityGroupsRequest(params)
  11466. //
  11467. // err := req.Send()
  11468. // if err == nil { // resp is now filled
  11469. // fmt.Println(resp)
  11470. // }
  11471. //
  11472. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups
  11473. func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput) {
  11474. op := &request.Operation{
  11475. Name: opDescribeSecurityGroups,
  11476. HTTPMethod: "POST",
  11477. HTTPPath: "/",
  11478. }
  11479. if input == nil {
  11480. input = &DescribeSecurityGroupsInput{}
  11481. }
  11482. output = &DescribeSecurityGroupsOutput{}
  11483. req = c.newRequest(op, input, output)
  11484. return
  11485. }
  11486. // DescribeSecurityGroups API operation for Amazon Elastic Compute Cloud.
  11487. //
  11488. // Describes one or more of your security groups.
  11489. //
  11490. // A security group is for use with instances either in the EC2-Classic platform
  11491. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  11492. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  11493. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  11494. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  11495. // in the Amazon Virtual Private Cloud User Guide.
  11496. //
  11497. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11498. // with awserr.Error's Code and Message methods to get detailed information about
  11499. // the error.
  11500. //
  11501. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11502. // API operation DescribeSecurityGroups for usage and error information.
  11503. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroups
  11504. func (c *EC2) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error) {
  11505. req, out := c.DescribeSecurityGroupsRequest(input)
  11506. return out, req.Send()
  11507. }
  11508. // DescribeSecurityGroupsWithContext is the same as DescribeSecurityGroups with the addition of
  11509. // the ability to pass a context and additional request options.
  11510. //
  11511. // See DescribeSecurityGroups for details on how to use this API operation.
  11512. //
  11513. // The context must be non-nil and will be used for request cancellation. If
  11514. // the context is nil a panic will occur. In the future the SDK may create
  11515. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11516. // for more information on using Contexts.
  11517. func (c *EC2) DescribeSecurityGroupsWithContext(ctx aws.Context, input *DescribeSecurityGroupsInput, opts ...request.Option) (*DescribeSecurityGroupsOutput, error) {
  11518. req, out := c.DescribeSecurityGroupsRequest(input)
  11519. req.SetContext(ctx)
  11520. req.ApplyOptions(opts...)
  11521. return out, req.Send()
  11522. }
  11523. const opDescribeSnapshotAttribute = "DescribeSnapshotAttribute"
  11524. // DescribeSnapshotAttributeRequest generates a "aws/request.Request" representing the
  11525. // client's request for the DescribeSnapshotAttribute operation. The "output" return
  11526. // value will be populated with the request's response once the request complets
  11527. // successfuly.
  11528. //
  11529. // Use "Send" method on the returned Request to send the API call to the service.
  11530. // the "output" return value is not valid until after Send returns without error.
  11531. //
  11532. // See DescribeSnapshotAttribute for more information on using the DescribeSnapshotAttribute
  11533. // API call, and error handling.
  11534. //
  11535. // This method is useful when you want to inject custom logic or configuration
  11536. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11537. //
  11538. //
  11539. // // Example sending a request using the DescribeSnapshotAttributeRequest method.
  11540. // req, resp := client.DescribeSnapshotAttributeRequest(params)
  11541. //
  11542. // err := req.Send()
  11543. // if err == nil { // resp is now filled
  11544. // fmt.Println(resp)
  11545. // }
  11546. //
  11547. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute
  11548. func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeInput) (req *request.Request, output *DescribeSnapshotAttributeOutput) {
  11549. op := &request.Operation{
  11550. Name: opDescribeSnapshotAttribute,
  11551. HTTPMethod: "POST",
  11552. HTTPPath: "/",
  11553. }
  11554. if input == nil {
  11555. input = &DescribeSnapshotAttributeInput{}
  11556. }
  11557. output = &DescribeSnapshotAttributeOutput{}
  11558. req = c.newRequest(op, input, output)
  11559. return
  11560. }
  11561. // DescribeSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  11562. //
  11563. // Describes the specified attribute of the specified snapshot. You can specify
  11564. // only one attribute at a time.
  11565. //
  11566. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  11567. // in the Amazon Elastic Compute Cloud User Guide.
  11568. //
  11569. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11570. // with awserr.Error's Code and Message methods to get detailed information about
  11571. // the error.
  11572. //
  11573. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11574. // API operation DescribeSnapshotAttribute for usage and error information.
  11575. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttribute
  11576. func (c *EC2) DescribeSnapshotAttribute(input *DescribeSnapshotAttributeInput) (*DescribeSnapshotAttributeOutput, error) {
  11577. req, out := c.DescribeSnapshotAttributeRequest(input)
  11578. return out, req.Send()
  11579. }
  11580. // DescribeSnapshotAttributeWithContext is the same as DescribeSnapshotAttribute with the addition of
  11581. // the ability to pass a context and additional request options.
  11582. //
  11583. // See DescribeSnapshotAttribute for details on how to use this API operation.
  11584. //
  11585. // The context must be non-nil and will be used for request cancellation. If
  11586. // the context is nil a panic will occur. In the future the SDK may create
  11587. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11588. // for more information on using Contexts.
  11589. func (c *EC2) DescribeSnapshotAttributeWithContext(ctx aws.Context, input *DescribeSnapshotAttributeInput, opts ...request.Option) (*DescribeSnapshotAttributeOutput, error) {
  11590. req, out := c.DescribeSnapshotAttributeRequest(input)
  11591. req.SetContext(ctx)
  11592. req.ApplyOptions(opts...)
  11593. return out, req.Send()
  11594. }
  11595. const opDescribeSnapshots = "DescribeSnapshots"
  11596. // DescribeSnapshotsRequest generates a "aws/request.Request" representing the
  11597. // client's request for the DescribeSnapshots operation. The "output" return
  11598. // value will be populated with the request's response once the request complets
  11599. // successfuly.
  11600. //
  11601. // Use "Send" method on the returned Request to send the API call to the service.
  11602. // the "output" return value is not valid until after Send returns without error.
  11603. //
  11604. // See DescribeSnapshots for more information on using the DescribeSnapshots
  11605. // API call, and error handling.
  11606. //
  11607. // This method is useful when you want to inject custom logic or configuration
  11608. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11609. //
  11610. //
  11611. // // Example sending a request using the DescribeSnapshotsRequest method.
  11612. // req, resp := client.DescribeSnapshotsRequest(params)
  11613. //
  11614. // err := req.Send()
  11615. // if err == nil { // resp is now filled
  11616. // fmt.Println(resp)
  11617. // }
  11618. //
  11619. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots
  11620. func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) {
  11621. op := &request.Operation{
  11622. Name: opDescribeSnapshots,
  11623. HTTPMethod: "POST",
  11624. HTTPPath: "/",
  11625. Paginator: &request.Paginator{
  11626. InputTokens: []string{"NextToken"},
  11627. OutputTokens: []string{"NextToken"},
  11628. LimitToken: "MaxResults",
  11629. TruncationToken: "",
  11630. },
  11631. }
  11632. if input == nil {
  11633. input = &DescribeSnapshotsInput{}
  11634. }
  11635. output = &DescribeSnapshotsOutput{}
  11636. req = c.newRequest(op, input, output)
  11637. return
  11638. }
  11639. // DescribeSnapshots API operation for Amazon Elastic Compute Cloud.
  11640. //
  11641. // Describes one or more of the EBS snapshots available to you. Available snapshots
  11642. // include public snapshots available for any AWS account to launch, private
  11643. // snapshots that you own, and private snapshots owned by another AWS account
  11644. // but for which you've been given explicit create volume permissions.
  11645. //
  11646. // The create volume permissions fall into the following categories:
  11647. //
  11648. // * public: The owner of the snapshot granted create volume permissions
  11649. // for the snapshot to the all group. All AWS accounts have create volume
  11650. // permissions for these snapshots.
  11651. //
  11652. // * explicit: The owner of the snapshot granted create volume permissions
  11653. // to a specific AWS account.
  11654. //
  11655. // * implicit: An AWS account has implicit create volume permissions for
  11656. // all snapshots it owns.
  11657. //
  11658. // The list of snapshots returned can be modified by specifying snapshot IDs,
  11659. // snapshot owners, or AWS accounts with create volume permissions. If no options
  11660. // are specified, Amazon EC2 returns all snapshots for which you have create
  11661. // volume permissions.
  11662. //
  11663. // If you specify one or more snapshot IDs, only snapshots that have the specified
  11664. // IDs are returned. If you specify an invalid snapshot ID, an error is returned.
  11665. // If you specify a snapshot ID for which you do not have access, it is not
  11666. // included in the returned results.
  11667. //
  11668. // If you specify one or more snapshot owners using the OwnerIds option, only
  11669. // snapshots from the specified owners and for which you have access are returned.
  11670. // The results can include the AWS account IDs of the specified owners, amazon
  11671. // for snapshots owned by Amazon, or self for snapshots that you own.
  11672. //
  11673. // If you specify a list of restorable users, only snapshots with create snapshot
  11674. // permissions for those users are returned. You can specify AWS account IDs
  11675. // (if you own the snapshots), self for snapshots for which you own or have
  11676. // explicit permissions, or all for public snapshots.
  11677. //
  11678. // If you are describing a long list of snapshots, you can paginate the output
  11679. // to make the list more manageable. The MaxResults parameter sets the maximum
  11680. // number of results returned in a single page. If the list of results exceeds
  11681. // your MaxResults value, then that number of results is returned along with
  11682. // a NextToken value that can be passed to a subsequent DescribeSnapshots request
  11683. // to retrieve the remaining results.
  11684. //
  11685. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  11686. // in the Amazon Elastic Compute Cloud User Guide.
  11687. //
  11688. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11689. // with awserr.Error's Code and Message methods to get detailed information about
  11690. // the error.
  11691. //
  11692. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11693. // API operation DescribeSnapshots for usage and error information.
  11694. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshots
  11695. func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) {
  11696. req, out := c.DescribeSnapshotsRequest(input)
  11697. return out, req.Send()
  11698. }
  11699. // DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of
  11700. // the ability to pass a context and additional request options.
  11701. //
  11702. // See DescribeSnapshots for details on how to use this API operation.
  11703. //
  11704. // The context must be non-nil and will be used for request cancellation. If
  11705. // the context is nil a panic will occur. In the future the SDK may create
  11706. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11707. // for more information on using Contexts.
  11708. func (c *EC2) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error) {
  11709. req, out := c.DescribeSnapshotsRequest(input)
  11710. req.SetContext(ctx)
  11711. req.ApplyOptions(opts...)
  11712. return out, req.Send()
  11713. }
  11714. // DescribeSnapshotsPages iterates over the pages of a DescribeSnapshots operation,
  11715. // calling the "fn" function with the response data for each page. To stop
  11716. // iterating, return false from the fn function.
  11717. //
  11718. // See DescribeSnapshots method for more information on how to use this operation.
  11719. //
  11720. // Note: This operation can generate multiple requests to a service.
  11721. //
  11722. // // Example iterating over at most 3 pages of a DescribeSnapshots operation.
  11723. // pageNum := 0
  11724. // err := client.DescribeSnapshotsPages(params,
  11725. // func(page *DescribeSnapshotsOutput, lastPage bool) bool {
  11726. // pageNum++
  11727. // fmt.Println(page)
  11728. // return pageNum <= 3
  11729. // })
  11730. //
  11731. func (c *EC2) DescribeSnapshotsPages(input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool) error {
  11732. return c.DescribeSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn)
  11733. }
  11734. // DescribeSnapshotsPagesWithContext same as DescribeSnapshotsPages except
  11735. // it takes a Context and allows setting request options on the pages.
  11736. //
  11737. // The context must be non-nil and will be used for request cancellation. If
  11738. // the context is nil a panic will occur. In the future the SDK may create
  11739. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11740. // for more information on using Contexts.
  11741. func (c *EC2) DescribeSnapshotsPagesWithContext(ctx aws.Context, input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool, opts ...request.Option) error {
  11742. p := request.Pagination{
  11743. NewRequest: func() (*request.Request, error) {
  11744. var inCpy *DescribeSnapshotsInput
  11745. if input != nil {
  11746. tmp := *input
  11747. inCpy = &tmp
  11748. }
  11749. req, _ := c.DescribeSnapshotsRequest(inCpy)
  11750. req.SetContext(ctx)
  11751. req.ApplyOptions(opts...)
  11752. return req, nil
  11753. },
  11754. }
  11755. cont := true
  11756. for p.Next() && cont {
  11757. cont = fn(p.Page().(*DescribeSnapshotsOutput), !p.HasNextPage())
  11758. }
  11759. return p.Err()
  11760. }
  11761. const opDescribeSpotDatafeedSubscription = "DescribeSpotDatafeedSubscription"
  11762. // DescribeSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  11763. // client's request for the DescribeSpotDatafeedSubscription operation. The "output" return
  11764. // value will be populated with the request's response once the request complets
  11765. // successfuly.
  11766. //
  11767. // Use "Send" method on the returned Request to send the API call to the service.
  11768. // the "output" return value is not valid until after Send returns without error.
  11769. //
  11770. // See DescribeSpotDatafeedSubscription for more information on using the DescribeSpotDatafeedSubscription
  11771. // API call, and error handling.
  11772. //
  11773. // This method is useful when you want to inject custom logic or configuration
  11774. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11775. //
  11776. //
  11777. // // Example sending a request using the DescribeSpotDatafeedSubscriptionRequest method.
  11778. // req, resp := client.DescribeSpotDatafeedSubscriptionRequest(params)
  11779. //
  11780. // err := req.Send()
  11781. // if err == nil { // resp is now filled
  11782. // fmt.Println(resp)
  11783. // }
  11784. //
  11785. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription
  11786. func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafeedSubscriptionInput) (req *request.Request, output *DescribeSpotDatafeedSubscriptionOutput) {
  11787. op := &request.Operation{
  11788. Name: opDescribeSpotDatafeedSubscription,
  11789. HTTPMethod: "POST",
  11790. HTTPPath: "/",
  11791. }
  11792. if input == nil {
  11793. input = &DescribeSpotDatafeedSubscriptionInput{}
  11794. }
  11795. output = &DescribeSpotDatafeedSubscriptionOutput{}
  11796. req = c.newRequest(op, input, output)
  11797. return
  11798. }
  11799. // DescribeSpotDatafeedSubscription API operation for Amazon Elastic Compute Cloud.
  11800. //
  11801. // Describes the data feed for Spot Instances. For more information, see Spot
  11802. // Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  11803. // in the Amazon Elastic Compute Cloud User Guide.
  11804. //
  11805. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11806. // with awserr.Error's Code and Message methods to get detailed information about
  11807. // the error.
  11808. //
  11809. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11810. // API operation DescribeSpotDatafeedSubscription for usage and error information.
  11811. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscription
  11812. func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  11813. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  11814. return out, req.Send()
  11815. }
  11816. // DescribeSpotDatafeedSubscriptionWithContext is the same as DescribeSpotDatafeedSubscription with the addition of
  11817. // the ability to pass a context and additional request options.
  11818. //
  11819. // See DescribeSpotDatafeedSubscription for details on how to use this API operation.
  11820. //
  11821. // The context must be non-nil and will be used for request cancellation. If
  11822. // the context is nil a panic will occur. In the future the SDK may create
  11823. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11824. // for more information on using Contexts.
  11825. func (c *EC2) DescribeSpotDatafeedSubscriptionWithContext(ctx aws.Context, input *DescribeSpotDatafeedSubscriptionInput, opts ...request.Option) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  11826. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  11827. req.SetContext(ctx)
  11828. req.ApplyOptions(opts...)
  11829. return out, req.Send()
  11830. }
  11831. const opDescribeSpotFleetInstances = "DescribeSpotFleetInstances"
  11832. // DescribeSpotFleetInstancesRequest generates a "aws/request.Request" representing the
  11833. // client's request for the DescribeSpotFleetInstances operation. The "output" return
  11834. // value will be populated with the request's response once the request complets
  11835. // successfuly.
  11836. //
  11837. // Use "Send" method on the returned Request to send the API call to the service.
  11838. // the "output" return value is not valid until after Send returns without error.
  11839. //
  11840. // See DescribeSpotFleetInstances for more information on using the DescribeSpotFleetInstances
  11841. // API call, and error handling.
  11842. //
  11843. // This method is useful when you want to inject custom logic or configuration
  11844. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11845. //
  11846. //
  11847. // // Example sending a request using the DescribeSpotFleetInstancesRequest method.
  11848. // req, resp := client.DescribeSpotFleetInstancesRequest(params)
  11849. //
  11850. // err := req.Send()
  11851. // if err == nil { // resp is now filled
  11852. // fmt.Println(resp)
  11853. // }
  11854. //
  11855. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances
  11856. func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstancesInput) (req *request.Request, output *DescribeSpotFleetInstancesOutput) {
  11857. op := &request.Operation{
  11858. Name: opDescribeSpotFleetInstances,
  11859. HTTPMethod: "POST",
  11860. HTTPPath: "/",
  11861. }
  11862. if input == nil {
  11863. input = &DescribeSpotFleetInstancesInput{}
  11864. }
  11865. output = &DescribeSpotFleetInstancesOutput{}
  11866. req = c.newRequest(op, input, output)
  11867. return
  11868. }
  11869. // DescribeSpotFleetInstances API operation for Amazon Elastic Compute Cloud.
  11870. //
  11871. // Describes the running instances for the specified Spot Fleet.
  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 DescribeSpotFleetInstances for usage and error information.
  11879. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstances
  11880. func (c *EC2) DescribeSpotFleetInstances(input *DescribeSpotFleetInstancesInput) (*DescribeSpotFleetInstancesOutput, error) {
  11881. req, out := c.DescribeSpotFleetInstancesRequest(input)
  11882. return out, req.Send()
  11883. }
  11884. // DescribeSpotFleetInstancesWithContext is the same as DescribeSpotFleetInstances with the addition of
  11885. // the ability to pass a context and additional request options.
  11886. //
  11887. // See DescribeSpotFleetInstances 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) DescribeSpotFleetInstancesWithContext(ctx aws.Context, input *DescribeSpotFleetInstancesInput, opts ...request.Option) (*DescribeSpotFleetInstancesOutput, error) {
  11894. req, out := c.DescribeSpotFleetInstancesRequest(input)
  11895. req.SetContext(ctx)
  11896. req.ApplyOptions(opts...)
  11897. return out, req.Send()
  11898. }
  11899. const opDescribeSpotFleetRequestHistory = "DescribeSpotFleetRequestHistory"
  11900. // DescribeSpotFleetRequestHistoryRequest generates a "aws/request.Request" representing the
  11901. // client's request for the DescribeSpotFleetRequestHistory operation. The "output" return
  11902. // value will be populated with the request's response once the request complets
  11903. // successfuly.
  11904. //
  11905. // Use "Send" method on the returned Request to send the API call to the service.
  11906. // the "output" return value is not valid until after Send returns without error.
  11907. //
  11908. // See DescribeSpotFleetRequestHistory for more information on using the DescribeSpotFleetRequestHistory
  11909. // API call, and error handling.
  11910. //
  11911. // This method is useful when you want to inject custom logic or configuration
  11912. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11913. //
  11914. //
  11915. // // Example sending a request using the DescribeSpotFleetRequestHistoryRequest method.
  11916. // req, resp := client.DescribeSpotFleetRequestHistoryRequest(params)
  11917. //
  11918. // err := req.Send()
  11919. // if err == nil { // resp is now filled
  11920. // fmt.Println(resp)
  11921. // }
  11922. //
  11923. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory
  11924. func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetRequestHistoryInput) (req *request.Request, output *DescribeSpotFleetRequestHistoryOutput) {
  11925. op := &request.Operation{
  11926. Name: opDescribeSpotFleetRequestHistory,
  11927. HTTPMethod: "POST",
  11928. HTTPPath: "/",
  11929. }
  11930. if input == nil {
  11931. input = &DescribeSpotFleetRequestHistoryInput{}
  11932. }
  11933. output = &DescribeSpotFleetRequestHistoryOutput{}
  11934. req = c.newRequest(op, input, output)
  11935. return
  11936. }
  11937. // DescribeSpotFleetRequestHistory API operation for Amazon Elastic Compute Cloud.
  11938. //
  11939. // Describes the events for the specified Spot Fleet request during the specified
  11940. // time.
  11941. //
  11942. // Spot Fleet events are delayed by up to 30 seconds before they can be described.
  11943. // This ensures that you can query by the last evaluated time and not miss a
  11944. // recorded event.
  11945. //
  11946. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  11947. // with awserr.Error's Code and Message methods to get detailed information about
  11948. // the error.
  11949. //
  11950. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  11951. // API operation DescribeSpotFleetRequestHistory for usage and error information.
  11952. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistory
  11953. func (c *EC2) DescribeSpotFleetRequestHistory(input *DescribeSpotFleetRequestHistoryInput) (*DescribeSpotFleetRequestHistoryOutput, error) {
  11954. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  11955. return out, req.Send()
  11956. }
  11957. // DescribeSpotFleetRequestHistoryWithContext is the same as DescribeSpotFleetRequestHistory with the addition of
  11958. // the ability to pass a context and additional request options.
  11959. //
  11960. // See DescribeSpotFleetRequestHistory for details on how to use this API operation.
  11961. //
  11962. // The context must be non-nil and will be used for request cancellation. If
  11963. // the context is nil a panic will occur. In the future the SDK may create
  11964. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  11965. // for more information on using Contexts.
  11966. func (c *EC2) DescribeSpotFleetRequestHistoryWithContext(ctx aws.Context, input *DescribeSpotFleetRequestHistoryInput, opts ...request.Option) (*DescribeSpotFleetRequestHistoryOutput, error) {
  11967. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  11968. req.SetContext(ctx)
  11969. req.ApplyOptions(opts...)
  11970. return out, req.Send()
  11971. }
  11972. const opDescribeSpotFleetRequests = "DescribeSpotFleetRequests"
  11973. // DescribeSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  11974. // client's request for the DescribeSpotFleetRequests operation. The "output" return
  11975. // value will be populated with the request's response once the request complets
  11976. // successfuly.
  11977. //
  11978. // Use "Send" method on the returned Request to send the API call to the service.
  11979. // the "output" return value is not valid until after Send returns without error.
  11980. //
  11981. // See DescribeSpotFleetRequests for more information on using the DescribeSpotFleetRequests
  11982. // API call, and error handling.
  11983. //
  11984. // This method is useful when you want to inject custom logic or configuration
  11985. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  11986. //
  11987. //
  11988. // // Example sending a request using the DescribeSpotFleetRequestsRequest method.
  11989. // req, resp := client.DescribeSpotFleetRequestsRequest(params)
  11990. //
  11991. // err := req.Send()
  11992. // if err == nil { // resp is now filled
  11993. // fmt.Println(resp)
  11994. // }
  11995. //
  11996. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests
  11997. func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsInput) (req *request.Request, output *DescribeSpotFleetRequestsOutput) {
  11998. op := &request.Operation{
  11999. Name: opDescribeSpotFleetRequests,
  12000. HTTPMethod: "POST",
  12001. HTTPPath: "/",
  12002. Paginator: &request.Paginator{
  12003. InputTokens: []string{"NextToken"},
  12004. OutputTokens: []string{"NextToken"},
  12005. LimitToken: "MaxResults",
  12006. TruncationToken: "",
  12007. },
  12008. }
  12009. if input == nil {
  12010. input = &DescribeSpotFleetRequestsInput{}
  12011. }
  12012. output = &DescribeSpotFleetRequestsOutput{}
  12013. req = c.newRequest(op, input, output)
  12014. return
  12015. }
  12016. // DescribeSpotFleetRequests API operation for Amazon Elastic Compute Cloud.
  12017. //
  12018. // Describes your Spot Fleet requests.
  12019. //
  12020. // Spot Fleet requests are deleted 48 hours after they are canceled and their
  12021. // instances are terminated.
  12022. //
  12023. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12024. // with awserr.Error's Code and Message methods to get detailed information about
  12025. // the error.
  12026. //
  12027. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12028. // API operation DescribeSpotFleetRequests for usage and error information.
  12029. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequests
  12030. func (c *EC2) DescribeSpotFleetRequests(input *DescribeSpotFleetRequestsInput) (*DescribeSpotFleetRequestsOutput, error) {
  12031. req, out := c.DescribeSpotFleetRequestsRequest(input)
  12032. return out, req.Send()
  12033. }
  12034. // DescribeSpotFleetRequestsWithContext is the same as DescribeSpotFleetRequests with the addition of
  12035. // the ability to pass a context and additional request options.
  12036. //
  12037. // See DescribeSpotFleetRequests for details on how to use this API operation.
  12038. //
  12039. // The context must be non-nil and will be used for request cancellation. If
  12040. // the context is nil a panic will occur. In the future the SDK may create
  12041. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12042. // for more information on using Contexts.
  12043. func (c *EC2) DescribeSpotFleetRequestsWithContext(ctx aws.Context, input *DescribeSpotFleetRequestsInput, opts ...request.Option) (*DescribeSpotFleetRequestsOutput, error) {
  12044. req, out := c.DescribeSpotFleetRequestsRequest(input)
  12045. req.SetContext(ctx)
  12046. req.ApplyOptions(opts...)
  12047. return out, req.Send()
  12048. }
  12049. // DescribeSpotFleetRequestsPages iterates over the pages of a DescribeSpotFleetRequests operation,
  12050. // calling the "fn" function with the response data for each page. To stop
  12051. // iterating, return false from the fn function.
  12052. //
  12053. // See DescribeSpotFleetRequests method for more information on how to use this operation.
  12054. //
  12055. // Note: This operation can generate multiple requests to a service.
  12056. //
  12057. // // Example iterating over at most 3 pages of a DescribeSpotFleetRequests operation.
  12058. // pageNum := 0
  12059. // err := client.DescribeSpotFleetRequestsPages(params,
  12060. // func(page *DescribeSpotFleetRequestsOutput, lastPage bool) bool {
  12061. // pageNum++
  12062. // fmt.Println(page)
  12063. // return pageNum <= 3
  12064. // })
  12065. //
  12066. func (c *EC2) DescribeSpotFleetRequestsPages(input *DescribeSpotFleetRequestsInput, fn func(*DescribeSpotFleetRequestsOutput, bool) bool) error {
  12067. return c.DescribeSpotFleetRequestsPagesWithContext(aws.BackgroundContext(), input, fn)
  12068. }
  12069. // DescribeSpotFleetRequestsPagesWithContext same as DescribeSpotFleetRequestsPages except
  12070. // it takes a Context and allows setting request options on the pages.
  12071. //
  12072. // The context must be non-nil and will be used for request cancellation. If
  12073. // the context is nil a panic will occur. In the future the SDK may create
  12074. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12075. // for more information on using Contexts.
  12076. func (c *EC2) DescribeSpotFleetRequestsPagesWithContext(ctx aws.Context, input *DescribeSpotFleetRequestsInput, fn func(*DescribeSpotFleetRequestsOutput, bool) bool, opts ...request.Option) error {
  12077. p := request.Pagination{
  12078. NewRequest: func() (*request.Request, error) {
  12079. var inCpy *DescribeSpotFleetRequestsInput
  12080. if input != nil {
  12081. tmp := *input
  12082. inCpy = &tmp
  12083. }
  12084. req, _ := c.DescribeSpotFleetRequestsRequest(inCpy)
  12085. req.SetContext(ctx)
  12086. req.ApplyOptions(opts...)
  12087. return req, nil
  12088. },
  12089. }
  12090. cont := true
  12091. for p.Next() && cont {
  12092. cont = fn(p.Page().(*DescribeSpotFleetRequestsOutput), !p.HasNextPage())
  12093. }
  12094. return p.Err()
  12095. }
  12096. const opDescribeSpotInstanceRequests = "DescribeSpotInstanceRequests"
  12097. // DescribeSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  12098. // client's request for the DescribeSpotInstanceRequests operation. The "output" return
  12099. // value will be populated with the request's response once the request complets
  12100. // successfuly.
  12101. //
  12102. // Use "Send" method on the returned Request to send the API call to the service.
  12103. // the "output" return value is not valid until after Send returns without error.
  12104. //
  12105. // See DescribeSpotInstanceRequests for more information on using the DescribeSpotInstanceRequests
  12106. // API call, and error handling.
  12107. //
  12108. // This method is useful when you want to inject custom logic or configuration
  12109. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12110. //
  12111. //
  12112. // // Example sending a request using the DescribeSpotInstanceRequestsRequest method.
  12113. // req, resp := client.DescribeSpotInstanceRequestsRequest(params)
  12114. //
  12115. // err := req.Send()
  12116. // if err == nil { // resp is now filled
  12117. // fmt.Println(resp)
  12118. // }
  12119. //
  12120. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  12121. func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceRequestsInput) (req *request.Request, output *DescribeSpotInstanceRequestsOutput) {
  12122. op := &request.Operation{
  12123. Name: opDescribeSpotInstanceRequests,
  12124. HTTPMethod: "POST",
  12125. HTTPPath: "/",
  12126. }
  12127. if input == nil {
  12128. input = &DescribeSpotInstanceRequestsInput{}
  12129. }
  12130. output = &DescribeSpotInstanceRequestsOutput{}
  12131. req = c.newRequest(op, input, output)
  12132. return
  12133. }
  12134. // DescribeSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
  12135. //
  12136. // Describes the Spot Instance requests that belong to your account. Spot Instances
  12137. // are instances that Amazon EC2 launches when the Spot price that you specify
  12138. // exceeds the current Spot price. For more information, see Spot Instance Requests
  12139. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) in
  12140. // the Amazon Elastic Compute Cloud User Guide.
  12141. //
  12142. // You can use DescribeSpotInstanceRequests to find a running Spot Instance
  12143. // by examining the response. If the status of the Spot Instance is fulfilled,
  12144. // the instance ID appears in the response and contains the identifier of the
  12145. // instance. Alternatively, you can use DescribeInstances with a filter to look
  12146. // for instances where the instance lifecycle is spot.
  12147. //
  12148. // Spot Instance requests are deleted 4 hours after they are canceled and their
  12149. // instances are terminated.
  12150. //
  12151. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12152. // with awserr.Error's Code and Message methods to get detailed information about
  12153. // the error.
  12154. //
  12155. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12156. // API operation DescribeSpotInstanceRequests for usage and error information.
  12157. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequests
  12158. func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) {
  12159. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  12160. return out, req.Send()
  12161. }
  12162. // DescribeSpotInstanceRequestsWithContext is the same as DescribeSpotInstanceRequests with the addition of
  12163. // the ability to pass a context and additional request options.
  12164. //
  12165. // See DescribeSpotInstanceRequests for details on how to use this API operation.
  12166. //
  12167. // The context must be non-nil and will be used for request cancellation. If
  12168. // the context is nil a panic will occur. In the future the SDK may create
  12169. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12170. // for more information on using Contexts.
  12171. func (c *EC2) DescribeSpotInstanceRequestsWithContext(ctx aws.Context, input *DescribeSpotInstanceRequestsInput, opts ...request.Option) (*DescribeSpotInstanceRequestsOutput, error) {
  12172. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  12173. req.SetContext(ctx)
  12174. req.ApplyOptions(opts...)
  12175. return out, req.Send()
  12176. }
  12177. const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory"
  12178. // DescribeSpotPriceHistoryRequest generates a "aws/request.Request" representing the
  12179. // client's request for the DescribeSpotPriceHistory operation. The "output" return
  12180. // value will be populated with the request's response once the request complets
  12181. // successfuly.
  12182. //
  12183. // Use "Send" method on the returned Request to send the API call to the service.
  12184. // the "output" return value is not valid until after Send returns without error.
  12185. //
  12186. // See DescribeSpotPriceHistory for more information on using the DescribeSpotPriceHistory
  12187. // API call, and error handling.
  12188. //
  12189. // This method is useful when you want to inject custom logic or configuration
  12190. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12191. //
  12192. //
  12193. // // Example sending a request using the DescribeSpotPriceHistoryRequest method.
  12194. // req, resp := client.DescribeSpotPriceHistoryRequest(params)
  12195. //
  12196. // err := req.Send()
  12197. // if err == nil { // resp is now filled
  12198. // fmt.Println(resp)
  12199. // }
  12200. //
  12201. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  12202. func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInput) (req *request.Request, output *DescribeSpotPriceHistoryOutput) {
  12203. op := &request.Operation{
  12204. Name: opDescribeSpotPriceHistory,
  12205. HTTPMethod: "POST",
  12206. HTTPPath: "/",
  12207. Paginator: &request.Paginator{
  12208. InputTokens: []string{"NextToken"},
  12209. OutputTokens: []string{"NextToken"},
  12210. LimitToken: "MaxResults",
  12211. TruncationToken: "",
  12212. },
  12213. }
  12214. if input == nil {
  12215. input = &DescribeSpotPriceHistoryInput{}
  12216. }
  12217. output = &DescribeSpotPriceHistoryOutput{}
  12218. req = c.newRequest(op, input, output)
  12219. return
  12220. }
  12221. // DescribeSpotPriceHistory API operation for Amazon Elastic Compute Cloud.
  12222. //
  12223. // Describes the Spot price history. For more information, see Spot Instance
  12224. // Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html)
  12225. // in the Amazon Elastic Compute Cloud User Guide.
  12226. //
  12227. // When you specify a start and end time, this operation returns the prices
  12228. // of the instance types within the time range that you specified and the time
  12229. // when the price changed. The price is valid within the time period that you
  12230. // specified; the response merely indicates the last time that the price changed.
  12231. //
  12232. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12233. // with awserr.Error's Code and Message methods to get detailed information about
  12234. // the error.
  12235. //
  12236. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12237. // API operation DescribeSpotPriceHistory for usage and error information.
  12238. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistory
  12239. func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) {
  12240. req, out := c.DescribeSpotPriceHistoryRequest(input)
  12241. return out, req.Send()
  12242. }
  12243. // DescribeSpotPriceHistoryWithContext is the same as DescribeSpotPriceHistory with the addition of
  12244. // the ability to pass a context and additional request options.
  12245. //
  12246. // See DescribeSpotPriceHistory for details on how to use this API operation.
  12247. //
  12248. // The context must be non-nil and will be used for request cancellation. If
  12249. // the context is nil a panic will occur. In the future the SDK may create
  12250. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12251. // for more information on using Contexts.
  12252. func (c *EC2) DescribeSpotPriceHistoryWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, opts ...request.Option) (*DescribeSpotPriceHistoryOutput, error) {
  12253. req, out := c.DescribeSpotPriceHistoryRequest(input)
  12254. req.SetContext(ctx)
  12255. req.ApplyOptions(opts...)
  12256. return out, req.Send()
  12257. }
  12258. // DescribeSpotPriceHistoryPages iterates over the pages of a DescribeSpotPriceHistory operation,
  12259. // calling the "fn" function with the response data for each page. To stop
  12260. // iterating, return false from the fn function.
  12261. //
  12262. // See DescribeSpotPriceHistory method for more information on how to use this operation.
  12263. //
  12264. // Note: This operation can generate multiple requests to a service.
  12265. //
  12266. // // Example iterating over at most 3 pages of a DescribeSpotPriceHistory operation.
  12267. // pageNum := 0
  12268. // err := client.DescribeSpotPriceHistoryPages(params,
  12269. // func(page *DescribeSpotPriceHistoryOutput, lastPage bool) bool {
  12270. // pageNum++
  12271. // fmt.Println(page)
  12272. // return pageNum <= 3
  12273. // })
  12274. //
  12275. func (c *EC2) DescribeSpotPriceHistoryPages(input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool) error {
  12276. return c.DescribeSpotPriceHistoryPagesWithContext(aws.BackgroundContext(), input, fn)
  12277. }
  12278. // DescribeSpotPriceHistoryPagesWithContext same as DescribeSpotPriceHistoryPages except
  12279. // it takes a Context and allows setting request options on the pages.
  12280. //
  12281. // The context must be non-nil and will be used for request cancellation. If
  12282. // the context is nil a panic will occur. In the future the SDK may create
  12283. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12284. // for more information on using Contexts.
  12285. func (c *EC2) DescribeSpotPriceHistoryPagesWithContext(ctx aws.Context, input *DescribeSpotPriceHistoryInput, fn func(*DescribeSpotPriceHistoryOutput, bool) bool, opts ...request.Option) error {
  12286. p := request.Pagination{
  12287. NewRequest: func() (*request.Request, error) {
  12288. var inCpy *DescribeSpotPriceHistoryInput
  12289. if input != nil {
  12290. tmp := *input
  12291. inCpy = &tmp
  12292. }
  12293. req, _ := c.DescribeSpotPriceHistoryRequest(inCpy)
  12294. req.SetContext(ctx)
  12295. req.ApplyOptions(opts...)
  12296. return req, nil
  12297. },
  12298. }
  12299. cont := true
  12300. for p.Next() && cont {
  12301. cont = fn(p.Page().(*DescribeSpotPriceHistoryOutput), !p.HasNextPage())
  12302. }
  12303. return p.Err()
  12304. }
  12305. const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups"
  12306. // DescribeStaleSecurityGroupsRequest generates a "aws/request.Request" representing the
  12307. // client's request for the DescribeStaleSecurityGroups operation. The "output" return
  12308. // value will be populated with the request's response once the request complets
  12309. // successfuly.
  12310. //
  12311. // Use "Send" method on the returned Request to send the API call to the service.
  12312. // the "output" return value is not valid until after Send returns without error.
  12313. //
  12314. // See DescribeStaleSecurityGroups for more information on using the DescribeStaleSecurityGroups
  12315. // API call, and error handling.
  12316. //
  12317. // This method is useful when you want to inject custom logic or configuration
  12318. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12319. //
  12320. //
  12321. // // Example sending a request using the DescribeStaleSecurityGroupsRequest method.
  12322. // req, resp := client.DescribeStaleSecurityGroupsRequest(params)
  12323. //
  12324. // err := req.Send()
  12325. // if err == nil { // resp is now filled
  12326. // fmt.Println(resp)
  12327. // }
  12328. //
  12329. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  12330. func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) (req *request.Request, output *DescribeStaleSecurityGroupsOutput) {
  12331. op := &request.Operation{
  12332. Name: opDescribeStaleSecurityGroups,
  12333. HTTPMethod: "POST",
  12334. HTTPPath: "/",
  12335. }
  12336. if input == nil {
  12337. input = &DescribeStaleSecurityGroupsInput{}
  12338. }
  12339. output = &DescribeStaleSecurityGroupsOutput{}
  12340. req = c.newRequest(op, input, output)
  12341. return
  12342. }
  12343. // DescribeStaleSecurityGroups API operation for Amazon Elastic Compute Cloud.
  12344. //
  12345. // [EC2-VPC only] Describes the stale security group rules for security groups
  12346. // in a specified VPC. Rules are stale when they reference a deleted security
  12347. // group in a peer VPC, or a security group in a peer VPC for which the VPC
  12348. // peering connection has been deleted.
  12349. //
  12350. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12351. // with awserr.Error's Code and Message methods to get detailed information about
  12352. // the error.
  12353. //
  12354. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12355. // API operation DescribeStaleSecurityGroups for usage and error information.
  12356. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroups
  12357. func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) {
  12358. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  12359. return out, req.Send()
  12360. }
  12361. // DescribeStaleSecurityGroupsWithContext is the same as DescribeStaleSecurityGroups with the addition of
  12362. // the ability to pass a context and additional request options.
  12363. //
  12364. // See DescribeStaleSecurityGroups for details on how to use this API operation.
  12365. //
  12366. // The context must be non-nil and will be used for request cancellation. If
  12367. // the context is nil a panic will occur. In the future the SDK may create
  12368. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12369. // for more information on using Contexts.
  12370. func (c *EC2) DescribeStaleSecurityGroupsWithContext(ctx aws.Context, input *DescribeStaleSecurityGroupsInput, opts ...request.Option) (*DescribeStaleSecurityGroupsOutput, error) {
  12371. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  12372. req.SetContext(ctx)
  12373. req.ApplyOptions(opts...)
  12374. return out, req.Send()
  12375. }
  12376. const opDescribeSubnets = "DescribeSubnets"
  12377. // DescribeSubnetsRequest generates a "aws/request.Request" representing the
  12378. // client's request for the DescribeSubnets operation. The "output" return
  12379. // value will be populated with the request's response once the request complets
  12380. // successfuly.
  12381. //
  12382. // Use "Send" method on the returned Request to send the API call to the service.
  12383. // the "output" return value is not valid until after Send returns without error.
  12384. //
  12385. // See DescribeSubnets for more information on using the DescribeSubnets
  12386. // API call, and error handling.
  12387. //
  12388. // This method is useful when you want to inject custom logic or configuration
  12389. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12390. //
  12391. //
  12392. // // Example sending a request using the DescribeSubnetsRequest method.
  12393. // req, resp := client.DescribeSubnetsRequest(params)
  12394. //
  12395. // err := req.Send()
  12396. // if err == nil { // resp is now filled
  12397. // fmt.Println(resp)
  12398. // }
  12399. //
  12400. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  12401. func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request.Request, output *DescribeSubnetsOutput) {
  12402. op := &request.Operation{
  12403. Name: opDescribeSubnets,
  12404. HTTPMethod: "POST",
  12405. HTTPPath: "/",
  12406. }
  12407. if input == nil {
  12408. input = &DescribeSubnetsInput{}
  12409. }
  12410. output = &DescribeSubnetsOutput{}
  12411. req = c.newRequest(op, input, output)
  12412. return
  12413. }
  12414. // DescribeSubnets API operation for Amazon Elastic Compute Cloud.
  12415. //
  12416. // Describes one or more of your subnets.
  12417. //
  12418. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  12419. // in the Amazon Virtual Private Cloud User Guide.
  12420. //
  12421. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12422. // with awserr.Error's Code and Message methods to get detailed information about
  12423. // the error.
  12424. //
  12425. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12426. // API operation DescribeSubnets for usage and error information.
  12427. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnets
  12428. func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) {
  12429. req, out := c.DescribeSubnetsRequest(input)
  12430. return out, req.Send()
  12431. }
  12432. // DescribeSubnetsWithContext is the same as DescribeSubnets with the addition of
  12433. // the ability to pass a context and additional request options.
  12434. //
  12435. // See DescribeSubnets for details on how to use this API operation.
  12436. //
  12437. // The context must be non-nil and will be used for request cancellation. If
  12438. // the context is nil a panic will occur. In the future the SDK may create
  12439. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12440. // for more information on using Contexts.
  12441. func (c *EC2) DescribeSubnetsWithContext(ctx aws.Context, input *DescribeSubnetsInput, opts ...request.Option) (*DescribeSubnetsOutput, error) {
  12442. req, out := c.DescribeSubnetsRequest(input)
  12443. req.SetContext(ctx)
  12444. req.ApplyOptions(opts...)
  12445. return out, req.Send()
  12446. }
  12447. const opDescribeTags = "DescribeTags"
  12448. // DescribeTagsRequest generates a "aws/request.Request" representing the
  12449. // client's request for the DescribeTags operation. The "output" return
  12450. // value will be populated with the request's response once the request complets
  12451. // successfuly.
  12452. //
  12453. // Use "Send" method on the returned Request to send the API call to the service.
  12454. // the "output" return value is not valid until after Send returns without error.
  12455. //
  12456. // See DescribeTags for more information on using the DescribeTags
  12457. // API call, and error handling.
  12458. //
  12459. // This method is useful when you want to inject custom logic or configuration
  12460. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12461. //
  12462. //
  12463. // // Example sending a request using the DescribeTagsRequest method.
  12464. // req, resp := client.DescribeTagsRequest(params)
  12465. //
  12466. // err := req.Send()
  12467. // if err == nil { // resp is now filled
  12468. // fmt.Println(resp)
  12469. // }
  12470. //
  12471. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  12472. func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  12473. op := &request.Operation{
  12474. Name: opDescribeTags,
  12475. HTTPMethod: "POST",
  12476. HTTPPath: "/",
  12477. Paginator: &request.Paginator{
  12478. InputTokens: []string{"NextToken"},
  12479. OutputTokens: []string{"NextToken"},
  12480. LimitToken: "MaxResults",
  12481. TruncationToken: "",
  12482. },
  12483. }
  12484. if input == nil {
  12485. input = &DescribeTagsInput{}
  12486. }
  12487. output = &DescribeTagsOutput{}
  12488. req = c.newRequest(op, input, output)
  12489. return
  12490. }
  12491. // DescribeTags API operation for Amazon Elastic Compute Cloud.
  12492. //
  12493. // Describes one or more of the tags for your EC2 resources.
  12494. //
  12495. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  12496. // in the Amazon Elastic Compute Cloud User Guide.
  12497. //
  12498. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12499. // with awserr.Error's Code and Message methods to get detailed information about
  12500. // the error.
  12501. //
  12502. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12503. // API operation DescribeTags for usage and error information.
  12504. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTags
  12505. func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  12506. req, out := c.DescribeTagsRequest(input)
  12507. return out, req.Send()
  12508. }
  12509. // DescribeTagsWithContext is the same as DescribeTags with the addition of
  12510. // the ability to pass a context and additional request options.
  12511. //
  12512. // See DescribeTags for details on how to use this API operation.
  12513. //
  12514. // The context must be non-nil and will be used for request cancellation. If
  12515. // the context is nil a panic will occur. In the future the SDK may create
  12516. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12517. // for more information on using Contexts.
  12518. func (c *EC2) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  12519. req, out := c.DescribeTagsRequest(input)
  12520. req.SetContext(ctx)
  12521. req.ApplyOptions(opts...)
  12522. return out, req.Send()
  12523. }
  12524. // DescribeTagsPages iterates over the pages of a DescribeTags operation,
  12525. // calling the "fn" function with the response data for each page. To stop
  12526. // iterating, return false from the fn function.
  12527. //
  12528. // See DescribeTags method for more information on how to use this operation.
  12529. //
  12530. // Note: This operation can generate multiple requests to a service.
  12531. //
  12532. // // Example iterating over at most 3 pages of a DescribeTags operation.
  12533. // pageNum := 0
  12534. // err := client.DescribeTagsPages(params,
  12535. // func(page *DescribeTagsOutput, lastPage bool) bool {
  12536. // pageNum++
  12537. // fmt.Println(page)
  12538. // return pageNum <= 3
  12539. // })
  12540. //
  12541. func (c *EC2) DescribeTagsPages(input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool) error {
  12542. return c.DescribeTagsPagesWithContext(aws.BackgroundContext(), input, fn)
  12543. }
  12544. // DescribeTagsPagesWithContext same as DescribeTagsPages except
  12545. // it takes a Context and allows setting request options on the pages.
  12546. //
  12547. // The context must be non-nil and will be used for request cancellation. If
  12548. // the context is nil a panic will occur. In the future the SDK may create
  12549. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12550. // for more information on using Contexts.
  12551. func (c *EC2) DescribeTagsPagesWithContext(ctx aws.Context, input *DescribeTagsInput, fn func(*DescribeTagsOutput, bool) bool, opts ...request.Option) error {
  12552. p := request.Pagination{
  12553. NewRequest: func() (*request.Request, error) {
  12554. var inCpy *DescribeTagsInput
  12555. if input != nil {
  12556. tmp := *input
  12557. inCpy = &tmp
  12558. }
  12559. req, _ := c.DescribeTagsRequest(inCpy)
  12560. req.SetContext(ctx)
  12561. req.ApplyOptions(opts...)
  12562. return req, nil
  12563. },
  12564. }
  12565. cont := true
  12566. for p.Next() && cont {
  12567. cont = fn(p.Page().(*DescribeTagsOutput), !p.HasNextPage())
  12568. }
  12569. return p.Err()
  12570. }
  12571. const opDescribeVolumeAttribute = "DescribeVolumeAttribute"
  12572. // DescribeVolumeAttributeRequest generates a "aws/request.Request" representing the
  12573. // client's request for the DescribeVolumeAttribute operation. The "output" return
  12574. // value will be populated with the request's response once the request complets
  12575. // successfuly.
  12576. //
  12577. // Use "Send" method on the returned Request to send the API call to the service.
  12578. // the "output" return value is not valid until after Send returns without error.
  12579. //
  12580. // See DescribeVolumeAttribute for more information on using the DescribeVolumeAttribute
  12581. // API call, and error handling.
  12582. //
  12583. // This method is useful when you want to inject custom logic or configuration
  12584. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12585. //
  12586. //
  12587. // // Example sending a request using the DescribeVolumeAttributeRequest method.
  12588. // req, resp := client.DescribeVolumeAttributeRequest(params)
  12589. //
  12590. // err := req.Send()
  12591. // if err == nil { // resp is now filled
  12592. // fmt.Println(resp)
  12593. // }
  12594. //
  12595. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  12596. func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput) (req *request.Request, output *DescribeVolumeAttributeOutput) {
  12597. op := &request.Operation{
  12598. Name: opDescribeVolumeAttribute,
  12599. HTTPMethod: "POST",
  12600. HTTPPath: "/",
  12601. }
  12602. if input == nil {
  12603. input = &DescribeVolumeAttributeInput{}
  12604. }
  12605. output = &DescribeVolumeAttributeOutput{}
  12606. req = c.newRequest(op, input, output)
  12607. return
  12608. }
  12609. // DescribeVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  12610. //
  12611. // Describes the specified attribute of the specified volume. You can specify
  12612. // only one attribute at a time.
  12613. //
  12614. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  12615. // in the Amazon Elastic Compute Cloud User Guide.
  12616. //
  12617. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12618. // with awserr.Error's Code and Message methods to get detailed information about
  12619. // the error.
  12620. //
  12621. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12622. // API operation DescribeVolumeAttribute for usage and error information.
  12623. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttribute
  12624. func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) {
  12625. req, out := c.DescribeVolumeAttributeRequest(input)
  12626. return out, req.Send()
  12627. }
  12628. // DescribeVolumeAttributeWithContext is the same as DescribeVolumeAttribute with the addition of
  12629. // the ability to pass a context and additional request options.
  12630. //
  12631. // See DescribeVolumeAttribute for details on how to use this API operation.
  12632. //
  12633. // The context must be non-nil and will be used for request cancellation. If
  12634. // the context is nil a panic will occur. In the future the SDK may create
  12635. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12636. // for more information on using Contexts.
  12637. func (c *EC2) DescribeVolumeAttributeWithContext(ctx aws.Context, input *DescribeVolumeAttributeInput, opts ...request.Option) (*DescribeVolumeAttributeOutput, error) {
  12638. req, out := c.DescribeVolumeAttributeRequest(input)
  12639. req.SetContext(ctx)
  12640. req.ApplyOptions(opts...)
  12641. return out, req.Send()
  12642. }
  12643. const opDescribeVolumeStatus = "DescribeVolumeStatus"
  12644. // DescribeVolumeStatusRequest generates a "aws/request.Request" representing the
  12645. // client's request for the DescribeVolumeStatus operation. The "output" return
  12646. // value will be populated with the request's response once the request complets
  12647. // successfuly.
  12648. //
  12649. // Use "Send" method on the returned Request to send the API call to the service.
  12650. // the "output" return value is not valid until after Send returns without error.
  12651. //
  12652. // See DescribeVolumeStatus for more information on using the DescribeVolumeStatus
  12653. // API call, and error handling.
  12654. //
  12655. // This method is useful when you want to inject custom logic or configuration
  12656. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12657. //
  12658. //
  12659. // // Example sending a request using the DescribeVolumeStatusRequest method.
  12660. // req, resp := client.DescribeVolumeStatusRequest(params)
  12661. //
  12662. // err := req.Send()
  12663. // if err == nil { // resp is now filled
  12664. // fmt.Println(resp)
  12665. // }
  12666. //
  12667. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  12668. func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req *request.Request, output *DescribeVolumeStatusOutput) {
  12669. op := &request.Operation{
  12670. Name: opDescribeVolumeStatus,
  12671. HTTPMethod: "POST",
  12672. HTTPPath: "/",
  12673. Paginator: &request.Paginator{
  12674. InputTokens: []string{"NextToken"},
  12675. OutputTokens: []string{"NextToken"},
  12676. LimitToken: "MaxResults",
  12677. TruncationToken: "",
  12678. },
  12679. }
  12680. if input == nil {
  12681. input = &DescribeVolumeStatusInput{}
  12682. }
  12683. output = &DescribeVolumeStatusOutput{}
  12684. req = c.newRequest(op, input, output)
  12685. return
  12686. }
  12687. // DescribeVolumeStatus API operation for Amazon Elastic Compute Cloud.
  12688. //
  12689. // Describes the status of the specified volumes. Volume status provides the
  12690. // result of the checks performed on your volumes to determine events that can
  12691. // impair the performance of your volumes. The performance of a volume can be
  12692. // affected if an issue occurs on the volume's underlying host. If the volume's
  12693. // underlying host experiences a power outage or system issue, after the system
  12694. // is restored, there could be data inconsistencies on the volume. Volume events
  12695. // notify you if this occurs. Volume actions notify you if any action needs
  12696. // to be taken in response to the event.
  12697. //
  12698. // The DescribeVolumeStatus operation provides the following information about
  12699. // the specified volumes:
  12700. //
  12701. // Status: Reflects the current status of the volume. The possible values are
  12702. // ok, impaired , warning, or insufficient-data. If all checks pass, the overall
  12703. // status of the volume is ok. If the check fails, the overall status is impaired.
  12704. // If the status is insufficient-data, then the checks may still be taking place
  12705. // on your volume at the time. We recommend that you retry the request. For
  12706. // more information on volume status, see Monitoring the Status of Your Volumes
  12707. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html).
  12708. //
  12709. // Events: Reflect the cause of a volume status and may require you to take
  12710. // action. For example, if your volume returns an impaired status, then the
  12711. // volume event might be potential-data-inconsistency. This means that your
  12712. // volume has been affected by an issue with the underlying host, has all I/O
  12713. // operations disabled, and may have inconsistent data.
  12714. //
  12715. // Actions: Reflect the actions you may have to take in response to an event.
  12716. // For example, if the status of the volume is impaired and the volume event
  12717. // shows potential-data-inconsistency, then the action shows enable-volume-io.
  12718. // This means that you may want to enable the I/O operations for the volume
  12719. // by calling the EnableVolumeIO action and then check the volume for data consistency.
  12720. //
  12721. // Volume status is based on the volume status checks, and does not reflect
  12722. // the volume state. Therefore, volume status does not indicate volumes in the
  12723. // error state (for example, when a volume is incapable of accepting I/O.)
  12724. //
  12725. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12726. // with awserr.Error's Code and Message methods to get detailed information about
  12727. // the error.
  12728. //
  12729. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12730. // API operation DescribeVolumeStatus for usage and error information.
  12731. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus
  12732. func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) {
  12733. req, out := c.DescribeVolumeStatusRequest(input)
  12734. return out, req.Send()
  12735. }
  12736. // DescribeVolumeStatusWithContext is the same as DescribeVolumeStatus with the addition of
  12737. // the ability to pass a context and additional request options.
  12738. //
  12739. // See DescribeVolumeStatus for details on how to use this API operation.
  12740. //
  12741. // The context must be non-nil and will be used for request cancellation. If
  12742. // the context is nil a panic will occur. In the future the SDK may create
  12743. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12744. // for more information on using Contexts.
  12745. func (c *EC2) DescribeVolumeStatusWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, opts ...request.Option) (*DescribeVolumeStatusOutput, error) {
  12746. req, out := c.DescribeVolumeStatusRequest(input)
  12747. req.SetContext(ctx)
  12748. req.ApplyOptions(opts...)
  12749. return out, req.Send()
  12750. }
  12751. // DescribeVolumeStatusPages iterates over the pages of a DescribeVolumeStatus operation,
  12752. // calling the "fn" function with the response data for each page. To stop
  12753. // iterating, return false from the fn function.
  12754. //
  12755. // See DescribeVolumeStatus method for more information on how to use this operation.
  12756. //
  12757. // Note: This operation can generate multiple requests to a service.
  12758. //
  12759. // // Example iterating over at most 3 pages of a DescribeVolumeStatus operation.
  12760. // pageNum := 0
  12761. // err := client.DescribeVolumeStatusPages(params,
  12762. // func(page *DescribeVolumeStatusOutput, lastPage bool) bool {
  12763. // pageNum++
  12764. // fmt.Println(page)
  12765. // return pageNum <= 3
  12766. // })
  12767. //
  12768. func (c *EC2) DescribeVolumeStatusPages(input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool) error {
  12769. return c.DescribeVolumeStatusPagesWithContext(aws.BackgroundContext(), input, fn)
  12770. }
  12771. // DescribeVolumeStatusPagesWithContext same as DescribeVolumeStatusPages except
  12772. // it takes a Context and allows setting request options on the pages.
  12773. //
  12774. // The context must be non-nil and will be used for request cancellation. If
  12775. // the context is nil a panic will occur. In the future the SDK may create
  12776. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12777. // for more information on using Contexts.
  12778. func (c *EC2) DescribeVolumeStatusPagesWithContext(ctx aws.Context, input *DescribeVolumeStatusInput, fn func(*DescribeVolumeStatusOutput, bool) bool, opts ...request.Option) error {
  12779. p := request.Pagination{
  12780. NewRequest: func() (*request.Request, error) {
  12781. var inCpy *DescribeVolumeStatusInput
  12782. if input != nil {
  12783. tmp := *input
  12784. inCpy = &tmp
  12785. }
  12786. req, _ := c.DescribeVolumeStatusRequest(inCpy)
  12787. req.SetContext(ctx)
  12788. req.ApplyOptions(opts...)
  12789. return req, nil
  12790. },
  12791. }
  12792. cont := true
  12793. for p.Next() && cont {
  12794. cont = fn(p.Page().(*DescribeVolumeStatusOutput), !p.HasNextPage())
  12795. }
  12796. return p.Err()
  12797. }
  12798. const opDescribeVolumes = "DescribeVolumes"
  12799. // DescribeVolumesRequest generates a "aws/request.Request" representing the
  12800. // client's request for the DescribeVolumes operation. The "output" return
  12801. // value will be populated with the request's response once the request complets
  12802. // successfuly.
  12803. //
  12804. // Use "Send" method on the returned Request to send the API call to the service.
  12805. // the "output" return value is not valid until after Send returns without error.
  12806. //
  12807. // See DescribeVolumes for more information on using the DescribeVolumes
  12808. // API call, and error handling.
  12809. //
  12810. // This method is useful when you want to inject custom logic or configuration
  12811. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12812. //
  12813. //
  12814. // // Example sending a request using the DescribeVolumesRequest method.
  12815. // req, resp := client.DescribeVolumesRequest(params)
  12816. //
  12817. // err := req.Send()
  12818. // if err == nil { // resp is now filled
  12819. // fmt.Println(resp)
  12820. // }
  12821. //
  12822. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  12823. func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  12824. op := &request.Operation{
  12825. Name: opDescribeVolumes,
  12826. HTTPMethod: "POST",
  12827. HTTPPath: "/",
  12828. Paginator: &request.Paginator{
  12829. InputTokens: []string{"NextToken"},
  12830. OutputTokens: []string{"NextToken"},
  12831. LimitToken: "MaxResults",
  12832. TruncationToken: "",
  12833. },
  12834. }
  12835. if input == nil {
  12836. input = &DescribeVolumesInput{}
  12837. }
  12838. output = &DescribeVolumesOutput{}
  12839. req = c.newRequest(op, input, output)
  12840. return
  12841. }
  12842. // DescribeVolumes API operation for Amazon Elastic Compute Cloud.
  12843. //
  12844. // Describes the specified EBS volumes.
  12845. //
  12846. // If you are describing a long list of volumes, you can paginate the output
  12847. // to make the list more manageable. The MaxResults parameter sets the maximum
  12848. // number of results returned in a single page. If the list of results exceeds
  12849. // your MaxResults value, then that number of results is returned along with
  12850. // a NextToken value that can be passed to a subsequent DescribeVolumes request
  12851. // to retrieve the remaining results.
  12852. //
  12853. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  12854. // in the Amazon Elastic Compute Cloud User Guide.
  12855. //
  12856. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12857. // with awserr.Error's Code and Message methods to get detailed information about
  12858. // the error.
  12859. //
  12860. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12861. // API operation DescribeVolumes for usage and error information.
  12862. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes
  12863. func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  12864. req, out := c.DescribeVolumesRequest(input)
  12865. return out, req.Send()
  12866. }
  12867. // DescribeVolumesWithContext is the same as DescribeVolumes with the addition of
  12868. // the ability to pass a context and additional request options.
  12869. //
  12870. // See DescribeVolumes for details on how to use this API operation.
  12871. //
  12872. // The context must be non-nil and will be used for request cancellation. If
  12873. // the context is nil a panic will occur. In the future the SDK may create
  12874. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12875. // for more information on using Contexts.
  12876. func (c *EC2) DescribeVolumesWithContext(ctx aws.Context, input *DescribeVolumesInput, opts ...request.Option) (*DescribeVolumesOutput, error) {
  12877. req, out := c.DescribeVolumesRequest(input)
  12878. req.SetContext(ctx)
  12879. req.ApplyOptions(opts...)
  12880. return out, req.Send()
  12881. }
  12882. // DescribeVolumesPages iterates over the pages of a DescribeVolumes operation,
  12883. // calling the "fn" function with the response data for each page. To stop
  12884. // iterating, return false from the fn function.
  12885. //
  12886. // See DescribeVolumes method for more information on how to use this operation.
  12887. //
  12888. // Note: This operation can generate multiple requests to a service.
  12889. //
  12890. // // Example iterating over at most 3 pages of a DescribeVolumes operation.
  12891. // pageNum := 0
  12892. // err := client.DescribeVolumesPages(params,
  12893. // func(page *DescribeVolumesOutput, lastPage bool) bool {
  12894. // pageNum++
  12895. // fmt.Println(page)
  12896. // return pageNum <= 3
  12897. // })
  12898. //
  12899. func (c *EC2) DescribeVolumesPages(input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool) error {
  12900. return c.DescribeVolumesPagesWithContext(aws.BackgroundContext(), input, fn)
  12901. }
  12902. // DescribeVolumesPagesWithContext same as DescribeVolumesPages except
  12903. // it takes a Context and allows setting request options on the pages.
  12904. //
  12905. // The context must be non-nil and will be used for request cancellation. If
  12906. // the context is nil a panic will occur. In the future the SDK may create
  12907. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  12908. // for more information on using Contexts.
  12909. func (c *EC2) DescribeVolumesPagesWithContext(ctx aws.Context, input *DescribeVolumesInput, fn func(*DescribeVolumesOutput, bool) bool, opts ...request.Option) error {
  12910. p := request.Pagination{
  12911. NewRequest: func() (*request.Request, error) {
  12912. var inCpy *DescribeVolumesInput
  12913. if input != nil {
  12914. tmp := *input
  12915. inCpy = &tmp
  12916. }
  12917. req, _ := c.DescribeVolumesRequest(inCpy)
  12918. req.SetContext(ctx)
  12919. req.ApplyOptions(opts...)
  12920. return req, nil
  12921. },
  12922. }
  12923. cont := true
  12924. for p.Next() && cont {
  12925. cont = fn(p.Page().(*DescribeVolumesOutput), !p.HasNextPage())
  12926. }
  12927. return p.Err()
  12928. }
  12929. const opDescribeVolumesModifications = "DescribeVolumesModifications"
  12930. // DescribeVolumesModificationsRequest generates a "aws/request.Request" representing the
  12931. // client's request for the DescribeVolumesModifications operation. The "output" return
  12932. // value will be populated with the request's response once the request complets
  12933. // successfuly.
  12934. //
  12935. // Use "Send" method on the returned Request to send the API call to the service.
  12936. // the "output" return value is not valid until after Send returns without error.
  12937. //
  12938. // See DescribeVolumesModifications for more information on using the DescribeVolumesModifications
  12939. // API call, and error handling.
  12940. //
  12941. // This method is useful when you want to inject custom logic or configuration
  12942. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  12943. //
  12944. //
  12945. // // Example sending a request using the DescribeVolumesModificationsRequest method.
  12946. // req, resp := client.DescribeVolumesModificationsRequest(params)
  12947. //
  12948. // err := req.Send()
  12949. // if err == nil { // resp is now filled
  12950. // fmt.Println(resp)
  12951. // }
  12952. //
  12953. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  12954. func (c *EC2) DescribeVolumesModificationsRequest(input *DescribeVolumesModificationsInput) (req *request.Request, output *DescribeVolumesModificationsOutput) {
  12955. op := &request.Operation{
  12956. Name: opDescribeVolumesModifications,
  12957. HTTPMethod: "POST",
  12958. HTTPPath: "/",
  12959. }
  12960. if input == nil {
  12961. input = &DescribeVolumesModificationsInput{}
  12962. }
  12963. output = &DescribeVolumesModificationsOutput{}
  12964. req = c.newRequest(op, input, output)
  12965. return
  12966. }
  12967. // DescribeVolumesModifications API operation for Amazon Elastic Compute Cloud.
  12968. //
  12969. // Reports the current modification status of EBS volumes.
  12970. //
  12971. // Current-generation EBS volumes support modification of attributes including
  12972. // type, size, and (for io1 volumes) IOPS provisioning while either attached
  12973. // to or detached from an instance. Following an action from the API or the
  12974. // console to modify a volume, the status of the modification may be modifying,
  12975. // optimizing, completed, or failed. If a volume has never been modified, then
  12976. // certain elements of the returned VolumeModification objects are null.
  12977. //
  12978. // You can also use CloudWatch Events to check the status of a modification
  12979. // to an EBS volume. For information about CloudWatch Events, see the Amazon
  12980. // CloudWatch Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  12981. // For more information, see Monitoring Volume Modifications" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).
  12982. //
  12983. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  12984. // with awserr.Error's Code and Message methods to get detailed information about
  12985. // the error.
  12986. //
  12987. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  12988. // API operation DescribeVolumesModifications for usage and error information.
  12989. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModifications
  12990. func (c *EC2) DescribeVolumesModifications(input *DescribeVolumesModificationsInput) (*DescribeVolumesModificationsOutput, error) {
  12991. req, out := c.DescribeVolumesModificationsRequest(input)
  12992. return out, req.Send()
  12993. }
  12994. // DescribeVolumesModificationsWithContext is the same as DescribeVolumesModifications with the addition of
  12995. // the ability to pass a context and additional request options.
  12996. //
  12997. // See DescribeVolumesModifications for details on how to use this API operation.
  12998. //
  12999. // The context must be non-nil and will be used for request cancellation. If
  13000. // the context is nil a panic will occur. In the future the SDK may create
  13001. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13002. // for more information on using Contexts.
  13003. func (c *EC2) DescribeVolumesModificationsWithContext(ctx aws.Context, input *DescribeVolumesModificationsInput, opts ...request.Option) (*DescribeVolumesModificationsOutput, error) {
  13004. req, out := c.DescribeVolumesModificationsRequest(input)
  13005. req.SetContext(ctx)
  13006. req.ApplyOptions(opts...)
  13007. return out, req.Send()
  13008. }
  13009. const opDescribeVpcAttribute = "DescribeVpcAttribute"
  13010. // DescribeVpcAttributeRequest generates a "aws/request.Request" representing the
  13011. // client's request for the DescribeVpcAttribute operation. The "output" return
  13012. // value will be populated with the request's response once the request complets
  13013. // successfuly.
  13014. //
  13015. // Use "Send" method on the returned Request to send the API call to the service.
  13016. // the "output" return value is not valid until after Send returns without error.
  13017. //
  13018. // See DescribeVpcAttribute for more information on using the DescribeVpcAttribute
  13019. // API call, and error handling.
  13020. //
  13021. // This method is useful when you want to inject custom logic or configuration
  13022. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13023. //
  13024. //
  13025. // // Example sending a request using the DescribeVpcAttributeRequest method.
  13026. // req, resp := client.DescribeVpcAttributeRequest(params)
  13027. //
  13028. // err := req.Send()
  13029. // if err == nil { // resp is now filled
  13030. // fmt.Println(resp)
  13031. // }
  13032. //
  13033. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  13034. func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req *request.Request, output *DescribeVpcAttributeOutput) {
  13035. op := &request.Operation{
  13036. Name: opDescribeVpcAttribute,
  13037. HTTPMethod: "POST",
  13038. HTTPPath: "/",
  13039. }
  13040. if input == nil {
  13041. input = &DescribeVpcAttributeInput{}
  13042. }
  13043. output = &DescribeVpcAttributeOutput{}
  13044. req = c.newRequest(op, input, output)
  13045. return
  13046. }
  13047. // DescribeVpcAttribute API operation for Amazon Elastic Compute Cloud.
  13048. //
  13049. // Describes the specified attribute of the specified VPC. You can specify only
  13050. // one attribute at a time.
  13051. //
  13052. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13053. // with awserr.Error's Code and Message methods to get detailed information about
  13054. // the error.
  13055. //
  13056. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13057. // API operation DescribeVpcAttribute for usage and error information.
  13058. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute
  13059. func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) {
  13060. req, out := c.DescribeVpcAttributeRequest(input)
  13061. return out, req.Send()
  13062. }
  13063. // DescribeVpcAttributeWithContext is the same as DescribeVpcAttribute with the addition of
  13064. // the ability to pass a context and additional request options.
  13065. //
  13066. // See DescribeVpcAttribute for details on how to use this API operation.
  13067. //
  13068. // The context must be non-nil and will be used for request cancellation. If
  13069. // the context is nil a panic will occur. In the future the SDK may create
  13070. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13071. // for more information on using Contexts.
  13072. func (c *EC2) DescribeVpcAttributeWithContext(ctx aws.Context, input *DescribeVpcAttributeInput, opts ...request.Option) (*DescribeVpcAttributeOutput, error) {
  13073. req, out := c.DescribeVpcAttributeRequest(input)
  13074. req.SetContext(ctx)
  13075. req.ApplyOptions(opts...)
  13076. return out, req.Send()
  13077. }
  13078. const opDescribeVpcClassicLink = "DescribeVpcClassicLink"
  13079. // DescribeVpcClassicLinkRequest generates a "aws/request.Request" representing the
  13080. // client's request for the DescribeVpcClassicLink operation. The "output" return
  13081. // value will be populated with the request's response once the request complets
  13082. // successfuly.
  13083. //
  13084. // Use "Send" method on the returned Request to send the API call to the service.
  13085. // the "output" return value is not valid until after Send returns without error.
  13086. //
  13087. // See DescribeVpcClassicLink for more information on using the DescribeVpcClassicLink
  13088. // API call, and error handling.
  13089. //
  13090. // This method is useful when you want to inject custom logic or configuration
  13091. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13092. //
  13093. //
  13094. // // Example sending a request using the DescribeVpcClassicLinkRequest method.
  13095. // req, resp := client.DescribeVpcClassicLinkRequest(params)
  13096. //
  13097. // err := req.Send()
  13098. // if err == nil { // resp is now filled
  13099. // fmt.Println(resp)
  13100. // }
  13101. //
  13102. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  13103. func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) (req *request.Request, output *DescribeVpcClassicLinkOutput) {
  13104. op := &request.Operation{
  13105. Name: opDescribeVpcClassicLink,
  13106. HTTPMethod: "POST",
  13107. HTTPPath: "/",
  13108. }
  13109. if input == nil {
  13110. input = &DescribeVpcClassicLinkInput{}
  13111. }
  13112. output = &DescribeVpcClassicLinkOutput{}
  13113. req = c.newRequest(op, input, output)
  13114. return
  13115. }
  13116. // DescribeVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  13117. //
  13118. // Describes the ClassicLink status of one or more VPCs.
  13119. //
  13120. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13121. // with awserr.Error's Code and Message methods to get detailed information about
  13122. // the error.
  13123. //
  13124. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13125. // API operation DescribeVpcClassicLink for usage and error information.
  13126. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLink
  13127. func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) {
  13128. req, out := c.DescribeVpcClassicLinkRequest(input)
  13129. return out, req.Send()
  13130. }
  13131. // DescribeVpcClassicLinkWithContext is the same as DescribeVpcClassicLink with the addition of
  13132. // the ability to pass a context and additional request options.
  13133. //
  13134. // See DescribeVpcClassicLink for details on how to use this API operation.
  13135. //
  13136. // The context must be non-nil and will be used for request cancellation. If
  13137. // the context is nil a panic will occur. In the future the SDK may create
  13138. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13139. // for more information on using Contexts.
  13140. func (c *EC2) DescribeVpcClassicLinkWithContext(ctx aws.Context, input *DescribeVpcClassicLinkInput, opts ...request.Option) (*DescribeVpcClassicLinkOutput, error) {
  13141. req, out := c.DescribeVpcClassicLinkRequest(input)
  13142. req.SetContext(ctx)
  13143. req.ApplyOptions(opts...)
  13144. return out, req.Send()
  13145. }
  13146. const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport"
  13147. // DescribeVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  13148. // client's request for the DescribeVpcClassicLinkDnsSupport operation. The "output" return
  13149. // value will be populated with the request's response once the request complets
  13150. // successfuly.
  13151. //
  13152. // Use "Send" method on the returned Request to send the API call to the service.
  13153. // the "output" return value is not valid until after Send returns without error.
  13154. //
  13155. // See DescribeVpcClassicLinkDnsSupport for more information on using the DescribeVpcClassicLinkDnsSupport
  13156. // API call, and error handling.
  13157. //
  13158. // This method is useful when you want to inject custom logic or configuration
  13159. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13160. //
  13161. //
  13162. // // Example sending a request using the DescribeVpcClassicLinkDnsSupportRequest method.
  13163. // req, resp := client.DescribeVpcClassicLinkDnsSupportRequest(params)
  13164. //
  13165. // err := req.Send()
  13166. // if err == nil { // resp is now filled
  13167. // fmt.Println(resp)
  13168. // }
  13169. //
  13170. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  13171. func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) (req *request.Request, output *DescribeVpcClassicLinkDnsSupportOutput) {
  13172. op := &request.Operation{
  13173. Name: opDescribeVpcClassicLinkDnsSupport,
  13174. HTTPMethod: "POST",
  13175. HTTPPath: "/",
  13176. }
  13177. if input == nil {
  13178. input = &DescribeVpcClassicLinkDnsSupportInput{}
  13179. }
  13180. output = &DescribeVpcClassicLinkDnsSupportOutput{}
  13181. req = c.newRequest(op, input, output)
  13182. return
  13183. }
  13184. // DescribeVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  13185. //
  13186. // Describes the ClassicLink DNS support status of one or more VPCs. If enabled,
  13187. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  13188. // IP address when addressed from an instance in the VPC to which it's linked.
  13189. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  13190. // IP address when addressed from a linked EC2-Classic instance. For more information,
  13191. // see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  13192. // in the Amazon Elastic Compute Cloud User Guide.
  13193. //
  13194. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13195. // with awserr.Error's Code and Message methods to get detailed information about
  13196. // the error.
  13197. //
  13198. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13199. // API operation DescribeVpcClassicLinkDnsSupport for usage and error information.
  13200. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupport
  13201. func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  13202. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  13203. return out, req.Send()
  13204. }
  13205. // DescribeVpcClassicLinkDnsSupportWithContext is the same as DescribeVpcClassicLinkDnsSupport with the addition of
  13206. // the ability to pass a context and additional request options.
  13207. //
  13208. // See DescribeVpcClassicLinkDnsSupport for details on how to use this API operation.
  13209. //
  13210. // The context must be non-nil and will be used for request cancellation. If
  13211. // the context is nil a panic will occur. In the future the SDK may create
  13212. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13213. // for more information on using Contexts.
  13214. func (c *EC2) DescribeVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DescribeVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  13215. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  13216. req.SetContext(ctx)
  13217. req.ApplyOptions(opts...)
  13218. return out, req.Send()
  13219. }
  13220. const opDescribeVpcEndpointConnectionNotifications = "DescribeVpcEndpointConnectionNotifications"
  13221. // DescribeVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the
  13222. // client's request for the DescribeVpcEndpointConnectionNotifications operation. The "output" return
  13223. // value will be populated with the request's response once the request complets
  13224. // successfuly.
  13225. //
  13226. // Use "Send" method on the returned Request to send the API call to the service.
  13227. // the "output" return value is not valid until after Send returns without error.
  13228. //
  13229. // See DescribeVpcEndpointConnectionNotifications for more information on using the DescribeVpcEndpointConnectionNotifications
  13230. // API call, and error handling.
  13231. //
  13232. // This method is useful when you want to inject custom logic or configuration
  13233. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13234. //
  13235. //
  13236. // // Example sending a request using the DescribeVpcEndpointConnectionNotificationsRequest method.
  13237. // req, resp := client.DescribeVpcEndpointConnectionNotificationsRequest(params)
  13238. //
  13239. // err := req.Send()
  13240. // if err == nil { // resp is now filled
  13241. // fmt.Println(resp)
  13242. // }
  13243. //
  13244. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications
  13245. func (c *EC2) DescribeVpcEndpointConnectionNotificationsRequest(input *DescribeVpcEndpointConnectionNotificationsInput) (req *request.Request, output *DescribeVpcEndpointConnectionNotificationsOutput) {
  13246. op := &request.Operation{
  13247. Name: opDescribeVpcEndpointConnectionNotifications,
  13248. HTTPMethod: "POST",
  13249. HTTPPath: "/",
  13250. }
  13251. if input == nil {
  13252. input = &DescribeVpcEndpointConnectionNotificationsInput{}
  13253. }
  13254. output = &DescribeVpcEndpointConnectionNotificationsOutput{}
  13255. req = c.newRequest(op, input, output)
  13256. return
  13257. }
  13258. // DescribeVpcEndpointConnectionNotifications API operation for Amazon Elastic Compute Cloud.
  13259. //
  13260. // Describes the connection notifications for VPC endpoints and VPC endpoint
  13261. // services.
  13262. //
  13263. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13264. // with awserr.Error's Code and Message methods to get detailed information about
  13265. // the error.
  13266. //
  13267. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13268. // API operation DescribeVpcEndpointConnectionNotifications for usage and error information.
  13269. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotifications
  13270. func (c *EC2) DescribeVpcEndpointConnectionNotifications(input *DescribeVpcEndpointConnectionNotificationsInput) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
  13271. req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input)
  13272. return out, req.Send()
  13273. }
  13274. // DescribeVpcEndpointConnectionNotificationsWithContext is the same as DescribeVpcEndpointConnectionNotifications with the addition of
  13275. // the ability to pass a context and additional request options.
  13276. //
  13277. // See DescribeVpcEndpointConnectionNotifications for details on how to use this API operation.
  13278. //
  13279. // The context must be non-nil and will be used for request cancellation. If
  13280. // the context is nil a panic will occur. In the future the SDK may create
  13281. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13282. // for more information on using Contexts.
  13283. func (c *EC2) DescribeVpcEndpointConnectionNotificationsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionNotificationsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionNotificationsOutput, error) {
  13284. req, out := c.DescribeVpcEndpointConnectionNotificationsRequest(input)
  13285. req.SetContext(ctx)
  13286. req.ApplyOptions(opts...)
  13287. return out, req.Send()
  13288. }
  13289. const opDescribeVpcEndpointConnections = "DescribeVpcEndpointConnections"
  13290. // DescribeVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  13291. // client's request for the DescribeVpcEndpointConnections operation. The "output" return
  13292. // value will be populated with the request's response once the request complets
  13293. // successfuly.
  13294. //
  13295. // Use "Send" method on the returned Request to send the API call to the service.
  13296. // the "output" return value is not valid until after Send returns without error.
  13297. //
  13298. // See DescribeVpcEndpointConnections for more information on using the DescribeVpcEndpointConnections
  13299. // API call, and error handling.
  13300. //
  13301. // This method is useful when you want to inject custom logic or configuration
  13302. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13303. //
  13304. //
  13305. // // Example sending a request using the DescribeVpcEndpointConnectionsRequest method.
  13306. // req, resp := client.DescribeVpcEndpointConnectionsRequest(params)
  13307. //
  13308. // err := req.Send()
  13309. // if err == nil { // resp is now filled
  13310. // fmt.Println(resp)
  13311. // }
  13312. //
  13313. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections
  13314. func (c *EC2) DescribeVpcEndpointConnectionsRequest(input *DescribeVpcEndpointConnectionsInput) (req *request.Request, output *DescribeVpcEndpointConnectionsOutput) {
  13315. op := &request.Operation{
  13316. Name: opDescribeVpcEndpointConnections,
  13317. HTTPMethod: "POST",
  13318. HTTPPath: "/",
  13319. }
  13320. if input == nil {
  13321. input = &DescribeVpcEndpointConnectionsInput{}
  13322. }
  13323. output = &DescribeVpcEndpointConnectionsOutput{}
  13324. req = c.newRequest(op, input, output)
  13325. return
  13326. }
  13327. // DescribeVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  13328. //
  13329. // Describes the VPC endpoint connections to your VPC endpoint services, including
  13330. // any endpoints that are pending your acceptance.
  13331. //
  13332. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13333. // with awserr.Error's Code and Message methods to get detailed information about
  13334. // the error.
  13335. //
  13336. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13337. // API operation DescribeVpcEndpointConnections for usage and error information.
  13338. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnections
  13339. func (c *EC2) DescribeVpcEndpointConnections(input *DescribeVpcEndpointConnectionsInput) (*DescribeVpcEndpointConnectionsOutput, error) {
  13340. req, out := c.DescribeVpcEndpointConnectionsRequest(input)
  13341. return out, req.Send()
  13342. }
  13343. // DescribeVpcEndpointConnectionsWithContext is the same as DescribeVpcEndpointConnections with the addition of
  13344. // the ability to pass a context and additional request options.
  13345. //
  13346. // See DescribeVpcEndpointConnections for details on how to use this API operation.
  13347. //
  13348. // The context must be non-nil and will be used for request cancellation. If
  13349. // the context is nil a panic will occur. In the future the SDK may create
  13350. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13351. // for more information on using Contexts.
  13352. func (c *EC2) DescribeVpcEndpointConnectionsWithContext(ctx aws.Context, input *DescribeVpcEndpointConnectionsInput, opts ...request.Option) (*DescribeVpcEndpointConnectionsOutput, error) {
  13353. req, out := c.DescribeVpcEndpointConnectionsRequest(input)
  13354. req.SetContext(ctx)
  13355. req.ApplyOptions(opts...)
  13356. return out, req.Send()
  13357. }
  13358. const opDescribeVpcEndpointServiceConfigurations = "DescribeVpcEndpointServiceConfigurations"
  13359. // DescribeVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the
  13360. // client's request for the DescribeVpcEndpointServiceConfigurations operation. The "output" return
  13361. // value will be populated with the request's response once the request complets
  13362. // successfuly.
  13363. //
  13364. // Use "Send" method on the returned Request to send the API call to the service.
  13365. // the "output" return value is not valid until after Send returns without error.
  13366. //
  13367. // See DescribeVpcEndpointServiceConfigurations for more information on using the DescribeVpcEndpointServiceConfigurations
  13368. // API call, and error handling.
  13369. //
  13370. // This method is useful when you want to inject custom logic or configuration
  13371. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13372. //
  13373. //
  13374. // // Example sending a request using the DescribeVpcEndpointServiceConfigurationsRequest method.
  13375. // req, resp := client.DescribeVpcEndpointServiceConfigurationsRequest(params)
  13376. //
  13377. // err := req.Send()
  13378. // if err == nil { // resp is now filled
  13379. // fmt.Println(resp)
  13380. // }
  13381. //
  13382. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations
  13383. func (c *EC2) DescribeVpcEndpointServiceConfigurationsRequest(input *DescribeVpcEndpointServiceConfigurationsInput) (req *request.Request, output *DescribeVpcEndpointServiceConfigurationsOutput) {
  13384. op := &request.Operation{
  13385. Name: opDescribeVpcEndpointServiceConfigurations,
  13386. HTTPMethod: "POST",
  13387. HTTPPath: "/",
  13388. }
  13389. if input == nil {
  13390. input = &DescribeVpcEndpointServiceConfigurationsInput{}
  13391. }
  13392. output = &DescribeVpcEndpointServiceConfigurationsOutput{}
  13393. req = c.newRequest(op, input, output)
  13394. return
  13395. }
  13396. // DescribeVpcEndpointServiceConfigurations API operation for Amazon Elastic Compute Cloud.
  13397. //
  13398. // Describes the VPC endpoint service configurations in your account (your services).
  13399. //
  13400. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13401. // with awserr.Error's Code and Message methods to get detailed information about
  13402. // the error.
  13403. //
  13404. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13405. // API operation DescribeVpcEndpointServiceConfigurations for usage and error information.
  13406. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurations
  13407. func (c *EC2) DescribeVpcEndpointServiceConfigurations(input *DescribeVpcEndpointServiceConfigurationsInput) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
  13408. req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input)
  13409. return out, req.Send()
  13410. }
  13411. // DescribeVpcEndpointServiceConfigurationsWithContext is the same as DescribeVpcEndpointServiceConfigurations with the addition of
  13412. // the ability to pass a context and additional request options.
  13413. //
  13414. // See DescribeVpcEndpointServiceConfigurations for details on how to use this API operation.
  13415. //
  13416. // The context must be non-nil and will be used for request cancellation. If
  13417. // the context is nil a panic will occur. In the future the SDK may create
  13418. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13419. // for more information on using Contexts.
  13420. func (c *EC2) DescribeVpcEndpointServiceConfigurationsWithContext(ctx aws.Context, input *DescribeVpcEndpointServiceConfigurationsInput, opts ...request.Option) (*DescribeVpcEndpointServiceConfigurationsOutput, error) {
  13421. req, out := c.DescribeVpcEndpointServiceConfigurationsRequest(input)
  13422. req.SetContext(ctx)
  13423. req.ApplyOptions(opts...)
  13424. return out, req.Send()
  13425. }
  13426. const opDescribeVpcEndpointServicePermissions = "DescribeVpcEndpointServicePermissions"
  13427. // DescribeVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the
  13428. // client's request for the DescribeVpcEndpointServicePermissions operation. The "output" return
  13429. // value will be populated with the request's response once the request complets
  13430. // successfuly.
  13431. //
  13432. // Use "Send" method on the returned Request to send the API call to the service.
  13433. // the "output" return value is not valid until after Send returns without error.
  13434. //
  13435. // See DescribeVpcEndpointServicePermissions for more information on using the DescribeVpcEndpointServicePermissions
  13436. // API call, and error handling.
  13437. //
  13438. // This method is useful when you want to inject custom logic or configuration
  13439. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13440. //
  13441. //
  13442. // // Example sending a request using the DescribeVpcEndpointServicePermissionsRequest method.
  13443. // req, resp := client.DescribeVpcEndpointServicePermissionsRequest(params)
  13444. //
  13445. // err := req.Send()
  13446. // if err == nil { // resp is now filled
  13447. // fmt.Println(resp)
  13448. // }
  13449. //
  13450. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions
  13451. func (c *EC2) DescribeVpcEndpointServicePermissionsRequest(input *DescribeVpcEndpointServicePermissionsInput) (req *request.Request, output *DescribeVpcEndpointServicePermissionsOutput) {
  13452. op := &request.Operation{
  13453. Name: opDescribeVpcEndpointServicePermissions,
  13454. HTTPMethod: "POST",
  13455. HTTPPath: "/",
  13456. }
  13457. if input == nil {
  13458. input = &DescribeVpcEndpointServicePermissionsInput{}
  13459. }
  13460. output = &DescribeVpcEndpointServicePermissionsOutput{}
  13461. req = c.newRequest(op, input, output)
  13462. return
  13463. }
  13464. // DescribeVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud.
  13465. //
  13466. // Describes the principals (service consumers) that are permitted to discover
  13467. // your VPC endpoint service.
  13468. //
  13469. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13470. // with awserr.Error's Code and Message methods to get detailed information about
  13471. // the error.
  13472. //
  13473. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13474. // API operation DescribeVpcEndpointServicePermissions for usage and error information.
  13475. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissions
  13476. func (c *EC2) DescribeVpcEndpointServicePermissions(input *DescribeVpcEndpointServicePermissionsInput) (*DescribeVpcEndpointServicePermissionsOutput, error) {
  13477. req, out := c.DescribeVpcEndpointServicePermissionsRequest(input)
  13478. return out, req.Send()
  13479. }
  13480. // DescribeVpcEndpointServicePermissionsWithContext is the same as DescribeVpcEndpointServicePermissions with the addition of
  13481. // the ability to pass a context and additional request options.
  13482. //
  13483. // See DescribeVpcEndpointServicePermissions for details on how to use this API operation.
  13484. //
  13485. // The context must be non-nil and will be used for request cancellation. If
  13486. // the context is nil a panic will occur. In the future the SDK may create
  13487. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13488. // for more information on using Contexts.
  13489. func (c *EC2) DescribeVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *DescribeVpcEndpointServicePermissionsInput, opts ...request.Option) (*DescribeVpcEndpointServicePermissionsOutput, error) {
  13490. req, out := c.DescribeVpcEndpointServicePermissionsRequest(input)
  13491. req.SetContext(ctx)
  13492. req.ApplyOptions(opts...)
  13493. return out, req.Send()
  13494. }
  13495. const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices"
  13496. // DescribeVpcEndpointServicesRequest generates a "aws/request.Request" representing the
  13497. // client's request for the DescribeVpcEndpointServices operation. The "output" return
  13498. // value will be populated with the request's response once the request complets
  13499. // successfuly.
  13500. //
  13501. // Use "Send" method on the returned Request to send the API call to the service.
  13502. // the "output" return value is not valid until after Send returns without error.
  13503. //
  13504. // See DescribeVpcEndpointServices for more information on using the DescribeVpcEndpointServices
  13505. // API call, and error handling.
  13506. //
  13507. // This method is useful when you want to inject custom logic or configuration
  13508. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13509. //
  13510. //
  13511. // // Example sending a request using the DescribeVpcEndpointServicesRequest method.
  13512. // req, resp := client.DescribeVpcEndpointServicesRequest(params)
  13513. //
  13514. // err := req.Send()
  13515. // if err == nil { // resp is now filled
  13516. // fmt.Println(resp)
  13517. // }
  13518. //
  13519. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  13520. func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServicesInput) (req *request.Request, output *DescribeVpcEndpointServicesOutput) {
  13521. op := &request.Operation{
  13522. Name: opDescribeVpcEndpointServices,
  13523. HTTPMethod: "POST",
  13524. HTTPPath: "/",
  13525. }
  13526. if input == nil {
  13527. input = &DescribeVpcEndpointServicesInput{}
  13528. }
  13529. output = &DescribeVpcEndpointServicesOutput{}
  13530. req = c.newRequest(op, input, output)
  13531. return
  13532. }
  13533. // DescribeVpcEndpointServices API operation for Amazon Elastic Compute Cloud.
  13534. //
  13535. // Describes available services to which you can create a VPC endpoint.
  13536. //
  13537. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13538. // with awserr.Error's Code and Message methods to get detailed information about
  13539. // the error.
  13540. //
  13541. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13542. // API operation DescribeVpcEndpointServices for usage and error information.
  13543. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServices
  13544. func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) {
  13545. req, out := c.DescribeVpcEndpointServicesRequest(input)
  13546. return out, req.Send()
  13547. }
  13548. // DescribeVpcEndpointServicesWithContext is the same as DescribeVpcEndpointServices with the addition of
  13549. // the ability to pass a context and additional request options.
  13550. //
  13551. // See DescribeVpcEndpointServices for details on how to use this API operation.
  13552. //
  13553. // The context must be non-nil and will be used for request cancellation. If
  13554. // the context is nil a panic will occur. In the future the SDK may create
  13555. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13556. // for more information on using Contexts.
  13557. func (c *EC2) DescribeVpcEndpointServicesWithContext(ctx aws.Context, input *DescribeVpcEndpointServicesInput, opts ...request.Option) (*DescribeVpcEndpointServicesOutput, error) {
  13558. req, out := c.DescribeVpcEndpointServicesRequest(input)
  13559. req.SetContext(ctx)
  13560. req.ApplyOptions(opts...)
  13561. return out, req.Send()
  13562. }
  13563. const opDescribeVpcEndpoints = "DescribeVpcEndpoints"
  13564. // DescribeVpcEndpointsRequest generates a "aws/request.Request" representing the
  13565. // client's request for the DescribeVpcEndpoints operation. The "output" return
  13566. // value will be populated with the request's response once the request complets
  13567. // successfuly.
  13568. //
  13569. // Use "Send" method on the returned Request to send the API call to the service.
  13570. // the "output" return value is not valid until after Send returns without error.
  13571. //
  13572. // See DescribeVpcEndpoints for more information on using the DescribeVpcEndpoints
  13573. // API call, and error handling.
  13574. //
  13575. // This method is useful when you want to inject custom logic or configuration
  13576. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13577. //
  13578. //
  13579. // // Example sending a request using the DescribeVpcEndpointsRequest method.
  13580. // req, resp := client.DescribeVpcEndpointsRequest(params)
  13581. //
  13582. // err := req.Send()
  13583. // if err == nil { // resp is now filled
  13584. // fmt.Println(resp)
  13585. // }
  13586. //
  13587. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  13588. func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req *request.Request, output *DescribeVpcEndpointsOutput) {
  13589. op := &request.Operation{
  13590. Name: opDescribeVpcEndpoints,
  13591. HTTPMethod: "POST",
  13592. HTTPPath: "/",
  13593. }
  13594. if input == nil {
  13595. input = &DescribeVpcEndpointsInput{}
  13596. }
  13597. output = &DescribeVpcEndpointsOutput{}
  13598. req = c.newRequest(op, input, output)
  13599. return
  13600. }
  13601. // DescribeVpcEndpoints API operation for Amazon Elastic Compute Cloud.
  13602. //
  13603. // Describes one or more of your VPC endpoints.
  13604. //
  13605. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13606. // with awserr.Error's Code and Message methods to get detailed information about
  13607. // the error.
  13608. //
  13609. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13610. // API operation DescribeVpcEndpoints for usage and error information.
  13611. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpoints
  13612. func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) {
  13613. req, out := c.DescribeVpcEndpointsRequest(input)
  13614. return out, req.Send()
  13615. }
  13616. // DescribeVpcEndpointsWithContext is the same as DescribeVpcEndpoints with the addition of
  13617. // the ability to pass a context and additional request options.
  13618. //
  13619. // See DescribeVpcEndpoints for details on how to use this API operation.
  13620. //
  13621. // The context must be non-nil and will be used for request cancellation. If
  13622. // the context is nil a panic will occur. In the future the SDK may create
  13623. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13624. // for more information on using Contexts.
  13625. func (c *EC2) DescribeVpcEndpointsWithContext(ctx aws.Context, input *DescribeVpcEndpointsInput, opts ...request.Option) (*DescribeVpcEndpointsOutput, error) {
  13626. req, out := c.DescribeVpcEndpointsRequest(input)
  13627. req.SetContext(ctx)
  13628. req.ApplyOptions(opts...)
  13629. return out, req.Send()
  13630. }
  13631. const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections"
  13632. // DescribeVpcPeeringConnectionsRequest generates a "aws/request.Request" representing the
  13633. // client's request for the DescribeVpcPeeringConnections operation. The "output" return
  13634. // value will be populated with the request's response once the request complets
  13635. // successfuly.
  13636. //
  13637. // Use "Send" method on the returned Request to send the API call to the service.
  13638. // the "output" return value is not valid until after Send returns without error.
  13639. //
  13640. // See DescribeVpcPeeringConnections for more information on using the DescribeVpcPeeringConnections
  13641. // API call, and error handling.
  13642. //
  13643. // This method is useful when you want to inject custom logic or configuration
  13644. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13645. //
  13646. //
  13647. // // Example sending a request using the DescribeVpcPeeringConnectionsRequest method.
  13648. // req, resp := client.DescribeVpcPeeringConnectionsRequest(params)
  13649. //
  13650. // err := req.Send()
  13651. // if err == nil { // resp is now filled
  13652. // fmt.Println(resp)
  13653. // }
  13654. //
  13655. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  13656. func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConnectionsInput) (req *request.Request, output *DescribeVpcPeeringConnectionsOutput) {
  13657. op := &request.Operation{
  13658. Name: opDescribeVpcPeeringConnections,
  13659. HTTPMethod: "POST",
  13660. HTTPPath: "/",
  13661. }
  13662. if input == nil {
  13663. input = &DescribeVpcPeeringConnectionsInput{}
  13664. }
  13665. output = &DescribeVpcPeeringConnectionsOutput{}
  13666. req = c.newRequest(op, input, output)
  13667. return
  13668. }
  13669. // DescribeVpcPeeringConnections API operation for Amazon Elastic Compute Cloud.
  13670. //
  13671. // Describes one or more of your VPC peering connections.
  13672. //
  13673. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13674. // with awserr.Error's Code and Message methods to get detailed information about
  13675. // the error.
  13676. //
  13677. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13678. // API operation DescribeVpcPeeringConnections for usage and error information.
  13679. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnections
  13680. func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) {
  13681. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  13682. return out, req.Send()
  13683. }
  13684. // DescribeVpcPeeringConnectionsWithContext is the same as DescribeVpcPeeringConnections with the addition of
  13685. // the ability to pass a context and additional request options.
  13686. //
  13687. // See DescribeVpcPeeringConnections for details on how to use this API operation.
  13688. //
  13689. // The context must be non-nil and will be used for request cancellation. If
  13690. // the context is nil a panic will occur. In the future the SDK may create
  13691. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13692. // for more information on using Contexts.
  13693. func (c *EC2) DescribeVpcPeeringConnectionsWithContext(ctx aws.Context, input *DescribeVpcPeeringConnectionsInput, opts ...request.Option) (*DescribeVpcPeeringConnectionsOutput, error) {
  13694. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  13695. req.SetContext(ctx)
  13696. req.ApplyOptions(opts...)
  13697. return out, req.Send()
  13698. }
  13699. const opDescribeVpcs = "DescribeVpcs"
  13700. // DescribeVpcsRequest generates a "aws/request.Request" representing the
  13701. // client's request for the DescribeVpcs operation. The "output" return
  13702. // value will be populated with the request's response once the request complets
  13703. // successfuly.
  13704. //
  13705. // Use "Send" method on the returned Request to send the API call to the service.
  13706. // the "output" return value is not valid until after Send returns without error.
  13707. //
  13708. // See DescribeVpcs for more information on using the DescribeVpcs
  13709. // API call, and error handling.
  13710. //
  13711. // This method is useful when you want to inject custom logic or configuration
  13712. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13713. //
  13714. //
  13715. // // Example sending a request using the DescribeVpcsRequest method.
  13716. // req, resp := client.DescribeVpcsRequest(params)
  13717. //
  13718. // err := req.Send()
  13719. // if err == nil { // resp is now filled
  13720. // fmt.Println(resp)
  13721. // }
  13722. //
  13723. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  13724. func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Request, output *DescribeVpcsOutput) {
  13725. op := &request.Operation{
  13726. Name: opDescribeVpcs,
  13727. HTTPMethod: "POST",
  13728. HTTPPath: "/",
  13729. }
  13730. if input == nil {
  13731. input = &DescribeVpcsInput{}
  13732. }
  13733. output = &DescribeVpcsOutput{}
  13734. req = c.newRequest(op, input, output)
  13735. return
  13736. }
  13737. // DescribeVpcs API operation for Amazon Elastic Compute Cloud.
  13738. //
  13739. // Describes one or more of your VPCs.
  13740. //
  13741. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13742. // with awserr.Error's Code and Message methods to get detailed information about
  13743. // the error.
  13744. //
  13745. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13746. // API operation DescribeVpcs for usage and error information.
  13747. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs
  13748. func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) {
  13749. req, out := c.DescribeVpcsRequest(input)
  13750. return out, req.Send()
  13751. }
  13752. // DescribeVpcsWithContext is the same as DescribeVpcs with the addition of
  13753. // the ability to pass a context and additional request options.
  13754. //
  13755. // See DescribeVpcs for details on how to use this API operation.
  13756. //
  13757. // The context must be non-nil and will be used for request cancellation. If
  13758. // the context is nil a panic will occur. In the future the SDK may create
  13759. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13760. // for more information on using Contexts.
  13761. func (c *EC2) DescribeVpcsWithContext(ctx aws.Context, input *DescribeVpcsInput, opts ...request.Option) (*DescribeVpcsOutput, error) {
  13762. req, out := c.DescribeVpcsRequest(input)
  13763. req.SetContext(ctx)
  13764. req.ApplyOptions(opts...)
  13765. return out, req.Send()
  13766. }
  13767. const opDescribeVpnConnections = "DescribeVpnConnections"
  13768. // DescribeVpnConnectionsRequest generates a "aws/request.Request" representing the
  13769. // client's request for the DescribeVpnConnections operation. The "output" return
  13770. // value will be populated with the request's response once the request complets
  13771. // successfuly.
  13772. //
  13773. // Use "Send" method on the returned Request to send the API call to the service.
  13774. // the "output" return value is not valid until after Send returns without error.
  13775. //
  13776. // See DescribeVpnConnections for more information on using the DescribeVpnConnections
  13777. // API call, and error handling.
  13778. //
  13779. // This method is useful when you want to inject custom logic or configuration
  13780. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13781. //
  13782. //
  13783. // // Example sending a request using the DescribeVpnConnectionsRequest method.
  13784. // req, resp := client.DescribeVpnConnectionsRequest(params)
  13785. //
  13786. // err := req.Send()
  13787. // if err == nil { // resp is now filled
  13788. // fmt.Println(resp)
  13789. // }
  13790. //
  13791. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  13792. func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) (req *request.Request, output *DescribeVpnConnectionsOutput) {
  13793. op := &request.Operation{
  13794. Name: opDescribeVpnConnections,
  13795. HTTPMethod: "POST",
  13796. HTTPPath: "/",
  13797. }
  13798. if input == nil {
  13799. input = &DescribeVpnConnectionsInput{}
  13800. }
  13801. output = &DescribeVpnConnectionsOutput{}
  13802. req = c.newRequest(op, input, output)
  13803. return
  13804. }
  13805. // DescribeVpnConnections API operation for Amazon Elastic Compute Cloud.
  13806. //
  13807. // Describes one or more of your VPN connections.
  13808. //
  13809. // For more information about VPN connections, see AWS Managed VPN Connections
  13810. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html) in the
  13811. // Amazon Virtual Private Cloud User Guide.
  13812. //
  13813. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13814. // with awserr.Error's Code and Message methods to get detailed information about
  13815. // the error.
  13816. //
  13817. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13818. // API operation DescribeVpnConnections for usage and error information.
  13819. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnections
  13820. func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) {
  13821. req, out := c.DescribeVpnConnectionsRequest(input)
  13822. return out, req.Send()
  13823. }
  13824. // DescribeVpnConnectionsWithContext is the same as DescribeVpnConnections with the addition of
  13825. // the ability to pass a context and additional request options.
  13826. //
  13827. // See DescribeVpnConnections for details on how to use this API operation.
  13828. //
  13829. // The context must be non-nil and will be used for request cancellation. If
  13830. // the context is nil a panic will occur. In the future the SDK may create
  13831. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13832. // for more information on using Contexts.
  13833. func (c *EC2) DescribeVpnConnectionsWithContext(ctx aws.Context, input *DescribeVpnConnectionsInput, opts ...request.Option) (*DescribeVpnConnectionsOutput, error) {
  13834. req, out := c.DescribeVpnConnectionsRequest(input)
  13835. req.SetContext(ctx)
  13836. req.ApplyOptions(opts...)
  13837. return out, req.Send()
  13838. }
  13839. const opDescribeVpnGateways = "DescribeVpnGateways"
  13840. // DescribeVpnGatewaysRequest generates a "aws/request.Request" representing the
  13841. // client's request for the DescribeVpnGateways operation. The "output" return
  13842. // value will be populated with the request's response once the request complets
  13843. // successfuly.
  13844. //
  13845. // Use "Send" method on the returned Request to send the API call to the service.
  13846. // the "output" return value is not valid until after Send returns without error.
  13847. //
  13848. // See DescribeVpnGateways for more information on using the DescribeVpnGateways
  13849. // API call, and error handling.
  13850. //
  13851. // This method is useful when you want to inject custom logic or configuration
  13852. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13853. //
  13854. //
  13855. // // Example sending a request using the DescribeVpnGatewaysRequest method.
  13856. // req, resp := client.DescribeVpnGatewaysRequest(params)
  13857. //
  13858. // err := req.Send()
  13859. // if err == nil { // resp is now filled
  13860. // fmt.Println(resp)
  13861. // }
  13862. //
  13863. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  13864. func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req *request.Request, output *DescribeVpnGatewaysOutput) {
  13865. op := &request.Operation{
  13866. Name: opDescribeVpnGateways,
  13867. HTTPMethod: "POST",
  13868. HTTPPath: "/",
  13869. }
  13870. if input == nil {
  13871. input = &DescribeVpnGatewaysInput{}
  13872. }
  13873. output = &DescribeVpnGatewaysOutput{}
  13874. req = c.newRequest(op, input, output)
  13875. return
  13876. }
  13877. // DescribeVpnGateways API operation for Amazon Elastic Compute Cloud.
  13878. //
  13879. // Describes one or more of your virtual private gateways.
  13880. //
  13881. // For more information about virtual private gateways, see AWS Managed VPN
  13882. // Connections (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  13883. // in the Amazon Virtual Private Cloud User Guide.
  13884. //
  13885. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13886. // with awserr.Error's Code and Message methods to get detailed information about
  13887. // the error.
  13888. //
  13889. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13890. // API operation DescribeVpnGateways for usage and error information.
  13891. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGateways
  13892. func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) {
  13893. req, out := c.DescribeVpnGatewaysRequest(input)
  13894. return out, req.Send()
  13895. }
  13896. // DescribeVpnGatewaysWithContext is the same as DescribeVpnGateways with the addition of
  13897. // the ability to pass a context and additional request options.
  13898. //
  13899. // See DescribeVpnGateways for details on how to use this API operation.
  13900. //
  13901. // The context must be non-nil and will be used for request cancellation. If
  13902. // the context is nil a panic will occur. In the future the SDK may create
  13903. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13904. // for more information on using Contexts.
  13905. func (c *EC2) DescribeVpnGatewaysWithContext(ctx aws.Context, input *DescribeVpnGatewaysInput, opts ...request.Option) (*DescribeVpnGatewaysOutput, error) {
  13906. req, out := c.DescribeVpnGatewaysRequest(input)
  13907. req.SetContext(ctx)
  13908. req.ApplyOptions(opts...)
  13909. return out, req.Send()
  13910. }
  13911. const opDetachClassicLinkVpc = "DetachClassicLinkVpc"
  13912. // DetachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  13913. // client's request for the DetachClassicLinkVpc operation. The "output" return
  13914. // value will be populated with the request's response once the request complets
  13915. // successfuly.
  13916. //
  13917. // Use "Send" method on the returned Request to send the API call to the service.
  13918. // the "output" return value is not valid until after Send returns without error.
  13919. //
  13920. // See DetachClassicLinkVpc for more information on using the DetachClassicLinkVpc
  13921. // API call, and error handling.
  13922. //
  13923. // This method is useful when you want to inject custom logic or configuration
  13924. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13925. //
  13926. //
  13927. // // Example sending a request using the DetachClassicLinkVpcRequest method.
  13928. // req, resp := client.DetachClassicLinkVpcRequest(params)
  13929. //
  13930. // err := req.Send()
  13931. // if err == nil { // resp is now filled
  13932. // fmt.Println(resp)
  13933. // }
  13934. //
  13935. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  13936. func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req *request.Request, output *DetachClassicLinkVpcOutput) {
  13937. op := &request.Operation{
  13938. Name: opDetachClassicLinkVpc,
  13939. HTTPMethod: "POST",
  13940. HTTPPath: "/",
  13941. }
  13942. if input == nil {
  13943. input = &DetachClassicLinkVpcInput{}
  13944. }
  13945. output = &DetachClassicLinkVpcOutput{}
  13946. req = c.newRequest(op, input, output)
  13947. return
  13948. }
  13949. // DetachClassicLinkVpc API operation for Amazon Elastic Compute Cloud.
  13950. //
  13951. // Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance
  13952. // has been unlinked, the VPC security groups are no longer associated with
  13953. // it. An instance is automatically unlinked from a VPC when it's stopped.
  13954. //
  13955. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  13956. // with awserr.Error's Code and Message methods to get detailed information about
  13957. // the error.
  13958. //
  13959. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  13960. // API operation DetachClassicLinkVpc for usage and error information.
  13961. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpc
  13962. func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) {
  13963. req, out := c.DetachClassicLinkVpcRequest(input)
  13964. return out, req.Send()
  13965. }
  13966. // DetachClassicLinkVpcWithContext is the same as DetachClassicLinkVpc with the addition of
  13967. // the ability to pass a context and additional request options.
  13968. //
  13969. // See DetachClassicLinkVpc for details on how to use this API operation.
  13970. //
  13971. // The context must be non-nil and will be used for request cancellation. If
  13972. // the context is nil a panic will occur. In the future the SDK may create
  13973. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  13974. // for more information on using Contexts.
  13975. func (c *EC2) DetachClassicLinkVpcWithContext(ctx aws.Context, input *DetachClassicLinkVpcInput, opts ...request.Option) (*DetachClassicLinkVpcOutput, error) {
  13976. req, out := c.DetachClassicLinkVpcRequest(input)
  13977. req.SetContext(ctx)
  13978. req.ApplyOptions(opts...)
  13979. return out, req.Send()
  13980. }
  13981. const opDetachInternetGateway = "DetachInternetGateway"
  13982. // DetachInternetGatewayRequest generates a "aws/request.Request" representing the
  13983. // client's request for the DetachInternetGateway operation. The "output" return
  13984. // value will be populated with the request's response once the request complets
  13985. // successfuly.
  13986. //
  13987. // Use "Send" method on the returned Request to send the API call to the service.
  13988. // the "output" return value is not valid until after Send returns without error.
  13989. //
  13990. // See DetachInternetGateway for more information on using the DetachInternetGateway
  13991. // API call, and error handling.
  13992. //
  13993. // This method is useful when you want to inject custom logic or configuration
  13994. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  13995. //
  13996. //
  13997. // // Example sending a request using the DetachInternetGatewayRequest method.
  13998. // req, resp := client.DetachInternetGatewayRequest(params)
  13999. //
  14000. // err := req.Send()
  14001. // if err == nil { // resp is now filled
  14002. // fmt.Println(resp)
  14003. // }
  14004. //
  14005. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  14006. func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (req *request.Request, output *DetachInternetGatewayOutput) {
  14007. op := &request.Operation{
  14008. Name: opDetachInternetGateway,
  14009. HTTPMethod: "POST",
  14010. HTTPPath: "/",
  14011. }
  14012. if input == nil {
  14013. input = &DetachInternetGatewayInput{}
  14014. }
  14015. output = &DetachInternetGatewayOutput{}
  14016. req = c.newRequest(op, input, output)
  14017. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14018. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14019. return
  14020. }
  14021. // DetachInternetGateway API operation for Amazon Elastic Compute Cloud.
  14022. //
  14023. // Detaches an Internet gateway from a VPC, disabling connectivity between the
  14024. // Internet and the VPC. The VPC must not contain any running instances with
  14025. // Elastic IP addresses or public IPv4 addresses.
  14026. //
  14027. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14028. // with awserr.Error's Code and Message methods to get detailed information about
  14029. // the error.
  14030. //
  14031. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14032. // API operation DetachInternetGateway for usage and error information.
  14033. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGateway
  14034. func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) {
  14035. req, out := c.DetachInternetGatewayRequest(input)
  14036. return out, req.Send()
  14037. }
  14038. // DetachInternetGatewayWithContext is the same as DetachInternetGateway with the addition of
  14039. // the ability to pass a context and additional request options.
  14040. //
  14041. // See DetachInternetGateway for details on how to use this API operation.
  14042. //
  14043. // The context must be non-nil and will be used for request cancellation. If
  14044. // the context is nil a panic will occur. In the future the SDK may create
  14045. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14046. // for more information on using Contexts.
  14047. func (c *EC2) DetachInternetGatewayWithContext(ctx aws.Context, input *DetachInternetGatewayInput, opts ...request.Option) (*DetachInternetGatewayOutput, error) {
  14048. req, out := c.DetachInternetGatewayRequest(input)
  14049. req.SetContext(ctx)
  14050. req.ApplyOptions(opts...)
  14051. return out, req.Send()
  14052. }
  14053. const opDetachNetworkInterface = "DetachNetworkInterface"
  14054. // DetachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  14055. // client's request for the DetachNetworkInterface operation. The "output" return
  14056. // value will be populated with the request's response once the request complets
  14057. // successfuly.
  14058. //
  14059. // Use "Send" method on the returned Request to send the API call to the service.
  14060. // the "output" return value is not valid until after Send returns without error.
  14061. //
  14062. // See DetachNetworkInterface for more information on using the DetachNetworkInterface
  14063. // API call, and error handling.
  14064. //
  14065. // This method is useful when you want to inject custom logic or configuration
  14066. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14067. //
  14068. //
  14069. // // Example sending a request using the DetachNetworkInterfaceRequest method.
  14070. // req, resp := client.DetachNetworkInterfaceRequest(params)
  14071. //
  14072. // err := req.Send()
  14073. // if err == nil { // resp is now filled
  14074. // fmt.Println(resp)
  14075. // }
  14076. //
  14077. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  14078. func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) (req *request.Request, output *DetachNetworkInterfaceOutput) {
  14079. op := &request.Operation{
  14080. Name: opDetachNetworkInterface,
  14081. HTTPMethod: "POST",
  14082. HTTPPath: "/",
  14083. }
  14084. if input == nil {
  14085. input = &DetachNetworkInterfaceInput{}
  14086. }
  14087. output = &DetachNetworkInterfaceOutput{}
  14088. req = c.newRequest(op, input, output)
  14089. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14090. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14091. return
  14092. }
  14093. // DetachNetworkInterface API operation for Amazon Elastic Compute Cloud.
  14094. //
  14095. // Detaches a network interface from an instance.
  14096. //
  14097. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14098. // with awserr.Error's Code and Message methods to get detailed information about
  14099. // the error.
  14100. //
  14101. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14102. // API operation DetachNetworkInterface for usage and error information.
  14103. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterface
  14104. func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) {
  14105. req, out := c.DetachNetworkInterfaceRequest(input)
  14106. return out, req.Send()
  14107. }
  14108. // DetachNetworkInterfaceWithContext is the same as DetachNetworkInterface with the addition of
  14109. // the ability to pass a context and additional request options.
  14110. //
  14111. // See DetachNetworkInterface for details on how to use this API operation.
  14112. //
  14113. // The context must be non-nil and will be used for request cancellation. If
  14114. // the context is nil a panic will occur. In the future the SDK may create
  14115. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14116. // for more information on using Contexts.
  14117. func (c *EC2) DetachNetworkInterfaceWithContext(ctx aws.Context, input *DetachNetworkInterfaceInput, opts ...request.Option) (*DetachNetworkInterfaceOutput, error) {
  14118. req, out := c.DetachNetworkInterfaceRequest(input)
  14119. req.SetContext(ctx)
  14120. req.ApplyOptions(opts...)
  14121. return out, req.Send()
  14122. }
  14123. const opDetachVolume = "DetachVolume"
  14124. // DetachVolumeRequest generates a "aws/request.Request" representing the
  14125. // client's request for the DetachVolume operation. The "output" return
  14126. // value will be populated with the request's response once the request complets
  14127. // successfuly.
  14128. //
  14129. // Use "Send" method on the returned Request to send the API call to the service.
  14130. // the "output" return value is not valid until after Send returns without error.
  14131. //
  14132. // See DetachVolume for more information on using the DetachVolume
  14133. // API call, and error handling.
  14134. //
  14135. // This method is useful when you want to inject custom logic or configuration
  14136. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14137. //
  14138. //
  14139. // // Example sending a request using the DetachVolumeRequest method.
  14140. // req, resp := client.DetachVolumeRequest(params)
  14141. //
  14142. // err := req.Send()
  14143. // if err == nil { // resp is now filled
  14144. // fmt.Println(resp)
  14145. // }
  14146. //
  14147. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  14148. func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  14149. op := &request.Operation{
  14150. Name: opDetachVolume,
  14151. HTTPMethod: "POST",
  14152. HTTPPath: "/",
  14153. }
  14154. if input == nil {
  14155. input = &DetachVolumeInput{}
  14156. }
  14157. output = &VolumeAttachment{}
  14158. req = c.newRequest(op, input, output)
  14159. return
  14160. }
  14161. // DetachVolume API operation for Amazon Elastic Compute Cloud.
  14162. //
  14163. // Detaches an EBS volume from an instance. Make sure to unmount any file systems
  14164. // on the device within your operating system before detaching the volume. Failure
  14165. // to do so can result in the volume becoming stuck in the busy state while
  14166. // detaching. If this happens, detachment can be delayed indefinitely until
  14167. // you unmount the volume, force detachment, reboot the instance, or all three.
  14168. // If an EBS volume is the root device of an instance, it can't be detached
  14169. // while the instance is running. To detach the root volume, stop the instance
  14170. // first.
  14171. //
  14172. // When a volume with an AWS Marketplace product code is detached from an instance,
  14173. // the product code is no longer associated with the instance.
  14174. //
  14175. // For more information, see Detaching an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html)
  14176. // in the Amazon Elastic Compute Cloud User Guide.
  14177. //
  14178. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14179. // with awserr.Error's Code and Message methods to get detailed information about
  14180. // the error.
  14181. //
  14182. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14183. // API operation DetachVolume for usage and error information.
  14184. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolume
  14185. func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) {
  14186. req, out := c.DetachVolumeRequest(input)
  14187. return out, req.Send()
  14188. }
  14189. // DetachVolumeWithContext is the same as DetachVolume with the addition of
  14190. // the ability to pass a context and additional request options.
  14191. //
  14192. // See DetachVolume for details on how to use this API operation.
  14193. //
  14194. // The context must be non-nil and will be used for request cancellation. If
  14195. // the context is nil a panic will occur. In the future the SDK may create
  14196. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14197. // for more information on using Contexts.
  14198. func (c *EC2) DetachVolumeWithContext(ctx aws.Context, input *DetachVolumeInput, opts ...request.Option) (*VolumeAttachment, error) {
  14199. req, out := c.DetachVolumeRequest(input)
  14200. req.SetContext(ctx)
  14201. req.ApplyOptions(opts...)
  14202. return out, req.Send()
  14203. }
  14204. const opDetachVpnGateway = "DetachVpnGateway"
  14205. // DetachVpnGatewayRequest generates a "aws/request.Request" representing the
  14206. // client's request for the DetachVpnGateway operation. The "output" return
  14207. // value will be populated with the request's response once the request complets
  14208. // successfuly.
  14209. //
  14210. // Use "Send" method on the returned Request to send the API call to the service.
  14211. // the "output" return value is not valid until after Send returns without error.
  14212. //
  14213. // See DetachVpnGateway for more information on using the DetachVpnGateway
  14214. // API call, and error handling.
  14215. //
  14216. // This method is useful when you want to inject custom logic or configuration
  14217. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14218. //
  14219. //
  14220. // // Example sending a request using the DetachVpnGatewayRequest method.
  14221. // req, resp := client.DetachVpnGatewayRequest(params)
  14222. //
  14223. // err := req.Send()
  14224. // if err == nil { // resp is now filled
  14225. // fmt.Println(resp)
  14226. // }
  14227. //
  14228. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  14229. func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *request.Request, output *DetachVpnGatewayOutput) {
  14230. op := &request.Operation{
  14231. Name: opDetachVpnGateway,
  14232. HTTPMethod: "POST",
  14233. HTTPPath: "/",
  14234. }
  14235. if input == nil {
  14236. input = &DetachVpnGatewayInput{}
  14237. }
  14238. output = &DetachVpnGatewayOutput{}
  14239. req = c.newRequest(op, input, output)
  14240. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14241. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14242. return
  14243. }
  14244. // DetachVpnGateway API operation for Amazon Elastic Compute Cloud.
  14245. //
  14246. // Detaches a virtual private gateway from a VPC. You do this if you're planning
  14247. // to turn off the VPC and not use it anymore. You can confirm a virtual private
  14248. // gateway has been completely detached from a VPC by describing the virtual
  14249. // private gateway (any attachments to the virtual private gateway are also
  14250. // described).
  14251. //
  14252. // You must wait for the attachment's state to switch to detached before you
  14253. // can delete the VPC or attach a different VPC to the virtual private gateway.
  14254. //
  14255. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14256. // with awserr.Error's Code and Message methods to get detailed information about
  14257. // the error.
  14258. //
  14259. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14260. // API operation DetachVpnGateway for usage and error information.
  14261. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGateway
  14262. func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) {
  14263. req, out := c.DetachVpnGatewayRequest(input)
  14264. return out, req.Send()
  14265. }
  14266. // DetachVpnGatewayWithContext is the same as DetachVpnGateway with the addition of
  14267. // the ability to pass a context and additional request options.
  14268. //
  14269. // See DetachVpnGateway for details on how to use this API operation.
  14270. //
  14271. // The context must be non-nil and will be used for request cancellation. If
  14272. // the context is nil a panic will occur. In the future the SDK may create
  14273. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14274. // for more information on using Contexts.
  14275. func (c *EC2) DetachVpnGatewayWithContext(ctx aws.Context, input *DetachVpnGatewayInput, opts ...request.Option) (*DetachVpnGatewayOutput, error) {
  14276. req, out := c.DetachVpnGatewayRequest(input)
  14277. req.SetContext(ctx)
  14278. req.ApplyOptions(opts...)
  14279. return out, req.Send()
  14280. }
  14281. const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation"
  14282. // DisableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  14283. // client's request for the DisableVgwRoutePropagation operation. The "output" return
  14284. // value will be populated with the request's response once the request complets
  14285. // successfuly.
  14286. //
  14287. // Use "Send" method on the returned Request to send the API call to the service.
  14288. // the "output" return value is not valid until after Send returns without error.
  14289. //
  14290. // See DisableVgwRoutePropagation for more information on using the DisableVgwRoutePropagation
  14291. // API call, and error handling.
  14292. //
  14293. // This method is useful when you want to inject custom logic or configuration
  14294. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14295. //
  14296. //
  14297. // // Example sending a request using the DisableVgwRoutePropagationRequest method.
  14298. // req, resp := client.DisableVgwRoutePropagationRequest(params)
  14299. //
  14300. // err := req.Send()
  14301. // if err == nil { // resp is now filled
  14302. // fmt.Println(resp)
  14303. // }
  14304. //
  14305. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  14306. func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagationInput) (req *request.Request, output *DisableVgwRoutePropagationOutput) {
  14307. op := &request.Operation{
  14308. Name: opDisableVgwRoutePropagation,
  14309. HTTPMethod: "POST",
  14310. HTTPPath: "/",
  14311. }
  14312. if input == nil {
  14313. input = &DisableVgwRoutePropagationInput{}
  14314. }
  14315. output = &DisableVgwRoutePropagationOutput{}
  14316. req = c.newRequest(op, input, output)
  14317. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14318. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14319. return
  14320. }
  14321. // DisableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  14322. //
  14323. // Disables a virtual private gateway (VGW) from propagating routes to a specified
  14324. // route table of a VPC.
  14325. //
  14326. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14327. // with awserr.Error's Code and Message methods to get detailed information about
  14328. // the error.
  14329. //
  14330. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14331. // API operation DisableVgwRoutePropagation for usage and error information.
  14332. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagation
  14333. func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) {
  14334. req, out := c.DisableVgwRoutePropagationRequest(input)
  14335. return out, req.Send()
  14336. }
  14337. // DisableVgwRoutePropagationWithContext is the same as DisableVgwRoutePropagation with the addition of
  14338. // the ability to pass a context and additional request options.
  14339. //
  14340. // See DisableVgwRoutePropagation for details on how to use this API operation.
  14341. //
  14342. // The context must be non-nil and will be used for request cancellation. If
  14343. // the context is nil a panic will occur. In the future the SDK may create
  14344. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14345. // for more information on using Contexts.
  14346. func (c *EC2) DisableVgwRoutePropagationWithContext(ctx aws.Context, input *DisableVgwRoutePropagationInput, opts ...request.Option) (*DisableVgwRoutePropagationOutput, error) {
  14347. req, out := c.DisableVgwRoutePropagationRequest(input)
  14348. req.SetContext(ctx)
  14349. req.ApplyOptions(opts...)
  14350. return out, req.Send()
  14351. }
  14352. const opDisableVpcClassicLink = "DisableVpcClassicLink"
  14353. // DisableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  14354. // client's request for the DisableVpcClassicLink operation. The "output" return
  14355. // value will be populated with the request's response once the request complets
  14356. // successfuly.
  14357. //
  14358. // Use "Send" method on the returned Request to send the API call to the service.
  14359. // the "output" return value is not valid until after Send returns without error.
  14360. //
  14361. // See DisableVpcClassicLink for more information on using the DisableVpcClassicLink
  14362. // API call, and error handling.
  14363. //
  14364. // This method is useful when you want to inject custom logic or configuration
  14365. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14366. //
  14367. //
  14368. // // Example sending a request using the DisableVpcClassicLinkRequest method.
  14369. // req, resp := client.DisableVpcClassicLinkRequest(params)
  14370. //
  14371. // err := req.Send()
  14372. // if err == nil { // resp is now filled
  14373. // fmt.Println(resp)
  14374. // }
  14375. //
  14376. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  14377. func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (req *request.Request, output *DisableVpcClassicLinkOutput) {
  14378. op := &request.Operation{
  14379. Name: opDisableVpcClassicLink,
  14380. HTTPMethod: "POST",
  14381. HTTPPath: "/",
  14382. }
  14383. if input == nil {
  14384. input = &DisableVpcClassicLinkInput{}
  14385. }
  14386. output = &DisableVpcClassicLinkOutput{}
  14387. req = c.newRequest(op, input, output)
  14388. return
  14389. }
  14390. // DisableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  14391. //
  14392. // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC
  14393. // that has EC2-Classic instances linked to it.
  14394. //
  14395. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14396. // with awserr.Error's Code and Message methods to get detailed information about
  14397. // the error.
  14398. //
  14399. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14400. // API operation DisableVpcClassicLink for usage and error information.
  14401. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLink
  14402. func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) {
  14403. req, out := c.DisableVpcClassicLinkRequest(input)
  14404. return out, req.Send()
  14405. }
  14406. // DisableVpcClassicLinkWithContext is the same as DisableVpcClassicLink with the addition of
  14407. // the ability to pass a context and additional request options.
  14408. //
  14409. // See DisableVpcClassicLink for details on how to use this API operation.
  14410. //
  14411. // The context must be non-nil and will be used for request cancellation. If
  14412. // the context is nil a panic will occur. In the future the SDK may create
  14413. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14414. // for more information on using Contexts.
  14415. func (c *EC2) DisableVpcClassicLinkWithContext(ctx aws.Context, input *DisableVpcClassicLinkInput, opts ...request.Option) (*DisableVpcClassicLinkOutput, error) {
  14416. req, out := c.DisableVpcClassicLinkRequest(input)
  14417. req.SetContext(ctx)
  14418. req.ApplyOptions(opts...)
  14419. return out, req.Send()
  14420. }
  14421. const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport"
  14422. // DisableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  14423. // client's request for the DisableVpcClassicLinkDnsSupport operation. The "output" return
  14424. // value will be populated with the request's response once the request complets
  14425. // successfuly.
  14426. //
  14427. // Use "Send" method on the returned Request to send the API call to the service.
  14428. // the "output" return value is not valid until after Send returns without error.
  14429. //
  14430. // See DisableVpcClassicLinkDnsSupport for more information on using the DisableVpcClassicLinkDnsSupport
  14431. // API call, and error handling.
  14432. //
  14433. // This method is useful when you want to inject custom logic or configuration
  14434. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14435. //
  14436. //
  14437. // // Example sending a request using the DisableVpcClassicLinkDnsSupportRequest method.
  14438. // req, resp := client.DisableVpcClassicLinkDnsSupportRequest(params)
  14439. //
  14440. // err := req.Send()
  14441. // if err == nil { // resp is now filled
  14442. // fmt.Println(resp)
  14443. // }
  14444. //
  14445. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  14446. func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) (req *request.Request, output *DisableVpcClassicLinkDnsSupportOutput) {
  14447. op := &request.Operation{
  14448. Name: opDisableVpcClassicLinkDnsSupport,
  14449. HTTPMethod: "POST",
  14450. HTTPPath: "/",
  14451. }
  14452. if input == nil {
  14453. input = &DisableVpcClassicLinkDnsSupportInput{}
  14454. }
  14455. output = &DisableVpcClassicLinkDnsSupportOutput{}
  14456. req = c.newRequest(op, input, output)
  14457. return
  14458. }
  14459. // DisableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  14460. //
  14461. // Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve
  14462. // to public IP addresses when addressed between a linked EC2-Classic instance
  14463. // and instances in the VPC to which it's linked. For more information about
  14464. // ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  14465. // in the Amazon Elastic Compute Cloud User Guide.
  14466. //
  14467. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14468. // with awserr.Error's Code and Message methods to get detailed information about
  14469. // the error.
  14470. //
  14471. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14472. // API operation DisableVpcClassicLinkDnsSupport for usage and error information.
  14473. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupport
  14474. func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  14475. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  14476. return out, req.Send()
  14477. }
  14478. // DisableVpcClassicLinkDnsSupportWithContext is the same as DisableVpcClassicLinkDnsSupport with the addition of
  14479. // the ability to pass a context and additional request options.
  14480. //
  14481. // See DisableVpcClassicLinkDnsSupport for details on how to use this API operation.
  14482. //
  14483. // The context must be non-nil and will be used for request cancellation. If
  14484. // the context is nil a panic will occur. In the future the SDK may create
  14485. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14486. // for more information on using Contexts.
  14487. func (c *EC2) DisableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *DisableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  14488. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  14489. req.SetContext(ctx)
  14490. req.ApplyOptions(opts...)
  14491. return out, req.Send()
  14492. }
  14493. const opDisassociateAddress = "DisassociateAddress"
  14494. // DisassociateAddressRequest generates a "aws/request.Request" representing the
  14495. // client's request for the DisassociateAddress operation. The "output" return
  14496. // value will be populated with the request's response once the request complets
  14497. // successfuly.
  14498. //
  14499. // Use "Send" method on the returned Request to send the API call to the service.
  14500. // the "output" return value is not valid until after Send returns without error.
  14501. //
  14502. // See DisassociateAddress for more information on using the DisassociateAddress
  14503. // API call, and error handling.
  14504. //
  14505. // This method is useful when you want to inject custom logic or configuration
  14506. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14507. //
  14508. //
  14509. // // Example sending a request using the DisassociateAddressRequest method.
  14510. // req, resp := client.DisassociateAddressRequest(params)
  14511. //
  14512. // err := req.Send()
  14513. // if err == nil { // resp is now filled
  14514. // fmt.Println(resp)
  14515. // }
  14516. //
  14517. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  14518. func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) {
  14519. op := &request.Operation{
  14520. Name: opDisassociateAddress,
  14521. HTTPMethod: "POST",
  14522. HTTPPath: "/",
  14523. }
  14524. if input == nil {
  14525. input = &DisassociateAddressInput{}
  14526. }
  14527. output = &DisassociateAddressOutput{}
  14528. req = c.newRequest(op, input, output)
  14529. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14530. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14531. return
  14532. }
  14533. // DisassociateAddress API operation for Amazon Elastic Compute Cloud.
  14534. //
  14535. // Disassociates an Elastic IP address from the instance or network interface
  14536. // it's associated with.
  14537. //
  14538. // An Elastic IP address is for use in either the EC2-Classic platform or in
  14539. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  14540. // in the Amazon Elastic Compute Cloud User Guide.
  14541. //
  14542. // This is an idempotent operation. If you perform the operation more than once,
  14543. // Amazon EC2 doesn't return an error.
  14544. //
  14545. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14546. // with awserr.Error's Code and Message methods to get detailed information about
  14547. // the error.
  14548. //
  14549. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14550. // API operation DisassociateAddress for usage and error information.
  14551. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddress
  14552. func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) {
  14553. req, out := c.DisassociateAddressRequest(input)
  14554. return out, req.Send()
  14555. }
  14556. // DisassociateAddressWithContext is the same as DisassociateAddress with the addition of
  14557. // the ability to pass a context and additional request options.
  14558. //
  14559. // See DisassociateAddress for details on how to use this API operation.
  14560. //
  14561. // The context must be non-nil and will be used for request cancellation. If
  14562. // the context is nil a panic will occur. In the future the SDK may create
  14563. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14564. // for more information on using Contexts.
  14565. func (c *EC2) DisassociateAddressWithContext(ctx aws.Context, input *DisassociateAddressInput, opts ...request.Option) (*DisassociateAddressOutput, error) {
  14566. req, out := c.DisassociateAddressRequest(input)
  14567. req.SetContext(ctx)
  14568. req.ApplyOptions(opts...)
  14569. return out, req.Send()
  14570. }
  14571. const opDisassociateIamInstanceProfile = "DisassociateIamInstanceProfile"
  14572. // DisassociateIamInstanceProfileRequest generates a "aws/request.Request" representing the
  14573. // client's request for the DisassociateIamInstanceProfile operation. The "output" return
  14574. // value will be populated with the request's response once the request complets
  14575. // successfuly.
  14576. //
  14577. // Use "Send" method on the returned Request to send the API call to the service.
  14578. // the "output" return value is not valid until after Send returns without error.
  14579. //
  14580. // See DisassociateIamInstanceProfile for more information on using the DisassociateIamInstanceProfile
  14581. // API call, and error handling.
  14582. //
  14583. // This method is useful when you want to inject custom logic or configuration
  14584. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14585. //
  14586. //
  14587. // // Example sending a request using the DisassociateIamInstanceProfileRequest method.
  14588. // req, resp := client.DisassociateIamInstanceProfileRequest(params)
  14589. //
  14590. // err := req.Send()
  14591. // if err == nil { // resp is now filled
  14592. // fmt.Println(resp)
  14593. // }
  14594. //
  14595. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  14596. func (c *EC2) DisassociateIamInstanceProfileRequest(input *DisassociateIamInstanceProfileInput) (req *request.Request, output *DisassociateIamInstanceProfileOutput) {
  14597. op := &request.Operation{
  14598. Name: opDisassociateIamInstanceProfile,
  14599. HTTPMethod: "POST",
  14600. HTTPPath: "/",
  14601. }
  14602. if input == nil {
  14603. input = &DisassociateIamInstanceProfileInput{}
  14604. }
  14605. output = &DisassociateIamInstanceProfileOutput{}
  14606. req = c.newRequest(op, input, output)
  14607. return
  14608. }
  14609. // DisassociateIamInstanceProfile API operation for Amazon Elastic Compute Cloud.
  14610. //
  14611. // Disassociates an IAM instance profile from a running or stopped instance.
  14612. //
  14613. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  14614. //
  14615. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14616. // with awserr.Error's Code and Message methods to get detailed information about
  14617. // the error.
  14618. //
  14619. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14620. // API operation DisassociateIamInstanceProfile for usage and error information.
  14621. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfile
  14622. func (c *EC2) DisassociateIamInstanceProfile(input *DisassociateIamInstanceProfileInput) (*DisassociateIamInstanceProfileOutput, error) {
  14623. req, out := c.DisassociateIamInstanceProfileRequest(input)
  14624. return out, req.Send()
  14625. }
  14626. // DisassociateIamInstanceProfileWithContext is the same as DisassociateIamInstanceProfile with the addition of
  14627. // the ability to pass a context and additional request options.
  14628. //
  14629. // See DisassociateIamInstanceProfile for details on how to use this API operation.
  14630. //
  14631. // The context must be non-nil and will be used for request cancellation. If
  14632. // the context is nil a panic will occur. In the future the SDK may create
  14633. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14634. // for more information on using Contexts.
  14635. func (c *EC2) DisassociateIamInstanceProfileWithContext(ctx aws.Context, input *DisassociateIamInstanceProfileInput, opts ...request.Option) (*DisassociateIamInstanceProfileOutput, error) {
  14636. req, out := c.DisassociateIamInstanceProfileRequest(input)
  14637. req.SetContext(ctx)
  14638. req.ApplyOptions(opts...)
  14639. return out, req.Send()
  14640. }
  14641. const opDisassociateRouteTable = "DisassociateRouteTable"
  14642. // DisassociateRouteTableRequest generates a "aws/request.Request" representing the
  14643. // client's request for the DisassociateRouteTable operation. The "output" return
  14644. // value will be populated with the request's response once the request complets
  14645. // successfuly.
  14646. //
  14647. // Use "Send" method on the returned Request to send the API call to the service.
  14648. // the "output" return value is not valid until after Send returns without error.
  14649. //
  14650. // See DisassociateRouteTable for more information on using the DisassociateRouteTable
  14651. // API call, and error handling.
  14652. //
  14653. // This method is useful when you want to inject custom logic or configuration
  14654. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14655. //
  14656. //
  14657. // // Example sending a request using the DisassociateRouteTableRequest method.
  14658. // req, resp := client.DisassociateRouteTableRequest(params)
  14659. //
  14660. // err := req.Send()
  14661. // if err == nil { // resp is now filled
  14662. // fmt.Println(resp)
  14663. // }
  14664. //
  14665. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  14666. func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) (req *request.Request, output *DisassociateRouteTableOutput) {
  14667. op := &request.Operation{
  14668. Name: opDisassociateRouteTable,
  14669. HTTPMethod: "POST",
  14670. HTTPPath: "/",
  14671. }
  14672. if input == nil {
  14673. input = &DisassociateRouteTableInput{}
  14674. }
  14675. output = &DisassociateRouteTableOutput{}
  14676. req = c.newRequest(op, input, output)
  14677. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14678. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14679. return
  14680. }
  14681. // DisassociateRouteTable API operation for Amazon Elastic Compute Cloud.
  14682. //
  14683. // Disassociates a subnet from a route table.
  14684. //
  14685. // After you perform this action, the subnet no longer uses the routes in the
  14686. // route table. Instead, it uses the routes in the VPC's main route table. For
  14687. // more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  14688. // in the Amazon Virtual Private Cloud User Guide.
  14689. //
  14690. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14691. // with awserr.Error's Code and Message methods to get detailed information about
  14692. // the error.
  14693. //
  14694. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14695. // API operation DisassociateRouteTable for usage and error information.
  14696. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTable
  14697. func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) {
  14698. req, out := c.DisassociateRouteTableRequest(input)
  14699. return out, req.Send()
  14700. }
  14701. // DisassociateRouteTableWithContext is the same as DisassociateRouteTable with the addition of
  14702. // the ability to pass a context and additional request options.
  14703. //
  14704. // See DisassociateRouteTable for details on how to use this API operation.
  14705. //
  14706. // The context must be non-nil and will be used for request cancellation. If
  14707. // the context is nil a panic will occur. In the future the SDK may create
  14708. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14709. // for more information on using Contexts.
  14710. func (c *EC2) DisassociateRouteTableWithContext(ctx aws.Context, input *DisassociateRouteTableInput, opts ...request.Option) (*DisassociateRouteTableOutput, error) {
  14711. req, out := c.DisassociateRouteTableRequest(input)
  14712. req.SetContext(ctx)
  14713. req.ApplyOptions(opts...)
  14714. return out, req.Send()
  14715. }
  14716. const opDisassociateSubnetCidrBlock = "DisassociateSubnetCidrBlock"
  14717. // DisassociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the
  14718. // client's request for the DisassociateSubnetCidrBlock operation. The "output" return
  14719. // value will be populated with the request's response once the request complets
  14720. // successfuly.
  14721. //
  14722. // Use "Send" method on the returned Request to send the API call to the service.
  14723. // the "output" return value is not valid until after Send returns without error.
  14724. //
  14725. // See DisassociateSubnetCidrBlock for more information on using the DisassociateSubnetCidrBlock
  14726. // API call, and error handling.
  14727. //
  14728. // This method is useful when you want to inject custom logic or configuration
  14729. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14730. //
  14731. //
  14732. // // Example sending a request using the DisassociateSubnetCidrBlockRequest method.
  14733. // req, resp := client.DisassociateSubnetCidrBlockRequest(params)
  14734. //
  14735. // err := req.Send()
  14736. // if err == nil { // resp is now filled
  14737. // fmt.Println(resp)
  14738. // }
  14739. //
  14740. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  14741. func (c *EC2) DisassociateSubnetCidrBlockRequest(input *DisassociateSubnetCidrBlockInput) (req *request.Request, output *DisassociateSubnetCidrBlockOutput) {
  14742. op := &request.Operation{
  14743. Name: opDisassociateSubnetCidrBlock,
  14744. HTTPMethod: "POST",
  14745. HTTPPath: "/",
  14746. }
  14747. if input == nil {
  14748. input = &DisassociateSubnetCidrBlockInput{}
  14749. }
  14750. output = &DisassociateSubnetCidrBlockOutput{}
  14751. req = c.newRequest(op, input, output)
  14752. return
  14753. }
  14754. // DisassociateSubnetCidrBlock API operation for Amazon Elastic Compute Cloud.
  14755. //
  14756. // Disassociates a CIDR block from a subnet. Currently, you can disassociate
  14757. // an IPv6 CIDR block only. You must detach or delete all gateways and resources
  14758. // that are associated with the CIDR block before you can disassociate it.
  14759. //
  14760. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14761. // with awserr.Error's Code and Message methods to get detailed information about
  14762. // the error.
  14763. //
  14764. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14765. // API operation DisassociateSubnetCidrBlock for usage and error information.
  14766. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlock
  14767. func (c *EC2) DisassociateSubnetCidrBlock(input *DisassociateSubnetCidrBlockInput) (*DisassociateSubnetCidrBlockOutput, error) {
  14768. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  14769. return out, req.Send()
  14770. }
  14771. // DisassociateSubnetCidrBlockWithContext is the same as DisassociateSubnetCidrBlock with the addition of
  14772. // the ability to pass a context and additional request options.
  14773. //
  14774. // See DisassociateSubnetCidrBlock for details on how to use this API operation.
  14775. //
  14776. // The context must be non-nil and will be used for request cancellation. If
  14777. // the context is nil a panic will occur. In the future the SDK may create
  14778. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14779. // for more information on using Contexts.
  14780. func (c *EC2) DisassociateSubnetCidrBlockWithContext(ctx aws.Context, input *DisassociateSubnetCidrBlockInput, opts ...request.Option) (*DisassociateSubnetCidrBlockOutput, error) {
  14781. req, out := c.DisassociateSubnetCidrBlockRequest(input)
  14782. req.SetContext(ctx)
  14783. req.ApplyOptions(opts...)
  14784. return out, req.Send()
  14785. }
  14786. const opDisassociateVpcCidrBlock = "DisassociateVpcCidrBlock"
  14787. // DisassociateVpcCidrBlockRequest generates a "aws/request.Request" representing the
  14788. // client's request for the DisassociateVpcCidrBlock operation. The "output" return
  14789. // value will be populated with the request's response once the request complets
  14790. // successfuly.
  14791. //
  14792. // Use "Send" method on the returned Request to send the API call to the service.
  14793. // the "output" return value is not valid until after Send returns without error.
  14794. //
  14795. // See DisassociateVpcCidrBlock for more information on using the DisassociateVpcCidrBlock
  14796. // API call, and error handling.
  14797. //
  14798. // This method is useful when you want to inject custom logic or configuration
  14799. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14800. //
  14801. //
  14802. // // Example sending a request using the DisassociateVpcCidrBlockRequest method.
  14803. // req, resp := client.DisassociateVpcCidrBlockRequest(params)
  14804. //
  14805. // err := req.Send()
  14806. // if err == nil { // resp is now filled
  14807. // fmt.Println(resp)
  14808. // }
  14809. //
  14810. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  14811. func (c *EC2) DisassociateVpcCidrBlockRequest(input *DisassociateVpcCidrBlockInput) (req *request.Request, output *DisassociateVpcCidrBlockOutput) {
  14812. op := &request.Operation{
  14813. Name: opDisassociateVpcCidrBlock,
  14814. HTTPMethod: "POST",
  14815. HTTPPath: "/",
  14816. }
  14817. if input == nil {
  14818. input = &DisassociateVpcCidrBlockInput{}
  14819. }
  14820. output = &DisassociateVpcCidrBlockOutput{}
  14821. req = c.newRequest(op, input, output)
  14822. return
  14823. }
  14824. // DisassociateVpcCidrBlock API operation for Amazon Elastic Compute Cloud.
  14825. //
  14826. // Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you
  14827. // must specify its association ID. You can get the association ID by using
  14828. // DescribeVpcs. You must detach or delete all gateways and resources that are
  14829. // associated with the CIDR block before you can disassociate it.
  14830. //
  14831. // You cannot disassociate the CIDR block with which you originally created
  14832. // the VPC (the primary CIDR block).
  14833. //
  14834. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14835. // with awserr.Error's Code and Message methods to get detailed information about
  14836. // the error.
  14837. //
  14838. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14839. // API operation DisassociateVpcCidrBlock for usage and error information.
  14840. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlock
  14841. func (c *EC2) DisassociateVpcCidrBlock(input *DisassociateVpcCidrBlockInput) (*DisassociateVpcCidrBlockOutput, error) {
  14842. req, out := c.DisassociateVpcCidrBlockRequest(input)
  14843. return out, req.Send()
  14844. }
  14845. // DisassociateVpcCidrBlockWithContext is the same as DisassociateVpcCidrBlock with the addition of
  14846. // the ability to pass a context and additional request options.
  14847. //
  14848. // See DisassociateVpcCidrBlock for details on how to use this API operation.
  14849. //
  14850. // The context must be non-nil and will be used for request cancellation. If
  14851. // the context is nil a panic will occur. In the future the SDK may create
  14852. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14853. // for more information on using Contexts.
  14854. func (c *EC2) DisassociateVpcCidrBlockWithContext(ctx aws.Context, input *DisassociateVpcCidrBlockInput, opts ...request.Option) (*DisassociateVpcCidrBlockOutput, error) {
  14855. req, out := c.DisassociateVpcCidrBlockRequest(input)
  14856. req.SetContext(ctx)
  14857. req.ApplyOptions(opts...)
  14858. return out, req.Send()
  14859. }
  14860. const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  14861. // EnableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  14862. // client's request for the EnableVgwRoutePropagation operation. The "output" return
  14863. // value will be populated with the request's response once the request complets
  14864. // successfuly.
  14865. //
  14866. // Use "Send" method on the returned Request to send the API call to the service.
  14867. // the "output" return value is not valid until after Send returns without error.
  14868. //
  14869. // See EnableVgwRoutePropagation for more information on using the EnableVgwRoutePropagation
  14870. // API call, and error handling.
  14871. //
  14872. // This method is useful when you want to inject custom logic or configuration
  14873. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14874. //
  14875. //
  14876. // // Example sending a request using the EnableVgwRoutePropagationRequest method.
  14877. // req, resp := client.EnableVgwRoutePropagationRequest(params)
  14878. //
  14879. // err := req.Send()
  14880. // if err == nil { // resp is now filled
  14881. // fmt.Println(resp)
  14882. // }
  14883. //
  14884. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  14885. func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationInput) (req *request.Request, output *EnableVgwRoutePropagationOutput) {
  14886. op := &request.Operation{
  14887. Name: opEnableVgwRoutePropagation,
  14888. HTTPMethod: "POST",
  14889. HTTPPath: "/",
  14890. }
  14891. if input == nil {
  14892. input = &EnableVgwRoutePropagationInput{}
  14893. }
  14894. output = &EnableVgwRoutePropagationOutput{}
  14895. req = c.newRequest(op, input, output)
  14896. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14897. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14898. return
  14899. }
  14900. // EnableVgwRoutePropagation API operation for Amazon Elastic Compute Cloud.
  14901. //
  14902. // Enables a virtual private gateway (VGW) to propagate routes to the specified
  14903. // route table of a VPC.
  14904. //
  14905. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14906. // with awserr.Error's Code and Message methods to get detailed information about
  14907. // the error.
  14908. //
  14909. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14910. // API operation EnableVgwRoutePropagation for usage and error information.
  14911. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagation
  14912. func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) {
  14913. req, out := c.EnableVgwRoutePropagationRequest(input)
  14914. return out, req.Send()
  14915. }
  14916. // EnableVgwRoutePropagationWithContext is the same as EnableVgwRoutePropagation with the addition of
  14917. // the ability to pass a context and additional request options.
  14918. //
  14919. // See EnableVgwRoutePropagation for details on how to use this API operation.
  14920. //
  14921. // The context must be non-nil and will be used for request cancellation. If
  14922. // the context is nil a panic will occur. In the future the SDK may create
  14923. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14924. // for more information on using Contexts.
  14925. func (c *EC2) EnableVgwRoutePropagationWithContext(ctx aws.Context, input *EnableVgwRoutePropagationInput, opts ...request.Option) (*EnableVgwRoutePropagationOutput, error) {
  14926. req, out := c.EnableVgwRoutePropagationRequest(input)
  14927. req.SetContext(ctx)
  14928. req.ApplyOptions(opts...)
  14929. return out, req.Send()
  14930. }
  14931. const opEnableVolumeIO = "EnableVolumeIO"
  14932. // EnableVolumeIORequest generates a "aws/request.Request" representing the
  14933. // client's request for the EnableVolumeIO operation. The "output" return
  14934. // value will be populated with the request's response once the request complets
  14935. // successfuly.
  14936. //
  14937. // Use "Send" method on the returned Request to send the API call to the service.
  14938. // the "output" return value is not valid until after Send returns without error.
  14939. //
  14940. // See EnableVolumeIO for more information on using the EnableVolumeIO
  14941. // API call, and error handling.
  14942. //
  14943. // This method is useful when you want to inject custom logic or configuration
  14944. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  14945. //
  14946. //
  14947. // // Example sending a request using the EnableVolumeIORequest method.
  14948. // req, resp := client.EnableVolumeIORequest(params)
  14949. //
  14950. // err := req.Send()
  14951. // if err == nil { // resp is now filled
  14952. // fmt.Println(resp)
  14953. // }
  14954. //
  14955. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  14956. func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Request, output *EnableVolumeIOOutput) {
  14957. op := &request.Operation{
  14958. Name: opEnableVolumeIO,
  14959. HTTPMethod: "POST",
  14960. HTTPPath: "/",
  14961. }
  14962. if input == nil {
  14963. input = &EnableVolumeIOInput{}
  14964. }
  14965. output = &EnableVolumeIOOutput{}
  14966. req = c.newRequest(op, input, output)
  14967. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  14968. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  14969. return
  14970. }
  14971. // EnableVolumeIO API operation for Amazon Elastic Compute Cloud.
  14972. //
  14973. // Enables I/O operations for a volume that had I/O operations disabled because
  14974. // the data on the volume was potentially inconsistent.
  14975. //
  14976. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  14977. // with awserr.Error's Code and Message methods to get detailed information about
  14978. // the error.
  14979. //
  14980. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  14981. // API operation EnableVolumeIO for usage and error information.
  14982. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIO
  14983. func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) {
  14984. req, out := c.EnableVolumeIORequest(input)
  14985. return out, req.Send()
  14986. }
  14987. // EnableVolumeIOWithContext is the same as EnableVolumeIO with the addition of
  14988. // the ability to pass a context and additional request options.
  14989. //
  14990. // See EnableVolumeIO for details on how to use this API operation.
  14991. //
  14992. // The context must be non-nil and will be used for request cancellation. If
  14993. // the context is nil a panic will occur. In the future the SDK may create
  14994. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  14995. // for more information on using Contexts.
  14996. func (c *EC2) EnableVolumeIOWithContext(ctx aws.Context, input *EnableVolumeIOInput, opts ...request.Option) (*EnableVolumeIOOutput, error) {
  14997. req, out := c.EnableVolumeIORequest(input)
  14998. req.SetContext(ctx)
  14999. req.ApplyOptions(opts...)
  15000. return out, req.Send()
  15001. }
  15002. const opEnableVpcClassicLink = "EnableVpcClassicLink"
  15003. // EnableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  15004. // client's request for the EnableVpcClassicLink operation. The "output" return
  15005. // value will be populated with the request's response once the request complets
  15006. // successfuly.
  15007. //
  15008. // Use "Send" method on the returned Request to send the API call to the service.
  15009. // the "output" return value is not valid until after Send returns without error.
  15010. //
  15011. // See EnableVpcClassicLink for more information on using the EnableVpcClassicLink
  15012. // API call, and error handling.
  15013. //
  15014. // This method is useful when you want to inject custom logic or configuration
  15015. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15016. //
  15017. //
  15018. // // Example sending a request using the EnableVpcClassicLinkRequest method.
  15019. // req, resp := client.EnableVpcClassicLinkRequest(params)
  15020. //
  15021. // err := req.Send()
  15022. // if err == nil { // resp is now filled
  15023. // fmt.Println(resp)
  15024. // }
  15025. //
  15026. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  15027. func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req *request.Request, output *EnableVpcClassicLinkOutput) {
  15028. op := &request.Operation{
  15029. Name: opEnableVpcClassicLink,
  15030. HTTPMethod: "POST",
  15031. HTTPPath: "/",
  15032. }
  15033. if input == nil {
  15034. input = &EnableVpcClassicLinkInput{}
  15035. }
  15036. output = &EnableVpcClassicLinkOutput{}
  15037. req = c.newRequest(op, input, output)
  15038. return
  15039. }
  15040. // EnableVpcClassicLink API operation for Amazon Elastic Compute Cloud.
  15041. //
  15042. // Enables a VPC for ClassicLink. You can then link EC2-Classic instances to
  15043. // your ClassicLink-enabled VPC to allow communication over private IP addresses.
  15044. // You cannot enable your VPC for ClassicLink if any of your VPC's route tables
  15045. // have existing routes for address ranges within the 10.0.0.0/8 IP address
  15046. // range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16
  15047. // IP address ranges. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  15048. // in the Amazon Elastic Compute Cloud User Guide.
  15049. //
  15050. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15051. // with awserr.Error's Code and Message methods to get detailed information about
  15052. // the error.
  15053. //
  15054. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15055. // API operation EnableVpcClassicLink for usage and error information.
  15056. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLink
  15057. func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) {
  15058. req, out := c.EnableVpcClassicLinkRequest(input)
  15059. return out, req.Send()
  15060. }
  15061. // EnableVpcClassicLinkWithContext is the same as EnableVpcClassicLink with the addition of
  15062. // the ability to pass a context and additional request options.
  15063. //
  15064. // See EnableVpcClassicLink for details on how to use this API operation.
  15065. //
  15066. // The context must be non-nil and will be used for request cancellation. If
  15067. // the context is nil a panic will occur. In the future the SDK may create
  15068. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15069. // for more information on using Contexts.
  15070. func (c *EC2) EnableVpcClassicLinkWithContext(ctx aws.Context, input *EnableVpcClassicLinkInput, opts ...request.Option) (*EnableVpcClassicLinkOutput, error) {
  15071. req, out := c.EnableVpcClassicLinkRequest(input)
  15072. req.SetContext(ctx)
  15073. req.ApplyOptions(opts...)
  15074. return out, req.Send()
  15075. }
  15076. const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport"
  15077. // EnableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  15078. // client's request for the EnableVpcClassicLinkDnsSupport operation. The "output" return
  15079. // value will be populated with the request's response once the request complets
  15080. // successfuly.
  15081. //
  15082. // Use "Send" method on the returned Request to send the API call to the service.
  15083. // the "output" return value is not valid until after Send returns without error.
  15084. //
  15085. // See EnableVpcClassicLinkDnsSupport for more information on using the EnableVpcClassicLinkDnsSupport
  15086. // API call, and error handling.
  15087. //
  15088. // This method is useful when you want to inject custom logic or configuration
  15089. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15090. //
  15091. //
  15092. // // Example sending a request using the EnableVpcClassicLinkDnsSupportRequest method.
  15093. // req, resp := client.EnableVpcClassicLinkDnsSupportRequest(params)
  15094. //
  15095. // err := req.Send()
  15096. // if err == nil { // resp is now filled
  15097. // fmt.Println(resp)
  15098. // }
  15099. //
  15100. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  15101. func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) (req *request.Request, output *EnableVpcClassicLinkDnsSupportOutput) {
  15102. op := &request.Operation{
  15103. Name: opEnableVpcClassicLinkDnsSupport,
  15104. HTTPMethod: "POST",
  15105. HTTPPath: "/",
  15106. }
  15107. if input == nil {
  15108. input = &EnableVpcClassicLinkDnsSupportInput{}
  15109. }
  15110. output = &EnableVpcClassicLinkDnsSupportOutput{}
  15111. req = c.newRequest(op, input, output)
  15112. return
  15113. }
  15114. // EnableVpcClassicLinkDnsSupport API operation for Amazon Elastic Compute Cloud.
  15115. //
  15116. // Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled,
  15117. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  15118. // IP address when addressed from an instance in the VPC to which it's linked.
  15119. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  15120. // IP address when addressed from a linked EC2-Classic instance. For more information
  15121. // about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  15122. // in the Amazon Elastic Compute Cloud User Guide.
  15123. //
  15124. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15125. // with awserr.Error's Code and Message methods to get detailed information about
  15126. // the error.
  15127. //
  15128. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15129. // API operation EnableVpcClassicLinkDnsSupport for usage and error information.
  15130. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport
  15131. func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  15132. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  15133. return out, req.Send()
  15134. }
  15135. // EnableVpcClassicLinkDnsSupportWithContext is the same as EnableVpcClassicLinkDnsSupport with the addition of
  15136. // the ability to pass a context and additional request options.
  15137. //
  15138. // See EnableVpcClassicLinkDnsSupport for details on how to use this API operation.
  15139. //
  15140. // The context must be non-nil and will be used for request cancellation. If
  15141. // the context is nil a panic will occur. In the future the SDK may create
  15142. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15143. // for more information on using Contexts.
  15144. func (c *EC2) EnableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input *EnableVpcClassicLinkDnsSupportInput, opts ...request.Option) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  15145. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  15146. req.SetContext(ctx)
  15147. req.ApplyOptions(opts...)
  15148. return out, req.Send()
  15149. }
  15150. const opGetConsoleOutput = "GetConsoleOutput"
  15151. // GetConsoleOutputRequest generates a "aws/request.Request" representing the
  15152. // client's request for the GetConsoleOutput operation. The "output" return
  15153. // value will be populated with the request's response once the request complets
  15154. // successfuly.
  15155. //
  15156. // Use "Send" method on the returned Request to send the API call to the service.
  15157. // the "output" return value is not valid until after Send returns without error.
  15158. //
  15159. // See GetConsoleOutput for more information on using the GetConsoleOutput
  15160. // API call, and error handling.
  15161. //
  15162. // This method is useful when you want to inject custom logic or configuration
  15163. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15164. //
  15165. //
  15166. // // Example sending a request using the GetConsoleOutputRequest method.
  15167. // req, resp := client.GetConsoleOutputRequest(params)
  15168. //
  15169. // err := req.Send()
  15170. // if err == nil { // resp is now filled
  15171. // fmt.Println(resp)
  15172. // }
  15173. //
  15174. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  15175. func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *request.Request, output *GetConsoleOutputOutput) {
  15176. op := &request.Operation{
  15177. Name: opGetConsoleOutput,
  15178. HTTPMethod: "POST",
  15179. HTTPPath: "/",
  15180. }
  15181. if input == nil {
  15182. input = &GetConsoleOutputInput{}
  15183. }
  15184. output = &GetConsoleOutputOutput{}
  15185. req = c.newRequest(op, input, output)
  15186. return
  15187. }
  15188. // GetConsoleOutput API operation for Amazon Elastic Compute Cloud.
  15189. //
  15190. // Gets the console output for the specified instance.
  15191. //
  15192. // Instances do not have a physical monitor through which you can view their
  15193. // console output. They also lack physical controls that allow you to power
  15194. // up, reboot, or shut them down. To allow these actions, we provide them through
  15195. // the Amazon EC2 API and command line interface.
  15196. //
  15197. // Instance console output is buffered and posted shortly after instance boot,
  15198. // reboot, and termination. Amazon EC2 preserves the most recent 64 KB output,
  15199. // which is available for at least one hour after the most recent post.
  15200. //
  15201. // For Linux instances, the instance console output displays the exact console
  15202. // output that would normally be displayed on a physical monitor attached to
  15203. // a computer. This output is buffered because the instance produces it and
  15204. // then posts it to a store where the instance's owner can retrieve it.
  15205. //
  15206. // For Windows instances, the instance console output includes output from the
  15207. // EC2Config service.
  15208. //
  15209. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15210. // with awserr.Error's Code and Message methods to get detailed information about
  15211. // the error.
  15212. //
  15213. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15214. // API operation GetConsoleOutput for usage and error information.
  15215. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutput
  15216. func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) {
  15217. req, out := c.GetConsoleOutputRequest(input)
  15218. return out, req.Send()
  15219. }
  15220. // GetConsoleOutputWithContext is the same as GetConsoleOutput with the addition of
  15221. // the ability to pass a context and additional request options.
  15222. //
  15223. // See GetConsoleOutput for details on how to use this API operation.
  15224. //
  15225. // The context must be non-nil and will be used for request cancellation. If
  15226. // the context is nil a panic will occur. In the future the SDK may create
  15227. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15228. // for more information on using Contexts.
  15229. func (c *EC2) GetConsoleOutputWithContext(ctx aws.Context, input *GetConsoleOutputInput, opts ...request.Option) (*GetConsoleOutputOutput, error) {
  15230. req, out := c.GetConsoleOutputRequest(input)
  15231. req.SetContext(ctx)
  15232. req.ApplyOptions(opts...)
  15233. return out, req.Send()
  15234. }
  15235. const opGetConsoleScreenshot = "GetConsoleScreenshot"
  15236. // GetConsoleScreenshotRequest generates a "aws/request.Request" representing the
  15237. // client's request for the GetConsoleScreenshot operation. The "output" return
  15238. // value will be populated with the request's response once the request complets
  15239. // successfuly.
  15240. //
  15241. // Use "Send" method on the returned Request to send the API call to the service.
  15242. // the "output" return value is not valid until after Send returns without error.
  15243. //
  15244. // See GetConsoleScreenshot for more information on using the GetConsoleScreenshot
  15245. // API call, and error handling.
  15246. //
  15247. // This method is useful when you want to inject custom logic or configuration
  15248. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15249. //
  15250. //
  15251. // // Example sending a request using the GetConsoleScreenshotRequest method.
  15252. // req, resp := client.GetConsoleScreenshotRequest(params)
  15253. //
  15254. // err := req.Send()
  15255. // if err == nil { // resp is now filled
  15256. // fmt.Println(resp)
  15257. // }
  15258. //
  15259. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  15260. func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req *request.Request, output *GetConsoleScreenshotOutput) {
  15261. op := &request.Operation{
  15262. Name: opGetConsoleScreenshot,
  15263. HTTPMethod: "POST",
  15264. HTTPPath: "/",
  15265. }
  15266. if input == nil {
  15267. input = &GetConsoleScreenshotInput{}
  15268. }
  15269. output = &GetConsoleScreenshotOutput{}
  15270. req = c.newRequest(op, input, output)
  15271. return
  15272. }
  15273. // GetConsoleScreenshot API operation for Amazon Elastic Compute Cloud.
  15274. //
  15275. // Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
  15276. //
  15277. // The returned content is Base64-encoded.
  15278. //
  15279. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15280. // with awserr.Error's Code and Message methods to get detailed information about
  15281. // the error.
  15282. //
  15283. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15284. // API operation GetConsoleScreenshot for usage and error information.
  15285. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshot
  15286. func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) {
  15287. req, out := c.GetConsoleScreenshotRequest(input)
  15288. return out, req.Send()
  15289. }
  15290. // GetConsoleScreenshotWithContext is the same as GetConsoleScreenshot with the addition of
  15291. // the ability to pass a context and additional request options.
  15292. //
  15293. // See GetConsoleScreenshot for details on how to use this API operation.
  15294. //
  15295. // The context must be non-nil and will be used for request cancellation. If
  15296. // the context is nil a panic will occur. In the future the SDK may create
  15297. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15298. // for more information on using Contexts.
  15299. func (c *EC2) GetConsoleScreenshotWithContext(ctx aws.Context, input *GetConsoleScreenshotInput, opts ...request.Option) (*GetConsoleScreenshotOutput, error) {
  15300. req, out := c.GetConsoleScreenshotRequest(input)
  15301. req.SetContext(ctx)
  15302. req.ApplyOptions(opts...)
  15303. return out, req.Send()
  15304. }
  15305. const opGetHostReservationPurchasePreview = "GetHostReservationPurchasePreview"
  15306. // GetHostReservationPurchasePreviewRequest generates a "aws/request.Request" representing the
  15307. // client's request for the GetHostReservationPurchasePreview operation. The "output" return
  15308. // value will be populated with the request's response once the request complets
  15309. // successfuly.
  15310. //
  15311. // Use "Send" method on the returned Request to send the API call to the service.
  15312. // the "output" return value is not valid until after Send returns without error.
  15313. //
  15314. // See GetHostReservationPurchasePreview for more information on using the GetHostReservationPurchasePreview
  15315. // API call, and error handling.
  15316. //
  15317. // This method is useful when you want to inject custom logic or configuration
  15318. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15319. //
  15320. //
  15321. // // Example sending a request using the GetHostReservationPurchasePreviewRequest method.
  15322. // req, resp := client.GetHostReservationPurchasePreviewRequest(params)
  15323. //
  15324. // err := req.Send()
  15325. // if err == nil { // resp is now filled
  15326. // fmt.Println(resp)
  15327. // }
  15328. //
  15329. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  15330. func (c *EC2) GetHostReservationPurchasePreviewRequest(input *GetHostReservationPurchasePreviewInput) (req *request.Request, output *GetHostReservationPurchasePreviewOutput) {
  15331. op := &request.Operation{
  15332. Name: opGetHostReservationPurchasePreview,
  15333. HTTPMethod: "POST",
  15334. HTTPPath: "/",
  15335. }
  15336. if input == nil {
  15337. input = &GetHostReservationPurchasePreviewInput{}
  15338. }
  15339. output = &GetHostReservationPurchasePreviewOutput{}
  15340. req = c.newRequest(op, input, output)
  15341. return
  15342. }
  15343. // GetHostReservationPurchasePreview API operation for Amazon Elastic Compute Cloud.
  15344. //
  15345. // Preview a reservation purchase with configurations that match those of your
  15346. // Dedicated Host. You must have active Dedicated Hosts in your account before
  15347. // you purchase a reservation.
  15348. //
  15349. // This is a preview of the PurchaseHostReservation action and does not result
  15350. // in the offering being purchased.
  15351. //
  15352. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15353. // with awserr.Error's Code and Message methods to get detailed information about
  15354. // the error.
  15355. //
  15356. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15357. // API operation GetHostReservationPurchasePreview for usage and error information.
  15358. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreview
  15359. func (c *EC2) GetHostReservationPurchasePreview(input *GetHostReservationPurchasePreviewInput) (*GetHostReservationPurchasePreviewOutput, error) {
  15360. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  15361. return out, req.Send()
  15362. }
  15363. // GetHostReservationPurchasePreviewWithContext is the same as GetHostReservationPurchasePreview with the addition of
  15364. // the ability to pass a context and additional request options.
  15365. //
  15366. // See GetHostReservationPurchasePreview for details on how to use this API operation.
  15367. //
  15368. // The context must be non-nil and will be used for request cancellation. If
  15369. // the context is nil a panic will occur. In the future the SDK may create
  15370. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15371. // for more information on using Contexts.
  15372. func (c *EC2) GetHostReservationPurchasePreviewWithContext(ctx aws.Context, input *GetHostReservationPurchasePreviewInput, opts ...request.Option) (*GetHostReservationPurchasePreviewOutput, error) {
  15373. req, out := c.GetHostReservationPurchasePreviewRequest(input)
  15374. req.SetContext(ctx)
  15375. req.ApplyOptions(opts...)
  15376. return out, req.Send()
  15377. }
  15378. const opGetLaunchTemplateData = "GetLaunchTemplateData"
  15379. // GetLaunchTemplateDataRequest generates a "aws/request.Request" representing the
  15380. // client's request for the GetLaunchTemplateData operation. The "output" return
  15381. // value will be populated with the request's response once the request complets
  15382. // successfuly.
  15383. //
  15384. // Use "Send" method on the returned Request to send the API call to the service.
  15385. // the "output" return value is not valid until after Send returns without error.
  15386. //
  15387. // See GetLaunchTemplateData for more information on using the GetLaunchTemplateData
  15388. // API call, and error handling.
  15389. //
  15390. // This method is useful when you want to inject custom logic or configuration
  15391. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15392. //
  15393. //
  15394. // // Example sending a request using the GetLaunchTemplateDataRequest method.
  15395. // req, resp := client.GetLaunchTemplateDataRequest(params)
  15396. //
  15397. // err := req.Send()
  15398. // if err == nil { // resp is now filled
  15399. // fmt.Println(resp)
  15400. // }
  15401. //
  15402. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData
  15403. func (c *EC2) GetLaunchTemplateDataRequest(input *GetLaunchTemplateDataInput) (req *request.Request, output *GetLaunchTemplateDataOutput) {
  15404. op := &request.Operation{
  15405. Name: opGetLaunchTemplateData,
  15406. HTTPMethod: "POST",
  15407. HTTPPath: "/",
  15408. }
  15409. if input == nil {
  15410. input = &GetLaunchTemplateDataInput{}
  15411. }
  15412. output = &GetLaunchTemplateDataOutput{}
  15413. req = c.newRequest(op, input, output)
  15414. return
  15415. }
  15416. // GetLaunchTemplateData API operation for Amazon Elastic Compute Cloud.
  15417. //
  15418. // Retrieves the configuration data of the specified instance. You can use this
  15419. // data to create a launch template.
  15420. //
  15421. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15422. // with awserr.Error's Code and Message methods to get detailed information about
  15423. // the error.
  15424. //
  15425. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15426. // API operation GetLaunchTemplateData for usage and error information.
  15427. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData
  15428. func (c *EC2) GetLaunchTemplateData(input *GetLaunchTemplateDataInput) (*GetLaunchTemplateDataOutput, error) {
  15429. req, out := c.GetLaunchTemplateDataRequest(input)
  15430. return out, req.Send()
  15431. }
  15432. // GetLaunchTemplateDataWithContext is the same as GetLaunchTemplateData with the addition of
  15433. // the ability to pass a context and additional request options.
  15434. //
  15435. // See GetLaunchTemplateData for details on how to use this API operation.
  15436. //
  15437. // The context must be non-nil and will be used for request cancellation. If
  15438. // the context is nil a panic will occur. In the future the SDK may create
  15439. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15440. // for more information on using Contexts.
  15441. func (c *EC2) GetLaunchTemplateDataWithContext(ctx aws.Context, input *GetLaunchTemplateDataInput, opts ...request.Option) (*GetLaunchTemplateDataOutput, error) {
  15442. req, out := c.GetLaunchTemplateDataRequest(input)
  15443. req.SetContext(ctx)
  15444. req.ApplyOptions(opts...)
  15445. return out, req.Send()
  15446. }
  15447. const opGetPasswordData = "GetPasswordData"
  15448. // GetPasswordDataRequest generates a "aws/request.Request" representing the
  15449. // client's request for the GetPasswordData operation. The "output" return
  15450. // value will be populated with the request's response once the request complets
  15451. // successfuly.
  15452. //
  15453. // Use "Send" method on the returned Request to send the API call to the service.
  15454. // the "output" return value is not valid until after Send returns without error.
  15455. //
  15456. // See GetPasswordData for more information on using the GetPasswordData
  15457. // API call, and error handling.
  15458. //
  15459. // This method is useful when you want to inject custom logic or configuration
  15460. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15461. //
  15462. //
  15463. // // Example sending a request using the GetPasswordDataRequest method.
  15464. // req, resp := client.GetPasswordDataRequest(params)
  15465. //
  15466. // err := req.Send()
  15467. // if err == nil { // resp is now filled
  15468. // fmt.Println(resp)
  15469. // }
  15470. //
  15471. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  15472. func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request.Request, output *GetPasswordDataOutput) {
  15473. op := &request.Operation{
  15474. Name: opGetPasswordData,
  15475. HTTPMethod: "POST",
  15476. HTTPPath: "/",
  15477. }
  15478. if input == nil {
  15479. input = &GetPasswordDataInput{}
  15480. }
  15481. output = &GetPasswordDataOutput{}
  15482. req = c.newRequest(op, input, output)
  15483. return
  15484. }
  15485. // GetPasswordData API operation for Amazon Elastic Compute Cloud.
  15486. //
  15487. // Retrieves the encrypted administrator password for a running Windows instance.
  15488. //
  15489. // The Windows password is generated at boot by the EC2Config service or EC2Launch
  15490. // scripts (Windows Server 2016 and later). This usually only happens the first
  15491. // time an instance is launched. For more information, see EC2Config (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_WinAMI.html)
  15492. // and EC2Launch (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch.html)
  15493. // in the Amazon Elastic Compute Cloud User Guide.
  15494. //
  15495. // For the EC2Config service, the password is not generated for rebundled AMIs
  15496. // unless Ec2SetPassword is enabled before bundling.
  15497. //
  15498. // The password is encrypted using the key pair that you specified when you
  15499. // launched the instance. You must provide the corresponding key pair file.
  15500. //
  15501. // When you launch an instance, password generation and encryption may take
  15502. // a few minutes. If you try to retrieve the password before it's available,
  15503. // the output returns an empty string. We recommend that you wait up to 15 minutes
  15504. // after launching an instance before trying to retrieve the generated password.
  15505. //
  15506. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15507. // with awserr.Error's Code and Message methods to get detailed information about
  15508. // the error.
  15509. //
  15510. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15511. // API operation GetPasswordData for usage and error information.
  15512. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordData
  15513. func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) {
  15514. req, out := c.GetPasswordDataRequest(input)
  15515. return out, req.Send()
  15516. }
  15517. // GetPasswordDataWithContext is the same as GetPasswordData with the addition of
  15518. // the ability to pass a context and additional request options.
  15519. //
  15520. // See GetPasswordData for details on how to use this API operation.
  15521. //
  15522. // The context must be non-nil and will be used for request cancellation. If
  15523. // the context is nil a panic will occur. In the future the SDK may create
  15524. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15525. // for more information on using Contexts.
  15526. func (c *EC2) GetPasswordDataWithContext(ctx aws.Context, input *GetPasswordDataInput, opts ...request.Option) (*GetPasswordDataOutput, error) {
  15527. req, out := c.GetPasswordDataRequest(input)
  15528. req.SetContext(ctx)
  15529. req.ApplyOptions(opts...)
  15530. return out, req.Send()
  15531. }
  15532. const opGetReservedInstancesExchangeQuote = "GetReservedInstancesExchangeQuote"
  15533. // GetReservedInstancesExchangeQuoteRequest generates a "aws/request.Request" representing the
  15534. // client's request for the GetReservedInstancesExchangeQuote operation. The "output" return
  15535. // value will be populated with the request's response once the request complets
  15536. // successfuly.
  15537. //
  15538. // Use "Send" method on the returned Request to send the API call to the service.
  15539. // the "output" return value is not valid until after Send returns without error.
  15540. //
  15541. // See GetReservedInstancesExchangeQuote for more information on using the GetReservedInstancesExchangeQuote
  15542. // API call, and error handling.
  15543. //
  15544. // This method is useful when you want to inject custom logic or configuration
  15545. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15546. //
  15547. //
  15548. // // Example sending a request using the GetReservedInstancesExchangeQuoteRequest method.
  15549. // req, resp := client.GetReservedInstancesExchangeQuoteRequest(params)
  15550. //
  15551. // err := req.Send()
  15552. // if err == nil { // resp is now filled
  15553. // fmt.Println(resp)
  15554. // }
  15555. //
  15556. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  15557. func (c *EC2) GetReservedInstancesExchangeQuoteRequest(input *GetReservedInstancesExchangeQuoteInput) (req *request.Request, output *GetReservedInstancesExchangeQuoteOutput) {
  15558. op := &request.Operation{
  15559. Name: opGetReservedInstancesExchangeQuote,
  15560. HTTPMethod: "POST",
  15561. HTTPPath: "/",
  15562. }
  15563. if input == nil {
  15564. input = &GetReservedInstancesExchangeQuoteInput{}
  15565. }
  15566. output = &GetReservedInstancesExchangeQuoteOutput{}
  15567. req = c.newRequest(op, input, output)
  15568. return
  15569. }
  15570. // GetReservedInstancesExchangeQuote API operation for Amazon Elastic Compute Cloud.
  15571. //
  15572. // Returns a quote and exchange information for exchanging one or more specified
  15573. // Convertible Reserved Instances for a new Convertible Reserved Instance. If
  15574. // the exchange cannot be performed, the reason is returned in the response.
  15575. // Use AcceptReservedInstancesExchangeQuote to perform the exchange.
  15576. //
  15577. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15578. // with awserr.Error's Code and Message methods to get detailed information about
  15579. // the error.
  15580. //
  15581. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15582. // API operation GetReservedInstancesExchangeQuote for usage and error information.
  15583. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuote
  15584. func (c *EC2) GetReservedInstancesExchangeQuote(input *GetReservedInstancesExchangeQuoteInput) (*GetReservedInstancesExchangeQuoteOutput, error) {
  15585. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  15586. return out, req.Send()
  15587. }
  15588. // GetReservedInstancesExchangeQuoteWithContext is the same as GetReservedInstancesExchangeQuote with the addition of
  15589. // the ability to pass a context and additional request options.
  15590. //
  15591. // See GetReservedInstancesExchangeQuote for details on how to use this API operation.
  15592. //
  15593. // The context must be non-nil and will be used for request cancellation. If
  15594. // the context is nil a panic will occur. In the future the SDK may create
  15595. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15596. // for more information on using Contexts.
  15597. func (c *EC2) GetReservedInstancesExchangeQuoteWithContext(ctx aws.Context, input *GetReservedInstancesExchangeQuoteInput, opts ...request.Option) (*GetReservedInstancesExchangeQuoteOutput, error) {
  15598. req, out := c.GetReservedInstancesExchangeQuoteRequest(input)
  15599. req.SetContext(ctx)
  15600. req.ApplyOptions(opts...)
  15601. return out, req.Send()
  15602. }
  15603. const opImportImage = "ImportImage"
  15604. // ImportImageRequest generates a "aws/request.Request" representing the
  15605. // client's request for the ImportImage operation. The "output" return
  15606. // value will be populated with the request's response once the request complets
  15607. // successfuly.
  15608. //
  15609. // Use "Send" method on the returned Request to send the API call to the service.
  15610. // the "output" return value is not valid until after Send returns without error.
  15611. //
  15612. // See ImportImage for more information on using the ImportImage
  15613. // API call, and error handling.
  15614. //
  15615. // This method is useful when you want to inject custom logic or configuration
  15616. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15617. //
  15618. //
  15619. // // Example sending a request using the ImportImageRequest method.
  15620. // req, resp := client.ImportImageRequest(params)
  15621. //
  15622. // err := req.Send()
  15623. // if err == nil { // resp is now filled
  15624. // fmt.Println(resp)
  15625. // }
  15626. //
  15627. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  15628. func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, output *ImportImageOutput) {
  15629. op := &request.Operation{
  15630. Name: opImportImage,
  15631. HTTPMethod: "POST",
  15632. HTTPPath: "/",
  15633. }
  15634. if input == nil {
  15635. input = &ImportImageInput{}
  15636. }
  15637. output = &ImportImageOutput{}
  15638. req = c.newRequest(op, input, output)
  15639. return
  15640. }
  15641. // ImportImage API operation for Amazon Elastic Compute Cloud.
  15642. //
  15643. // Import single or multi-volume disk images or EBS snapshots into an Amazon
  15644. // Machine Image (AMI). For more information, see Importing a VM as an Image
  15645. // Using VM Import/Export (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html)
  15646. // in the VM Import/Export User Guide.
  15647. //
  15648. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15649. // with awserr.Error's Code and Message methods to get detailed information about
  15650. // the error.
  15651. //
  15652. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15653. // API operation ImportImage for usage and error information.
  15654. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImage
  15655. func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) {
  15656. req, out := c.ImportImageRequest(input)
  15657. return out, req.Send()
  15658. }
  15659. // ImportImageWithContext is the same as ImportImage with the addition of
  15660. // the ability to pass a context and additional request options.
  15661. //
  15662. // See ImportImage for details on how to use this API operation.
  15663. //
  15664. // The context must be non-nil and will be used for request cancellation. If
  15665. // the context is nil a panic will occur. In the future the SDK may create
  15666. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15667. // for more information on using Contexts.
  15668. func (c *EC2) ImportImageWithContext(ctx aws.Context, input *ImportImageInput, opts ...request.Option) (*ImportImageOutput, error) {
  15669. req, out := c.ImportImageRequest(input)
  15670. req.SetContext(ctx)
  15671. req.ApplyOptions(opts...)
  15672. return out, req.Send()
  15673. }
  15674. const opImportInstance = "ImportInstance"
  15675. // ImportInstanceRequest generates a "aws/request.Request" representing the
  15676. // client's request for the ImportInstance operation. The "output" return
  15677. // value will be populated with the request's response once the request complets
  15678. // successfuly.
  15679. //
  15680. // Use "Send" method on the returned Request to send the API call to the service.
  15681. // the "output" return value is not valid until after Send returns without error.
  15682. //
  15683. // See ImportInstance for more information on using the ImportInstance
  15684. // API call, and error handling.
  15685. //
  15686. // This method is useful when you want to inject custom logic or configuration
  15687. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15688. //
  15689. //
  15690. // // Example sending a request using the ImportInstanceRequest method.
  15691. // req, resp := client.ImportInstanceRequest(params)
  15692. //
  15693. // err := req.Send()
  15694. // if err == nil { // resp is now filled
  15695. // fmt.Println(resp)
  15696. // }
  15697. //
  15698. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  15699. func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Request, output *ImportInstanceOutput) {
  15700. op := &request.Operation{
  15701. Name: opImportInstance,
  15702. HTTPMethod: "POST",
  15703. HTTPPath: "/",
  15704. }
  15705. if input == nil {
  15706. input = &ImportInstanceInput{}
  15707. }
  15708. output = &ImportInstanceOutput{}
  15709. req = c.newRequest(op, input, output)
  15710. return
  15711. }
  15712. // ImportInstance API operation for Amazon Elastic Compute Cloud.
  15713. //
  15714. // Creates an import instance task using metadata from the specified disk image.
  15715. // ImportInstance only supports single-volume VMs. To import multi-volume VMs,
  15716. // use ImportImage. For more information, see Importing a Virtual Machine Using
  15717. // the Amazon EC2 CLI (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html).
  15718. //
  15719. // For information about the import manifest referenced by this API action,
  15720. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  15721. //
  15722. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15723. // with awserr.Error's Code and Message methods to get detailed information about
  15724. // the error.
  15725. //
  15726. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15727. // API operation ImportInstance for usage and error information.
  15728. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance
  15729. func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) {
  15730. req, out := c.ImportInstanceRequest(input)
  15731. return out, req.Send()
  15732. }
  15733. // ImportInstanceWithContext is the same as ImportInstance with the addition of
  15734. // the ability to pass a context and additional request options.
  15735. //
  15736. // See ImportInstance for details on how to use this API operation.
  15737. //
  15738. // The context must be non-nil and will be used for request cancellation. If
  15739. // the context is nil a panic will occur. In the future the SDK may create
  15740. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15741. // for more information on using Contexts.
  15742. func (c *EC2) ImportInstanceWithContext(ctx aws.Context, input *ImportInstanceInput, opts ...request.Option) (*ImportInstanceOutput, error) {
  15743. req, out := c.ImportInstanceRequest(input)
  15744. req.SetContext(ctx)
  15745. req.ApplyOptions(opts...)
  15746. return out, req.Send()
  15747. }
  15748. const opImportKeyPair = "ImportKeyPair"
  15749. // ImportKeyPairRequest generates a "aws/request.Request" representing the
  15750. // client's request for the ImportKeyPair operation. The "output" return
  15751. // value will be populated with the request's response once the request complets
  15752. // successfuly.
  15753. //
  15754. // Use "Send" method on the returned Request to send the API call to the service.
  15755. // the "output" return value is not valid until after Send returns without error.
  15756. //
  15757. // See ImportKeyPair for more information on using the ImportKeyPair
  15758. // API call, and error handling.
  15759. //
  15760. // This method is useful when you want to inject custom logic or configuration
  15761. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15762. //
  15763. //
  15764. // // Example sending a request using the ImportKeyPairRequest method.
  15765. // req, resp := client.ImportKeyPairRequest(params)
  15766. //
  15767. // err := req.Send()
  15768. // if err == nil { // resp is now filled
  15769. // fmt.Println(resp)
  15770. // }
  15771. //
  15772. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  15773. func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) {
  15774. op := &request.Operation{
  15775. Name: opImportKeyPair,
  15776. HTTPMethod: "POST",
  15777. HTTPPath: "/",
  15778. }
  15779. if input == nil {
  15780. input = &ImportKeyPairInput{}
  15781. }
  15782. output = &ImportKeyPairOutput{}
  15783. req = c.newRequest(op, input, output)
  15784. return
  15785. }
  15786. // ImportKeyPair API operation for Amazon Elastic Compute Cloud.
  15787. //
  15788. // Imports the public key from an RSA key pair that you created with a third-party
  15789. // tool. Compare this with CreateKeyPair, in which AWS creates the key pair
  15790. // and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair,
  15791. // you create the key pair and give AWS just the public key. The private key
  15792. // is never transferred between you and AWS.
  15793. //
  15794. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  15795. // in the Amazon Elastic Compute Cloud User Guide.
  15796. //
  15797. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15798. // with awserr.Error's Code and Message methods to get detailed information about
  15799. // the error.
  15800. //
  15801. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15802. // API operation ImportKeyPair for usage and error information.
  15803. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair
  15804. func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) {
  15805. req, out := c.ImportKeyPairRequest(input)
  15806. return out, req.Send()
  15807. }
  15808. // ImportKeyPairWithContext is the same as ImportKeyPair with the addition of
  15809. // the ability to pass a context and additional request options.
  15810. //
  15811. // See ImportKeyPair for details on how to use this API operation.
  15812. //
  15813. // The context must be non-nil and will be used for request cancellation. If
  15814. // the context is nil a panic will occur. In the future the SDK may create
  15815. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15816. // for more information on using Contexts.
  15817. func (c *EC2) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error) {
  15818. req, out := c.ImportKeyPairRequest(input)
  15819. req.SetContext(ctx)
  15820. req.ApplyOptions(opts...)
  15821. return out, req.Send()
  15822. }
  15823. const opImportSnapshot = "ImportSnapshot"
  15824. // ImportSnapshotRequest generates a "aws/request.Request" representing the
  15825. // client's request for the ImportSnapshot operation. The "output" return
  15826. // value will be populated with the request's response once the request complets
  15827. // successfuly.
  15828. //
  15829. // Use "Send" method on the returned Request to send the API call to the service.
  15830. // the "output" return value is not valid until after Send returns without error.
  15831. //
  15832. // See ImportSnapshot for more information on using the ImportSnapshot
  15833. // API call, and error handling.
  15834. //
  15835. // This method is useful when you want to inject custom logic or configuration
  15836. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15837. //
  15838. //
  15839. // // Example sending a request using the ImportSnapshotRequest method.
  15840. // req, resp := client.ImportSnapshotRequest(params)
  15841. //
  15842. // err := req.Send()
  15843. // if err == nil { // resp is now filled
  15844. // fmt.Println(resp)
  15845. // }
  15846. //
  15847. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  15848. func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Request, output *ImportSnapshotOutput) {
  15849. op := &request.Operation{
  15850. Name: opImportSnapshot,
  15851. HTTPMethod: "POST",
  15852. HTTPPath: "/",
  15853. }
  15854. if input == nil {
  15855. input = &ImportSnapshotInput{}
  15856. }
  15857. output = &ImportSnapshotOutput{}
  15858. req = c.newRequest(op, input, output)
  15859. return
  15860. }
  15861. // ImportSnapshot API operation for Amazon Elastic Compute Cloud.
  15862. //
  15863. // Imports a disk into an EBS snapshot.
  15864. //
  15865. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15866. // with awserr.Error's Code and Message methods to get detailed information about
  15867. // the error.
  15868. //
  15869. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15870. // API operation ImportSnapshot for usage and error information.
  15871. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshot
  15872. func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) {
  15873. req, out := c.ImportSnapshotRequest(input)
  15874. return out, req.Send()
  15875. }
  15876. // ImportSnapshotWithContext is the same as ImportSnapshot with the addition of
  15877. // the ability to pass a context and additional request options.
  15878. //
  15879. // See ImportSnapshot for details on how to use this API operation.
  15880. //
  15881. // The context must be non-nil and will be used for request cancellation. If
  15882. // the context is nil a panic will occur. In the future the SDK may create
  15883. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15884. // for more information on using Contexts.
  15885. func (c *EC2) ImportSnapshotWithContext(ctx aws.Context, input *ImportSnapshotInput, opts ...request.Option) (*ImportSnapshotOutput, error) {
  15886. req, out := c.ImportSnapshotRequest(input)
  15887. req.SetContext(ctx)
  15888. req.ApplyOptions(opts...)
  15889. return out, req.Send()
  15890. }
  15891. const opImportVolume = "ImportVolume"
  15892. // ImportVolumeRequest generates a "aws/request.Request" representing the
  15893. // client's request for the ImportVolume operation. The "output" return
  15894. // value will be populated with the request's response once the request complets
  15895. // successfuly.
  15896. //
  15897. // Use "Send" method on the returned Request to send the API call to the service.
  15898. // the "output" return value is not valid until after Send returns without error.
  15899. //
  15900. // See ImportVolume for more information on using the ImportVolume
  15901. // API call, and error handling.
  15902. //
  15903. // This method is useful when you want to inject custom logic or configuration
  15904. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15905. //
  15906. //
  15907. // // Example sending a request using the ImportVolumeRequest method.
  15908. // req, resp := client.ImportVolumeRequest(params)
  15909. //
  15910. // err := req.Send()
  15911. // if err == nil { // resp is now filled
  15912. // fmt.Println(resp)
  15913. // }
  15914. //
  15915. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  15916. func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Request, output *ImportVolumeOutput) {
  15917. op := &request.Operation{
  15918. Name: opImportVolume,
  15919. HTTPMethod: "POST",
  15920. HTTPPath: "/",
  15921. }
  15922. if input == nil {
  15923. input = &ImportVolumeInput{}
  15924. }
  15925. output = &ImportVolumeOutput{}
  15926. req = c.newRequest(op, input, output)
  15927. return
  15928. }
  15929. // ImportVolume API operation for Amazon Elastic Compute Cloud.
  15930. //
  15931. // Creates an import volume task using metadata from the specified disk image.For
  15932. // more information, see Importing Disks to Amazon EBS (http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/importing-your-volumes-into-amazon-ebs.html).
  15933. //
  15934. // For information about the import manifest referenced by this API action,
  15935. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  15936. //
  15937. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  15938. // with awserr.Error's Code and Message methods to get detailed information about
  15939. // the error.
  15940. //
  15941. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  15942. // API operation ImportVolume for usage and error information.
  15943. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolume
  15944. func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) {
  15945. req, out := c.ImportVolumeRequest(input)
  15946. return out, req.Send()
  15947. }
  15948. // ImportVolumeWithContext is the same as ImportVolume with the addition of
  15949. // the ability to pass a context and additional request options.
  15950. //
  15951. // See ImportVolume for details on how to use this API operation.
  15952. //
  15953. // The context must be non-nil and will be used for request cancellation. If
  15954. // the context is nil a panic will occur. In the future the SDK may create
  15955. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  15956. // for more information on using Contexts.
  15957. func (c *EC2) ImportVolumeWithContext(ctx aws.Context, input *ImportVolumeInput, opts ...request.Option) (*ImportVolumeOutput, error) {
  15958. req, out := c.ImportVolumeRequest(input)
  15959. req.SetContext(ctx)
  15960. req.ApplyOptions(opts...)
  15961. return out, req.Send()
  15962. }
  15963. const opModifyFpgaImageAttribute = "ModifyFpgaImageAttribute"
  15964. // ModifyFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  15965. // client's request for the ModifyFpgaImageAttribute operation. The "output" return
  15966. // value will be populated with the request's response once the request complets
  15967. // successfuly.
  15968. //
  15969. // Use "Send" method on the returned Request to send the API call to the service.
  15970. // the "output" return value is not valid until after Send returns without error.
  15971. //
  15972. // See ModifyFpgaImageAttribute for more information on using the ModifyFpgaImageAttribute
  15973. // API call, and error handling.
  15974. //
  15975. // This method is useful when you want to inject custom logic or configuration
  15976. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  15977. //
  15978. //
  15979. // // Example sending a request using the ModifyFpgaImageAttributeRequest method.
  15980. // req, resp := client.ModifyFpgaImageAttributeRequest(params)
  15981. //
  15982. // err := req.Send()
  15983. // if err == nil { // resp is now filled
  15984. // fmt.Println(resp)
  15985. // }
  15986. //
  15987. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute
  15988. func (c *EC2) ModifyFpgaImageAttributeRequest(input *ModifyFpgaImageAttributeInput) (req *request.Request, output *ModifyFpgaImageAttributeOutput) {
  15989. op := &request.Operation{
  15990. Name: opModifyFpgaImageAttribute,
  15991. HTTPMethod: "POST",
  15992. HTTPPath: "/",
  15993. }
  15994. if input == nil {
  15995. input = &ModifyFpgaImageAttributeInput{}
  15996. }
  15997. output = &ModifyFpgaImageAttributeOutput{}
  15998. req = c.newRequest(op, input, output)
  15999. return
  16000. }
  16001. // ModifyFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  16002. //
  16003. // Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
  16004. //
  16005. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16006. // with awserr.Error's Code and Message methods to get detailed information about
  16007. // the error.
  16008. //
  16009. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16010. // API operation ModifyFpgaImageAttribute for usage and error information.
  16011. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttribute
  16012. func (c *EC2) ModifyFpgaImageAttribute(input *ModifyFpgaImageAttributeInput) (*ModifyFpgaImageAttributeOutput, error) {
  16013. req, out := c.ModifyFpgaImageAttributeRequest(input)
  16014. return out, req.Send()
  16015. }
  16016. // ModifyFpgaImageAttributeWithContext is the same as ModifyFpgaImageAttribute with the addition of
  16017. // the ability to pass a context and additional request options.
  16018. //
  16019. // See ModifyFpgaImageAttribute for details on how to use this API operation.
  16020. //
  16021. // The context must be non-nil and will be used for request cancellation. If
  16022. // the context is nil a panic will occur. In the future the SDK may create
  16023. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16024. // for more information on using Contexts.
  16025. func (c *EC2) ModifyFpgaImageAttributeWithContext(ctx aws.Context, input *ModifyFpgaImageAttributeInput, opts ...request.Option) (*ModifyFpgaImageAttributeOutput, error) {
  16026. req, out := c.ModifyFpgaImageAttributeRequest(input)
  16027. req.SetContext(ctx)
  16028. req.ApplyOptions(opts...)
  16029. return out, req.Send()
  16030. }
  16031. const opModifyHosts = "ModifyHosts"
  16032. // ModifyHostsRequest generates a "aws/request.Request" representing the
  16033. // client's request for the ModifyHosts operation. The "output" return
  16034. // value will be populated with the request's response once the request complets
  16035. // successfuly.
  16036. //
  16037. // Use "Send" method on the returned Request to send the API call to the service.
  16038. // the "output" return value is not valid until after Send returns without error.
  16039. //
  16040. // See ModifyHosts for more information on using the ModifyHosts
  16041. // API call, and error handling.
  16042. //
  16043. // This method is useful when you want to inject custom logic or configuration
  16044. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16045. //
  16046. //
  16047. // // Example sending a request using the ModifyHostsRequest method.
  16048. // req, resp := client.ModifyHostsRequest(params)
  16049. //
  16050. // err := req.Send()
  16051. // if err == nil { // resp is now filled
  16052. // fmt.Println(resp)
  16053. // }
  16054. //
  16055. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  16056. func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, output *ModifyHostsOutput) {
  16057. op := &request.Operation{
  16058. Name: opModifyHosts,
  16059. HTTPMethod: "POST",
  16060. HTTPPath: "/",
  16061. }
  16062. if input == nil {
  16063. input = &ModifyHostsInput{}
  16064. }
  16065. output = &ModifyHostsOutput{}
  16066. req = c.newRequest(op, input, output)
  16067. return
  16068. }
  16069. // ModifyHosts API operation for Amazon Elastic Compute Cloud.
  16070. //
  16071. // Modify the auto-placement setting of a Dedicated Host. When auto-placement
  16072. // is enabled, AWS will place instances that you launch with a tenancy of host,
  16073. // but without targeting a specific host ID, onto any available Dedicated Host
  16074. // in your account which has auto-placement enabled. When auto-placement is
  16075. // disabled, you need to provide a host ID if you want the instance to launch
  16076. // onto a specific host. If no host ID is provided, the instance will be launched
  16077. // onto a suitable host which has auto-placement enabled.
  16078. //
  16079. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16080. // with awserr.Error's Code and Message methods to get detailed information about
  16081. // the error.
  16082. //
  16083. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16084. // API operation ModifyHosts for usage and error information.
  16085. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHosts
  16086. func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) {
  16087. req, out := c.ModifyHostsRequest(input)
  16088. return out, req.Send()
  16089. }
  16090. // ModifyHostsWithContext is the same as ModifyHosts with the addition of
  16091. // the ability to pass a context and additional request options.
  16092. //
  16093. // See ModifyHosts for details on how to use this API operation.
  16094. //
  16095. // The context must be non-nil and will be used for request cancellation. If
  16096. // the context is nil a panic will occur. In the future the SDK may create
  16097. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16098. // for more information on using Contexts.
  16099. func (c *EC2) ModifyHostsWithContext(ctx aws.Context, input *ModifyHostsInput, opts ...request.Option) (*ModifyHostsOutput, error) {
  16100. req, out := c.ModifyHostsRequest(input)
  16101. req.SetContext(ctx)
  16102. req.ApplyOptions(opts...)
  16103. return out, req.Send()
  16104. }
  16105. const opModifyIdFormat = "ModifyIdFormat"
  16106. // ModifyIdFormatRequest generates a "aws/request.Request" representing the
  16107. // client's request for the ModifyIdFormat operation. The "output" return
  16108. // value will be populated with the request's response once the request complets
  16109. // successfuly.
  16110. //
  16111. // Use "Send" method on the returned Request to send the API call to the service.
  16112. // the "output" return value is not valid until after Send returns without error.
  16113. //
  16114. // See ModifyIdFormat for more information on using the ModifyIdFormat
  16115. // API call, and error handling.
  16116. //
  16117. // This method is useful when you want to inject custom logic or configuration
  16118. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16119. //
  16120. //
  16121. // // Example sending a request using the ModifyIdFormatRequest method.
  16122. // req, resp := client.ModifyIdFormatRequest(params)
  16123. //
  16124. // err := req.Send()
  16125. // if err == nil { // resp is now filled
  16126. // fmt.Println(resp)
  16127. // }
  16128. //
  16129. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  16130. func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Request, output *ModifyIdFormatOutput) {
  16131. op := &request.Operation{
  16132. Name: opModifyIdFormat,
  16133. HTTPMethod: "POST",
  16134. HTTPPath: "/",
  16135. }
  16136. if input == nil {
  16137. input = &ModifyIdFormatInput{}
  16138. }
  16139. output = &ModifyIdFormatOutput{}
  16140. req = c.newRequest(op, input, output)
  16141. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16142. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16143. return
  16144. }
  16145. // ModifyIdFormat API operation for Amazon Elastic Compute Cloud.
  16146. //
  16147. // Modifies the ID format for the specified resource on a per-region basis.
  16148. // You can specify that resources should receive longer IDs (17-character IDs)
  16149. // when they are created. The following resource types support longer IDs: instance
  16150. // | reservation | snapshot | volume.
  16151. //
  16152. // This setting applies to the IAM user who makes the request; it does not apply
  16153. // to the entire AWS account. By default, an IAM user defaults to the same settings
  16154. // as the root user. If you're using this action as the root user, then these
  16155. // settings apply to the entire account, unless an IAM user explicitly overrides
  16156. // these settings for themselves. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  16157. // in the Amazon Elastic Compute Cloud User Guide.
  16158. //
  16159. // Resources created with longer IDs are visible to all IAM roles and users,
  16160. // regardless of these settings and provided that they have permission to use
  16161. // the relevant Describe command for the resource type.
  16162. //
  16163. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16164. // with awserr.Error's Code and Message methods to get detailed information about
  16165. // the error.
  16166. //
  16167. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16168. // API operation ModifyIdFormat for usage and error information.
  16169. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormat
  16170. func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) {
  16171. req, out := c.ModifyIdFormatRequest(input)
  16172. return out, req.Send()
  16173. }
  16174. // ModifyIdFormatWithContext is the same as ModifyIdFormat with the addition of
  16175. // the ability to pass a context and additional request options.
  16176. //
  16177. // See ModifyIdFormat for details on how to use this API operation.
  16178. //
  16179. // The context must be non-nil and will be used for request cancellation. If
  16180. // the context is nil a panic will occur. In the future the SDK may create
  16181. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16182. // for more information on using Contexts.
  16183. func (c *EC2) ModifyIdFormatWithContext(ctx aws.Context, input *ModifyIdFormatInput, opts ...request.Option) (*ModifyIdFormatOutput, error) {
  16184. req, out := c.ModifyIdFormatRequest(input)
  16185. req.SetContext(ctx)
  16186. req.ApplyOptions(opts...)
  16187. return out, req.Send()
  16188. }
  16189. const opModifyIdentityIdFormat = "ModifyIdentityIdFormat"
  16190. // ModifyIdentityIdFormatRequest generates a "aws/request.Request" representing the
  16191. // client's request for the ModifyIdentityIdFormat operation. The "output" return
  16192. // value will be populated with the request's response once the request complets
  16193. // successfuly.
  16194. //
  16195. // Use "Send" method on the returned Request to send the API call to the service.
  16196. // the "output" return value is not valid until after Send returns without error.
  16197. //
  16198. // See ModifyIdentityIdFormat for more information on using the ModifyIdentityIdFormat
  16199. // API call, and error handling.
  16200. //
  16201. // This method is useful when you want to inject custom logic or configuration
  16202. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16203. //
  16204. //
  16205. // // Example sending a request using the ModifyIdentityIdFormatRequest method.
  16206. // req, resp := client.ModifyIdentityIdFormatRequest(params)
  16207. //
  16208. // err := req.Send()
  16209. // if err == nil { // resp is now filled
  16210. // fmt.Println(resp)
  16211. // }
  16212. //
  16213. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  16214. func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) (req *request.Request, output *ModifyIdentityIdFormatOutput) {
  16215. op := &request.Operation{
  16216. Name: opModifyIdentityIdFormat,
  16217. HTTPMethod: "POST",
  16218. HTTPPath: "/",
  16219. }
  16220. if input == nil {
  16221. input = &ModifyIdentityIdFormatInput{}
  16222. }
  16223. output = &ModifyIdentityIdFormatOutput{}
  16224. req = c.newRequest(op, input, output)
  16225. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16226. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16227. return
  16228. }
  16229. // ModifyIdentityIdFormat API operation for Amazon Elastic Compute Cloud.
  16230. //
  16231. // Modifies the ID format of a resource for a specified IAM user, IAM role,
  16232. // or the root user for an account; or all IAM users, IAM roles, and the root
  16233. // user for an account. You can specify that resources should receive longer
  16234. // IDs (17-character IDs) when they are created.
  16235. //
  16236. // The following resource types support longer IDs: instance | reservation |
  16237. // snapshot | volume. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  16238. // in the Amazon Elastic Compute Cloud User Guide.
  16239. //
  16240. // This setting applies to the principal specified in the request; it does not
  16241. // apply to the principal that makes the request.
  16242. //
  16243. // Resources created with longer IDs are visible to all IAM roles and users,
  16244. // regardless of these settings and provided that they have permission to use
  16245. // the relevant Describe command for the resource type.
  16246. //
  16247. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16248. // with awserr.Error's Code and Message methods to get detailed information about
  16249. // the error.
  16250. //
  16251. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16252. // API operation ModifyIdentityIdFormat for usage and error information.
  16253. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormat
  16254. func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) {
  16255. req, out := c.ModifyIdentityIdFormatRequest(input)
  16256. return out, req.Send()
  16257. }
  16258. // ModifyIdentityIdFormatWithContext is the same as ModifyIdentityIdFormat with the addition of
  16259. // the ability to pass a context and additional request options.
  16260. //
  16261. // See ModifyIdentityIdFormat for details on how to use this API operation.
  16262. //
  16263. // The context must be non-nil and will be used for request cancellation. If
  16264. // the context is nil a panic will occur. In the future the SDK may create
  16265. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16266. // for more information on using Contexts.
  16267. func (c *EC2) ModifyIdentityIdFormatWithContext(ctx aws.Context, input *ModifyIdentityIdFormatInput, opts ...request.Option) (*ModifyIdentityIdFormatOutput, error) {
  16268. req, out := c.ModifyIdentityIdFormatRequest(input)
  16269. req.SetContext(ctx)
  16270. req.ApplyOptions(opts...)
  16271. return out, req.Send()
  16272. }
  16273. const opModifyImageAttribute = "ModifyImageAttribute"
  16274. // ModifyImageAttributeRequest generates a "aws/request.Request" representing the
  16275. // client's request for the ModifyImageAttribute operation. The "output" return
  16276. // value will be populated with the request's response once the request complets
  16277. // successfuly.
  16278. //
  16279. // Use "Send" method on the returned Request to send the API call to the service.
  16280. // the "output" return value is not valid until after Send returns without error.
  16281. //
  16282. // See ModifyImageAttribute for more information on using the ModifyImageAttribute
  16283. // API call, and error handling.
  16284. //
  16285. // This method is useful when you want to inject custom logic or configuration
  16286. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16287. //
  16288. //
  16289. // // Example sending a request using the ModifyImageAttributeRequest method.
  16290. // req, resp := client.ModifyImageAttributeRequest(params)
  16291. //
  16292. // err := req.Send()
  16293. // if err == nil { // resp is now filled
  16294. // fmt.Println(resp)
  16295. // }
  16296. //
  16297. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  16298. func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req *request.Request, output *ModifyImageAttributeOutput) {
  16299. op := &request.Operation{
  16300. Name: opModifyImageAttribute,
  16301. HTTPMethod: "POST",
  16302. HTTPPath: "/",
  16303. }
  16304. if input == nil {
  16305. input = &ModifyImageAttributeInput{}
  16306. }
  16307. output = &ModifyImageAttributeOutput{}
  16308. req = c.newRequest(op, input, output)
  16309. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16310. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16311. return
  16312. }
  16313. // ModifyImageAttribute API operation for Amazon Elastic Compute Cloud.
  16314. //
  16315. // Modifies the specified attribute of the specified AMI. You can specify only
  16316. // one attribute at a time. You can use the Attribute parameter to specify the
  16317. // attribute or one of the following parameters: Description, LaunchPermission,
  16318. // or ProductCode.
  16319. //
  16320. // AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace
  16321. // product code cannot be made public.
  16322. //
  16323. // To enable the SriovNetSupport enhanced networking attribute of an image,
  16324. // enable SriovNetSupport on an instance and create an AMI from the instance.
  16325. //
  16326. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16327. // with awserr.Error's Code and Message methods to get detailed information about
  16328. // the error.
  16329. //
  16330. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16331. // API operation ModifyImageAttribute for usage and error information.
  16332. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute
  16333. func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) {
  16334. req, out := c.ModifyImageAttributeRequest(input)
  16335. return out, req.Send()
  16336. }
  16337. // ModifyImageAttributeWithContext is the same as ModifyImageAttribute with the addition of
  16338. // the ability to pass a context and additional request options.
  16339. //
  16340. // See ModifyImageAttribute for details on how to use this API operation.
  16341. //
  16342. // The context must be non-nil and will be used for request cancellation. If
  16343. // the context is nil a panic will occur. In the future the SDK may create
  16344. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16345. // for more information on using Contexts.
  16346. func (c *EC2) ModifyImageAttributeWithContext(ctx aws.Context, input *ModifyImageAttributeInput, opts ...request.Option) (*ModifyImageAttributeOutput, error) {
  16347. req, out := c.ModifyImageAttributeRequest(input)
  16348. req.SetContext(ctx)
  16349. req.ApplyOptions(opts...)
  16350. return out, req.Send()
  16351. }
  16352. const opModifyInstanceAttribute = "ModifyInstanceAttribute"
  16353. // ModifyInstanceAttributeRequest generates a "aws/request.Request" representing the
  16354. // client's request for the ModifyInstanceAttribute operation. The "output" return
  16355. // value will be populated with the request's response once the request complets
  16356. // successfuly.
  16357. //
  16358. // Use "Send" method on the returned Request to send the API call to the service.
  16359. // the "output" return value is not valid until after Send returns without error.
  16360. //
  16361. // See ModifyInstanceAttribute for more information on using the ModifyInstanceAttribute
  16362. // API call, and error handling.
  16363. //
  16364. // This method is useful when you want to inject custom logic or configuration
  16365. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16366. //
  16367. //
  16368. // // Example sending a request using the ModifyInstanceAttributeRequest method.
  16369. // req, resp := client.ModifyInstanceAttributeRequest(params)
  16370. //
  16371. // err := req.Send()
  16372. // if err == nil { // resp is now filled
  16373. // fmt.Println(resp)
  16374. // }
  16375. //
  16376. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  16377. func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput) (req *request.Request, output *ModifyInstanceAttributeOutput) {
  16378. op := &request.Operation{
  16379. Name: opModifyInstanceAttribute,
  16380. HTTPMethod: "POST",
  16381. HTTPPath: "/",
  16382. }
  16383. if input == nil {
  16384. input = &ModifyInstanceAttributeInput{}
  16385. }
  16386. output = &ModifyInstanceAttributeOutput{}
  16387. req = c.newRequest(op, input, output)
  16388. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16389. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16390. return
  16391. }
  16392. // ModifyInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  16393. //
  16394. // Modifies the specified attribute of the specified instance. You can specify
  16395. // only one attribute at a time.
  16396. //
  16397. // To modify some attributes, the instance must be stopped. For more information,
  16398. // see Modifying Attributes of a Stopped Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html)
  16399. // in the Amazon Elastic Compute Cloud User Guide.
  16400. //
  16401. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16402. // with awserr.Error's Code and Message methods to get detailed information about
  16403. // the error.
  16404. //
  16405. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16406. // API operation ModifyInstanceAttribute for usage and error information.
  16407. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute
  16408. func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) {
  16409. req, out := c.ModifyInstanceAttributeRequest(input)
  16410. return out, req.Send()
  16411. }
  16412. // ModifyInstanceAttributeWithContext is the same as ModifyInstanceAttribute with the addition of
  16413. // the ability to pass a context and additional request options.
  16414. //
  16415. // See ModifyInstanceAttribute for details on how to use this API operation.
  16416. //
  16417. // The context must be non-nil and will be used for request cancellation. If
  16418. // the context is nil a panic will occur. In the future the SDK may create
  16419. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16420. // for more information on using Contexts.
  16421. func (c *EC2) ModifyInstanceAttributeWithContext(ctx aws.Context, input *ModifyInstanceAttributeInput, opts ...request.Option) (*ModifyInstanceAttributeOutput, error) {
  16422. req, out := c.ModifyInstanceAttributeRequest(input)
  16423. req.SetContext(ctx)
  16424. req.ApplyOptions(opts...)
  16425. return out, req.Send()
  16426. }
  16427. const opModifyInstanceCreditSpecification = "ModifyInstanceCreditSpecification"
  16428. // ModifyInstanceCreditSpecificationRequest generates a "aws/request.Request" representing the
  16429. // client's request for the ModifyInstanceCreditSpecification operation. The "output" return
  16430. // value will be populated with the request's response once the request complets
  16431. // successfuly.
  16432. //
  16433. // Use "Send" method on the returned Request to send the API call to the service.
  16434. // the "output" return value is not valid until after Send returns without error.
  16435. //
  16436. // See ModifyInstanceCreditSpecification for more information on using the ModifyInstanceCreditSpecification
  16437. // API call, and error handling.
  16438. //
  16439. // This method is useful when you want to inject custom logic or configuration
  16440. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16441. //
  16442. //
  16443. // // Example sending a request using the ModifyInstanceCreditSpecificationRequest method.
  16444. // req, resp := client.ModifyInstanceCreditSpecificationRequest(params)
  16445. //
  16446. // err := req.Send()
  16447. // if err == nil { // resp is now filled
  16448. // fmt.Println(resp)
  16449. // }
  16450. //
  16451. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification
  16452. func (c *EC2) ModifyInstanceCreditSpecificationRequest(input *ModifyInstanceCreditSpecificationInput) (req *request.Request, output *ModifyInstanceCreditSpecificationOutput) {
  16453. op := &request.Operation{
  16454. Name: opModifyInstanceCreditSpecification,
  16455. HTTPMethod: "POST",
  16456. HTTPPath: "/",
  16457. }
  16458. if input == nil {
  16459. input = &ModifyInstanceCreditSpecificationInput{}
  16460. }
  16461. output = &ModifyInstanceCreditSpecificationOutput{}
  16462. req = c.newRequest(op, input, output)
  16463. return
  16464. }
  16465. // ModifyInstanceCreditSpecification API operation for Amazon Elastic Compute Cloud.
  16466. //
  16467. // Modifies the credit option for CPU usage on a running or stopped T2 instance.
  16468. // The credit options are standard and unlimited.
  16469. //
  16470. // For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
  16471. // in the Amazon Elastic Compute Cloud User Guide.
  16472. //
  16473. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16474. // with awserr.Error's Code and Message methods to get detailed information about
  16475. // the error.
  16476. //
  16477. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16478. // API operation ModifyInstanceCreditSpecification for usage and error information.
  16479. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecification
  16480. func (c *EC2) ModifyInstanceCreditSpecification(input *ModifyInstanceCreditSpecificationInput) (*ModifyInstanceCreditSpecificationOutput, error) {
  16481. req, out := c.ModifyInstanceCreditSpecificationRequest(input)
  16482. return out, req.Send()
  16483. }
  16484. // ModifyInstanceCreditSpecificationWithContext is the same as ModifyInstanceCreditSpecification with the addition of
  16485. // the ability to pass a context and additional request options.
  16486. //
  16487. // See ModifyInstanceCreditSpecification for details on how to use this API operation.
  16488. //
  16489. // The context must be non-nil and will be used for request cancellation. If
  16490. // the context is nil a panic will occur. In the future the SDK may create
  16491. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16492. // for more information on using Contexts.
  16493. func (c *EC2) ModifyInstanceCreditSpecificationWithContext(ctx aws.Context, input *ModifyInstanceCreditSpecificationInput, opts ...request.Option) (*ModifyInstanceCreditSpecificationOutput, error) {
  16494. req, out := c.ModifyInstanceCreditSpecificationRequest(input)
  16495. req.SetContext(ctx)
  16496. req.ApplyOptions(opts...)
  16497. return out, req.Send()
  16498. }
  16499. const opModifyInstancePlacement = "ModifyInstancePlacement"
  16500. // ModifyInstancePlacementRequest generates a "aws/request.Request" representing the
  16501. // client's request for the ModifyInstancePlacement operation. The "output" return
  16502. // value will be populated with the request's response once the request complets
  16503. // successfuly.
  16504. //
  16505. // Use "Send" method on the returned Request to send the API call to the service.
  16506. // the "output" return value is not valid until after Send returns without error.
  16507. //
  16508. // See ModifyInstancePlacement for more information on using the ModifyInstancePlacement
  16509. // API call, and error handling.
  16510. //
  16511. // This method is useful when you want to inject custom logic or configuration
  16512. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16513. //
  16514. //
  16515. // // Example sending a request using the ModifyInstancePlacementRequest method.
  16516. // req, resp := client.ModifyInstancePlacementRequest(params)
  16517. //
  16518. // err := req.Send()
  16519. // if err == nil { // resp is now filled
  16520. // fmt.Println(resp)
  16521. // }
  16522. //
  16523. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  16524. func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) (req *request.Request, output *ModifyInstancePlacementOutput) {
  16525. op := &request.Operation{
  16526. Name: opModifyInstancePlacement,
  16527. HTTPMethod: "POST",
  16528. HTTPPath: "/",
  16529. }
  16530. if input == nil {
  16531. input = &ModifyInstancePlacementInput{}
  16532. }
  16533. output = &ModifyInstancePlacementOutput{}
  16534. req = c.newRequest(op, input, output)
  16535. return
  16536. }
  16537. // ModifyInstancePlacement API operation for Amazon Elastic Compute Cloud.
  16538. //
  16539. // Set the instance affinity value for a specific stopped instance and modify
  16540. // the instance tenancy setting.
  16541. //
  16542. // Instance affinity is disabled by default. When instance affinity is host
  16543. // and it is not associated with a specific Dedicated Host, the next time it
  16544. // is launched it will automatically be associated with the host it lands on.
  16545. // This relationship will persist if the instance is stopped/started, or rebooted.
  16546. //
  16547. // You can modify the host ID associated with a stopped instance. If a stopped
  16548. // instance has a new host ID association, the instance will target that host
  16549. // when restarted.
  16550. //
  16551. // You can modify the tenancy of a stopped instance with a tenancy of host or
  16552. // dedicated.
  16553. //
  16554. // Affinity, hostID, and tenancy are not required parameters, but at least one
  16555. // of them must be specified in the request. Affinity and tenancy can be modified
  16556. // in the same request, but tenancy can only be modified on instances that are
  16557. // stopped.
  16558. //
  16559. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16560. // with awserr.Error's Code and Message methods to get detailed information about
  16561. // the error.
  16562. //
  16563. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16564. // API operation ModifyInstancePlacement for usage and error information.
  16565. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacement
  16566. func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) {
  16567. req, out := c.ModifyInstancePlacementRequest(input)
  16568. return out, req.Send()
  16569. }
  16570. // ModifyInstancePlacementWithContext is the same as ModifyInstancePlacement with the addition of
  16571. // the ability to pass a context and additional request options.
  16572. //
  16573. // See ModifyInstancePlacement for details on how to use this API operation.
  16574. //
  16575. // The context must be non-nil and will be used for request cancellation. If
  16576. // the context is nil a panic will occur. In the future the SDK may create
  16577. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16578. // for more information on using Contexts.
  16579. func (c *EC2) ModifyInstancePlacementWithContext(ctx aws.Context, input *ModifyInstancePlacementInput, opts ...request.Option) (*ModifyInstancePlacementOutput, error) {
  16580. req, out := c.ModifyInstancePlacementRequest(input)
  16581. req.SetContext(ctx)
  16582. req.ApplyOptions(opts...)
  16583. return out, req.Send()
  16584. }
  16585. const opModifyLaunchTemplate = "ModifyLaunchTemplate"
  16586. // ModifyLaunchTemplateRequest generates a "aws/request.Request" representing the
  16587. // client's request for the ModifyLaunchTemplate operation. The "output" return
  16588. // value will be populated with the request's response once the request complets
  16589. // successfuly.
  16590. //
  16591. // Use "Send" method on the returned Request to send the API call to the service.
  16592. // the "output" return value is not valid until after Send returns without error.
  16593. //
  16594. // See ModifyLaunchTemplate for more information on using the ModifyLaunchTemplate
  16595. // API call, and error handling.
  16596. //
  16597. // This method is useful when you want to inject custom logic or configuration
  16598. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16599. //
  16600. //
  16601. // // Example sending a request using the ModifyLaunchTemplateRequest method.
  16602. // req, resp := client.ModifyLaunchTemplateRequest(params)
  16603. //
  16604. // err := req.Send()
  16605. // if err == nil { // resp is now filled
  16606. // fmt.Println(resp)
  16607. // }
  16608. //
  16609. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate
  16610. func (c *EC2) ModifyLaunchTemplateRequest(input *ModifyLaunchTemplateInput) (req *request.Request, output *ModifyLaunchTemplateOutput) {
  16611. op := &request.Operation{
  16612. Name: opModifyLaunchTemplate,
  16613. HTTPMethod: "POST",
  16614. HTTPPath: "/",
  16615. }
  16616. if input == nil {
  16617. input = &ModifyLaunchTemplateInput{}
  16618. }
  16619. output = &ModifyLaunchTemplateOutput{}
  16620. req = c.newRequest(op, input, output)
  16621. return
  16622. }
  16623. // ModifyLaunchTemplate API operation for Amazon Elastic Compute Cloud.
  16624. //
  16625. // Modifies a launch template. You can specify which version of the launch template
  16626. // to set as the default version. When launching an instance, the default version
  16627. // applies when a launch template version is not specified.
  16628. //
  16629. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16630. // with awserr.Error's Code and Message methods to get detailed information about
  16631. // the error.
  16632. //
  16633. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16634. // API operation ModifyLaunchTemplate for usage and error information.
  16635. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplate
  16636. func (c *EC2) ModifyLaunchTemplate(input *ModifyLaunchTemplateInput) (*ModifyLaunchTemplateOutput, error) {
  16637. req, out := c.ModifyLaunchTemplateRequest(input)
  16638. return out, req.Send()
  16639. }
  16640. // ModifyLaunchTemplateWithContext is the same as ModifyLaunchTemplate with the addition of
  16641. // the ability to pass a context and additional request options.
  16642. //
  16643. // See ModifyLaunchTemplate for details on how to use this API operation.
  16644. //
  16645. // The context must be non-nil and will be used for request cancellation. If
  16646. // the context is nil a panic will occur. In the future the SDK may create
  16647. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16648. // for more information on using Contexts.
  16649. func (c *EC2) ModifyLaunchTemplateWithContext(ctx aws.Context, input *ModifyLaunchTemplateInput, opts ...request.Option) (*ModifyLaunchTemplateOutput, error) {
  16650. req, out := c.ModifyLaunchTemplateRequest(input)
  16651. req.SetContext(ctx)
  16652. req.ApplyOptions(opts...)
  16653. return out, req.Send()
  16654. }
  16655. const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute"
  16656. // ModifyNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  16657. // client's request for the ModifyNetworkInterfaceAttribute operation. The "output" return
  16658. // value will be populated with the request's response once the request complets
  16659. // successfuly.
  16660. //
  16661. // Use "Send" method on the returned Request to send the API call to the service.
  16662. // the "output" return value is not valid until after Send returns without error.
  16663. //
  16664. // See ModifyNetworkInterfaceAttribute for more information on using the ModifyNetworkInterfaceAttribute
  16665. // API call, and error handling.
  16666. //
  16667. // This method is useful when you want to inject custom logic or configuration
  16668. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16669. //
  16670. //
  16671. // // Example sending a request using the ModifyNetworkInterfaceAttributeRequest method.
  16672. // req, resp := client.ModifyNetworkInterfaceAttributeRequest(params)
  16673. //
  16674. // err := req.Send()
  16675. // if err == nil { // resp is now filled
  16676. // fmt.Println(resp)
  16677. // }
  16678. //
  16679. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  16680. func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfaceAttributeInput) (req *request.Request, output *ModifyNetworkInterfaceAttributeOutput) {
  16681. op := &request.Operation{
  16682. Name: opModifyNetworkInterfaceAttribute,
  16683. HTTPMethod: "POST",
  16684. HTTPPath: "/",
  16685. }
  16686. if input == nil {
  16687. input = &ModifyNetworkInterfaceAttributeInput{}
  16688. }
  16689. output = &ModifyNetworkInterfaceAttributeOutput{}
  16690. req = c.newRequest(op, input, output)
  16691. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16692. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16693. return
  16694. }
  16695. // ModifyNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  16696. //
  16697. // Modifies the specified network interface attribute. You can specify only
  16698. // one attribute at a time.
  16699. //
  16700. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16701. // with awserr.Error's Code and Message methods to get detailed information about
  16702. // the error.
  16703. //
  16704. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16705. // API operation ModifyNetworkInterfaceAttribute for usage and error information.
  16706. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttribute
  16707. func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) {
  16708. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  16709. return out, req.Send()
  16710. }
  16711. // ModifyNetworkInterfaceAttributeWithContext is the same as ModifyNetworkInterfaceAttribute with the addition of
  16712. // the ability to pass a context and additional request options.
  16713. //
  16714. // See ModifyNetworkInterfaceAttribute for details on how to use this API operation.
  16715. //
  16716. // The context must be non-nil and will be used for request cancellation. If
  16717. // the context is nil a panic will occur. In the future the SDK may create
  16718. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16719. // for more information on using Contexts.
  16720. func (c *EC2) ModifyNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ModifyNetworkInterfaceAttributeInput, opts ...request.Option) (*ModifyNetworkInterfaceAttributeOutput, error) {
  16721. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  16722. req.SetContext(ctx)
  16723. req.ApplyOptions(opts...)
  16724. return out, req.Send()
  16725. }
  16726. const opModifyReservedInstances = "ModifyReservedInstances"
  16727. // ModifyReservedInstancesRequest generates a "aws/request.Request" representing the
  16728. // client's request for the ModifyReservedInstances operation. The "output" return
  16729. // value will be populated with the request's response once the request complets
  16730. // successfuly.
  16731. //
  16732. // Use "Send" method on the returned Request to send the API call to the service.
  16733. // the "output" return value is not valid until after Send returns without error.
  16734. //
  16735. // See ModifyReservedInstances for more information on using the ModifyReservedInstances
  16736. // API call, and error handling.
  16737. //
  16738. // This method is useful when you want to inject custom logic or configuration
  16739. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16740. //
  16741. //
  16742. // // Example sending a request using the ModifyReservedInstancesRequest method.
  16743. // req, resp := client.ModifyReservedInstancesRequest(params)
  16744. //
  16745. // err := req.Send()
  16746. // if err == nil { // resp is now filled
  16747. // fmt.Println(resp)
  16748. // }
  16749. //
  16750. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  16751. func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput) (req *request.Request, output *ModifyReservedInstancesOutput) {
  16752. op := &request.Operation{
  16753. Name: opModifyReservedInstances,
  16754. HTTPMethod: "POST",
  16755. HTTPPath: "/",
  16756. }
  16757. if input == nil {
  16758. input = &ModifyReservedInstancesInput{}
  16759. }
  16760. output = &ModifyReservedInstancesOutput{}
  16761. req = c.newRequest(op, input, output)
  16762. return
  16763. }
  16764. // ModifyReservedInstances API operation for Amazon Elastic Compute Cloud.
  16765. //
  16766. // Modifies the Availability Zone, instance count, instance type, or network
  16767. // platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved
  16768. // Instances to be modified must be identical, except for Availability Zone,
  16769. // network platform, and instance type.
  16770. //
  16771. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  16772. // in the Amazon Elastic Compute Cloud User Guide.
  16773. //
  16774. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16775. // with awserr.Error's Code and Message methods to get detailed information about
  16776. // the error.
  16777. //
  16778. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16779. // API operation ModifyReservedInstances for usage and error information.
  16780. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstances
  16781. func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) {
  16782. req, out := c.ModifyReservedInstancesRequest(input)
  16783. return out, req.Send()
  16784. }
  16785. // ModifyReservedInstancesWithContext is the same as ModifyReservedInstances with the addition of
  16786. // the ability to pass a context and additional request options.
  16787. //
  16788. // See ModifyReservedInstances for details on how to use this API operation.
  16789. //
  16790. // The context must be non-nil and will be used for request cancellation. If
  16791. // the context is nil a panic will occur. In the future the SDK may create
  16792. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16793. // for more information on using Contexts.
  16794. func (c *EC2) ModifyReservedInstancesWithContext(ctx aws.Context, input *ModifyReservedInstancesInput, opts ...request.Option) (*ModifyReservedInstancesOutput, error) {
  16795. req, out := c.ModifyReservedInstancesRequest(input)
  16796. req.SetContext(ctx)
  16797. req.ApplyOptions(opts...)
  16798. return out, req.Send()
  16799. }
  16800. const opModifySnapshotAttribute = "ModifySnapshotAttribute"
  16801. // ModifySnapshotAttributeRequest generates a "aws/request.Request" representing the
  16802. // client's request for the ModifySnapshotAttribute operation. The "output" return
  16803. // value will be populated with the request's response once the request complets
  16804. // successfuly.
  16805. //
  16806. // Use "Send" method on the returned Request to send the API call to the service.
  16807. // the "output" return value is not valid until after Send returns without error.
  16808. //
  16809. // See ModifySnapshotAttribute for more information on using the ModifySnapshotAttribute
  16810. // API call, and error handling.
  16811. //
  16812. // This method is useful when you want to inject custom logic or configuration
  16813. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16814. //
  16815. //
  16816. // // Example sending a request using the ModifySnapshotAttributeRequest method.
  16817. // req, resp := client.ModifySnapshotAttributeRequest(params)
  16818. //
  16819. // err := req.Send()
  16820. // if err == nil { // resp is now filled
  16821. // fmt.Println(resp)
  16822. // }
  16823. //
  16824. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  16825. func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput) (req *request.Request, output *ModifySnapshotAttributeOutput) {
  16826. op := &request.Operation{
  16827. Name: opModifySnapshotAttribute,
  16828. HTTPMethod: "POST",
  16829. HTTPPath: "/",
  16830. }
  16831. if input == nil {
  16832. input = &ModifySnapshotAttributeInput{}
  16833. }
  16834. output = &ModifySnapshotAttributeOutput{}
  16835. req = c.newRequest(op, input, output)
  16836. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  16837. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  16838. return
  16839. }
  16840. // ModifySnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  16841. //
  16842. // Adds or removes permission settings for the specified snapshot. You may add
  16843. // or remove specified AWS account IDs from a snapshot's list of create volume
  16844. // permissions, but you cannot do both in a single API call. If you need to
  16845. // both add and remove account IDs for a snapshot, you must use multiple API
  16846. // calls.
  16847. //
  16848. // Encrypted snapshots and snapshots with AWS Marketplace product codes cannot
  16849. // be made public. Snapshots encrypted with your default CMK cannot be shared
  16850. // with other accounts.
  16851. //
  16852. // For more information on modifying snapshot permissions, see Sharing Snapshots
  16853. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  16854. // in the Amazon Elastic Compute Cloud User Guide.
  16855. //
  16856. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16857. // with awserr.Error's Code and Message methods to get detailed information about
  16858. // the error.
  16859. //
  16860. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16861. // API operation ModifySnapshotAttribute for usage and error information.
  16862. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttribute
  16863. func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) {
  16864. req, out := c.ModifySnapshotAttributeRequest(input)
  16865. return out, req.Send()
  16866. }
  16867. // ModifySnapshotAttributeWithContext is the same as ModifySnapshotAttribute with the addition of
  16868. // the ability to pass a context and additional request options.
  16869. //
  16870. // See ModifySnapshotAttribute for details on how to use this API operation.
  16871. //
  16872. // The context must be non-nil and will be used for request cancellation. If
  16873. // the context is nil a panic will occur. In the future the SDK may create
  16874. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16875. // for more information on using Contexts.
  16876. func (c *EC2) ModifySnapshotAttributeWithContext(ctx aws.Context, input *ModifySnapshotAttributeInput, opts ...request.Option) (*ModifySnapshotAttributeOutput, error) {
  16877. req, out := c.ModifySnapshotAttributeRequest(input)
  16878. req.SetContext(ctx)
  16879. req.ApplyOptions(opts...)
  16880. return out, req.Send()
  16881. }
  16882. const opModifySpotFleetRequest = "ModifySpotFleetRequest"
  16883. // ModifySpotFleetRequestRequest generates a "aws/request.Request" representing the
  16884. // client's request for the ModifySpotFleetRequest operation. The "output" return
  16885. // value will be populated with the request's response once the request complets
  16886. // successfuly.
  16887. //
  16888. // Use "Send" method on the returned Request to send the API call to the service.
  16889. // the "output" return value is not valid until after Send returns without error.
  16890. //
  16891. // See ModifySpotFleetRequest for more information on using the ModifySpotFleetRequest
  16892. // API call, and error handling.
  16893. //
  16894. // This method is useful when you want to inject custom logic or configuration
  16895. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16896. //
  16897. //
  16898. // // Example sending a request using the ModifySpotFleetRequestRequest method.
  16899. // req, resp := client.ModifySpotFleetRequestRequest(params)
  16900. //
  16901. // err := req.Send()
  16902. // if err == nil { // resp is now filled
  16903. // fmt.Println(resp)
  16904. // }
  16905. //
  16906. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  16907. func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) (req *request.Request, output *ModifySpotFleetRequestOutput) {
  16908. op := &request.Operation{
  16909. Name: opModifySpotFleetRequest,
  16910. HTTPMethod: "POST",
  16911. HTTPPath: "/",
  16912. }
  16913. if input == nil {
  16914. input = &ModifySpotFleetRequestInput{}
  16915. }
  16916. output = &ModifySpotFleetRequestOutput{}
  16917. req = c.newRequest(op, input, output)
  16918. return
  16919. }
  16920. // ModifySpotFleetRequest API operation for Amazon Elastic Compute Cloud.
  16921. //
  16922. // Modifies the specified Spot Fleet request.
  16923. //
  16924. // While the Spot Fleet request is being modified, it is in the modifying state.
  16925. //
  16926. // To scale up your Spot Fleet, increase its target capacity. The Spot Fleet
  16927. // launches the additional Spot Instances according to the allocation strategy
  16928. // for the Spot Fleet request. If the allocation strategy is lowestPrice, the
  16929. // Spot Fleet launches instances using the Spot pool with the lowest price.
  16930. // If the allocation strategy is diversified, the Spot Fleet distributes the
  16931. // instances across the Spot pools.
  16932. //
  16933. // To scale down your Spot Fleet, decrease its target capacity. First, the Spot
  16934. // Fleet cancels any open requests that exceed the new target capacity. You
  16935. // can request that the Spot Fleet terminate Spot Instances until the size of
  16936. // the fleet no longer exceeds the new target capacity. If the allocation strategy
  16937. // is lowestPrice, the Spot Fleet terminates the instances with the highest
  16938. // price per unit. If the allocation strategy is diversified, the Spot Fleet
  16939. // terminates instances across the Spot pools. Alternatively, you can request
  16940. // that the Spot Fleet keep the fleet at its current size, but not replace any
  16941. // Spot Instances that are interrupted or that you terminate manually.
  16942. //
  16943. // If you are finished with your Spot Fleet for now, but will use it again later,
  16944. // you can set the target capacity to 0.
  16945. //
  16946. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  16947. // with awserr.Error's Code and Message methods to get detailed information about
  16948. // the error.
  16949. //
  16950. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  16951. // API operation ModifySpotFleetRequest for usage and error information.
  16952. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequest
  16953. func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) {
  16954. req, out := c.ModifySpotFleetRequestRequest(input)
  16955. return out, req.Send()
  16956. }
  16957. // ModifySpotFleetRequestWithContext is the same as ModifySpotFleetRequest with the addition of
  16958. // the ability to pass a context and additional request options.
  16959. //
  16960. // See ModifySpotFleetRequest for details on how to use this API operation.
  16961. //
  16962. // The context must be non-nil and will be used for request cancellation. If
  16963. // the context is nil a panic will occur. In the future the SDK may create
  16964. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  16965. // for more information on using Contexts.
  16966. func (c *EC2) ModifySpotFleetRequestWithContext(ctx aws.Context, input *ModifySpotFleetRequestInput, opts ...request.Option) (*ModifySpotFleetRequestOutput, error) {
  16967. req, out := c.ModifySpotFleetRequestRequest(input)
  16968. req.SetContext(ctx)
  16969. req.ApplyOptions(opts...)
  16970. return out, req.Send()
  16971. }
  16972. const opModifySubnetAttribute = "ModifySubnetAttribute"
  16973. // ModifySubnetAttributeRequest generates a "aws/request.Request" representing the
  16974. // client's request for the ModifySubnetAttribute operation. The "output" return
  16975. // value will be populated with the request's response once the request complets
  16976. // successfuly.
  16977. //
  16978. // Use "Send" method on the returned Request to send the API call to the service.
  16979. // the "output" return value is not valid until after Send returns without error.
  16980. //
  16981. // See ModifySubnetAttribute for more information on using the ModifySubnetAttribute
  16982. // API call, and error handling.
  16983. //
  16984. // This method is useful when you want to inject custom logic or configuration
  16985. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  16986. //
  16987. //
  16988. // // Example sending a request using the ModifySubnetAttributeRequest method.
  16989. // req, resp := client.ModifySubnetAttributeRequest(params)
  16990. //
  16991. // err := req.Send()
  16992. // if err == nil { // resp is now filled
  16993. // fmt.Println(resp)
  16994. // }
  16995. //
  16996. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  16997. func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (req *request.Request, output *ModifySubnetAttributeOutput) {
  16998. op := &request.Operation{
  16999. Name: opModifySubnetAttribute,
  17000. HTTPMethod: "POST",
  17001. HTTPPath: "/",
  17002. }
  17003. if input == nil {
  17004. input = &ModifySubnetAttributeInput{}
  17005. }
  17006. output = &ModifySubnetAttributeOutput{}
  17007. req = c.newRequest(op, input, output)
  17008. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17009. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17010. return
  17011. }
  17012. // ModifySubnetAttribute API operation for Amazon Elastic Compute Cloud.
  17013. //
  17014. // Modifies a subnet attribute. You can only modify one attribute at a time.
  17015. //
  17016. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17017. // with awserr.Error's Code and Message methods to get detailed information about
  17018. // the error.
  17019. //
  17020. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17021. // API operation ModifySubnetAttribute for usage and error information.
  17022. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttribute
  17023. func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) {
  17024. req, out := c.ModifySubnetAttributeRequest(input)
  17025. return out, req.Send()
  17026. }
  17027. // ModifySubnetAttributeWithContext is the same as ModifySubnetAttribute with the addition of
  17028. // the ability to pass a context and additional request options.
  17029. //
  17030. // See ModifySubnetAttribute for details on how to use this API operation.
  17031. //
  17032. // The context must be non-nil and will be used for request cancellation. If
  17033. // the context is nil a panic will occur. In the future the SDK may create
  17034. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17035. // for more information on using Contexts.
  17036. func (c *EC2) ModifySubnetAttributeWithContext(ctx aws.Context, input *ModifySubnetAttributeInput, opts ...request.Option) (*ModifySubnetAttributeOutput, error) {
  17037. req, out := c.ModifySubnetAttributeRequest(input)
  17038. req.SetContext(ctx)
  17039. req.ApplyOptions(opts...)
  17040. return out, req.Send()
  17041. }
  17042. const opModifyVolume = "ModifyVolume"
  17043. // ModifyVolumeRequest generates a "aws/request.Request" representing the
  17044. // client's request for the ModifyVolume operation. The "output" return
  17045. // value will be populated with the request's response once the request complets
  17046. // successfuly.
  17047. //
  17048. // Use "Send" method on the returned Request to send the API call to the service.
  17049. // the "output" return value is not valid until after Send returns without error.
  17050. //
  17051. // See ModifyVolume for more information on using the ModifyVolume
  17052. // API call, and error handling.
  17053. //
  17054. // This method is useful when you want to inject custom logic or configuration
  17055. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17056. //
  17057. //
  17058. // // Example sending a request using the ModifyVolumeRequest method.
  17059. // req, resp := client.ModifyVolumeRequest(params)
  17060. //
  17061. // err := req.Send()
  17062. // if err == nil { // resp is now filled
  17063. // fmt.Println(resp)
  17064. // }
  17065. //
  17066. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  17067. func (c *EC2) ModifyVolumeRequest(input *ModifyVolumeInput) (req *request.Request, output *ModifyVolumeOutput) {
  17068. op := &request.Operation{
  17069. Name: opModifyVolume,
  17070. HTTPMethod: "POST",
  17071. HTTPPath: "/",
  17072. }
  17073. if input == nil {
  17074. input = &ModifyVolumeInput{}
  17075. }
  17076. output = &ModifyVolumeOutput{}
  17077. req = c.newRequest(op, input, output)
  17078. return
  17079. }
  17080. // ModifyVolume API operation for Amazon Elastic Compute Cloud.
  17081. //
  17082. // You can modify several parameters of an existing EBS volume, including volume
  17083. // size, volume type, and IOPS capacity. If your EBS volume is attached to a
  17084. // current-generation EC2 instance type, you may be able to apply these changes
  17085. // without stopping the instance or detaching the volume from it. For more information
  17086. // about modifying an EBS volume running Linux, see Modifying the Size, IOPS,
  17087. // or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html).
  17088. // For more information about modifying an EBS volume running Windows, see Modifying
  17089. // the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  17090. //
  17091. // When you complete a resize operation on your volume, you need to extend the
  17092. // volume's file-system size to take advantage of the new storage capacity.
  17093. // For information about extending a Linux file system, see Extending a Linux
  17094. // File System (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux).
  17095. // For information about extending a Windows file system, see Extending a Windows
  17096. // File System (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html#recognize-expanded-volume-windows).
  17097. //
  17098. // You can use CloudWatch Events to check the status of a modification to an
  17099. // EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch
  17100. // Events User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/).
  17101. // You can also track the status of a modification using the DescribeVolumesModifications
  17102. // API. For information about tracking status changes using either method, see
  17103. // Monitoring Volume Modifications (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html#monitoring_mods).
  17104. //
  17105. // With previous-generation instance types, resizing an EBS volume may require
  17106. // detaching and reattaching the volume or stopping and restarting the instance.
  17107. // For more information about modifying an EBS volume running Linux, see Modifying
  17108. // the Size, IOPS, or Type of an EBS Volume on Linux (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html).
  17109. // For more information about modifying an EBS volume running Windows, see Modifying
  17110. // the Size, IOPS, or Type of an EBS Volume on Windows (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ebs-expand-volume.html).
  17111. //
  17112. // If you reach the maximum volume modification rate per volume limit, you will
  17113. // need to wait at least six hours before applying further modifications to
  17114. // the affected EBS volume.
  17115. //
  17116. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17117. // with awserr.Error's Code and Message methods to get detailed information about
  17118. // the error.
  17119. //
  17120. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17121. // API operation ModifyVolume for usage and error information.
  17122. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolume
  17123. func (c *EC2) ModifyVolume(input *ModifyVolumeInput) (*ModifyVolumeOutput, error) {
  17124. req, out := c.ModifyVolumeRequest(input)
  17125. return out, req.Send()
  17126. }
  17127. // ModifyVolumeWithContext is the same as ModifyVolume with the addition of
  17128. // the ability to pass a context and additional request options.
  17129. //
  17130. // See ModifyVolume for details on how to use this API operation.
  17131. //
  17132. // The context must be non-nil and will be used for request cancellation. If
  17133. // the context is nil a panic will occur. In the future the SDK may create
  17134. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17135. // for more information on using Contexts.
  17136. func (c *EC2) ModifyVolumeWithContext(ctx aws.Context, input *ModifyVolumeInput, opts ...request.Option) (*ModifyVolumeOutput, error) {
  17137. req, out := c.ModifyVolumeRequest(input)
  17138. req.SetContext(ctx)
  17139. req.ApplyOptions(opts...)
  17140. return out, req.Send()
  17141. }
  17142. const opModifyVolumeAttribute = "ModifyVolumeAttribute"
  17143. // ModifyVolumeAttributeRequest generates a "aws/request.Request" representing the
  17144. // client's request for the ModifyVolumeAttribute operation. The "output" return
  17145. // value will be populated with the request's response once the request complets
  17146. // successfuly.
  17147. //
  17148. // Use "Send" method on the returned Request to send the API call to the service.
  17149. // the "output" return value is not valid until after Send returns without error.
  17150. //
  17151. // See ModifyVolumeAttribute for more information on using the ModifyVolumeAttribute
  17152. // API call, and error handling.
  17153. //
  17154. // This method is useful when you want to inject custom logic or configuration
  17155. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17156. //
  17157. //
  17158. // // Example sending a request using the ModifyVolumeAttributeRequest method.
  17159. // req, resp := client.ModifyVolumeAttributeRequest(params)
  17160. //
  17161. // err := req.Send()
  17162. // if err == nil { // resp is now filled
  17163. // fmt.Println(resp)
  17164. // }
  17165. //
  17166. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  17167. func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (req *request.Request, output *ModifyVolumeAttributeOutput) {
  17168. op := &request.Operation{
  17169. Name: opModifyVolumeAttribute,
  17170. HTTPMethod: "POST",
  17171. HTTPPath: "/",
  17172. }
  17173. if input == nil {
  17174. input = &ModifyVolumeAttributeInput{}
  17175. }
  17176. output = &ModifyVolumeAttributeOutput{}
  17177. req = c.newRequest(op, input, output)
  17178. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17179. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17180. return
  17181. }
  17182. // ModifyVolumeAttribute API operation for Amazon Elastic Compute Cloud.
  17183. //
  17184. // Modifies a volume attribute.
  17185. //
  17186. // By default, all I/O operations for the volume are suspended when the data
  17187. // on the volume is determined to be potentially inconsistent, to prevent undetectable,
  17188. // latent data corruption. The I/O access to the volume can be resumed by first
  17189. // enabling I/O access and then checking the data consistency on your volume.
  17190. //
  17191. // You can change the default behavior to resume I/O operations. We recommend
  17192. // that you change this only for boot volumes or for volumes that are stateless
  17193. // or disposable.
  17194. //
  17195. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17196. // with awserr.Error's Code and Message methods to get detailed information about
  17197. // the error.
  17198. //
  17199. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17200. // API operation ModifyVolumeAttribute for usage and error information.
  17201. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttribute
  17202. func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) {
  17203. req, out := c.ModifyVolumeAttributeRequest(input)
  17204. return out, req.Send()
  17205. }
  17206. // ModifyVolumeAttributeWithContext is the same as ModifyVolumeAttribute with the addition of
  17207. // the ability to pass a context and additional request options.
  17208. //
  17209. // See ModifyVolumeAttribute for details on how to use this API operation.
  17210. //
  17211. // The context must be non-nil and will be used for request cancellation. If
  17212. // the context is nil a panic will occur. In the future the SDK may create
  17213. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17214. // for more information on using Contexts.
  17215. func (c *EC2) ModifyVolumeAttributeWithContext(ctx aws.Context, input *ModifyVolumeAttributeInput, opts ...request.Option) (*ModifyVolumeAttributeOutput, error) {
  17216. req, out := c.ModifyVolumeAttributeRequest(input)
  17217. req.SetContext(ctx)
  17218. req.ApplyOptions(opts...)
  17219. return out, req.Send()
  17220. }
  17221. const opModifyVpcAttribute = "ModifyVpcAttribute"
  17222. // ModifyVpcAttributeRequest generates a "aws/request.Request" representing the
  17223. // client's request for the ModifyVpcAttribute operation. The "output" return
  17224. // value will be populated with the request's response once the request complets
  17225. // successfuly.
  17226. //
  17227. // Use "Send" method on the returned Request to send the API call to the service.
  17228. // the "output" return value is not valid until after Send returns without error.
  17229. //
  17230. // See ModifyVpcAttribute for more information on using the ModifyVpcAttribute
  17231. // API call, and error handling.
  17232. //
  17233. // This method is useful when you want to inject custom logic or configuration
  17234. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17235. //
  17236. //
  17237. // // Example sending a request using the ModifyVpcAttributeRequest method.
  17238. // req, resp := client.ModifyVpcAttributeRequest(params)
  17239. //
  17240. // err := req.Send()
  17241. // if err == nil { // resp is now filled
  17242. // fmt.Println(resp)
  17243. // }
  17244. //
  17245. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  17246. func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *request.Request, output *ModifyVpcAttributeOutput) {
  17247. op := &request.Operation{
  17248. Name: opModifyVpcAttribute,
  17249. HTTPMethod: "POST",
  17250. HTTPPath: "/",
  17251. }
  17252. if input == nil {
  17253. input = &ModifyVpcAttributeInput{}
  17254. }
  17255. output = &ModifyVpcAttributeOutput{}
  17256. req = c.newRequest(op, input, output)
  17257. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  17258. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  17259. return
  17260. }
  17261. // ModifyVpcAttribute API operation for Amazon Elastic Compute Cloud.
  17262. //
  17263. // Modifies the specified attribute of the specified VPC.
  17264. //
  17265. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17266. // with awserr.Error's Code and Message methods to get detailed information about
  17267. // the error.
  17268. //
  17269. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17270. // API operation ModifyVpcAttribute for usage and error information.
  17271. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute
  17272. func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) {
  17273. req, out := c.ModifyVpcAttributeRequest(input)
  17274. return out, req.Send()
  17275. }
  17276. // ModifyVpcAttributeWithContext is the same as ModifyVpcAttribute with the addition of
  17277. // the ability to pass a context and additional request options.
  17278. //
  17279. // See ModifyVpcAttribute for details on how to use this API operation.
  17280. //
  17281. // The context must be non-nil and will be used for request cancellation. If
  17282. // the context is nil a panic will occur. In the future the SDK may create
  17283. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17284. // for more information on using Contexts.
  17285. func (c *EC2) ModifyVpcAttributeWithContext(ctx aws.Context, input *ModifyVpcAttributeInput, opts ...request.Option) (*ModifyVpcAttributeOutput, error) {
  17286. req, out := c.ModifyVpcAttributeRequest(input)
  17287. req.SetContext(ctx)
  17288. req.ApplyOptions(opts...)
  17289. return out, req.Send()
  17290. }
  17291. const opModifyVpcEndpoint = "ModifyVpcEndpoint"
  17292. // ModifyVpcEndpointRequest generates a "aws/request.Request" representing the
  17293. // client's request for the ModifyVpcEndpoint operation. The "output" return
  17294. // value will be populated with the request's response once the request complets
  17295. // successfuly.
  17296. //
  17297. // Use "Send" method on the returned Request to send the API call to the service.
  17298. // the "output" return value is not valid until after Send returns without error.
  17299. //
  17300. // See ModifyVpcEndpoint for more information on using the ModifyVpcEndpoint
  17301. // API call, and error handling.
  17302. //
  17303. // This method is useful when you want to inject custom logic or configuration
  17304. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17305. //
  17306. //
  17307. // // Example sending a request using the ModifyVpcEndpointRequest method.
  17308. // req, resp := client.ModifyVpcEndpointRequest(params)
  17309. //
  17310. // err := req.Send()
  17311. // if err == nil { // resp is now filled
  17312. // fmt.Println(resp)
  17313. // }
  17314. //
  17315. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  17316. func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *request.Request, output *ModifyVpcEndpointOutput) {
  17317. op := &request.Operation{
  17318. Name: opModifyVpcEndpoint,
  17319. HTTPMethod: "POST",
  17320. HTTPPath: "/",
  17321. }
  17322. if input == nil {
  17323. input = &ModifyVpcEndpointInput{}
  17324. }
  17325. output = &ModifyVpcEndpointOutput{}
  17326. req = c.newRequest(op, input, output)
  17327. return
  17328. }
  17329. // ModifyVpcEndpoint API operation for Amazon Elastic Compute Cloud.
  17330. //
  17331. // Modifies attributes of a specified VPC endpoint. The attributes that you
  17332. // can modify depend on the type of VPC endpoint (interface or gateway). For
  17333. // more information, see VPC Endpoints (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html)
  17334. // in the Amazon Virtual Private Cloud User Guide.
  17335. //
  17336. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17337. // with awserr.Error's Code and Message methods to get detailed information about
  17338. // the error.
  17339. //
  17340. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17341. // API operation ModifyVpcEndpoint for usage and error information.
  17342. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpoint
  17343. func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) {
  17344. req, out := c.ModifyVpcEndpointRequest(input)
  17345. return out, req.Send()
  17346. }
  17347. // ModifyVpcEndpointWithContext is the same as ModifyVpcEndpoint with the addition of
  17348. // the ability to pass a context and additional request options.
  17349. //
  17350. // See ModifyVpcEndpoint for details on how to use this API operation.
  17351. //
  17352. // The context must be non-nil and will be used for request cancellation. If
  17353. // the context is nil a panic will occur. In the future the SDK may create
  17354. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17355. // for more information on using Contexts.
  17356. func (c *EC2) ModifyVpcEndpointWithContext(ctx aws.Context, input *ModifyVpcEndpointInput, opts ...request.Option) (*ModifyVpcEndpointOutput, error) {
  17357. req, out := c.ModifyVpcEndpointRequest(input)
  17358. req.SetContext(ctx)
  17359. req.ApplyOptions(opts...)
  17360. return out, req.Send()
  17361. }
  17362. const opModifyVpcEndpointConnectionNotification = "ModifyVpcEndpointConnectionNotification"
  17363. // ModifyVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the
  17364. // client's request for the ModifyVpcEndpointConnectionNotification operation. The "output" return
  17365. // value will be populated with the request's response once the request complets
  17366. // successfuly.
  17367. //
  17368. // Use "Send" method on the returned Request to send the API call to the service.
  17369. // the "output" return value is not valid until after Send returns without error.
  17370. //
  17371. // See ModifyVpcEndpointConnectionNotification for more information on using the ModifyVpcEndpointConnectionNotification
  17372. // API call, and error handling.
  17373. //
  17374. // This method is useful when you want to inject custom logic or configuration
  17375. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17376. //
  17377. //
  17378. // // Example sending a request using the ModifyVpcEndpointConnectionNotificationRequest method.
  17379. // req, resp := client.ModifyVpcEndpointConnectionNotificationRequest(params)
  17380. //
  17381. // err := req.Send()
  17382. // if err == nil { // resp is now filled
  17383. // fmt.Println(resp)
  17384. // }
  17385. //
  17386. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification
  17387. func (c *EC2) ModifyVpcEndpointConnectionNotificationRequest(input *ModifyVpcEndpointConnectionNotificationInput) (req *request.Request, output *ModifyVpcEndpointConnectionNotificationOutput) {
  17388. op := &request.Operation{
  17389. Name: opModifyVpcEndpointConnectionNotification,
  17390. HTTPMethod: "POST",
  17391. HTTPPath: "/",
  17392. }
  17393. if input == nil {
  17394. input = &ModifyVpcEndpointConnectionNotificationInput{}
  17395. }
  17396. output = &ModifyVpcEndpointConnectionNotificationOutput{}
  17397. req = c.newRequest(op, input, output)
  17398. return
  17399. }
  17400. // ModifyVpcEndpointConnectionNotification API operation for Amazon Elastic Compute Cloud.
  17401. //
  17402. // Modifies a connection notification for VPC endpoint or VPC endpoint service.
  17403. // You can change the SNS topic for the notification, or the events for which
  17404. // to be notified.
  17405. //
  17406. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17407. // with awserr.Error's Code and Message methods to get detailed information about
  17408. // the error.
  17409. //
  17410. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17411. // API operation ModifyVpcEndpointConnectionNotification for usage and error information.
  17412. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotification
  17413. func (c *EC2) ModifyVpcEndpointConnectionNotification(input *ModifyVpcEndpointConnectionNotificationInput) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
  17414. req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input)
  17415. return out, req.Send()
  17416. }
  17417. // ModifyVpcEndpointConnectionNotificationWithContext is the same as ModifyVpcEndpointConnectionNotification with the addition of
  17418. // the ability to pass a context and additional request options.
  17419. //
  17420. // See ModifyVpcEndpointConnectionNotification for details on how to use this API operation.
  17421. //
  17422. // The context must be non-nil and will be used for request cancellation. If
  17423. // the context is nil a panic will occur. In the future the SDK may create
  17424. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17425. // for more information on using Contexts.
  17426. func (c *EC2) ModifyVpcEndpointConnectionNotificationWithContext(ctx aws.Context, input *ModifyVpcEndpointConnectionNotificationInput, opts ...request.Option) (*ModifyVpcEndpointConnectionNotificationOutput, error) {
  17427. req, out := c.ModifyVpcEndpointConnectionNotificationRequest(input)
  17428. req.SetContext(ctx)
  17429. req.ApplyOptions(opts...)
  17430. return out, req.Send()
  17431. }
  17432. const opModifyVpcEndpointServiceConfiguration = "ModifyVpcEndpointServiceConfiguration"
  17433. // ModifyVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the
  17434. // client's request for the ModifyVpcEndpointServiceConfiguration operation. The "output" return
  17435. // value will be populated with the request's response once the request complets
  17436. // successfuly.
  17437. //
  17438. // Use "Send" method on the returned Request to send the API call to the service.
  17439. // the "output" return value is not valid until after Send returns without error.
  17440. //
  17441. // See ModifyVpcEndpointServiceConfiguration for more information on using the ModifyVpcEndpointServiceConfiguration
  17442. // API call, and error handling.
  17443. //
  17444. // This method is useful when you want to inject custom logic or configuration
  17445. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17446. //
  17447. //
  17448. // // Example sending a request using the ModifyVpcEndpointServiceConfigurationRequest method.
  17449. // req, resp := client.ModifyVpcEndpointServiceConfigurationRequest(params)
  17450. //
  17451. // err := req.Send()
  17452. // if err == nil { // resp is now filled
  17453. // fmt.Println(resp)
  17454. // }
  17455. //
  17456. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration
  17457. func (c *EC2) ModifyVpcEndpointServiceConfigurationRequest(input *ModifyVpcEndpointServiceConfigurationInput) (req *request.Request, output *ModifyVpcEndpointServiceConfigurationOutput) {
  17458. op := &request.Operation{
  17459. Name: opModifyVpcEndpointServiceConfiguration,
  17460. HTTPMethod: "POST",
  17461. HTTPPath: "/",
  17462. }
  17463. if input == nil {
  17464. input = &ModifyVpcEndpointServiceConfigurationInput{}
  17465. }
  17466. output = &ModifyVpcEndpointServiceConfigurationOutput{}
  17467. req = c.newRequest(op, input, output)
  17468. return
  17469. }
  17470. // ModifyVpcEndpointServiceConfiguration API operation for Amazon Elastic Compute Cloud.
  17471. //
  17472. // Modifies the attributes of your VPC endpoint service configuration. You can
  17473. // change the Network Load Balancers for your service, and you can specify whether
  17474. // acceptance is required for requests to connect to your endpoint service through
  17475. // an interface VPC endpoint.
  17476. //
  17477. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17478. // with awserr.Error's Code and Message methods to get detailed information about
  17479. // the error.
  17480. //
  17481. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17482. // API operation ModifyVpcEndpointServiceConfiguration for usage and error information.
  17483. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfiguration
  17484. func (c *EC2) ModifyVpcEndpointServiceConfiguration(input *ModifyVpcEndpointServiceConfigurationInput) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
  17485. req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input)
  17486. return out, req.Send()
  17487. }
  17488. // ModifyVpcEndpointServiceConfigurationWithContext is the same as ModifyVpcEndpointServiceConfiguration with the addition of
  17489. // the ability to pass a context and additional request options.
  17490. //
  17491. // See ModifyVpcEndpointServiceConfiguration for details on how to use this API operation.
  17492. //
  17493. // The context must be non-nil and will be used for request cancellation. If
  17494. // the context is nil a panic will occur. In the future the SDK may create
  17495. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17496. // for more information on using Contexts.
  17497. func (c *EC2) ModifyVpcEndpointServiceConfigurationWithContext(ctx aws.Context, input *ModifyVpcEndpointServiceConfigurationInput, opts ...request.Option) (*ModifyVpcEndpointServiceConfigurationOutput, error) {
  17498. req, out := c.ModifyVpcEndpointServiceConfigurationRequest(input)
  17499. req.SetContext(ctx)
  17500. req.ApplyOptions(opts...)
  17501. return out, req.Send()
  17502. }
  17503. const opModifyVpcEndpointServicePermissions = "ModifyVpcEndpointServicePermissions"
  17504. // ModifyVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the
  17505. // client's request for the ModifyVpcEndpointServicePermissions operation. The "output" return
  17506. // value will be populated with the request's response once the request complets
  17507. // successfuly.
  17508. //
  17509. // Use "Send" method on the returned Request to send the API call to the service.
  17510. // the "output" return value is not valid until after Send returns without error.
  17511. //
  17512. // See ModifyVpcEndpointServicePermissions for more information on using the ModifyVpcEndpointServicePermissions
  17513. // API call, and error handling.
  17514. //
  17515. // This method is useful when you want to inject custom logic or configuration
  17516. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17517. //
  17518. //
  17519. // // Example sending a request using the ModifyVpcEndpointServicePermissionsRequest method.
  17520. // req, resp := client.ModifyVpcEndpointServicePermissionsRequest(params)
  17521. //
  17522. // err := req.Send()
  17523. // if err == nil { // resp is now filled
  17524. // fmt.Println(resp)
  17525. // }
  17526. //
  17527. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions
  17528. func (c *EC2) ModifyVpcEndpointServicePermissionsRequest(input *ModifyVpcEndpointServicePermissionsInput) (req *request.Request, output *ModifyVpcEndpointServicePermissionsOutput) {
  17529. op := &request.Operation{
  17530. Name: opModifyVpcEndpointServicePermissions,
  17531. HTTPMethod: "POST",
  17532. HTTPPath: "/",
  17533. }
  17534. if input == nil {
  17535. input = &ModifyVpcEndpointServicePermissionsInput{}
  17536. }
  17537. output = &ModifyVpcEndpointServicePermissionsOutput{}
  17538. req = c.newRequest(op, input, output)
  17539. return
  17540. }
  17541. // ModifyVpcEndpointServicePermissions API operation for Amazon Elastic Compute Cloud.
  17542. //
  17543. // Modifies the permissions for your VPC endpoint service (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/endpoint-service.html).
  17544. // You can add or remove permissions for service consumers (IAM users, IAM roles,
  17545. // and AWS accounts) to connect to your endpoint service.
  17546. //
  17547. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17548. // with awserr.Error's Code and Message methods to get detailed information about
  17549. // the error.
  17550. //
  17551. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17552. // API operation ModifyVpcEndpointServicePermissions for usage and error information.
  17553. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissions
  17554. func (c *EC2) ModifyVpcEndpointServicePermissions(input *ModifyVpcEndpointServicePermissionsInput) (*ModifyVpcEndpointServicePermissionsOutput, error) {
  17555. req, out := c.ModifyVpcEndpointServicePermissionsRequest(input)
  17556. return out, req.Send()
  17557. }
  17558. // ModifyVpcEndpointServicePermissionsWithContext is the same as ModifyVpcEndpointServicePermissions with the addition of
  17559. // the ability to pass a context and additional request options.
  17560. //
  17561. // See ModifyVpcEndpointServicePermissions for details on how to use this API operation.
  17562. //
  17563. // The context must be non-nil and will be used for request cancellation. If
  17564. // the context is nil a panic will occur. In the future the SDK may create
  17565. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17566. // for more information on using Contexts.
  17567. func (c *EC2) ModifyVpcEndpointServicePermissionsWithContext(ctx aws.Context, input *ModifyVpcEndpointServicePermissionsInput, opts ...request.Option) (*ModifyVpcEndpointServicePermissionsOutput, error) {
  17568. req, out := c.ModifyVpcEndpointServicePermissionsRequest(input)
  17569. req.SetContext(ctx)
  17570. req.ApplyOptions(opts...)
  17571. return out, req.Send()
  17572. }
  17573. const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions"
  17574. // ModifyVpcPeeringConnectionOptionsRequest generates a "aws/request.Request" representing the
  17575. // client's request for the ModifyVpcPeeringConnectionOptions operation. The "output" return
  17576. // value will be populated with the request's response once the request complets
  17577. // successfuly.
  17578. //
  17579. // Use "Send" method on the returned Request to send the API call to the service.
  17580. // the "output" return value is not valid until after Send returns without error.
  17581. //
  17582. // See ModifyVpcPeeringConnectionOptions for more information on using the ModifyVpcPeeringConnectionOptions
  17583. // API call, and error handling.
  17584. //
  17585. // This method is useful when you want to inject custom logic or configuration
  17586. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17587. //
  17588. //
  17589. // // Example sending a request using the ModifyVpcPeeringConnectionOptionsRequest method.
  17590. // req, resp := client.ModifyVpcPeeringConnectionOptionsRequest(params)
  17591. //
  17592. // err := req.Send()
  17593. // if err == nil { // resp is now filled
  17594. // fmt.Println(resp)
  17595. // }
  17596. //
  17597. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  17598. func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) (req *request.Request, output *ModifyVpcPeeringConnectionOptionsOutput) {
  17599. op := &request.Operation{
  17600. Name: opModifyVpcPeeringConnectionOptions,
  17601. HTTPMethod: "POST",
  17602. HTTPPath: "/",
  17603. }
  17604. if input == nil {
  17605. input = &ModifyVpcPeeringConnectionOptionsInput{}
  17606. }
  17607. output = &ModifyVpcPeeringConnectionOptionsOutput{}
  17608. req = c.newRequest(op, input, output)
  17609. return
  17610. }
  17611. // ModifyVpcPeeringConnectionOptions API operation for Amazon Elastic Compute Cloud.
  17612. //
  17613. // Modifies the VPC peering connection options on one side of a VPC peering
  17614. // connection. You can do the following:
  17615. //
  17616. // * Enable/disable communication over the peering connection between an
  17617. // EC2-Classic instance that's linked to your VPC (using ClassicLink) and
  17618. // instances in the peer VPC.
  17619. //
  17620. // * Enable/disable communication over the peering connection between instances
  17621. // in your VPC and an EC2-Classic instance that's linked to the peer VPC.
  17622. //
  17623. // * Enable/disable a local VPC to resolve public DNS hostnames to private
  17624. // IP addresses when queried from instances in the peer VPC.
  17625. //
  17626. // If the peered VPCs are in different accounts, each owner must initiate a
  17627. // separate request to modify the peering connection options, depending on whether
  17628. // their VPC was the requester or accepter for the VPC peering connection. If
  17629. // the peered VPCs are in the same account, you can modify the requester and
  17630. // accepter options in the same request. To confirm which VPC is the accepter
  17631. // and requester for a VPC peering connection, use the DescribeVpcPeeringConnections
  17632. // command.
  17633. //
  17634. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17635. // with awserr.Error's Code and Message methods to get detailed information about
  17636. // the error.
  17637. //
  17638. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17639. // API operation ModifyVpcPeeringConnectionOptions for usage and error information.
  17640. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptions
  17641. func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  17642. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  17643. return out, req.Send()
  17644. }
  17645. // ModifyVpcPeeringConnectionOptionsWithContext is the same as ModifyVpcPeeringConnectionOptions with the addition of
  17646. // the ability to pass a context and additional request options.
  17647. //
  17648. // See ModifyVpcPeeringConnectionOptions for details on how to use this API operation.
  17649. //
  17650. // The context must be non-nil and will be used for request cancellation. If
  17651. // the context is nil a panic will occur. In the future the SDK may create
  17652. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17653. // for more information on using Contexts.
  17654. func (c *EC2) ModifyVpcPeeringConnectionOptionsWithContext(ctx aws.Context, input *ModifyVpcPeeringConnectionOptionsInput, opts ...request.Option) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  17655. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  17656. req.SetContext(ctx)
  17657. req.ApplyOptions(opts...)
  17658. return out, req.Send()
  17659. }
  17660. const opModifyVpcTenancy = "ModifyVpcTenancy"
  17661. // ModifyVpcTenancyRequest generates a "aws/request.Request" representing the
  17662. // client's request for the ModifyVpcTenancy operation. The "output" return
  17663. // value will be populated with the request's response once the request complets
  17664. // successfuly.
  17665. //
  17666. // Use "Send" method on the returned Request to send the API call to the service.
  17667. // the "output" return value is not valid until after Send returns without error.
  17668. //
  17669. // See ModifyVpcTenancy for more information on using the ModifyVpcTenancy
  17670. // API call, and error handling.
  17671. //
  17672. // This method is useful when you want to inject custom logic or configuration
  17673. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17674. //
  17675. //
  17676. // // Example sending a request using the ModifyVpcTenancyRequest method.
  17677. // req, resp := client.ModifyVpcTenancyRequest(params)
  17678. //
  17679. // err := req.Send()
  17680. // if err == nil { // resp is now filled
  17681. // fmt.Println(resp)
  17682. // }
  17683. //
  17684. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy
  17685. func (c *EC2) ModifyVpcTenancyRequest(input *ModifyVpcTenancyInput) (req *request.Request, output *ModifyVpcTenancyOutput) {
  17686. op := &request.Operation{
  17687. Name: opModifyVpcTenancy,
  17688. HTTPMethod: "POST",
  17689. HTTPPath: "/",
  17690. }
  17691. if input == nil {
  17692. input = &ModifyVpcTenancyInput{}
  17693. }
  17694. output = &ModifyVpcTenancyOutput{}
  17695. req = c.newRequest(op, input, output)
  17696. return
  17697. }
  17698. // ModifyVpcTenancy API operation for Amazon Elastic Compute Cloud.
  17699. //
  17700. // Modifies the instance tenancy attribute of the specified VPC. You can change
  17701. // the instance tenancy attribute of a VPC to default only. You cannot change
  17702. // the instance tenancy attribute to dedicated.
  17703. //
  17704. // After you modify the tenancy of the VPC, any new instances that you launch
  17705. // into the VPC have a tenancy of default, unless you specify otherwise during
  17706. // launch. The tenancy of any existing instances in the VPC is not affected.
  17707. //
  17708. // For more information about Dedicated Instances, see Dedicated Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html)
  17709. // in the Amazon Elastic Compute Cloud User Guide.
  17710. //
  17711. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17712. // with awserr.Error's Code and Message methods to get detailed information about
  17713. // the error.
  17714. //
  17715. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17716. // API operation ModifyVpcTenancy for usage and error information.
  17717. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancy
  17718. func (c *EC2) ModifyVpcTenancy(input *ModifyVpcTenancyInput) (*ModifyVpcTenancyOutput, error) {
  17719. req, out := c.ModifyVpcTenancyRequest(input)
  17720. return out, req.Send()
  17721. }
  17722. // ModifyVpcTenancyWithContext is the same as ModifyVpcTenancy with the addition of
  17723. // the ability to pass a context and additional request options.
  17724. //
  17725. // See ModifyVpcTenancy for details on how to use this API operation.
  17726. //
  17727. // The context must be non-nil and will be used for request cancellation. If
  17728. // the context is nil a panic will occur. In the future the SDK may create
  17729. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17730. // for more information on using Contexts.
  17731. func (c *EC2) ModifyVpcTenancyWithContext(ctx aws.Context, input *ModifyVpcTenancyInput, opts ...request.Option) (*ModifyVpcTenancyOutput, error) {
  17732. req, out := c.ModifyVpcTenancyRequest(input)
  17733. req.SetContext(ctx)
  17734. req.ApplyOptions(opts...)
  17735. return out, req.Send()
  17736. }
  17737. const opMonitorInstances = "MonitorInstances"
  17738. // MonitorInstancesRequest generates a "aws/request.Request" representing the
  17739. // client's request for the MonitorInstances operation. The "output" return
  17740. // value will be populated with the request's response once the request complets
  17741. // successfuly.
  17742. //
  17743. // Use "Send" method on the returned Request to send the API call to the service.
  17744. // the "output" return value is not valid until after Send returns without error.
  17745. //
  17746. // See MonitorInstances for more information on using the MonitorInstances
  17747. // API call, and error handling.
  17748. //
  17749. // This method is useful when you want to inject custom logic or configuration
  17750. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17751. //
  17752. //
  17753. // // Example sending a request using the MonitorInstancesRequest method.
  17754. // req, resp := client.MonitorInstancesRequest(params)
  17755. //
  17756. // err := req.Send()
  17757. // if err == nil { // resp is now filled
  17758. // fmt.Println(resp)
  17759. // }
  17760. //
  17761. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  17762. func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *request.Request, output *MonitorInstancesOutput) {
  17763. op := &request.Operation{
  17764. Name: opMonitorInstances,
  17765. HTTPMethod: "POST",
  17766. HTTPPath: "/",
  17767. }
  17768. if input == nil {
  17769. input = &MonitorInstancesInput{}
  17770. }
  17771. output = &MonitorInstancesOutput{}
  17772. req = c.newRequest(op, input, output)
  17773. return
  17774. }
  17775. // MonitorInstances API operation for Amazon Elastic Compute Cloud.
  17776. //
  17777. // Enables detailed monitoring for a running instance. Otherwise, basic monitoring
  17778. // is enabled. For more information, see Monitoring Your Instances and Volumes
  17779. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  17780. // in the Amazon Elastic Compute Cloud User Guide.
  17781. //
  17782. // To disable detailed monitoring, see .
  17783. //
  17784. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17785. // with awserr.Error's Code and Message methods to get detailed information about
  17786. // the error.
  17787. //
  17788. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17789. // API operation MonitorInstances for usage and error information.
  17790. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstances
  17791. func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) {
  17792. req, out := c.MonitorInstancesRequest(input)
  17793. return out, req.Send()
  17794. }
  17795. // MonitorInstancesWithContext is the same as MonitorInstances with the addition of
  17796. // the ability to pass a context and additional request options.
  17797. //
  17798. // See MonitorInstances for details on how to use this API operation.
  17799. //
  17800. // The context must be non-nil and will be used for request cancellation. If
  17801. // the context is nil a panic will occur. In the future the SDK may create
  17802. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17803. // for more information on using Contexts.
  17804. func (c *EC2) MonitorInstancesWithContext(ctx aws.Context, input *MonitorInstancesInput, opts ...request.Option) (*MonitorInstancesOutput, error) {
  17805. req, out := c.MonitorInstancesRequest(input)
  17806. req.SetContext(ctx)
  17807. req.ApplyOptions(opts...)
  17808. return out, req.Send()
  17809. }
  17810. const opMoveAddressToVpc = "MoveAddressToVpc"
  17811. // MoveAddressToVpcRequest generates a "aws/request.Request" representing the
  17812. // client's request for the MoveAddressToVpc operation. The "output" return
  17813. // value will be populated with the request's response once the request complets
  17814. // successfuly.
  17815. //
  17816. // Use "Send" method on the returned Request to send the API call to the service.
  17817. // the "output" return value is not valid until after Send returns without error.
  17818. //
  17819. // See MoveAddressToVpc for more information on using the MoveAddressToVpc
  17820. // API call, and error handling.
  17821. //
  17822. // This method is useful when you want to inject custom logic or configuration
  17823. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17824. //
  17825. //
  17826. // // Example sending a request using the MoveAddressToVpcRequest method.
  17827. // req, resp := client.MoveAddressToVpcRequest(params)
  17828. //
  17829. // err := req.Send()
  17830. // if err == nil { // resp is now filled
  17831. // fmt.Println(resp)
  17832. // }
  17833. //
  17834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  17835. func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *request.Request, output *MoveAddressToVpcOutput) {
  17836. op := &request.Operation{
  17837. Name: opMoveAddressToVpc,
  17838. HTTPMethod: "POST",
  17839. HTTPPath: "/",
  17840. }
  17841. if input == nil {
  17842. input = &MoveAddressToVpcInput{}
  17843. }
  17844. output = &MoveAddressToVpcOutput{}
  17845. req = c.newRequest(op, input, output)
  17846. return
  17847. }
  17848. // MoveAddressToVpc API operation for Amazon Elastic Compute Cloud.
  17849. //
  17850. // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC
  17851. // platform. The Elastic IP address must be allocated to your account for more
  17852. // than 24 hours, and it must not be associated with an instance. After the
  17853. // Elastic IP address is moved, it is no longer available for use in the EC2-Classic
  17854. // platform, unless you move it back using the RestoreAddressToClassic request.
  17855. // You cannot move an Elastic IP address that was originally allocated for use
  17856. // in the EC2-VPC platform to the EC2-Classic platform.
  17857. //
  17858. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17859. // with awserr.Error's Code and Message methods to get detailed information about
  17860. // the error.
  17861. //
  17862. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17863. // API operation MoveAddressToVpc for usage and error information.
  17864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpc
  17865. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) {
  17866. req, out := c.MoveAddressToVpcRequest(input)
  17867. return out, req.Send()
  17868. }
  17869. // MoveAddressToVpcWithContext is the same as MoveAddressToVpc with the addition of
  17870. // the ability to pass a context and additional request options.
  17871. //
  17872. // See MoveAddressToVpc for details on how to use this API operation.
  17873. //
  17874. // The context must be non-nil and will be used for request cancellation. If
  17875. // the context is nil a panic will occur. In the future the SDK may create
  17876. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17877. // for more information on using Contexts.
  17878. func (c *EC2) MoveAddressToVpcWithContext(ctx aws.Context, input *MoveAddressToVpcInput, opts ...request.Option) (*MoveAddressToVpcOutput, error) {
  17879. req, out := c.MoveAddressToVpcRequest(input)
  17880. req.SetContext(ctx)
  17881. req.ApplyOptions(opts...)
  17882. return out, req.Send()
  17883. }
  17884. const opPurchaseHostReservation = "PurchaseHostReservation"
  17885. // PurchaseHostReservationRequest generates a "aws/request.Request" representing the
  17886. // client's request for the PurchaseHostReservation operation. The "output" return
  17887. // value will be populated with the request's response once the request complets
  17888. // successfuly.
  17889. //
  17890. // Use "Send" method on the returned Request to send the API call to the service.
  17891. // the "output" return value is not valid until after Send returns without error.
  17892. //
  17893. // See PurchaseHostReservation for more information on using the PurchaseHostReservation
  17894. // API call, and error handling.
  17895. //
  17896. // This method is useful when you want to inject custom logic or configuration
  17897. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17898. //
  17899. //
  17900. // // Example sending a request using the PurchaseHostReservationRequest method.
  17901. // req, resp := client.PurchaseHostReservationRequest(params)
  17902. //
  17903. // err := req.Send()
  17904. // if err == nil { // resp is now filled
  17905. // fmt.Println(resp)
  17906. // }
  17907. //
  17908. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  17909. func (c *EC2) PurchaseHostReservationRequest(input *PurchaseHostReservationInput) (req *request.Request, output *PurchaseHostReservationOutput) {
  17910. op := &request.Operation{
  17911. Name: opPurchaseHostReservation,
  17912. HTTPMethod: "POST",
  17913. HTTPPath: "/",
  17914. }
  17915. if input == nil {
  17916. input = &PurchaseHostReservationInput{}
  17917. }
  17918. output = &PurchaseHostReservationOutput{}
  17919. req = c.newRequest(op, input, output)
  17920. return
  17921. }
  17922. // PurchaseHostReservation API operation for Amazon Elastic Compute Cloud.
  17923. //
  17924. // Purchase a reservation with configurations that match those of your Dedicated
  17925. // Host. You must have active Dedicated Hosts in your account before you purchase
  17926. // a reservation. This action results in the specified reservation being purchased
  17927. // and charged to your account.
  17928. //
  17929. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  17930. // with awserr.Error's Code and Message methods to get detailed information about
  17931. // the error.
  17932. //
  17933. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  17934. // API operation PurchaseHostReservation for usage and error information.
  17935. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservation
  17936. func (c *EC2) PurchaseHostReservation(input *PurchaseHostReservationInput) (*PurchaseHostReservationOutput, error) {
  17937. req, out := c.PurchaseHostReservationRequest(input)
  17938. return out, req.Send()
  17939. }
  17940. // PurchaseHostReservationWithContext is the same as PurchaseHostReservation with the addition of
  17941. // the ability to pass a context and additional request options.
  17942. //
  17943. // See PurchaseHostReservation for details on how to use this API operation.
  17944. //
  17945. // The context must be non-nil and will be used for request cancellation. If
  17946. // the context is nil a panic will occur. In the future the SDK may create
  17947. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  17948. // for more information on using Contexts.
  17949. func (c *EC2) PurchaseHostReservationWithContext(ctx aws.Context, input *PurchaseHostReservationInput, opts ...request.Option) (*PurchaseHostReservationOutput, error) {
  17950. req, out := c.PurchaseHostReservationRequest(input)
  17951. req.SetContext(ctx)
  17952. req.ApplyOptions(opts...)
  17953. return out, req.Send()
  17954. }
  17955. const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering"
  17956. // PurchaseReservedInstancesOfferingRequest generates a "aws/request.Request" representing the
  17957. // client's request for the PurchaseReservedInstancesOffering operation. The "output" return
  17958. // value will be populated with the request's response once the request complets
  17959. // successfuly.
  17960. //
  17961. // Use "Send" method on the returned Request to send the API call to the service.
  17962. // the "output" return value is not valid until after Send returns without error.
  17963. //
  17964. // See PurchaseReservedInstancesOffering for more information on using the PurchaseReservedInstancesOffering
  17965. // API call, and error handling.
  17966. //
  17967. // This method is useful when you want to inject custom logic or configuration
  17968. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  17969. //
  17970. //
  17971. // // Example sending a request using the PurchaseReservedInstancesOfferingRequest method.
  17972. // req, resp := client.PurchaseReservedInstancesOfferingRequest(params)
  17973. //
  17974. // err := req.Send()
  17975. // if err == nil { // resp is now filled
  17976. // fmt.Println(resp)
  17977. // }
  17978. //
  17979. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  17980. func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedInstancesOfferingInput) (req *request.Request, output *PurchaseReservedInstancesOfferingOutput) {
  17981. op := &request.Operation{
  17982. Name: opPurchaseReservedInstancesOffering,
  17983. HTTPMethod: "POST",
  17984. HTTPPath: "/",
  17985. }
  17986. if input == nil {
  17987. input = &PurchaseReservedInstancesOfferingInput{}
  17988. }
  17989. output = &PurchaseReservedInstancesOfferingOutput{}
  17990. req = c.newRequest(op, input, output)
  17991. return
  17992. }
  17993. // PurchaseReservedInstancesOffering API operation for Amazon Elastic Compute Cloud.
  17994. //
  17995. // Purchases a Reserved Instance for use with your account. With Reserved Instances,
  17996. // you pay a lower hourly rate compared to On-Demand instance pricing.
  17997. //
  17998. // Use DescribeReservedInstancesOfferings to get a list of Reserved Instance
  17999. // offerings that match your specifications. After you've purchased a Reserved
  18000. // Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
  18001. //
  18002. // For more information, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  18003. // and Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  18004. // in the Amazon Elastic Compute Cloud User Guide.
  18005. //
  18006. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18007. // with awserr.Error's Code and Message methods to get detailed information about
  18008. // the error.
  18009. //
  18010. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18011. // API operation PurchaseReservedInstancesOffering for usage and error information.
  18012. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOffering
  18013. func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) {
  18014. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  18015. return out, req.Send()
  18016. }
  18017. // PurchaseReservedInstancesOfferingWithContext is the same as PurchaseReservedInstancesOffering with the addition of
  18018. // the ability to pass a context and additional request options.
  18019. //
  18020. // See PurchaseReservedInstancesOffering for details on how to use this API operation.
  18021. //
  18022. // The context must be non-nil and will be used for request cancellation. If
  18023. // the context is nil a panic will occur. In the future the SDK may create
  18024. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18025. // for more information on using Contexts.
  18026. func (c *EC2) PurchaseReservedInstancesOfferingWithContext(ctx aws.Context, input *PurchaseReservedInstancesOfferingInput, opts ...request.Option) (*PurchaseReservedInstancesOfferingOutput, error) {
  18027. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  18028. req.SetContext(ctx)
  18029. req.ApplyOptions(opts...)
  18030. return out, req.Send()
  18031. }
  18032. const opPurchaseScheduledInstances = "PurchaseScheduledInstances"
  18033. // PurchaseScheduledInstancesRequest generates a "aws/request.Request" representing the
  18034. // client's request for the PurchaseScheduledInstances operation. The "output" return
  18035. // value will be populated with the request's response once the request complets
  18036. // successfuly.
  18037. //
  18038. // Use "Send" method on the returned Request to send the API call to the service.
  18039. // the "output" return value is not valid until after Send returns without error.
  18040. //
  18041. // See PurchaseScheduledInstances for more information on using the PurchaseScheduledInstances
  18042. // API call, and error handling.
  18043. //
  18044. // This method is useful when you want to inject custom logic or configuration
  18045. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18046. //
  18047. //
  18048. // // Example sending a request using the PurchaseScheduledInstancesRequest method.
  18049. // req, resp := client.PurchaseScheduledInstancesRequest(params)
  18050. //
  18051. // err := req.Send()
  18052. // if err == nil { // resp is now filled
  18053. // fmt.Println(resp)
  18054. // }
  18055. //
  18056. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  18057. func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) (req *request.Request, output *PurchaseScheduledInstancesOutput) {
  18058. op := &request.Operation{
  18059. Name: opPurchaseScheduledInstances,
  18060. HTTPMethod: "POST",
  18061. HTTPPath: "/",
  18062. }
  18063. if input == nil {
  18064. input = &PurchaseScheduledInstancesInput{}
  18065. }
  18066. output = &PurchaseScheduledInstancesOutput{}
  18067. req = c.newRequest(op, input, output)
  18068. return
  18069. }
  18070. // PurchaseScheduledInstances API operation for Amazon Elastic Compute Cloud.
  18071. //
  18072. // Purchases one or more Scheduled Instances with the specified schedule.
  18073. //
  18074. // Scheduled Instances enable you to purchase Amazon EC2 compute capacity by
  18075. // the hour for a one-year term. Before you can purchase a Scheduled Instance,
  18076. // you must call DescribeScheduledInstanceAvailability to check for available
  18077. // schedules and obtain a purchase token. After you purchase a Scheduled Instance,
  18078. // you must call RunScheduledInstances during each scheduled time period.
  18079. //
  18080. // After you purchase a Scheduled Instance, you can't cancel, modify, or resell
  18081. // your purchase.
  18082. //
  18083. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18084. // with awserr.Error's Code and Message methods to get detailed information about
  18085. // the error.
  18086. //
  18087. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18088. // API operation PurchaseScheduledInstances for usage and error information.
  18089. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstances
  18090. func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) {
  18091. req, out := c.PurchaseScheduledInstancesRequest(input)
  18092. return out, req.Send()
  18093. }
  18094. // PurchaseScheduledInstancesWithContext is the same as PurchaseScheduledInstances with the addition of
  18095. // the ability to pass a context and additional request options.
  18096. //
  18097. // See PurchaseScheduledInstances for details on how to use this API operation.
  18098. //
  18099. // The context must be non-nil and will be used for request cancellation. If
  18100. // the context is nil a panic will occur. In the future the SDK may create
  18101. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18102. // for more information on using Contexts.
  18103. func (c *EC2) PurchaseScheduledInstancesWithContext(ctx aws.Context, input *PurchaseScheduledInstancesInput, opts ...request.Option) (*PurchaseScheduledInstancesOutput, error) {
  18104. req, out := c.PurchaseScheduledInstancesRequest(input)
  18105. req.SetContext(ctx)
  18106. req.ApplyOptions(opts...)
  18107. return out, req.Send()
  18108. }
  18109. const opRebootInstances = "RebootInstances"
  18110. // RebootInstancesRequest generates a "aws/request.Request" representing the
  18111. // client's request for the RebootInstances operation. The "output" return
  18112. // value will be populated with the request's response once the request complets
  18113. // successfuly.
  18114. //
  18115. // Use "Send" method on the returned Request to send the API call to the service.
  18116. // the "output" return value is not valid until after Send returns without error.
  18117. //
  18118. // See RebootInstances for more information on using the RebootInstances
  18119. // API call, and error handling.
  18120. //
  18121. // This method is useful when you want to inject custom logic or configuration
  18122. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18123. //
  18124. //
  18125. // // Example sending a request using the RebootInstancesRequest method.
  18126. // req, resp := client.RebootInstancesRequest(params)
  18127. //
  18128. // err := req.Send()
  18129. // if err == nil { // resp is now filled
  18130. // fmt.Println(resp)
  18131. // }
  18132. //
  18133. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  18134. func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput) {
  18135. op := &request.Operation{
  18136. Name: opRebootInstances,
  18137. HTTPMethod: "POST",
  18138. HTTPPath: "/",
  18139. }
  18140. if input == nil {
  18141. input = &RebootInstancesInput{}
  18142. }
  18143. output = &RebootInstancesOutput{}
  18144. req = c.newRequest(op, input, output)
  18145. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  18146. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  18147. return
  18148. }
  18149. // RebootInstances API operation for Amazon Elastic Compute Cloud.
  18150. //
  18151. // Requests a reboot of one or more instances. This operation is asynchronous;
  18152. // it only queues a request to reboot the specified instances. The operation
  18153. // succeeds if the instances are valid and belong to you. Requests to reboot
  18154. // terminated instances are ignored.
  18155. //
  18156. // If an instance does not cleanly shut down within four minutes, Amazon EC2
  18157. // performs a hard reboot.
  18158. //
  18159. // For more information about troubleshooting, see Getting Console Output and
  18160. // Rebooting Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html)
  18161. // in the Amazon Elastic Compute Cloud User Guide.
  18162. //
  18163. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18164. // with awserr.Error's Code and Message methods to get detailed information about
  18165. // the error.
  18166. //
  18167. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18168. // API operation RebootInstances for usage and error information.
  18169. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstances
  18170. func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) {
  18171. req, out := c.RebootInstancesRequest(input)
  18172. return out, req.Send()
  18173. }
  18174. // RebootInstancesWithContext is the same as RebootInstances with the addition of
  18175. // the ability to pass a context and additional request options.
  18176. //
  18177. // See RebootInstances for details on how to use this API operation.
  18178. //
  18179. // The context must be non-nil and will be used for request cancellation. If
  18180. // the context is nil a panic will occur. In the future the SDK may create
  18181. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18182. // for more information on using Contexts.
  18183. func (c *EC2) RebootInstancesWithContext(ctx aws.Context, input *RebootInstancesInput, opts ...request.Option) (*RebootInstancesOutput, error) {
  18184. req, out := c.RebootInstancesRequest(input)
  18185. req.SetContext(ctx)
  18186. req.ApplyOptions(opts...)
  18187. return out, req.Send()
  18188. }
  18189. const opRegisterImage = "RegisterImage"
  18190. // RegisterImageRequest generates a "aws/request.Request" representing the
  18191. // client's request for the RegisterImage operation. The "output" return
  18192. // value will be populated with the request's response once the request complets
  18193. // successfuly.
  18194. //
  18195. // Use "Send" method on the returned Request to send the API call to the service.
  18196. // the "output" return value is not valid until after Send returns without error.
  18197. //
  18198. // See RegisterImage for more information on using the RegisterImage
  18199. // API call, and error handling.
  18200. //
  18201. // This method is useful when you want to inject custom logic or configuration
  18202. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18203. //
  18204. //
  18205. // // Example sending a request using the RegisterImageRequest method.
  18206. // req, resp := client.RegisterImageRequest(params)
  18207. //
  18208. // err := req.Send()
  18209. // if err == nil { // resp is now filled
  18210. // fmt.Println(resp)
  18211. // }
  18212. //
  18213. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  18214. func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Request, output *RegisterImageOutput) {
  18215. op := &request.Operation{
  18216. Name: opRegisterImage,
  18217. HTTPMethod: "POST",
  18218. HTTPPath: "/",
  18219. }
  18220. if input == nil {
  18221. input = &RegisterImageInput{}
  18222. }
  18223. output = &RegisterImageOutput{}
  18224. req = c.newRequest(op, input, output)
  18225. return
  18226. }
  18227. // RegisterImage API operation for Amazon Elastic Compute Cloud.
  18228. //
  18229. // Registers an AMI. When you're creating an AMI, this is the final step you
  18230. // must complete before you can launch an instance from the AMI. For more information
  18231. // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html)
  18232. // in the Amazon Elastic Compute Cloud User Guide.
  18233. //
  18234. // For Amazon EBS-backed instances, CreateImage creates and registers the AMI
  18235. // in a single request, so you don't have to register the AMI yourself.
  18236. //
  18237. // You can also use RegisterImage to create an Amazon EBS-backed Linux AMI from
  18238. // a snapshot of a root device volume. You specify the snapshot using the block
  18239. // device mapping. For more information, see Launching a Linux Instance from
  18240. // a Backup (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-snapshot.html)
  18241. // in the Amazon Elastic Compute Cloud User Guide.
  18242. //
  18243. // You can't register an image where a secondary (non-root) snapshot has AWS
  18244. // Marketplace product codes.
  18245. //
  18246. // Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE
  18247. // Linux Enterprise Server (SLES), use the EC2 billing product code associated
  18248. // with an AMI to verify the subscription status for package updates. Creating
  18249. // an AMI from an EBS snapshot does not maintain this billing code, and subsequent
  18250. // instances launched from such an AMI will not be able to connect to package
  18251. // update infrastructure. To create an AMI that must retain billing codes, see
  18252. // CreateImage.
  18253. //
  18254. // If needed, you can deregister an AMI at any time. Any modifications you make
  18255. // to an AMI backed by an instance store volume invalidates its registration.
  18256. // If you make changes to an image, deregister the previous image and register
  18257. // the new image.
  18258. //
  18259. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18260. // with awserr.Error's Code and Message methods to get detailed information about
  18261. // the error.
  18262. //
  18263. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18264. // API operation RegisterImage for usage and error information.
  18265. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImage
  18266. func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) {
  18267. req, out := c.RegisterImageRequest(input)
  18268. return out, req.Send()
  18269. }
  18270. // RegisterImageWithContext is the same as RegisterImage with the addition of
  18271. // the ability to pass a context and additional request options.
  18272. //
  18273. // See RegisterImage for details on how to use this API operation.
  18274. //
  18275. // The context must be non-nil and will be used for request cancellation. If
  18276. // the context is nil a panic will occur. In the future the SDK may create
  18277. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18278. // for more information on using Contexts.
  18279. func (c *EC2) RegisterImageWithContext(ctx aws.Context, input *RegisterImageInput, opts ...request.Option) (*RegisterImageOutput, error) {
  18280. req, out := c.RegisterImageRequest(input)
  18281. req.SetContext(ctx)
  18282. req.ApplyOptions(opts...)
  18283. return out, req.Send()
  18284. }
  18285. const opRejectVpcEndpointConnections = "RejectVpcEndpointConnections"
  18286. // RejectVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the
  18287. // client's request for the RejectVpcEndpointConnections operation. The "output" return
  18288. // value will be populated with the request's response once the request complets
  18289. // successfuly.
  18290. //
  18291. // Use "Send" method on the returned Request to send the API call to the service.
  18292. // the "output" return value is not valid until after Send returns without error.
  18293. //
  18294. // See RejectVpcEndpointConnections for more information on using the RejectVpcEndpointConnections
  18295. // API call, and error handling.
  18296. //
  18297. // This method is useful when you want to inject custom logic or configuration
  18298. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18299. //
  18300. //
  18301. // // Example sending a request using the RejectVpcEndpointConnectionsRequest method.
  18302. // req, resp := client.RejectVpcEndpointConnectionsRequest(params)
  18303. //
  18304. // err := req.Send()
  18305. // if err == nil { // resp is now filled
  18306. // fmt.Println(resp)
  18307. // }
  18308. //
  18309. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections
  18310. func (c *EC2) RejectVpcEndpointConnectionsRequest(input *RejectVpcEndpointConnectionsInput) (req *request.Request, output *RejectVpcEndpointConnectionsOutput) {
  18311. op := &request.Operation{
  18312. Name: opRejectVpcEndpointConnections,
  18313. HTTPMethod: "POST",
  18314. HTTPPath: "/",
  18315. }
  18316. if input == nil {
  18317. input = &RejectVpcEndpointConnectionsInput{}
  18318. }
  18319. output = &RejectVpcEndpointConnectionsOutput{}
  18320. req = c.newRequest(op, input, output)
  18321. return
  18322. }
  18323. // RejectVpcEndpointConnections API operation for Amazon Elastic Compute Cloud.
  18324. //
  18325. // Rejects one or more VPC endpoint connection requests to your VPC endpoint
  18326. // service.
  18327. //
  18328. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18329. // with awserr.Error's Code and Message methods to get detailed information about
  18330. // the error.
  18331. //
  18332. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18333. // API operation RejectVpcEndpointConnections for usage and error information.
  18334. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnections
  18335. func (c *EC2) RejectVpcEndpointConnections(input *RejectVpcEndpointConnectionsInput) (*RejectVpcEndpointConnectionsOutput, error) {
  18336. req, out := c.RejectVpcEndpointConnectionsRequest(input)
  18337. return out, req.Send()
  18338. }
  18339. // RejectVpcEndpointConnectionsWithContext is the same as RejectVpcEndpointConnections with the addition of
  18340. // the ability to pass a context and additional request options.
  18341. //
  18342. // See RejectVpcEndpointConnections for details on how to use this API operation.
  18343. //
  18344. // The context must be non-nil and will be used for request cancellation. If
  18345. // the context is nil a panic will occur. In the future the SDK may create
  18346. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18347. // for more information on using Contexts.
  18348. func (c *EC2) RejectVpcEndpointConnectionsWithContext(ctx aws.Context, input *RejectVpcEndpointConnectionsInput, opts ...request.Option) (*RejectVpcEndpointConnectionsOutput, error) {
  18349. req, out := c.RejectVpcEndpointConnectionsRequest(input)
  18350. req.SetContext(ctx)
  18351. req.ApplyOptions(opts...)
  18352. return out, req.Send()
  18353. }
  18354. const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection"
  18355. // RejectVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  18356. // client's request for the RejectVpcPeeringConnection operation. The "output" return
  18357. // value will be populated with the request's response once the request complets
  18358. // successfuly.
  18359. //
  18360. // Use "Send" method on the returned Request to send the API call to the service.
  18361. // the "output" return value is not valid until after Send returns without error.
  18362. //
  18363. // See RejectVpcPeeringConnection for more information on using the RejectVpcPeeringConnection
  18364. // API call, and error handling.
  18365. //
  18366. // This method is useful when you want to inject custom logic or configuration
  18367. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18368. //
  18369. //
  18370. // // Example sending a request using the RejectVpcPeeringConnectionRequest method.
  18371. // req, resp := client.RejectVpcPeeringConnectionRequest(params)
  18372. //
  18373. // err := req.Send()
  18374. // if err == nil { // resp is now filled
  18375. // fmt.Println(resp)
  18376. // }
  18377. //
  18378. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  18379. func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectionInput) (req *request.Request, output *RejectVpcPeeringConnectionOutput) {
  18380. op := &request.Operation{
  18381. Name: opRejectVpcPeeringConnection,
  18382. HTTPMethod: "POST",
  18383. HTTPPath: "/",
  18384. }
  18385. if input == nil {
  18386. input = &RejectVpcPeeringConnectionInput{}
  18387. }
  18388. output = &RejectVpcPeeringConnectionOutput{}
  18389. req = c.newRequest(op, input, output)
  18390. return
  18391. }
  18392. // RejectVpcPeeringConnection API operation for Amazon Elastic Compute Cloud.
  18393. //
  18394. // Rejects a VPC peering connection request. The VPC peering connection must
  18395. // be in the pending-acceptance state. Use the DescribeVpcPeeringConnections
  18396. // request to view your outstanding VPC peering connection requests. To delete
  18397. // an active VPC peering connection, or to delete a VPC peering connection request
  18398. // that you initiated, use DeleteVpcPeeringConnection.
  18399. //
  18400. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18401. // with awserr.Error's Code and Message methods to get detailed information about
  18402. // the error.
  18403. //
  18404. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18405. // API operation RejectVpcPeeringConnection for usage and error information.
  18406. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnection
  18407. func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) {
  18408. req, out := c.RejectVpcPeeringConnectionRequest(input)
  18409. return out, req.Send()
  18410. }
  18411. // RejectVpcPeeringConnectionWithContext is the same as RejectVpcPeeringConnection with the addition of
  18412. // the ability to pass a context and additional request options.
  18413. //
  18414. // See RejectVpcPeeringConnection for details on how to use this API operation.
  18415. //
  18416. // The context must be non-nil and will be used for request cancellation. If
  18417. // the context is nil a panic will occur. In the future the SDK may create
  18418. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18419. // for more information on using Contexts.
  18420. func (c *EC2) RejectVpcPeeringConnectionWithContext(ctx aws.Context, input *RejectVpcPeeringConnectionInput, opts ...request.Option) (*RejectVpcPeeringConnectionOutput, error) {
  18421. req, out := c.RejectVpcPeeringConnectionRequest(input)
  18422. req.SetContext(ctx)
  18423. req.ApplyOptions(opts...)
  18424. return out, req.Send()
  18425. }
  18426. const opReleaseAddress = "ReleaseAddress"
  18427. // ReleaseAddressRequest generates a "aws/request.Request" representing the
  18428. // client's request for the ReleaseAddress operation. The "output" return
  18429. // value will be populated with the request's response once the request complets
  18430. // successfuly.
  18431. //
  18432. // Use "Send" method on the returned Request to send the API call to the service.
  18433. // the "output" return value is not valid until after Send returns without error.
  18434. //
  18435. // See ReleaseAddress for more information on using the ReleaseAddress
  18436. // API call, and error handling.
  18437. //
  18438. // This method is useful when you want to inject custom logic or configuration
  18439. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18440. //
  18441. //
  18442. // // Example sending a request using the ReleaseAddressRequest method.
  18443. // req, resp := client.ReleaseAddressRequest(params)
  18444. //
  18445. // err := req.Send()
  18446. // if err == nil { // resp is now filled
  18447. // fmt.Println(resp)
  18448. // }
  18449. //
  18450. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  18451. func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Request, output *ReleaseAddressOutput) {
  18452. op := &request.Operation{
  18453. Name: opReleaseAddress,
  18454. HTTPMethod: "POST",
  18455. HTTPPath: "/",
  18456. }
  18457. if input == nil {
  18458. input = &ReleaseAddressInput{}
  18459. }
  18460. output = &ReleaseAddressOutput{}
  18461. req = c.newRequest(op, input, output)
  18462. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  18463. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  18464. return
  18465. }
  18466. // ReleaseAddress API operation for Amazon Elastic Compute Cloud.
  18467. //
  18468. // Releases the specified Elastic IP address.
  18469. //
  18470. // [EC2-Classic, default VPC] Releasing an Elastic IP address automatically
  18471. // disassociates it from any instance that it's associated with. To disassociate
  18472. // an Elastic IP address without releasing it, use DisassociateAddress.
  18473. //
  18474. // [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic
  18475. // IP address before you can release it. Otherwise, Amazon EC2 returns an error
  18476. // (InvalidIPAddress.InUse).
  18477. //
  18478. // After releasing an Elastic IP address, it is released to the IP address pool.
  18479. // Be sure to update your DNS records and any servers or devices that communicate
  18480. // with the address. If you attempt to release an Elastic IP address that you
  18481. // already released, you'll get an AuthFailure error if the address is already
  18482. // allocated to another AWS account.
  18483. //
  18484. // [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might
  18485. // be able to recover it. For more information, see AllocateAddress.
  18486. //
  18487. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18488. // with awserr.Error's Code and Message methods to get detailed information about
  18489. // the error.
  18490. //
  18491. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18492. // API operation ReleaseAddress for usage and error information.
  18493. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddress
  18494. func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) {
  18495. req, out := c.ReleaseAddressRequest(input)
  18496. return out, req.Send()
  18497. }
  18498. // ReleaseAddressWithContext is the same as ReleaseAddress with the addition of
  18499. // the ability to pass a context and additional request options.
  18500. //
  18501. // See ReleaseAddress for details on how to use this API operation.
  18502. //
  18503. // The context must be non-nil and will be used for request cancellation. If
  18504. // the context is nil a panic will occur. In the future the SDK may create
  18505. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18506. // for more information on using Contexts.
  18507. func (c *EC2) ReleaseAddressWithContext(ctx aws.Context, input *ReleaseAddressInput, opts ...request.Option) (*ReleaseAddressOutput, error) {
  18508. req, out := c.ReleaseAddressRequest(input)
  18509. req.SetContext(ctx)
  18510. req.ApplyOptions(opts...)
  18511. return out, req.Send()
  18512. }
  18513. const opReleaseHosts = "ReleaseHosts"
  18514. // ReleaseHostsRequest generates a "aws/request.Request" representing the
  18515. // client's request for the ReleaseHosts operation. The "output" return
  18516. // value will be populated with the request's response once the request complets
  18517. // successfuly.
  18518. //
  18519. // Use "Send" method on the returned Request to send the API call to the service.
  18520. // the "output" return value is not valid until after Send returns without error.
  18521. //
  18522. // See ReleaseHosts for more information on using the ReleaseHosts
  18523. // API call, and error handling.
  18524. //
  18525. // This method is useful when you want to inject custom logic or configuration
  18526. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18527. //
  18528. //
  18529. // // Example sending a request using the ReleaseHostsRequest method.
  18530. // req, resp := client.ReleaseHostsRequest(params)
  18531. //
  18532. // err := req.Send()
  18533. // if err == nil { // resp is now filled
  18534. // fmt.Println(resp)
  18535. // }
  18536. //
  18537. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  18538. func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Request, output *ReleaseHostsOutput) {
  18539. op := &request.Operation{
  18540. Name: opReleaseHosts,
  18541. HTTPMethod: "POST",
  18542. HTTPPath: "/",
  18543. }
  18544. if input == nil {
  18545. input = &ReleaseHostsInput{}
  18546. }
  18547. output = &ReleaseHostsOutput{}
  18548. req = c.newRequest(op, input, output)
  18549. return
  18550. }
  18551. // ReleaseHosts API operation for Amazon Elastic Compute Cloud.
  18552. //
  18553. // When you no longer want to use an On-Demand Dedicated Host it can be released.
  18554. // On-Demand billing is stopped and the host goes into released state. The host
  18555. // ID of Dedicated Hosts that have been released can no longer be specified
  18556. // in another request, e.g., ModifyHosts. You must stop or terminate all instances
  18557. // on a host before it can be released.
  18558. //
  18559. // When Dedicated Hosts are released, it make take some time for them to stop
  18560. // counting toward your limit and you may receive capacity errors when trying
  18561. // to allocate new Dedicated hosts. Try waiting a few minutes, and then try
  18562. // again.
  18563. //
  18564. // Released hosts will still appear in a DescribeHosts response.
  18565. //
  18566. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18567. // with awserr.Error's Code and Message methods to get detailed information about
  18568. // the error.
  18569. //
  18570. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18571. // API operation ReleaseHosts for usage and error information.
  18572. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHosts
  18573. func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) {
  18574. req, out := c.ReleaseHostsRequest(input)
  18575. return out, req.Send()
  18576. }
  18577. // ReleaseHostsWithContext is the same as ReleaseHosts with the addition of
  18578. // the ability to pass a context and additional request options.
  18579. //
  18580. // See ReleaseHosts for details on how to use this API operation.
  18581. //
  18582. // The context must be non-nil and will be used for request cancellation. If
  18583. // the context is nil a panic will occur. In the future the SDK may create
  18584. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18585. // for more information on using Contexts.
  18586. func (c *EC2) ReleaseHostsWithContext(ctx aws.Context, input *ReleaseHostsInput, opts ...request.Option) (*ReleaseHostsOutput, error) {
  18587. req, out := c.ReleaseHostsRequest(input)
  18588. req.SetContext(ctx)
  18589. req.ApplyOptions(opts...)
  18590. return out, req.Send()
  18591. }
  18592. const opReplaceIamInstanceProfileAssociation = "ReplaceIamInstanceProfileAssociation"
  18593. // ReplaceIamInstanceProfileAssociationRequest generates a "aws/request.Request" representing the
  18594. // client's request for the ReplaceIamInstanceProfileAssociation operation. The "output" return
  18595. // value will be populated with the request's response once the request complets
  18596. // successfuly.
  18597. //
  18598. // Use "Send" method on the returned Request to send the API call to the service.
  18599. // the "output" return value is not valid until after Send returns without error.
  18600. //
  18601. // See ReplaceIamInstanceProfileAssociation for more information on using the ReplaceIamInstanceProfileAssociation
  18602. // API call, and error handling.
  18603. //
  18604. // This method is useful when you want to inject custom logic or configuration
  18605. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18606. //
  18607. //
  18608. // // Example sending a request using the ReplaceIamInstanceProfileAssociationRequest method.
  18609. // req, resp := client.ReplaceIamInstanceProfileAssociationRequest(params)
  18610. //
  18611. // err := req.Send()
  18612. // if err == nil { // resp is now filled
  18613. // fmt.Println(resp)
  18614. // }
  18615. //
  18616. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  18617. func (c *EC2) ReplaceIamInstanceProfileAssociationRequest(input *ReplaceIamInstanceProfileAssociationInput) (req *request.Request, output *ReplaceIamInstanceProfileAssociationOutput) {
  18618. op := &request.Operation{
  18619. Name: opReplaceIamInstanceProfileAssociation,
  18620. HTTPMethod: "POST",
  18621. HTTPPath: "/",
  18622. }
  18623. if input == nil {
  18624. input = &ReplaceIamInstanceProfileAssociationInput{}
  18625. }
  18626. output = &ReplaceIamInstanceProfileAssociationOutput{}
  18627. req = c.newRequest(op, input, output)
  18628. return
  18629. }
  18630. // ReplaceIamInstanceProfileAssociation API operation for Amazon Elastic Compute Cloud.
  18631. //
  18632. // Replaces an IAM instance profile for the specified running instance. You
  18633. // can use this action to change the IAM instance profile that's associated
  18634. // with an instance without having to disassociate the existing IAM instance
  18635. // profile first.
  18636. //
  18637. // Use DescribeIamInstanceProfileAssociations to get the association ID.
  18638. //
  18639. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18640. // with awserr.Error's Code and Message methods to get detailed information about
  18641. // the error.
  18642. //
  18643. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18644. // API operation ReplaceIamInstanceProfileAssociation for usage and error information.
  18645. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociation
  18646. func (c *EC2) ReplaceIamInstanceProfileAssociation(input *ReplaceIamInstanceProfileAssociationInput) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  18647. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  18648. return out, req.Send()
  18649. }
  18650. // ReplaceIamInstanceProfileAssociationWithContext is the same as ReplaceIamInstanceProfileAssociation with the addition of
  18651. // the ability to pass a context and additional request options.
  18652. //
  18653. // See ReplaceIamInstanceProfileAssociation for details on how to use this API operation.
  18654. //
  18655. // The context must be non-nil and will be used for request cancellation. If
  18656. // the context is nil a panic will occur. In the future the SDK may create
  18657. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18658. // for more information on using Contexts.
  18659. func (c *EC2) ReplaceIamInstanceProfileAssociationWithContext(ctx aws.Context, input *ReplaceIamInstanceProfileAssociationInput, opts ...request.Option) (*ReplaceIamInstanceProfileAssociationOutput, error) {
  18660. req, out := c.ReplaceIamInstanceProfileAssociationRequest(input)
  18661. req.SetContext(ctx)
  18662. req.ApplyOptions(opts...)
  18663. return out, req.Send()
  18664. }
  18665. const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation"
  18666. // ReplaceNetworkAclAssociationRequest generates a "aws/request.Request" representing the
  18667. // client's request for the ReplaceNetworkAclAssociation operation. The "output" return
  18668. // value will be populated with the request's response once the request complets
  18669. // successfuly.
  18670. //
  18671. // Use "Send" method on the returned Request to send the API call to the service.
  18672. // the "output" return value is not valid until after Send returns without error.
  18673. //
  18674. // See ReplaceNetworkAclAssociation for more information on using the ReplaceNetworkAclAssociation
  18675. // API call, and error handling.
  18676. //
  18677. // This method is useful when you want to inject custom logic or configuration
  18678. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18679. //
  18680. //
  18681. // // Example sending a request using the ReplaceNetworkAclAssociationRequest method.
  18682. // req, resp := client.ReplaceNetworkAclAssociationRequest(params)
  18683. //
  18684. // err := req.Send()
  18685. // if err == nil { // resp is now filled
  18686. // fmt.Println(resp)
  18687. // }
  18688. //
  18689. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  18690. func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssociationInput) (req *request.Request, output *ReplaceNetworkAclAssociationOutput) {
  18691. op := &request.Operation{
  18692. Name: opReplaceNetworkAclAssociation,
  18693. HTTPMethod: "POST",
  18694. HTTPPath: "/",
  18695. }
  18696. if input == nil {
  18697. input = &ReplaceNetworkAclAssociationInput{}
  18698. }
  18699. output = &ReplaceNetworkAclAssociationOutput{}
  18700. req = c.newRequest(op, input, output)
  18701. return
  18702. }
  18703. // ReplaceNetworkAclAssociation API operation for Amazon Elastic Compute Cloud.
  18704. //
  18705. // Changes which network ACL a subnet is associated with. By default when you
  18706. // create a subnet, it's automatically associated with the default network ACL.
  18707. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  18708. // in the Amazon Virtual Private Cloud User Guide.
  18709. //
  18710. // This is an idempotent operation.
  18711. //
  18712. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18713. // with awserr.Error's Code and Message methods to get detailed information about
  18714. // the error.
  18715. //
  18716. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18717. // API operation ReplaceNetworkAclAssociation for usage and error information.
  18718. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociation
  18719. func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) {
  18720. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  18721. return out, req.Send()
  18722. }
  18723. // ReplaceNetworkAclAssociationWithContext is the same as ReplaceNetworkAclAssociation with the addition of
  18724. // the ability to pass a context and additional request options.
  18725. //
  18726. // See ReplaceNetworkAclAssociation for details on how to use this API operation.
  18727. //
  18728. // The context must be non-nil and will be used for request cancellation. If
  18729. // the context is nil a panic will occur. In the future the SDK may create
  18730. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18731. // for more information on using Contexts.
  18732. func (c *EC2) ReplaceNetworkAclAssociationWithContext(ctx aws.Context, input *ReplaceNetworkAclAssociationInput, opts ...request.Option) (*ReplaceNetworkAclAssociationOutput, error) {
  18733. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  18734. req.SetContext(ctx)
  18735. req.ApplyOptions(opts...)
  18736. return out, req.Send()
  18737. }
  18738. const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry"
  18739. // ReplaceNetworkAclEntryRequest generates a "aws/request.Request" representing the
  18740. // client's request for the ReplaceNetworkAclEntry operation. The "output" return
  18741. // value will be populated with the request's response once the request complets
  18742. // successfuly.
  18743. //
  18744. // Use "Send" method on the returned Request to send the API call to the service.
  18745. // the "output" return value is not valid until after Send returns without error.
  18746. //
  18747. // See ReplaceNetworkAclEntry for more information on using the ReplaceNetworkAclEntry
  18748. // API call, and error handling.
  18749. //
  18750. // This method is useful when you want to inject custom logic or configuration
  18751. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18752. //
  18753. //
  18754. // // Example sending a request using the ReplaceNetworkAclEntryRequest method.
  18755. // req, resp := client.ReplaceNetworkAclEntryRequest(params)
  18756. //
  18757. // err := req.Send()
  18758. // if err == nil { // resp is now filled
  18759. // fmt.Println(resp)
  18760. // }
  18761. //
  18762. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  18763. func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) (req *request.Request, output *ReplaceNetworkAclEntryOutput) {
  18764. op := &request.Operation{
  18765. Name: opReplaceNetworkAclEntry,
  18766. HTTPMethod: "POST",
  18767. HTTPPath: "/",
  18768. }
  18769. if input == nil {
  18770. input = &ReplaceNetworkAclEntryInput{}
  18771. }
  18772. output = &ReplaceNetworkAclEntryOutput{}
  18773. req = c.newRequest(op, input, output)
  18774. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  18775. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  18776. return
  18777. }
  18778. // ReplaceNetworkAclEntry API operation for Amazon Elastic Compute Cloud.
  18779. //
  18780. // Replaces an entry (rule) in a network ACL. For more information about network
  18781. // ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  18782. // in the Amazon Virtual Private Cloud User Guide.
  18783. //
  18784. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18785. // with awserr.Error's Code and Message methods to get detailed information about
  18786. // the error.
  18787. //
  18788. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18789. // API operation ReplaceNetworkAclEntry for usage and error information.
  18790. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntry
  18791. func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) {
  18792. req, out := c.ReplaceNetworkAclEntryRequest(input)
  18793. return out, req.Send()
  18794. }
  18795. // ReplaceNetworkAclEntryWithContext is the same as ReplaceNetworkAclEntry with the addition of
  18796. // the ability to pass a context and additional request options.
  18797. //
  18798. // See ReplaceNetworkAclEntry for details on how to use this API operation.
  18799. //
  18800. // The context must be non-nil and will be used for request cancellation. If
  18801. // the context is nil a panic will occur. In the future the SDK may create
  18802. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18803. // for more information on using Contexts.
  18804. func (c *EC2) ReplaceNetworkAclEntryWithContext(ctx aws.Context, input *ReplaceNetworkAclEntryInput, opts ...request.Option) (*ReplaceNetworkAclEntryOutput, error) {
  18805. req, out := c.ReplaceNetworkAclEntryRequest(input)
  18806. req.SetContext(ctx)
  18807. req.ApplyOptions(opts...)
  18808. return out, req.Send()
  18809. }
  18810. const opReplaceRoute = "ReplaceRoute"
  18811. // ReplaceRouteRequest generates a "aws/request.Request" representing the
  18812. // client's request for the ReplaceRoute operation. The "output" return
  18813. // value will be populated with the request's response once the request complets
  18814. // successfuly.
  18815. //
  18816. // Use "Send" method on the returned Request to send the API call to the service.
  18817. // the "output" return value is not valid until after Send returns without error.
  18818. //
  18819. // See ReplaceRoute for more information on using the ReplaceRoute
  18820. // API call, and error handling.
  18821. //
  18822. // This method is useful when you want to inject custom logic or configuration
  18823. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18824. //
  18825. //
  18826. // // Example sending a request using the ReplaceRouteRequest method.
  18827. // req, resp := client.ReplaceRouteRequest(params)
  18828. //
  18829. // err := req.Send()
  18830. // if err == nil { // resp is now filled
  18831. // fmt.Println(resp)
  18832. // }
  18833. //
  18834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  18835. func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Request, output *ReplaceRouteOutput) {
  18836. op := &request.Operation{
  18837. Name: opReplaceRoute,
  18838. HTTPMethod: "POST",
  18839. HTTPPath: "/",
  18840. }
  18841. if input == nil {
  18842. input = &ReplaceRouteInput{}
  18843. }
  18844. output = &ReplaceRouteOutput{}
  18845. req = c.newRequest(op, input, output)
  18846. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  18847. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  18848. return
  18849. }
  18850. // ReplaceRoute API operation for Amazon Elastic Compute Cloud.
  18851. //
  18852. // Replaces an existing route within a route table in a VPC. You must provide
  18853. // only one of the following: Internet gateway or virtual private gateway, NAT
  18854. // instance, NAT gateway, VPC peering connection, network interface, or egress-only
  18855. // Internet gateway.
  18856. //
  18857. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  18858. // in the Amazon Virtual Private Cloud User Guide.
  18859. //
  18860. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18861. // with awserr.Error's Code and Message methods to get detailed information about
  18862. // the error.
  18863. //
  18864. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18865. // API operation ReplaceRoute for usage and error information.
  18866. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRoute
  18867. func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) {
  18868. req, out := c.ReplaceRouteRequest(input)
  18869. return out, req.Send()
  18870. }
  18871. // ReplaceRouteWithContext is the same as ReplaceRoute with the addition of
  18872. // the ability to pass a context and additional request options.
  18873. //
  18874. // See ReplaceRoute for details on how to use this API operation.
  18875. //
  18876. // The context must be non-nil and will be used for request cancellation. If
  18877. // the context is nil a panic will occur. In the future the SDK may create
  18878. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18879. // for more information on using Contexts.
  18880. func (c *EC2) ReplaceRouteWithContext(ctx aws.Context, input *ReplaceRouteInput, opts ...request.Option) (*ReplaceRouteOutput, error) {
  18881. req, out := c.ReplaceRouteRequest(input)
  18882. req.SetContext(ctx)
  18883. req.ApplyOptions(opts...)
  18884. return out, req.Send()
  18885. }
  18886. const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation"
  18887. // ReplaceRouteTableAssociationRequest generates a "aws/request.Request" representing the
  18888. // client's request for the ReplaceRouteTableAssociation operation. The "output" return
  18889. // value will be populated with the request's response once the request complets
  18890. // successfuly.
  18891. //
  18892. // Use "Send" method on the returned Request to send the API call to the service.
  18893. // the "output" return value is not valid until after Send returns without error.
  18894. //
  18895. // See ReplaceRouteTableAssociation for more information on using the ReplaceRouteTableAssociation
  18896. // API call, and error handling.
  18897. //
  18898. // This method is useful when you want to inject custom logic or configuration
  18899. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18900. //
  18901. //
  18902. // // Example sending a request using the ReplaceRouteTableAssociationRequest method.
  18903. // req, resp := client.ReplaceRouteTableAssociationRequest(params)
  18904. //
  18905. // err := req.Send()
  18906. // if err == nil { // resp is now filled
  18907. // fmt.Println(resp)
  18908. // }
  18909. //
  18910. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  18911. func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssociationInput) (req *request.Request, output *ReplaceRouteTableAssociationOutput) {
  18912. op := &request.Operation{
  18913. Name: opReplaceRouteTableAssociation,
  18914. HTTPMethod: "POST",
  18915. HTTPPath: "/",
  18916. }
  18917. if input == nil {
  18918. input = &ReplaceRouteTableAssociationInput{}
  18919. }
  18920. output = &ReplaceRouteTableAssociationOutput{}
  18921. req = c.newRequest(op, input, output)
  18922. return
  18923. }
  18924. // ReplaceRouteTableAssociation API operation for Amazon Elastic Compute Cloud.
  18925. //
  18926. // Changes the route table associated with a given subnet in a VPC. After the
  18927. // operation completes, the subnet uses the routes in the new route table it's
  18928. // associated with. For more information about route tables, see Route Tables
  18929. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  18930. // in the Amazon Virtual Private Cloud User Guide.
  18931. //
  18932. // You can also use ReplaceRouteTableAssociation to change which table is the
  18933. // main route table in the VPC. You just specify the main route table's association
  18934. // ID and the route table to be the new main route table.
  18935. //
  18936. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  18937. // with awserr.Error's Code and Message methods to get detailed information about
  18938. // the error.
  18939. //
  18940. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  18941. // API operation ReplaceRouteTableAssociation for usage and error information.
  18942. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociation
  18943. func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) {
  18944. req, out := c.ReplaceRouteTableAssociationRequest(input)
  18945. return out, req.Send()
  18946. }
  18947. // ReplaceRouteTableAssociationWithContext is the same as ReplaceRouteTableAssociation with the addition of
  18948. // the ability to pass a context and additional request options.
  18949. //
  18950. // See ReplaceRouteTableAssociation for details on how to use this API operation.
  18951. //
  18952. // The context must be non-nil and will be used for request cancellation. If
  18953. // the context is nil a panic will occur. In the future the SDK may create
  18954. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  18955. // for more information on using Contexts.
  18956. func (c *EC2) ReplaceRouteTableAssociationWithContext(ctx aws.Context, input *ReplaceRouteTableAssociationInput, opts ...request.Option) (*ReplaceRouteTableAssociationOutput, error) {
  18957. req, out := c.ReplaceRouteTableAssociationRequest(input)
  18958. req.SetContext(ctx)
  18959. req.ApplyOptions(opts...)
  18960. return out, req.Send()
  18961. }
  18962. const opReportInstanceStatus = "ReportInstanceStatus"
  18963. // ReportInstanceStatusRequest generates a "aws/request.Request" representing the
  18964. // client's request for the ReportInstanceStatus operation. The "output" return
  18965. // value will be populated with the request's response once the request complets
  18966. // successfuly.
  18967. //
  18968. // Use "Send" method on the returned Request to send the API call to the service.
  18969. // the "output" return value is not valid until after Send returns without error.
  18970. //
  18971. // See ReportInstanceStatus for more information on using the ReportInstanceStatus
  18972. // API call, and error handling.
  18973. //
  18974. // This method is useful when you want to inject custom logic or configuration
  18975. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  18976. //
  18977. //
  18978. // // Example sending a request using the ReportInstanceStatusRequest method.
  18979. // req, resp := client.ReportInstanceStatusRequest(params)
  18980. //
  18981. // err := req.Send()
  18982. // if err == nil { // resp is now filled
  18983. // fmt.Println(resp)
  18984. // }
  18985. //
  18986. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  18987. func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req *request.Request, output *ReportInstanceStatusOutput) {
  18988. op := &request.Operation{
  18989. Name: opReportInstanceStatus,
  18990. HTTPMethod: "POST",
  18991. HTTPPath: "/",
  18992. }
  18993. if input == nil {
  18994. input = &ReportInstanceStatusInput{}
  18995. }
  18996. output = &ReportInstanceStatusOutput{}
  18997. req = c.newRequest(op, input, output)
  18998. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  18999. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19000. return
  19001. }
  19002. // ReportInstanceStatus API operation for Amazon Elastic Compute Cloud.
  19003. //
  19004. // Submits feedback about the status of an instance. The instance must be in
  19005. // the running state. If your experience with the instance differs from the
  19006. // instance status returned by DescribeInstanceStatus, use ReportInstanceStatus
  19007. // to report your experience with the instance. Amazon EC2 collects this information
  19008. // to improve the accuracy of status checks.
  19009. //
  19010. // Use of this action does not change the value returned by DescribeInstanceStatus.
  19011. //
  19012. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19013. // with awserr.Error's Code and Message methods to get detailed information about
  19014. // the error.
  19015. //
  19016. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19017. // API operation ReportInstanceStatus for usage and error information.
  19018. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatus
  19019. func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) {
  19020. req, out := c.ReportInstanceStatusRequest(input)
  19021. return out, req.Send()
  19022. }
  19023. // ReportInstanceStatusWithContext is the same as ReportInstanceStatus with the addition of
  19024. // the ability to pass a context and additional request options.
  19025. //
  19026. // See ReportInstanceStatus for details on how to use this API operation.
  19027. //
  19028. // The context must be non-nil and will be used for request cancellation. If
  19029. // the context is nil a panic will occur. In the future the SDK may create
  19030. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19031. // for more information on using Contexts.
  19032. func (c *EC2) ReportInstanceStatusWithContext(ctx aws.Context, input *ReportInstanceStatusInput, opts ...request.Option) (*ReportInstanceStatusOutput, error) {
  19033. req, out := c.ReportInstanceStatusRequest(input)
  19034. req.SetContext(ctx)
  19035. req.ApplyOptions(opts...)
  19036. return out, req.Send()
  19037. }
  19038. const opRequestSpotFleet = "RequestSpotFleet"
  19039. // RequestSpotFleetRequest generates a "aws/request.Request" representing the
  19040. // client's request for the RequestSpotFleet operation. The "output" return
  19041. // value will be populated with the request's response once the request complets
  19042. // successfuly.
  19043. //
  19044. // Use "Send" method on the returned Request to send the API call to the service.
  19045. // the "output" return value is not valid until after Send returns without error.
  19046. //
  19047. // See RequestSpotFleet for more information on using the RequestSpotFleet
  19048. // API call, and error handling.
  19049. //
  19050. // This method is useful when you want to inject custom logic or configuration
  19051. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19052. //
  19053. //
  19054. // // Example sending a request using the RequestSpotFleetRequest method.
  19055. // req, resp := client.RequestSpotFleetRequest(params)
  19056. //
  19057. // err := req.Send()
  19058. // if err == nil { // resp is now filled
  19059. // fmt.Println(resp)
  19060. // }
  19061. //
  19062. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  19063. func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *request.Request, output *RequestSpotFleetOutput) {
  19064. op := &request.Operation{
  19065. Name: opRequestSpotFleet,
  19066. HTTPMethod: "POST",
  19067. HTTPPath: "/",
  19068. }
  19069. if input == nil {
  19070. input = &RequestSpotFleetInput{}
  19071. }
  19072. output = &RequestSpotFleetOutput{}
  19073. req = c.newRequest(op, input, output)
  19074. return
  19075. }
  19076. // RequestSpotFleet API operation for Amazon Elastic Compute Cloud.
  19077. //
  19078. // Creates a Spot Fleet request.
  19079. //
  19080. // You can submit a single request that includes multiple launch specifications
  19081. // that vary by instance type, AMI, Availability Zone, or subnet.
  19082. //
  19083. // By default, the Spot Fleet requests Spot Instances in the Spot pool where
  19084. // the price per unit is the lowest. Each launch specification can include its
  19085. // own instance weighting that reflects the value of the instance type to your
  19086. // application workload.
  19087. //
  19088. // Alternatively, you can specify that the Spot Fleet distribute the target
  19089. // capacity across the Spot pools included in its launch specifications. By
  19090. // ensuring that the Spot Instances in your Spot Fleet are in different Spot
  19091. // pools, you can improve the availability of your fleet.
  19092. //
  19093. // You can specify tags for the Spot Instances. You cannot tag other resource
  19094. // types in a Spot Fleet request; only the instance resource type is supported.
  19095. //
  19096. // For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html)
  19097. // in the Amazon Elastic Compute Cloud User Guide.
  19098. //
  19099. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19100. // with awserr.Error's Code and Message methods to get detailed information about
  19101. // the error.
  19102. //
  19103. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19104. // API operation RequestSpotFleet for usage and error information.
  19105. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleet
  19106. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) {
  19107. req, out := c.RequestSpotFleetRequest(input)
  19108. return out, req.Send()
  19109. }
  19110. // RequestSpotFleetWithContext is the same as RequestSpotFleet with the addition of
  19111. // the ability to pass a context and additional request options.
  19112. //
  19113. // See RequestSpotFleet for details on how to use this API operation.
  19114. //
  19115. // The context must be non-nil and will be used for request cancellation. If
  19116. // the context is nil a panic will occur. In the future the SDK may create
  19117. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19118. // for more information on using Contexts.
  19119. func (c *EC2) RequestSpotFleetWithContext(ctx aws.Context, input *RequestSpotFleetInput, opts ...request.Option) (*RequestSpotFleetOutput, error) {
  19120. req, out := c.RequestSpotFleetRequest(input)
  19121. req.SetContext(ctx)
  19122. req.ApplyOptions(opts...)
  19123. return out, req.Send()
  19124. }
  19125. const opRequestSpotInstances = "RequestSpotInstances"
  19126. // RequestSpotInstancesRequest generates a "aws/request.Request" representing the
  19127. // client's request for the RequestSpotInstances operation. The "output" return
  19128. // value will be populated with the request's response once the request complets
  19129. // successfuly.
  19130. //
  19131. // Use "Send" method on the returned Request to send the API call to the service.
  19132. // the "output" return value is not valid until after Send returns without error.
  19133. //
  19134. // See RequestSpotInstances for more information on using the RequestSpotInstances
  19135. // API call, and error handling.
  19136. //
  19137. // This method is useful when you want to inject custom logic or configuration
  19138. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19139. //
  19140. //
  19141. // // Example sending a request using the RequestSpotInstancesRequest method.
  19142. // req, resp := client.RequestSpotInstancesRequest(params)
  19143. //
  19144. // err := req.Send()
  19145. // if err == nil { // resp is now filled
  19146. // fmt.Println(resp)
  19147. // }
  19148. //
  19149. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  19150. func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req *request.Request, output *RequestSpotInstancesOutput) {
  19151. op := &request.Operation{
  19152. Name: opRequestSpotInstances,
  19153. HTTPMethod: "POST",
  19154. HTTPPath: "/",
  19155. }
  19156. if input == nil {
  19157. input = &RequestSpotInstancesInput{}
  19158. }
  19159. output = &RequestSpotInstancesOutput{}
  19160. req = c.newRequest(op, input, output)
  19161. return
  19162. }
  19163. // RequestSpotInstances API operation for Amazon Elastic Compute Cloud.
  19164. //
  19165. // Creates a Spot Instance request. Spot Instances are instances that Amazon
  19166. // EC2 launches when the maximum price that you specify exceeds the current
  19167. // Spot price. For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  19168. // in the Amazon Elastic Compute Cloud User Guide.
  19169. //
  19170. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19171. // with awserr.Error's Code and Message methods to get detailed information about
  19172. // the error.
  19173. //
  19174. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19175. // API operation RequestSpotInstances for usage and error information.
  19176. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstances
  19177. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) {
  19178. req, out := c.RequestSpotInstancesRequest(input)
  19179. return out, req.Send()
  19180. }
  19181. // RequestSpotInstancesWithContext is the same as RequestSpotInstances with the addition of
  19182. // the ability to pass a context and additional request options.
  19183. //
  19184. // See RequestSpotInstances for details on how to use this API operation.
  19185. //
  19186. // The context must be non-nil and will be used for request cancellation. If
  19187. // the context is nil a panic will occur. In the future the SDK may create
  19188. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19189. // for more information on using Contexts.
  19190. func (c *EC2) RequestSpotInstancesWithContext(ctx aws.Context, input *RequestSpotInstancesInput, opts ...request.Option) (*RequestSpotInstancesOutput, error) {
  19191. req, out := c.RequestSpotInstancesRequest(input)
  19192. req.SetContext(ctx)
  19193. req.ApplyOptions(opts...)
  19194. return out, req.Send()
  19195. }
  19196. const opResetFpgaImageAttribute = "ResetFpgaImageAttribute"
  19197. // ResetFpgaImageAttributeRequest generates a "aws/request.Request" representing the
  19198. // client's request for the ResetFpgaImageAttribute operation. The "output" return
  19199. // value will be populated with the request's response once the request complets
  19200. // successfuly.
  19201. //
  19202. // Use "Send" method on the returned Request to send the API call to the service.
  19203. // the "output" return value is not valid until after Send returns without error.
  19204. //
  19205. // See ResetFpgaImageAttribute for more information on using the ResetFpgaImageAttribute
  19206. // API call, and error handling.
  19207. //
  19208. // This method is useful when you want to inject custom logic or configuration
  19209. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19210. //
  19211. //
  19212. // // Example sending a request using the ResetFpgaImageAttributeRequest method.
  19213. // req, resp := client.ResetFpgaImageAttributeRequest(params)
  19214. //
  19215. // err := req.Send()
  19216. // if err == nil { // resp is now filled
  19217. // fmt.Println(resp)
  19218. // }
  19219. //
  19220. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute
  19221. func (c *EC2) ResetFpgaImageAttributeRequest(input *ResetFpgaImageAttributeInput) (req *request.Request, output *ResetFpgaImageAttributeOutput) {
  19222. op := &request.Operation{
  19223. Name: opResetFpgaImageAttribute,
  19224. HTTPMethod: "POST",
  19225. HTTPPath: "/",
  19226. }
  19227. if input == nil {
  19228. input = &ResetFpgaImageAttributeInput{}
  19229. }
  19230. output = &ResetFpgaImageAttributeOutput{}
  19231. req = c.newRequest(op, input, output)
  19232. return
  19233. }
  19234. // ResetFpgaImageAttribute API operation for Amazon Elastic Compute Cloud.
  19235. //
  19236. // Resets the specified attribute of the specified Amazon FPGA Image (AFI) to
  19237. // its default value. You can only reset the load permission attribute.
  19238. //
  19239. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19240. // with awserr.Error's Code and Message methods to get detailed information about
  19241. // the error.
  19242. //
  19243. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19244. // API operation ResetFpgaImageAttribute for usage and error information.
  19245. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttribute
  19246. func (c *EC2) ResetFpgaImageAttribute(input *ResetFpgaImageAttributeInput) (*ResetFpgaImageAttributeOutput, error) {
  19247. req, out := c.ResetFpgaImageAttributeRequest(input)
  19248. return out, req.Send()
  19249. }
  19250. // ResetFpgaImageAttributeWithContext is the same as ResetFpgaImageAttribute with the addition of
  19251. // the ability to pass a context and additional request options.
  19252. //
  19253. // See ResetFpgaImageAttribute for details on how to use this API operation.
  19254. //
  19255. // The context must be non-nil and will be used for request cancellation. If
  19256. // the context is nil a panic will occur. In the future the SDK may create
  19257. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19258. // for more information on using Contexts.
  19259. func (c *EC2) ResetFpgaImageAttributeWithContext(ctx aws.Context, input *ResetFpgaImageAttributeInput, opts ...request.Option) (*ResetFpgaImageAttributeOutput, error) {
  19260. req, out := c.ResetFpgaImageAttributeRequest(input)
  19261. req.SetContext(ctx)
  19262. req.ApplyOptions(opts...)
  19263. return out, req.Send()
  19264. }
  19265. const opResetImageAttribute = "ResetImageAttribute"
  19266. // ResetImageAttributeRequest generates a "aws/request.Request" representing the
  19267. // client's request for the ResetImageAttribute operation. The "output" return
  19268. // value will be populated with the request's response once the request complets
  19269. // successfuly.
  19270. //
  19271. // Use "Send" method on the returned Request to send the API call to the service.
  19272. // the "output" return value is not valid until after Send returns without error.
  19273. //
  19274. // See ResetImageAttribute for more information on using the ResetImageAttribute
  19275. // API call, and error handling.
  19276. //
  19277. // This method is useful when you want to inject custom logic or configuration
  19278. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19279. //
  19280. //
  19281. // // Example sending a request using the ResetImageAttributeRequest method.
  19282. // req, resp := client.ResetImageAttributeRequest(params)
  19283. //
  19284. // err := req.Send()
  19285. // if err == nil { // resp is now filled
  19286. // fmt.Println(resp)
  19287. // }
  19288. //
  19289. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  19290. func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req *request.Request, output *ResetImageAttributeOutput) {
  19291. op := &request.Operation{
  19292. Name: opResetImageAttribute,
  19293. HTTPMethod: "POST",
  19294. HTTPPath: "/",
  19295. }
  19296. if input == nil {
  19297. input = &ResetImageAttributeInput{}
  19298. }
  19299. output = &ResetImageAttributeOutput{}
  19300. req = c.newRequest(op, input, output)
  19301. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19302. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19303. return
  19304. }
  19305. // ResetImageAttribute API operation for Amazon Elastic Compute Cloud.
  19306. //
  19307. // Resets an attribute of an AMI to its default value.
  19308. //
  19309. // The productCodes attribute can't be reset.
  19310. //
  19311. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19312. // with awserr.Error's Code and Message methods to get detailed information about
  19313. // the error.
  19314. //
  19315. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19316. // API operation ResetImageAttribute for usage and error information.
  19317. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttribute
  19318. func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) {
  19319. req, out := c.ResetImageAttributeRequest(input)
  19320. return out, req.Send()
  19321. }
  19322. // ResetImageAttributeWithContext is the same as ResetImageAttribute with the addition of
  19323. // the ability to pass a context and additional request options.
  19324. //
  19325. // See ResetImageAttribute for details on how to use this API operation.
  19326. //
  19327. // The context must be non-nil and will be used for request cancellation. If
  19328. // the context is nil a panic will occur. In the future the SDK may create
  19329. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19330. // for more information on using Contexts.
  19331. func (c *EC2) ResetImageAttributeWithContext(ctx aws.Context, input *ResetImageAttributeInput, opts ...request.Option) (*ResetImageAttributeOutput, error) {
  19332. req, out := c.ResetImageAttributeRequest(input)
  19333. req.SetContext(ctx)
  19334. req.ApplyOptions(opts...)
  19335. return out, req.Send()
  19336. }
  19337. const opResetInstanceAttribute = "ResetInstanceAttribute"
  19338. // ResetInstanceAttributeRequest generates a "aws/request.Request" representing the
  19339. // client's request for the ResetInstanceAttribute operation. The "output" return
  19340. // value will be populated with the request's response once the request complets
  19341. // successfuly.
  19342. //
  19343. // Use "Send" method on the returned Request to send the API call to the service.
  19344. // the "output" return value is not valid until after Send returns without error.
  19345. //
  19346. // See ResetInstanceAttribute for more information on using the ResetInstanceAttribute
  19347. // API call, and error handling.
  19348. //
  19349. // This method is useful when you want to inject custom logic or configuration
  19350. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19351. //
  19352. //
  19353. // // Example sending a request using the ResetInstanceAttributeRequest method.
  19354. // req, resp := client.ResetInstanceAttributeRequest(params)
  19355. //
  19356. // err := req.Send()
  19357. // if err == nil { // resp is now filled
  19358. // fmt.Println(resp)
  19359. // }
  19360. //
  19361. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  19362. func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) (req *request.Request, output *ResetInstanceAttributeOutput) {
  19363. op := &request.Operation{
  19364. Name: opResetInstanceAttribute,
  19365. HTTPMethod: "POST",
  19366. HTTPPath: "/",
  19367. }
  19368. if input == nil {
  19369. input = &ResetInstanceAttributeInput{}
  19370. }
  19371. output = &ResetInstanceAttributeOutput{}
  19372. req = c.newRequest(op, input, output)
  19373. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19374. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19375. return
  19376. }
  19377. // ResetInstanceAttribute API operation for Amazon Elastic Compute Cloud.
  19378. //
  19379. // Resets an attribute of an instance to its default value. To reset the kernel
  19380. // or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck,
  19381. // the instance can be either running or stopped.
  19382. //
  19383. // The sourceDestCheck attribute controls whether source/destination checking
  19384. // is enabled. The default value is true, which means checking is enabled. This
  19385. // value must be false for a NAT instance to perform NAT. For more information,
  19386. // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  19387. // in the Amazon Virtual Private Cloud User Guide.
  19388. //
  19389. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19390. // with awserr.Error's Code and Message methods to get detailed information about
  19391. // the error.
  19392. //
  19393. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19394. // API operation ResetInstanceAttribute for usage and error information.
  19395. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttribute
  19396. func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) {
  19397. req, out := c.ResetInstanceAttributeRequest(input)
  19398. return out, req.Send()
  19399. }
  19400. // ResetInstanceAttributeWithContext is the same as ResetInstanceAttribute with the addition of
  19401. // the ability to pass a context and additional request options.
  19402. //
  19403. // See ResetInstanceAttribute for details on how to use this API operation.
  19404. //
  19405. // The context must be non-nil and will be used for request cancellation. If
  19406. // the context is nil a panic will occur. In the future the SDK may create
  19407. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19408. // for more information on using Contexts.
  19409. func (c *EC2) ResetInstanceAttributeWithContext(ctx aws.Context, input *ResetInstanceAttributeInput, opts ...request.Option) (*ResetInstanceAttributeOutput, error) {
  19410. req, out := c.ResetInstanceAttributeRequest(input)
  19411. req.SetContext(ctx)
  19412. req.ApplyOptions(opts...)
  19413. return out, req.Send()
  19414. }
  19415. const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute"
  19416. // ResetNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  19417. // client's request for the ResetNetworkInterfaceAttribute operation. The "output" return
  19418. // value will be populated with the request's response once the request complets
  19419. // successfuly.
  19420. //
  19421. // Use "Send" method on the returned Request to send the API call to the service.
  19422. // the "output" return value is not valid until after Send returns without error.
  19423. //
  19424. // See ResetNetworkInterfaceAttribute for more information on using the ResetNetworkInterfaceAttribute
  19425. // API call, and error handling.
  19426. //
  19427. // This method is useful when you want to inject custom logic or configuration
  19428. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19429. //
  19430. //
  19431. // // Example sending a request using the ResetNetworkInterfaceAttributeRequest method.
  19432. // req, resp := client.ResetNetworkInterfaceAttributeRequest(params)
  19433. //
  19434. // err := req.Send()
  19435. // if err == nil { // resp is now filled
  19436. // fmt.Println(resp)
  19437. // }
  19438. //
  19439. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  19440. func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterfaceAttributeInput) (req *request.Request, output *ResetNetworkInterfaceAttributeOutput) {
  19441. op := &request.Operation{
  19442. Name: opResetNetworkInterfaceAttribute,
  19443. HTTPMethod: "POST",
  19444. HTTPPath: "/",
  19445. }
  19446. if input == nil {
  19447. input = &ResetNetworkInterfaceAttributeInput{}
  19448. }
  19449. output = &ResetNetworkInterfaceAttributeOutput{}
  19450. req = c.newRequest(op, input, output)
  19451. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19452. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19453. return
  19454. }
  19455. // ResetNetworkInterfaceAttribute API operation for Amazon Elastic Compute Cloud.
  19456. //
  19457. // Resets a network interface attribute. You can specify only one attribute
  19458. // at a time.
  19459. //
  19460. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19461. // with awserr.Error's Code and Message methods to get detailed information about
  19462. // the error.
  19463. //
  19464. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19465. // API operation ResetNetworkInterfaceAttribute for usage and error information.
  19466. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttribute
  19467. func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) {
  19468. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  19469. return out, req.Send()
  19470. }
  19471. // ResetNetworkInterfaceAttributeWithContext is the same as ResetNetworkInterfaceAttribute with the addition of
  19472. // the ability to pass a context and additional request options.
  19473. //
  19474. // See ResetNetworkInterfaceAttribute for details on how to use this API operation.
  19475. //
  19476. // The context must be non-nil and will be used for request cancellation. If
  19477. // the context is nil a panic will occur. In the future the SDK may create
  19478. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19479. // for more information on using Contexts.
  19480. func (c *EC2) ResetNetworkInterfaceAttributeWithContext(ctx aws.Context, input *ResetNetworkInterfaceAttributeInput, opts ...request.Option) (*ResetNetworkInterfaceAttributeOutput, error) {
  19481. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  19482. req.SetContext(ctx)
  19483. req.ApplyOptions(opts...)
  19484. return out, req.Send()
  19485. }
  19486. const opResetSnapshotAttribute = "ResetSnapshotAttribute"
  19487. // ResetSnapshotAttributeRequest generates a "aws/request.Request" representing the
  19488. // client's request for the ResetSnapshotAttribute operation. The "output" return
  19489. // value will be populated with the request's response once the request complets
  19490. // successfuly.
  19491. //
  19492. // Use "Send" method on the returned Request to send the API call to the service.
  19493. // the "output" return value is not valid until after Send returns without error.
  19494. //
  19495. // See ResetSnapshotAttribute for more information on using the ResetSnapshotAttribute
  19496. // API call, and error handling.
  19497. //
  19498. // This method is useful when you want to inject custom logic or configuration
  19499. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19500. //
  19501. //
  19502. // // Example sending a request using the ResetSnapshotAttributeRequest method.
  19503. // req, resp := client.ResetSnapshotAttributeRequest(params)
  19504. //
  19505. // err := req.Send()
  19506. // if err == nil { // resp is now filled
  19507. // fmt.Println(resp)
  19508. // }
  19509. //
  19510. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  19511. func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) (req *request.Request, output *ResetSnapshotAttributeOutput) {
  19512. op := &request.Operation{
  19513. Name: opResetSnapshotAttribute,
  19514. HTTPMethod: "POST",
  19515. HTTPPath: "/",
  19516. }
  19517. if input == nil {
  19518. input = &ResetSnapshotAttributeInput{}
  19519. }
  19520. output = &ResetSnapshotAttributeOutput{}
  19521. req = c.newRequest(op, input, output)
  19522. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19523. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19524. return
  19525. }
  19526. // ResetSnapshotAttribute API operation for Amazon Elastic Compute Cloud.
  19527. //
  19528. // Resets permission settings for the specified snapshot.
  19529. //
  19530. // For more information on modifying snapshot permissions, see Sharing Snapshots
  19531. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  19532. // in the Amazon Elastic Compute Cloud User Guide.
  19533. //
  19534. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19535. // with awserr.Error's Code and Message methods to get detailed information about
  19536. // the error.
  19537. //
  19538. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19539. // API operation ResetSnapshotAttribute for usage and error information.
  19540. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttribute
  19541. func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) {
  19542. req, out := c.ResetSnapshotAttributeRequest(input)
  19543. return out, req.Send()
  19544. }
  19545. // ResetSnapshotAttributeWithContext is the same as ResetSnapshotAttribute with the addition of
  19546. // the ability to pass a context and additional request options.
  19547. //
  19548. // See ResetSnapshotAttribute for details on how to use this API operation.
  19549. //
  19550. // The context must be non-nil and will be used for request cancellation. If
  19551. // the context is nil a panic will occur. In the future the SDK may create
  19552. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19553. // for more information on using Contexts.
  19554. func (c *EC2) ResetSnapshotAttributeWithContext(ctx aws.Context, input *ResetSnapshotAttributeInput, opts ...request.Option) (*ResetSnapshotAttributeOutput, error) {
  19555. req, out := c.ResetSnapshotAttributeRequest(input)
  19556. req.SetContext(ctx)
  19557. req.ApplyOptions(opts...)
  19558. return out, req.Send()
  19559. }
  19560. const opRestoreAddressToClassic = "RestoreAddressToClassic"
  19561. // RestoreAddressToClassicRequest generates a "aws/request.Request" representing the
  19562. // client's request for the RestoreAddressToClassic operation. The "output" return
  19563. // value will be populated with the request's response once the request complets
  19564. // successfuly.
  19565. //
  19566. // Use "Send" method on the returned Request to send the API call to the service.
  19567. // the "output" return value is not valid until after Send returns without error.
  19568. //
  19569. // See RestoreAddressToClassic for more information on using the RestoreAddressToClassic
  19570. // API call, and error handling.
  19571. //
  19572. // This method is useful when you want to inject custom logic or configuration
  19573. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19574. //
  19575. //
  19576. // // Example sending a request using the RestoreAddressToClassicRequest method.
  19577. // req, resp := client.RestoreAddressToClassicRequest(params)
  19578. //
  19579. // err := req.Send()
  19580. // if err == nil { // resp is now filled
  19581. // fmt.Println(resp)
  19582. // }
  19583. //
  19584. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  19585. func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput) (req *request.Request, output *RestoreAddressToClassicOutput) {
  19586. op := &request.Operation{
  19587. Name: opRestoreAddressToClassic,
  19588. HTTPMethod: "POST",
  19589. HTTPPath: "/",
  19590. }
  19591. if input == nil {
  19592. input = &RestoreAddressToClassicInput{}
  19593. }
  19594. output = &RestoreAddressToClassicOutput{}
  19595. req = c.newRequest(op, input, output)
  19596. return
  19597. }
  19598. // RestoreAddressToClassic API operation for Amazon Elastic Compute Cloud.
  19599. //
  19600. // Restores an Elastic IP address that was previously moved to the EC2-VPC platform
  19601. // back to the EC2-Classic platform. You cannot move an Elastic IP address that
  19602. // was originally allocated for use in EC2-VPC. The Elastic IP address must
  19603. // not be associated with an instance or network interface.
  19604. //
  19605. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19606. // with awserr.Error's Code and Message methods to get detailed information about
  19607. // the error.
  19608. //
  19609. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19610. // API operation RestoreAddressToClassic for usage and error information.
  19611. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassic
  19612. func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) {
  19613. req, out := c.RestoreAddressToClassicRequest(input)
  19614. return out, req.Send()
  19615. }
  19616. // RestoreAddressToClassicWithContext is the same as RestoreAddressToClassic with the addition of
  19617. // the ability to pass a context and additional request options.
  19618. //
  19619. // See RestoreAddressToClassic for details on how to use this API operation.
  19620. //
  19621. // The context must be non-nil and will be used for request cancellation. If
  19622. // the context is nil a panic will occur. In the future the SDK may create
  19623. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19624. // for more information on using Contexts.
  19625. func (c *EC2) RestoreAddressToClassicWithContext(ctx aws.Context, input *RestoreAddressToClassicInput, opts ...request.Option) (*RestoreAddressToClassicOutput, error) {
  19626. req, out := c.RestoreAddressToClassicRequest(input)
  19627. req.SetContext(ctx)
  19628. req.ApplyOptions(opts...)
  19629. return out, req.Send()
  19630. }
  19631. const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress"
  19632. // RevokeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  19633. // client's request for the RevokeSecurityGroupEgress operation. The "output" return
  19634. // value will be populated with the request's response once the request complets
  19635. // successfuly.
  19636. //
  19637. // Use "Send" method on the returned Request to send the API call to the service.
  19638. // the "output" return value is not valid until after Send returns without error.
  19639. //
  19640. // See RevokeSecurityGroupEgress for more information on using the RevokeSecurityGroupEgress
  19641. // API call, and error handling.
  19642. //
  19643. // This method is useful when you want to inject custom logic or configuration
  19644. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19645. //
  19646. //
  19647. // // Example sending a request using the RevokeSecurityGroupEgressRequest method.
  19648. // req, resp := client.RevokeSecurityGroupEgressRequest(params)
  19649. //
  19650. // err := req.Send()
  19651. // if err == nil { // resp is now filled
  19652. // fmt.Println(resp)
  19653. // }
  19654. //
  19655. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  19656. func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressInput) (req *request.Request, output *RevokeSecurityGroupEgressOutput) {
  19657. op := &request.Operation{
  19658. Name: opRevokeSecurityGroupEgress,
  19659. HTTPMethod: "POST",
  19660. HTTPPath: "/",
  19661. }
  19662. if input == nil {
  19663. input = &RevokeSecurityGroupEgressInput{}
  19664. }
  19665. output = &RevokeSecurityGroupEgressOutput{}
  19666. req = c.newRequest(op, input, output)
  19667. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19668. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19669. return
  19670. }
  19671. // RevokeSecurityGroupEgress API operation for Amazon Elastic Compute Cloud.
  19672. //
  19673. // [EC2-VPC only] Removes one or more egress rules from a security group for
  19674. // EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic.
  19675. // To remove a rule, the values that you specify (for example, ports) must match
  19676. // the existing rule's values exactly.
  19677. //
  19678. // Each rule consists of the protocol and the IPv4 or IPv6 CIDR range or source
  19679. // security group. For the TCP and UDP protocols, you must also specify the
  19680. // destination port or range of ports. For the ICMP protocol, you must also
  19681. // specify the ICMP type and code. If the security group rule has a description,
  19682. // you do not have to specify the description to revoke the rule.
  19683. //
  19684. // Rule changes are propagated to instances within the security group as quickly
  19685. // as possible. However, a small delay might occur.
  19686. //
  19687. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19688. // with awserr.Error's Code and Message methods to get detailed information about
  19689. // the error.
  19690. //
  19691. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19692. // API operation RevokeSecurityGroupEgress for usage and error information.
  19693. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgress
  19694. func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) {
  19695. req, out := c.RevokeSecurityGroupEgressRequest(input)
  19696. return out, req.Send()
  19697. }
  19698. // RevokeSecurityGroupEgressWithContext is the same as RevokeSecurityGroupEgress with the addition of
  19699. // the ability to pass a context and additional request options.
  19700. //
  19701. // See RevokeSecurityGroupEgress for details on how to use this API operation.
  19702. //
  19703. // The context must be non-nil and will be used for request cancellation. If
  19704. // the context is nil a panic will occur. In the future the SDK may create
  19705. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19706. // for more information on using Contexts.
  19707. func (c *EC2) RevokeSecurityGroupEgressWithContext(ctx aws.Context, input *RevokeSecurityGroupEgressInput, opts ...request.Option) (*RevokeSecurityGroupEgressOutput, error) {
  19708. req, out := c.RevokeSecurityGroupEgressRequest(input)
  19709. req.SetContext(ctx)
  19710. req.ApplyOptions(opts...)
  19711. return out, req.Send()
  19712. }
  19713. const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress"
  19714. // RevokeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  19715. // client's request for the RevokeSecurityGroupIngress operation. The "output" return
  19716. // value will be populated with the request's response once the request complets
  19717. // successfuly.
  19718. //
  19719. // Use "Send" method on the returned Request to send the API call to the service.
  19720. // the "output" return value is not valid until after Send returns without error.
  19721. //
  19722. // See RevokeSecurityGroupIngress for more information on using the RevokeSecurityGroupIngress
  19723. // API call, and error handling.
  19724. //
  19725. // This method is useful when you want to inject custom logic or configuration
  19726. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19727. //
  19728. //
  19729. // // Example sending a request using the RevokeSecurityGroupIngressRequest method.
  19730. // req, resp := client.RevokeSecurityGroupIngressRequest(params)
  19731. //
  19732. // err := req.Send()
  19733. // if err == nil { // resp is now filled
  19734. // fmt.Println(resp)
  19735. // }
  19736. //
  19737. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  19738. func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngressInput) (req *request.Request, output *RevokeSecurityGroupIngressOutput) {
  19739. op := &request.Operation{
  19740. Name: opRevokeSecurityGroupIngress,
  19741. HTTPMethod: "POST",
  19742. HTTPPath: "/",
  19743. }
  19744. if input == nil {
  19745. input = &RevokeSecurityGroupIngressInput{}
  19746. }
  19747. output = &RevokeSecurityGroupIngressOutput{}
  19748. req = c.newRequest(op, input, output)
  19749. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  19750. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  19751. return
  19752. }
  19753. // RevokeSecurityGroupIngress API operation for Amazon Elastic Compute Cloud.
  19754. //
  19755. // Removes one or more ingress rules from a security group. To remove a rule,
  19756. // the values that you specify (for example, ports) must match the existing
  19757. // rule's values exactly.
  19758. //
  19759. // [EC2-Classic security groups only] If the values you specify do not match
  19760. // the existing rule's values, no error is returned. Use DescribeSecurityGroups
  19761. // to verify that the rule has been removed.
  19762. //
  19763. // Each rule consists of the protocol and the CIDR range or source security
  19764. // group. For the TCP and UDP protocols, you must also specify the destination
  19765. // port or range of ports. For the ICMP protocol, you must also specify the
  19766. // ICMP type and code. If the security group rule has a description, you do
  19767. // not have to specify the description to revoke the rule.
  19768. //
  19769. // Rule changes are propagated to instances within the security group as quickly
  19770. // as possible. However, a small delay might occur.
  19771. //
  19772. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19773. // with awserr.Error's Code and Message methods to get detailed information about
  19774. // the error.
  19775. //
  19776. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19777. // API operation RevokeSecurityGroupIngress for usage and error information.
  19778. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngress
  19779. func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) {
  19780. req, out := c.RevokeSecurityGroupIngressRequest(input)
  19781. return out, req.Send()
  19782. }
  19783. // RevokeSecurityGroupIngressWithContext is the same as RevokeSecurityGroupIngress with the addition of
  19784. // the ability to pass a context and additional request options.
  19785. //
  19786. // See RevokeSecurityGroupIngress for details on how to use this API operation.
  19787. //
  19788. // The context must be non-nil and will be used for request cancellation. If
  19789. // the context is nil a panic will occur. In the future the SDK may create
  19790. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19791. // for more information on using Contexts.
  19792. func (c *EC2) RevokeSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeSecurityGroupIngressInput, opts ...request.Option) (*RevokeSecurityGroupIngressOutput, error) {
  19793. req, out := c.RevokeSecurityGroupIngressRequest(input)
  19794. req.SetContext(ctx)
  19795. req.ApplyOptions(opts...)
  19796. return out, req.Send()
  19797. }
  19798. const opRunInstances = "RunInstances"
  19799. // RunInstancesRequest generates a "aws/request.Request" representing the
  19800. // client's request for the RunInstances operation. The "output" return
  19801. // value will be populated with the request's response once the request complets
  19802. // successfuly.
  19803. //
  19804. // Use "Send" method on the returned Request to send the API call to the service.
  19805. // the "output" return value is not valid until after Send returns without error.
  19806. //
  19807. // See RunInstances for more information on using the RunInstances
  19808. // API call, and error handling.
  19809. //
  19810. // This method is useful when you want to inject custom logic or configuration
  19811. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19812. //
  19813. //
  19814. // // Example sending a request using the RunInstancesRequest method.
  19815. // req, resp := client.RunInstancesRequest(params)
  19816. //
  19817. // err := req.Send()
  19818. // if err == nil { // resp is now filled
  19819. // fmt.Println(resp)
  19820. // }
  19821. //
  19822. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  19823. func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *Reservation) {
  19824. op := &request.Operation{
  19825. Name: opRunInstances,
  19826. HTTPMethod: "POST",
  19827. HTTPPath: "/",
  19828. }
  19829. if input == nil {
  19830. input = &RunInstancesInput{}
  19831. }
  19832. output = &Reservation{}
  19833. req = c.newRequest(op, input, output)
  19834. return
  19835. }
  19836. // RunInstances API operation for Amazon Elastic Compute Cloud.
  19837. //
  19838. // Launches the specified number of instances using an AMI for which you have
  19839. // permissions.
  19840. //
  19841. // You can specify a number of options, or leave the default options. The following
  19842. // rules apply:
  19843. //
  19844. // * [EC2-VPC] If you don't specify a subnet ID, we choose a default subnet
  19845. // from your default VPC for you. If you don't have a default VPC, you must
  19846. // specify a subnet ID in the request.
  19847. //
  19848. // * [EC2-Classic] If don't specify an Availability Zone, we choose one for
  19849. // you.
  19850. //
  19851. // * Some instance types must be launched into a VPC. If you do not have
  19852. // a default VPC, or if you do not specify a subnet ID, the request fails.
  19853. // 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).
  19854. //
  19855. // * [EC2-VPC] All instances have a network interface with a primary private
  19856. // IPv4 address. If you don't specify this address, we choose one from the
  19857. // IPv4 range of your subnet.
  19858. //
  19859. // * Not all instance types support IPv6 addresses. For more information,
  19860. // see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  19861. //
  19862. // * If you don't specify a security group ID, we use the default security
  19863. // group. For more information, see Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html).
  19864. //
  19865. // * If any of the AMIs have a product code attached for which the user has
  19866. // not subscribed, the request fails.
  19867. //
  19868. // You can create a launch template (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html),
  19869. // which is a resource that contains the parameters to launch an instance. When
  19870. // you launch an instance using RunInstances, you can specify the launch template
  19871. // instead of specifying the launch parameters.
  19872. //
  19873. // To ensure faster instance launches, break up large requests into smaller
  19874. // batches. For example, create five separate launch requests for 100 instances
  19875. // each instead of one launch request for 500 instances.
  19876. //
  19877. // An instance is ready for you to use when it's in the running state. You can
  19878. // check the state of your instance using DescribeInstances. You can tag instances
  19879. // and EBS volumes during launch, after launch, or both. For more information,
  19880. // see CreateTags and Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  19881. //
  19882. // Linux instances have access to the public key of the key pair at boot. You
  19883. // can use this key to provide secure access to the instance. Amazon EC2 public
  19884. // images use this feature to provide secure access without passwords. For more
  19885. // information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  19886. // in the Amazon Elastic Compute Cloud User Guide.
  19887. //
  19888. // For troubleshooting, see What To Do If An Instance Immediately Terminates
  19889. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html),
  19890. // and Troubleshooting Connecting to Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html)
  19891. // in the Amazon Elastic Compute Cloud User Guide.
  19892. //
  19893. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19894. // with awserr.Error's Code and Message methods to get detailed information about
  19895. // the error.
  19896. //
  19897. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19898. // API operation RunInstances for usage and error information.
  19899. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstances
  19900. func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) {
  19901. req, out := c.RunInstancesRequest(input)
  19902. return out, req.Send()
  19903. }
  19904. // RunInstancesWithContext is the same as RunInstances with the addition of
  19905. // the ability to pass a context and additional request options.
  19906. //
  19907. // See RunInstances for details on how to use this API operation.
  19908. //
  19909. // The context must be non-nil and will be used for request cancellation. If
  19910. // the context is nil a panic will occur. In the future the SDK may create
  19911. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19912. // for more information on using Contexts.
  19913. func (c *EC2) RunInstancesWithContext(ctx aws.Context, input *RunInstancesInput, opts ...request.Option) (*Reservation, error) {
  19914. req, out := c.RunInstancesRequest(input)
  19915. req.SetContext(ctx)
  19916. req.ApplyOptions(opts...)
  19917. return out, req.Send()
  19918. }
  19919. const opRunScheduledInstances = "RunScheduledInstances"
  19920. // RunScheduledInstancesRequest generates a "aws/request.Request" representing the
  19921. // client's request for the RunScheduledInstances operation. The "output" return
  19922. // value will be populated with the request's response once the request complets
  19923. // successfuly.
  19924. //
  19925. // Use "Send" method on the returned Request to send the API call to the service.
  19926. // the "output" return value is not valid until after Send returns without error.
  19927. //
  19928. // See RunScheduledInstances for more information on using the RunScheduledInstances
  19929. // API call, and error handling.
  19930. //
  19931. // This method is useful when you want to inject custom logic or configuration
  19932. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  19933. //
  19934. //
  19935. // // Example sending a request using the RunScheduledInstancesRequest method.
  19936. // req, resp := client.RunScheduledInstancesRequest(params)
  19937. //
  19938. // err := req.Send()
  19939. // if err == nil { // resp is now filled
  19940. // fmt.Println(resp)
  19941. // }
  19942. //
  19943. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  19944. func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (req *request.Request, output *RunScheduledInstancesOutput) {
  19945. op := &request.Operation{
  19946. Name: opRunScheduledInstances,
  19947. HTTPMethod: "POST",
  19948. HTTPPath: "/",
  19949. }
  19950. if input == nil {
  19951. input = &RunScheduledInstancesInput{}
  19952. }
  19953. output = &RunScheduledInstancesOutput{}
  19954. req = c.newRequest(op, input, output)
  19955. return
  19956. }
  19957. // RunScheduledInstances API operation for Amazon Elastic Compute Cloud.
  19958. //
  19959. // Launches the specified Scheduled Instances.
  19960. //
  19961. // Before you can launch a Scheduled Instance, you must purchase it and obtain
  19962. // an identifier using PurchaseScheduledInstances.
  19963. //
  19964. // You must launch a Scheduled Instance during its scheduled time period. You
  19965. // can't stop or reboot a Scheduled Instance, but you can terminate it as needed.
  19966. // If you terminate a Scheduled Instance before the current scheduled time period
  19967. // ends, you can launch it again after a few minutes. For more information,
  19968. // see Scheduled Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html)
  19969. // in the Amazon Elastic Compute Cloud User Guide.
  19970. //
  19971. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  19972. // with awserr.Error's Code and Message methods to get detailed information about
  19973. // the error.
  19974. //
  19975. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  19976. // API operation RunScheduledInstances for usage and error information.
  19977. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstances
  19978. func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) {
  19979. req, out := c.RunScheduledInstancesRequest(input)
  19980. return out, req.Send()
  19981. }
  19982. // RunScheduledInstancesWithContext is the same as RunScheduledInstances with the addition of
  19983. // the ability to pass a context and additional request options.
  19984. //
  19985. // See RunScheduledInstances for details on how to use this API operation.
  19986. //
  19987. // The context must be non-nil and will be used for request cancellation. If
  19988. // the context is nil a panic will occur. In the future the SDK may create
  19989. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  19990. // for more information on using Contexts.
  19991. func (c *EC2) RunScheduledInstancesWithContext(ctx aws.Context, input *RunScheduledInstancesInput, opts ...request.Option) (*RunScheduledInstancesOutput, error) {
  19992. req, out := c.RunScheduledInstancesRequest(input)
  19993. req.SetContext(ctx)
  19994. req.ApplyOptions(opts...)
  19995. return out, req.Send()
  19996. }
  19997. const opStartInstances = "StartInstances"
  19998. // StartInstancesRequest generates a "aws/request.Request" representing the
  19999. // client's request for the StartInstances operation. The "output" return
  20000. // value will be populated with the request's response once the request complets
  20001. // successfuly.
  20002. //
  20003. // Use "Send" method on the returned Request to send the API call to the service.
  20004. // the "output" return value is not valid until after Send returns without error.
  20005. //
  20006. // See StartInstances for more information on using the StartInstances
  20007. // API call, and error handling.
  20008. //
  20009. // This method is useful when you want to inject custom logic or configuration
  20010. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20011. //
  20012. //
  20013. // // Example sending a request using the StartInstancesRequest method.
  20014. // req, resp := client.StartInstancesRequest(params)
  20015. //
  20016. // err := req.Send()
  20017. // if err == nil { // resp is now filled
  20018. // fmt.Println(resp)
  20019. // }
  20020. //
  20021. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  20022. func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput) {
  20023. op := &request.Operation{
  20024. Name: opStartInstances,
  20025. HTTPMethod: "POST",
  20026. HTTPPath: "/",
  20027. }
  20028. if input == nil {
  20029. input = &StartInstancesInput{}
  20030. }
  20031. output = &StartInstancesOutput{}
  20032. req = c.newRequest(op, input, output)
  20033. return
  20034. }
  20035. // StartInstances API operation for Amazon Elastic Compute Cloud.
  20036. //
  20037. // Starts an Amazon EBS-backed instance that you've previously stopped.
  20038. //
  20039. // Instances that use Amazon EBS volumes as their root devices can be quickly
  20040. // stopped and started. When an instance is stopped, the compute resources are
  20041. // released and you are not billed for instance usage. However, your root partition
  20042. // Amazon EBS volume remains and continues to persist your data, and you are
  20043. // charged for Amazon EBS volume usage. You can restart your instance at any
  20044. // time. Every time you start your Windows instance, Amazon EC2 charges you
  20045. // for a full instance hour. If you stop and restart your Windows instance,
  20046. // a new instance hour begins and Amazon EC2 charges you for another full instance
  20047. // hour even if you are still within the same 60-minute period when it was stopped.
  20048. // Every time you start your Linux instance, Amazon EC2 charges a one-minute
  20049. // minimum for instance usage, and thereafter charges per second for instance
  20050. // usage.
  20051. //
  20052. // Before stopping an instance, make sure it is in a state from which it can
  20053. // be restarted. Stopping an instance does not preserve data stored in RAM.
  20054. //
  20055. // Performing this operation on an instance that uses an instance store as its
  20056. // root device returns an error.
  20057. //
  20058. // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html)
  20059. // in the Amazon Elastic Compute Cloud User Guide.
  20060. //
  20061. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20062. // with awserr.Error's Code and Message methods to get detailed information about
  20063. // the error.
  20064. //
  20065. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20066. // API operation StartInstances for usage and error information.
  20067. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstances
  20068. func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) {
  20069. req, out := c.StartInstancesRequest(input)
  20070. return out, req.Send()
  20071. }
  20072. // StartInstancesWithContext is the same as StartInstances with the addition of
  20073. // the ability to pass a context and additional request options.
  20074. //
  20075. // See StartInstances for details on how to use this API operation.
  20076. //
  20077. // The context must be non-nil and will be used for request cancellation. If
  20078. // the context is nil a panic will occur. In the future the SDK may create
  20079. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20080. // for more information on using Contexts.
  20081. func (c *EC2) StartInstancesWithContext(ctx aws.Context, input *StartInstancesInput, opts ...request.Option) (*StartInstancesOutput, error) {
  20082. req, out := c.StartInstancesRequest(input)
  20083. req.SetContext(ctx)
  20084. req.ApplyOptions(opts...)
  20085. return out, req.Send()
  20086. }
  20087. const opStopInstances = "StopInstances"
  20088. // StopInstancesRequest generates a "aws/request.Request" representing the
  20089. // client's request for the StopInstances operation. The "output" return
  20090. // value will be populated with the request's response once the request complets
  20091. // successfuly.
  20092. //
  20093. // Use "Send" method on the returned Request to send the API call to the service.
  20094. // the "output" return value is not valid until after Send returns without error.
  20095. //
  20096. // See StopInstances for more information on using the StopInstances
  20097. // API call, and error handling.
  20098. //
  20099. // This method is useful when you want to inject custom logic or configuration
  20100. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20101. //
  20102. //
  20103. // // Example sending a request using the StopInstancesRequest method.
  20104. // req, resp := client.StopInstancesRequest(params)
  20105. //
  20106. // err := req.Send()
  20107. // if err == nil { // resp is now filled
  20108. // fmt.Println(resp)
  20109. // }
  20110. //
  20111. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  20112. func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput) {
  20113. op := &request.Operation{
  20114. Name: opStopInstances,
  20115. HTTPMethod: "POST",
  20116. HTTPPath: "/",
  20117. }
  20118. if input == nil {
  20119. input = &StopInstancesInput{}
  20120. }
  20121. output = &StopInstancesOutput{}
  20122. req = c.newRequest(op, input, output)
  20123. return
  20124. }
  20125. // StopInstances API operation for Amazon Elastic Compute Cloud.
  20126. //
  20127. // Stops an Amazon EBS-backed instance.
  20128. //
  20129. // We don't charge usage for a stopped instance, or data transfer fees; however,
  20130. // your root partition Amazon EBS volume remains and continues to persist your
  20131. // data, and you are charged for Amazon EBS volume usage. Every time you start
  20132. // your Windows instance, Amazon EC2 charges you for a full instance hour. If
  20133. // you stop and restart your Windows instance, a new instance hour begins and
  20134. // Amazon EC2 charges you for another full instance hour even if you are still
  20135. // within the same 60-minute period when it was stopped. Every time you start
  20136. // your Linux instance, Amazon EC2 charges a one-minute minimum for instance
  20137. // usage, and thereafter charges per second for instance usage.
  20138. //
  20139. // You can't start or stop Spot Instances, and you can't stop instance store-backed
  20140. // instances.
  20141. //
  20142. // When you stop an instance, we shut it down. You can restart your instance
  20143. // at any time. Before stopping an instance, make sure it is in a state from
  20144. // which it can be restarted. Stopping an instance does not preserve data stored
  20145. // in RAM.
  20146. //
  20147. // Stopping an instance is different to rebooting or terminating it. For example,
  20148. // when you stop an instance, the root device and any other devices attached
  20149. // to the instance persist. When you terminate an instance, the root device
  20150. // and any other devices attached during the instance launch are automatically
  20151. // deleted. For more information about the differences between rebooting, stopping,
  20152. // and terminating instances, see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  20153. // in the Amazon Elastic Compute Cloud User Guide.
  20154. //
  20155. // When you stop an instance, we attempt to shut it down forcibly after a short
  20156. // while. If your instance appears stuck in the stopping state after a period
  20157. // of time, there may be an issue with the underlying host computer. For more
  20158. // information, see Troubleshooting Stopping Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html)
  20159. // in the Amazon Elastic Compute Cloud User Guide.
  20160. //
  20161. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20162. // with awserr.Error's Code and Message methods to get detailed information about
  20163. // the error.
  20164. //
  20165. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20166. // API operation StopInstances for usage and error information.
  20167. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstances
  20168. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) {
  20169. req, out := c.StopInstancesRequest(input)
  20170. return out, req.Send()
  20171. }
  20172. // StopInstancesWithContext is the same as StopInstances with the addition of
  20173. // the ability to pass a context and additional request options.
  20174. //
  20175. // See StopInstances for details on how to use this API operation.
  20176. //
  20177. // The context must be non-nil and will be used for request cancellation. If
  20178. // the context is nil a panic will occur. In the future the SDK may create
  20179. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20180. // for more information on using Contexts.
  20181. func (c *EC2) StopInstancesWithContext(ctx aws.Context, input *StopInstancesInput, opts ...request.Option) (*StopInstancesOutput, error) {
  20182. req, out := c.StopInstancesRequest(input)
  20183. req.SetContext(ctx)
  20184. req.ApplyOptions(opts...)
  20185. return out, req.Send()
  20186. }
  20187. const opTerminateInstances = "TerminateInstances"
  20188. // TerminateInstancesRequest generates a "aws/request.Request" representing the
  20189. // client's request for the TerminateInstances operation. The "output" return
  20190. // value will be populated with the request's response once the request complets
  20191. // successfuly.
  20192. //
  20193. // Use "Send" method on the returned Request to send the API call to the service.
  20194. // the "output" return value is not valid until after Send returns without error.
  20195. //
  20196. // See TerminateInstances for more information on using the TerminateInstances
  20197. // API call, and error handling.
  20198. //
  20199. // This method is useful when you want to inject custom logic or configuration
  20200. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20201. //
  20202. //
  20203. // // Example sending a request using the TerminateInstancesRequest method.
  20204. // req, resp := client.TerminateInstancesRequest(params)
  20205. //
  20206. // err := req.Send()
  20207. // if err == nil { // resp is now filled
  20208. // fmt.Println(resp)
  20209. // }
  20210. //
  20211. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  20212. func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput) {
  20213. op := &request.Operation{
  20214. Name: opTerminateInstances,
  20215. HTTPMethod: "POST",
  20216. HTTPPath: "/",
  20217. }
  20218. if input == nil {
  20219. input = &TerminateInstancesInput{}
  20220. }
  20221. output = &TerminateInstancesOutput{}
  20222. req = c.newRequest(op, input, output)
  20223. return
  20224. }
  20225. // TerminateInstances API operation for Amazon Elastic Compute Cloud.
  20226. //
  20227. // Shuts down one or more instances. This operation is idempotent; if you terminate
  20228. // an instance more than once, each call succeeds.
  20229. //
  20230. // If you specify multiple instances and the request fails (for example, because
  20231. // of a single incorrect instance ID), none of the instances are terminated.
  20232. //
  20233. // Terminated instances remain visible after termination (for approximately
  20234. // one hour).
  20235. //
  20236. // By default, Amazon EC2 deletes all EBS volumes that were attached when the
  20237. // instance launched. Volumes attached after instance launch continue running.
  20238. //
  20239. // You can stop, start, and terminate EBS-backed instances. You can only terminate
  20240. // instance store-backed instances. What happens to an instance differs if you
  20241. // stop it or terminate it. For example, when you stop an instance, the root
  20242. // device and any other devices attached to the instance persist. When you terminate
  20243. // an instance, any attached EBS volumes with the DeleteOnTermination block
  20244. // device mapping parameter set to true are automatically deleted. For more
  20245. // information about the differences between stopping and terminating instances,
  20246. // see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  20247. // in the Amazon Elastic Compute Cloud User Guide.
  20248. //
  20249. // For more information about troubleshooting, see Troubleshooting Terminating
  20250. // Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html)
  20251. // in the Amazon Elastic Compute Cloud User Guide.
  20252. //
  20253. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20254. // with awserr.Error's Code and Message methods to get detailed information about
  20255. // the error.
  20256. //
  20257. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20258. // API operation TerminateInstances for usage and error information.
  20259. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstances
  20260. func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) {
  20261. req, out := c.TerminateInstancesRequest(input)
  20262. return out, req.Send()
  20263. }
  20264. // TerminateInstancesWithContext is the same as TerminateInstances with the addition of
  20265. // the ability to pass a context and additional request options.
  20266. //
  20267. // See TerminateInstances for details on how to use this API operation.
  20268. //
  20269. // The context must be non-nil and will be used for request cancellation. If
  20270. // the context is nil a panic will occur. In the future the SDK may create
  20271. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20272. // for more information on using Contexts.
  20273. func (c *EC2) TerminateInstancesWithContext(ctx aws.Context, input *TerminateInstancesInput, opts ...request.Option) (*TerminateInstancesOutput, error) {
  20274. req, out := c.TerminateInstancesRequest(input)
  20275. req.SetContext(ctx)
  20276. req.ApplyOptions(opts...)
  20277. return out, req.Send()
  20278. }
  20279. const opUnassignIpv6Addresses = "UnassignIpv6Addresses"
  20280. // UnassignIpv6AddressesRequest generates a "aws/request.Request" representing the
  20281. // client's request for the UnassignIpv6Addresses operation. The "output" return
  20282. // value will be populated with the request's response once the request complets
  20283. // successfuly.
  20284. //
  20285. // Use "Send" method on the returned Request to send the API call to the service.
  20286. // the "output" return value is not valid until after Send returns without error.
  20287. //
  20288. // See UnassignIpv6Addresses for more information on using the UnassignIpv6Addresses
  20289. // API call, and error handling.
  20290. //
  20291. // This method is useful when you want to inject custom logic or configuration
  20292. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20293. //
  20294. //
  20295. // // Example sending a request using the UnassignIpv6AddressesRequest method.
  20296. // req, resp := client.UnassignIpv6AddressesRequest(params)
  20297. //
  20298. // err := req.Send()
  20299. // if err == nil { // resp is now filled
  20300. // fmt.Println(resp)
  20301. // }
  20302. //
  20303. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  20304. func (c *EC2) UnassignIpv6AddressesRequest(input *UnassignIpv6AddressesInput) (req *request.Request, output *UnassignIpv6AddressesOutput) {
  20305. op := &request.Operation{
  20306. Name: opUnassignIpv6Addresses,
  20307. HTTPMethod: "POST",
  20308. HTTPPath: "/",
  20309. }
  20310. if input == nil {
  20311. input = &UnassignIpv6AddressesInput{}
  20312. }
  20313. output = &UnassignIpv6AddressesOutput{}
  20314. req = c.newRequest(op, input, output)
  20315. return
  20316. }
  20317. // UnassignIpv6Addresses API operation for Amazon Elastic Compute Cloud.
  20318. //
  20319. // Unassigns one or more IPv6 addresses from a network interface.
  20320. //
  20321. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20322. // with awserr.Error's Code and Message methods to get detailed information about
  20323. // the error.
  20324. //
  20325. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20326. // API operation UnassignIpv6Addresses for usage and error information.
  20327. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6Addresses
  20328. func (c *EC2) UnassignIpv6Addresses(input *UnassignIpv6AddressesInput) (*UnassignIpv6AddressesOutput, error) {
  20329. req, out := c.UnassignIpv6AddressesRequest(input)
  20330. return out, req.Send()
  20331. }
  20332. // UnassignIpv6AddressesWithContext is the same as UnassignIpv6Addresses with the addition of
  20333. // the ability to pass a context and additional request options.
  20334. //
  20335. // See UnassignIpv6Addresses for details on how to use this API operation.
  20336. //
  20337. // The context must be non-nil and will be used for request cancellation. If
  20338. // the context is nil a panic will occur. In the future the SDK may create
  20339. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20340. // for more information on using Contexts.
  20341. func (c *EC2) UnassignIpv6AddressesWithContext(ctx aws.Context, input *UnassignIpv6AddressesInput, opts ...request.Option) (*UnassignIpv6AddressesOutput, error) {
  20342. req, out := c.UnassignIpv6AddressesRequest(input)
  20343. req.SetContext(ctx)
  20344. req.ApplyOptions(opts...)
  20345. return out, req.Send()
  20346. }
  20347. const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses"
  20348. // UnassignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  20349. // client's request for the UnassignPrivateIpAddresses operation. The "output" return
  20350. // value will be populated with the request's response once the request complets
  20351. // successfuly.
  20352. //
  20353. // Use "Send" method on the returned Request to send the API call to the service.
  20354. // the "output" return value is not valid until after Send returns without error.
  20355. //
  20356. // See UnassignPrivateIpAddresses for more information on using the UnassignPrivateIpAddresses
  20357. // API call, and error handling.
  20358. //
  20359. // This method is useful when you want to inject custom logic or configuration
  20360. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20361. //
  20362. //
  20363. // // Example sending a request using the UnassignPrivateIpAddressesRequest method.
  20364. // req, resp := client.UnassignPrivateIpAddressesRequest(params)
  20365. //
  20366. // err := req.Send()
  20367. // if err == nil { // resp is now filled
  20368. // fmt.Println(resp)
  20369. // }
  20370. //
  20371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  20372. func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddressesInput) (req *request.Request, output *UnassignPrivateIpAddressesOutput) {
  20373. op := &request.Operation{
  20374. Name: opUnassignPrivateIpAddresses,
  20375. HTTPMethod: "POST",
  20376. HTTPPath: "/",
  20377. }
  20378. if input == nil {
  20379. input = &UnassignPrivateIpAddressesInput{}
  20380. }
  20381. output = &UnassignPrivateIpAddressesOutput{}
  20382. req = c.newRequest(op, input, output)
  20383. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  20384. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  20385. return
  20386. }
  20387. // UnassignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud.
  20388. //
  20389. // Unassigns one or more secondary private IP addresses from a network interface.
  20390. //
  20391. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20392. // with awserr.Error's Code and Message methods to get detailed information about
  20393. // the error.
  20394. //
  20395. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20396. // API operation UnassignPrivateIpAddresses for usage and error information.
  20397. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddresses
  20398. func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) {
  20399. req, out := c.UnassignPrivateIpAddressesRequest(input)
  20400. return out, req.Send()
  20401. }
  20402. // UnassignPrivateIpAddressesWithContext is the same as UnassignPrivateIpAddresses with the addition of
  20403. // the ability to pass a context and additional request options.
  20404. //
  20405. // See UnassignPrivateIpAddresses for details on how to use this API operation.
  20406. //
  20407. // The context must be non-nil and will be used for request cancellation. If
  20408. // the context is nil a panic will occur. In the future the SDK may create
  20409. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20410. // for more information on using Contexts.
  20411. func (c *EC2) UnassignPrivateIpAddressesWithContext(ctx aws.Context, input *UnassignPrivateIpAddressesInput, opts ...request.Option) (*UnassignPrivateIpAddressesOutput, error) {
  20412. req, out := c.UnassignPrivateIpAddressesRequest(input)
  20413. req.SetContext(ctx)
  20414. req.ApplyOptions(opts...)
  20415. return out, req.Send()
  20416. }
  20417. const opUnmonitorInstances = "UnmonitorInstances"
  20418. // UnmonitorInstancesRequest generates a "aws/request.Request" representing the
  20419. // client's request for the UnmonitorInstances operation. The "output" return
  20420. // value will be populated with the request's response once the request complets
  20421. // successfuly.
  20422. //
  20423. // Use "Send" method on the returned Request to send the API call to the service.
  20424. // the "output" return value is not valid until after Send returns without error.
  20425. //
  20426. // See UnmonitorInstances for more information on using the UnmonitorInstances
  20427. // API call, and error handling.
  20428. //
  20429. // This method is useful when you want to inject custom logic or configuration
  20430. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20431. //
  20432. //
  20433. // // Example sending a request using the UnmonitorInstancesRequest method.
  20434. // req, resp := client.UnmonitorInstancesRequest(params)
  20435. //
  20436. // err := req.Send()
  20437. // if err == nil { // resp is now filled
  20438. // fmt.Println(resp)
  20439. // }
  20440. //
  20441. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  20442. func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *request.Request, output *UnmonitorInstancesOutput) {
  20443. op := &request.Operation{
  20444. Name: opUnmonitorInstances,
  20445. HTTPMethod: "POST",
  20446. HTTPPath: "/",
  20447. }
  20448. if input == nil {
  20449. input = &UnmonitorInstancesInput{}
  20450. }
  20451. output = &UnmonitorInstancesOutput{}
  20452. req = c.newRequest(op, input, output)
  20453. return
  20454. }
  20455. // UnmonitorInstances API operation for Amazon Elastic Compute Cloud.
  20456. //
  20457. // Disables detailed monitoring for a running instance. For more information,
  20458. // see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  20459. // in the Amazon Elastic Compute Cloud User Guide.
  20460. //
  20461. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20462. // with awserr.Error's Code and Message methods to get detailed information about
  20463. // the error.
  20464. //
  20465. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20466. // API operation UnmonitorInstances for usage and error information.
  20467. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstances
  20468. func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInstancesOutput, error) {
  20469. req, out := c.UnmonitorInstancesRequest(input)
  20470. return out, req.Send()
  20471. }
  20472. // UnmonitorInstancesWithContext is the same as UnmonitorInstances with the addition of
  20473. // the ability to pass a context and additional request options.
  20474. //
  20475. // See UnmonitorInstances for details on how to use this API operation.
  20476. //
  20477. // The context must be non-nil and will be used for request cancellation. If
  20478. // the context is nil a panic will occur. In the future the SDK may create
  20479. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20480. // for more information on using Contexts.
  20481. func (c *EC2) UnmonitorInstancesWithContext(ctx aws.Context, input *UnmonitorInstancesInput, opts ...request.Option) (*UnmonitorInstancesOutput, error) {
  20482. req, out := c.UnmonitorInstancesRequest(input)
  20483. req.SetContext(ctx)
  20484. req.ApplyOptions(opts...)
  20485. return out, req.Send()
  20486. }
  20487. const opUpdateSecurityGroupRuleDescriptionsEgress = "UpdateSecurityGroupRuleDescriptionsEgress"
  20488. // UpdateSecurityGroupRuleDescriptionsEgressRequest generates a "aws/request.Request" representing the
  20489. // client's request for the UpdateSecurityGroupRuleDescriptionsEgress operation. The "output" return
  20490. // value will be populated with the request's response once the request complets
  20491. // successfuly.
  20492. //
  20493. // Use "Send" method on the returned Request to send the API call to the service.
  20494. // the "output" return value is not valid until after Send returns without error.
  20495. //
  20496. // See UpdateSecurityGroupRuleDescriptionsEgress for more information on using the UpdateSecurityGroupRuleDescriptionsEgress
  20497. // API call, and error handling.
  20498. //
  20499. // This method is useful when you want to inject custom logic or configuration
  20500. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20501. //
  20502. //
  20503. // // Example sending a request using the UpdateSecurityGroupRuleDescriptionsEgressRequest method.
  20504. // req, resp := client.UpdateSecurityGroupRuleDescriptionsEgressRequest(params)
  20505. //
  20506. // err := req.Send()
  20507. // if err == nil { // resp is now filled
  20508. // fmt.Println(resp)
  20509. // }
  20510. //
  20511. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress
  20512. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgressRequest(input *UpdateSecurityGroupRuleDescriptionsEgressInput) (req *request.Request, output *UpdateSecurityGroupRuleDescriptionsEgressOutput) {
  20513. op := &request.Operation{
  20514. Name: opUpdateSecurityGroupRuleDescriptionsEgress,
  20515. HTTPMethod: "POST",
  20516. HTTPPath: "/",
  20517. }
  20518. if input == nil {
  20519. input = &UpdateSecurityGroupRuleDescriptionsEgressInput{}
  20520. }
  20521. output = &UpdateSecurityGroupRuleDescriptionsEgressOutput{}
  20522. req = c.newRequest(op, input, output)
  20523. return
  20524. }
  20525. // UpdateSecurityGroupRuleDescriptionsEgress API operation for Amazon Elastic Compute Cloud.
  20526. //
  20527. // [EC2-VPC only] Updates the description of an egress (outbound) security group
  20528. // rule. You can replace an existing description, or add a description to a
  20529. // rule that did not have one previously.
  20530. //
  20531. // You specify the description as part of the IP permissions structure. You
  20532. // can remove a description for a security group rule by omitting the description
  20533. // parameter in the request.
  20534. //
  20535. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20536. // with awserr.Error's Code and Message methods to get detailed information about
  20537. // the error.
  20538. //
  20539. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20540. // API operation UpdateSecurityGroupRuleDescriptionsEgress for usage and error information.
  20541. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgress
  20542. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgress(input *UpdateSecurityGroupRuleDescriptionsEgressInput) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
  20543. req, out := c.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
  20544. return out, req.Send()
  20545. }
  20546. // UpdateSecurityGroupRuleDescriptionsEgressWithContext is the same as UpdateSecurityGroupRuleDescriptionsEgress with the addition of
  20547. // the ability to pass a context and additional request options.
  20548. //
  20549. // See UpdateSecurityGroupRuleDescriptionsEgress for details on how to use this API operation.
  20550. //
  20551. // The context must be non-nil and will be used for request cancellation. If
  20552. // the context is nil a panic will occur. In the future the SDK may create
  20553. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20554. // for more information on using Contexts.
  20555. func (c *EC2) UpdateSecurityGroupRuleDescriptionsEgressWithContext(ctx aws.Context, input *UpdateSecurityGroupRuleDescriptionsEgressInput, opts ...request.Option) (*UpdateSecurityGroupRuleDescriptionsEgressOutput, error) {
  20556. req, out := c.UpdateSecurityGroupRuleDescriptionsEgressRequest(input)
  20557. req.SetContext(ctx)
  20558. req.ApplyOptions(opts...)
  20559. return out, req.Send()
  20560. }
  20561. const opUpdateSecurityGroupRuleDescriptionsIngress = "UpdateSecurityGroupRuleDescriptionsIngress"
  20562. // UpdateSecurityGroupRuleDescriptionsIngressRequest generates a "aws/request.Request" representing the
  20563. // client's request for the UpdateSecurityGroupRuleDescriptionsIngress operation. The "output" return
  20564. // value will be populated with the request's response once the request complets
  20565. // successfuly.
  20566. //
  20567. // Use "Send" method on the returned Request to send the API call to the service.
  20568. // the "output" return value is not valid until after Send returns without error.
  20569. //
  20570. // See UpdateSecurityGroupRuleDescriptionsIngress for more information on using the UpdateSecurityGroupRuleDescriptionsIngress
  20571. // API call, and error handling.
  20572. //
  20573. // This method is useful when you want to inject custom logic or configuration
  20574. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  20575. //
  20576. //
  20577. // // Example sending a request using the UpdateSecurityGroupRuleDescriptionsIngressRequest method.
  20578. // req, resp := client.UpdateSecurityGroupRuleDescriptionsIngressRequest(params)
  20579. //
  20580. // err := req.Send()
  20581. // if err == nil { // resp is now filled
  20582. // fmt.Println(resp)
  20583. // }
  20584. //
  20585. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress
  20586. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressRequest(input *UpdateSecurityGroupRuleDescriptionsIngressInput) (req *request.Request, output *UpdateSecurityGroupRuleDescriptionsIngressOutput) {
  20587. op := &request.Operation{
  20588. Name: opUpdateSecurityGroupRuleDescriptionsIngress,
  20589. HTTPMethod: "POST",
  20590. HTTPPath: "/",
  20591. }
  20592. if input == nil {
  20593. input = &UpdateSecurityGroupRuleDescriptionsIngressInput{}
  20594. }
  20595. output = &UpdateSecurityGroupRuleDescriptionsIngressOutput{}
  20596. req = c.newRequest(op, input, output)
  20597. return
  20598. }
  20599. // UpdateSecurityGroupRuleDescriptionsIngress API operation for Amazon Elastic Compute Cloud.
  20600. //
  20601. // Updates the description of an ingress (inbound) security group rule. You
  20602. // can replace an existing description, or add a description to a rule that
  20603. // did not have one previously.
  20604. //
  20605. // You specify the description as part of the IP permissions structure. You
  20606. // can remove a description for a security group rule by omitting the description
  20607. // parameter in the request.
  20608. //
  20609. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  20610. // with awserr.Error's Code and Message methods to get detailed information about
  20611. // the error.
  20612. //
  20613. // See the AWS API reference guide for Amazon Elastic Compute Cloud's
  20614. // API operation UpdateSecurityGroupRuleDescriptionsIngress for usage and error information.
  20615. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngress
  20616. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngress(input *UpdateSecurityGroupRuleDescriptionsIngressInput) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
  20617. req, out := c.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
  20618. return out, req.Send()
  20619. }
  20620. // UpdateSecurityGroupRuleDescriptionsIngressWithContext is the same as UpdateSecurityGroupRuleDescriptionsIngress with the addition of
  20621. // the ability to pass a context and additional request options.
  20622. //
  20623. // See UpdateSecurityGroupRuleDescriptionsIngress for details on how to use this API operation.
  20624. //
  20625. // The context must be non-nil and will be used for request cancellation. If
  20626. // the context is nil a panic will occur. In the future the SDK may create
  20627. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  20628. // for more information on using Contexts.
  20629. func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressWithContext(ctx aws.Context, input *UpdateSecurityGroupRuleDescriptionsIngressInput, opts ...request.Option) (*UpdateSecurityGroupRuleDescriptionsIngressOutput, error) {
  20630. req, out := c.UpdateSecurityGroupRuleDescriptionsIngressRequest(input)
  20631. req.SetContext(ctx)
  20632. req.ApplyOptions(opts...)
  20633. return out, req.Send()
  20634. }
  20635. // Contains the parameters for accepting the quote.
  20636. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuoteRequest
  20637. type AcceptReservedInstancesExchangeQuoteInput struct {
  20638. _ struct{} `type:"structure"`
  20639. // Checks whether you have the required permissions for the action, without
  20640. // actually making the request, and provides an error response. If you have
  20641. // the required permissions, the error response is DryRunOperation. Otherwise,
  20642. // it is UnauthorizedOperation.
  20643. DryRun *bool `type:"boolean"`
  20644. // The IDs of the Convertible Reserved Instances to exchange for another Convertible
  20645. // Reserved Instance of the same or higher value.
  20646. //
  20647. // ReservedInstanceIds is a required field
  20648. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  20649. // The configuration of the target Convertible Reserved Instance to exchange
  20650. // for your current Convertible Reserved Instances.
  20651. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  20652. }
  20653. // String returns the string representation
  20654. func (s AcceptReservedInstancesExchangeQuoteInput) String() string {
  20655. return awsutil.Prettify(s)
  20656. }
  20657. // GoString returns the string representation
  20658. func (s AcceptReservedInstancesExchangeQuoteInput) GoString() string {
  20659. return s.String()
  20660. }
  20661. // Validate inspects the fields of the type to determine if they are valid.
  20662. func (s *AcceptReservedInstancesExchangeQuoteInput) Validate() error {
  20663. invalidParams := request.ErrInvalidParams{Context: "AcceptReservedInstancesExchangeQuoteInput"}
  20664. if s.ReservedInstanceIds == nil {
  20665. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  20666. }
  20667. if s.TargetConfigurations != nil {
  20668. for i, v := range s.TargetConfigurations {
  20669. if v == nil {
  20670. continue
  20671. }
  20672. if err := v.Validate(); err != nil {
  20673. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  20674. }
  20675. }
  20676. }
  20677. if invalidParams.Len() > 0 {
  20678. return invalidParams
  20679. }
  20680. return nil
  20681. }
  20682. // SetDryRun sets the DryRun field's value.
  20683. func (s *AcceptReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *AcceptReservedInstancesExchangeQuoteInput {
  20684. s.DryRun = &v
  20685. return s
  20686. }
  20687. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  20688. func (s *AcceptReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *AcceptReservedInstancesExchangeQuoteInput {
  20689. s.ReservedInstanceIds = v
  20690. return s
  20691. }
  20692. // SetTargetConfigurations sets the TargetConfigurations field's value.
  20693. func (s *AcceptReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *AcceptReservedInstancesExchangeQuoteInput {
  20694. s.TargetConfigurations = v
  20695. return s
  20696. }
  20697. // The result of the exchange and whether it was successful.
  20698. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptReservedInstancesExchangeQuoteResult
  20699. type AcceptReservedInstancesExchangeQuoteOutput struct {
  20700. _ struct{} `type:"structure"`
  20701. // The ID of the successful exchange.
  20702. ExchangeId *string `locationName:"exchangeId" type:"string"`
  20703. }
  20704. // String returns the string representation
  20705. func (s AcceptReservedInstancesExchangeQuoteOutput) String() string {
  20706. return awsutil.Prettify(s)
  20707. }
  20708. // GoString returns the string representation
  20709. func (s AcceptReservedInstancesExchangeQuoteOutput) GoString() string {
  20710. return s.String()
  20711. }
  20712. // SetExchangeId sets the ExchangeId field's value.
  20713. func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *AcceptReservedInstancesExchangeQuoteOutput {
  20714. s.ExchangeId = &v
  20715. return s
  20716. }
  20717. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnectionsRequest
  20718. type AcceptVpcEndpointConnectionsInput struct {
  20719. _ struct{} `type:"structure"`
  20720. // Checks whether you have the required permissions for the action, without
  20721. // actually making the request, and provides an error response. If you have
  20722. // the required permissions, the error response is DryRunOperation. Otherwise,
  20723. // it is UnauthorizedOperation.
  20724. DryRun *bool `type:"boolean"`
  20725. // The ID of the endpoint service.
  20726. //
  20727. // ServiceId is a required field
  20728. ServiceId *string `type:"string" required:"true"`
  20729. // The IDs of one or more interface VPC endpoints.
  20730. //
  20731. // VpcEndpointIds is a required field
  20732. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  20733. }
  20734. // String returns the string representation
  20735. func (s AcceptVpcEndpointConnectionsInput) String() string {
  20736. return awsutil.Prettify(s)
  20737. }
  20738. // GoString returns the string representation
  20739. func (s AcceptVpcEndpointConnectionsInput) GoString() string {
  20740. return s.String()
  20741. }
  20742. // Validate inspects the fields of the type to determine if they are valid.
  20743. func (s *AcceptVpcEndpointConnectionsInput) Validate() error {
  20744. invalidParams := request.ErrInvalidParams{Context: "AcceptVpcEndpointConnectionsInput"}
  20745. if s.ServiceId == nil {
  20746. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  20747. }
  20748. if s.VpcEndpointIds == nil {
  20749. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  20750. }
  20751. if invalidParams.Len() > 0 {
  20752. return invalidParams
  20753. }
  20754. return nil
  20755. }
  20756. // SetDryRun sets the DryRun field's value.
  20757. func (s *AcceptVpcEndpointConnectionsInput) SetDryRun(v bool) *AcceptVpcEndpointConnectionsInput {
  20758. s.DryRun = &v
  20759. return s
  20760. }
  20761. // SetServiceId sets the ServiceId field's value.
  20762. func (s *AcceptVpcEndpointConnectionsInput) SetServiceId(v string) *AcceptVpcEndpointConnectionsInput {
  20763. s.ServiceId = &v
  20764. return s
  20765. }
  20766. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  20767. func (s *AcceptVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *AcceptVpcEndpointConnectionsInput {
  20768. s.VpcEndpointIds = v
  20769. return s
  20770. }
  20771. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcEndpointConnectionsResult
  20772. type AcceptVpcEndpointConnectionsOutput struct {
  20773. _ struct{} `type:"structure"`
  20774. // Information about the interface endpoints that were not accepted, if applicable.
  20775. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  20776. }
  20777. // String returns the string representation
  20778. func (s AcceptVpcEndpointConnectionsOutput) String() string {
  20779. return awsutil.Prettify(s)
  20780. }
  20781. // GoString returns the string representation
  20782. func (s AcceptVpcEndpointConnectionsOutput) GoString() string {
  20783. return s.String()
  20784. }
  20785. // SetUnsuccessful sets the Unsuccessful field's value.
  20786. func (s *AcceptVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *AcceptVpcEndpointConnectionsOutput {
  20787. s.Unsuccessful = v
  20788. return s
  20789. }
  20790. // Contains the parameters for AcceptVpcPeeringConnection.
  20791. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnectionRequest
  20792. type AcceptVpcPeeringConnectionInput struct {
  20793. _ struct{} `type:"structure"`
  20794. // Checks whether you have the required permissions for the action, without
  20795. // actually making the request, and provides an error response. If you have
  20796. // the required permissions, the error response is DryRunOperation. Otherwise,
  20797. // it is UnauthorizedOperation.
  20798. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20799. // The ID of the VPC peering connection. You must specify this parameter in
  20800. // the request.
  20801. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  20802. }
  20803. // String returns the string representation
  20804. func (s AcceptVpcPeeringConnectionInput) String() string {
  20805. return awsutil.Prettify(s)
  20806. }
  20807. // GoString returns the string representation
  20808. func (s AcceptVpcPeeringConnectionInput) GoString() string {
  20809. return s.String()
  20810. }
  20811. // SetDryRun sets the DryRun field's value.
  20812. func (s *AcceptVpcPeeringConnectionInput) SetDryRun(v bool) *AcceptVpcPeeringConnectionInput {
  20813. s.DryRun = &v
  20814. return s
  20815. }
  20816. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  20817. func (s *AcceptVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *AcceptVpcPeeringConnectionInput {
  20818. s.VpcPeeringConnectionId = &v
  20819. return s
  20820. }
  20821. // Contains the output of AcceptVpcPeeringConnection.
  20822. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptVpcPeeringConnectionResult
  20823. type AcceptVpcPeeringConnectionOutput struct {
  20824. _ struct{} `type:"structure"`
  20825. // Information about the VPC peering connection.
  20826. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  20827. }
  20828. // String returns the string representation
  20829. func (s AcceptVpcPeeringConnectionOutput) String() string {
  20830. return awsutil.Prettify(s)
  20831. }
  20832. // GoString returns the string representation
  20833. func (s AcceptVpcPeeringConnectionOutput) GoString() string {
  20834. return s.String()
  20835. }
  20836. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  20837. func (s *AcceptVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *AcceptVpcPeeringConnectionOutput {
  20838. s.VpcPeeringConnection = v
  20839. return s
  20840. }
  20841. // Describes an account attribute.
  20842. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AccountAttribute
  20843. type AccountAttribute struct {
  20844. _ struct{} `type:"structure"`
  20845. // The name of the account attribute.
  20846. AttributeName *string `locationName:"attributeName" type:"string"`
  20847. // One or more values for the account attribute.
  20848. AttributeValues []*AccountAttributeValue `locationName:"attributeValueSet" locationNameList:"item" type:"list"`
  20849. }
  20850. // String returns the string representation
  20851. func (s AccountAttribute) String() string {
  20852. return awsutil.Prettify(s)
  20853. }
  20854. // GoString returns the string representation
  20855. func (s AccountAttribute) GoString() string {
  20856. return s.String()
  20857. }
  20858. // SetAttributeName sets the AttributeName field's value.
  20859. func (s *AccountAttribute) SetAttributeName(v string) *AccountAttribute {
  20860. s.AttributeName = &v
  20861. return s
  20862. }
  20863. // SetAttributeValues sets the AttributeValues field's value.
  20864. func (s *AccountAttribute) SetAttributeValues(v []*AccountAttributeValue) *AccountAttribute {
  20865. s.AttributeValues = v
  20866. return s
  20867. }
  20868. // Describes a value of an account attribute.
  20869. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AccountAttributeValue
  20870. type AccountAttributeValue struct {
  20871. _ struct{} `type:"structure"`
  20872. // The value of the attribute.
  20873. AttributeValue *string `locationName:"attributeValue" type:"string"`
  20874. }
  20875. // String returns the string representation
  20876. func (s AccountAttributeValue) String() string {
  20877. return awsutil.Prettify(s)
  20878. }
  20879. // GoString returns the string representation
  20880. func (s AccountAttributeValue) GoString() string {
  20881. return s.String()
  20882. }
  20883. // SetAttributeValue sets the AttributeValue field's value.
  20884. func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeValue {
  20885. s.AttributeValue = &v
  20886. return s
  20887. }
  20888. // Describes a running instance in a Spot Fleet.
  20889. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ActiveInstance
  20890. type ActiveInstance struct {
  20891. _ struct{} `type:"structure"`
  20892. // The health status of the instance. If the status of either the instance status
  20893. // check or the system status check is impaired, the health status of the instance
  20894. // is unhealthy. Otherwise, the health status is healthy.
  20895. InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthStatus"`
  20896. // The ID of the instance.
  20897. InstanceId *string `locationName:"instanceId" type:"string"`
  20898. // The instance type.
  20899. InstanceType *string `locationName:"instanceType" type:"string"`
  20900. // The ID of the Spot Instance request.
  20901. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  20902. }
  20903. // String returns the string representation
  20904. func (s ActiveInstance) String() string {
  20905. return awsutil.Prettify(s)
  20906. }
  20907. // GoString returns the string representation
  20908. func (s ActiveInstance) GoString() string {
  20909. return s.String()
  20910. }
  20911. // SetInstanceHealth sets the InstanceHealth field's value.
  20912. func (s *ActiveInstance) SetInstanceHealth(v string) *ActiveInstance {
  20913. s.InstanceHealth = &v
  20914. return s
  20915. }
  20916. // SetInstanceId sets the InstanceId field's value.
  20917. func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance {
  20918. s.InstanceId = &v
  20919. return s
  20920. }
  20921. // SetInstanceType sets the InstanceType field's value.
  20922. func (s *ActiveInstance) SetInstanceType(v string) *ActiveInstance {
  20923. s.InstanceType = &v
  20924. return s
  20925. }
  20926. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  20927. func (s *ActiveInstance) SetSpotInstanceRequestId(v string) *ActiveInstance {
  20928. s.SpotInstanceRequestId = &v
  20929. return s
  20930. }
  20931. // Describes an Elastic IP address.
  20932. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Address
  20933. type Address struct {
  20934. _ struct{} `type:"structure"`
  20935. // The ID representing the allocation of the address for use with EC2-VPC.
  20936. AllocationId *string `locationName:"allocationId" type:"string"`
  20937. // The ID representing the association of the address with an instance in a
  20938. // VPC.
  20939. AssociationId *string `locationName:"associationId" type:"string"`
  20940. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  20941. // (standard) or instances in a VPC (vpc).
  20942. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  20943. // The ID of the instance that the address is associated with (if any).
  20944. InstanceId *string `locationName:"instanceId" type:"string"`
  20945. // The ID of the network interface.
  20946. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  20947. // The ID of the AWS account that owns the network interface.
  20948. NetworkInterfaceOwnerId *string `locationName:"networkInterfaceOwnerId" type:"string"`
  20949. // The private IP address associated with the Elastic IP address.
  20950. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  20951. // The Elastic IP address.
  20952. PublicIp *string `locationName:"publicIp" type:"string"`
  20953. // Any tags assigned to the Elastic IP address.
  20954. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  20955. }
  20956. // String returns the string representation
  20957. func (s Address) String() string {
  20958. return awsutil.Prettify(s)
  20959. }
  20960. // GoString returns the string representation
  20961. func (s Address) GoString() string {
  20962. return s.String()
  20963. }
  20964. // SetAllocationId sets the AllocationId field's value.
  20965. func (s *Address) SetAllocationId(v string) *Address {
  20966. s.AllocationId = &v
  20967. return s
  20968. }
  20969. // SetAssociationId sets the AssociationId field's value.
  20970. func (s *Address) SetAssociationId(v string) *Address {
  20971. s.AssociationId = &v
  20972. return s
  20973. }
  20974. // SetDomain sets the Domain field's value.
  20975. func (s *Address) SetDomain(v string) *Address {
  20976. s.Domain = &v
  20977. return s
  20978. }
  20979. // SetInstanceId sets the InstanceId field's value.
  20980. func (s *Address) SetInstanceId(v string) *Address {
  20981. s.InstanceId = &v
  20982. return s
  20983. }
  20984. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  20985. func (s *Address) SetNetworkInterfaceId(v string) *Address {
  20986. s.NetworkInterfaceId = &v
  20987. return s
  20988. }
  20989. // SetNetworkInterfaceOwnerId sets the NetworkInterfaceOwnerId field's value.
  20990. func (s *Address) SetNetworkInterfaceOwnerId(v string) *Address {
  20991. s.NetworkInterfaceOwnerId = &v
  20992. return s
  20993. }
  20994. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  20995. func (s *Address) SetPrivateIpAddress(v string) *Address {
  20996. s.PrivateIpAddress = &v
  20997. return s
  20998. }
  20999. // SetPublicIp sets the PublicIp field's value.
  21000. func (s *Address) SetPublicIp(v string) *Address {
  21001. s.PublicIp = &v
  21002. return s
  21003. }
  21004. // SetTags sets the Tags field's value.
  21005. func (s *Address) SetTags(v []*Tag) *Address {
  21006. s.Tags = v
  21007. return s
  21008. }
  21009. // Contains the parameters for AllocateAddress.
  21010. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddressRequest
  21011. type AllocateAddressInput struct {
  21012. _ struct{} `type:"structure"`
  21013. // [EC2-VPC] The Elastic IP address to recover.
  21014. Address *string `type:"string"`
  21015. // Set to vpc to allocate the address for use with instances in a VPC.
  21016. //
  21017. // Default: The address is for use with instances in EC2-Classic.
  21018. Domain *string `type:"string" enum:"DomainType"`
  21019. // Checks whether you have the required permissions for the action, without
  21020. // actually making the request, and provides an error response. If you have
  21021. // the required permissions, the error response is DryRunOperation. Otherwise,
  21022. // it is UnauthorizedOperation.
  21023. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21024. }
  21025. // String returns the string representation
  21026. func (s AllocateAddressInput) String() string {
  21027. return awsutil.Prettify(s)
  21028. }
  21029. // GoString returns the string representation
  21030. func (s AllocateAddressInput) GoString() string {
  21031. return s.String()
  21032. }
  21033. // SetAddress sets the Address field's value.
  21034. func (s *AllocateAddressInput) SetAddress(v string) *AllocateAddressInput {
  21035. s.Address = &v
  21036. return s
  21037. }
  21038. // SetDomain sets the Domain field's value.
  21039. func (s *AllocateAddressInput) SetDomain(v string) *AllocateAddressInput {
  21040. s.Domain = &v
  21041. return s
  21042. }
  21043. // SetDryRun sets the DryRun field's value.
  21044. func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput {
  21045. s.DryRun = &v
  21046. return s
  21047. }
  21048. // Contains the output of AllocateAddress.
  21049. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateAddressResult
  21050. type AllocateAddressOutput struct {
  21051. _ struct{} `type:"structure"`
  21052. // [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic
  21053. // IP address for use with instances in a VPC.
  21054. AllocationId *string `locationName:"allocationId" type:"string"`
  21055. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  21056. // (standard) or instances in a VPC (vpc).
  21057. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  21058. // The Elastic IP address.
  21059. PublicIp *string `locationName:"publicIp" type:"string"`
  21060. }
  21061. // String returns the string representation
  21062. func (s AllocateAddressOutput) String() string {
  21063. return awsutil.Prettify(s)
  21064. }
  21065. // GoString returns the string representation
  21066. func (s AllocateAddressOutput) GoString() string {
  21067. return s.String()
  21068. }
  21069. // SetAllocationId sets the AllocationId field's value.
  21070. func (s *AllocateAddressOutput) SetAllocationId(v string) *AllocateAddressOutput {
  21071. s.AllocationId = &v
  21072. return s
  21073. }
  21074. // SetDomain sets the Domain field's value.
  21075. func (s *AllocateAddressOutput) SetDomain(v string) *AllocateAddressOutput {
  21076. s.Domain = &v
  21077. return s
  21078. }
  21079. // SetPublicIp sets the PublicIp field's value.
  21080. func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput {
  21081. s.PublicIp = &v
  21082. return s
  21083. }
  21084. // Contains the parameters for AllocateHosts.
  21085. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHostsRequest
  21086. type AllocateHostsInput struct {
  21087. _ struct{} `type:"structure"`
  21088. // This is enabled by default. This property allows instances to be automatically
  21089. // placed onto available Dedicated Hosts, when you are launching instances without
  21090. // specifying a host ID.
  21091. //
  21092. // Default: Enabled
  21093. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  21094. // The Availability Zone for the Dedicated Hosts.
  21095. //
  21096. // AvailabilityZone is a required field
  21097. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  21098. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  21099. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  21100. // in the Amazon Elastic Compute Cloud User Guide.
  21101. ClientToken *string `locationName:"clientToken" type:"string"`
  21102. // Specify the instance type that you want your Dedicated Hosts to be configured
  21103. // for. When you specify the instance type, that is the only instance type that
  21104. // you can launch onto that host.
  21105. //
  21106. // InstanceType is a required field
  21107. InstanceType *string `locationName:"instanceType" type:"string" required:"true"`
  21108. // The number of Dedicated Hosts you want to allocate to your account with these
  21109. // parameters.
  21110. //
  21111. // Quantity is a required field
  21112. Quantity *int64 `locationName:"quantity" type:"integer" required:"true"`
  21113. }
  21114. // String returns the string representation
  21115. func (s AllocateHostsInput) String() string {
  21116. return awsutil.Prettify(s)
  21117. }
  21118. // GoString returns the string representation
  21119. func (s AllocateHostsInput) GoString() string {
  21120. return s.String()
  21121. }
  21122. // Validate inspects the fields of the type to determine if they are valid.
  21123. func (s *AllocateHostsInput) Validate() error {
  21124. invalidParams := request.ErrInvalidParams{Context: "AllocateHostsInput"}
  21125. if s.AvailabilityZone == nil {
  21126. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  21127. }
  21128. if s.InstanceType == nil {
  21129. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  21130. }
  21131. if s.Quantity == nil {
  21132. invalidParams.Add(request.NewErrParamRequired("Quantity"))
  21133. }
  21134. if invalidParams.Len() > 0 {
  21135. return invalidParams
  21136. }
  21137. return nil
  21138. }
  21139. // SetAutoPlacement sets the AutoPlacement field's value.
  21140. func (s *AllocateHostsInput) SetAutoPlacement(v string) *AllocateHostsInput {
  21141. s.AutoPlacement = &v
  21142. return s
  21143. }
  21144. // SetAvailabilityZone sets the AvailabilityZone field's value.
  21145. func (s *AllocateHostsInput) SetAvailabilityZone(v string) *AllocateHostsInput {
  21146. s.AvailabilityZone = &v
  21147. return s
  21148. }
  21149. // SetClientToken sets the ClientToken field's value.
  21150. func (s *AllocateHostsInput) SetClientToken(v string) *AllocateHostsInput {
  21151. s.ClientToken = &v
  21152. return s
  21153. }
  21154. // SetInstanceType sets the InstanceType field's value.
  21155. func (s *AllocateHostsInput) SetInstanceType(v string) *AllocateHostsInput {
  21156. s.InstanceType = &v
  21157. return s
  21158. }
  21159. // SetQuantity sets the Quantity field's value.
  21160. func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput {
  21161. s.Quantity = &v
  21162. return s
  21163. }
  21164. // Contains the output of AllocateHosts.
  21165. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllocateHostsResult
  21166. type AllocateHostsOutput struct {
  21167. _ struct{} `type:"structure"`
  21168. // The ID of the allocated Dedicated Host. This is used when you want to launch
  21169. // an instance onto a specific host.
  21170. HostIds []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  21171. }
  21172. // String returns the string representation
  21173. func (s AllocateHostsOutput) String() string {
  21174. return awsutil.Prettify(s)
  21175. }
  21176. // GoString returns the string representation
  21177. func (s AllocateHostsOutput) GoString() string {
  21178. return s.String()
  21179. }
  21180. // SetHostIds sets the HostIds field's value.
  21181. func (s *AllocateHostsOutput) SetHostIds(v []*string) *AllocateHostsOutput {
  21182. s.HostIds = v
  21183. return s
  21184. }
  21185. // Describes a principal.
  21186. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AllowedPrincipal
  21187. type AllowedPrincipal struct {
  21188. _ struct{} `type:"structure"`
  21189. // The Amazon Resource Name (ARN) of the principal.
  21190. Principal *string `locationName:"principal" type:"string"`
  21191. // The type of principal.
  21192. PrincipalType *string `locationName:"principalType" type:"string" enum:"PrincipalType"`
  21193. }
  21194. // String returns the string representation
  21195. func (s AllowedPrincipal) String() string {
  21196. return awsutil.Prettify(s)
  21197. }
  21198. // GoString returns the string representation
  21199. func (s AllowedPrincipal) GoString() string {
  21200. return s.String()
  21201. }
  21202. // SetPrincipal sets the Principal field's value.
  21203. func (s *AllowedPrincipal) SetPrincipal(v string) *AllowedPrincipal {
  21204. s.Principal = &v
  21205. return s
  21206. }
  21207. // SetPrincipalType sets the PrincipalType field's value.
  21208. func (s *AllowedPrincipal) SetPrincipalType(v string) *AllowedPrincipal {
  21209. s.PrincipalType = &v
  21210. return s
  21211. }
  21212. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6AddressesRequest
  21213. type AssignIpv6AddressesInput struct {
  21214. _ struct{} `type:"structure"`
  21215. // The number of IPv6 addresses to assign to the network interface. Amazon EC2
  21216. // automatically selects the IPv6 addresses from the subnet range. You can't
  21217. // use this option if specifying specific IPv6 addresses.
  21218. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  21219. // One or more specific IPv6 addresses to be assigned to the network interface.
  21220. // You can't use this option if you're specifying a number of IPv6 addresses.
  21221. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  21222. // The ID of the network interface.
  21223. //
  21224. // NetworkInterfaceId is a required field
  21225. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  21226. }
  21227. // String returns the string representation
  21228. func (s AssignIpv6AddressesInput) String() string {
  21229. return awsutil.Prettify(s)
  21230. }
  21231. // GoString returns the string representation
  21232. func (s AssignIpv6AddressesInput) GoString() string {
  21233. return s.String()
  21234. }
  21235. // Validate inspects the fields of the type to determine if they are valid.
  21236. func (s *AssignIpv6AddressesInput) Validate() error {
  21237. invalidParams := request.ErrInvalidParams{Context: "AssignIpv6AddressesInput"}
  21238. if s.NetworkInterfaceId == nil {
  21239. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  21240. }
  21241. if invalidParams.Len() > 0 {
  21242. return invalidParams
  21243. }
  21244. return nil
  21245. }
  21246. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  21247. func (s *AssignIpv6AddressesInput) SetIpv6AddressCount(v int64) *AssignIpv6AddressesInput {
  21248. s.Ipv6AddressCount = &v
  21249. return s
  21250. }
  21251. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  21252. func (s *AssignIpv6AddressesInput) SetIpv6Addresses(v []*string) *AssignIpv6AddressesInput {
  21253. s.Ipv6Addresses = v
  21254. return s
  21255. }
  21256. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  21257. func (s *AssignIpv6AddressesInput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesInput {
  21258. s.NetworkInterfaceId = &v
  21259. return s
  21260. }
  21261. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignIpv6AddressesResult
  21262. type AssignIpv6AddressesOutput struct {
  21263. _ struct{} `type:"structure"`
  21264. // The IPv6 addresses assigned to the network interface.
  21265. AssignedIpv6Addresses []*string `locationName:"assignedIpv6Addresses" locationNameList:"item" type:"list"`
  21266. // The ID of the network interface.
  21267. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  21268. }
  21269. // String returns the string representation
  21270. func (s AssignIpv6AddressesOutput) String() string {
  21271. return awsutil.Prettify(s)
  21272. }
  21273. // GoString returns the string representation
  21274. func (s AssignIpv6AddressesOutput) GoString() string {
  21275. return s.String()
  21276. }
  21277. // SetAssignedIpv6Addresses sets the AssignedIpv6Addresses field's value.
  21278. func (s *AssignIpv6AddressesOutput) SetAssignedIpv6Addresses(v []*string) *AssignIpv6AddressesOutput {
  21279. s.AssignedIpv6Addresses = v
  21280. return s
  21281. }
  21282. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  21283. func (s *AssignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *AssignIpv6AddressesOutput {
  21284. s.NetworkInterfaceId = &v
  21285. return s
  21286. }
  21287. // Contains the parameters for AssignPrivateIpAddresses.
  21288. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddressesRequest
  21289. type AssignPrivateIpAddressesInput struct {
  21290. _ struct{} `type:"structure"`
  21291. // Indicates whether to allow an IP address that is already assigned to another
  21292. // network interface or instance to be reassigned to the specified network interface.
  21293. AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"`
  21294. // The ID of the network interface.
  21295. //
  21296. // NetworkInterfaceId is a required field
  21297. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  21298. // One or more IP addresses to be assigned as a secondary private IP address
  21299. // to the network interface. You can't specify this parameter when also specifying
  21300. // a number of secondary IP addresses.
  21301. //
  21302. // If you don't specify an IP address, Amazon EC2 automatically selects an IP
  21303. // address within the subnet range.
  21304. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"`
  21305. // The number of secondary IP addresses to assign to the network interface.
  21306. // You can't specify this parameter when also specifying private IP addresses.
  21307. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  21308. }
  21309. // String returns the string representation
  21310. func (s AssignPrivateIpAddressesInput) String() string {
  21311. return awsutil.Prettify(s)
  21312. }
  21313. // GoString returns the string representation
  21314. func (s AssignPrivateIpAddressesInput) GoString() string {
  21315. return s.String()
  21316. }
  21317. // Validate inspects the fields of the type to determine if they are valid.
  21318. func (s *AssignPrivateIpAddressesInput) Validate() error {
  21319. invalidParams := request.ErrInvalidParams{Context: "AssignPrivateIpAddressesInput"}
  21320. if s.NetworkInterfaceId == nil {
  21321. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  21322. }
  21323. if invalidParams.Len() > 0 {
  21324. return invalidParams
  21325. }
  21326. return nil
  21327. }
  21328. // SetAllowReassignment sets the AllowReassignment field's value.
  21329. func (s *AssignPrivateIpAddressesInput) SetAllowReassignment(v bool) *AssignPrivateIpAddressesInput {
  21330. s.AllowReassignment = &v
  21331. return s
  21332. }
  21333. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  21334. func (s *AssignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *AssignPrivateIpAddressesInput {
  21335. s.NetworkInterfaceId = &v
  21336. return s
  21337. }
  21338. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  21339. func (s *AssignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *AssignPrivateIpAddressesInput {
  21340. s.PrivateIpAddresses = v
  21341. return s
  21342. }
  21343. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  21344. func (s *AssignPrivateIpAddressesInput) SetSecondaryPrivateIpAddressCount(v int64) *AssignPrivateIpAddressesInput {
  21345. s.SecondaryPrivateIpAddressCount = &v
  21346. return s
  21347. }
  21348. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssignPrivateIpAddressesOutput
  21349. type AssignPrivateIpAddressesOutput struct {
  21350. _ struct{} `type:"structure"`
  21351. }
  21352. // String returns the string representation
  21353. func (s AssignPrivateIpAddressesOutput) String() string {
  21354. return awsutil.Prettify(s)
  21355. }
  21356. // GoString returns the string representation
  21357. func (s AssignPrivateIpAddressesOutput) GoString() string {
  21358. return s.String()
  21359. }
  21360. // Contains the parameters for AssociateAddress.
  21361. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddressRequest
  21362. type AssociateAddressInput struct {
  21363. _ struct{} `type:"structure"`
  21364. // [EC2-VPC] The allocation ID. This is required for EC2-VPC.
  21365. AllocationId *string `type:"string"`
  21366. // [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic
  21367. // IP address that is already associated with an instance or network interface
  21368. // to be reassociated with the specified instance or network interface. Otherwise,
  21369. // the operation fails. In a VPC in an EC2-VPC-only account, reassociation is
  21370. // automatic, therefore you can specify false to ensure the operation fails
  21371. // if the Elastic IP address is already associated with another resource.
  21372. AllowReassociation *bool `locationName:"allowReassociation" type:"boolean"`
  21373. // Checks whether you have the required permissions for the action, without
  21374. // actually making the request, and provides an error response. If you have
  21375. // the required permissions, the error response is DryRunOperation. Otherwise,
  21376. // it is UnauthorizedOperation.
  21377. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21378. // The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you
  21379. // can specify either the instance ID or the network interface ID, but not both.
  21380. // The operation fails if you specify an instance ID unless exactly one network
  21381. // interface is attached.
  21382. InstanceId *string `type:"string"`
  21383. // [EC2-VPC] The ID of the network interface. If the instance has more than
  21384. // one network interface, you must specify a network interface ID.
  21385. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  21386. // [EC2-VPC] The primary or secondary private IP address to associate with the
  21387. // Elastic IP address. If no private IP address is specified, the Elastic IP
  21388. // address is associated with the primary private IP address.
  21389. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  21390. // The Elastic IP address. This is required for EC2-Classic.
  21391. PublicIp *string `type:"string"`
  21392. }
  21393. // String returns the string representation
  21394. func (s AssociateAddressInput) String() string {
  21395. return awsutil.Prettify(s)
  21396. }
  21397. // GoString returns the string representation
  21398. func (s AssociateAddressInput) GoString() string {
  21399. return s.String()
  21400. }
  21401. // SetAllocationId sets the AllocationId field's value.
  21402. func (s *AssociateAddressInput) SetAllocationId(v string) *AssociateAddressInput {
  21403. s.AllocationId = &v
  21404. return s
  21405. }
  21406. // SetAllowReassociation sets the AllowReassociation field's value.
  21407. func (s *AssociateAddressInput) SetAllowReassociation(v bool) *AssociateAddressInput {
  21408. s.AllowReassociation = &v
  21409. return s
  21410. }
  21411. // SetDryRun sets the DryRun field's value.
  21412. func (s *AssociateAddressInput) SetDryRun(v bool) *AssociateAddressInput {
  21413. s.DryRun = &v
  21414. return s
  21415. }
  21416. // SetInstanceId sets the InstanceId field's value.
  21417. func (s *AssociateAddressInput) SetInstanceId(v string) *AssociateAddressInput {
  21418. s.InstanceId = &v
  21419. return s
  21420. }
  21421. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  21422. func (s *AssociateAddressInput) SetNetworkInterfaceId(v string) *AssociateAddressInput {
  21423. s.NetworkInterfaceId = &v
  21424. return s
  21425. }
  21426. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  21427. func (s *AssociateAddressInput) SetPrivateIpAddress(v string) *AssociateAddressInput {
  21428. s.PrivateIpAddress = &v
  21429. return s
  21430. }
  21431. // SetPublicIp sets the PublicIp field's value.
  21432. func (s *AssociateAddressInput) SetPublicIp(v string) *AssociateAddressInput {
  21433. s.PublicIp = &v
  21434. return s
  21435. }
  21436. // Contains the output of AssociateAddress.
  21437. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateAddressResult
  21438. type AssociateAddressOutput struct {
  21439. _ struct{} `type:"structure"`
  21440. // [EC2-VPC] The ID that represents the association of the Elastic IP address
  21441. // with an instance.
  21442. AssociationId *string `locationName:"associationId" type:"string"`
  21443. }
  21444. // String returns the string representation
  21445. func (s AssociateAddressOutput) String() string {
  21446. return awsutil.Prettify(s)
  21447. }
  21448. // GoString returns the string representation
  21449. func (s AssociateAddressOutput) GoString() string {
  21450. return s.String()
  21451. }
  21452. // SetAssociationId sets the AssociationId field's value.
  21453. func (s *AssociateAddressOutput) SetAssociationId(v string) *AssociateAddressOutput {
  21454. s.AssociationId = &v
  21455. return s
  21456. }
  21457. // Contains the parameters for AssociateDhcpOptions.
  21458. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptionsRequest
  21459. type AssociateDhcpOptionsInput struct {
  21460. _ struct{} `type:"structure"`
  21461. // The ID of the DHCP options set, or default to associate no DHCP options with
  21462. // the VPC.
  21463. //
  21464. // DhcpOptionsId is a required field
  21465. DhcpOptionsId *string `type:"string" required:"true"`
  21466. // Checks whether you have the required permissions for the action, without
  21467. // actually making the request, and provides an error response. If you have
  21468. // the required permissions, the error response is DryRunOperation. Otherwise,
  21469. // it is UnauthorizedOperation.
  21470. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21471. // The ID of the VPC.
  21472. //
  21473. // VpcId is a required field
  21474. VpcId *string `type:"string" required:"true"`
  21475. }
  21476. // String returns the string representation
  21477. func (s AssociateDhcpOptionsInput) String() string {
  21478. return awsutil.Prettify(s)
  21479. }
  21480. // GoString returns the string representation
  21481. func (s AssociateDhcpOptionsInput) GoString() string {
  21482. return s.String()
  21483. }
  21484. // Validate inspects the fields of the type to determine if they are valid.
  21485. func (s *AssociateDhcpOptionsInput) Validate() error {
  21486. invalidParams := request.ErrInvalidParams{Context: "AssociateDhcpOptionsInput"}
  21487. if s.DhcpOptionsId == nil {
  21488. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  21489. }
  21490. if s.VpcId == nil {
  21491. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  21492. }
  21493. if invalidParams.Len() > 0 {
  21494. return invalidParams
  21495. }
  21496. return nil
  21497. }
  21498. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  21499. func (s *AssociateDhcpOptionsInput) SetDhcpOptionsId(v string) *AssociateDhcpOptionsInput {
  21500. s.DhcpOptionsId = &v
  21501. return s
  21502. }
  21503. // SetDryRun sets the DryRun field's value.
  21504. func (s *AssociateDhcpOptionsInput) SetDryRun(v bool) *AssociateDhcpOptionsInput {
  21505. s.DryRun = &v
  21506. return s
  21507. }
  21508. // SetVpcId sets the VpcId field's value.
  21509. func (s *AssociateDhcpOptionsInput) SetVpcId(v string) *AssociateDhcpOptionsInput {
  21510. s.VpcId = &v
  21511. return s
  21512. }
  21513. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateDhcpOptionsOutput
  21514. type AssociateDhcpOptionsOutput struct {
  21515. _ struct{} `type:"structure"`
  21516. }
  21517. // String returns the string representation
  21518. func (s AssociateDhcpOptionsOutput) String() string {
  21519. return awsutil.Prettify(s)
  21520. }
  21521. // GoString returns the string representation
  21522. func (s AssociateDhcpOptionsOutput) GoString() string {
  21523. return s.String()
  21524. }
  21525. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfileRequest
  21526. type AssociateIamInstanceProfileInput struct {
  21527. _ struct{} `type:"structure"`
  21528. // The IAM instance profile.
  21529. //
  21530. // IamInstanceProfile is a required field
  21531. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  21532. // The ID of the instance.
  21533. //
  21534. // InstanceId is a required field
  21535. InstanceId *string `type:"string" required:"true"`
  21536. }
  21537. // String returns the string representation
  21538. func (s AssociateIamInstanceProfileInput) String() string {
  21539. return awsutil.Prettify(s)
  21540. }
  21541. // GoString returns the string representation
  21542. func (s AssociateIamInstanceProfileInput) GoString() string {
  21543. return s.String()
  21544. }
  21545. // Validate inspects the fields of the type to determine if they are valid.
  21546. func (s *AssociateIamInstanceProfileInput) Validate() error {
  21547. invalidParams := request.ErrInvalidParams{Context: "AssociateIamInstanceProfileInput"}
  21548. if s.IamInstanceProfile == nil {
  21549. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  21550. }
  21551. if s.InstanceId == nil {
  21552. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  21553. }
  21554. if invalidParams.Len() > 0 {
  21555. return invalidParams
  21556. }
  21557. return nil
  21558. }
  21559. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  21560. func (s *AssociateIamInstanceProfileInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *AssociateIamInstanceProfileInput {
  21561. s.IamInstanceProfile = v
  21562. return s
  21563. }
  21564. // SetInstanceId sets the InstanceId field's value.
  21565. func (s *AssociateIamInstanceProfileInput) SetInstanceId(v string) *AssociateIamInstanceProfileInput {
  21566. s.InstanceId = &v
  21567. return s
  21568. }
  21569. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIamInstanceProfileResult
  21570. type AssociateIamInstanceProfileOutput struct {
  21571. _ struct{} `type:"structure"`
  21572. // Information about the IAM instance profile association.
  21573. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  21574. }
  21575. // String returns the string representation
  21576. func (s AssociateIamInstanceProfileOutput) String() string {
  21577. return awsutil.Prettify(s)
  21578. }
  21579. // GoString returns the string representation
  21580. func (s AssociateIamInstanceProfileOutput) GoString() string {
  21581. return s.String()
  21582. }
  21583. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  21584. func (s *AssociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *AssociateIamInstanceProfileOutput {
  21585. s.IamInstanceProfileAssociation = v
  21586. return s
  21587. }
  21588. // Contains the parameters for AssociateRouteTable.
  21589. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTableRequest
  21590. type AssociateRouteTableInput struct {
  21591. _ struct{} `type:"structure"`
  21592. // Checks whether you have the required permissions for the action, without
  21593. // actually making the request, and provides an error response. If you have
  21594. // the required permissions, the error response is DryRunOperation. Otherwise,
  21595. // it is UnauthorizedOperation.
  21596. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21597. // The ID of the route table.
  21598. //
  21599. // RouteTableId is a required field
  21600. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  21601. // The ID of the subnet.
  21602. //
  21603. // SubnetId is a required field
  21604. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  21605. }
  21606. // String returns the string representation
  21607. func (s AssociateRouteTableInput) String() string {
  21608. return awsutil.Prettify(s)
  21609. }
  21610. // GoString returns the string representation
  21611. func (s AssociateRouteTableInput) GoString() string {
  21612. return s.String()
  21613. }
  21614. // Validate inspects the fields of the type to determine if they are valid.
  21615. func (s *AssociateRouteTableInput) Validate() error {
  21616. invalidParams := request.ErrInvalidParams{Context: "AssociateRouteTableInput"}
  21617. if s.RouteTableId == nil {
  21618. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  21619. }
  21620. if s.SubnetId == nil {
  21621. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  21622. }
  21623. if invalidParams.Len() > 0 {
  21624. return invalidParams
  21625. }
  21626. return nil
  21627. }
  21628. // SetDryRun sets the DryRun field's value.
  21629. func (s *AssociateRouteTableInput) SetDryRun(v bool) *AssociateRouteTableInput {
  21630. s.DryRun = &v
  21631. return s
  21632. }
  21633. // SetRouteTableId sets the RouteTableId field's value.
  21634. func (s *AssociateRouteTableInput) SetRouteTableId(v string) *AssociateRouteTableInput {
  21635. s.RouteTableId = &v
  21636. return s
  21637. }
  21638. // SetSubnetId sets the SubnetId field's value.
  21639. func (s *AssociateRouteTableInput) SetSubnetId(v string) *AssociateRouteTableInput {
  21640. s.SubnetId = &v
  21641. return s
  21642. }
  21643. // Contains the output of AssociateRouteTable.
  21644. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateRouteTableResult
  21645. type AssociateRouteTableOutput struct {
  21646. _ struct{} `type:"structure"`
  21647. // The route table association ID (needed to disassociate the route table).
  21648. AssociationId *string `locationName:"associationId" type:"string"`
  21649. }
  21650. // String returns the string representation
  21651. func (s AssociateRouteTableOutput) String() string {
  21652. return awsutil.Prettify(s)
  21653. }
  21654. // GoString returns the string representation
  21655. func (s AssociateRouteTableOutput) GoString() string {
  21656. return s.String()
  21657. }
  21658. // SetAssociationId sets the AssociationId field's value.
  21659. func (s *AssociateRouteTableOutput) SetAssociationId(v string) *AssociateRouteTableOutput {
  21660. s.AssociationId = &v
  21661. return s
  21662. }
  21663. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockRequest
  21664. type AssociateSubnetCidrBlockInput struct {
  21665. _ struct{} `type:"structure"`
  21666. // The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length.
  21667. //
  21668. // Ipv6CidrBlock is a required field
  21669. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string" required:"true"`
  21670. // The ID of your subnet.
  21671. //
  21672. // SubnetId is a required field
  21673. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  21674. }
  21675. // String returns the string representation
  21676. func (s AssociateSubnetCidrBlockInput) String() string {
  21677. return awsutil.Prettify(s)
  21678. }
  21679. // GoString returns the string representation
  21680. func (s AssociateSubnetCidrBlockInput) GoString() string {
  21681. return s.String()
  21682. }
  21683. // Validate inspects the fields of the type to determine if they are valid.
  21684. func (s *AssociateSubnetCidrBlockInput) Validate() error {
  21685. invalidParams := request.ErrInvalidParams{Context: "AssociateSubnetCidrBlockInput"}
  21686. if s.Ipv6CidrBlock == nil {
  21687. invalidParams.Add(request.NewErrParamRequired("Ipv6CidrBlock"))
  21688. }
  21689. if s.SubnetId == nil {
  21690. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  21691. }
  21692. if invalidParams.Len() > 0 {
  21693. return invalidParams
  21694. }
  21695. return nil
  21696. }
  21697. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  21698. func (s *AssociateSubnetCidrBlockInput) SetIpv6CidrBlock(v string) *AssociateSubnetCidrBlockInput {
  21699. s.Ipv6CidrBlock = &v
  21700. return s
  21701. }
  21702. // SetSubnetId sets the SubnetId field's value.
  21703. func (s *AssociateSubnetCidrBlockInput) SetSubnetId(v string) *AssociateSubnetCidrBlockInput {
  21704. s.SubnetId = &v
  21705. return s
  21706. }
  21707. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockResult
  21708. type AssociateSubnetCidrBlockOutput struct {
  21709. _ struct{} `type:"structure"`
  21710. // Information about the IPv6 CIDR block association.
  21711. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  21712. // The ID of the subnet.
  21713. SubnetId *string `locationName:"subnetId" type:"string"`
  21714. }
  21715. // String returns the string representation
  21716. func (s AssociateSubnetCidrBlockOutput) String() string {
  21717. return awsutil.Prettify(s)
  21718. }
  21719. // GoString returns the string representation
  21720. func (s AssociateSubnetCidrBlockOutput) GoString() string {
  21721. return s.String()
  21722. }
  21723. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  21724. func (s *AssociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *AssociateSubnetCidrBlockOutput {
  21725. s.Ipv6CidrBlockAssociation = v
  21726. return s
  21727. }
  21728. // SetSubnetId sets the SubnetId field's value.
  21729. func (s *AssociateSubnetCidrBlockOutput) SetSubnetId(v string) *AssociateSubnetCidrBlockOutput {
  21730. s.SubnetId = &v
  21731. return s
  21732. }
  21733. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlockRequest
  21734. type AssociateVpcCidrBlockInput struct {
  21735. _ struct{} `type:"structure"`
  21736. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  21737. // the VPC. You cannot specify the range of IPv6 addresses, or the size of the
  21738. // CIDR block.
  21739. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  21740. // An IPv4 CIDR block to associate with the VPC.
  21741. CidrBlock *string `type:"string"`
  21742. // The ID of the VPC.
  21743. //
  21744. // VpcId is a required field
  21745. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  21746. }
  21747. // String returns the string representation
  21748. func (s AssociateVpcCidrBlockInput) String() string {
  21749. return awsutil.Prettify(s)
  21750. }
  21751. // GoString returns the string representation
  21752. func (s AssociateVpcCidrBlockInput) GoString() string {
  21753. return s.String()
  21754. }
  21755. // Validate inspects the fields of the type to determine if they are valid.
  21756. func (s *AssociateVpcCidrBlockInput) Validate() error {
  21757. invalidParams := request.ErrInvalidParams{Context: "AssociateVpcCidrBlockInput"}
  21758. if s.VpcId == nil {
  21759. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  21760. }
  21761. if invalidParams.Len() > 0 {
  21762. return invalidParams
  21763. }
  21764. return nil
  21765. }
  21766. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  21767. func (s *AssociateVpcCidrBlockInput) SetAmazonProvidedIpv6CidrBlock(v bool) *AssociateVpcCidrBlockInput {
  21768. s.AmazonProvidedIpv6CidrBlock = &v
  21769. return s
  21770. }
  21771. // SetCidrBlock sets the CidrBlock field's value.
  21772. func (s *AssociateVpcCidrBlockInput) SetCidrBlock(v string) *AssociateVpcCidrBlockInput {
  21773. s.CidrBlock = &v
  21774. return s
  21775. }
  21776. // SetVpcId sets the VpcId field's value.
  21777. func (s *AssociateVpcCidrBlockInput) SetVpcId(v string) *AssociateVpcCidrBlockInput {
  21778. s.VpcId = &v
  21779. return s
  21780. }
  21781. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateVpcCidrBlockResult
  21782. type AssociateVpcCidrBlockOutput struct {
  21783. _ struct{} `type:"structure"`
  21784. // Information about the IPv4 CIDR block association.
  21785. CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`
  21786. // Information about the IPv6 CIDR block association.
  21787. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  21788. // The ID of the VPC.
  21789. VpcId *string `locationName:"vpcId" type:"string"`
  21790. }
  21791. // String returns the string representation
  21792. func (s AssociateVpcCidrBlockOutput) String() string {
  21793. return awsutil.Prettify(s)
  21794. }
  21795. // GoString returns the string representation
  21796. func (s AssociateVpcCidrBlockOutput) GoString() string {
  21797. return s.String()
  21798. }
  21799. // SetCidrBlockAssociation sets the CidrBlockAssociation field's value.
  21800. func (s *AssociateVpcCidrBlockOutput) SetCidrBlockAssociation(v *VpcCidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  21801. s.CidrBlockAssociation = v
  21802. return s
  21803. }
  21804. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  21805. func (s *AssociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *AssociateVpcCidrBlockOutput {
  21806. s.Ipv6CidrBlockAssociation = v
  21807. return s
  21808. }
  21809. // SetVpcId sets the VpcId field's value.
  21810. func (s *AssociateVpcCidrBlockOutput) SetVpcId(v string) *AssociateVpcCidrBlockOutput {
  21811. s.VpcId = &v
  21812. return s
  21813. }
  21814. // Contains the parameters for AttachClassicLinkVpc.
  21815. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpcRequest
  21816. type AttachClassicLinkVpcInput struct {
  21817. _ struct{} `type:"structure"`
  21818. // Checks whether you have the required permissions for the action, without
  21819. // actually making the request, and provides an error response. If you have
  21820. // the required permissions, the error response is DryRunOperation. Otherwise,
  21821. // it is UnauthorizedOperation.
  21822. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21823. // The ID of one or more of the VPC's security groups. You cannot specify security
  21824. // groups from a different VPC.
  21825. //
  21826. // Groups is a required field
  21827. Groups []*string `locationName:"SecurityGroupId" locationNameList:"groupId" type:"list" required:"true"`
  21828. // The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
  21829. //
  21830. // InstanceId is a required field
  21831. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  21832. // The ID of a ClassicLink-enabled VPC.
  21833. //
  21834. // VpcId is a required field
  21835. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  21836. }
  21837. // String returns the string representation
  21838. func (s AttachClassicLinkVpcInput) String() string {
  21839. return awsutil.Prettify(s)
  21840. }
  21841. // GoString returns the string representation
  21842. func (s AttachClassicLinkVpcInput) GoString() string {
  21843. return s.String()
  21844. }
  21845. // Validate inspects the fields of the type to determine if they are valid.
  21846. func (s *AttachClassicLinkVpcInput) Validate() error {
  21847. invalidParams := request.ErrInvalidParams{Context: "AttachClassicLinkVpcInput"}
  21848. if s.Groups == nil {
  21849. invalidParams.Add(request.NewErrParamRequired("Groups"))
  21850. }
  21851. if s.InstanceId == nil {
  21852. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  21853. }
  21854. if s.VpcId == nil {
  21855. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  21856. }
  21857. if invalidParams.Len() > 0 {
  21858. return invalidParams
  21859. }
  21860. return nil
  21861. }
  21862. // SetDryRun sets the DryRun field's value.
  21863. func (s *AttachClassicLinkVpcInput) SetDryRun(v bool) *AttachClassicLinkVpcInput {
  21864. s.DryRun = &v
  21865. return s
  21866. }
  21867. // SetGroups sets the Groups field's value.
  21868. func (s *AttachClassicLinkVpcInput) SetGroups(v []*string) *AttachClassicLinkVpcInput {
  21869. s.Groups = v
  21870. return s
  21871. }
  21872. // SetInstanceId sets the InstanceId field's value.
  21873. func (s *AttachClassicLinkVpcInput) SetInstanceId(v string) *AttachClassicLinkVpcInput {
  21874. s.InstanceId = &v
  21875. return s
  21876. }
  21877. // SetVpcId sets the VpcId field's value.
  21878. func (s *AttachClassicLinkVpcInput) SetVpcId(v string) *AttachClassicLinkVpcInput {
  21879. s.VpcId = &v
  21880. return s
  21881. }
  21882. // Contains the output of AttachClassicLinkVpc.
  21883. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachClassicLinkVpcResult
  21884. type AttachClassicLinkVpcOutput struct {
  21885. _ struct{} `type:"structure"`
  21886. // Returns true if the request succeeds; otherwise, it returns an error.
  21887. Return *bool `locationName:"return" type:"boolean"`
  21888. }
  21889. // String returns the string representation
  21890. func (s AttachClassicLinkVpcOutput) String() string {
  21891. return awsutil.Prettify(s)
  21892. }
  21893. // GoString returns the string representation
  21894. func (s AttachClassicLinkVpcOutput) GoString() string {
  21895. return s.String()
  21896. }
  21897. // SetReturn sets the Return field's value.
  21898. func (s *AttachClassicLinkVpcOutput) SetReturn(v bool) *AttachClassicLinkVpcOutput {
  21899. s.Return = &v
  21900. return s
  21901. }
  21902. // Contains the parameters for AttachInternetGateway.
  21903. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGatewayRequest
  21904. type AttachInternetGatewayInput struct {
  21905. _ struct{} `type:"structure"`
  21906. // Checks whether you have the required permissions for the action, without
  21907. // actually making the request, and provides an error response. If you have
  21908. // the required permissions, the error response is DryRunOperation. Otherwise,
  21909. // it is UnauthorizedOperation.
  21910. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21911. // The ID of the Internet gateway.
  21912. //
  21913. // InternetGatewayId is a required field
  21914. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  21915. // The ID of the VPC.
  21916. //
  21917. // VpcId is a required field
  21918. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  21919. }
  21920. // String returns the string representation
  21921. func (s AttachInternetGatewayInput) String() string {
  21922. return awsutil.Prettify(s)
  21923. }
  21924. // GoString returns the string representation
  21925. func (s AttachInternetGatewayInput) GoString() string {
  21926. return s.String()
  21927. }
  21928. // Validate inspects the fields of the type to determine if they are valid.
  21929. func (s *AttachInternetGatewayInput) Validate() error {
  21930. invalidParams := request.ErrInvalidParams{Context: "AttachInternetGatewayInput"}
  21931. if s.InternetGatewayId == nil {
  21932. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  21933. }
  21934. if s.VpcId == nil {
  21935. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  21936. }
  21937. if invalidParams.Len() > 0 {
  21938. return invalidParams
  21939. }
  21940. return nil
  21941. }
  21942. // SetDryRun sets the DryRun field's value.
  21943. func (s *AttachInternetGatewayInput) SetDryRun(v bool) *AttachInternetGatewayInput {
  21944. s.DryRun = &v
  21945. return s
  21946. }
  21947. // SetInternetGatewayId sets the InternetGatewayId field's value.
  21948. func (s *AttachInternetGatewayInput) SetInternetGatewayId(v string) *AttachInternetGatewayInput {
  21949. s.InternetGatewayId = &v
  21950. return s
  21951. }
  21952. // SetVpcId sets the VpcId field's value.
  21953. func (s *AttachInternetGatewayInput) SetVpcId(v string) *AttachInternetGatewayInput {
  21954. s.VpcId = &v
  21955. return s
  21956. }
  21957. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachInternetGatewayOutput
  21958. type AttachInternetGatewayOutput struct {
  21959. _ struct{} `type:"structure"`
  21960. }
  21961. // String returns the string representation
  21962. func (s AttachInternetGatewayOutput) String() string {
  21963. return awsutil.Prettify(s)
  21964. }
  21965. // GoString returns the string representation
  21966. func (s AttachInternetGatewayOutput) GoString() string {
  21967. return s.String()
  21968. }
  21969. // Contains the parameters for AttachNetworkInterface.
  21970. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterfaceRequest
  21971. type AttachNetworkInterfaceInput struct {
  21972. _ struct{} `type:"structure"`
  21973. // The index of the device for the network interface attachment.
  21974. //
  21975. // DeviceIndex is a required field
  21976. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"`
  21977. // Checks whether you have the required permissions for the action, without
  21978. // actually making the request, and provides an error response. If you have
  21979. // the required permissions, the error response is DryRunOperation. Otherwise,
  21980. // it is UnauthorizedOperation.
  21981. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21982. // The ID of the instance.
  21983. //
  21984. // InstanceId is a required field
  21985. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  21986. // The ID of the network interface.
  21987. //
  21988. // NetworkInterfaceId is a required field
  21989. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  21990. }
  21991. // String returns the string representation
  21992. func (s AttachNetworkInterfaceInput) String() string {
  21993. return awsutil.Prettify(s)
  21994. }
  21995. // GoString returns the string representation
  21996. func (s AttachNetworkInterfaceInput) GoString() string {
  21997. return s.String()
  21998. }
  21999. // Validate inspects the fields of the type to determine if they are valid.
  22000. func (s *AttachNetworkInterfaceInput) Validate() error {
  22001. invalidParams := request.ErrInvalidParams{Context: "AttachNetworkInterfaceInput"}
  22002. if s.DeviceIndex == nil {
  22003. invalidParams.Add(request.NewErrParamRequired("DeviceIndex"))
  22004. }
  22005. if s.InstanceId == nil {
  22006. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22007. }
  22008. if s.NetworkInterfaceId == nil {
  22009. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  22010. }
  22011. if invalidParams.Len() > 0 {
  22012. return invalidParams
  22013. }
  22014. return nil
  22015. }
  22016. // SetDeviceIndex sets the DeviceIndex field's value.
  22017. func (s *AttachNetworkInterfaceInput) SetDeviceIndex(v int64) *AttachNetworkInterfaceInput {
  22018. s.DeviceIndex = &v
  22019. return s
  22020. }
  22021. // SetDryRun sets the DryRun field's value.
  22022. func (s *AttachNetworkInterfaceInput) SetDryRun(v bool) *AttachNetworkInterfaceInput {
  22023. s.DryRun = &v
  22024. return s
  22025. }
  22026. // SetInstanceId sets the InstanceId field's value.
  22027. func (s *AttachNetworkInterfaceInput) SetInstanceId(v string) *AttachNetworkInterfaceInput {
  22028. s.InstanceId = &v
  22029. return s
  22030. }
  22031. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  22032. func (s *AttachNetworkInterfaceInput) SetNetworkInterfaceId(v string) *AttachNetworkInterfaceInput {
  22033. s.NetworkInterfaceId = &v
  22034. return s
  22035. }
  22036. // Contains the output of AttachNetworkInterface.
  22037. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachNetworkInterfaceResult
  22038. type AttachNetworkInterfaceOutput struct {
  22039. _ struct{} `type:"structure"`
  22040. // The ID of the network interface attachment.
  22041. AttachmentId *string `locationName:"attachmentId" type:"string"`
  22042. }
  22043. // String returns the string representation
  22044. func (s AttachNetworkInterfaceOutput) String() string {
  22045. return awsutil.Prettify(s)
  22046. }
  22047. // GoString returns the string representation
  22048. func (s AttachNetworkInterfaceOutput) GoString() string {
  22049. return s.String()
  22050. }
  22051. // SetAttachmentId sets the AttachmentId field's value.
  22052. func (s *AttachNetworkInterfaceOutput) SetAttachmentId(v string) *AttachNetworkInterfaceOutput {
  22053. s.AttachmentId = &v
  22054. return s
  22055. }
  22056. // Contains the parameters for AttachVolume.
  22057. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVolumeRequest
  22058. type AttachVolumeInput struct {
  22059. _ struct{} `type:"structure"`
  22060. // The device name (for example, /dev/sdh or xvdh).
  22061. //
  22062. // Device is a required field
  22063. Device *string `type:"string" required:"true"`
  22064. // Checks whether you have the required permissions for the action, without
  22065. // actually making the request, and provides an error response. If you have
  22066. // the required permissions, the error response is DryRunOperation. Otherwise,
  22067. // it is UnauthorizedOperation.
  22068. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22069. // The ID of the instance.
  22070. //
  22071. // InstanceId is a required field
  22072. InstanceId *string `type:"string" required:"true"`
  22073. // The ID of the EBS volume. The volume and instance must be within the same
  22074. // Availability Zone.
  22075. //
  22076. // VolumeId is a required field
  22077. VolumeId *string `type:"string" required:"true"`
  22078. }
  22079. // String returns the string representation
  22080. func (s AttachVolumeInput) String() string {
  22081. return awsutil.Prettify(s)
  22082. }
  22083. // GoString returns the string representation
  22084. func (s AttachVolumeInput) GoString() string {
  22085. return s.String()
  22086. }
  22087. // Validate inspects the fields of the type to determine if they are valid.
  22088. func (s *AttachVolumeInput) Validate() error {
  22089. invalidParams := request.ErrInvalidParams{Context: "AttachVolumeInput"}
  22090. if s.Device == nil {
  22091. invalidParams.Add(request.NewErrParamRequired("Device"))
  22092. }
  22093. if s.InstanceId == nil {
  22094. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22095. }
  22096. if s.VolumeId == nil {
  22097. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  22098. }
  22099. if invalidParams.Len() > 0 {
  22100. return invalidParams
  22101. }
  22102. return nil
  22103. }
  22104. // SetDevice sets the Device field's value.
  22105. func (s *AttachVolumeInput) SetDevice(v string) *AttachVolumeInput {
  22106. s.Device = &v
  22107. return s
  22108. }
  22109. // SetDryRun sets the DryRun field's value.
  22110. func (s *AttachVolumeInput) SetDryRun(v bool) *AttachVolumeInput {
  22111. s.DryRun = &v
  22112. return s
  22113. }
  22114. // SetInstanceId sets the InstanceId field's value.
  22115. func (s *AttachVolumeInput) SetInstanceId(v string) *AttachVolumeInput {
  22116. s.InstanceId = &v
  22117. return s
  22118. }
  22119. // SetVolumeId sets the VolumeId field's value.
  22120. func (s *AttachVolumeInput) SetVolumeId(v string) *AttachVolumeInput {
  22121. s.VolumeId = &v
  22122. return s
  22123. }
  22124. // Contains the parameters for AttachVpnGateway.
  22125. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGatewayRequest
  22126. type AttachVpnGatewayInput struct {
  22127. _ struct{} `type:"structure"`
  22128. // Checks whether you have the required permissions for the action, without
  22129. // actually making the request, and provides an error response. If you have
  22130. // the required permissions, the error response is DryRunOperation. Otherwise,
  22131. // it is UnauthorizedOperation.
  22132. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22133. // The ID of the VPC.
  22134. //
  22135. // VpcId is a required field
  22136. VpcId *string `type:"string" required:"true"`
  22137. // The ID of the virtual private gateway.
  22138. //
  22139. // VpnGatewayId is a required field
  22140. VpnGatewayId *string `type:"string" required:"true"`
  22141. }
  22142. // String returns the string representation
  22143. func (s AttachVpnGatewayInput) String() string {
  22144. return awsutil.Prettify(s)
  22145. }
  22146. // GoString returns the string representation
  22147. func (s AttachVpnGatewayInput) GoString() string {
  22148. return s.String()
  22149. }
  22150. // Validate inspects the fields of the type to determine if they are valid.
  22151. func (s *AttachVpnGatewayInput) Validate() error {
  22152. invalidParams := request.ErrInvalidParams{Context: "AttachVpnGatewayInput"}
  22153. if s.VpcId == nil {
  22154. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22155. }
  22156. if s.VpnGatewayId == nil {
  22157. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  22158. }
  22159. if invalidParams.Len() > 0 {
  22160. return invalidParams
  22161. }
  22162. return nil
  22163. }
  22164. // SetDryRun sets the DryRun field's value.
  22165. func (s *AttachVpnGatewayInput) SetDryRun(v bool) *AttachVpnGatewayInput {
  22166. s.DryRun = &v
  22167. return s
  22168. }
  22169. // SetVpcId sets the VpcId field's value.
  22170. func (s *AttachVpnGatewayInput) SetVpcId(v string) *AttachVpnGatewayInput {
  22171. s.VpcId = &v
  22172. return s
  22173. }
  22174. // SetVpnGatewayId sets the VpnGatewayId field's value.
  22175. func (s *AttachVpnGatewayInput) SetVpnGatewayId(v string) *AttachVpnGatewayInput {
  22176. s.VpnGatewayId = &v
  22177. return s
  22178. }
  22179. // Contains the output of AttachVpnGateway.
  22180. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttachVpnGatewayResult
  22181. type AttachVpnGatewayOutput struct {
  22182. _ struct{} `type:"structure"`
  22183. // Information about the attachment.
  22184. VpcAttachment *VpcAttachment `locationName:"attachment" type:"structure"`
  22185. }
  22186. // String returns the string representation
  22187. func (s AttachVpnGatewayOutput) String() string {
  22188. return awsutil.Prettify(s)
  22189. }
  22190. // GoString returns the string representation
  22191. func (s AttachVpnGatewayOutput) GoString() string {
  22192. return s.String()
  22193. }
  22194. // SetVpcAttachment sets the VpcAttachment field's value.
  22195. func (s *AttachVpnGatewayOutput) SetVpcAttachment(v *VpcAttachment) *AttachVpnGatewayOutput {
  22196. s.VpcAttachment = v
  22197. return s
  22198. }
  22199. // Describes a value for a resource attribute that is a Boolean value.
  22200. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttributeBooleanValue
  22201. type AttributeBooleanValue struct {
  22202. _ struct{} `type:"structure"`
  22203. // The attribute value. The valid values are true or false.
  22204. Value *bool `locationName:"value" type:"boolean"`
  22205. }
  22206. // String returns the string representation
  22207. func (s AttributeBooleanValue) String() string {
  22208. return awsutil.Prettify(s)
  22209. }
  22210. // GoString returns the string representation
  22211. func (s AttributeBooleanValue) GoString() string {
  22212. return s.String()
  22213. }
  22214. // SetValue sets the Value field's value.
  22215. func (s *AttributeBooleanValue) SetValue(v bool) *AttributeBooleanValue {
  22216. s.Value = &v
  22217. return s
  22218. }
  22219. // Describes a value for a resource attribute that is a String.
  22220. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AttributeValue
  22221. type AttributeValue struct {
  22222. _ struct{} `type:"structure"`
  22223. // The attribute value. Note that the value is case-sensitive.
  22224. Value *string `locationName:"value" type:"string"`
  22225. }
  22226. // String returns the string representation
  22227. func (s AttributeValue) String() string {
  22228. return awsutil.Prettify(s)
  22229. }
  22230. // GoString returns the string representation
  22231. func (s AttributeValue) GoString() string {
  22232. return s.String()
  22233. }
  22234. // SetValue sets the Value field's value.
  22235. func (s *AttributeValue) SetValue(v string) *AttributeValue {
  22236. s.Value = &v
  22237. return s
  22238. }
  22239. // Contains the parameters for AuthorizeSecurityGroupEgress.
  22240. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgressRequest
  22241. type AuthorizeSecurityGroupEgressInput struct {
  22242. _ struct{} `type:"structure"`
  22243. // Not supported. Use a set of IP permissions to specify the CIDR.
  22244. CidrIp *string `locationName:"cidrIp" type:"string"`
  22245. // Checks whether you have the required permissions for the action, without
  22246. // actually making the request, and provides an error response. If you have
  22247. // the required permissions, the error response is DryRunOperation. Otherwise,
  22248. // it is UnauthorizedOperation.
  22249. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22250. // Not supported. Use a set of IP permissions to specify the port.
  22251. FromPort *int64 `locationName:"fromPort" type:"integer"`
  22252. // The ID of the security group.
  22253. //
  22254. // GroupId is a required field
  22255. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  22256. // One or more sets of IP permissions. You can't specify a destination security
  22257. // group and a CIDR IP address range in the same set of permissions.
  22258. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  22259. // Not supported. Use a set of IP permissions to specify the protocol name or
  22260. // number.
  22261. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  22262. // Not supported. Use a set of IP permissions to specify a destination security
  22263. // group.
  22264. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  22265. // Not supported. Use a set of IP permissions to specify a destination security
  22266. // group.
  22267. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  22268. // Not supported. Use a set of IP permissions to specify the port.
  22269. ToPort *int64 `locationName:"toPort" type:"integer"`
  22270. }
  22271. // String returns the string representation
  22272. func (s AuthorizeSecurityGroupEgressInput) String() string {
  22273. return awsutil.Prettify(s)
  22274. }
  22275. // GoString returns the string representation
  22276. func (s AuthorizeSecurityGroupEgressInput) GoString() string {
  22277. return s.String()
  22278. }
  22279. // Validate inspects the fields of the type to determine if they are valid.
  22280. func (s *AuthorizeSecurityGroupEgressInput) Validate() error {
  22281. invalidParams := request.ErrInvalidParams{Context: "AuthorizeSecurityGroupEgressInput"}
  22282. if s.GroupId == nil {
  22283. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  22284. }
  22285. if invalidParams.Len() > 0 {
  22286. return invalidParams
  22287. }
  22288. return nil
  22289. }
  22290. // SetCidrIp sets the CidrIp field's value.
  22291. func (s *AuthorizeSecurityGroupEgressInput) SetCidrIp(v string) *AuthorizeSecurityGroupEgressInput {
  22292. s.CidrIp = &v
  22293. return s
  22294. }
  22295. // SetDryRun sets the DryRun field's value.
  22296. func (s *AuthorizeSecurityGroupEgressInput) SetDryRun(v bool) *AuthorizeSecurityGroupEgressInput {
  22297. s.DryRun = &v
  22298. return s
  22299. }
  22300. // SetFromPort sets the FromPort field's value.
  22301. func (s *AuthorizeSecurityGroupEgressInput) SetFromPort(v int64) *AuthorizeSecurityGroupEgressInput {
  22302. s.FromPort = &v
  22303. return s
  22304. }
  22305. // SetGroupId sets the GroupId field's value.
  22306. func (s *AuthorizeSecurityGroupEgressInput) SetGroupId(v string) *AuthorizeSecurityGroupEgressInput {
  22307. s.GroupId = &v
  22308. return s
  22309. }
  22310. // SetIpPermissions sets the IpPermissions field's value.
  22311. func (s *AuthorizeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupEgressInput {
  22312. s.IpPermissions = v
  22313. return s
  22314. }
  22315. // SetIpProtocol sets the IpProtocol field's value.
  22316. func (s *AuthorizeSecurityGroupEgressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupEgressInput {
  22317. s.IpProtocol = &v
  22318. return s
  22319. }
  22320. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  22321. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupEgressInput {
  22322. s.SourceSecurityGroupName = &v
  22323. return s
  22324. }
  22325. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  22326. func (s *AuthorizeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupEgressInput {
  22327. s.SourceSecurityGroupOwnerId = &v
  22328. return s
  22329. }
  22330. // SetToPort sets the ToPort field's value.
  22331. func (s *AuthorizeSecurityGroupEgressInput) SetToPort(v int64) *AuthorizeSecurityGroupEgressInput {
  22332. s.ToPort = &v
  22333. return s
  22334. }
  22335. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupEgressOutput
  22336. type AuthorizeSecurityGroupEgressOutput struct {
  22337. _ struct{} `type:"structure"`
  22338. }
  22339. // String returns the string representation
  22340. func (s AuthorizeSecurityGroupEgressOutput) String() string {
  22341. return awsutil.Prettify(s)
  22342. }
  22343. // GoString returns the string representation
  22344. func (s AuthorizeSecurityGroupEgressOutput) GoString() string {
  22345. return s.String()
  22346. }
  22347. // Contains the parameters for AuthorizeSecurityGroupIngress.
  22348. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngressRequest
  22349. type AuthorizeSecurityGroupIngressInput struct {
  22350. _ struct{} `type:"structure"`
  22351. // The CIDR IPv4 address range. You can't specify this parameter when specifying
  22352. // a source security group.
  22353. CidrIp *string `type:"string"`
  22354. // Checks whether you have the required permissions for the action, without
  22355. // actually making the request, and provides an error response. If you have
  22356. // the required permissions, the error response is DryRunOperation. Otherwise,
  22357. // it is UnauthorizedOperation.
  22358. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22359. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  22360. // type number. For the ICMP/ICMPv6 type number, use -1 to specify all types.
  22361. // If you specify all ICMP/ICMPv6 types, you must specify all codes.
  22362. FromPort *int64 `type:"integer"`
  22363. // The ID of the security group. You must specify either the security group
  22364. // ID or the security group name in the request. For security groups in a nondefault
  22365. // VPC, you must specify the security group ID.
  22366. GroupId *string `type:"string"`
  22367. // [EC2-Classic, default VPC] The name of the security group. You must specify
  22368. // either the security group ID or the security group name in the request.
  22369. GroupName *string `type:"string"`
  22370. // One or more sets of IP permissions. Can be used to specify multiple rules
  22371. // in a single command.
  22372. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  22373. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  22374. // (VPC only) Use -1 to specify all protocols. If you specify -1, or a protocol
  22375. // number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is
  22376. // allowed, regardless of any ports you specify. For tcp, udp, and icmp, you
  22377. // must specify a port range. For protocol 58 (ICMPv6), you can optionally specify
  22378. // a port range; if you don't, traffic for all types and codes is allowed.
  22379. IpProtocol *string `type:"string"`
  22380. // [EC2-Classic, default VPC] The name of the source security group. You can't
  22381. // specify this parameter in combination with the following parameters: the
  22382. // CIDR IP address range, the start of the port range, the IP protocol, and
  22383. // the end of the port range. Creates rules that grant full ICMP, UDP, and TCP
  22384. // access. To create a rule with a specific IP protocol and port range, use
  22385. // a set of IP permissions instead. For EC2-VPC, the source security group must
  22386. // be in the same VPC.
  22387. SourceSecurityGroupName *string `type:"string"`
  22388. // [EC2-Classic] The AWS account ID for the source security group, if the source
  22389. // security group is in a different account. You can't specify this parameter
  22390. // in combination with the following parameters: the CIDR IP address range,
  22391. // the IP protocol, the start of the port range, and the end of the port range.
  22392. // Creates rules that grant full ICMP, UDP, and TCP access. To create a rule
  22393. // with a specific IP protocol and port range, use a set of IP permissions instead.
  22394. SourceSecurityGroupOwnerId *string `type:"string"`
  22395. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code
  22396. // number. For the ICMP/ICMPv6 code number, use -1 to specify all codes. If
  22397. // you specify all ICMP/ICMPv6 types, you must specify all codes.
  22398. ToPort *int64 `type:"integer"`
  22399. }
  22400. // String returns the string representation
  22401. func (s AuthorizeSecurityGroupIngressInput) String() string {
  22402. return awsutil.Prettify(s)
  22403. }
  22404. // GoString returns the string representation
  22405. func (s AuthorizeSecurityGroupIngressInput) GoString() string {
  22406. return s.String()
  22407. }
  22408. // SetCidrIp sets the CidrIp field's value.
  22409. func (s *AuthorizeSecurityGroupIngressInput) SetCidrIp(v string) *AuthorizeSecurityGroupIngressInput {
  22410. s.CidrIp = &v
  22411. return s
  22412. }
  22413. // SetDryRun sets the DryRun field's value.
  22414. func (s *AuthorizeSecurityGroupIngressInput) SetDryRun(v bool) *AuthorizeSecurityGroupIngressInput {
  22415. s.DryRun = &v
  22416. return s
  22417. }
  22418. // SetFromPort sets the FromPort field's value.
  22419. func (s *AuthorizeSecurityGroupIngressInput) SetFromPort(v int64) *AuthorizeSecurityGroupIngressInput {
  22420. s.FromPort = &v
  22421. return s
  22422. }
  22423. // SetGroupId sets the GroupId field's value.
  22424. func (s *AuthorizeSecurityGroupIngressInput) SetGroupId(v string) *AuthorizeSecurityGroupIngressInput {
  22425. s.GroupId = &v
  22426. return s
  22427. }
  22428. // SetGroupName sets the GroupName field's value.
  22429. func (s *AuthorizeSecurityGroupIngressInput) SetGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  22430. s.GroupName = &v
  22431. return s
  22432. }
  22433. // SetIpPermissions sets the IpPermissions field's value.
  22434. func (s *AuthorizeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *AuthorizeSecurityGroupIngressInput {
  22435. s.IpPermissions = v
  22436. return s
  22437. }
  22438. // SetIpProtocol sets the IpProtocol field's value.
  22439. func (s *AuthorizeSecurityGroupIngressInput) SetIpProtocol(v string) *AuthorizeSecurityGroupIngressInput {
  22440. s.IpProtocol = &v
  22441. return s
  22442. }
  22443. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  22444. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *AuthorizeSecurityGroupIngressInput {
  22445. s.SourceSecurityGroupName = &v
  22446. return s
  22447. }
  22448. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  22449. func (s *AuthorizeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *AuthorizeSecurityGroupIngressInput {
  22450. s.SourceSecurityGroupOwnerId = &v
  22451. return s
  22452. }
  22453. // SetToPort sets the ToPort field's value.
  22454. func (s *AuthorizeSecurityGroupIngressInput) SetToPort(v int64) *AuthorizeSecurityGroupIngressInput {
  22455. s.ToPort = &v
  22456. return s
  22457. }
  22458. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AuthorizeSecurityGroupIngressOutput
  22459. type AuthorizeSecurityGroupIngressOutput struct {
  22460. _ struct{} `type:"structure"`
  22461. }
  22462. // String returns the string representation
  22463. func (s AuthorizeSecurityGroupIngressOutput) String() string {
  22464. return awsutil.Prettify(s)
  22465. }
  22466. // GoString returns the string representation
  22467. func (s AuthorizeSecurityGroupIngressOutput) GoString() string {
  22468. return s.String()
  22469. }
  22470. // Describes an Availability Zone.
  22471. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailabilityZone
  22472. type AvailabilityZone struct {
  22473. _ struct{} `type:"structure"`
  22474. // Any messages about the Availability Zone.
  22475. Messages []*AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"`
  22476. // The name of the region.
  22477. RegionName *string `locationName:"regionName" type:"string"`
  22478. // The state of the Availability Zone.
  22479. State *string `locationName:"zoneState" type:"string" enum:"AvailabilityZoneState"`
  22480. // The name of the Availability Zone.
  22481. ZoneName *string `locationName:"zoneName" type:"string"`
  22482. }
  22483. // String returns the string representation
  22484. func (s AvailabilityZone) String() string {
  22485. return awsutil.Prettify(s)
  22486. }
  22487. // GoString returns the string representation
  22488. func (s AvailabilityZone) GoString() string {
  22489. return s.String()
  22490. }
  22491. // SetMessages sets the Messages field's value.
  22492. func (s *AvailabilityZone) SetMessages(v []*AvailabilityZoneMessage) *AvailabilityZone {
  22493. s.Messages = v
  22494. return s
  22495. }
  22496. // SetRegionName sets the RegionName field's value.
  22497. func (s *AvailabilityZone) SetRegionName(v string) *AvailabilityZone {
  22498. s.RegionName = &v
  22499. return s
  22500. }
  22501. // SetState sets the State field's value.
  22502. func (s *AvailabilityZone) SetState(v string) *AvailabilityZone {
  22503. s.State = &v
  22504. return s
  22505. }
  22506. // SetZoneName sets the ZoneName field's value.
  22507. func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone {
  22508. s.ZoneName = &v
  22509. return s
  22510. }
  22511. // Describes a message about an Availability Zone.
  22512. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailabilityZoneMessage
  22513. type AvailabilityZoneMessage struct {
  22514. _ struct{} `type:"structure"`
  22515. // The message about the Availability Zone.
  22516. Message *string `locationName:"message" type:"string"`
  22517. }
  22518. // String returns the string representation
  22519. func (s AvailabilityZoneMessage) String() string {
  22520. return awsutil.Prettify(s)
  22521. }
  22522. // GoString returns the string representation
  22523. func (s AvailabilityZoneMessage) GoString() string {
  22524. return s.String()
  22525. }
  22526. // SetMessage sets the Message field's value.
  22527. func (s *AvailabilityZoneMessage) SetMessage(v string) *AvailabilityZoneMessage {
  22528. s.Message = &v
  22529. return s
  22530. }
  22531. // The capacity information for instances launched onto the Dedicated Host.
  22532. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AvailableCapacity
  22533. type AvailableCapacity struct {
  22534. _ struct{} `type:"structure"`
  22535. // The total number of instances that the Dedicated Host supports.
  22536. AvailableInstanceCapacity []*InstanceCapacity `locationName:"availableInstanceCapacity" locationNameList:"item" type:"list"`
  22537. // The number of vCPUs available on the Dedicated Host.
  22538. AvailableVCpus *int64 `locationName:"availableVCpus" type:"integer"`
  22539. }
  22540. // String returns the string representation
  22541. func (s AvailableCapacity) String() string {
  22542. return awsutil.Prettify(s)
  22543. }
  22544. // GoString returns the string representation
  22545. func (s AvailableCapacity) GoString() string {
  22546. return s.String()
  22547. }
  22548. // SetAvailableInstanceCapacity sets the AvailableInstanceCapacity field's value.
  22549. func (s *AvailableCapacity) SetAvailableInstanceCapacity(v []*InstanceCapacity) *AvailableCapacity {
  22550. s.AvailableInstanceCapacity = v
  22551. return s
  22552. }
  22553. // SetAvailableVCpus sets the AvailableVCpus field's value.
  22554. func (s *AvailableCapacity) SetAvailableVCpus(v int64) *AvailableCapacity {
  22555. s.AvailableVCpus = &v
  22556. return s
  22557. }
  22558. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BlobAttributeValue
  22559. type BlobAttributeValue struct {
  22560. _ struct{} `type:"structure"`
  22561. // Value is automatically base64 encoded/decoded by the SDK.
  22562. Value []byte `locationName:"value" type:"blob"`
  22563. }
  22564. // String returns the string representation
  22565. func (s BlobAttributeValue) String() string {
  22566. return awsutil.Prettify(s)
  22567. }
  22568. // GoString returns the string representation
  22569. func (s BlobAttributeValue) GoString() string {
  22570. return s.String()
  22571. }
  22572. // SetValue sets the Value field's value.
  22573. func (s *BlobAttributeValue) SetValue(v []byte) *BlobAttributeValue {
  22574. s.Value = v
  22575. return s
  22576. }
  22577. // Describes a block device mapping.
  22578. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BlockDeviceMapping
  22579. type BlockDeviceMapping struct {
  22580. _ struct{} `type:"structure"`
  22581. // The device name (for example, /dev/sdh or xvdh).
  22582. DeviceName *string `locationName:"deviceName" type:"string"`
  22583. // Parameters used to automatically set up EBS volumes when the instance is
  22584. // launched.
  22585. Ebs *EbsBlockDevice `locationName:"ebs" type:"structure"`
  22586. // Suppresses the specified device included in the block device mapping of the
  22587. // AMI.
  22588. NoDevice *string `locationName:"noDevice" type:"string"`
  22589. // The virtual device name (ephemeralN). Instance store volumes are numbered
  22590. // starting from 0. An instance type with 2 available instance store volumes
  22591. // can specify mappings for ephemeral0 and ephemeral1.The number of available
  22592. // instance store volumes depends on the instance type. After you connect to
  22593. // the instance, you must mount the volume.
  22594. //
  22595. // Constraints: For M3 instances, you must specify instance store volumes in
  22596. // the block device mapping for the instance. When you launch an M3 instance,
  22597. // we ignore any instance store volumes specified in the block device mapping
  22598. // for the AMI.
  22599. VirtualName *string `locationName:"virtualName" type:"string"`
  22600. }
  22601. // String returns the string representation
  22602. func (s BlockDeviceMapping) String() string {
  22603. return awsutil.Prettify(s)
  22604. }
  22605. // GoString returns the string representation
  22606. func (s BlockDeviceMapping) GoString() string {
  22607. return s.String()
  22608. }
  22609. // SetDeviceName sets the DeviceName field's value.
  22610. func (s *BlockDeviceMapping) SetDeviceName(v string) *BlockDeviceMapping {
  22611. s.DeviceName = &v
  22612. return s
  22613. }
  22614. // SetEbs sets the Ebs field's value.
  22615. func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping {
  22616. s.Ebs = v
  22617. return s
  22618. }
  22619. // SetNoDevice sets the NoDevice field's value.
  22620. func (s *BlockDeviceMapping) SetNoDevice(v string) *BlockDeviceMapping {
  22621. s.NoDevice = &v
  22622. return s
  22623. }
  22624. // SetVirtualName sets the VirtualName field's value.
  22625. func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping {
  22626. s.VirtualName = &v
  22627. return s
  22628. }
  22629. // Contains the parameters for BundleInstance.
  22630. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstanceRequest
  22631. type BundleInstanceInput struct {
  22632. _ struct{} `type:"structure"`
  22633. // Checks whether you have the required permissions for the action, without
  22634. // actually making the request, and provides an error response. If you have
  22635. // the required permissions, the error response is DryRunOperation. Otherwise,
  22636. // it is UnauthorizedOperation.
  22637. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22638. // The ID of the instance to bundle.
  22639. //
  22640. // Type: String
  22641. //
  22642. // Default: None
  22643. //
  22644. // Required: Yes
  22645. //
  22646. // InstanceId is a required field
  22647. InstanceId *string `type:"string" required:"true"`
  22648. // The bucket in which to store the AMI. You can specify a bucket that you already
  22649. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  22650. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  22651. //
  22652. // Storage is a required field
  22653. Storage *Storage `type:"structure" required:"true"`
  22654. }
  22655. // String returns the string representation
  22656. func (s BundleInstanceInput) String() string {
  22657. return awsutil.Prettify(s)
  22658. }
  22659. // GoString returns the string representation
  22660. func (s BundleInstanceInput) GoString() string {
  22661. return s.String()
  22662. }
  22663. // Validate inspects the fields of the type to determine if they are valid.
  22664. func (s *BundleInstanceInput) Validate() error {
  22665. invalidParams := request.ErrInvalidParams{Context: "BundleInstanceInput"}
  22666. if s.InstanceId == nil {
  22667. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22668. }
  22669. if s.Storage == nil {
  22670. invalidParams.Add(request.NewErrParamRequired("Storage"))
  22671. }
  22672. if invalidParams.Len() > 0 {
  22673. return invalidParams
  22674. }
  22675. return nil
  22676. }
  22677. // SetDryRun sets the DryRun field's value.
  22678. func (s *BundleInstanceInput) SetDryRun(v bool) *BundleInstanceInput {
  22679. s.DryRun = &v
  22680. return s
  22681. }
  22682. // SetInstanceId sets the InstanceId field's value.
  22683. func (s *BundleInstanceInput) SetInstanceId(v string) *BundleInstanceInput {
  22684. s.InstanceId = &v
  22685. return s
  22686. }
  22687. // SetStorage sets the Storage field's value.
  22688. func (s *BundleInstanceInput) SetStorage(v *Storage) *BundleInstanceInput {
  22689. s.Storage = v
  22690. return s
  22691. }
  22692. // Contains the output of BundleInstance.
  22693. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleInstanceResult
  22694. type BundleInstanceOutput struct {
  22695. _ struct{} `type:"structure"`
  22696. // Information about the bundle task.
  22697. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  22698. }
  22699. // String returns the string representation
  22700. func (s BundleInstanceOutput) String() string {
  22701. return awsutil.Prettify(s)
  22702. }
  22703. // GoString returns the string representation
  22704. func (s BundleInstanceOutput) GoString() string {
  22705. return s.String()
  22706. }
  22707. // SetBundleTask sets the BundleTask field's value.
  22708. func (s *BundleInstanceOutput) SetBundleTask(v *BundleTask) *BundleInstanceOutput {
  22709. s.BundleTask = v
  22710. return s
  22711. }
  22712. // Describes a bundle task.
  22713. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleTask
  22714. type BundleTask struct {
  22715. _ struct{} `type:"structure"`
  22716. // The ID of the bundle task.
  22717. BundleId *string `locationName:"bundleId" type:"string"`
  22718. // If the task fails, a description of the error.
  22719. BundleTaskError *BundleTaskError `locationName:"error" type:"structure"`
  22720. // The ID of the instance associated with this bundle task.
  22721. InstanceId *string `locationName:"instanceId" type:"string"`
  22722. // The level of task completion, as a percent (for example, 20%).
  22723. Progress *string `locationName:"progress" type:"string"`
  22724. // The time this task started.
  22725. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  22726. // The state of the task.
  22727. State *string `locationName:"state" type:"string" enum:"BundleTaskState"`
  22728. // The Amazon S3 storage locations.
  22729. Storage *Storage `locationName:"storage" type:"structure"`
  22730. // The time of the most recent update for the task.
  22731. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  22732. }
  22733. // String returns the string representation
  22734. func (s BundleTask) String() string {
  22735. return awsutil.Prettify(s)
  22736. }
  22737. // GoString returns the string representation
  22738. func (s BundleTask) GoString() string {
  22739. return s.String()
  22740. }
  22741. // SetBundleId sets the BundleId field's value.
  22742. func (s *BundleTask) SetBundleId(v string) *BundleTask {
  22743. s.BundleId = &v
  22744. return s
  22745. }
  22746. // SetBundleTaskError sets the BundleTaskError field's value.
  22747. func (s *BundleTask) SetBundleTaskError(v *BundleTaskError) *BundleTask {
  22748. s.BundleTaskError = v
  22749. return s
  22750. }
  22751. // SetInstanceId sets the InstanceId field's value.
  22752. func (s *BundleTask) SetInstanceId(v string) *BundleTask {
  22753. s.InstanceId = &v
  22754. return s
  22755. }
  22756. // SetProgress sets the Progress field's value.
  22757. func (s *BundleTask) SetProgress(v string) *BundleTask {
  22758. s.Progress = &v
  22759. return s
  22760. }
  22761. // SetStartTime sets the StartTime field's value.
  22762. func (s *BundleTask) SetStartTime(v time.Time) *BundleTask {
  22763. s.StartTime = &v
  22764. return s
  22765. }
  22766. // SetState sets the State field's value.
  22767. func (s *BundleTask) SetState(v string) *BundleTask {
  22768. s.State = &v
  22769. return s
  22770. }
  22771. // SetStorage sets the Storage field's value.
  22772. func (s *BundleTask) SetStorage(v *Storage) *BundleTask {
  22773. s.Storage = v
  22774. return s
  22775. }
  22776. // SetUpdateTime sets the UpdateTime field's value.
  22777. func (s *BundleTask) SetUpdateTime(v time.Time) *BundleTask {
  22778. s.UpdateTime = &v
  22779. return s
  22780. }
  22781. // Describes an error for BundleInstance.
  22782. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BundleTaskError
  22783. type BundleTaskError struct {
  22784. _ struct{} `type:"structure"`
  22785. // The error code.
  22786. Code *string `locationName:"code" type:"string"`
  22787. // The error message.
  22788. Message *string `locationName:"message" type:"string"`
  22789. }
  22790. // String returns the string representation
  22791. func (s BundleTaskError) String() string {
  22792. return awsutil.Prettify(s)
  22793. }
  22794. // GoString returns the string representation
  22795. func (s BundleTaskError) GoString() string {
  22796. return s.String()
  22797. }
  22798. // SetCode sets the Code field's value.
  22799. func (s *BundleTaskError) SetCode(v string) *BundleTaskError {
  22800. s.Code = &v
  22801. return s
  22802. }
  22803. // SetMessage sets the Message field's value.
  22804. func (s *BundleTaskError) SetMessage(v string) *BundleTaskError {
  22805. s.Message = &v
  22806. return s
  22807. }
  22808. // Contains the parameters for CancelBundleTask.
  22809. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTaskRequest
  22810. type CancelBundleTaskInput struct {
  22811. _ struct{} `type:"structure"`
  22812. // The ID of the bundle task.
  22813. //
  22814. // BundleId is a required field
  22815. BundleId *string `type:"string" required:"true"`
  22816. // Checks whether you have the required permissions for the action, without
  22817. // actually making the request, and provides an error response. If you have
  22818. // the required permissions, the error response is DryRunOperation. Otherwise,
  22819. // it is UnauthorizedOperation.
  22820. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22821. }
  22822. // String returns the string representation
  22823. func (s CancelBundleTaskInput) String() string {
  22824. return awsutil.Prettify(s)
  22825. }
  22826. // GoString returns the string representation
  22827. func (s CancelBundleTaskInput) GoString() string {
  22828. return s.String()
  22829. }
  22830. // Validate inspects the fields of the type to determine if they are valid.
  22831. func (s *CancelBundleTaskInput) Validate() error {
  22832. invalidParams := request.ErrInvalidParams{Context: "CancelBundleTaskInput"}
  22833. if s.BundleId == nil {
  22834. invalidParams.Add(request.NewErrParamRequired("BundleId"))
  22835. }
  22836. if invalidParams.Len() > 0 {
  22837. return invalidParams
  22838. }
  22839. return nil
  22840. }
  22841. // SetBundleId sets the BundleId field's value.
  22842. func (s *CancelBundleTaskInput) SetBundleId(v string) *CancelBundleTaskInput {
  22843. s.BundleId = &v
  22844. return s
  22845. }
  22846. // SetDryRun sets the DryRun field's value.
  22847. func (s *CancelBundleTaskInput) SetDryRun(v bool) *CancelBundleTaskInput {
  22848. s.DryRun = &v
  22849. return s
  22850. }
  22851. // Contains the output of CancelBundleTask.
  22852. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelBundleTaskResult
  22853. type CancelBundleTaskOutput struct {
  22854. _ struct{} `type:"structure"`
  22855. // Information about the bundle task.
  22856. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  22857. }
  22858. // String returns the string representation
  22859. func (s CancelBundleTaskOutput) String() string {
  22860. return awsutil.Prettify(s)
  22861. }
  22862. // GoString returns the string representation
  22863. func (s CancelBundleTaskOutput) GoString() string {
  22864. return s.String()
  22865. }
  22866. // SetBundleTask sets the BundleTask field's value.
  22867. func (s *CancelBundleTaskOutput) SetBundleTask(v *BundleTask) *CancelBundleTaskOutput {
  22868. s.BundleTask = v
  22869. return s
  22870. }
  22871. // Contains the parameters for CancelConversionTask.
  22872. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionRequest
  22873. type CancelConversionTaskInput struct {
  22874. _ struct{} `type:"structure"`
  22875. // The ID of the conversion task.
  22876. //
  22877. // ConversionTaskId is a required field
  22878. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  22879. // Checks whether you have the required permissions for the action, without
  22880. // actually making the request, and provides an error response. If you have
  22881. // the required permissions, the error response is DryRunOperation. Otherwise,
  22882. // it is UnauthorizedOperation.
  22883. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22884. // The reason for canceling the conversion task.
  22885. ReasonMessage *string `locationName:"reasonMessage" type:"string"`
  22886. }
  22887. // String returns the string representation
  22888. func (s CancelConversionTaskInput) String() string {
  22889. return awsutil.Prettify(s)
  22890. }
  22891. // GoString returns the string representation
  22892. func (s CancelConversionTaskInput) GoString() string {
  22893. return s.String()
  22894. }
  22895. // Validate inspects the fields of the type to determine if they are valid.
  22896. func (s *CancelConversionTaskInput) Validate() error {
  22897. invalidParams := request.ErrInvalidParams{Context: "CancelConversionTaskInput"}
  22898. if s.ConversionTaskId == nil {
  22899. invalidParams.Add(request.NewErrParamRequired("ConversionTaskId"))
  22900. }
  22901. if invalidParams.Len() > 0 {
  22902. return invalidParams
  22903. }
  22904. return nil
  22905. }
  22906. // SetConversionTaskId sets the ConversionTaskId field's value.
  22907. func (s *CancelConversionTaskInput) SetConversionTaskId(v string) *CancelConversionTaskInput {
  22908. s.ConversionTaskId = &v
  22909. return s
  22910. }
  22911. // SetDryRun sets the DryRun field's value.
  22912. func (s *CancelConversionTaskInput) SetDryRun(v bool) *CancelConversionTaskInput {
  22913. s.DryRun = &v
  22914. return s
  22915. }
  22916. // SetReasonMessage sets the ReasonMessage field's value.
  22917. func (s *CancelConversionTaskInput) SetReasonMessage(v string) *CancelConversionTaskInput {
  22918. s.ReasonMessage = &v
  22919. return s
  22920. }
  22921. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelConversionTaskOutput
  22922. type CancelConversionTaskOutput struct {
  22923. _ struct{} `type:"structure"`
  22924. }
  22925. // String returns the string representation
  22926. func (s CancelConversionTaskOutput) String() string {
  22927. return awsutil.Prettify(s)
  22928. }
  22929. // GoString returns the string representation
  22930. func (s CancelConversionTaskOutput) GoString() string {
  22931. return s.String()
  22932. }
  22933. // Contains the parameters for CancelExportTask.
  22934. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTaskRequest
  22935. type CancelExportTaskInput struct {
  22936. _ struct{} `type:"structure"`
  22937. // The ID of the export task. This is the ID returned by CreateInstanceExportTask.
  22938. //
  22939. // ExportTaskId is a required field
  22940. ExportTaskId *string `locationName:"exportTaskId" type:"string" required:"true"`
  22941. }
  22942. // String returns the string representation
  22943. func (s CancelExportTaskInput) String() string {
  22944. return awsutil.Prettify(s)
  22945. }
  22946. // GoString returns the string representation
  22947. func (s CancelExportTaskInput) GoString() string {
  22948. return s.String()
  22949. }
  22950. // Validate inspects the fields of the type to determine if they are valid.
  22951. func (s *CancelExportTaskInput) Validate() error {
  22952. invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
  22953. if s.ExportTaskId == nil {
  22954. invalidParams.Add(request.NewErrParamRequired("ExportTaskId"))
  22955. }
  22956. if invalidParams.Len() > 0 {
  22957. return invalidParams
  22958. }
  22959. return nil
  22960. }
  22961. // SetExportTaskId sets the ExportTaskId field's value.
  22962. func (s *CancelExportTaskInput) SetExportTaskId(v string) *CancelExportTaskInput {
  22963. s.ExportTaskId = &v
  22964. return s
  22965. }
  22966. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelExportTaskOutput
  22967. type CancelExportTaskOutput struct {
  22968. _ struct{} `type:"structure"`
  22969. }
  22970. // String returns the string representation
  22971. func (s CancelExportTaskOutput) String() string {
  22972. return awsutil.Prettify(s)
  22973. }
  22974. // GoString returns the string representation
  22975. func (s CancelExportTaskOutput) GoString() string {
  22976. return s.String()
  22977. }
  22978. // Contains the parameters for CancelImportTask.
  22979. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTaskRequest
  22980. type CancelImportTaskInput struct {
  22981. _ struct{} `type:"structure"`
  22982. // The reason for canceling the task.
  22983. CancelReason *string `type:"string"`
  22984. // Checks whether you have the required permissions for the action, without
  22985. // actually making the request, and provides an error response. If you have
  22986. // the required permissions, the error response is DryRunOperation. Otherwise,
  22987. // it is UnauthorizedOperation.
  22988. DryRun *bool `type:"boolean"`
  22989. // The ID of the import image or import snapshot task to be canceled.
  22990. ImportTaskId *string `type:"string"`
  22991. }
  22992. // String returns the string representation
  22993. func (s CancelImportTaskInput) String() string {
  22994. return awsutil.Prettify(s)
  22995. }
  22996. // GoString returns the string representation
  22997. func (s CancelImportTaskInput) GoString() string {
  22998. return s.String()
  22999. }
  23000. // SetCancelReason sets the CancelReason field's value.
  23001. func (s *CancelImportTaskInput) SetCancelReason(v string) *CancelImportTaskInput {
  23002. s.CancelReason = &v
  23003. return s
  23004. }
  23005. // SetDryRun sets the DryRun field's value.
  23006. func (s *CancelImportTaskInput) SetDryRun(v bool) *CancelImportTaskInput {
  23007. s.DryRun = &v
  23008. return s
  23009. }
  23010. // SetImportTaskId sets the ImportTaskId field's value.
  23011. func (s *CancelImportTaskInput) SetImportTaskId(v string) *CancelImportTaskInput {
  23012. s.ImportTaskId = &v
  23013. return s
  23014. }
  23015. // Contains the output for CancelImportTask.
  23016. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImportTaskResult
  23017. type CancelImportTaskOutput struct {
  23018. _ struct{} `type:"structure"`
  23019. // The ID of the task being canceled.
  23020. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  23021. // The current state of the task being canceled.
  23022. PreviousState *string `locationName:"previousState" type:"string"`
  23023. // The current state of the task being canceled.
  23024. State *string `locationName:"state" type:"string"`
  23025. }
  23026. // String returns the string representation
  23027. func (s CancelImportTaskOutput) String() string {
  23028. return awsutil.Prettify(s)
  23029. }
  23030. // GoString returns the string representation
  23031. func (s CancelImportTaskOutput) GoString() string {
  23032. return s.String()
  23033. }
  23034. // SetImportTaskId sets the ImportTaskId field's value.
  23035. func (s *CancelImportTaskOutput) SetImportTaskId(v string) *CancelImportTaskOutput {
  23036. s.ImportTaskId = &v
  23037. return s
  23038. }
  23039. // SetPreviousState sets the PreviousState field's value.
  23040. func (s *CancelImportTaskOutput) SetPreviousState(v string) *CancelImportTaskOutput {
  23041. s.PreviousState = &v
  23042. return s
  23043. }
  23044. // SetState sets the State field's value.
  23045. func (s *CancelImportTaskOutput) SetState(v string) *CancelImportTaskOutput {
  23046. s.State = &v
  23047. return s
  23048. }
  23049. // Contains the parameters for CancelReservedInstancesListing.
  23050. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListingRequest
  23051. type CancelReservedInstancesListingInput struct {
  23052. _ struct{} `type:"structure"`
  23053. // The ID of the Reserved Instance listing.
  23054. //
  23055. // ReservedInstancesListingId is a required field
  23056. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string" required:"true"`
  23057. }
  23058. // String returns the string representation
  23059. func (s CancelReservedInstancesListingInput) String() string {
  23060. return awsutil.Prettify(s)
  23061. }
  23062. // GoString returns the string representation
  23063. func (s CancelReservedInstancesListingInput) GoString() string {
  23064. return s.String()
  23065. }
  23066. // Validate inspects the fields of the type to determine if they are valid.
  23067. func (s *CancelReservedInstancesListingInput) Validate() error {
  23068. invalidParams := request.ErrInvalidParams{Context: "CancelReservedInstancesListingInput"}
  23069. if s.ReservedInstancesListingId == nil {
  23070. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesListingId"))
  23071. }
  23072. if invalidParams.Len() > 0 {
  23073. return invalidParams
  23074. }
  23075. return nil
  23076. }
  23077. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  23078. func (s *CancelReservedInstancesListingInput) SetReservedInstancesListingId(v string) *CancelReservedInstancesListingInput {
  23079. s.ReservedInstancesListingId = &v
  23080. return s
  23081. }
  23082. // Contains the output of CancelReservedInstancesListing.
  23083. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelReservedInstancesListingResult
  23084. type CancelReservedInstancesListingOutput struct {
  23085. _ struct{} `type:"structure"`
  23086. // The Reserved Instance listing.
  23087. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  23088. }
  23089. // String returns the string representation
  23090. func (s CancelReservedInstancesListingOutput) String() string {
  23091. return awsutil.Prettify(s)
  23092. }
  23093. // GoString returns the string representation
  23094. func (s CancelReservedInstancesListingOutput) GoString() string {
  23095. return s.String()
  23096. }
  23097. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  23098. func (s *CancelReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CancelReservedInstancesListingOutput {
  23099. s.ReservedInstancesListings = v
  23100. return s
  23101. }
  23102. // Describes a Spot Fleet error.
  23103. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsError
  23104. type CancelSpotFleetRequestsError struct {
  23105. _ struct{} `type:"structure"`
  23106. // The error code.
  23107. //
  23108. // Code is a required field
  23109. Code *string `locationName:"code" type:"string" required:"true" enum:"CancelBatchErrorCode"`
  23110. // The description for the error code.
  23111. //
  23112. // Message is a required field
  23113. Message *string `locationName:"message" type:"string" required:"true"`
  23114. }
  23115. // String returns the string representation
  23116. func (s CancelSpotFleetRequestsError) String() string {
  23117. return awsutil.Prettify(s)
  23118. }
  23119. // GoString returns the string representation
  23120. func (s CancelSpotFleetRequestsError) GoString() string {
  23121. return s.String()
  23122. }
  23123. // SetCode sets the Code field's value.
  23124. func (s *CancelSpotFleetRequestsError) SetCode(v string) *CancelSpotFleetRequestsError {
  23125. s.Code = &v
  23126. return s
  23127. }
  23128. // SetMessage sets the Message field's value.
  23129. func (s *CancelSpotFleetRequestsError) SetMessage(v string) *CancelSpotFleetRequestsError {
  23130. s.Message = &v
  23131. return s
  23132. }
  23133. // Describes a Spot Fleet request that was not successfully canceled.
  23134. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsErrorItem
  23135. type CancelSpotFleetRequestsErrorItem struct {
  23136. _ struct{} `type:"structure"`
  23137. // The error.
  23138. //
  23139. // Error is a required field
  23140. Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure" required:"true"`
  23141. // The ID of the Spot Fleet request.
  23142. //
  23143. // SpotFleetRequestId is a required field
  23144. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  23145. }
  23146. // String returns the string representation
  23147. func (s CancelSpotFleetRequestsErrorItem) String() string {
  23148. return awsutil.Prettify(s)
  23149. }
  23150. // GoString returns the string representation
  23151. func (s CancelSpotFleetRequestsErrorItem) GoString() string {
  23152. return s.String()
  23153. }
  23154. // SetError sets the Error field's value.
  23155. func (s *CancelSpotFleetRequestsErrorItem) SetError(v *CancelSpotFleetRequestsError) *CancelSpotFleetRequestsErrorItem {
  23156. s.Error = v
  23157. return s
  23158. }
  23159. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  23160. func (s *CancelSpotFleetRequestsErrorItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsErrorItem {
  23161. s.SpotFleetRequestId = &v
  23162. return s
  23163. }
  23164. // Contains the parameters for CancelSpotFleetRequests.
  23165. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsRequest
  23166. type CancelSpotFleetRequestsInput struct {
  23167. _ struct{} `type:"structure"`
  23168. // Checks whether you have the required permissions for the action, without
  23169. // actually making the request, and provides an error response. If you have
  23170. // the required permissions, the error response is DryRunOperation. Otherwise,
  23171. // it is UnauthorizedOperation.
  23172. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23173. // The IDs of the Spot Fleet requests.
  23174. //
  23175. // SpotFleetRequestIds is a required field
  23176. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list" required:"true"`
  23177. // Indicates whether to terminate instances for a Spot Fleet request if it is
  23178. // canceled successfully.
  23179. //
  23180. // TerminateInstances is a required field
  23181. TerminateInstances *bool `locationName:"terminateInstances" type:"boolean" required:"true"`
  23182. }
  23183. // String returns the string representation
  23184. func (s CancelSpotFleetRequestsInput) String() string {
  23185. return awsutil.Prettify(s)
  23186. }
  23187. // GoString returns the string representation
  23188. func (s CancelSpotFleetRequestsInput) GoString() string {
  23189. return s.String()
  23190. }
  23191. // Validate inspects the fields of the type to determine if they are valid.
  23192. func (s *CancelSpotFleetRequestsInput) Validate() error {
  23193. invalidParams := request.ErrInvalidParams{Context: "CancelSpotFleetRequestsInput"}
  23194. if s.SpotFleetRequestIds == nil {
  23195. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestIds"))
  23196. }
  23197. if s.TerminateInstances == nil {
  23198. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  23199. }
  23200. if invalidParams.Len() > 0 {
  23201. return invalidParams
  23202. }
  23203. return nil
  23204. }
  23205. // SetDryRun sets the DryRun field's value.
  23206. func (s *CancelSpotFleetRequestsInput) SetDryRun(v bool) *CancelSpotFleetRequestsInput {
  23207. s.DryRun = &v
  23208. return s
  23209. }
  23210. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  23211. func (s *CancelSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *CancelSpotFleetRequestsInput {
  23212. s.SpotFleetRequestIds = v
  23213. return s
  23214. }
  23215. // SetTerminateInstances sets the TerminateInstances field's value.
  23216. func (s *CancelSpotFleetRequestsInput) SetTerminateInstances(v bool) *CancelSpotFleetRequestsInput {
  23217. s.TerminateInstances = &v
  23218. return s
  23219. }
  23220. // Contains the output of CancelSpotFleetRequests.
  23221. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsResponse
  23222. type CancelSpotFleetRequestsOutput struct {
  23223. _ struct{} `type:"structure"`
  23224. // Information about the Spot Fleet requests that are successfully canceled.
  23225. SuccessfulFleetRequests []*CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"`
  23226. // Information about the Spot Fleet requests that are not successfully canceled.
  23227. UnsuccessfulFleetRequests []*CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"`
  23228. }
  23229. // String returns the string representation
  23230. func (s CancelSpotFleetRequestsOutput) String() string {
  23231. return awsutil.Prettify(s)
  23232. }
  23233. // GoString returns the string representation
  23234. func (s CancelSpotFleetRequestsOutput) GoString() string {
  23235. return s.String()
  23236. }
  23237. // SetSuccessfulFleetRequests sets the SuccessfulFleetRequests field's value.
  23238. func (s *CancelSpotFleetRequestsOutput) SetSuccessfulFleetRequests(v []*CancelSpotFleetRequestsSuccessItem) *CancelSpotFleetRequestsOutput {
  23239. s.SuccessfulFleetRequests = v
  23240. return s
  23241. }
  23242. // SetUnsuccessfulFleetRequests sets the UnsuccessfulFleetRequests field's value.
  23243. func (s *CancelSpotFleetRequestsOutput) SetUnsuccessfulFleetRequests(v []*CancelSpotFleetRequestsErrorItem) *CancelSpotFleetRequestsOutput {
  23244. s.UnsuccessfulFleetRequests = v
  23245. return s
  23246. }
  23247. // Describes a Spot Fleet request that was successfully canceled.
  23248. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotFleetRequestsSuccessItem
  23249. type CancelSpotFleetRequestsSuccessItem struct {
  23250. _ struct{} `type:"structure"`
  23251. // The current state of the Spot Fleet request.
  23252. //
  23253. // CurrentSpotFleetRequestState is a required field
  23254. CurrentSpotFleetRequestState *string `locationName:"currentSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  23255. // The previous state of the Spot Fleet request.
  23256. //
  23257. // PreviousSpotFleetRequestState is a required field
  23258. PreviousSpotFleetRequestState *string `locationName:"previousSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  23259. // The ID of the Spot Fleet request.
  23260. //
  23261. // SpotFleetRequestId is a required field
  23262. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  23263. }
  23264. // String returns the string representation
  23265. func (s CancelSpotFleetRequestsSuccessItem) String() string {
  23266. return awsutil.Prettify(s)
  23267. }
  23268. // GoString returns the string representation
  23269. func (s CancelSpotFleetRequestsSuccessItem) GoString() string {
  23270. return s.String()
  23271. }
  23272. // SetCurrentSpotFleetRequestState sets the CurrentSpotFleetRequestState field's value.
  23273. func (s *CancelSpotFleetRequestsSuccessItem) SetCurrentSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  23274. s.CurrentSpotFleetRequestState = &v
  23275. return s
  23276. }
  23277. // SetPreviousSpotFleetRequestState sets the PreviousSpotFleetRequestState field's value.
  23278. func (s *CancelSpotFleetRequestsSuccessItem) SetPreviousSpotFleetRequestState(v string) *CancelSpotFleetRequestsSuccessItem {
  23279. s.PreviousSpotFleetRequestState = &v
  23280. return s
  23281. }
  23282. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  23283. func (s *CancelSpotFleetRequestsSuccessItem) SetSpotFleetRequestId(v string) *CancelSpotFleetRequestsSuccessItem {
  23284. s.SpotFleetRequestId = &v
  23285. return s
  23286. }
  23287. // Contains the parameters for CancelSpotInstanceRequests.
  23288. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequestsRequest
  23289. type CancelSpotInstanceRequestsInput struct {
  23290. _ struct{} `type:"structure"`
  23291. // Checks whether you have the required permissions for the action, without
  23292. // actually making the request, and provides an error response. If you have
  23293. // the required permissions, the error response is DryRunOperation. Otherwise,
  23294. // it is UnauthorizedOperation.
  23295. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23296. // One or more Spot Instance request IDs.
  23297. //
  23298. // SpotInstanceRequestIds is a required field
  23299. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"`
  23300. }
  23301. // String returns the string representation
  23302. func (s CancelSpotInstanceRequestsInput) String() string {
  23303. return awsutil.Prettify(s)
  23304. }
  23305. // GoString returns the string representation
  23306. func (s CancelSpotInstanceRequestsInput) GoString() string {
  23307. return s.String()
  23308. }
  23309. // Validate inspects the fields of the type to determine if they are valid.
  23310. func (s *CancelSpotInstanceRequestsInput) Validate() error {
  23311. invalidParams := request.ErrInvalidParams{Context: "CancelSpotInstanceRequestsInput"}
  23312. if s.SpotInstanceRequestIds == nil {
  23313. invalidParams.Add(request.NewErrParamRequired("SpotInstanceRequestIds"))
  23314. }
  23315. if invalidParams.Len() > 0 {
  23316. return invalidParams
  23317. }
  23318. return nil
  23319. }
  23320. // SetDryRun sets the DryRun field's value.
  23321. func (s *CancelSpotInstanceRequestsInput) SetDryRun(v bool) *CancelSpotInstanceRequestsInput {
  23322. s.DryRun = &v
  23323. return s
  23324. }
  23325. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  23326. func (s *CancelSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *CancelSpotInstanceRequestsInput {
  23327. s.SpotInstanceRequestIds = v
  23328. return s
  23329. }
  23330. // Contains the output of CancelSpotInstanceRequests.
  23331. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelSpotInstanceRequestsResult
  23332. type CancelSpotInstanceRequestsOutput struct {
  23333. _ struct{} `type:"structure"`
  23334. // One or more Spot Instance requests.
  23335. CancelledSpotInstanceRequests []*CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  23336. }
  23337. // String returns the string representation
  23338. func (s CancelSpotInstanceRequestsOutput) String() string {
  23339. return awsutil.Prettify(s)
  23340. }
  23341. // GoString returns the string representation
  23342. func (s CancelSpotInstanceRequestsOutput) GoString() string {
  23343. return s.String()
  23344. }
  23345. // SetCancelledSpotInstanceRequests sets the CancelledSpotInstanceRequests field's value.
  23346. func (s *CancelSpotInstanceRequestsOutput) SetCancelledSpotInstanceRequests(v []*CancelledSpotInstanceRequest) *CancelSpotInstanceRequestsOutput {
  23347. s.CancelledSpotInstanceRequests = v
  23348. return s
  23349. }
  23350. // Describes a request to cancel a Spot Instance.
  23351. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelledSpotInstanceRequest
  23352. type CancelledSpotInstanceRequest struct {
  23353. _ struct{} `type:"structure"`
  23354. // The ID of the Spot Instance request.
  23355. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  23356. // The state of the Spot Instance request.
  23357. State *string `locationName:"state" type:"string" enum:"CancelSpotInstanceRequestState"`
  23358. }
  23359. // String returns the string representation
  23360. func (s CancelledSpotInstanceRequest) String() string {
  23361. return awsutil.Prettify(s)
  23362. }
  23363. // GoString returns the string representation
  23364. func (s CancelledSpotInstanceRequest) GoString() string {
  23365. return s.String()
  23366. }
  23367. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  23368. func (s *CancelledSpotInstanceRequest) SetSpotInstanceRequestId(v string) *CancelledSpotInstanceRequest {
  23369. s.SpotInstanceRequestId = &v
  23370. return s
  23371. }
  23372. // SetState sets the State field's value.
  23373. func (s *CancelledSpotInstanceRequest) SetState(v string) *CancelledSpotInstanceRequest {
  23374. s.State = &v
  23375. return s
  23376. }
  23377. // Describes an IPv4 CIDR block.
  23378. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CidrBlock
  23379. type CidrBlock struct {
  23380. _ struct{} `type:"structure"`
  23381. // The IPv4 CIDR block.
  23382. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  23383. }
  23384. // String returns the string representation
  23385. func (s CidrBlock) String() string {
  23386. return awsutil.Prettify(s)
  23387. }
  23388. // GoString returns the string representation
  23389. func (s CidrBlock) GoString() string {
  23390. return s.String()
  23391. }
  23392. // SetCidrBlock sets the CidrBlock field's value.
  23393. func (s *CidrBlock) SetCidrBlock(v string) *CidrBlock {
  23394. s.CidrBlock = &v
  23395. return s
  23396. }
  23397. // Describes the ClassicLink DNS support status of a VPC.
  23398. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLinkDnsSupport
  23399. type ClassicLinkDnsSupport struct {
  23400. _ struct{} `type:"structure"`
  23401. // Indicates whether ClassicLink DNS support is enabled for the VPC.
  23402. ClassicLinkDnsSupported *bool `locationName:"classicLinkDnsSupported" type:"boolean"`
  23403. // The ID of the VPC.
  23404. VpcId *string `locationName:"vpcId" type:"string"`
  23405. }
  23406. // String returns the string representation
  23407. func (s ClassicLinkDnsSupport) String() string {
  23408. return awsutil.Prettify(s)
  23409. }
  23410. // GoString returns the string representation
  23411. func (s ClassicLinkDnsSupport) GoString() string {
  23412. return s.String()
  23413. }
  23414. // SetClassicLinkDnsSupported sets the ClassicLinkDnsSupported field's value.
  23415. func (s *ClassicLinkDnsSupport) SetClassicLinkDnsSupported(v bool) *ClassicLinkDnsSupport {
  23416. s.ClassicLinkDnsSupported = &v
  23417. return s
  23418. }
  23419. // SetVpcId sets the VpcId field's value.
  23420. func (s *ClassicLinkDnsSupport) SetVpcId(v string) *ClassicLinkDnsSupport {
  23421. s.VpcId = &v
  23422. return s
  23423. }
  23424. // Describes a linked EC2-Classic instance.
  23425. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLinkInstance
  23426. type ClassicLinkInstance struct {
  23427. _ struct{} `type:"structure"`
  23428. // A list of security groups.
  23429. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  23430. // The ID of the instance.
  23431. InstanceId *string `locationName:"instanceId" type:"string"`
  23432. // Any tags assigned to the instance.
  23433. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  23434. // The ID of the VPC.
  23435. VpcId *string `locationName:"vpcId" type:"string"`
  23436. }
  23437. // String returns the string representation
  23438. func (s ClassicLinkInstance) String() string {
  23439. return awsutil.Prettify(s)
  23440. }
  23441. // GoString returns the string representation
  23442. func (s ClassicLinkInstance) GoString() string {
  23443. return s.String()
  23444. }
  23445. // SetGroups sets the Groups field's value.
  23446. func (s *ClassicLinkInstance) SetGroups(v []*GroupIdentifier) *ClassicLinkInstance {
  23447. s.Groups = v
  23448. return s
  23449. }
  23450. // SetInstanceId sets the InstanceId field's value.
  23451. func (s *ClassicLinkInstance) SetInstanceId(v string) *ClassicLinkInstance {
  23452. s.InstanceId = &v
  23453. return s
  23454. }
  23455. // SetTags sets the Tags field's value.
  23456. func (s *ClassicLinkInstance) SetTags(v []*Tag) *ClassicLinkInstance {
  23457. s.Tags = v
  23458. return s
  23459. }
  23460. // SetVpcId sets the VpcId field's value.
  23461. func (s *ClassicLinkInstance) SetVpcId(v string) *ClassicLinkInstance {
  23462. s.VpcId = &v
  23463. return s
  23464. }
  23465. // Describes a Classic Load Balancer.
  23466. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLoadBalancer
  23467. type ClassicLoadBalancer struct {
  23468. _ struct{} `type:"structure"`
  23469. // The name of the load balancer.
  23470. //
  23471. // Name is a required field
  23472. Name *string `locationName:"name" type:"string" required:"true"`
  23473. }
  23474. // String returns the string representation
  23475. func (s ClassicLoadBalancer) String() string {
  23476. return awsutil.Prettify(s)
  23477. }
  23478. // GoString returns the string representation
  23479. func (s ClassicLoadBalancer) GoString() string {
  23480. return s.String()
  23481. }
  23482. // Validate inspects the fields of the type to determine if they are valid.
  23483. func (s *ClassicLoadBalancer) Validate() error {
  23484. invalidParams := request.ErrInvalidParams{Context: "ClassicLoadBalancer"}
  23485. if s.Name == nil {
  23486. invalidParams.Add(request.NewErrParamRequired("Name"))
  23487. }
  23488. if invalidParams.Len() > 0 {
  23489. return invalidParams
  23490. }
  23491. return nil
  23492. }
  23493. // SetName sets the Name field's value.
  23494. func (s *ClassicLoadBalancer) SetName(v string) *ClassicLoadBalancer {
  23495. s.Name = &v
  23496. return s
  23497. }
  23498. // Describes the Classic Load Balancers to attach to a Spot Fleet. Spot Fleet
  23499. // registers the running Spot Instances with these Classic Load Balancers.
  23500. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClassicLoadBalancersConfig
  23501. type ClassicLoadBalancersConfig struct {
  23502. _ struct{} `type:"structure"`
  23503. // One or more Classic Load Balancers.
  23504. //
  23505. // ClassicLoadBalancers is a required field
  23506. ClassicLoadBalancers []*ClassicLoadBalancer `locationName:"classicLoadBalancers" locationNameList:"item" min:"1" type:"list" required:"true"`
  23507. }
  23508. // String returns the string representation
  23509. func (s ClassicLoadBalancersConfig) String() string {
  23510. return awsutil.Prettify(s)
  23511. }
  23512. // GoString returns the string representation
  23513. func (s ClassicLoadBalancersConfig) GoString() string {
  23514. return s.String()
  23515. }
  23516. // Validate inspects the fields of the type to determine if they are valid.
  23517. func (s *ClassicLoadBalancersConfig) Validate() error {
  23518. invalidParams := request.ErrInvalidParams{Context: "ClassicLoadBalancersConfig"}
  23519. if s.ClassicLoadBalancers == nil {
  23520. invalidParams.Add(request.NewErrParamRequired("ClassicLoadBalancers"))
  23521. }
  23522. if s.ClassicLoadBalancers != nil && len(s.ClassicLoadBalancers) < 1 {
  23523. invalidParams.Add(request.NewErrParamMinLen("ClassicLoadBalancers", 1))
  23524. }
  23525. if s.ClassicLoadBalancers != nil {
  23526. for i, v := range s.ClassicLoadBalancers {
  23527. if v == nil {
  23528. continue
  23529. }
  23530. if err := v.Validate(); err != nil {
  23531. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ClassicLoadBalancers", i), err.(request.ErrInvalidParams))
  23532. }
  23533. }
  23534. }
  23535. if invalidParams.Len() > 0 {
  23536. return invalidParams
  23537. }
  23538. return nil
  23539. }
  23540. // SetClassicLoadBalancers sets the ClassicLoadBalancers field's value.
  23541. func (s *ClassicLoadBalancersConfig) SetClassicLoadBalancers(v []*ClassicLoadBalancer) *ClassicLoadBalancersConfig {
  23542. s.ClassicLoadBalancers = v
  23543. return s
  23544. }
  23545. // Describes the client-specific data.
  23546. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClientData
  23547. type ClientData struct {
  23548. _ struct{} `type:"structure"`
  23549. // A user-defined comment about the disk upload.
  23550. Comment *string `type:"string"`
  23551. // The time that the disk upload ends.
  23552. UploadEnd *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  23553. // The size of the uploaded disk image, in GiB.
  23554. UploadSize *float64 `type:"double"`
  23555. // The time that the disk upload starts.
  23556. UploadStart *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  23557. }
  23558. // String returns the string representation
  23559. func (s ClientData) String() string {
  23560. return awsutil.Prettify(s)
  23561. }
  23562. // GoString returns the string representation
  23563. func (s ClientData) GoString() string {
  23564. return s.String()
  23565. }
  23566. // SetComment sets the Comment field's value.
  23567. func (s *ClientData) SetComment(v string) *ClientData {
  23568. s.Comment = &v
  23569. return s
  23570. }
  23571. // SetUploadEnd sets the UploadEnd field's value.
  23572. func (s *ClientData) SetUploadEnd(v time.Time) *ClientData {
  23573. s.UploadEnd = &v
  23574. return s
  23575. }
  23576. // SetUploadSize sets the UploadSize field's value.
  23577. func (s *ClientData) SetUploadSize(v float64) *ClientData {
  23578. s.UploadSize = &v
  23579. return s
  23580. }
  23581. // SetUploadStart sets the UploadStart field's value.
  23582. func (s *ClientData) SetUploadStart(v time.Time) *ClientData {
  23583. s.UploadStart = &v
  23584. return s
  23585. }
  23586. // Contains the parameters for ConfirmProductInstance.
  23587. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstanceRequest
  23588. type ConfirmProductInstanceInput struct {
  23589. _ struct{} `type:"structure"`
  23590. // Checks whether you have the required permissions for the action, without
  23591. // actually making the request, and provides an error response. If you have
  23592. // the required permissions, the error response is DryRunOperation. Otherwise,
  23593. // it is UnauthorizedOperation.
  23594. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23595. // The ID of the instance.
  23596. //
  23597. // InstanceId is a required field
  23598. InstanceId *string `type:"string" required:"true"`
  23599. // The product code. This must be a product code that you own.
  23600. //
  23601. // ProductCode is a required field
  23602. ProductCode *string `type:"string" required:"true"`
  23603. }
  23604. // String returns the string representation
  23605. func (s ConfirmProductInstanceInput) String() string {
  23606. return awsutil.Prettify(s)
  23607. }
  23608. // GoString returns the string representation
  23609. func (s ConfirmProductInstanceInput) GoString() string {
  23610. return s.String()
  23611. }
  23612. // Validate inspects the fields of the type to determine if they are valid.
  23613. func (s *ConfirmProductInstanceInput) Validate() error {
  23614. invalidParams := request.ErrInvalidParams{Context: "ConfirmProductInstanceInput"}
  23615. if s.InstanceId == nil {
  23616. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  23617. }
  23618. if s.ProductCode == nil {
  23619. invalidParams.Add(request.NewErrParamRequired("ProductCode"))
  23620. }
  23621. if invalidParams.Len() > 0 {
  23622. return invalidParams
  23623. }
  23624. return nil
  23625. }
  23626. // SetDryRun sets the DryRun field's value.
  23627. func (s *ConfirmProductInstanceInput) SetDryRun(v bool) *ConfirmProductInstanceInput {
  23628. s.DryRun = &v
  23629. return s
  23630. }
  23631. // SetInstanceId sets the InstanceId field's value.
  23632. func (s *ConfirmProductInstanceInput) SetInstanceId(v string) *ConfirmProductInstanceInput {
  23633. s.InstanceId = &v
  23634. return s
  23635. }
  23636. // SetProductCode sets the ProductCode field's value.
  23637. func (s *ConfirmProductInstanceInput) SetProductCode(v string) *ConfirmProductInstanceInput {
  23638. s.ProductCode = &v
  23639. return s
  23640. }
  23641. // Contains the output of ConfirmProductInstance.
  23642. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConfirmProductInstanceResult
  23643. type ConfirmProductInstanceOutput struct {
  23644. _ struct{} `type:"structure"`
  23645. // The AWS account ID of the instance owner. This is only present if the product
  23646. // code is attached to the instance.
  23647. OwnerId *string `locationName:"ownerId" type:"string"`
  23648. // The return value of the request. Returns true if the specified product code
  23649. // is owned by the requester and associated with the specified instance.
  23650. Return *bool `locationName:"return" type:"boolean"`
  23651. }
  23652. // String returns the string representation
  23653. func (s ConfirmProductInstanceOutput) String() string {
  23654. return awsutil.Prettify(s)
  23655. }
  23656. // GoString returns the string representation
  23657. func (s ConfirmProductInstanceOutput) GoString() string {
  23658. return s.String()
  23659. }
  23660. // SetOwnerId sets the OwnerId field's value.
  23661. func (s *ConfirmProductInstanceOutput) SetOwnerId(v string) *ConfirmProductInstanceOutput {
  23662. s.OwnerId = &v
  23663. return s
  23664. }
  23665. // SetReturn sets the Return field's value.
  23666. func (s *ConfirmProductInstanceOutput) SetReturn(v bool) *ConfirmProductInstanceOutput {
  23667. s.Return = &v
  23668. return s
  23669. }
  23670. // Describes a connection notification for a VPC endpoint or VPC endpoint service.
  23671. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConnectionNotification
  23672. type ConnectionNotification struct {
  23673. _ struct{} `type:"structure"`
  23674. // The events for the notification. Valid values are Accept, Connect, Delete,
  23675. // and Reject.
  23676. ConnectionEvents []*string `locationName:"connectionEvents" locationNameList:"item" type:"list"`
  23677. // The ARN of the SNS topic for the notification.
  23678. ConnectionNotificationArn *string `locationName:"connectionNotificationArn" type:"string"`
  23679. // The ID of the notification.
  23680. ConnectionNotificationId *string `locationName:"connectionNotificationId" type:"string"`
  23681. // The state of the notification.
  23682. ConnectionNotificationState *string `locationName:"connectionNotificationState" type:"string" enum:"ConnectionNotificationState"`
  23683. // The type of notification.
  23684. ConnectionNotificationType *string `locationName:"connectionNotificationType" type:"string" enum:"ConnectionNotificationType"`
  23685. // The ID of the endpoint service.
  23686. ServiceId *string `locationName:"serviceId" type:"string"`
  23687. // The ID of the VPC endpoint.
  23688. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  23689. }
  23690. // String returns the string representation
  23691. func (s ConnectionNotification) String() string {
  23692. return awsutil.Prettify(s)
  23693. }
  23694. // GoString returns the string representation
  23695. func (s ConnectionNotification) GoString() string {
  23696. return s.String()
  23697. }
  23698. // SetConnectionEvents sets the ConnectionEvents field's value.
  23699. func (s *ConnectionNotification) SetConnectionEvents(v []*string) *ConnectionNotification {
  23700. s.ConnectionEvents = v
  23701. return s
  23702. }
  23703. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  23704. func (s *ConnectionNotification) SetConnectionNotificationArn(v string) *ConnectionNotification {
  23705. s.ConnectionNotificationArn = &v
  23706. return s
  23707. }
  23708. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  23709. func (s *ConnectionNotification) SetConnectionNotificationId(v string) *ConnectionNotification {
  23710. s.ConnectionNotificationId = &v
  23711. return s
  23712. }
  23713. // SetConnectionNotificationState sets the ConnectionNotificationState field's value.
  23714. func (s *ConnectionNotification) SetConnectionNotificationState(v string) *ConnectionNotification {
  23715. s.ConnectionNotificationState = &v
  23716. return s
  23717. }
  23718. // SetConnectionNotificationType sets the ConnectionNotificationType field's value.
  23719. func (s *ConnectionNotification) SetConnectionNotificationType(v string) *ConnectionNotification {
  23720. s.ConnectionNotificationType = &v
  23721. return s
  23722. }
  23723. // SetServiceId sets the ServiceId field's value.
  23724. func (s *ConnectionNotification) SetServiceId(v string) *ConnectionNotification {
  23725. s.ServiceId = &v
  23726. return s
  23727. }
  23728. // SetVpcEndpointId sets the VpcEndpointId field's value.
  23729. func (s *ConnectionNotification) SetVpcEndpointId(v string) *ConnectionNotification {
  23730. s.VpcEndpointId = &v
  23731. return s
  23732. }
  23733. // Describes a conversion task.
  23734. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ConversionTask
  23735. type ConversionTask struct {
  23736. _ struct{} `type:"structure"`
  23737. // The ID of the conversion task.
  23738. //
  23739. // ConversionTaskId is a required field
  23740. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  23741. // The time when the task expires. If the upload isn't complete before the expiration
  23742. // time, we automatically cancel the task.
  23743. ExpirationTime *string `locationName:"expirationTime" type:"string"`
  23744. // If the task is for importing an instance, this contains information about
  23745. // the import instance task.
  23746. ImportInstance *ImportInstanceTaskDetails `locationName:"importInstance" type:"structure"`
  23747. // If the task is for importing a volume, this contains information about the
  23748. // import volume task.
  23749. ImportVolume *ImportVolumeTaskDetails `locationName:"importVolume" type:"structure"`
  23750. // The state of the conversion task.
  23751. //
  23752. // State is a required field
  23753. State *string `locationName:"state" type:"string" required:"true" enum:"ConversionTaskState"`
  23754. // The status message related to the conversion task.
  23755. StatusMessage *string `locationName:"statusMessage" type:"string"`
  23756. // Any tags assigned to the task.
  23757. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  23758. }
  23759. // String returns the string representation
  23760. func (s ConversionTask) String() string {
  23761. return awsutil.Prettify(s)
  23762. }
  23763. // GoString returns the string representation
  23764. func (s ConversionTask) GoString() string {
  23765. return s.String()
  23766. }
  23767. // SetConversionTaskId sets the ConversionTaskId field's value.
  23768. func (s *ConversionTask) SetConversionTaskId(v string) *ConversionTask {
  23769. s.ConversionTaskId = &v
  23770. return s
  23771. }
  23772. // SetExpirationTime sets the ExpirationTime field's value.
  23773. func (s *ConversionTask) SetExpirationTime(v string) *ConversionTask {
  23774. s.ExpirationTime = &v
  23775. return s
  23776. }
  23777. // SetImportInstance sets the ImportInstance field's value.
  23778. func (s *ConversionTask) SetImportInstance(v *ImportInstanceTaskDetails) *ConversionTask {
  23779. s.ImportInstance = v
  23780. return s
  23781. }
  23782. // SetImportVolume sets the ImportVolume field's value.
  23783. func (s *ConversionTask) SetImportVolume(v *ImportVolumeTaskDetails) *ConversionTask {
  23784. s.ImportVolume = v
  23785. return s
  23786. }
  23787. // SetState sets the State field's value.
  23788. func (s *ConversionTask) SetState(v string) *ConversionTask {
  23789. s.State = &v
  23790. return s
  23791. }
  23792. // SetStatusMessage sets the StatusMessage field's value.
  23793. func (s *ConversionTask) SetStatusMessage(v string) *ConversionTask {
  23794. s.StatusMessage = &v
  23795. return s
  23796. }
  23797. // SetTags sets the Tags field's value.
  23798. func (s *ConversionTask) SetTags(v []*Tag) *ConversionTask {
  23799. s.Tags = v
  23800. return s
  23801. }
  23802. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImageRequest
  23803. type CopyFpgaImageInput struct {
  23804. _ struct{} `type:"structure"`
  23805. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  23806. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  23807. ClientToken *string `type:"string"`
  23808. // The description for the new AFI.
  23809. Description *string `type:"string"`
  23810. // Checks whether you have the required permissions for the action, without
  23811. // actually making the request, and provides an error response. If you have
  23812. // the required permissions, the error response is DryRunOperation. Otherwise,
  23813. // it is UnauthorizedOperation.
  23814. DryRun *bool `type:"boolean"`
  23815. // The name for the new AFI. The default is the name of the source AFI.
  23816. Name *string `type:"string"`
  23817. // The ID of the source AFI.
  23818. //
  23819. // SourceFpgaImageId is a required field
  23820. SourceFpgaImageId *string `type:"string" required:"true"`
  23821. // The region that contains the source AFI.
  23822. //
  23823. // SourceRegion is a required field
  23824. SourceRegion *string `type:"string" required:"true"`
  23825. }
  23826. // String returns the string representation
  23827. func (s CopyFpgaImageInput) String() string {
  23828. return awsutil.Prettify(s)
  23829. }
  23830. // GoString returns the string representation
  23831. func (s CopyFpgaImageInput) GoString() string {
  23832. return s.String()
  23833. }
  23834. // Validate inspects the fields of the type to determine if they are valid.
  23835. func (s *CopyFpgaImageInput) Validate() error {
  23836. invalidParams := request.ErrInvalidParams{Context: "CopyFpgaImageInput"}
  23837. if s.SourceFpgaImageId == nil {
  23838. invalidParams.Add(request.NewErrParamRequired("SourceFpgaImageId"))
  23839. }
  23840. if s.SourceRegion == nil {
  23841. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  23842. }
  23843. if invalidParams.Len() > 0 {
  23844. return invalidParams
  23845. }
  23846. return nil
  23847. }
  23848. // SetClientToken sets the ClientToken field's value.
  23849. func (s *CopyFpgaImageInput) SetClientToken(v string) *CopyFpgaImageInput {
  23850. s.ClientToken = &v
  23851. return s
  23852. }
  23853. // SetDescription sets the Description field's value.
  23854. func (s *CopyFpgaImageInput) SetDescription(v string) *CopyFpgaImageInput {
  23855. s.Description = &v
  23856. return s
  23857. }
  23858. // SetDryRun sets the DryRun field's value.
  23859. func (s *CopyFpgaImageInput) SetDryRun(v bool) *CopyFpgaImageInput {
  23860. s.DryRun = &v
  23861. return s
  23862. }
  23863. // SetName sets the Name field's value.
  23864. func (s *CopyFpgaImageInput) SetName(v string) *CopyFpgaImageInput {
  23865. s.Name = &v
  23866. return s
  23867. }
  23868. // SetSourceFpgaImageId sets the SourceFpgaImageId field's value.
  23869. func (s *CopyFpgaImageInput) SetSourceFpgaImageId(v string) *CopyFpgaImageInput {
  23870. s.SourceFpgaImageId = &v
  23871. return s
  23872. }
  23873. // SetSourceRegion sets the SourceRegion field's value.
  23874. func (s *CopyFpgaImageInput) SetSourceRegion(v string) *CopyFpgaImageInput {
  23875. s.SourceRegion = &v
  23876. return s
  23877. }
  23878. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyFpgaImageResult
  23879. type CopyFpgaImageOutput struct {
  23880. _ struct{} `type:"structure"`
  23881. // The ID of the new AFI.
  23882. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  23883. }
  23884. // String returns the string representation
  23885. func (s CopyFpgaImageOutput) String() string {
  23886. return awsutil.Prettify(s)
  23887. }
  23888. // GoString returns the string representation
  23889. func (s CopyFpgaImageOutput) GoString() string {
  23890. return s.String()
  23891. }
  23892. // SetFpgaImageId sets the FpgaImageId field's value.
  23893. func (s *CopyFpgaImageOutput) SetFpgaImageId(v string) *CopyFpgaImageOutput {
  23894. s.FpgaImageId = &v
  23895. return s
  23896. }
  23897. // Contains the parameters for CopyImage.
  23898. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImageRequest
  23899. type CopyImageInput struct {
  23900. _ struct{} `type:"structure"`
  23901. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  23902. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  23903. // in the Amazon Elastic Compute Cloud User Guide.
  23904. ClientToken *string `type:"string"`
  23905. // A description for the new AMI in the destination region.
  23906. Description *string `type:"string"`
  23907. // Checks whether you have the required permissions for the action, without
  23908. // actually making the request, and provides an error response. If you have
  23909. // the required permissions, the error response is DryRunOperation. Otherwise,
  23910. // it is UnauthorizedOperation.
  23911. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23912. // Specifies whether the destination snapshots of the copied image should be
  23913. // encrypted. The default CMK for EBS is used unless a non-default AWS Key Management
  23914. // Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see
  23915. // Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  23916. // in the Amazon Elastic Compute Cloud User Guide.
  23917. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  23918. // The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when
  23919. // encrypting the snapshots of an image during a copy operation. This parameter
  23920. // is only required if you want to use a non-default CMK; if this parameter
  23921. // is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms
  23922. // namespace, followed by the region of the CMK, the AWS account ID of the CMK
  23923. // owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  23924. // The specified CMK must exist in the region that the snapshot is being copied
  23925. // to. If a KmsKeyId is specified, the Encrypted flag must also be set.
  23926. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  23927. // The name of the new AMI in the destination region.
  23928. //
  23929. // Name is a required field
  23930. Name *string `type:"string" required:"true"`
  23931. // The ID of the AMI to copy.
  23932. //
  23933. // SourceImageId is a required field
  23934. SourceImageId *string `type:"string" required:"true"`
  23935. // The name of the region that contains the AMI to copy.
  23936. //
  23937. // SourceRegion is a required field
  23938. SourceRegion *string `type:"string" required:"true"`
  23939. }
  23940. // String returns the string representation
  23941. func (s CopyImageInput) String() string {
  23942. return awsutil.Prettify(s)
  23943. }
  23944. // GoString returns the string representation
  23945. func (s CopyImageInput) GoString() string {
  23946. return s.String()
  23947. }
  23948. // Validate inspects the fields of the type to determine if they are valid.
  23949. func (s *CopyImageInput) Validate() error {
  23950. invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"}
  23951. if s.Name == nil {
  23952. invalidParams.Add(request.NewErrParamRequired("Name"))
  23953. }
  23954. if s.SourceImageId == nil {
  23955. invalidParams.Add(request.NewErrParamRequired("SourceImageId"))
  23956. }
  23957. if s.SourceRegion == nil {
  23958. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  23959. }
  23960. if invalidParams.Len() > 0 {
  23961. return invalidParams
  23962. }
  23963. return nil
  23964. }
  23965. // SetClientToken sets the ClientToken field's value.
  23966. func (s *CopyImageInput) SetClientToken(v string) *CopyImageInput {
  23967. s.ClientToken = &v
  23968. return s
  23969. }
  23970. // SetDescription sets the Description field's value.
  23971. func (s *CopyImageInput) SetDescription(v string) *CopyImageInput {
  23972. s.Description = &v
  23973. return s
  23974. }
  23975. // SetDryRun sets the DryRun field's value.
  23976. func (s *CopyImageInput) SetDryRun(v bool) *CopyImageInput {
  23977. s.DryRun = &v
  23978. return s
  23979. }
  23980. // SetEncrypted sets the Encrypted field's value.
  23981. func (s *CopyImageInput) SetEncrypted(v bool) *CopyImageInput {
  23982. s.Encrypted = &v
  23983. return s
  23984. }
  23985. // SetKmsKeyId sets the KmsKeyId field's value.
  23986. func (s *CopyImageInput) SetKmsKeyId(v string) *CopyImageInput {
  23987. s.KmsKeyId = &v
  23988. return s
  23989. }
  23990. // SetName sets the Name field's value.
  23991. func (s *CopyImageInput) SetName(v string) *CopyImageInput {
  23992. s.Name = &v
  23993. return s
  23994. }
  23995. // SetSourceImageId sets the SourceImageId field's value.
  23996. func (s *CopyImageInput) SetSourceImageId(v string) *CopyImageInput {
  23997. s.SourceImageId = &v
  23998. return s
  23999. }
  24000. // SetSourceRegion sets the SourceRegion field's value.
  24001. func (s *CopyImageInput) SetSourceRegion(v string) *CopyImageInput {
  24002. s.SourceRegion = &v
  24003. return s
  24004. }
  24005. // Contains the output of CopyImage.
  24006. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImageResult
  24007. type CopyImageOutput struct {
  24008. _ struct{} `type:"structure"`
  24009. // The ID of the new AMI.
  24010. ImageId *string `locationName:"imageId" type:"string"`
  24011. }
  24012. // String returns the string representation
  24013. func (s CopyImageOutput) String() string {
  24014. return awsutil.Prettify(s)
  24015. }
  24016. // GoString returns the string representation
  24017. func (s CopyImageOutput) GoString() string {
  24018. return s.String()
  24019. }
  24020. // SetImageId sets the ImageId field's value.
  24021. func (s *CopyImageOutput) SetImageId(v string) *CopyImageOutput {
  24022. s.ImageId = &v
  24023. return s
  24024. }
  24025. // Contains the parameters for CopySnapshot.
  24026. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshotRequest
  24027. type CopySnapshotInput struct {
  24028. _ struct{} `type:"structure"`
  24029. // A description for the EBS snapshot.
  24030. Description *string `type:"string"`
  24031. // The destination region to use in the PresignedUrl parameter of a snapshot
  24032. // copy operation. This parameter is only valid for specifying the destination
  24033. // region in a PresignedUrl parameter, where it is required.
  24034. //
  24035. // CopySnapshot sends the snapshot copy to the regional endpoint that you send
  24036. // the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS CLI,
  24037. // this is specified with the --region parameter or the default region in your
  24038. // AWS configuration file).
  24039. DestinationRegion *string `locationName:"destinationRegion" type:"string"`
  24040. // Checks whether you have the required permissions for the action, without
  24041. // actually making the request, and provides an error response. If you have
  24042. // the required permissions, the error response is DryRunOperation. Otherwise,
  24043. // it is UnauthorizedOperation.
  24044. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24045. // Specifies whether the destination snapshot should be encrypted. You can encrypt
  24046. // a copy of an unencrypted snapshot using this flag, but you cannot use it
  24047. // to create an unencrypted copy from an encrypted snapshot. Your default CMK
  24048. // for EBS is used unless a non-default AWS Key Management Service (AWS KMS)
  24049. // CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption
  24050. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
  24051. // the Amazon Elastic Compute Cloud User Guide.
  24052. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  24053. // The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when
  24054. // creating the snapshot copy. This parameter is only required if you want to
  24055. // use a non-default CMK; if this parameter is not specified, the default CMK
  24056. // for EBS is used. The ARN contains the arn:aws:kms namespace, followed by
  24057. // the region of the CMK, the AWS account ID of the CMK owner, the key namespace,
  24058. // and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  24059. // The specified CMK must exist in the region that the snapshot is being copied
  24060. // to. If a KmsKeyId is specified, the Encrypted flag must also be set.
  24061. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  24062. // The pre-signed URL that facilitates copying an encrypted snapshot. This parameter
  24063. // is only required when copying an encrypted snapshot with the Amazon EC2 Query
  24064. // API; it is available as an optional parameter in all other cases. The PresignedUrl
  24065. // should use the snapshot source endpoint, the CopySnapshot action, and include
  24066. // the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The
  24067. // PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots
  24068. // are stored in Amazon S3, the signing algorithm for this parameter uses the
  24069. // same logic that is described in Authenticating Requests by Using Query Parameters
  24070. // (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  24071. // in the Amazon Simple Storage Service API Reference. An invalid or improperly
  24072. // signed PresignedUrl will cause the copy operation to fail asynchronously,
  24073. // and the snapshot will move to an error state.
  24074. PresignedUrl *string `locationName:"presignedUrl" type:"string"`
  24075. // The ID of the region that contains the snapshot to be copied.
  24076. //
  24077. // SourceRegion is a required field
  24078. SourceRegion *string `type:"string" required:"true"`
  24079. // The ID of the EBS snapshot to copy.
  24080. //
  24081. // SourceSnapshotId is a required field
  24082. SourceSnapshotId *string `type:"string" required:"true"`
  24083. }
  24084. // String returns the string representation
  24085. func (s CopySnapshotInput) String() string {
  24086. return awsutil.Prettify(s)
  24087. }
  24088. // GoString returns the string representation
  24089. func (s CopySnapshotInput) GoString() string {
  24090. return s.String()
  24091. }
  24092. // Validate inspects the fields of the type to determine if they are valid.
  24093. func (s *CopySnapshotInput) Validate() error {
  24094. invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"}
  24095. if s.SourceRegion == nil {
  24096. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  24097. }
  24098. if s.SourceSnapshotId == nil {
  24099. invalidParams.Add(request.NewErrParamRequired("SourceSnapshotId"))
  24100. }
  24101. if invalidParams.Len() > 0 {
  24102. return invalidParams
  24103. }
  24104. return nil
  24105. }
  24106. // SetDescription sets the Description field's value.
  24107. func (s *CopySnapshotInput) SetDescription(v string) *CopySnapshotInput {
  24108. s.Description = &v
  24109. return s
  24110. }
  24111. // SetDestinationRegion sets the DestinationRegion field's value.
  24112. func (s *CopySnapshotInput) SetDestinationRegion(v string) *CopySnapshotInput {
  24113. s.DestinationRegion = &v
  24114. return s
  24115. }
  24116. // SetDryRun sets the DryRun field's value.
  24117. func (s *CopySnapshotInput) SetDryRun(v bool) *CopySnapshotInput {
  24118. s.DryRun = &v
  24119. return s
  24120. }
  24121. // SetEncrypted sets the Encrypted field's value.
  24122. func (s *CopySnapshotInput) SetEncrypted(v bool) *CopySnapshotInput {
  24123. s.Encrypted = &v
  24124. return s
  24125. }
  24126. // SetKmsKeyId sets the KmsKeyId field's value.
  24127. func (s *CopySnapshotInput) SetKmsKeyId(v string) *CopySnapshotInput {
  24128. s.KmsKeyId = &v
  24129. return s
  24130. }
  24131. // SetPresignedUrl sets the PresignedUrl field's value.
  24132. func (s *CopySnapshotInput) SetPresignedUrl(v string) *CopySnapshotInput {
  24133. s.PresignedUrl = &v
  24134. return s
  24135. }
  24136. // SetSourceRegion sets the SourceRegion field's value.
  24137. func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput {
  24138. s.SourceRegion = &v
  24139. return s
  24140. }
  24141. // SetSourceSnapshotId sets the SourceSnapshotId field's value.
  24142. func (s *CopySnapshotInput) SetSourceSnapshotId(v string) *CopySnapshotInput {
  24143. s.SourceSnapshotId = &v
  24144. return s
  24145. }
  24146. // Contains the output of CopySnapshot.
  24147. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshotResult
  24148. type CopySnapshotOutput struct {
  24149. _ struct{} `type:"structure"`
  24150. // The ID of the new snapshot.
  24151. SnapshotId *string `locationName:"snapshotId" type:"string"`
  24152. }
  24153. // String returns the string representation
  24154. func (s CopySnapshotOutput) String() string {
  24155. return awsutil.Prettify(s)
  24156. }
  24157. // GoString returns the string representation
  24158. func (s CopySnapshotOutput) GoString() string {
  24159. return s.String()
  24160. }
  24161. // SetSnapshotId sets the SnapshotId field's value.
  24162. func (s *CopySnapshotOutput) SetSnapshotId(v string) *CopySnapshotOutput {
  24163. s.SnapshotId = &v
  24164. return s
  24165. }
  24166. // Contains the parameters for CreateCustomerGateway.
  24167. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGatewayRequest
  24168. type CreateCustomerGatewayInput struct {
  24169. _ struct{} `type:"structure"`
  24170. // For devices that support BGP, the customer gateway's BGP ASN.
  24171. //
  24172. // Default: 65000
  24173. //
  24174. // BgpAsn is a required field
  24175. BgpAsn *int64 `type:"integer" required:"true"`
  24176. // Checks whether you have the required permissions for the action, without
  24177. // actually making the request, and provides an error response. If you have
  24178. // the required permissions, the error response is DryRunOperation. Otherwise,
  24179. // it is UnauthorizedOperation.
  24180. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24181. // The Internet-routable IP address for the customer gateway's outside interface.
  24182. // The address must be static.
  24183. //
  24184. // PublicIp is a required field
  24185. PublicIp *string `locationName:"IpAddress" type:"string" required:"true"`
  24186. // The type of VPN connection that this customer gateway supports (ipsec.1).
  24187. //
  24188. // Type is a required field
  24189. Type *string `type:"string" required:"true" enum:"GatewayType"`
  24190. }
  24191. // String returns the string representation
  24192. func (s CreateCustomerGatewayInput) String() string {
  24193. return awsutil.Prettify(s)
  24194. }
  24195. // GoString returns the string representation
  24196. func (s CreateCustomerGatewayInput) GoString() string {
  24197. return s.String()
  24198. }
  24199. // Validate inspects the fields of the type to determine if they are valid.
  24200. func (s *CreateCustomerGatewayInput) Validate() error {
  24201. invalidParams := request.ErrInvalidParams{Context: "CreateCustomerGatewayInput"}
  24202. if s.BgpAsn == nil {
  24203. invalidParams.Add(request.NewErrParamRequired("BgpAsn"))
  24204. }
  24205. if s.PublicIp == nil {
  24206. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  24207. }
  24208. if s.Type == nil {
  24209. invalidParams.Add(request.NewErrParamRequired("Type"))
  24210. }
  24211. if invalidParams.Len() > 0 {
  24212. return invalidParams
  24213. }
  24214. return nil
  24215. }
  24216. // SetBgpAsn sets the BgpAsn field's value.
  24217. func (s *CreateCustomerGatewayInput) SetBgpAsn(v int64) *CreateCustomerGatewayInput {
  24218. s.BgpAsn = &v
  24219. return s
  24220. }
  24221. // SetDryRun sets the DryRun field's value.
  24222. func (s *CreateCustomerGatewayInput) SetDryRun(v bool) *CreateCustomerGatewayInput {
  24223. s.DryRun = &v
  24224. return s
  24225. }
  24226. // SetPublicIp sets the PublicIp field's value.
  24227. func (s *CreateCustomerGatewayInput) SetPublicIp(v string) *CreateCustomerGatewayInput {
  24228. s.PublicIp = &v
  24229. return s
  24230. }
  24231. // SetType sets the Type field's value.
  24232. func (s *CreateCustomerGatewayInput) SetType(v string) *CreateCustomerGatewayInput {
  24233. s.Type = &v
  24234. return s
  24235. }
  24236. // Contains the output of CreateCustomerGateway.
  24237. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCustomerGatewayResult
  24238. type CreateCustomerGatewayOutput struct {
  24239. _ struct{} `type:"structure"`
  24240. // Information about the customer gateway.
  24241. CustomerGateway *CustomerGateway `locationName:"customerGateway" type:"structure"`
  24242. }
  24243. // String returns the string representation
  24244. func (s CreateCustomerGatewayOutput) String() string {
  24245. return awsutil.Prettify(s)
  24246. }
  24247. // GoString returns the string representation
  24248. func (s CreateCustomerGatewayOutput) GoString() string {
  24249. return s.String()
  24250. }
  24251. // SetCustomerGateway sets the CustomerGateway field's value.
  24252. func (s *CreateCustomerGatewayOutput) SetCustomerGateway(v *CustomerGateway) *CreateCustomerGatewayOutput {
  24253. s.CustomerGateway = v
  24254. return s
  24255. }
  24256. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnetRequest
  24257. type CreateDefaultSubnetInput struct {
  24258. _ struct{} `type:"structure"`
  24259. // The Availability Zone in which to create the default subnet.
  24260. //
  24261. // AvailabilityZone is a required field
  24262. AvailabilityZone *string `type:"string" required:"true"`
  24263. // Checks whether you have the required permissions for the action, without
  24264. // actually making the request, and provides an error response. If you have
  24265. // the required permissions, the error response is DryRunOperation. Otherwise,
  24266. // it is UnauthorizedOperation.
  24267. DryRun *bool `type:"boolean"`
  24268. }
  24269. // String returns the string representation
  24270. func (s CreateDefaultSubnetInput) String() string {
  24271. return awsutil.Prettify(s)
  24272. }
  24273. // GoString returns the string representation
  24274. func (s CreateDefaultSubnetInput) GoString() string {
  24275. return s.String()
  24276. }
  24277. // Validate inspects the fields of the type to determine if they are valid.
  24278. func (s *CreateDefaultSubnetInput) Validate() error {
  24279. invalidParams := request.ErrInvalidParams{Context: "CreateDefaultSubnetInput"}
  24280. if s.AvailabilityZone == nil {
  24281. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  24282. }
  24283. if invalidParams.Len() > 0 {
  24284. return invalidParams
  24285. }
  24286. return nil
  24287. }
  24288. // SetAvailabilityZone sets the AvailabilityZone field's value.
  24289. func (s *CreateDefaultSubnetInput) SetAvailabilityZone(v string) *CreateDefaultSubnetInput {
  24290. s.AvailabilityZone = &v
  24291. return s
  24292. }
  24293. // SetDryRun sets the DryRun field's value.
  24294. func (s *CreateDefaultSubnetInput) SetDryRun(v bool) *CreateDefaultSubnetInput {
  24295. s.DryRun = &v
  24296. return s
  24297. }
  24298. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultSubnetResult
  24299. type CreateDefaultSubnetOutput struct {
  24300. _ struct{} `type:"structure"`
  24301. // Information about the subnet.
  24302. Subnet *Subnet `locationName:"subnet" type:"structure"`
  24303. }
  24304. // String returns the string representation
  24305. func (s CreateDefaultSubnetOutput) String() string {
  24306. return awsutil.Prettify(s)
  24307. }
  24308. // GoString returns the string representation
  24309. func (s CreateDefaultSubnetOutput) GoString() string {
  24310. return s.String()
  24311. }
  24312. // SetSubnet sets the Subnet field's value.
  24313. func (s *CreateDefaultSubnetOutput) SetSubnet(v *Subnet) *CreateDefaultSubnetOutput {
  24314. s.Subnet = v
  24315. return s
  24316. }
  24317. // Contains the parameters for CreateDefaultVpc.
  24318. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpcRequest
  24319. type CreateDefaultVpcInput struct {
  24320. _ struct{} `type:"structure"`
  24321. // Checks whether you have the required permissions for the action, without
  24322. // actually making the request, and provides an error response. If you have
  24323. // the required permissions, the error response is DryRunOperation. Otherwise,
  24324. // it is UnauthorizedOperation.
  24325. DryRun *bool `type:"boolean"`
  24326. }
  24327. // String returns the string representation
  24328. func (s CreateDefaultVpcInput) String() string {
  24329. return awsutil.Prettify(s)
  24330. }
  24331. // GoString returns the string representation
  24332. func (s CreateDefaultVpcInput) GoString() string {
  24333. return s.String()
  24334. }
  24335. // SetDryRun sets the DryRun field's value.
  24336. func (s *CreateDefaultVpcInput) SetDryRun(v bool) *CreateDefaultVpcInput {
  24337. s.DryRun = &v
  24338. return s
  24339. }
  24340. // Contains the output of CreateDefaultVpc.
  24341. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDefaultVpcResult
  24342. type CreateDefaultVpcOutput struct {
  24343. _ struct{} `type:"structure"`
  24344. // Information about the VPC.
  24345. Vpc *Vpc `locationName:"vpc" type:"structure"`
  24346. }
  24347. // String returns the string representation
  24348. func (s CreateDefaultVpcOutput) String() string {
  24349. return awsutil.Prettify(s)
  24350. }
  24351. // GoString returns the string representation
  24352. func (s CreateDefaultVpcOutput) GoString() string {
  24353. return s.String()
  24354. }
  24355. // SetVpc sets the Vpc field's value.
  24356. func (s *CreateDefaultVpcOutput) SetVpc(v *Vpc) *CreateDefaultVpcOutput {
  24357. s.Vpc = v
  24358. return s
  24359. }
  24360. // Contains the parameters for CreateDhcpOptions.
  24361. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptionsRequest
  24362. type CreateDhcpOptionsInput struct {
  24363. _ struct{} `type:"structure"`
  24364. // A DHCP configuration option.
  24365. //
  24366. // DhcpConfigurations is a required field
  24367. DhcpConfigurations []*NewDhcpConfiguration `locationName:"dhcpConfiguration" locationNameList:"item" type:"list" required:"true"`
  24368. // Checks whether you have the required permissions for the action, without
  24369. // actually making the request, and provides an error response. If you have
  24370. // the required permissions, the error response is DryRunOperation. Otherwise,
  24371. // it is UnauthorizedOperation.
  24372. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24373. }
  24374. // String returns the string representation
  24375. func (s CreateDhcpOptionsInput) String() string {
  24376. return awsutil.Prettify(s)
  24377. }
  24378. // GoString returns the string representation
  24379. func (s CreateDhcpOptionsInput) GoString() string {
  24380. return s.String()
  24381. }
  24382. // Validate inspects the fields of the type to determine if they are valid.
  24383. func (s *CreateDhcpOptionsInput) Validate() error {
  24384. invalidParams := request.ErrInvalidParams{Context: "CreateDhcpOptionsInput"}
  24385. if s.DhcpConfigurations == nil {
  24386. invalidParams.Add(request.NewErrParamRequired("DhcpConfigurations"))
  24387. }
  24388. if invalidParams.Len() > 0 {
  24389. return invalidParams
  24390. }
  24391. return nil
  24392. }
  24393. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  24394. func (s *CreateDhcpOptionsInput) SetDhcpConfigurations(v []*NewDhcpConfiguration) *CreateDhcpOptionsInput {
  24395. s.DhcpConfigurations = v
  24396. return s
  24397. }
  24398. // SetDryRun sets the DryRun field's value.
  24399. func (s *CreateDhcpOptionsInput) SetDryRun(v bool) *CreateDhcpOptionsInput {
  24400. s.DryRun = &v
  24401. return s
  24402. }
  24403. // Contains the output of CreateDhcpOptions.
  24404. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateDhcpOptionsResult
  24405. type CreateDhcpOptionsOutput struct {
  24406. _ struct{} `type:"structure"`
  24407. // A set of DHCP options.
  24408. DhcpOptions *DhcpOptions `locationName:"dhcpOptions" type:"structure"`
  24409. }
  24410. // String returns the string representation
  24411. func (s CreateDhcpOptionsOutput) String() string {
  24412. return awsutil.Prettify(s)
  24413. }
  24414. // GoString returns the string representation
  24415. func (s CreateDhcpOptionsOutput) GoString() string {
  24416. return s.String()
  24417. }
  24418. // SetDhcpOptions sets the DhcpOptions field's value.
  24419. func (s *CreateDhcpOptionsOutput) SetDhcpOptions(v *DhcpOptions) *CreateDhcpOptionsOutput {
  24420. s.DhcpOptions = v
  24421. return s
  24422. }
  24423. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGatewayRequest
  24424. type CreateEgressOnlyInternetGatewayInput struct {
  24425. _ struct{} `type:"structure"`
  24426. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  24427. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  24428. ClientToken *string `type:"string"`
  24429. // Checks whether you have the required permissions for the action, without
  24430. // actually making the request, and provides an error response. If you have
  24431. // the required permissions, the error response is DryRunOperation. Otherwise,
  24432. // it is UnauthorizedOperation.
  24433. DryRun *bool `type:"boolean"`
  24434. // The ID of the VPC for which to create the egress-only Internet gateway.
  24435. //
  24436. // VpcId is a required field
  24437. VpcId *string `type:"string" required:"true"`
  24438. }
  24439. // String returns the string representation
  24440. func (s CreateEgressOnlyInternetGatewayInput) String() string {
  24441. return awsutil.Prettify(s)
  24442. }
  24443. // GoString returns the string representation
  24444. func (s CreateEgressOnlyInternetGatewayInput) GoString() string {
  24445. return s.String()
  24446. }
  24447. // Validate inspects the fields of the type to determine if they are valid.
  24448. func (s *CreateEgressOnlyInternetGatewayInput) Validate() error {
  24449. invalidParams := request.ErrInvalidParams{Context: "CreateEgressOnlyInternetGatewayInput"}
  24450. if s.VpcId == nil {
  24451. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  24452. }
  24453. if invalidParams.Len() > 0 {
  24454. return invalidParams
  24455. }
  24456. return nil
  24457. }
  24458. // SetClientToken sets the ClientToken field's value.
  24459. func (s *CreateEgressOnlyInternetGatewayInput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayInput {
  24460. s.ClientToken = &v
  24461. return s
  24462. }
  24463. // SetDryRun sets the DryRun field's value.
  24464. func (s *CreateEgressOnlyInternetGatewayInput) SetDryRun(v bool) *CreateEgressOnlyInternetGatewayInput {
  24465. s.DryRun = &v
  24466. return s
  24467. }
  24468. // SetVpcId sets the VpcId field's value.
  24469. func (s *CreateEgressOnlyInternetGatewayInput) SetVpcId(v string) *CreateEgressOnlyInternetGatewayInput {
  24470. s.VpcId = &v
  24471. return s
  24472. }
  24473. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateEgressOnlyInternetGatewayResult
  24474. type CreateEgressOnlyInternetGatewayOutput struct {
  24475. _ struct{} `type:"structure"`
  24476. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  24477. // the request.
  24478. ClientToken *string `locationName:"clientToken" type:"string"`
  24479. // Information about the egress-only Internet gateway.
  24480. EgressOnlyInternetGateway *EgressOnlyInternetGateway `locationName:"egressOnlyInternetGateway" type:"structure"`
  24481. }
  24482. // String returns the string representation
  24483. func (s CreateEgressOnlyInternetGatewayOutput) String() string {
  24484. return awsutil.Prettify(s)
  24485. }
  24486. // GoString returns the string representation
  24487. func (s CreateEgressOnlyInternetGatewayOutput) GoString() string {
  24488. return s.String()
  24489. }
  24490. // SetClientToken sets the ClientToken field's value.
  24491. func (s *CreateEgressOnlyInternetGatewayOutput) SetClientToken(v string) *CreateEgressOnlyInternetGatewayOutput {
  24492. s.ClientToken = &v
  24493. return s
  24494. }
  24495. // SetEgressOnlyInternetGateway sets the EgressOnlyInternetGateway field's value.
  24496. func (s *CreateEgressOnlyInternetGatewayOutput) SetEgressOnlyInternetGateway(v *EgressOnlyInternetGateway) *CreateEgressOnlyInternetGatewayOutput {
  24497. s.EgressOnlyInternetGateway = v
  24498. return s
  24499. }
  24500. // Contains the parameters for CreateFlowLogs.
  24501. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogsRequest
  24502. type CreateFlowLogsInput struct {
  24503. _ struct{} `type:"structure"`
  24504. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  24505. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  24506. ClientToken *string `type:"string"`
  24507. // The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs
  24508. // log group.
  24509. //
  24510. // DeliverLogsPermissionArn is a required field
  24511. DeliverLogsPermissionArn *string `type:"string" required:"true"`
  24512. // The name of the CloudWatch log group.
  24513. //
  24514. // LogGroupName is a required field
  24515. LogGroupName *string `type:"string" required:"true"`
  24516. // One or more subnet, network interface, or VPC IDs.
  24517. //
  24518. // Constraints: Maximum of 1000 resources
  24519. //
  24520. // ResourceIds is a required field
  24521. ResourceIds []*string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"`
  24522. // The type of resource on which to create the flow log.
  24523. //
  24524. // ResourceType is a required field
  24525. ResourceType *string `type:"string" required:"true" enum:"FlowLogsResourceType"`
  24526. // The type of traffic to log.
  24527. //
  24528. // TrafficType is a required field
  24529. TrafficType *string `type:"string" required:"true" enum:"TrafficType"`
  24530. }
  24531. // String returns the string representation
  24532. func (s CreateFlowLogsInput) String() string {
  24533. return awsutil.Prettify(s)
  24534. }
  24535. // GoString returns the string representation
  24536. func (s CreateFlowLogsInput) GoString() string {
  24537. return s.String()
  24538. }
  24539. // Validate inspects the fields of the type to determine if they are valid.
  24540. func (s *CreateFlowLogsInput) Validate() error {
  24541. invalidParams := request.ErrInvalidParams{Context: "CreateFlowLogsInput"}
  24542. if s.DeliverLogsPermissionArn == nil {
  24543. invalidParams.Add(request.NewErrParamRequired("DeliverLogsPermissionArn"))
  24544. }
  24545. if s.LogGroupName == nil {
  24546. invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
  24547. }
  24548. if s.ResourceIds == nil {
  24549. invalidParams.Add(request.NewErrParamRequired("ResourceIds"))
  24550. }
  24551. if s.ResourceType == nil {
  24552. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  24553. }
  24554. if s.TrafficType == nil {
  24555. invalidParams.Add(request.NewErrParamRequired("TrafficType"))
  24556. }
  24557. if invalidParams.Len() > 0 {
  24558. return invalidParams
  24559. }
  24560. return nil
  24561. }
  24562. // SetClientToken sets the ClientToken field's value.
  24563. func (s *CreateFlowLogsInput) SetClientToken(v string) *CreateFlowLogsInput {
  24564. s.ClientToken = &v
  24565. return s
  24566. }
  24567. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  24568. func (s *CreateFlowLogsInput) SetDeliverLogsPermissionArn(v string) *CreateFlowLogsInput {
  24569. s.DeliverLogsPermissionArn = &v
  24570. return s
  24571. }
  24572. // SetLogGroupName sets the LogGroupName field's value.
  24573. func (s *CreateFlowLogsInput) SetLogGroupName(v string) *CreateFlowLogsInput {
  24574. s.LogGroupName = &v
  24575. return s
  24576. }
  24577. // SetResourceIds sets the ResourceIds field's value.
  24578. func (s *CreateFlowLogsInput) SetResourceIds(v []*string) *CreateFlowLogsInput {
  24579. s.ResourceIds = v
  24580. return s
  24581. }
  24582. // SetResourceType sets the ResourceType field's value.
  24583. func (s *CreateFlowLogsInput) SetResourceType(v string) *CreateFlowLogsInput {
  24584. s.ResourceType = &v
  24585. return s
  24586. }
  24587. // SetTrafficType sets the TrafficType field's value.
  24588. func (s *CreateFlowLogsInput) SetTrafficType(v string) *CreateFlowLogsInput {
  24589. s.TrafficType = &v
  24590. return s
  24591. }
  24592. // Contains the output of CreateFlowLogs.
  24593. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFlowLogsResult
  24594. type CreateFlowLogsOutput struct {
  24595. _ struct{} `type:"structure"`
  24596. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  24597. // the request.
  24598. ClientToken *string `locationName:"clientToken" type:"string"`
  24599. // The IDs of the flow logs.
  24600. FlowLogIds []*string `locationName:"flowLogIdSet" locationNameList:"item" type:"list"`
  24601. // Information about the flow logs that could not be created successfully.
  24602. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  24603. }
  24604. // String returns the string representation
  24605. func (s CreateFlowLogsOutput) String() string {
  24606. return awsutil.Prettify(s)
  24607. }
  24608. // GoString returns the string representation
  24609. func (s CreateFlowLogsOutput) GoString() string {
  24610. return s.String()
  24611. }
  24612. // SetClientToken sets the ClientToken field's value.
  24613. func (s *CreateFlowLogsOutput) SetClientToken(v string) *CreateFlowLogsOutput {
  24614. s.ClientToken = &v
  24615. return s
  24616. }
  24617. // SetFlowLogIds sets the FlowLogIds field's value.
  24618. func (s *CreateFlowLogsOutput) SetFlowLogIds(v []*string) *CreateFlowLogsOutput {
  24619. s.FlowLogIds = v
  24620. return s
  24621. }
  24622. // SetUnsuccessful sets the Unsuccessful field's value.
  24623. func (s *CreateFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *CreateFlowLogsOutput {
  24624. s.Unsuccessful = v
  24625. return s
  24626. }
  24627. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImageRequest
  24628. type CreateFpgaImageInput struct {
  24629. _ struct{} `type:"structure"`
  24630. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  24631. // of the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  24632. ClientToken *string `type:"string"`
  24633. // A description for the AFI.
  24634. Description *string `type:"string"`
  24635. // Checks whether you have the required permissions for the action, without
  24636. // actually making the request, and provides an error response. If you have
  24637. // the required permissions, the error response is DryRunOperation. Otherwise,
  24638. // it is UnauthorizedOperation.
  24639. DryRun *bool `type:"boolean"`
  24640. // The location of the encrypted design checkpoint in Amazon S3. The input must
  24641. // be a tarball.
  24642. //
  24643. // InputStorageLocation is a required field
  24644. InputStorageLocation *StorageLocation `type:"structure" required:"true"`
  24645. // The location in Amazon S3 for the output logs.
  24646. LogsStorageLocation *StorageLocation `type:"structure"`
  24647. // A name for the AFI.
  24648. Name *string `type:"string"`
  24649. }
  24650. // String returns the string representation
  24651. func (s CreateFpgaImageInput) String() string {
  24652. return awsutil.Prettify(s)
  24653. }
  24654. // GoString returns the string representation
  24655. func (s CreateFpgaImageInput) GoString() string {
  24656. return s.String()
  24657. }
  24658. // Validate inspects the fields of the type to determine if they are valid.
  24659. func (s *CreateFpgaImageInput) Validate() error {
  24660. invalidParams := request.ErrInvalidParams{Context: "CreateFpgaImageInput"}
  24661. if s.InputStorageLocation == nil {
  24662. invalidParams.Add(request.NewErrParamRequired("InputStorageLocation"))
  24663. }
  24664. if invalidParams.Len() > 0 {
  24665. return invalidParams
  24666. }
  24667. return nil
  24668. }
  24669. // SetClientToken sets the ClientToken field's value.
  24670. func (s *CreateFpgaImageInput) SetClientToken(v string) *CreateFpgaImageInput {
  24671. s.ClientToken = &v
  24672. return s
  24673. }
  24674. // SetDescription sets the Description field's value.
  24675. func (s *CreateFpgaImageInput) SetDescription(v string) *CreateFpgaImageInput {
  24676. s.Description = &v
  24677. return s
  24678. }
  24679. // SetDryRun sets the DryRun field's value.
  24680. func (s *CreateFpgaImageInput) SetDryRun(v bool) *CreateFpgaImageInput {
  24681. s.DryRun = &v
  24682. return s
  24683. }
  24684. // SetInputStorageLocation sets the InputStorageLocation field's value.
  24685. func (s *CreateFpgaImageInput) SetInputStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  24686. s.InputStorageLocation = v
  24687. return s
  24688. }
  24689. // SetLogsStorageLocation sets the LogsStorageLocation field's value.
  24690. func (s *CreateFpgaImageInput) SetLogsStorageLocation(v *StorageLocation) *CreateFpgaImageInput {
  24691. s.LogsStorageLocation = v
  24692. return s
  24693. }
  24694. // SetName sets the Name field's value.
  24695. func (s *CreateFpgaImageInput) SetName(v string) *CreateFpgaImageInput {
  24696. s.Name = &v
  24697. return s
  24698. }
  24699. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFpgaImageResult
  24700. type CreateFpgaImageOutput struct {
  24701. _ struct{} `type:"structure"`
  24702. // The global FPGA image identifier (AGFI ID).
  24703. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  24704. // The FPGA image identifier (AFI ID).
  24705. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  24706. }
  24707. // String returns the string representation
  24708. func (s CreateFpgaImageOutput) String() string {
  24709. return awsutil.Prettify(s)
  24710. }
  24711. // GoString returns the string representation
  24712. func (s CreateFpgaImageOutput) GoString() string {
  24713. return s.String()
  24714. }
  24715. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  24716. func (s *CreateFpgaImageOutput) SetFpgaImageGlobalId(v string) *CreateFpgaImageOutput {
  24717. s.FpgaImageGlobalId = &v
  24718. return s
  24719. }
  24720. // SetFpgaImageId sets the FpgaImageId field's value.
  24721. func (s *CreateFpgaImageOutput) SetFpgaImageId(v string) *CreateFpgaImageOutput {
  24722. s.FpgaImageId = &v
  24723. return s
  24724. }
  24725. // Contains the parameters for CreateImage.
  24726. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageRequest
  24727. type CreateImageInput struct {
  24728. _ struct{} `type:"structure"`
  24729. // Information about one or more block device mappings.
  24730. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  24731. // A description for the new image.
  24732. Description *string `locationName:"description" type:"string"`
  24733. // Checks whether you have the required permissions for the action, without
  24734. // actually making the request, and provides an error response. If you have
  24735. // the required permissions, the error response is DryRunOperation. Otherwise,
  24736. // it is UnauthorizedOperation.
  24737. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24738. // The ID of the instance.
  24739. //
  24740. // InstanceId is a required field
  24741. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  24742. // A name for the new image.
  24743. //
  24744. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  24745. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  24746. // at-signs (@), or underscores(_)
  24747. //
  24748. // Name is a required field
  24749. Name *string `locationName:"name" type:"string" required:"true"`
  24750. // By default, Amazon EC2 attempts to shut down and reboot the instance before
  24751. // creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't
  24752. // shut down the instance before creating the image. When this option is used,
  24753. // file system integrity on the created image can't be guaranteed.
  24754. NoReboot *bool `locationName:"noReboot" type:"boolean"`
  24755. }
  24756. // String returns the string representation
  24757. func (s CreateImageInput) String() string {
  24758. return awsutil.Prettify(s)
  24759. }
  24760. // GoString returns the string representation
  24761. func (s CreateImageInput) GoString() string {
  24762. return s.String()
  24763. }
  24764. // Validate inspects the fields of the type to determine if they are valid.
  24765. func (s *CreateImageInput) Validate() error {
  24766. invalidParams := request.ErrInvalidParams{Context: "CreateImageInput"}
  24767. if s.InstanceId == nil {
  24768. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  24769. }
  24770. if s.Name == nil {
  24771. invalidParams.Add(request.NewErrParamRequired("Name"))
  24772. }
  24773. if invalidParams.Len() > 0 {
  24774. return invalidParams
  24775. }
  24776. return nil
  24777. }
  24778. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  24779. func (s *CreateImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *CreateImageInput {
  24780. s.BlockDeviceMappings = v
  24781. return s
  24782. }
  24783. // SetDescription sets the Description field's value.
  24784. func (s *CreateImageInput) SetDescription(v string) *CreateImageInput {
  24785. s.Description = &v
  24786. return s
  24787. }
  24788. // SetDryRun sets the DryRun field's value.
  24789. func (s *CreateImageInput) SetDryRun(v bool) *CreateImageInput {
  24790. s.DryRun = &v
  24791. return s
  24792. }
  24793. // SetInstanceId sets the InstanceId field's value.
  24794. func (s *CreateImageInput) SetInstanceId(v string) *CreateImageInput {
  24795. s.InstanceId = &v
  24796. return s
  24797. }
  24798. // SetName sets the Name field's value.
  24799. func (s *CreateImageInput) SetName(v string) *CreateImageInput {
  24800. s.Name = &v
  24801. return s
  24802. }
  24803. // SetNoReboot sets the NoReboot field's value.
  24804. func (s *CreateImageInput) SetNoReboot(v bool) *CreateImageInput {
  24805. s.NoReboot = &v
  24806. return s
  24807. }
  24808. // Contains the output of CreateImage.
  24809. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateImageResult
  24810. type CreateImageOutput struct {
  24811. _ struct{} `type:"structure"`
  24812. // The ID of the new AMI.
  24813. ImageId *string `locationName:"imageId" type:"string"`
  24814. }
  24815. // String returns the string representation
  24816. func (s CreateImageOutput) String() string {
  24817. return awsutil.Prettify(s)
  24818. }
  24819. // GoString returns the string representation
  24820. func (s CreateImageOutput) GoString() string {
  24821. return s.String()
  24822. }
  24823. // SetImageId sets the ImageId field's value.
  24824. func (s *CreateImageOutput) SetImageId(v string) *CreateImageOutput {
  24825. s.ImageId = &v
  24826. return s
  24827. }
  24828. // Contains the parameters for CreateInstanceExportTask.
  24829. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTaskRequest
  24830. type CreateInstanceExportTaskInput struct {
  24831. _ struct{} `type:"structure"`
  24832. // A description for the conversion task or the resource being exported. The
  24833. // maximum length is 255 bytes.
  24834. Description *string `locationName:"description" type:"string"`
  24835. // The format and location for an instance export task.
  24836. ExportToS3Task *ExportToS3TaskSpecification `locationName:"exportToS3" type:"structure"`
  24837. // The ID of the instance.
  24838. //
  24839. // InstanceId is a required field
  24840. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  24841. // The target virtualization environment.
  24842. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  24843. }
  24844. // String returns the string representation
  24845. func (s CreateInstanceExportTaskInput) String() string {
  24846. return awsutil.Prettify(s)
  24847. }
  24848. // GoString returns the string representation
  24849. func (s CreateInstanceExportTaskInput) GoString() string {
  24850. return s.String()
  24851. }
  24852. // Validate inspects the fields of the type to determine if they are valid.
  24853. func (s *CreateInstanceExportTaskInput) Validate() error {
  24854. invalidParams := request.ErrInvalidParams{Context: "CreateInstanceExportTaskInput"}
  24855. if s.InstanceId == nil {
  24856. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  24857. }
  24858. if invalidParams.Len() > 0 {
  24859. return invalidParams
  24860. }
  24861. return nil
  24862. }
  24863. // SetDescription sets the Description field's value.
  24864. func (s *CreateInstanceExportTaskInput) SetDescription(v string) *CreateInstanceExportTaskInput {
  24865. s.Description = &v
  24866. return s
  24867. }
  24868. // SetExportToS3Task sets the ExportToS3Task field's value.
  24869. func (s *CreateInstanceExportTaskInput) SetExportToS3Task(v *ExportToS3TaskSpecification) *CreateInstanceExportTaskInput {
  24870. s.ExportToS3Task = v
  24871. return s
  24872. }
  24873. // SetInstanceId sets the InstanceId field's value.
  24874. func (s *CreateInstanceExportTaskInput) SetInstanceId(v string) *CreateInstanceExportTaskInput {
  24875. s.InstanceId = &v
  24876. return s
  24877. }
  24878. // SetTargetEnvironment sets the TargetEnvironment field's value.
  24879. func (s *CreateInstanceExportTaskInput) SetTargetEnvironment(v string) *CreateInstanceExportTaskInput {
  24880. s.TargetEnvironment = &v
  24881. return s
  24882. }
  24883. // Contains the output for CreateInstanceExportTask.
  24884. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInstanceExportTaskResult
  24885. type CreateInstanceExportTaskOutput struct {
  24886. _ struct{} `type:"structure"`
  24887. // Information about the instance export task.
  24888. ExportTask *ExportTask `locationName:"exportTask" type:"structure"`
  24889. }
  24890. // String returns the string representation
  24891. func (s CreateInstanceExportTaskOutput) String() string {
  24892. return awsutil.Prettify(s)
  24893. }
  24894. // GoString returns the string representation
  24895. func (s CreateInstanceExportTaskOutput) GoString() string {
  24896. return s.String()
  24897. }
  24898. // SetExportTask sets the ExportTask field's value.
  24899. func (s *CreateInstanceExportTaskOutput) SetExportTask(v *ExportTask) *CreateInstanceExportTaskOutput {
  24900. s.ExportTask = v
  24901. return s
  24902. }
  24903. // Contains the parameters for CreateInternetGateway.
  24904. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGatewayRequest
  24905. type CreateInternetGatewayInput struct {
  24906. _ struct{} `type:"structure"`
  24907. // Checks whether you have the required permissions for the action, without
  24908. // actually making the request, and provides an error response. If you have
  24909. // the required permissions, the error response is DryRunOperation. Otherwise,
  24910. // it is UnauthorizedOperation.
  24911. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24912. }
  24913. // String returns the string representation
  24914. func (s CreateInternetGatewayInput) String() string {
  24915. return awsutil.Prettify(s)
  24916. }
  24917. // GoString returns the string representation
  24918. func (s CreateInternetGatewayInput) GoString() string {
  24919. return s.String()
  24920. }
  24921. // SetDryRun sets the DryRun field's value.
  24922. func (s *CreateInternetGatewayInput) SetDryRun(v bool) *CreateInternetGatewayInput {
  24923. s.DryRun = &v
  24924. return s
  24925. }
  24926. // Contains the output of CreateInternetGateway.
  24927. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateInternetGatewayResult
  24928. type CreateInternetGatewayOutput struct {
  24929. _ struct{} `type:"structure"`
  24930. // Information about the Internet gateway.
  24931. InternetGateway *InternetGateway `locationName:"internetGateway" type:"structure"`
  24932. }
  24933. // String returns the string representation
  24934. func (s CreateInternetGatewayOutput) String() string {
  24935. return awsutil.Prettify(s)
  24936. }
  24937. // GoString returns the string representation
  24938. func (s CreateInternetGatewayOutput) GoString() string {
  24939. return s.String()
  24940. }
  24941. // SetInternetGateway sets the InternetGateway field's value.
  24942. func (s *CreateInternetGatewayOutput) SetInternetGateway(v *InternetGateway) *CreateInternetGatewayOutput {
  24943. s.InternetGateway = v
  24944. return s
  24945. }
  24946. // Contains the parameters for CreateKeyPair.
  24947. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPairRequest
  24948. type CreateKeyPairInput struct {
  24949. _ struct{} `type:"structure"`
  24950. // Checks whether you have the required permissions for the action, without
  24951. // actually making the request, and provides an error response. If you have
  24952. // the required permissions, the error response is DryRunOperation. Otherwise,
  24953. // it is UnauthorizedOperation.
  24954. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24955. // A unique name for the key pair.
  24956. //
  24957. // Constraints: Up to 255 ASCII characters
  24958. //
  24959. // KeyName is a required field
  24960. KeyName *string `type:"string" required:"true"`
  24961. }
  24962. // String returns the string representation
  24963. func (s CreateKeyPairInput) String() string {
  24964. return awsutil.Prettify(s)
  24965. }
  24966. // GoString returns the string representation
  24967. func (s CreateKeyPairInput) GoString() string {
  24968. return s.String()
  24969. }
  24970. // Validate inspects the fields of the type to determine if they are valid.
  24971. func (s *CreateKeyPairInput) Validate() error {
  24972. invalidParams := request.ErrInvalidParams{Context: "CreateKeyPairInput"}
  24973. if s.KeyName == nil {
  24974. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  24975. }
  24976. if invalidParams.Len() > 0 {
  24977. return invalidParams
  24978. }
  24979. return nil
  24980. }
  24981. // SetDryRun sets the DryRun field's value.
  24982. func (s *CreateKeyPairInput) SetDryRun(v bool) *CreateKeyPairInput {
  24983. s.DryRun = &v
  24984. return s
  24985. }
  24986. // SetKeyName sets the KeyName field's value.
  24987. func (s *CreateKeyPairInput) SetKeyName(v string) *CreateKeyPairInput {
  24988. s.KeyName = &v
  24989. return s
  24990. }
  24991. // Describes a key pair.
  24992. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPair
  24993. type CreateKeyPairOutput struct {
  24994. _ struct{} `type:"structure"`
  24995. // The SHA-1 digest of the DER encoded private key.
  24996. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  24997. // An unencrypted PEM encoded RSA private key.
  24998. KeyMaterial *string `locationName:"keyMaterial" type:"string"`
  24999. // The name of the key pair.
  25000. KeyName *string `locationName:"keyName" type:"string"`
  25001. }
  25002. // String returns the string representation
  25003. func (s CreateKeyPairOutput) String() string {
  25004. return awsutil.Prettify(s)
  25005. }
  25006. // GoString returns the string representation
  25007. func (s CreateKeyPairOutput) GoString() string {
  25008. return s.String()
  25009. }
  25010. // SetKeyFingerprint sets the KeyFingerprint field's value.
  25011. func (s *CreateKeyPairOutput) SetKeyFingerprint(v string) *CreateKeyPairOutput {
  25012. s.KeyFingerprint = &v
  25013. return s
  25014. }
  25015. // SetKeyMaterial sets the KeyMaterial field's value.
  25016. func (s *CreateKeyPairOutput) SetKeyMaterial(v string) *CreateKeyPairOutput {
  25017. s.KeyMaterial = &v
  25018. return s
  25019. }
  25020. // SetKeyName sets the KeyName field's value.
  25021. func (s *CreateKeyPairOutput) SetKeyName(v string) *CreateKeyPairOutput {
  25022. s.KeyName = &v
  25023. return s
  25024. }
  25025. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateRequest
  25026. type CreateLaunchTemplateInput struct {
  25027. _ struct{} `type:"structure"`
  25028. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25029. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25030. ClientToken *string `type:"string"`
  25031. // Checks whether you have the required permissions for the action, without
  25032. // actually making the request, and provides an error response. If you have
  25033. // the required permissions, the error response is DryRunOperation. Otherwise,
  25034. // it is UnauthorizedOperation.
  25035. DryRun *bool `type:"boolean"`
  25036. // The information for the launch template.
  25037. //
  25038. // LaunchTemplateData is a required field
  25039. LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`
  25040. // A name for the launch template.
  25041. //
  25042. // LaunchTemplateName is a required field
  25043. LaunchTemplateName *string `min:"3" type:"string" required:"true"`
  25044. // A description for the first version of the launch template.
  25045. VersionDescription *string `type:"string"`
  25046. }
  25047. // String returns the string representation
  25048. func (s CreateLaunchTemplateInput) String() string {
  25049. return awsutil.Prettify(s)
  25050. }
  25051. // GoString returns the string representation
  25052. func (s CreateLaunchTemplateInput) GoString() string {
  25053. return s.String()
  25054. }
  25055. // Validate inspects the fields of the type to determine if they are valid.
  25056. func (s *CreateLaunchTemplateInput) Validate() error {
  25057. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateInput"}
  25058. if s.LaunchTemplateData == nil {
  25059. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData"))
  25060. }
  25061. if s.LaunchTemplateName == nil {
  25062. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateName"))
  25063. }
  25064. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  25065. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  25066. }
  25067. if s.LaunchTemplateData != nil {
  25068. if err := s.LaunchTemplateData.Validate(); err != nil {
  25069. invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams))
  25070. }
  25071. }
  25072. if invalidParams.Len() > 0 {
  25073. return invalidParams
  25074. }
  25075. return nil
  25076. }
  25077. // SetClientToken sets the ClientToken field's value.
  25078. func (s *CreateLaunchTemplateInput) SetClientToken(v string) *CreateLaunchTemplateInput {
  25079. s.ClientToken = &v
  25080. return s
  25081. }
  25082. // SetDryRun sets the DryRun field's value.
  25083. func (s *CreateLaunchTemplateInput) SetDryRun(v bool) *CreateLaunchTemplateInput {
  25084. s.DryRun = &v
  25085. return s
  25086. }
  25087. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  25088. func (s *CreateLaunchTemplateInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateInput {
  25089. s.LaunchTemplateData = v
  25090. return s
  25091. }
  25092. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  25093. func (s *CreateLaunchTemplateInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateInput {
  25094. s.LaunchTemplateName = &v
  25095. return s
  25096. }
  25097. // SetVersionDescription sets the VersionDescription field's value.
  25098. func (s *CreateLaunchTemplateInput) SetVersionDescription(v string) *CreateLaunchTemplateInput {
  25099. s.VersionDescription = &v
  25100. return s
  25101. }
  25102. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateResult
  25103. type CreateLaunchTemplateOutput struct {
  25104. _ struct{} `type:"structure"`
  25105. // Information about the launch template.
  25106. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  25107. }
  25108. // String returns the string representation
  25109. func (s CreateLaunchTemplateOutput) String() string {
  25110. return awsutil.Prettify(s)
  25111. }
  25112. // GoString returns the string representation
  25113. func (s CreateLaunchTemplateOutput) GoString() string {
  25114. return s.String()
  25115. }
  25116. // SetLaunchTemplate sets the LaunchTemplate field's value.
  25117. func (s *CreateLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *CreateLaunchTemplateOutput {
  25118. s.LaunchTemplate = v
  25119. return s
  25120. }
  25121. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersionRequest
  25122. type CreateLaunchTemplateVersionInput struct {
  25123. _ struct{} `type:"structure"`
  25124. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25125. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25126. ClientToken *string `type:"string"`
  25127. // Checks whether you have the required permissions for the action, without
  25128. // actually making the request, and provides an error response. If you have
  25129. // the required permissions, the error response is DryRunOperation. Otherwise,
  25130. // it is UnauthorizedOperation.
  25131. DryRun *bool `type:"boolean"`
  25132. // The information for the launch template.
  25133. //
  25134. // LaunchTemplateData is a required field
  25135. LaunchTemplateData *RequestLaunchTemplateData `type:"structure" required:"true"`
  25136. // The ID of the launch template. You must specify either the launch template
  25137. // ID or launch template name in the request.
  25138. LaunchTemplateId *string `type:"string"`
  25139. // The name of the launch template. You must specify either the launch template
  25140. // ID or launch template name in the request.
  25141. LaunchTemplateName *string `min:"3" type:"string"`
  25142. // The version number of the launch template version on which to base the new
  25143. // version. The new version inherits the same launch parameters as the source
  25144. // version, except for parameters that you specify in LaunchTemplateData.
  25145. SourceVersion *string `type:"string"`
  25146. // A description for the version of the launch template.
  25147. VersionDescription *string `type:"string"`
  25148. }
  25149. // String returns the string representation
  25150. func (s CreateLaunchTemplateVersionInput) String() string {
  25151. return awsutil.Prettify(s)
  25152. }
  25153. // GoString returns the string representation
  25154. func (s CreateLaunchTemplateVersionInput) GoString() string {
  25155. return s.String()
  25156. }
  25157. // Validate inspects the fields of the type to determine if they are valid.
  25158. func (s *CreateLaunchTemplateVersionInput) Validate() error {
  25159. invalidParams := request.ErrInvalidParams{Context: "CreateLaunchTemplateVersionInput"}
  25160. if s.LaunchTemplateData == nil {
  25161. invalidParams.Add(request.NewErrParamRequired("LaunchTemplateData"))
  25162. }
  25163. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  25164. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  25165. }
  25166. if s.LaunchTemplateData != nil {
  25167. if err := s.LaunchTemplateData.Validate(); err != nil {
  25168. invalidParams.AddNested("LaunchTemplateData", err.(request.ErrInvalidParams))
  25169. }
  25170. }
  25171. if invalidParams.Len() > 0 {
  25172. return invalidParams
  25173. }
  25174. return nil
  25175. }
  25176. // SetClientToken sets the ClientToken field's value.
  25177. func (s *CreateLaunchTemplateVersionInput) SetClientToken(v string) *CreateLaunchTemplateVersionInput {
  25178. s.ClientToken = &v
  25179. return s
  25180. }
  25181. // SetDryRun sets the DryRun field's value.
  25182. func (s *CreateLaunchTemplateVersionInput) SetDryRun(v bool) *CreateLaunchTemplateVersionInput {
  25183. s.DryRun = &v
  25184. return s
  25185. }
  25186. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  25187. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateData(v *RequestLaunchTemplateData) *CreateLaunchTemplateVersionInput {
  25188. s.LaunchTemplateData = v
  25189. return s
  25190. }
  25191. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  25192. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateId(v string) *CreateLaunchTemplateVersionInput {
  25193. s.LaunchTemplateId = &v
  25194. return s
  25195. }
  25196. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  25197. func (s *CreateLaunchTemplateVersionInput) SetLaunchTemplateName(v string) *CreateLaunchTemplateVersionInput {
  25198. s.LaunchTemplateName = &v
  25199. return s
  25200. }
  25201. // SetSourceVersion sets the SourceVersion field's value.
  25202. func (s *CreateLaunchTemplateVersionInput) SetSourceVersion(v string) *CreateLaunchTemplateVersionInput {
  25203. s.SourceVersion = &v
  25204. return s
  25205. }
  25206. // SetVersionDescription sets the VersionDescription field's value.
  25207. func (s *CreateLaunchTemplateVersionInput) SetVersionDescription(v string) *CreateLaunchTemplateVersionInput {
  25208. s.VersionDescription = &v
  25209. return s
  25210. }
  25211. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersionResult
  25212. type CreateLaunchTemplateVersionOutput struct {
  25213. _ struct{} `type:"structure"`
  25214. // Information about the launch template version.
  25215. LaunchTemplateVersion *LaunchTemplateVersion `locationName:"launchTemplateVersion" type:"structure"`
  25216. }
  25217. // String returns the string representation
  25218. func (s CreateLaunchTemplateVersionOutput) String() string {
  25219. return awsutil.Prettify(s)
  25220. }
  25221. // GoString returns the string representation
  25222. func (s CreateLaunchTemplateVersionOutput) GoString() string {
  25223. return s.String()
  25224. }
  25225. // SetLaunchTemplateVersion sets the LaunchTemplateVersion field's value.
  25226. func (s *CreateLaunchTemplateVersionOutput) SetLaunchTemplateVersion(v *LaunchTemplateVersion) *CreateLaunchTemplateVersionOutput {
  25227. s.LaunchTemplateVersion = v
  25228. return s
  25229. }
  25230. // Contains the parameters for CreateNatGateway.
  25231. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayRequest
  25232. type CreateNatGatewayInput struct {
  25233. _ struct{} `type:"structure"`
  25234. // The allocation ID of an Elastic IP address to associate with the NAT gateway.
  25235. // If the Elastic IP address is associated with another resource, you must first
  25236. // disassociate it.
  25237. //
  25238. // AllocationId is a required field
  25239. AllocationId *string `type:"string" required:"true"`
  25240. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  25241. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25242. //
  25243. // Constraint: Maximum 64 ASCII characters.
  25244. ClientToken *string `type:"string"`
  25245. // The subnet in which to create the NAT gateway.
  25246. //
  25247. // SubnetId is a required field
  25248. SubnetId *string `type:"string" required:"true"`
  25249. }
  25250. // String returns the string representation
  25251. func (s CreateNatGatewayInput) String() string {
  25252. return awsutil.Prettify(s)
  25253. }
  25254. // GoString returns the string representation
  25255. func (s CreateNatGatewayInput) GoString() string {
  25256. return s.String()
  25257. }
  25258. // Validate inspects the fields of the type to determine if they are valid.
  25259. func (s *CreateNatGatewayInput) Validate() error {
  25260. invalidParams := request.ErrInvalidParams{Context: "CreateNatGatewayInput"}
  25261. if s.AllocationId == nil {
  25262. invalidParams.Add(request.NewErrParamRequired("AllocationId"))
  25263. }
  25264. if s.SubnetId == nil {
  25265. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  25266. }
  25267. if invalidParams.Len() > 0 {
  25268. return invalidParams
  25269. }
  25270. return nil
  25271. }
  25272. // SetAllocationId sets the AllocationId field's value.
  25273. func (s *CreateNatGatewayInput) SetAllocationId(v string) *CreateNatGatewayInput {
  25274. s.AllocationId = &v
  25275. return s
  25276. }
  25277. // SetClientToken sets the ClientToken field's value.
  25278. func (s *CreateNatGatewayInput) SetClientToken(v string) *CreateNatGatewayInput {
  25279. s.ClientToken = &v
  25280. return s
  25281. }
  25282. // SetSubnetId sets the SubnetId field's value.
  25283. func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput {
  25284. s.SubnetId = &v
  25285. return s
  25286. }
  25287. // Contains the output of CreateNatGateway.
  25288. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayResult
  25289. type CreateNatGatewayOutput struct {
  25290. _ struct{} `type:"structure"`
  25291. // Unique, case-sensitive identifier to ensure the idempotency of the request.
  25292. // Only returned if a client token was provided in the request.
  25293. ClientToken *string `locationName:"clientToken" type:"string"`
  25294. // Information about the NAT gateway.
  25295. NatGateway *NatGateway `locationName:"natGateway" type:"structure"`
  25296. }
  25297. // String returns the string representation
  25298. func (s CreateNatGatewayOutput) String() string {
  25299. return awsutil.Prettify(s)
  25300. }
  25301. // GoString returns the string representation
  25302. func (s CreateNatGatewayOutput) GoString() string {
  25303. return s.String()
  25304. }
  25305. // SetClientToken sets the ClientToken field's value.
  25306. func (s *CreateNatGatewayOutput) SetClientToken(v string) *CreateNatGatewayOutput {
  25307. s.ClientToken = &v
  25308. return s
  25309. }
  25310. // SetNatGateway sets the NatGateway field's value.
  25311. func (s *CreateNatGatewayOutput) SetNatGateway(v *NatGateway) *CreateNatGatewayOutput {
  25312. s.NatGateway = v
  25313. return s
  25314. }
  25315. // Contains the parameters for CreateNetworkAclEntry.
  25316. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntryRequest
  25317. type CreateNetworkAclEntryInput struct {
  25318. _ struct{} `type:"structure"`
  25319. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  25320. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  25321. // Checks whether you have the required permissions for the action, without
  25322. // actually making the request, and provides an error response. If you have
  25323. // the required permissions, the error response is DryRunOperation. Otherwise,
  25324. // it is UnauthorizedOperation.
  25325. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25326. // Indicates whether this is an egress rule (rule is applied to traffic leaving
  25327. // the subnet).
  25328. //
  25329. // Egress is a required field
  25330. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  25331. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the
  25332. // ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  25333. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  25334. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).
  25335. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  25336. // The ID of the network ACL.
  25337. //
  25338. // NetworkAclId is a required field
  25339. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  25340. // TCP or UDP protocols: The range of ports the rule applies to.
  25341. PortRange *PortRange `locationName:"portRange" type:"structure"`
  25342. // The protocol. A value of -1 or all means all protocols. If you specify all,
  25343. // -1, or a protocol number other than tcp, udp, or icmp, traffic on all ports
  25344. // is allowed, regardless of any ports or ICMP types or codes you specify. If
  25345. // you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, traffic
  25346. // for all ICMP types and codes allowed, regardless of any that you specify.
  25347. // If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, you must
  25348. // specify an ICMP type and code.
  25349. //
  25350. // Protocol is a required field
  25351. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  25352. // Indicates whether to allow or deny the traffic that matches the rule.
  25353. //
  25354. // RuleAction is a required field
  25355. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  25356. // The rule number for the entry (for example, 100). ACL entries are processed
  25357. // in ascending order by rule number.
  25358. //
  25359. // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is
  25360. // reserved for internal use.
  25361. //
  25362. // RuleNumber is a required field
  25363. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  25364. }
  25365. // String returns the string representation
  25366. func (s CreateNetworkAclEntryInput) String() string {
  25367. return awsutil.Prettify(s)
  25368. }
  25369. // GoString returns the string representation
  25370. func (s CreateNetworkAclEntryInput) GoString() string {
  25371. return s.String()
  25372. }
  25373. // Validate inspects the fields of the type to determine if they are valid.
  25374. func (s *CreateNetworkAclEntryInput) Validate() error {
  25375. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclEntryInput"}
  25376. if s.Egress == nil {
  25377. invalidParams.Add(request.NewErrParamRequired("Egress"))
  25378. }
  25379. if s.NetworkAclId == nil {
  25380. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  25381. }
  25382. if s.Protocol == nil {
  25383. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  25384. }
  25385. if s.RuleAction == nil {
  25386. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  25387. }
  25388. if s.RuleNumber == nil {
  25389. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  25390. }
  25391. if invalidParams.Len() > 0 {
  25392. return invalidParams
  25393. }
  25394. return nil
  25395. }
  25396. // SetCidrBlock sets the CidrBlock field's value.
  25397. func (s *CreateNetworkAclEntryInput) SetCidrBlock(v string) *CreateNetworkAclEntryInput {
  25398. s.CidrBlock = &v
  25399. return s
  25400. }
  25401. // SetDryRun sets the DryRun field's value.
  25402. func (s *CreateNetworkAclEntryInput) SetDryRun(v bool) *CreateNetworkAclEntryInput {
  25403. s.DryRun = &v
  25404. return s
  25405. }
  25406. // SetEgress sets the Egress field's value.
  25407. func (s *CreateNetworkAclEntryInput) SetEgress(v bool) *CreateNetworkAclEntryInput {
  25408. s.Egress = &v
  25409. return s
  25410. }
  25411. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  25412. func (s *CreateNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *CreateNetworkAclEntryInput {
  25413. s.IcmpTypeCode = v
  25414. return s
  25415. }
  25416. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  25417. func (s *CreateNetworkAclEntryInput) SetIpv6CidrBlock(v string) *CreateNetworkAclEntryInput {
  25418. s.Ipv6CidrBlock = &v
  25419. return s
  25420. }
  25421. // SetNetworkAclId sets the NetworkAclId field's value.
  25422. func (s *CreateNetworkAclEntryInput) SetNetworkAclId(v string) *CreateNetworkAclEntryInput {
  25423. s.NetworkAclId = &v
  25424. return s
  25425. }
  25426. // SetPortRange sets the PortRange field's value.
  25427. func (s *CreateNetworkAclEntryInput) SetPortRange(v *PortRange) *CreateNetworkAclEntryInput {
  25428. s.PortRange = v
  25429. return s
  25430. }
  25431. // SetProtocol sets the Protocol field's value.
  25432. func (s *CreateNetworkAclEntryInput) SetProtocol(v string) *CreateNetworkAclEntryInput {
  25433. s.Protocol = &v
  25434. return s
  25435. }
  25436. // SetRuleAction sets the RuleAction field's value.
  25437. func (s *CreateNetworkAclEntryInput) SetRuleAction(v string) *CreateNetworkAclEntryInput {
  25438. s.RuleAction = &v
  25439. return s
  25440. }
  25441. // SetRuleNumber sets the RuleNumber field's value.
  25442. func (s *CreateNetworkAclEntryInput) SetRuleNumber(v int64) *CreateNetworkAclEntryInput {
  25443. s.RuleNumber = &v
  25444. return s
  25445. }
  25446. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclEntryOutput
  25447. type CreateNetworkAclEntryOutput struct {
  25448. _ struct{} `type:"structure"`
  25449. }
  25450. // String returns the string representation
  25451. func (s CreateNetworkAclEntryOutput) String() string {
  25452. return awsutil.Prettify(s)
  25453. }
  25454. // GoString returns the string representation
  25455. func (s CreateNetworkAclEntryOutput) GoString() string {
  25456. return s.String()
  25457. }
  25458. // Contains the parameters for CreateNetworkAcl.
  25459. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclRequest
  25460. type CreateNetworkAclInput struct {
  25461. _ struct{} `type:"structure"`
  25462. // Checks whether you have the required permissions for the action, without
  25463. // actually making the request, and provides an error response. If you have
  25464. // the required permissions, the error response is DryRunOperation. Otherwise,
  25465. // it is UnauthorizedOperation.
  25466. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25467. // The ID of the VPC.
  25468. //
  25469. // VpcId is a required field
  25470. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  25471. }
  25472. // String returns the string representation
  25473. func (s CreateNetworkAclInput) String() string {
  25474. return awsutil.Prettify(s)
  25475. }
  25476. // GoString returns the string representation
  25477. func (s CreateNetworkAclInput) GoString() string {
  25478. return s.String()
  25479. }
  25480. // Validate inspects the fields of the type to determine if they are valid.
  25481. func (s *CreateNetworkAclInput) Validate() error {
  25482. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclInput"}
  25483. if s.VpcId == nil {
  25484. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  25485. }
  25486. if invalidParams.Len() > 0 {
  25487. return invalidParams
  25488. }
  25489. return nil
  25490. }
  25491. // SetDryRun sets the DryRun field's value.
  25492. func (s *CreateNetworkAclInput) SetDryRun(v bool) *CreateNetworkAclInput {
  25493. s.DryRun = &v
  25494. return s
  25495. }
  25496. // SetVpcId sets the VpcId field's value.
  25497. func (s *CreateNetworkAclInput) SetVpcId(v string) *CreateNetworkAclInput {
  25498. s.VpcId = &v
  25499. return s
  25500. }
  25501. // Contains the output of CreateNetworkAcl.
  25502. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkAclResult
  25503. type CreateNetworkAclOutput struct {
  25504. _ struct{} `type:"structure"`
  25505. // Information about the network ACL.
  25506. NetworkAcl *NetworkAcl `locationName:"networkAcl" type:"structure"`
  25507. }
  25508. // String returns the string representation
  25509. func (s CreateNetworkAclOutput) String() string {
  25510. return awsutil.Prettify(s)
  25511. }
  25512. // GoString returns the string representation
  25513. func (s CreateNetworkAclOutput) GoString() string {
  25514. return s.String()
  25515. }
  25516. // SetNetworkAcl sets the NetworkAcl field's value.
  25517. func (s *CreateNetworkAclOutput) SetNetworkAcl(v *NetworkAcl) *CreateNetworkAclOutput {
  25518. s.NetworkAcl = v
  25519. return s
  25520. }
  25521. // Contains the parameters for CreateNetworkInterface.
  25522. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceRequest
  25523. type CreateNetworkInterfaceInput struct {
  25524. _ struct{} `type:"structure"`
  25525. // A description for the network interface.
  25526. Description *string `locationName:"description" type:"string"`
  25527. // Checks whether you have the required permissions for the action, without
  25528. // actually making the request, and provides an error response. If you have
  25529. // the required permissions, the error response is DryRunOperation. Otherwise,
  25530. // it is UnauthorizedOperation.
  25531. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25532. // The IDs of one or more security groups.
  25533. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  25534. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  25535. // automatically selects the IPv6 addresses from the subnet range. You can't
  25536. // use this option if specifying specific IPv6 addresses. If your subnet has
  25537. // the AssignIpv6AddressOnCreation attribute set to true, you can specify 0
  25538. // to override this setting.
  25539. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  25540. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  25541. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  25542. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6Addresses" locationNameList:"item" type:"list"`
  25543. // The primary private IPv4 address of the network interface. If you don't specify
  25544. // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR
  25545. // range. If you specify an IP address, you cannot indicate any IP addresses
  25546. // specified in privateIpAddresses as primary (only one IP address can be designated
  25547. // as primary).
  25548. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  25549. // One or more private IPv4 addresses.
  25550. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddresses" locationNameList:"item" type:"list"`
  25551. // The number of secondary private IPv4 addresses to assign to a network interface.
  25552. // When you specify a number of secondary IPv4 addresses, Amazon EC2 selects
  25553. // these IP addresses within the subnet's IPv4 CIDR range. You can't specify
  25554. // this option and specify more than one private IP address using privateIpAddresses.
  25555. //
  25556. // The number of IP addresses you can assign to a network interface varies by
  25557. // instance type. For more information, see IP Addresses Per ENI Per Instance
  25558. // Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  25559. // in the Amazon Virtual Private Cloud User Guide.
  25560. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  25561. // The ID of the subnet to associate with the network interface.
  25562. //
  25563. // SubnetId is a required field
  25564. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  25565. }
  25566. // String returns the string representation
  25567. func (s CreateNetworkInterfaceInput) String() string {
  25568. return awsutil.Prettify(s)
  25569. }
  25570. // GoString returns the string representation
  25571. func (s CreateNetworkInterfaceInput) GoString() string {
  25572. return s.String()
  25573. }
  25574. // Validate inspects the fields of the type to determine if they are valid.
  25575. func (s *CreateNetworkInterfaceInput) Validate() error {
  25576. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfaceInput"}
  25577. if s.SubnetId == nil {
  25578. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  25579. }
  25580. if s.PrivateIpAddresses != nil {
  25581. for i, v := range s.PrivateIpAddresses {
  25582. if v == nil {
  25583. continue
  25584. }
  25585. if err := v.Validate(); err != nil {
  25586. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  25587. }
  25588. }
  25589. }
  25590. if invalidParams.Len() > 0 {
  25591. return invalidParams
  25592. }
  25593. return nil
  25594. }
  25595. // SetDescription sets the Description field's value.
  25596. func (s *CreateNetworkInterfaceInput) SetDescription(v string) *CreateNetworkInterfaceInput {
  25597. s.Description = &v
  25598. return s
  25599. }
  25600. // SetDryRun sets the DryRun field's value.
  25601. func (s *CreateNetworkInterfaceInput) SetDryRun(v bool) *CreateNetworkInterfaceInput {
  25602. s.DryRun = &v
  25603. return s
  25604. }
  25605. // SetGroups sets the Groups field's value.
  25606. func (s *CreateNetworkInterfaceInput) SetGroups(v []*string) *CreateNetworkInterfaceInput {
  25607. s.Groups = v
  25608. return s
  25609. }
  25610. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  25611. func (s *CreateNetworkInterfaceInput) SetIpv6AddressCount(v int64) *CreateNetworkInterfaceInput {
  25612. s.Ipv6AddressCount = &v
  25613. return s
  25614. }
  25615. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  25616. func (s *CreateNetworkInterfaceInput) SetIpv6Addresses(v []*InstanceIpv6Address) *CreateNetworkInterfaceInput {
  25617. s.Ipv6Addresses = v
  25618. return s
  25619. }
  25620. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  25621. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddress(v string) *CreateNetworkInterfaceInput {
  25622. s.PrivateIpAddress = &v
  25623. return s
  25624. }
  25625. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  25626. func (s *CreateNetworkInterfaceInput) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *CreateNetworkInterfaceInput {
  25627. s.PrivateIpAddresses = v
  25628. return s
  25629. }
  25630. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  25631. func (s *CreateNetworkInterfaceInput) SetSecondaryPrivateIpAddressCount(v int64) *CreateNetworkInterfaceInput {
  25632. s.SecondaryPrivateIpAddressCount = &v
  25633. return s
  25634. }
  25635. // SetSubnetId sets the SubnetId field's value.
  25636. func (s *CreateNetworkInterfaceInput) SetSubnetId(v string) *CreateNetworkInterfaceInput {
  25637. s.SubnetId = &v
  25638. return s
  25639. }
  25640. // Contains the output of CreateNetworkInterface.
  25641. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceResult
  25642. type CreateNetworkInterfaceOutput struct {
  25643. _ struct{} `type:"structure"`
  25644. // Information about the network interface.
  25645. NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"`
  25646. }
  25647. // String returns the string representation
  25648. func (s CreateNetworkInterfaceOutput) String() string {
  25649. return awsutil.Prettify(s)
  25650. }
  25651. // GoString returns the string representation
  25652. func (s CreateNetworkInterfaceOutput) GoString() string {
  25653. return s.String()
  25654. }
  25655. // SetNetworkInterface sets the NetworkInterface field's value.
  25656. func (s *CreateNetworkInterfaceOutput) SetNetworkInterface(v *NetworkInterface) *CreateNetworkInterfaceOutput {
  25657. s.NetworkInterface = v
  25658. return s
  25659. }
  25660. // Contains the parameters for CreateNetworkInterfacePermission.
  25661. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfacePermissionRequest
  25662. type CreateNetworkInterfacePermissionInput struct {
  25663. _ struct{} `type:"structure"`
  25664. // The AWS account ID.
  25665. AwsAccountId *string `type:"string"`
  25666. // The AWS service. Currently not supported.
  25667. AwsService *string `type:"string"`
  25668. // Checks whether you have the required permissions for the action, without
  25669. // actually making the request, and provides an error response. If you have
  25670. // the required permissions, the error response is DryRunOperation. Otherwise,
  25671. // it is UnauthorizedOperation.
  25672. DryRun *bool `type:"boolean"`
  25673. // The ID of the network interface.
  25674. //
  25675. // NetworkInterfaceId is a required field
  25676. NetworkInterfaceId *string `type:"string" required:"true"`
  25677. // The type of permission to grant.
  25678. //
  25679. // Permission is a required field
  25680. Permission *string `type:"string" required:"true" enum:"InterfacePermissionType"`
  25681. }
  25682. // String returns the string representation
  25683. func (s CreateNetworkInterfacePermissionInput) String() string {
  25684. return awsutil.Prettify(s)
  25685. }
  25686. // GoString returns the string representation
  25687. func (s CreateNetworkInterfacePermissionInput) GoString() string {
  25688. return s.String()
  25689. }
  25690. // Validate inspects the fields of the type to determine if they are valid.
  25691. func (s *CreateNetworkInterfacePermissionInput) Validate() error {
  25692. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfacePermissionInput"}
  25693. if s.NetworkInterfaceId == nil {
  25694. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  25695. }
  25696. if s.Permission == nil {
  25697. invalidParams.Add(request.NewErrParamRequired("Permission"))
  25698. }
  25699. if invalidParams.Len() > 0 {
  25700. return invalidParams
  25701. }
  25702. return nil
  25703. }
  25704. // SetAwsAccountId sets the AwsAccountId field's value.
  25705. func (s *CreateNetworkInterfacePermissionInput) SetAwsAccountId(v string) *CreateNetworkInterfacePermissionInput {
  25706. s.AwsAccountId = &v
  25707. return s
  25708. }
  25709. // SetAwsService sets the AwsService field's value.
  25710. func (s *CreateNetworkInterfacePermissionInput) SetAwsService(v string) *CreateNetworkInterfacePermissionInput {
  25711. s.AwsService = &v
  25712. return s
  25713. }
  25714. // SetDryRun sets the DryRun field's value.
  25715. func (s *CreateNetworkInterfacePermissionInput) SetDryRun(v bool) *CreateNetworkInterfacePermissionInput {
  25716. s.DryRun = &v
  25717. return s
  25718. }
  25719. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  25720. func (s *CreateNetworkInterfacePermissionInput) SetNetworkInterfaceId(v string) *CreateNetworkInterfacePermissionInput {
  25721. s.NetworkInterfaceId = &v
  25722. return s
  25723. }
  25724. // SetPermission sets the Permission field's value.
  25725. func (s *CreateNetworkInterfacePermissionInput) SetPermission(v string) *CreateNetworkInterfacePermissionInput {
  25726. s.Permission = &v
  25727. return s
  25728. }
  25729. // Contains the output of CreateNetworkInterfacePermission.
  25730. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfacePermissionResult
  25731. type CreateNetworkInterfacePermissionOutput struct {
  25732. _ struct{} `type:"structure"`
  25733. // Information about the permission for the network interface.
  25734. InterfacePermission *NetworkInterfacePermission `locationName:"interfacePermission" type:"structure"`
  25735. }
  25736. // String returns the string representation
  25737. func (s CreateNetworkInterfacePermissionOutput) String() string {
  25738. return awsutil.Prettify(s)
  25739. }
  25740. // GoString returns the string representation
  25741. func (s CreateNetworkInterfacePermissionOutput) GoString() string {
  25742. return s.String()
  25743. }
  25744. // SetInterfacePermission sets the InterfacePermission field's value.
  25745. func (s *CreateNetworkInterfacePermissionOutput) SetInterfacePermission(v *NetworkInterfacePermission) *CreateNetworkInterfacePermissionOutput {
  25746. s.InterfacePermission = v
  25747. return s
  25748. }
  25749. // Contains the parameters for CreatePlacementGroup.
  25750. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroupRequest
  25751. type CreatePlacementGroupInput struct {
  25752. _ struct{} `type:"structure"`
  25753. // Checks whether you have the required permissions for the action, without
  25754. // actually making the request, and provides an error response. If you have
  25755. // the required permissions, the error response is DryRunOperation. Otherwise,
  25756. // it is UnauthorizedOperation.
  25757. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25758. // A name for the placement group. Must be unique within the scope of your account
  25759. // for the region.
  25760. //
  25761. // Constraints: Up to 255 ASCII characters
  25762. //
  25763. // GroupName is a required field
  25764. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  25765. // The placement strategy.
  25766. //
  25767. // Strategy is a required field
  25768. Strategy *string `locationName:"strategy" type:"string" required:"true" enum:"PlacementStrategy"`
  25769. }
  25770. // String returns the string representation
  25771. func (s CreatePlacementGroupInput) String() string {
  25772. return awsutil.Prettify(s)
  25773. }
  25774. // GoString returns the string representation
  25775. func (s CreatePlacementGroupInput) GoString() string {
  25776. return s.String()
  25777. }
  25778. // Validate inspects the fields of the type to determine if they are valid.
  25779. func (s *CreatePlacementGroupInput) Validate() error {
  25780. invalidParams := request.ErrInvalidParams{Context: "CreatePlacementGroupInput"}
  25781. if s.GroupName == nil {
  25782. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  25783. }
  25784. if s.Strategy == nil {
  25785. invalidParams.Add(request.NewErrParamRequired("Strategy"))
  25786. }
  25787. if invalidParams.Len() > 0 {
  25788. return invalidParams
  25789. }
  25790. return nil
  25791. }
  25792. // SetDryRun sets the DryRun field's value.
  25793. func (s *CreatePlacementGroupInput) SetDryRun(v bool) *CreatePlacementGroupInput {
  25794. s.DryRun = &v
  25795. return s
  25796. }
  25797. // SetGroupName sets the GroupName field's value.
  25798. func (s *CreatePlacementGroupInput) SetGroupName(v string) *CreatePlacementGroupInput {
  25799. s.GroupName = &v
  25800. return s
  25801. }
  25802. // SetStrategy sets the Strategy field's value.
  25803. func (s *CreatePlacementGroupInput) SetStrategy(v string) *CreatePlacementGroupInput {
  25804. s.Strategy = &v
  25805. return s
  25806. }
  25807. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroupOutput
  25808. type CreatePlacementGroupOutput struct {
  25809. _ struct{} `type:"structure"`
  25810. }
  25811. // String returns the string representation
  25812. func (s CreatePlacementGroupOutput) String() string {
  25813. return awsutil.Prettify(s)
  25814. }
  25815. // GoString returns the string representation
  25816. func (s CreatePlacementGroupOutput) GoString() string {
  25817. return s.String()
  25818. }
  25819. // Contains the parameters for CreateReservedInstancesListing.
  25820. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListingRequest
  25821. type CreateReservedInstancesListingInput struct {
  25822. _ struct{} `type:"structure"`
  25823. // Unique, case-sensitive identifier you provide to ensure idempotency of your
  25824. // listings. This helps avoid duplicate listings. For more information, see
  25825. // Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25826. //
  25827. // ClientToken is a required field
  25828. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  25829. // The number of instances that are a part of a Reserved Instance account to
  25830. // be listed in the Reserved Instance Marketplace. This number should be less
  25831. // than or equal to the instance count associated with the Reserved Instance
  25832. // ID specified in this call.
  25833. //
  25834. // InstanceCount is a required field
  25835. InstanceCount *int64 `locationName:"instanceCount" type:"integer" required:"true"`
  25836. // A list specifying the price of the Standard Reserved Instance for each month
  25837. // remaining in the Reserved Instance term.
  25838. //
  25839. // PriceSchedules is a required field
  25840. PriceSchedules []*PriceScheduleSpecification `locationName:"priceSchedules" locationNameList:"item" type:"list" required:"true"`
  25841. // The ID of the active Standard Reserved Instance.
  25842. //
  25843. // ReservedInstancesId is a required field
  25844. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"`
  25845. }
  25846. // String returns the string representation
  25847. func (s CreateReservedInstancesListingInput) String() string {
  25848. return awsutil.Prettify(s)
  25849. }
  25850. // GoString returns the string representation
  25851. func (s CreateReservedInstancesListingInput) GoString() string {
  25852. return s.String()
  25853. }
  25854. // Validate inspects the fields of the type to determine if they are valid.
  25855. func (s *CreateReservedInstancesListingInput) Validate() error {
  25856. invalidParams := request.ErrInvalidParams{Context: "CreateReservedInstancesListingInput"}
  25857. if s.ClientToken == nil {
  25858. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  25859. }
  25860. if s.InstanceCount == nil {
  25861. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  25862. }
  25863. if s.PriceSchedules == nil {
  25864. invalidParams.Add(request.NewErrParamRequired("PriceSchedules"))
  25865. }
  25866. if s.ReservedInstancesId == nil {
  25867. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesId"))
  25868. }
  25869. if invalidParams.Len() > 0 {
  25870. return invalidParams
  25871. }
  25872. return nil
  25873. }
  25874. // SetClientToken sets the ClientToken field's value.
  25875. func (s *CreateReservedInstancesListingInput) SetClientToken(v string) *CreateReservedInstancesListingInput {
  25876. s.ClientToken = &v
  25877. return s
  25878. }
  25879. // SetInstanceCount sets the InstanceCount field's value.
  25880. func (s *CreateReservedInstancesListingInput) SetInstanceCount(v int64) *CreateReservedInstancesListingInput {
  25881. s.InstanceCount = &v
  25882. return s
  25883. }
  25884. // SetPriceSchedules sets the PriceSchedules field's value.
  25885. func (s *CreateReservedInstancesListingInput) SetPriceSchedules(v []*PriceScheduleSpecification) *CreateReservedInstancesListingInput {
  25886. s.PriceSchedules = v
  25887. return s
  25888. }
  25889. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  25890. func (s *CreateReservedInstancesListingInput) SetReservedInstancesId(v string) *CreateReservedInstancesListingInput {
  25891. s.ReservedInstancesId = &v
  25892. return s
  25893. }
  25894. // Contains the output of CreateReservedInstancesListing.
  25895. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReservedInstancesListingResult
  25896. type CreateReservedInstancesListingOutput struct {
  25897. _ struct{} `type:"structure"`
  25898. // Information about the Standard Reserved Instance listing.
  25899. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  25900. }
  25901. // String returns the string representation
  25902. func (s CreateReservedInstancesListingOutput) String() string {
  25903. return awsutil.Prettify(s)
  25904. }
  25905. // GoString returns the string representation
  25906. func (s CreateReservedInstancesListingOutput) GoString() string {
  25907. return s.String()
  25908. }
  25909. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  25910. func (s *CreateReservedInstancesListingOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *CreateReservedInstancesListingOutput {
  25911. s.ReservedInstancesListings = v
  25912. return s
  25913. }
  25914. // Contains the parameters for CreateRoute.
  25915. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteRequest
  25916. type CreateRouteInput struct {
  25917. _ struct{} `type:"structure"`
  25918. // The IPv4 CIDR address block used for the destination match. Routing decisions
  25919. // are based on the most specific match.
  25920. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  25921. // The IPv6 CIDR block used for the destination match. Routing decisions are
  25922. // based on the most specific match.
  25923. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  25924. // Checks whether you have the required permissions for the action, without
  25925. // actually making the request, and provides an error response. If you have
  25926. // the required permissions, the error response is DryRunOperation. Otherwise,
  25927. // it is UnauthorizedOperation.
  25928. DryRun *bool `locationName:"dryRun" type:"boolean"`
  25929. // [IPv6 traffic only] The ID of an egress-only Internet gateway.
  25930. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  25931. // The ID of an Internet gateway or virtual private gateway attached to your
  25932. // VPC.
  25933. GatewayId *string `locationName:"gatewayId" type:"string"`
  25934. // The ID of a NAT instance in your VPC. The operation fails if you specify
  25935. // an instance ID unless exactly one network interface is attached.
  25936. InstanceId *string `locationName:"instanceId" type:"string"`
  25937. // [IPv4 traffic only] The ID of a NAT gateway.
  25938. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  25939. // The ID of a network interface.
  25940. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  25941. // The ID of the route table for the route.
  25942. //
  25943. // RouteTableId is a required field
  25944. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  25945. // The ID of a VPC peering connection.
  25946. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  25947. }
  25948. // String returns the string representation
  25949. func (s CreateRouteInput) String() string {
  25950. return awsutil.Prettify(s)
  25951. }
  25952. // GoString returns the string representation
  25953. func (s CreateRouteInput) GoString() string {
  25954. return s.String()
  25955. }
  25956. // Validate inspects the fields of the type to determine if they are valid.
  25957. func (s *CreateRouteInput) Validate() error {
  25958. invalidParams := request.ErrInvalidParams{Context: "CreateRouteInput"}
  25959. if s.RouteTableId == nil {
  25960. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  25961. }
  25962. if invalidParams.Len() > 0 {
  25963. return invalidParams
  25964. }
  25965. return nil
  25966. }
  25967. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  25968. func (s *CreateRouteInput) SetDestinationCidrBlock(v string) *CreateRouteInput {
  25969. s.DestinationCidrBlock = &v
  25970. return s
  25971. }
  25972. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  25973. func (s *CreateRouteInput) SetDestinationIpv6CidrBlock(v string) *CreateRouteInput {
  25974. s.DestinationIpv6CidrBlock = &v
  25975. return s
  25976. }
  25977. // SetDryRun sets the DryRun field's value.
  25978. func (s *CreateRouteInput) SetDryRun(v bool) *CreateRouteInput {
  25979. s.DryRun = &v
  25980. return s
  25981. }
  25982. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  25983. func (s *CreateRouteInput) SetEgressOnlyInternetGatewayId(v string) *CreateRouteInput {
  25984. s.EgressOnlyInternetGatewayId = &v
  25985. return s
  25986. }
  25987. // SetGatewayId sets the GatewayId field's value.
  25988. func (s *CreateRouteInput) SetGatewayId(v string) *CreateRouteInput {
  25989. s.GatewayId = &v
  25990. return s
  25991. }
  25992. // SetInstanceId sets the InstanceId field's value.
  25993. func (s *CreateRouteInput) SetInstanceId(v string) *CreateRouteInput {
  25994. s.InstanceId = &v
  25995. return s
  25996. }
  25997. // SetNatGatewayId sets the NatGatewayId field's value.
  25998. func (s *CreateRouteInput) SetNatGatewayId(v string) *CreateRouteInput {
  25999. s.NatGatewayId = &v
  26000. return s
  26001. }
  26002. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  26003. func (s *CreateRouteInput) SetNetworkInterfaceId(v string) *CreateRouteInput {
  26004. s.NetworkInterfaceId = &v
  26005. return s
  26006. }
  26007. // SetRouteTableId sets the RouteTableId field's value.
  26008. func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput {
  26009. s.RouteTableId = &v
  26010. return s
  26011. }
  26012. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  26013. func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput {
  26014. s.VpcPeeringConnectionId = &v
  26015. return s
  26016. }
  26017. // Contains the output of CreateRoute.
  26018. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteResult
  26019. type CreateRouteOutput struct {
  26020. _ struct{} `type:"structure"`
  26021. // Returns true if the request succeeds; otherwise, it returns an error.
  26022. Return *bool `locationName:"return" type:"boolean"`
  26023. }
  26024. // String returns the string representation
  26025. func (s CreateRouteOutput) String() string {
  26026. return awsutil.Prettify(s)
  26027. }
  26028. // GoString returns the string representation
  26029. func (s CreateRouteOutput) GoString() string {
  26030. return s.String()
  26031. }
  26032. // SetReturn sets the Return field's value.
  26033. func (s *CreateRouteOutput) SetReturn(v bool) *CreateRouteOutput {
  26034. s.Return = &v
  26035. return s
  26036. }
  26037. // Contains the parameters for CreateRouteTable.
  26038. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTableRequest
  26039. type CreateRouteTableInput struct {
  26040. _ struct{} `type:"structure"`
  26041. // Checks whether you have the required permissions for the action, without
  26042. // actually making the request, and provides an error response. If you have
  26043. // the required permissions, the error response is DryRunOperation. Otherwise,
  26044. // it is UnauthorizedOperation.
  26045. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26046. // The ID of the VPC.
  26047. //
  26048. // VpcId is a required field
  26049. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  26050. }
  26051. // String returns the string representation
  26052. func (s CreateRouteTableInput) String() string {
  26053. return awsutil.Prettify(s)
  26054. }
  26055. // GoString returns the string representation
  26056. func (s CreateRouteTableInput) GoString() string {
  26057. return s.String()
  26058. }
  26059. // Validate inspects the fields of the type to determine if they are valid.
  26060. func (s *CreateRouteTableInput) Validate() error {
  26061. invalidParams := request.ErrInvalidParams{Context: "CreateRouteTableInput"}
  26062. if s.VpcId == nil {
  26063. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26064. }
  26065. if invalidParams.Len() > 0 {
  26066. return invalidParams
  26067. }
  26068. return nil
  26069. }
  26070. // SetDryRun sets the DryRun field's value.
  26071. func (s *CreateRouteTableInput) SetDryRun(v bool) *CreateRouteTableInput {
  26072. s.DryRun = &v
  26073. return s
  26074. }
  26075. // SetVpcId sets the VpcId field's value.
  26076. func (s *CreateRouteTableInput) SetVpcId(v string) *CreateRouteTableInput {
  26077. s.VpcId = &v
  26078. return s
  26079. }
  26080. // Contains the output of CreateRouteTable.
  26081. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateRouteTableResult
  26082. type CreateRouteTableOutput struct {
  26083. _ struct{} `type:"structure"`
  26084. // Information about the route table.
  26085. RouteTable *RouteTable `locationName:"routeTable" type:"structure"`
  26086. }
  26087. // String returns the string representation
  26088. func (s CreateRouteTableOutput) String() string {
  26089. return awsutil.Prettify(s)
  26090. }
  26091. // GoString returns the string representation
  26092. func (s CreateRouteTableOutput) GoString() string {
  26093. return s.String()
  26094. }
  26095. // SetRouteTable sets the RouteTable field's value.
  26096. func (s *CreateRouteTableOutput) SetRouteTable(v *RouteTable) *CreateRouteTableOutput {
  26097. s.RouteTable = v
  26098. return s
  26099. }
  26100. // Contains the parameters for CreateSecurityGroup.
  26101. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroupRequest
  26102. type CreateSecurityGroupInput struct {
  26103. _ struct{} `type:"structure"`
  26104. // A description for the security group. This is informational only.
  26105. //
  26106. // Constraints: Up to 255 characters in length
  26107. //
  26108. // Constraints for EC2-Classic: ASCII characters
  26109. //
  26110. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  26111. //
  26112. // Description is a required field
  26113. Description *string `locationName:"GroupDescription" type:"string" required:"true"`
  26114. // Checks whether you have the required permissions for the action, without
  26115. // actually making the request, and provides an error response. If you have
  26116. // the required permissions, the error response is DryRunOperation. Otherwise,
  26117. // it is UnauthorizedOperation.
  26118. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26119. // The name of the security group.
  26120. //
  26121. // Constraints: Up to 255 characters in length
  26122. //
  26123. // Constraints for EC2-Classic: ASCII characters
  26124. //
  26125. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  26126. //
  26127. // GroupName is a required field
  26128. GroupName *string `type:"string" required:"true"`
  26129. // [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
  26130. VpcId *string `type:"string"`
  26131. }
  26132. // String returns the string representation
  26133. func (s CreateSecurityGroupInput) String() string {
  26134. return awsutil.Prettify(s)
  26135. }
  26136. // GoString returns the string representation
  26137. func (s CreateSecurityGroupInput) GoString() string {
  26138. return s.String()
  26139. }
  26140. // Validate inspects the fields of the type to determine if they are valid.
  26141. func (s *CreateSecurityGroupInput) Validate() error {
  26142. invalidParams := request.ErrInvalidParams{Context: "CreateSecurityGroupInput"}
  26143. if s.Description == nil {
  26144. invalidParams.Add(request.NewErrParamRequired("Description"))
  26145. }
  26146. if s.GroupName == nil {
  26147. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  26148. }
  26149. if invalidParams.Len() > 0 {
  26150. return invalidParams
  26151. }
  26152. return nil
  26153. }
  26154. // SetDescription sets the Description field's value.
  26155. func (s *CreateSecurityGroupInput) SetDescription(v string) *CreateSecurityGroupInput {
  26156. s.Description = &v
  26157. return s
  26158. }
  26159. // SetDryRun sets the DryRun field's value.
  26160. func (s *CreateSecurityGroupInput) SetDryRun(v bool) *CreateSecurityGroupInput {
  26161. s.DryRun = &v
  26162. return s
  26163. }
  26164. // SetGroupName sets the GroupName field's value.
  26165. func (s *CreateSecurityGroupInput) SetGroupName(v string) *CreateSecurityGroupInput {
  26166. s.GroupName = &v
  26167. return s
  26168. }
  26169. // SetVpcId sets the VpcId field's value.
  26170. func (s *CreateSecurityGroupInput) SetVpcId(v string) *CreateSecurityGroupInput {
  26171. s.VpcId = &v
  26172. return s
  26173. }
  26174. // Contains the output of CreateSecurityGroup.
  26175. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSecurityGroupResult
  26176. type CreateSecurityGroupOutput struct {
  26177. _ struct{} `type:"structure"`
  26178. // The ID of the security group.
  26179. GroupId *string `locationName:"groupId" type:"string"`
  26180. }
  26181. // String returns the string representation
  26182. func (s CreateSecurityGroupOutput) String() string {
  26183. return awsutil.Prettify(s)
  26184. }
  26185. // GoString returns the string representation
  26186. func (s CreateSecurityGroupOutput) GoString() string {
  26187. return s.String()
  26188. }
  26189. // SetGroupId sets the GroupId field's value.
  26190. func (s *CreateSecurityGroupOutput) SetGroupId(v string) *CreateSecurityGroupOutput {
  26191. s.GroupId = &v
  26192. return s
  26193. }
  26194. // Contains the parameters for CreateSnapshot.
  26195. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSnapshotRequest
  26196. type CreateSnapshotInput struct {
  26197. _ struct{} `type:"structure"`
  26198. // A description for the snapshot.
  26199. Description *string `type:"string"`
  26200. // Checks whether you have the required permissions for the action, without
  26201. // actually making the request, and provides an error response. If you have
  26202. // the required permissions, the error response is DryRunOperation. Otherwise,
  26203. // it is UnauthorizedOperation.
  26204. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26205. // The ID of the EBS volume.
  26206. //
  26207. // VolumeId is a required field
  26208. VolumeId *string `type:"string" required:"true"`
  26209. }
  26210. // String returns the string representation
  26211. func (s CreateSnapshotInput) String() string {
  26212. return awsutil.Prettify(s)
  26213. }
  26214. // GoString returns the string representation
  26215. func (s CreateSnapshotInput) GoString() string {
  26216. return s.String()
  26217. }
  26218. // Validate inspects the fields of the type to determine if they are valid.
  26219. func (s *CreateSnapshotInput) Validate() error {
  26220. invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
  26221. if s.VolumeId == nil {
  26222. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  26223. }
  26224. if invalidParams.Len() > 0 {
  26225. return invalidParams
  26226. }
  26227. return nil
  26228. }
  26229. // SetDescription sets the Description field's value.
  26230. func (s *CreateSnapshotInput) SetDescription(v string) *CreateSnapshotInput {
  26231. s.Description = &v
  26232. return s
  26233. }
  26234. // SetDryRun sets the DryRun field's value.
  26235. func (s *CreateSnapshotInput) SetDryRun(v bool) *CreateSnapshotInput {
  26236. s.DryRun = &v
  26237. return s
  26238. }
  26239. // SetVolumeId sets the VolumeId field's value.
  26240. func (s *CreateSnapshotInput) SetVolumeId(v string) *CreateSnapshotInput {
  26241. s.VolumeId = &v
  26242. return s
  26243. }
  26244. // Contains the parameters for CreateSpotDatafeedSubscription.
  26245. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscriptionRequest
  26246. type CreateSpotDatafeedSubscriptionInput struct {
  26247. _ struct{} `type:"structure"`
  26248. // The Amazon S3 bucket in which to store the Spot Instance data feed.
  26249. //
  26250. // Bucket is a required field
  26251. Bucket *string `locationName:"bucket" type:"string" required:"true"`
  26252. // Checks whether you have the required permissions for the action, without
  26253. // actually making the request, and provides an error response. If you have
  26254. // the required permissions, the error response is DryRunOperation. Otherwise,
  26255. // it is UnauthorizedOperation.
  26256. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26257. // A prefix for the data feed file names.
  26258. Prefix *string `locationName:"prefix" type:"string"`
  26259. }
  26260. // String returns the string representation
  26261. func (s CreateSpotDatafeedSubscriptionInput) String() string {
  26262. return awsutil.Prettify(s)
  26263. }
  26264. // GoString returns the string representation
  26265. func (s CreateSpotDatafeedSubscriptionInput) GoString() string {
  26266. return s.String()
  26267. }
  26268. // Validate inspects the fields of the type to determine if they are valid.
  26269. func (s *CreateSpotDatafeedSubscriptionInput) Validate() error {
  26270. invalidParams := request.ErrInvalidParams{Context: "CreateSpotDatafeedSubscriptionInput"}
  26271. if s.Bucket == nil {
  26272. invalidParams.Add(request.NewErrParamRequired("Bucket"))
  26273. }
  26274. if invalidParams.Len() > 0 {
  26275. return invalidParams
  26276. }
  26277. return nil
  26278. }
  26279. // SetBucket sets the Bucket field's value.
  26280. func (s *CreateSpotDatafeedSubscriptionInput) SetBucket(v string) *CreateSpotDatafeedSubscriptionInput {
  26281. s.Bucket = &v
  26282. return s
  26283. }
  26284. // SetDryRun sets the DryRun field's value.
  26285. func (s *CreateSpotDatafeedSubscriptionInput) SetDryRun(v bool) *CreateSpotDatafeedSubscriptionInput {
  26286. s.DryRun = &v
  26287. return s
  26288. }
  26289. // SetPrefix sets the Prefix field's value.
  26290. func (s *CreateSpotDatafeedSubscriptionInput) SetPrefix(v string) *CreateSpotDatafeedSubscriptionInput {
  26291. s.Prefix = &v
  26292. return s
  26293. }
  26294. // Contains the output of CreateSpotDatafeedSubscription.
  26295. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSpotDatafeedSubscriptionResult
  26296. type CreateSpotDatafeedSubscriptionOutput struct {
  26297. _ struct{} `type:"structure"`
  26298. // The Spot Instance data feed subscription.
  26299. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  26300. }
  26301. // String returns the string representation
  26302. func (s CreateSpotDatafeedSubscriptionOutput) String() string {
  26303. return awsutil.Prettify(s)
  26304. }
  26305. // GoString returns the string representation
  26306. func (s CreateSpotDatafeedSubscriptionOutput) GoString() string {
  26307. return s.String()
  26308. }
  26309. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  26310. func (s *CreateSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *CreateSpotDatafeedSubscriptionOutput {
  26311. s.SpotDatafeedSubscription = v
  26312. return s
  26313. }
  26314. // Contains the parameters for CreateSubnet.
  26315. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetRequest
  26316. type CreateSubnetInput struct {
  26317. _ struct{} `type:"structure"`
  26318. // The Availability Zone for the subnet.
  26319. //
  26320. // Default: AWS selects one for you. If you create more than one subnet in your
  26321. // VPC, we may not necessarily select a different zone for each subnet.
  26322. AvailabilityZone *string `type:"string"`
  26323. // The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
  26324. //
  26325. // CidrBlock is a required field
  26326. CidrBlock *string `type:"string" required:"true"`
  26327. // Checks whether you have the required permissions for the action, without
  26328. // actually making the request, and provides an error response. If you have
  26329. // the required permissions, the error response is DryRunOperation. Otherwise,
  26330. // it is UnauthorizedOperation.
  26331. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26332. // The IPv6 network range for the subnet, in CIDR notation. The subnet size
  26333. // must use a /64 prefix length.
  26334. Ipv6CidrBlock *string `type:"string"`
  26335. // The ID of the VPC.
  26336. //
  26337. // VpcId is a required field
  26338. VpcId *string `type:"string" required:"true"`
  26339. }
  26340. // String returns the string representation
  26341. func (s CreateSubnetInput) String() string {
  26342. return awsutil.Prettify(s)
  26343. }
  26344. // GoString returns the string representation
  26345. func (s CreateSubnetInput) GoString() string {
  26346. return s.String()
  26347. }
  26348. // Validate inspects the fields of the type to determine if they are valid.
  26349. func (s *CreateSubnetInput) Validate() error {
  26350. invalidParams := request.ErrInvalidParams{Context: "CreateSubnetInput"}
  26351. if s.CidrBlock == nil {
  26352. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  26353. }
  26354. if s.VpcId == nil {
  26355. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26356. }
  26357. if invalidParams.Len() > 0 {
  26358. return invalidParams
  26359. }
  26360. return nil
  26361. }
  26362. // SetAvailabilityZone sets the AvailabilityZone field's value.
  26363. func (s *CreateSubnetInput) SetAvailabilityZone(v string) *CreateSubnetInput {
  26364. s.AvailabilityZone = &v
  26365. return s
  26366. }
  26367. // SetCidrBlock sets the CidrBlock field's value.
  26368. func (s *CreateSubnetInput) SetCidrBlock(v string) *CreateSubnetInput {
  26369. s.CidrBlock = &v
  26370. return s
  26371. }
  26372. // SetDryRun sets the DryRun field's value.
  26373. func (s *CreateSubnetInput) SetDryRun(v bool) *CreateSubnetInput {
  26374. s.DryRun = &v
  26375. return s
  26376. }
  26377. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  26378. func (s *CreateSubnetInput) SetIpv6CidrBlock(v string) *CreateSubnetInput {
  26379. s.Ipv6CidrBlock = &v
  26380. return s
  26381. }
  26382. // SetVpcId sets the VpcId field's value.
  26383. func (s *CreateSubnetInput) SetVpcId(v string) *CreateSubnetInput {
  26384. s.VpcId = &v
  26385. return s
  26386. }
  26387. // Contains the output of CreateSubnet.
  26388. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetResult
  26389. type CreateSubnetOutput struct {
  26390. _ struct{} `type:"structure"`
  26391. // Information about the subnet.
  26392. Subnet *Subnet `locationName:"subnet" type:"structure"`
  26393. }
  26394. // String returns the string representation
  26395. func (s CreateSubnetOutput) String() string {
  26396. return awsutil.Prettify(s)
  26397. }
  26398. // GoString returns the string representation
  26399. func (s CreateSubnetOutput) GoString() string {
  26400. return s.String()
  26401. }
  26402. // SetSubnet sets the Subnet field's value.
  26403. func (s *CreateSubnetOutput) SetSubnet(v *Subnet) *CreateSubnetOutput {
  26404. s.Subnet = v
  26405. return s
  26406. }
  26407. // Contains the parameters for CreateTags.
  26408. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTagsRequest
  26409. type CreateTagsInput struct {
  26410. _ struct{} `type:"structure"`
  26411. // Checks whether you have the required permissions for the action, without
  26412. // actually making the request, and provides an error response. If you have
  26413. // the required permissions, the error response is DryRunOperation. Otherwise,
  26414. // it is UnauthorizedOperation.
  26415. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26416. // The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
  26417. //
  26418. // Resources is a required field
  26419. Resources []*string `locationName:"ResourceId" type:"list" required:"true"`
  26420. // One or more tags. The value parameter is required, but if you don't want
  26421. // the tag to have a value, specify the parameter with no value, and we set
  26422. // the value to an empty string.
  26423. //
  26424. // Tags is a required field
  26425. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list" required:"true"`
  26426. }
  26427. // String returns the string representation
  26428. func (s CreateTagsInput) String() string {
  26429. return awsutil.Prettify(s)
  26430. }
  26431. // GoString returns the string representation
  26432. func (s CreateTagsInput) GoString() string {
  26433. return s.String()
  26434. }
  26435. // Validate inspects the fields of the type to determine if they are valid.
  26436. func (s *CreateTagsInput) Validate() error {
  26437. invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  26438. if s.Resources == nil {
  26439. invalidParams.Add(request.NewErrParamRequired("Resources"))
  26440. }
  26441. if s.Tags == nil {
  26442. invalidParams.Add(request.NewErrParamRequired("Tags"))
  26443. }
  26444. if invalidParams.Len() > 0 {
  26445. return invalidParams
  26446. }
  26447. return nil
  26448. }
  26449. // SetDryRun sets the DryRun field's value.
  26450. func (s *CreateTagsInput) SetDryRun(v bool) *CreateTagsInput {
  26451. s.DryRun = &v
  26452. return s
  26453. }
  26454. // SetResources sets the Resources field's value.
  26455. func (s *CreateTagsInput) SetResources(v []*string) *CreateTagsInput {
  26456. s.Resources = v
  26457. return s
  26458. }
  26459. // SetTags sets the Tags field's value.
  26460. func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
  26461. s.Tags = v
  26462. return s
  26463. }
  26464. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTagsOutput
  26465. type CreateTagsOutput struct {
  26466. _ struct{} `type:"structure"`
  26467. }
  26468. // String returns the string representation
  26469. func (s CreateTagsOutput) String() string {
  26470. return awsutil.Prettify(s)
  26471. }
  26472. // GoString returns the string representation
  26473. func (s CreateTagsOutput) GoString() string {
  26474. return s.String()
  26475. }
  26476. // Contains the parameters for CreateVolume.
  26477. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumeRequest
  26478. type CreateVolumeInput struct {
  26479. _ struct{} `type:"structure"`
  26480. // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones
  26481. // to list the Availability Zones that are currently available to you.
  26482. //
  26483. // AvailabilityZone is a required field
  26484. AvailabilityZone *string `type:"string" required:"true"`
  26485. // Checks whether you have the required permissions for the action, without
  26486. // actually making the request, and provides an error response. If you have
  26487. // the required permissions, the error response is DryRunOperation. Otherwise,
  26488. // it is UnauthorizedOperation.
  26489. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26490. // Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes
  26491. // may only be attached to instances that support Amazon EBS encryption. Volumes
  26492. // that are created from encrypted snapshots are automatically encrypted. There
  26493. // is no way to create an encrypted volume from an unencrypted snapshot or vice
  26494. // versa. If your AMI uses encrypted volumes, you can only launch it on supported
  26495. // instance types. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  26496. // in the Amazon Elastic Compute Cloud User Guide.
  26497. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  26498. // Only valid for Provisioned IOPS SSD volumes. The number of I/O operations
  26499. // per second (IOPS) to provision for the volume, with a maximum ratio of 50
  26500. // IOPS/GiB.
  26501. //
  26502. // Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes
  26503. Iops *int64 `type:"integer"`
  26504. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  26505. // key (CMK) to use when creating the encrypted volume. This parameter is only
  26506. // required if you want to use a non-default CMK; if this parameter is not specified,
  26507. // the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace,
  26508. // followed by the region of the CMK, the AWS account ID of the CMK owner, the
  26509. // key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  26510. // If a KmsKeyId is specified, the Encrypted flag must also be set.
  26511. KmsKeyId *string `type:"string"`
  26512. // The size of the volume, in GiBs.
  26513. //
  26514. // Constraints: 1-16384 for gp2, 4-16384 for io1, 500-16384 for st1, 500-16384
  26515. // for sc1, and 1-1024 for standard. If you specify a snapshot, the volume size
  26516. // must be equal to or larger than the snapshot size.
  26517. //
  26518. // Default: If you're creating the volume from a snapshot and don't specify
  26519. // a volume size, the default is the snapshot size.
  26520. Size *int64 `type:"integer"`
  26521. // The snapshot from which to create the volume.
  26522. SnapshotId *string `type:"string"`
  26523. // The tags to apply to the volume during creation.
  26524. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  26525. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  26526. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  26527. // for Magnetic volumes.
  26528. //
  26529. // Default: standard
  26530. VolumeType *string `type:"string" enum:"VolumeType"`
  26531. }
  26532. // String returns the string representation
  26533. func (s CreateVolumeInput) String() string {
  26534. return awsutil.Prettify(s)
  26535. }
  26536. // GoString returns the string representation
  26537. func (s CreateVolumeInput) GoString() string {
  26538. return s.String()
  26539. }
  26540. // Validate inspects the fields of the type to determine if they are valid.
  26541. func (s *CreateVolumeInput) Validate() error {
  26542. invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"}
  26543. if s.AvailabilityZone == nil {
  26544. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  26545. }
  26546. if invalidParams.Len() > 0 {
  26547. return invalidParams
  26548. }
  26549. return nil
  26550. }
  26551. // SetAvailabilityZone sets the AvailabilityZone field's value.
  26552. func (s *CreateVolumeInput) SetAvailabilityZone(v string) *CreateVolumeInput {
  26553. s.AvailabilityZone = &v
  26554. return s
  26555. }
  26556. // SetDryRun sets the DryRun field's value.
  26557. func (s *CreateVolumeInput) SetDryRun(v bool) *CreateVolumeInput {
  26558. s.DryRun = &v
  26559. return s
  26560. }
  26561. // SetEncrypted sets the Encrypted field's value.
  26562. func (s *CreateVolumeInput) SetEncrypted(v bool) *CreateVolumeInput {
  26563. s.Encrypted = &v
  26564. return s
  26565. }
  26566. // SetIops sets the Iops field's value.
  26567. func (s *CreateVolumeInput) SetIops(v int64) *CreateVolumeInput {
  26568. s.Iops = &v
  26569. return s
  26570. }
  26571. // SetKmsKeyId sets the KmsKeyId field's value.
  26572. func (s *CreateVolumeInput) SetKmsKeyId(v string) *CreateVolumeInput {
  26573. s.KmsKeyId = &v
  26574. return s
  26575. }
  26576. // SetSize sets the Size field's value.
  26577. func (s *CreateVolumeInput) SetSize(v int64) *CreateVolumeInput {
  26578. s.Size = &v
  26579. return s
  26580. }
  26581. // SetSnapshotId sets the SnapshotId field's value.
  26582. func (s *CreateVolumeInput) SetSnapshotId(v string) *CreateVolumeInput {
  26583. s.SnapshotId = &v
  26584. return s
  26585. }
  26586. // SetTagSpecifications sets the TagSpecifications field's value.
  26587. func (s *CreateVolumeInput) SetTagSpecifications(v []*TagSpecification) *CreateVolumeInput {
  26588. s.TagSpecifications = v
  26589. return s
  26590. }
  26591. // SetVolumeType sets the VolumeType field's value.
  26592. func (s *CreateVolumeInput) SetVolumeType(v string) *CreateVolumeInput {
  26593. s.VolumeType = &v
  26594. return s
  26595. }
  26596. // Describes the user or group to be added or removed from the permissions for
  26597. // a volume.
  26598. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumePermission
  26599. type CreateVolumePermission struct {
  26600. _ struct{} `type:"structure"`
  26601. // The specific group that is to be added or removed from a volume's list of
  26602. // create volume permissions.
  26603. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  26604. // The specific AWS account ID that is to be added or removed from a volume's
  26605. // list of create volume permissions.
  26606. UserId *string `locationName:"userId" type:"string"`
  26607. }
  26608. // String returns the string representation
  26609. func (s CreateVolumePermission) String() string {
  26610. return awsutil.Prettify(s)
  26611. }
  26612. // GoString returns the string representation
  26613. func (s CreateVolumePermission) GoString() string {
  26614. return s.String()
  26615. }
  26616. // SetGroup sets the Group field's value.
  26617. func (s *CreateVolumePermission) SetGroup(v string) *CreateVolumePermission {
  26618. s.Group = &v
  26619. return s
  26620. }
  26621. // SetUserId sets the UserId field's value.
  26622. func (s *CreateVolumePermission) SetUserId(v string) *CreateVolumePermission {
  26623. s.UserId = &v
  26624. return s
  26625. }
  26626. // Describes modifications to the permissions for a volume.
  26627. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumePermissionModifications
  26628. type CreateVolumePermissionModifications struct {
  26629. _ struct{} `type:"structure"`
  26630. // Adds a specific AWS account ID or group to a volume's list of create volume
  26631. // permissions.
  26632. Add []*CreateVolumePermission `locationNameList:"item" type:"list"`
  26633. // Removes a specific AWS account ID or group from a volume's list of create
  26634. // volume permissions.
  26635. Remove []*CreateVolumePermission `locationNameList:"item" type:"list"`
  26636. }
  26637. // String returns the string representation
  26638. func (s CreateVolumePermissionModifications) String() string {
  26639. return awsutil.Prettify(s)
  26640. }
  26641. // GoString returns the string representation
  26642. func (s CreateVolumePermissionModifications) GoString() string {
  26643. return s.String()
  26644. }
  26645. // SetAdd sets the Add field's value.
  26646. func (s *CreateVolumePermissionModifications) SetAdd(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  26647. s.Add = v
  26648. return s
  26649. }
  26650. // SetRemove sets the Remove field's value.
  26651. func (s *CreateVolumePermissionModifications) SetRemove(v []*CreateVolumePermission) *CreateVolumePermissionModifications {
  26652. s.Remove = v
  26653. return s
  26654. }
  26655. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotificationRequest
  26656. type CreateVpcEndpointConnectionNotificationInput struct {
  26657. _ struct{} `type:"structure"`
  26658. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  26659. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  26660. ClientToken *string `type:"string"`
  26661. // One or more endpoint events for which to receive notifications. Valid values
  26662. // are Accept, Connect, Delete, and Reject.
  26663. //
  26664. // ConnectionEvents is a required field
  26665. ConnectionEvents []*string `locationNameList:"item" type:"list" required:"true"`
  26666. // The ARN of the SNS topic for the notifications.
  26667. //
  26668. // ConnectionNotificationArn is a required field
  26669. ConnectionNotificationArn *string `type:"string" required:"true"`
  26670. // Checks whether you have the required permissions for the action, without
  26671. // actually making the request, and provides an error response. If you have
  26672. // the required permissions, the error response is DryRunOperation. Otherwise,
  26673. // it is UnauthorizedOperation.
  26674. DryRun *bool `type:"boolean"`
  26675. // The ID of the endpoint service.
  26676. ServiceId *string `type:"string"`
  26677. // The ID of the endpoint.
  26678. VpcEndpointId *string `type:"string"`
  26679. }
  26680. // String returns the string representation
  26681. func (s CreateVpcEndpointConnectionNotificationInput) String() string {
  26682. return awsutil.Prettify(s)
  26683. }
  26684. // GoString returns the string representation
  26685. func (s CreateVpcEndpointConnectionNotificationInput) GoString() string {
  26686. return s.String()
  26687. }
  26688. // Validate inspects the fields of the type to determine if they are valid.
  26689. func (s *CreateVpcEndpointConnectionNotificationInput) Validate() error {
  26690. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointConnectionNotificationInput"}
  26691. if s.ConnectionEvents == nil {
  26692. invalidParams.Add(request.NewErrParamRequired("ConnectionEvents"))
  26693. }
  26694. if s.ConnectionNotificationArn == nil {
  26695. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationArn"))
  26696. }
  26697. if invalidParams.Len() > 0 {
  26698. return invalidParams
  26699. }
  26700. return nil
  26701. }
  26702. // SetClientToken sets the ClientToken field's value.
  26703. func (s *CreateVpcEndpointConnectionNotificationInput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationInput {
  26704. s.ClientToken = &v
  26705. return s
  26706. }
  26707. // SetConnectionEvents sets the ConnectionEvents field's value.
  26708. func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *CreateVpcEndpointConnectionNotificationInput {
  26709. s.ConnectionEvents = v
  26710. return s
  26711. }
  26712. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  26713. func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *CreateVpcEndpointConnectionNotificationInput {
  26714. s.ConnectionNotificationArn = &v
  26715. return s
  26716. }
  26717. // SetDryRun sets the DryRun field's value.
  26718. func (s *CreateVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *CreateVpcEndpointConnectionNotificationInput {
  26719. s.DryRun = &v
  26720. return s
  26721. }
  26722. // SetServiceId sets the ServiceId field's value.
  26723. func (s *CreateVpcEndpointConnectionNotificationInput) SetServiceId(v string) *CreateVpcEndpointConnectionNotificationInput {
  26724. s.ServiceId = &v
  26725. return s
  26726. }
  26727. // SetVpcEndpointId sets the VpcEndpointId field's value.
  26728. func (s *CreateVpcEndpointConnectionNotificationInput) SetVpcEndpointId(v string) *CreateVpcEndpointConnectionNotificationInput {
  26729. s.VpcEndpointId = &v
  26730. return s
  26731. }
  26732. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointConnectionNotificationResult
  26733. type CreateVpcEndpointConnectionNotificationOutput struct {
  26734. _ struct{} `type:"structure"`
  26735. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  26736. // the request.
  26737. ClientToken *string `locationName:"clientToken" type:"string"`
  26738. // Information about the notification.
  26739. ConnectionNotification *ConnectionNotification `locationName:"connectionNotification" type:"structure"`
  26740. }
  26741. // String returns the string representation
  26742. func (s CreateVpcEndpointConnectionNotificationOutput) String() string {
  26743. return awsutil.Prettify(s)
  26744. }
  26745. // GoString returns the string representation
  26746. func (s CreateVpcEndpointConnectionNotificationOutput) GoString() string {
  26747. return s.String()
  26748. }
  26749. // SetClientToken sets the ClientToken field's value.
  26750. func (s *CreateVpcEndpointConnectionNotificationOutput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationOutput {
  26751. s.ClientToken = &v
  26752. return s
  26753. }
  26754. // SetConnectionNotification sets the ConnectionNotification field's value.
  26755. func (s *CreateVpcEndpointConnectionNotificationOutput) SetConnectionNotification(v *ConnectionNotification) *CreateVpcEndpointConnectionNotificationOutput {
  26756. s.ConnectionNotification = v
  26757. return s
  26758. }
  26759. // Contains the parameters for CreateVpcEndpoint.
  26760. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointRequest
  26761. type CreateVpcEndpointInput struct {
  26762. _ struct{} `type:"structure"`
  26763. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  26764. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  26765. ClientToken *string `type:"string"`
  26766. // Checks whether you have the required permissions for the action, without
  26767. // actually making the request, and provides an error response. If you have
  26768. // the required permissions, the error response is DryRunOperation. Otherwise,
  26769. // it is UnauthorizedOperation.
  26770. DryRun *bool `type:"boolean"`
  26771. // (Gateway endpoint) A policy to attach to the endpoint that controls access
  26772. // to the service. The policy must be in valid JSON format. If this parameter
  26773. // is not specified, we attach a default policy that allows full access to the
  26774. // service.
  26775. PolicyDocument *string `type:"string"`
  26776. // (Interface endpoint) Indicate whether to associate a private hosted zone
  26777. // with the specified VPC. The private hosted zone contains a record set for
  26778. // the default public DNS name for the service for the region (for example,
  26779. // kinesis.us-east-1.amazonaws.com) which resolves to the private IP addresses
  26780. // of the endpoint network interfaces in the VPC. This enables you to make requests
  26781. // to the default public DNS name for the service instead of the public DNS
  26782. // names that are automatically generated by the VPC endpoint service.
  26783. //
  26784. // To use a private hosted zone, you must set the following VPC attributes to
  26785. // true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to
  26786. // set the VPC attributes.
  26787. //
  26788. // Default: true
  26789. PrivateDnsEnabled *bool `type:"boolean"`
  26790. // (Gateway endpoint) One or more route table IDs.
  26791. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  26792. // (Interface endpoint) The ID of one or more security groups to associate with
  26793. // the endpoint network interface.
  26794. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  26795. // The service name. To get a list of available services, use the DescribeVpcEndpointServices
  26796. // request, or get the name from the service provider.
  26797. //
  26798. // ServiceName is a required field
  26799. ServiceName *string `type:"string" required:"true"`
  26800. // (Interface endpoint) The ID of one or more subnets in which to create an
  26801. // endpoint network interface.
  26802. SubnetIds []*string `locationName:"SubnetId" locationNameList:"item" type:"list"`
  26803. // The type of endpoint.
  26804. //
  26805. // Default: Gateway
  26806. VpcEndpointType *string `type:"string" enum:"VpcEndpointType"`
  26807. // The ID of the VPC in which the endpoint will be used.
  26808. //
  26809. // VpcId is a required field
  26810. VpcId *string `type:"string" required:"true"`
  26811. }
  26812. // String returns the string representation
  26813. func (s CreateVpcEndpointInput) String() string {
  26814. return awsutil.Prettify(s)
  26815. }
  26816. // GoString returns the string representation
  26817. func (s CreateVpcEndpointInput) GoString() string {
  26818. return s.String()
  26819. }
  26820. // Validate inspects the fields of the type to determine if they are valid.
  26821. func (s *CreateVpcEndpointInput) Validate() error {
  26822. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointInput"}
  26823. if s.ServiceName == nil {
  26824. invalidParams.Add(request.NewErrParamRequired("ServiceName"))
  26825. }
  26826. if s.VpcId == nil {
  26827. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  26828. }
  26829. if invalidParams.Len() > 0 {
  26830. return invalidParams
  26831. }
  26832. return nil
  26833. }
  26834. // SetClientToken sets the ClientToken field's value.
  26835. func (s *CreateVpcEndpointInput) SetClientToken(v string) *CreateVpcEndpointInput {
  26836. s.ClientToken = &v
  26837. return s
  26838. }
  26839. // SetDryRun sets the DryRun field's value.
  26840. func (s *CreateVpcEndpointInput) SetDryRun(v bool) *CreateVpcEndpointInput {
  26841. s.DryRun = &v
  26842. return s
  26843. }
  26844. // SetPolicyDocument sets the PolicyDocument field's value.
  26845. func (s *CreateVpcEndpointInput) SetPolicyDocument(v string) *CreateVpcEndpointInput {
  26846. s.PolicyDocument = &v
  26847. return s
  26848. }
  26849. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  26850. func (s *CreateVpcEndpointInput) SetPrivateDnsEnabled(v bool) *CreateVpcEndpointInput {
  26851. s.PrivateDnsEnabled = &v
  26852. return s
  26853. }
  26854. // SetRouteTableIds sets the RouteTableIds field's value.
  26855. func (s *CreateVpcEndpointInput) SetRouteTableIds(v []*string) *CreateVpcEndpointInput {
  26856. s.RouteTableIds = v
  26857. return s
  26858. }
  26859. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  26860. func (s *CreateVpcEndpointInput) SetSecurityGroupIds(v []*string) *CreateVpcEndpointInput {
  26861. s.SecurityGroupIds = v
  26862. return s
  26863. }
  26864. // SetServiceName sets the ServiceName field's value.
  26865. func (s *CreateVpcEndpointInput) SetServiceName(v string) *CreateVpcEndpointInput {
  26866. s.ServiceName = &v
  26867. return s
  26868. }
  26869. // SetSubnetIds sets the SubnetIds field's value.
  26870. func (s *CreateVpcEndpointInput) SetSubnetIds(v []*string) *CreateVpcEndpointInput {
  26871. s.SubnetIds = v
  26872. return s
  26873. }
  26874. // SetVpcEndpointType sets the VpcEndpointType field's value.
  26875. func (s *CreateVpcEndpointInput) SetVpcEndpointType(v string) *CreateVpcEndpointInput {
  26876. s.VpcEndpointType = &v
  26877. return s
  26878. }
  26879. // SetVpcId sets the VpcId field's value.
  26880. func (s *CreateVpcEndpointInput) SetVpcId(v string) *CreateVpcEndpointInput {
  26881. s.VpcId = &v
  26882. return s
  26883. }
  26884. // Contains the output of CreateVpcEndpoint.
  26885. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointResult
  26886. type CreateVpcEndpointOutput struct {
  26887. _ struct{} `type:"structure"`
  26888. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  26889. // the request.
  26890. ClientToken *string `locationName:"clientToken" type:"string"`
  26891. // Information about the endpoint.
  26892. VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"`
  26893. }
  26894. // String returns the string representation
  26895. func (s CreateVpcEndpointOutput) String() string {
  26896. return awsutil.Prettify(s)
  26897. }
  26898. // GoString returns the string representation
  26899. func (s CreateVpcEndpointOutput) GoString() string {
  26900. return s.String()
  26901. }
  26902. // SetClientToken sets the ClientToken field's value.
  26903. func (s *CreateVpcEndpointOutput) SetClientToken(v string) *CreateVpcEndpointOutput {
  26904. s.ClientToken = &v
  26905. return s
  26906. }
  26907. // SetVpcEndpoint sets the VpcEndpoint field's value.
  26908. func (s *CreateVpcEndpointOutput) SetVpcEndpoint(v *VpcEndpoint) *CreateVpcEndpointOutput {
  26909. s.VpcEndpoint = v
  26910. return s
  26911. }
  26912. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfigurationRequest
  26913. type CreateVpcEndpointServiceConfigurationInput struct {
  26914. _ struct{} `type:"structure"`
  26915. // Indicate whether requests from service consumers to create an endpoint to
  26916. // your service must be accepted. To accept a request, use AcceptVpcEndpointConnections.
  26917. AcceptanceRequired *bool `type:"boolean"`
  26918. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  26919. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  26920. ClientToken *string `type:"string"`
  26921. // Checks whether you have the required permissions for the action, without
  26922. // actually making the request, and provides an error response. If you have
  26923. // the required permissions, the error response is DryRunOperation. Otherwise,
  26924. // it is UnauthorizedOperation.
  26925. DryRun *bool `type:"boolean"`
  26926. // The Amazon Resource Names (ARNs) of one or more Network Load Balancers for
  26927. // your service.
  26928. //
  26929. // NetworkLoadBalancerArns is a required field
  26930. NetworkLoadBalancerArns []*string `locationName:"NetworkLoadBalancerArn" locationNameList:"item" type:"list" required:"true"`
  26931. }
  26932. // String returns the string representation
  26933. func (s CreateVpcEndpointServiceConfigurationInput) String() string {
  26934. return awsutil.Prettify(s)
  26935. }
  26936. // GoString returns the string representation
  26937. func (s CreateVpcEndpointServiceConfigurationInput) GoString() string {
  26938. return s.String()
  26939. }
  26940. // Validate inspects the fields of the type to determine if they are valid.
  26941. func (s *CreateVpcEndpointServiceConfigurationInput) Validate() error {
  26942. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointServiceConfigurationInput"}
  26943. if s.NetworkLoadBalancerArns == nil {
  26944. invalidParams.Add(request.NewErrParamRequired("NetworkLoadBalancerArns"))
  26945. }
  26946. if invalidParams.Len() > 0 {
  26947. return invalidParams
  26948. }
  26949. return nil
  26950. }
  26951. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  26952. func (s *CreateVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *CreateVpcEndpointServiceConfigurationInput {
  26953. s.AcceptanceRequired = &v
  26954. return s
  26955. }
  26956. // SetClientToken sets the ClientToken field's value.
  26957. func (s *CreateVpcEndpointServiceConfigurationInput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationInput {
  26958. s.ClientToken = &v
  26959. return s
  26960. }
  26961. // SetDryRun sets the DryRun field's value.
  26962. func (s *CreateVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *CreateVpcEndpointServiceConfigurationInput {
  26963. s.DryRun = &v
  26964. return s
  26965. }
  26966. // SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value.
  26967. func (s *CreateVpcEndpointServiceConfigurationInput) SetNetworkLoadBalancerArns(v []*string) *CreateVpcEndpointServiceConfigurationInput {
  26968. s.NetworkLoadBalancerArns = v
  26969. return s
  26970. }
  26971. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcEndpointServiceConfigurationResult
  26972. type CreateVpcEndpointServiceConfigurationOutput struct {
  26973. _ struct{} `type:"structure"`
  26974. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  26975. // the request.
  26976. ClientToken *string `locationName:"clientToken" type:"string"`
  26977. // Information about the service configuration.
  26978. ServiceConfiguration *ServiceConfiguration `locationName:"serviceConfiguration" type:"structure"`
  26979. }
  26980. // String returns the string representation
  26981. func (s CreateVpcEndpointServiceConfigurationOutput) String() string {
  26982. return awsutil.Prettify(s)
  26983. }
  26984. // GoString returns the string representation
  26985. func (s CreateVpcEndpointServiceConfigurationOutput) GoString() string {
  26986. return s.String()
  26987. }
  26988. // SetClientToken sets the ClientToken field's value.
  26989. func (s *CreateVpcEndpointServiceConfigurationOutput) SetClientToken(v string) *CreateVpcEndpointServiceConfigurationOutput {
  26990. s.ClientToken = &v
  26991. return s
  26992. }
  26993. // SetServiceConfiguration sets the ServiceConfiguration field's value.
  26994. func (s *CreateVpcEndpointServiceConfigurationOutput) SetServiceConfiguration(v *ServiceConfiguration) *CreateVpcEndpointServiceConfigurationOutput {
  26995. s.ServiceConfiguration = v
  26996. return s
  26997. }
  26998. // Contains the parameters for CreateVpc.
  26999. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcRequest
  27000. type CreateVpcInput struct {
  27001. _ struct{} `type:"structure"`
  27002. // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for
  27003. // the VPC. You cannot specify the range of IP addresses, or the size of the
  27004. // CIDR block.
  27005. AmazonProvidedIpv6CidrBlock *bool `locationName:"amazonProvidedIpv6CidrBlock" type:"boolean"`
  27006. // The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
  27007. //
  27008. // CidrBlock is a required field
  27009. CidrBlock *string `type:"string" required:"true"`
  27010. // Checks whether you have the required permissions for the action, without
  27011. // actually making the request, and provides an error response. If you have
  27012. // the required permissions, the error response is DryRunOperation. Otherwise,
  27013. // it is UnauthorizedOperation.
  27014. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27015. // The tenancy options for instances launched into the VPC. For default, instances
  27016. // are launched with shared tenancy by default. You can launch instances with
  27017. // any tenancy into a shared tenancy VPC. For dedicated, instances are launched
  27018. // as dedicated tenancy instances by default. You can only launch instances
  27019. // with a tenancy of dedicated or host into a dedicated tenancy VPC.
  27020. //
  27021. // Important: The host value cannot be used with this parameter. Use the default
  27022. // or dedicated values only.
  27023. //
  27024. // Default: default
  27025. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  27026. }
  27027. // String returns the string representation
  27028. func (s CreateVpcInput) String() string {
  27029. return awsutil.Prettify(s)
  27030. }
  27031. // GoString returns the string representation
  27032. func (s CreateVpcInput) GoString() string {
  27033. return s.String()
  27034. }
  27035. // Validate inspects the fields of the type to determine if they are valid.
  27036. func (s *CreateVpcInput) Validate() error {
  27037. invalidParams := request.ErrInvalidParams{Context: "CreateVpcInput"}
  27038. if s.CidrBlock == nil {
  27039. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  27040. }
  27041. if invalidParams.Len() > 0 {
  27042. return invalidParams
  27043. }
  27044. return nil
  27045. }
  27046. // SetAmazonProvidedIpv6CidrBlock sets the AmazonProvidedIpv6CidrBlock field's value.
  27047. func (s *CreateVpcInput) SetAmazonProvidedIpv6CidrBlock(v bool) *CreateVpcInput {
  27048. s.AmazonProvidedIpv6CidrBlock = &v
  27049. return s
  27050. }
  27051. // SetCidrBlock sets the CidrBlock field's value.
  27052. func (s *CreateVpcInput) SetCidrBlock(v string) *CreateVpcInput {
  27053. s.CidrBlock = &v
  27054. return s
  27055. }
  27056. // SetDryRun sets the DryRun field's value.
  27057. func (s *CreateVpcInput) SetDryRun(v bool) *CreateVpcInput {
  27058. s.DryRun = &v
  27059. return s
  27060. }
  27061. // SetInstanceTenancy sets the InstanceTenancy field's value.
  27062. func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput {
  27063. s.InstanceTenancy = &v
  27064. return s
  27065. }
  27066. // Contains the output of CreateVpc.
  27067. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcResult
  27068. type CreateVpcOutput struct {
  27069. _ struct{} `type:"structure"`
  27070. // Information about the VPC.
  27071. Vpc *Vpc `locationName:"vpc" type:"structure"`
  27072. }
  27073. // String returns the string representation
  27074. func (s CreateVpcOutput) String() string {
  27075. return awsutil.Prettify(s)
  27076. }
  27077. // GoString returns the string representation
  27078. func (s CreateVpcOutput) GoString() string {
  27079. return s.String()
  27080. }
  27081. // SetVpc sets the Vpc field's value.
  27082. func (s *CreateVpcOutput) SetVpc(v *Vpc) *CreateVpcOutput {
  27083. s.Vpc = v
  27084. return s
  27085. }
  27086. // Contains the parameters for CreateVpcPeeringConnection.
  27087. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnectionRequest
  27088. type CreateVpcPeeringConnectionInput struct {
  27089. _ struct{} `type:"structure"`
  27090. // Checks whether you have the required permissions for the action, without
  27091. // actually making the request, and provides an error response. If you have
  27092. // the required permissions, the error response is DryRunOperation. Otherwise,
  27093. // it is UnauthorizedOperation.
  27094. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27095. // The AWS account ID of the owner of the accepter VPC.
  27096. //
  27097. // Default: Your AWS account ID
  27098. PeerOwnerId *string `locationName:"peerOwnerId" type:"string"`
  27099. // The region code for the accepter VPC, if the accepter VPC is located in a
  27100. // region other than the region in which you make the request.
  27101. //
  27102. // Default: The region in which you make the request.
  27103. PeerRegion *string `type:"string"`
  27104. // The ID of the VPC with which you are creating the VPC peering connection.
  27105. // You must specify this parameter in the request.
  27106. PeerVpcId *string `locationName:"peerVpcId" type:"string"`
  27107. // The ID of the requester VPC. You must specify this parameter in the request.
  27108. VpcId *string `locationName:"vpcId" type:"string"`
  27109. }
  27110. // String returns the string representation
  27111. func (s CreateVpcPeeringConnectionInput) String() string {
  27112. return awsutil.Prettify(s)
  27113. }
  27114. // GoString returns the string representation
  27115. func (s CreateVpcPeeringConnectionInput) GoString() string {
  27116. return s.String()
  27117. }
  27118. // SetDryRun sets the DryRun field's value.
  27119. func (s *CreateVpcPeeringConnectionInput) SetDryRun(v bool) *CreateVpcPeeringConnectionInput {
  27120. s.DryRun = &v
  27121. return s
  27122. }
  27123. // SetPeerOwnerId sets the PeerOwnerId field's value.
  27124. func (s *CreateVpcPeeringConnectionInput) SetPeerOwnerId(v string) *CreateVpcPeeringConnectionInput {
  27125. s.PeerOwnerId = &v
  27126. return s
  27127. }
  27128. // SetPeerRegion sets the PeerRegion field's value.
  27129. func (s *CreateVpcPeeringConnectionInput) SetPeerRegion(v string) *CreateVpcPeeringConnectionInput {
  27130. s.PeerRegion = &v
  27131. return s
  27132. }
  27133. // SetPeerVpcId sets the PeerVpcId field's value.
  27134. func (s *CreateVpcPeeringConnectionInput) SetPeerVpcId(v string) *CreateVpcPeeringConnectionInput {
  27135. s.PeerVpcId = &v
  27136. return s
  27137. }
  27138. // SetVpcId sets the VpcId field's value.
  27139. func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringConnectionInput {
  27140. s.VpcId = &v
  27141. return s
  27142. }
  27143. // Contains the output of CreateVpcPeeringConnection.
  27144. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpcPeeringConnectionResult
  27145. type CreateVpcPeeringConnectionOutput struct {
  27146. _ struct{} `type:"structure"`
  27147. // Information about the VPC peering connection.
  27148. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  27149. }
  27150. // String returns the string representation
  27151. func (s CreateVpcPeeringConnectionOutput) String() string {
  27152. return awsutil.Prettify(s)
  27153. }
  27154. // GoString returns the string representation
  27155. func (s CreateVpcPeeringConnectionOutput) GoString() string {
  27156. return s.String()
  27157. }
  27158. // SetVpcPeeringConnection sets the VpcPeeringConnection field's value.
  27159. func (s *CreateVpcPeeringConnectionOutput) SetVpcPeeringConnection(v *VpcPeeringConnection) *CreateVpcPeeringConnectionOutput {
  27160. s.VpcPeeringConnection = v
  27161. return s
  27162. }
  27163. // Contains the parameters for CreateVpnConnection.
  27164. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRequest
  27165. type CreateVpnConnectionInput struct {
  27166. _ struct{} `type:"structure"`
  27167. // The ID of the customer gateway.
  27168. //
  27169. // CustomerGatewayId is a required field
  27170. CustomerGatewayId *string `type:"string" required:"true"`
  27171. // Checks whether you have the required permissions for the action, without
  27172. // actually making the request, and provides an error response. If you have
  27173. // the required permissions, the error response is DryRunOperation. Otherwise,
  27174. // it is UnauthorizedOperation.
  27175. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27176. // The options for the VPN connection.
  27177. Options *VpnConnectionOptionsSpecification `locationName:"options" type:"structure"`
  27178. // The type of VPN connection (ipsec.1).
  27179. //
  27180. // Type is a required field
  27181. Type *string `type:"string" required:"true"`
  27182. // The ID of the virtual private gateway.
  27183. //
  27184. // VpnGatewayId is a required field
  27185. VpnGatewayId *string `type:"string" required:"true"`
  27186. }
  27187. // String returns the string representation
  27188. func (s CreateVpnConnectionInput) String() string {
  27189. return awsutil.Prettify(s)
  27190. }
  27191. // GoString returns the string representation
  27192. func (s CreateVpnConnectionInput) GoString() string {
  27193. return s.String()
  27194. }
  27195. // Validate inspects the fields of the type to determine if they are valid.
  27196. func (s *CreateVpnConnectionInput) Validate() error {
  27197. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionInput"}
  27198. if s.CustomerGatewayId == nil {
  27199. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  27200. }
  27201. if s.Type == nil {
  27202. invalidParams.Add(request.NewErrParamRequired("Type"))
  27203. }
  27204. if s.VpnGatewayId == nil {
  27205. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  27206. }
  27207. if invalidParams.Len() > 0 {
  27208. return invalidParams
  27209. }
  27210. return nil
  27211. }
  27212. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  27213. func (s *CreateVpnConnectionInput) SetCustomerGatewayId(v string) *CreateVpnConnectionInput {
  27214. s.CustomerGatewayId = &v
  27215. return s
  27216. }
  27217. // SetDryRun sets the DryRun field's value.
  27218. func (s *CreateVpnConnectionInput) SetDryRun(v bool) *CreateVpnConnectionInput {
  27219. s.DryRun = &v
  27220. return s
  27221. }
  27222. // SetOptions sets the Options field's value.
  27223. func (s *CreateVpnConnectionInput) SetOptions(v *VpnConnectionOptionsSpecification) *CreateVpnConnectionInput {
  27224. s.Options = v
  27225. return s
  27226. }
  27227. // SetType sets the Type field's value.
  27228. func (s *CreateVpnConnectionInput) SetType(v string) *CreateVpnConnectionInput {
  27229. s.Type = &v
  27230. return s
  27231. }
  27232. // SetVpnGatewayId sets the VpnGatewayId field's value.
  27233. func (s *CreateVpnConnectionInput) SetVpnGatewayId(v string) *CreateVpnConnectionInput {
  27234. s.VpnGatewayId = &v
  27235. return s
  27236. }
  27237. // Contains the output of CreateVpnConnection.
  27238. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionResult
  27239. type CreateVpnConnectionOutput struct {
  27240. _ struct{} `type:"structure"`
  27241. // Information about the VPN connection.
  27242. VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
  27243. }
  27244. // String returns the string representation
  27245. func (s CreateVpnConnectionOutput) String() string {
  27246. return awsutil.Prettify(s)
  27247. }
  27248. // GoString returns the string representation
  27249. func (s CreateVpnConnectionOutput) GoString() string {
  27250. return s.String()
  27251. }
  27252. // SetVpnConnection sets the VpnConnection field's value.
  27253. func (s *CreateVpnConnectionOutput) SetVpnConnection(v *VpnConnection) *CreateVpnConnectionOutput {
  27254. s.VpnConnection = v
  27255. return s
  27256. }
  27257. // Contains the parameters for CreateVpnConnectionRoute.
  27258. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRouteRequest
  27259. type CreateVpnConnectionRouteInput struct {
  27260. _ struct{} `type:"structure"`
  27261. // The CIDR block associated with the local subnet of the customer network.
  27262. //
  27263. // DestinationCidrBlock is a required field
  27264. DestinationCidrBlock *string `type:"string" required:"true"`
  27265. // The ID of the VPN connection.
  27266. //
  27267. // VpnConnectionId is a required field
  27268. VpnConnectionId *string `type:"string" required:"true"`
  27269. }
  27270. // String returns the string representation
  27271. func (s CreateVpnConnectionRouteInput) String() string {
  27272. return awsutil.Prettify(s)
  27273. }
  27274. // GoString returns the string representation
  27275. func (s CreateVpnConnectionRouteInput) GoString() string {
  27276. return s.String()
  27277. }
  27278. // Validate inspects the fields of the type to determine if they are valid.
  27279. func (s *CreateVpnConnectionRouteInput) Validate() error {
  27280. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionRouteInput"}
  27281. if s.DestinationCidrBlock == nil {
  27282. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  27283. }
  27284. if s.VpnConnectionId == nil {
  27285. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  27286. }
  27287. if invalidParams.Len() > 0 {
  27288. return invalidParams
  27289. }
  27290. return nil
  27291. }
  27292. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  27293. func (s *CreateVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *CreateVpnConnectionRouteInput {
  27294. s.DestinationCidrBlock = &v
  27295. return s
  27296. }
  27297. // SetVpnConnectionId sets the VpnConnectionId field's value.
  27298. func (s *CreateVpnConnectionRouteInput) SetVpnConnectionId(v string) *CreateVpnConnectionRouteInput {
  27299. s.VpnConnectionId = &v
  27300. return s
  27301. }
  27302. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRouteOutput
  27303. type CreateVpnConnectionRouteOutput struct {
  27304. _ struct{} `type:"structure"`
  27305. }
  27306. // String returns the string representation
  27307. func (s CreateVpnConnectionRouteOutput) String() string {
  27308. return awsutil.Prettify(s)
  27309. }
  27310. // GoString returns the string representation
  27311. func (s CreateVpnConnectionRouteOutput) GoString() string {
  27312. return s.String()
  27313. }
  27314. // Contains the parameters for CreateVpnGateway.
  27315. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGatewayRequest
  27316. type CreateVpnGatewayInput struct {
  27317. _ struct{} `type:"structure"`
  27318. // A private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  27319. // If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If
  27320. // you're using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range.
  27321. //
  27322. // Default: 64512
  27323. AmazonSideAsn *int64 `type:"long"`
  27324. // The Availability Zone for the virtual private gateway.
  27325. AvailabilityZone *string `type:"string"`
  27326. // Checks whether you have the required permissions for the action, without
  27327. // actually making the request, and provides an error response. If you have
  27328. // the required permissions, the error response is DryRunOperation. Otherwise,
  27329. // it is UnauthorizedOperation.
  27330. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27331. // The type of VPN connection this virtual private gateway supports.
  27332. //
  27333. // Type is a required field
  27334. Type *string `type:"string" required:"true" enum:"GatewayType"`
  27335. }
  27336. // String returns the string representation
  27337. func (s CreateVpnGatewayInput) String() string {
  27338. return awsutil.Prettify(s)
  27339. }
  27340. // GoString returns the string representation
  27341. func (s CreateVpnGatewayInput) GoString() string {
  27342. return s.String()
  27343. }
  27344. // Validate inspects the fields of the type to determine if they are valid.
  27345. func (s *CreateVpnGatewayInput) Validate() error {
  27346. invalidParams := request.ErrInvalidParams{Context: "CreateVpnGatewayInput"}
  27347. if s.Type == nil {
  27348. invalidParams.Add(request.NewErrParamRequired("Type"))
  27349. }
  27350. if invalidParams.Len() > 0 {
  27351. return invalidParams
  27352. }
  27353. return nil
  27354. }
  27355. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  27356. func (s *CreateVpnGatewayInput) SetAmazonSideAsn(v int64) *CreateVpnGatewayInput {
  27357. s.AmazonSideAsn = &v
  27358. return s
  27359. }
  27360. // SetAvailabilityZone sets the AvailabilityZone field's value.
  27361. func (s *CreateVpnGatewayInput) SetAvailabilityZone(v string) *CreateVpnGatewayInput {
  27362. s.AvailabilityZone = &v
  27363. return s
  27364. }
  27365. // SetDryRun sets the DryRun field's value.
  27366. func (s *CreateVpnGatewayInput) SetDryRun(v bool) *CreateVpnGatewayInput {
  27367. s.DryRun = &v
  27368. return s
  27369. }
  27370. // SetType sets the Type field's value.
  27371. func (s *CreateVpnGatewayInput) SetType(v string) *CreateVpnGatewayInput {
  27372. s.Type = &v
  27373. return s
  27374. }
  27375. // Contains the output of CreateVpnGateway.
  27376. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnGatewayResult
  27377. type CreateVpnGatewayOutput struct {
  27378. _ struct{} `type:"structure"`
  27379. // Information about the virtual private gateway.
  27380. VpnGateway *VpnGateway `locationName:"vpnGateway" type:"structure"`
  27381. }
  27382. // String returns the string representation
  27383. func (s CreateVpnGatewayOutput) String() string {
  27384. return awsutil.Prettify(s)
  27385. }
  27386. // GoString returns the string representation
  27387. func (s CreateVpnGatewayOutput) GoString() string {
  27388. return s.String()
  27389. }
  27390. // SetVpnGateway sets the VpnGateway field's value.
  27391. func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayOutput {
  27392. s.VpnGateway = v
  27393. return s
  27394. }
  27395. // Describes the credit option for CPU usage of a T2 instance.
  27396. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreditSpecification
  27397. type CreditSpecification struct {
  27398. _ struct{} `type:"structure"`
  27399. // The credit option for CPU usage of a T2 instance.
  27400. CpuCredits *string `locationName:"cpuCredits" type:"string"`
  27401. }
  27402. // String returns the string representation
  27403. func (s CreditSpecification) String() string {
  27404. return awsutil.Prettify(s)
  27405. }
  27406. // GoString returns the string representation
  27407. func (s CreditSpecification) GoString() string {
  27408. return s.String()
  27409. }
  27410. // SetCpuCredits sets the CpuCredits field's value.
  27411. func (s *CreditSpecification) SetCpuCredits(v string) *CreditSpecification {
  27412. s.CpuCredits = &v
  27413. return s
  27414. }
  27415. // The credit option for CPU usage of a T2 instance.
  27416. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreditSpecificationRequest
  27417. type CreditSpecificationRequest struct {
  27418. _ struct{} `type:"structure"`
  27419. // The credit option for CPU usage of a T2 instance. Valid values are standard
  27420. // and unlimited.
  27421. //
  27422. // CpuCredits is a required field
  27423. CpuCredits *string `type:"string" required:"true"`
  27424. }
  27425. // String returns the string representation
  27426. func (s CreditSpecificationRequest) String() string {
  27427. return awsutil.Prettify(s)
  27428. }
  27429. // GoString returns the string representation
  27430. func (s CreditSpecificationRequest) GoString() string {
  27431. return s.String()
  27432. }
  27433. // Validate inspects the fields of the type to determine if they are valid.
  27434. func (s *CreditSpecificationRequest) Validate() error {
  27435. invalidParams := request.ErrInvalidParams{Context: "CreditSpecificationRequest"}
  27436. if s.CpuCredits == nil {
  27437. invalidParams.Add(request.NewErrParamRequired("CpuCredits"))
  27438. }
  27439. if invalidParams.Len() > 0 {
  27440. return invalidParams
  27441. }
  27442. return nil
  27443. }
  27444. // SetCpuCredits sets the CpuCredits field's value.
  27445. func (s *CreditSpecificationRequest) SetCpuCredits(v string) *CreditSpecificationRequest {
  27446. s.CpuCredits = &v
  27447. return s
  27448. }
  27449. // Describes a customer gateway.
  27450. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CustomerGateway
  27451. type CustomerGateway struct {
  27452. _ struct{} `type:"structure"`
  27453. // The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number
  27454. // (ASN).
  27455. BgpAsn *string `locationName:"bgpAsn" type:"string"`
  27456. // The ID of the customer gateway.
  27457. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  27458. // The Internet-routable IP address of the customer gateway's outside interface.
  27459. IpAddress *string `locationName:"ipAddress" type:"string"`
  27460. // The current state of the customer gateway (pending | available | deleting
  27461. // | deleted).
  27462. State *string `locationName:"state" type:"string"`
  27463. // Any tags assigned to the customer gateway.
  27464. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  27465. // The type of VPN connection the customer gateway supports (ipsec.1).
  27466. Type *string `locationName:"type" type:"string"`
  27467. }
  27468. // String returns the string representation
  27469. func (s CustomerGateway) String() string {
  27470. return awsutil.Prettify(s)
  27471. }
  27472. // GoString returns the string representation
  27473. func (s CustomerGateway) GoString() string {
  27474. return s.String()
  27475. }
  27476. // SetBgpAsn sets the BgpAsn field's value.
  27477. func (s *CustomerGateway) SetBgpAsn(v string) *CustomerGateway {
  27478. s.BgpAsn = &v
  27479. return s
  27480. }
  27481. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  27482. func (s *CustomerGateway) SetCustomerGatewayId(v string) *CustomerGateway {
  27483. s.CustomerGatewayId = &v
  27484. return s
  27485. }
  27486. // SetIpAddress sets the IpAddress field's value.
  27487. func (s *CustomerGateway) SetIpAddress(v string) *CustomerGateway {
  27488. s.IpAddress = &v
  27489. return s
  27490. }
  27491. // SetState sets the State field's value.
  27492. func (s *CustomerGateway) SetState(v string) *CustomerGateway {
  27493. s.State = &v
  27494. return s
  27495. }
  27496. // SetTags sets the Tags field's value.
  27497. func (s *CustomerGateway) SetTags(v []*Tag) *CustomerGateway {
  27498. s.Tags = v
  27499. return s
  27500. }
  27501. // SetType sets the Type field's value.
  27502. func (s *CustomerGateway) SetType(v string) *CustomerGateway {
  27503. s.Type = &v
  27504. return s
  27505. }
  27506. // Contains the parameters for DeleteCustomerGateway.
  27507. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGatewayRequest
  27508. type DeleteCustomerGatewayInput struct {
  27509. _ struct{} `type:"structure"`
  27510. // The ID of the customer gateway.
  27511. //
  27512. // CustomerGatewayId is a required field
  27513. CustomerGatewayId *string `type:"string" required:"true"`
  27514. // Checks whether you have the required permissions for the action, without
  27515. // actually making the request, and provides an error response. If you have
  27516. // the required permissions, the error response is DryRunOperation. Otherwise,
  27517. // it is UnauthorizedOperation.
  27518. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27519. }
  27520. // String returns the string representation
  27521. func (s DeleteCustomerGatewayInput) String() string {
  27522. return awsutil.Prettify(s)
  27523. }
  27524. // GoString returns the string representation
  27525. func (s DeleteCustomerGatewayInput) GoString() string {
  27526. return s.String()
  27527. }
  27528. // Validate inspects the fields of the type to determine if they are valid.
  27529. func (s *DeleteCustomerGatewayInput) Validate() error {
  27530. invalidParams := request.ErrInvalidParams{Context: "DeleteCustomerGatewayInput"}
  27531. if s.CustomerGatewayId == nil {
  27532. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  27533. }
  27534. if invalidParams.Len() > 0 {
  27535. return invalidParams
  27536. }
  27537. return nil
  27538. }
  27539. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  27540. func (s *DeleteCustomerGatewayInput) SetCustomerGatewayId(v string) *DeleteCustomerGatewayInput {
  27541. s.CustomerGatewayId = &v
  27542. return s
  27543. }
  27544. // SetDryRun sets the DryRun field's value.
  27545. func (s *DeleteCustomerGatewayInput) SetDryRun(v bool) *DeleteCustomerGatewayInput {
  27546. s.DryRun = &v
  27547. return s
  27548. }
  27549. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteCustomerGatewayOutput
  27550. type DeleteCustomerGatewayOutput struct {
  27551. _ struct{} `type:"structure"`
  27552. }
  27553. // String returns the string representation
  27554. func (s DeleteCustomerGatewayOutput) String() string {
  27555. return awsutil.Prettify(s)
  27556. }
  27557. // GoString returns the string representation
  27558. func (s DeleteCustomerGatewayOutput) GoString() string {
  27559. return s.String()
  27560. }
  27561. // Contains the parameters for DeleteDhcpOptions.
  27562. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptionsRequest
  27563. type DeleteDhcpOptionsInput struct {
  27564. _ struct{} `type:"structure"`
  27565. // The ID of the DHCP options set.
  27566. //
  27567. // DhcpOptionsId is a required field
  27568. DhcpOptionsId *string `type:"string" required:"true"`
  27569. // Checks whether you have the required permissions for the action, without
  27570. // actually making the request, and provides an error response. If you have
  27571. // the required permissions, the error response is DryRunOperation. Otherwise,
  27572. // it is UnauthorizedOperation.
  27573. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27574. }
  27575. // String returns the string representation
  27576. func (s DeleteDhcpOptionsInput) String() string {
  27577. return awsutil.Prettify(s)
  27578. }
  27579. // GoString returns the string representation
  27580. func (s DeleteDhcpOptionsInput) GoString() string {
  27581. return s.String()
  27582. }
  27583. // Validate inspects the fields of the type to determine if they are valid.
  27584. func (s *DeleteDhcpOptionsInput) Validate() error {
  27585. invalidParams := request.ErrInvalidParams{Context: "DeleteDhcpOptionsInput"}
  27586. if s.DhcpOptionsId == nil {
  27587. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  27588. }
  27589. if invalidParams.Len() > 0 {
  27590. return invalidParams
  27591. }
  27592. return nil
  27593. }
  27594. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  27595. func (s *DeleteDhcpOptionsInput) SetDhcpOptionsId(v string) *DeleteDhcpOptionsInput {
  27596. s.DhcpOptionsId = &v
  27597. return s
  27598. }
  27599. // SetDryRun sets the DryRun field's value.
  27600. func (s *DeleteDhcpOptionsInput) SetDryRun(v bool) *DeleteDhcpOptionsInput {
  27601. s.DryRun = &v
  27602. return s
  27603. }
  27604. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteDhcpOptionsOutput
  27605. type DeleteDhcpOptionsOutput struct {
  27606. _ struct{} `type:"structure"`
  27607. }
  27608. // String returns the string representation
  27609. func (s DeleteDhcpOptionsOutput) String() string {
  27610. return awsutil.Prettify(s)
  27611. }
  27612. // GoString returns the string representation
  27613. func (s DeleteDhcpOptionsOutput) GoString() string {
  27614. return s.String()
  27615. }
  27616. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGatewayRequest
  27617. type DeleteEgressOnlyInternetGatewayInput struct {
  27618. _ struct{} `type:"structure"`
  27619. // Checks whether you have the required permissions for the action, without
  27620. // actually making the request, and provides an error response. If you have
  27621. // the required permissions, the error response is DryRunOperation. Otherwise,
  27622. // it is UnauthorizedOperation.
  27623. DryRun *bool `type:"boolean"`
  27624. // The ID of the egress-only Internet gateway.
  27625. //
  27626. // EgressOnlyInternetGatewayId is a required field
  27627. EgressOnlyInternetGatewayId *string `type:"string" required:"true"`
  27628. }
  27629. // String returns the string representation
  27630. func (s DeleteEgressOnlyInternetGatewayInput) String() string {
  27631. return awsutil.Prettify(s)
  27632. }
  27633. // GoString returns the string representation
  27634. func (s DeleteEgressOnlyInternetGatewayInput) GoString() string {
  27635. return s.String()
  27636. }
  27637. // Validate inspects the fields of the type to determine if they are valid.
  27638. func (s *DeleteEgressOnlyInternetGatewayInput) Validate() error {
  27639. invalidParams := request.ErrInvalidParams{Context: "DeleteEgressOnlyInternetGatewayInput"}
  27640. if s.EgressOnlyInternetGatewayId == nil {
  27641. invalidParams.Add(request.NewErrParamRequired("EgressOnlyInternetGatewayId"))
  27642. }
  27643. if invalidParams.Len() > 0 {
  27644. return invalidParams
  27645. }
  27646. return nil
  27647. }
  27648. // SetDryRun sets the DryRun field's value.
  27649. func (s *DeleteEgressOnlyInternetGatewayInput) SetDryRun(v bool) *DeleteEgressOnlyInternetGatewayInput {
  27650. s.DryRun = &v
  27651. return s
  27652. }
  27653. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  27654. func (s *DeleteEgressOnlyInternetGatewayInput) SetEgressOnlyInternetGatewayId(v string) *DeleteEgressOnlyInternetGatewayInput {
  27655. s.EgressOnlyInternetGatewayId = &v
  27656. return s
  27657. }
  27658. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteEgressOnlyInternetGatewayResult
  27659. type DeleteEgressOnlyInternetGatewayOutput struct {
  27660. _ struct{} `type:"structure"`
  27661. // Returns true if the request succeeds; otherwise, it returns an error.
  27662. ReturnCode *bool `locationName:"returnCode" type:"boolean"`
  27663. }
  27664. // String returns the string representation
  27665. func (s DeleteEgressOnlyInternetGatewayOutput) String() string {
  27666. return awsutil.Prettify(s)
  27667. }
  27668. // GoString returns the string representation
  27669. func (s DeleteEgressOnlyInternetGatewayOutput) GoString() string {
  27670. return s.String()
  27671. }
  27672. // SetReturnCode sets the ReturnCode field's value.
  27673. func (s *DeleteEgressOnlyInternetGatewayOutput) SetReturnCode(v bool) *DeleteEgressOnlyInternetGatewayOutput {
  27674. s.ReturnCode = &v
  27675. return s
  27676. }
  27677. // Contains the parameters for DeleteFlowLogs.
  27678. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogsRequest
  27679. type DeleteFlowLogsInput struct {
  27680. _ struct{} `type:"structure"`
  27681. // One or more flow log IDs.
  27682. //
  27683. // FlowLogIds is a required field
  27684. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list" required:"true"`
  27685. }
  27686. // String returns the string representation
  27687. func (s DeleteFlowLogsInput) String() string {
  27688. return awsutil.Prettify(s)
  27689. }
  27690. // GoString returns the string representation
  27691. func (s DeleteFlowLogsInput) GoString() string {
  27692. return s.String()
  27693. }
  27694. // Validate inspects the fields of the type to determine if they are valid.
  27695. func (s *DeleteFlowLogsInput) Validate() error {
  27696. invalidParams := request.ErrInvalidParams{Context: "DeleteFlowLogsInput"}
  27697. if s.FlowLogIds == nil {
  27698. invalidParams.Add(request.NewErrParamRequired("FlowLogIds"))
  27699. }
  27700. if invalidParams.Len() > 0 {
  27701. return invalidParams
  27702. }
  27703. return nil
  27704. }
  27705. // SetFlowLogIds sets the FlowLogIds field's value.
  27706. func (s *DeleteFlowLogsInput) SetFlowLogIds(v []*string) *DeleteFlowLogsInput {
  27707. s.FlowLogIds = v
  27708. return s
  27709. }
  27710. // Contains the output of DeleteFlowLogs.
  27711. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFlowLogsResult
  27712. type DeleteFlowLogsOutput struct {
  27713. _ struct{} `type:"structure"`
  27714. // Information about the flow logs that could not be deleted successfully.
  27715. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  27716. }
  27717. // String returns the string representation
  27718. func (s DeleteFlowLogsOutput) String() string {
  27719. return awsutil.Prettify(s)
  27720. }
  27721. // GoString returns the string representation
  27722. func (s DeleteFlowLogsOutput) GoString() string {
  27723. return s.String()
  27724. }
  27725. // SetUnsuccessful sets the Unsuccessful field's value.
  27726. func (s *DeleteFlowLogsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteFlowLogsOutput {
  27727. s.Unsuccessful = v
  27728. return s
  27729. }
  27730. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImageRequest
  27731. type DeleteFpgaImageInput struct {
  27732. _ struct{} `type:"structure"`
  27733. // Checks whether you have the required permissions for the action, without
  27734. // actually making the request, and provides an error response. If you have
  27735. // the required permissions, the error response is DryRunOperation. Otherwise,
  27736. // it is UnauthorizedOperation.
  27737. DryRun *bool `type:"boolean"`
  27738. // The ID of the AFI.
  27739. //
  27740. // FpgaImageId is a required field
  27741. FpgaImageId *string `type:"string" required:"true"`
  27742. }
  27743. // String returns the string representation
  27744. func (s DeleteFpgaImageInput) String() string {
  27745. return awsutil.Prettify(s)
  27746. }
  27747. // GoString returns the string representation
  27748. func (s DeleteFpgaImageInput) GoString() string {
  27749. return s.String()
  27750. }
  27751. // Validate inspects the fields of the type to determine if they are valid.
  27752. func (s *DeleteFpgaImageInput) Validate() error {
  27753. invalidParams := request.ErrInvalidParams{Context: "DeleteFpgaImageInput"}
  27754. if s.FpgaImageId == nil {
  27755. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  27756. }
  27757. if invalidParams.Len() > 0 {
  27758. return invalidParams
  27759. }
  27760. return nil
  27761. }
  27762. // SetDryRun sets the DryRun field's value.
  27763. func (s *DeleteFpgaImageInput) SetDryRun(v bool) *DeleteFpgaImageInput {
  27764. s.DryRun = &v
  27765. return s
  27766. }
  27767. // SetFpgaImageId sets the FpgaImageId field's value.
  27768. func (s *DeleteFpgaImageInput) SetFpgaImageId(v string) *DeleteFpgaImageInput {
  27769. s.FpgaImageId = &v
  27770. return s
  27771. }
  27772. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFpgaImageResult
  27773. type DeleteFpgaImageOutput struct {
  27774. _ struct{} `type:"structure"`
  27775. // Is true if the request succeeds, and an error otherwise.
  27776. Return *bool `locationName:"return" type:"boolean"`
  27777. }
  27778. // String returns the string representation
  27779. func (s DeleteFpgaImageOutput) String() string {
  27780. return awsutil.Prettify(s)
  27781. }
  27782. // GoString returns the string representation
  27783. func (s DeleteFpgaImageOutput) GoString() string {
  27784. return s.String()
  27785. }
  27786. // SetReturn sets the Return field's value.
  27787. func (s *DeleteFpgaImageOutput) SetReturn(v bool) *DeleteFpgaImageOutput {
  27788. s.Return = &v
  27789. return s
  27790. }
  27791. // Contains the parameters for DeleteInternetGateway.
  27792. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGatewayRequest
  27793. type DeleteInternetGatewayInput struct {
  27794. _ struct{} `type:"structure"`
  27795. // Checks whether you have the required permissions for the action, without
  27796. // actually making the request, and provides an error response. If you have
  27797. // the required permissions, the error response is DryRunOperation. Otherwise,
  27798. // it is UnauthorizedOperation.
  27799. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27800. // The ID of the Internet gateway.
  27801. //
  27802. // InternetGatewayId is a required field
  27803. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  27804. }
  27805. // String returns the string representation
  27806. func (s DeleteInternetGatewayInput) String() string {
  27807. return awsutil.Prettify(s)
  27808. }
  27809. // GoString returns the string representation
  27810. func (s DeleteInternetGatewayInput) GoString() string {
  27811. return s.String()
  27812. }
  27813. // Validate inspects the fields of the type to determine if they are valid.
  27814. func (s *DeleteInternetGatewayInput) Validate() error {
  27815. invalidParams := request.ErrInvalidParams{Context: "DeleteInternetGatewayInput"}
  27816. if s.InternetGatewayId == nil {
  27817. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  27818. }
  27819. if invalidParams.Len() > 0 {
  27820. return invalidParams
  27821. }
  27822. return nil
  27823. }
  27824. // SetDryRun sets the DryRun field's value.
  27825. func (s *DeleteInternetGatewayInput) SetDryRun(v bool) *DeleteInternetGatewayInput {
  27826. s.DryRun = &v
  27827. return s
  27828. }
  27829. // SetInternetGatewayId sets the InternetGatewayId field's value.
  27830. func (s *DeleteInternetGatewayInput) SetInternetGatewayId(v string) *DeleteInternetGatewayInput {
  27831. s.InternetGatewayId = &v
  27832. return s
  27833. }
  27834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteInternetGatewayOutput
  27835. type DeleteInternetGatewayOutput struct {
  27836. _ struct{} `type:"structure"`
  27837. }
  27838. // String returns the string representation
  27839. func (s DeleteInternetGatewayOutput) String() string {
  27840. return awsutil.Prettify(s)
  27841. }
  27842. // GoString returns the string representation
  27843. func (s DeleteInternetGatewayOutput) GoString() string {
  27844. return s.String()
  27845. }
  27846. // Contains the parameters for DeleteKeyPair.
  27847. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPairRequest
  27848. type DeleteKeyPairInput struct {
  27849. _ struct{} `type:"structure"`
  27850. // Checks whether you have the required permissions for the action, without
  27851. // actually making the request, and provides an error response. If you have
  27852. // the required permissions, the error response is DryRunOperation. Otherwise,
  27853. // it is UnauthorizedOperation.
  27854. DryRun *bool `locationName:"dryRun" type:"boolean"`
  27855. // The name of the key pair.
  27856. //
  27857. // KeyName is a required field
  27858. KeyName *string `type:"string" required:"true"`
  27859. }
  27860. // String returns the string representation
  27861. func (s DeleteKeyPairInput) String() string {
  27862. return awsutil.Prettify(s)
  27863. }
  27864. // GoString returns the string representation
  27865. func (s DeleteKeyPairInput) GoString() string {
  27866. return s.String()
  27867. }
  27868. // Validate inspects the fields of the type to determine if they are valid.
  27869. func (s *DeleteKeyPairInput) Validate() error {
  27870. invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"}
  27871. if s.KeyName == nil {
  27872. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  27873. }
  27874. if invalidParams.Len() > 0 {
  27875. return invalidParams
  27876. }
  27877. return nil
  27878. }
  27879. // SetDryRun sets the DryRun field's value.
  27880. func (s *DeleteKeyPairInput) SetDryRun(v bool) *DeleteKeyPairInput {
  27881. s.DryRun = &v
  27882. return s
  27883. }
  27884. // SetKeyName sets the KeyName field's value.
  27885. func (s *DeleteKeyPairInput) SetKeyName(v string) *DeleteKeyPairInput {
  27886. s.KeyName = &v
  27887. return s
  27888. }
  27889. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPairOutput
  27890. type DeleteKeyPairOutput struct {
  27891. _ struct{} `type:"structure"`
  27892. }
  27893. // String returns the string representation
  27894. func (s DeleteKeyPairOutput) String() string {
  27895. return awsutil.Prettify(s)
  27896. }
  27897. // GoString returns the string representation
  27898. func (s DeleteKeyPairOutput) GoString() string {
  27899. return s.String()
  27900. }
  27901. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateRequest
  27902. type DeleteLaunchTemplateInput struct {
  27903. _ struct{} `type:"structure"`
  27904. // Checks whether you have the required permissions for the action, without
  27905. // actually making the request, and provides an error response. If you have
  27906. // the required permissions, the error response is DryRunOperation. Otherwise,
  27907. // it is UnauthorizedOperation.
  27908. DryRun *bool `type:"boolean"`
  27909. // The ID of the launch template. You must specify either the launch template
  27910. // ID or launch template name in the request.
  27911. LaunchTemplateId *string `type:"string"`
  27912. // The name of the launch template. You must specify either the launch template
  27913. // ID or launch template name in the request.
  27914. LaunchTemplateName *string `min:"3" type:"string"`
  27915. }
  27916. // String returns the string representation
  27917. func (s DeleteLaunchTemplateInput) String() string {
  27918. return awsutil.Prettify(s)
  27919. }
  27920. // GoString returns the string representation
  27921. func (s DeleteLaunchTemplateInput) GoString() string {
  27922. return s.String()
  27923. }
  27924. // Validate inspects the fields of the type to determine if they are valid.
  27925. func (s *DeleteLaunchTemplateInput) Validate() error {
  27926. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateInput"}
  27927. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  27928. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  27929. }
  27930. if invalidParams.Len() > 0 {
  27931. return invalidParams
  27932. }
  27933. return nil
  27934. }
  27935. // SetDryRun sets the DryRun field's value.
  27936. func (s *DeleteLaunchTemplateInput) SetDryRun(v bool) *DeleteLaunchTemplateInput {
  27937. s.DryRun = &v
  27938. return s
  27939. }
  27940. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  27941. func (s *DeleteLaunchTemplateInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateInput {
  27942. s.LaunchTemplateId = &v
  27943. return s
  27944. }
  27945. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  27946. func (s *DeleteLaunchTemplateInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateInput {
  27947. s.LaunchTemplateName = &v
  27948. return s
  27949. }
  27950. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateResult
  27951. type DeleteLaunchTemplateOutput struct {
  27952. _ struct{} `type:"structure"`
  27953. // Information about the launch template.
  27954. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  27955. }
  27956. // String returns the string representation
  27957. func (s DeleteLaunchTemplateOutput) String() string {
  27958. return awsutil.Prettify(s)
  27959. }
  27960. // GoString returns the string representation
  27961. func (s DeleteLaunchTemplateOutput) GoString() string {
  27962. return s.String()
  27963. }
  27964. // SetLaunchTemplate sets the LaunchTemplate field's value.
  27965. func (s *DeleteLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *DeleteLaunchTemplateOutput {
  27966. s.LaunchTemplate = v
  27967. return s
  27968. }
  27969. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersionsRequest
  27970. type DeleteLaunchTemplateVersionsInput struct {
  27971. _ struct{} `type:"structure"`
  27972. // Checks whether you have the required permissions for the action, without
  27973. // actually making the request, and provides an error response. If you have
  27974. // the required permissions, the error response is DryRunOperation. Otherwise,
  27975. // it is UnauthorizedOperation.
  27976. DryRun *bool `type:"boolean"`
  27977. // The ID of the launch template. You must specify either the launch template
  27978. // ID or launch template name in the request.
  27979. LaunchTemplateId *string `type:"string"`
  27980. // The name of the launch template. You must specify either the launch template
  27981. // ID or launch template name in the request.
  27982. LaunchTemplateName *string `min:"3" type:"string"`
  27983. // The version numbers of one or more launch template versions to delete.
  27984. //
  27985. // Versions is a required field
  27986. Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list" required:"true"`
  27987. }
  27988. // String returns the string representation
  27989. func (s DeleteLaunchTemplateVersionsInput) String() string {
  27990. return awsutil.Prettify(s)
  27991. }
  27992. // GoString returns the string representation
  27993. func (s DeleteLaunchTemplateVersionsInput) GoString() string {
  27994. return s.String()
  27995. }
  27996. // Validate inspects the fields of the type to determine if they are valid.
  27997. func (s *DeleteLaunchTemplateVersionsInput) Validate() error {
  27998. invalidParams := request.ErrInvalidParams{Context: "DeleteLaunchTemplateVersionsInput"}
  27999. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  28000. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  28001. }
  28002. if s.Versions == nil {
  28003. invalidParams.Add(request.NewErrParamRequired("Versions"))
  28004. }
  28005. if invalidParams.Len() > 0 {
  28006. return invalidParams
  28007. }
  28008. return nil
  28009. }
  28010. // SetDryRun sets the DryRun field's value.
  28011. func (s *DeleteLaunchTemplateVersionsInput) SetDryRun(v bool) *DeleteLaunchTemplateVersionsInput {
  28012. s.DryRun = &v
  28013. return s
  28014. }
  28015. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  28016. func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsInput {
  28017. s.LaunchTemplateId = &v
  28018. return s
  28019. }
  28020. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  28021. func (s *DeleteLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsInput {
  28022. s.LaunchTemplateName = &v
  28023. return s
  28024. }
  28025. // SetVersions sets the Versions field's value.
  28026. func (s *DeleteLaunchTemplateVersionsInput) SetVersions(v []*string) *DeleteLaunchTemplateVersionsInput {
  28027. s.Versions = v
  28028. return s
  28029. }
  28030. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersionsResult
  28031. type DeleteLaunchTemplateVersionsOutput struct {
  28032. _ struct{} `type:"structure"`
  28033. // Information about the launch template versions that were successfully deleted.
  28034. SuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseSuccessItem `locationName:"successfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
  28035. // Information about the launch template versions that could not be deleted.
  28036. UnsuccessfullyDeletedLaunchTemplateVersions []*DeleteLaunchTemplateVersionsResponseErrorItem `locationName:"unsuccessfullyDeletedLaunchTemplateVersionSet" locationNameList:"item" type:"list"`
  28037. }
  28038. // String returns the string representation
  28039. func (s DeleteLaunchTemplateVersionsOutput) String() string {
  28040. return awsutil.Prettify(s)
  28041. }
  28042. // GoString returns the string representation
  28043. func (s DeleteLaunchTemplateVersionsOutput) GoString() string {
  28044. return s.String()
  28045. }
  28046. // SetSuccessfullyDeletedLaunchTemplateVersions sets the SuccessfullyDeletedLaunchTemplateVersions field's value.
  28047. func (s *DeleteLaunchTemplateVersionsOutput) SetSuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseSuccessItem) *DeleteLaunchTemplateVersionsOutput {
  28048. s.SuccessfullyDeletedLaunchTemplateVersions = v
  28049. return s
  28050. }
  28051. // SetUnsuccessfullyDeletedLaunchTemplateVersions sets the UnsuccessfullyDeletedLaunchTemplateVersions field's value.
  28052. func (s *DeleteLaunchTemplateVersionsOutput) SetUnsuccessfullyDeletedLaunchTemplateVersions(v []*DeleteLaunchTemplateVersionsResponseErrorItem) *DeleteLaunchTemplateVersionsOutput {
  28053. s.UnsuccessfullyDeletedLaunchTemplateVersions = v
  28054. return s
  28055. }
  28056. // Describes a launch template version that could not be deleted.
  28057. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersionsResponseErrorItem
  28058. type DeleteLaunchTemplateVersionsResponseErrorItem struct {
  28059. _ struct{} `type:"structure"`
  28060. // The ID of the launch template.
  28061. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  28062. // The name of the launch template.
  28063. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`
  28064. // Information about the error.
  28065. ResponseError *ResponseError `locationName:"responseError" type:"structure"`
  28066. // The version number of the launch template.
  28067. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  28068. }
  28069. // String returns the string representation
  28070. func (s DeleteLaunchTemplateVersionsResponseErrorItem) String() string {
  28071. return awsutil.Prettify(s)
  28072. }
  28073. // GoString returns the string representation
  28074. func (s DeleteLaunchTemplateVersionsResponseErrorItem) GoString() string {
  28075. return s.String()
  28076. }
  28077. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  28078. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseErrorItem {
  28079. s.LaunchTemplateId = &v
  28080. return s
  28081. }
  28082. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  28083. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseErrorItem {
  28084. s.LaunchTemplateName = &v
  28085. return s
  28086. }
  28087. // SetResponseError sets the ResponseError field's value.
  28088. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetResponseError(v *ResponseError) *DeleteLaunchTemplateVersionsResponseErrorItem {
  28089. s.ResponseError = v
  28090. return s
  28091. }
  28092. // SetVersionNumber sets the VersionNumber field's value.
  28093. func (s *DeleteLaunchTemplateVersionsResponseErrorItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseErrorItem {
  28094. s.VersionNumber = &v
  28095. return s
  28096. }
  28097. // Describes a launch template version that was successfully deleted.
  28098. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateVersionsResponseSuccessItem
  28099. type DeleteLaunchTemplateVersionsResponseSuccessItem struct {
  28100. _ struct{} `type:"structure"`
  28101. // The ID of the launch template.
  28102. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  28103. // The name of the launch template.
  28104. LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"`
  28105. // The version number of the launch template.
  28106. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  28107. }
  28108. // String returns the string representation
  28109. func (s DeleteLaunchTemplateVersionsResponseSuccessItem) String() string {
  28110. return awsutil.Prettify(s)
  28111. }
  28112. // GoString returns the string representation
  28113. func (s DeleteLaunchTemplateVersionsResponseSuccessItem) GoString() string {
  28114. return s.String()
  28115. }
  28116. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  28117. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateId(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  28118. s.LaunchTemplateId = &v
  28119. return s
  28120. }
  28121. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  28122. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetLaunchTemplateName(v string) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  28123. s.LaunchTemplateName = &v
  28124. return s
  28125. }
  28126. // SetVersionNumber sets the VersionNumber field's value.
  28127. func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetVersionNumber(v int64) *DeleteLaunchTemplateVersionsResponseSuccessItem {
  28128. s.VersionNumber = &v
  28129. return s
  28130. }
  28131. // Contains the parameters for DeleteNatGateway.
  28132. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGatewayRequest
  28133. type DeleteNatGatewayInput struct {
  28134. _ struct{} `type:"structure"`
  28135. // The ID of the NAT gateway.
  28136. //
  28137. // NatGatewayId is a required field
  28138. NatGatewayId *string `type:"string" required:"true"`
  28139. }
  28140. // String returns the string representation
  28141. func (s DeleteNatGatewayInput) String() string {
  28142. return awsutil.Prettify(s)
  28143. }
  28144. // GoString returns the string representation
  28145. func (s DeleteNatGatewayInput) GoString() string {
  28146. return s.String()
  28147. }
  28148. // Validate inspects the fields of the type to determine if they are valid.
  28149. func (s *DeleteNatGatewayInput) Validate() error {
  28150. invalidParams := request.ErrInvalidParams{Context: "DeleteNatGatewayInput"}
  28151. if s.NatGatewayId == nil {
  28152. invalidParams.Add(request.NewErrParamRequired("NatGatewayId"))
  28153. }
  28154. if invalidParams.Len() > 0 {
  28155. return invalidParams
  28156. }
  28157. return nil
  28158. }
  28159. // SetNatGatewayId sets the NatGatewayId field's value.
  28160. func (s *DeleteNatGatewayInput) SetNatGatewayId(v string) *DeleteNatGatewayInput {
  28161. s.NatGatewayId = &v
  28162. return s
  28163. }
  28164. // Contains the output of DeleteNatGateway.
  28165. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNatGatewayResult
  28166. type DeleteNatGatewayOutput struct {
  28167. _ struct{} `type:"structure"`
  28168. // The ID of the NAT gateway.
  28169. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  28170. }
  28171. // String returns the string representation
  28172. func (s DeleteNatGatewayOutput) String() string {
  28173. return awsutil.Prettify(s)
  28174. }
  28175. // GoString returns the string representation
  28176. func (s DeleteNatGatewayOutput) GoString() string {
  28177. return s.String()
  28178. }
  28179. // SetNatGatewayId sets the NatGatewayId field's value.
  28180. func (s *DeleteNatGatewayOutput) SetNatGatewayId(v string) *DeleteNatGatewayOutput {
  28181. s.NatGatewayId = &v
  28182. return s
  28183. }
  28184. // Contains the parameters for DeleteNetworkAclEntry.
  28185. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntryRequest
  28186. type DeleteNetworkAclEntryInput struct {
  28187. _ struct{} `type:"structure"`
  28188. // Checks whether you have the required permissions for the action, without
  28189. // actually making the request, and provides an error response. If you have
  28190. // the required permissions, the error response is DryRunOperation. Otherwise,
  28191. // it is UnauthorizedOperation.
  28192. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28193. // Indicates whether the rule is an egress rule.
  28194. //
  28195. // Egress is a required field
  28196. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  28197. // The ID of the network ACL.
  28198. //
  28199. // NetworkAclId is a required field
  28200. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  28201. // The rule number of the entry to delete.
  28202. //
  28203. // RuleNumber is a required field
  28204. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  28205. }
  28206. // String returns the string representation
  28207. func (s DeleteNetworkAclEntryInput) String() string {
  28208. return awsutil.Prettify(s)
  28209. }
  28210. // GoString returns the string representation
  28211. func (s DeleteNetworkAclEntryInput) GoString() string {
  28212. return s.String()
  28213. }
  28214. // Validate inspects the fields of the type to determine if they are valid.
  28215. func (s *DeleteNetworkAclEntryInput) Validate() error {
  28216. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclEntryInput"}
  28217. if s.Egress == nil {
  28218. invalidParams.Add(request.NewErrParamRequired("Egress"))
  28219. }
  28220. if s.NetworkAclId == nil {
  28221. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  28222. }
  28223. if s.RuleNumber == nil {
  28224. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  28225. }
  28226. if invalidParams.Len() > 0 {
  28227. return invalidParams
  28228. }
  28229. return nil
  28230. }
  28231. // SetDryRun sets the DryRun field's value.
  28232. func (s *DeleteNetworkAclEntryInput) SetDryRun(v bool) *DeleteNetworkAclEntryInput {
  28233. s.DryRun = &v
  28234. return s
  28235. }
  28236. // SetEgress sets the Egress field's value.
  28237. func (s *DeleteNetworkAclEntryInput) SetEgress(v bool) *DeleteNetworkAclEntryInput {
  28238. s.Egress = &v
  28239. return s
  28240. }
  28241. // SetNetworkAclId sets the NetworkAclId field's value.
  28242. func (s *DeleteNetworkAclEntryInput) SetNetworkAclId(v string) *DeleteNetworkAclEntryInput {
  28243. s.NetworkAclId = &v
  28244. return s
  28245. }
  28246. // SetRuleNumber sets the RuleNumber field's value.
  28247. func (s *DeleteNetworkAclEntryInput) SetRuleNumber(v int64) *DeleteNetworkAclEntryInput {
  28248. s.RuleNumber = &v
  28249. return s
  28250. }
  28251. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclEntryOutput
  28252. type DeleteNetworkAclEntryOutput struct {
  28253. _ struct{} `type:"structure"`
  28254. }
  28255. // String returns the string representation
  28256. func (s DeleteNetworkAclEntryOutput) String() string {
  28257. return awsutil.Prettify(s)
  28258. }
  28259. // GoString returns the string representation
  28260. func (s DeleteNetworkAclEntryOutput) GoString() string {
  28261. return s.String()
  28262. }
  28263. // Contains the parameters for DeleteNetworkAcl.
  28264. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclRequest
  28265. type DeleteNetworkAclInput struct {
  28266. _ struct{} `type:"structure"`
  28267. // Checks whether you have the required permissions for the action, without
  28268. // actually making the request, and provides an error response. If you have
  28269. // the required permissions, the error response is DryRunOperation. Otherwise,
  28270. // it is UnauthorizedOperation.
  28271. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28272. // The ID of the network ACL.
  28273. //
  28274. // NetworkAclId is a required field
  28275. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  28276. }
  28277. // String returns the string representation
  28278. func (s DeleteNetworkAclInput) String() string {
  28279. return awsutil.Prettify(s)
  28280. }
  28281. // GoString returns the string representation
  28282. func (s DeleteNetworkAclInput) GoString() string {
  28283. return s.String()
  28284. }
  28285. // Validate inspects the fields of the type to determine if they are valid.
  28286. func (s *DeleteNetworkAclInput) Validate() error {
  28287. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclInput"}
  28288. if s.NetworkAclId == nil {
  28289. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  28290. }
  28291. if invalidParams.Len() > 0 {
  28292. return invalidParams
  28293. }
  28294. return nil
  28295. }
  28296. // SetDryRun sets the DryRun field's value.
  28297. func (s *DeleteNetworkAclInput) SetDryRun(v bool) *DeleteNetworkAclInput {
  28298. s.DryRun = &v
  28299. return s
  28300. }
  28301. // SetNetworkAclId sets the NetworkAclId field's value.
  28302. func (s *DeleteNetworkAclInput) SetNetworkAclId(v string) *DeleteNetworkAclInput {
  28303. s.NetworkAclId = &v
  28304. return s
  28305. }
  28306. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkAclOutput
  28307. type DeleteNetworkAclOutput struct {
  28308. _ struct{} `type:"structure"`
  28309. }
  28310. // String returns the string representation
  28311. func (s DeleteNetworkAclOutput) String() string {
  28312. return awsutil.Prettify(s)
  28313. }
  28314. // GoString returns the string representation
  28315. func (s DeleteNetworkAclOutput) GoString() string {
  28316. return s.String()
  28317. }
  28318. // Contains the parameters for DeleteNetworkInterface.
  28319. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfaceRequest
  28320. type DeleteNetworkInterfaceInput struct {
  28321. _ struct{} `type:"structure"`
  28322. // Checks whether you have the required permissions for the action, without
  28323. // actually making the request, and provides an error response. If you have
  28324. // the required permissions, the error response is DryRunOperation. Otherwise,
  28325. // it is UnauthorizedOperation.
  28326. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28327. // The ID of the network interface.
  28328. //
  28329. // NetworkInterfaceId is a required field
  28330. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  28331. }
  28332. // String returns the string representation
  28333. func (s DeleteNetworkInterfaceInput) String() string {
  28334. return awsutil.Prettify(s)
  28335. }
  28336. // GoString returns the string representation
  28337. func (s DeleteNetworkInterfaceInput) GoString() string {
  28338. return s.String()
  28339. }
  28340. // Validate inspects the fields of the type to determine if they are valid.
  28341. func (s *DeleteNetworkInterfaceInput) Validate() error {
  28342. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfaceInput"}
  28343. if s.NetworkInterfaceId == nil {
  28344. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  28345. }
  28346. if invalidParams.Len() > 0 {
  28347. return invalidParams
  28348. }
  28349. return nil
  28350. }
  28351. // SetDryRun sets the DryRun field's value.
  28352. func (s *DeleteNetworkInterfaceInput) SetDryRun(v bool) *DeleteNetworkInterfaceInput {
  28353. s.DryRun = &v
  28354. return s
  28355. }
  28356. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  28357. func (s *DeleteNetworkInterfaceInput) SetNetworkInterfaceId(v string) *DeleteNetworkInterfaceInput {
  28358. s.NetworkInterfaceId = &v
  28359. return s
  28360. }
  28361. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfaceOutput
  28362. type DeleteNetworkInterfaceOutput struct {
  28363. _ struct{} `type:"structure"`
  28364. }
  28365. // String returns the string representation
  28366. func (s DeleteNetworkInterfaceOutput) String() string {
  28367. return awsutil.Prettify(s)
  28368. }
  28369. // GoString returns the string representation
  28370. func (s DeleteNetworkInterfaceOutput) GoString() string {
  28371. return s.String()
  28372. }
  28373. // Contains the parameters for DeleteNetworkInterfacePermission.
  28374. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermissionRequest
  28375. type DeleteNetworkInterfacePermissionInput struct {
  28376. _ struct{} `type:"structure"`
  28377. // Checks whether you have the required permissions for the action, without
  28378. // actually making the request, and provides an error response. If you have
  28379. // the required permissions, the error response is DryRunOperation. Otherwise,
  28380. // it is UnauthorizedOperation.
  28381. DryRun *bool `type:"boolean"`
  28382. // Specify true to remove the permission even if the network interface is attached
  28383. // to an instance.
  28384. Force *bool `type:"boolean"`
  28385. // The ID of the network interface permission.
  28386. //
  28387. // NetworkInterfacePermissionId is a required field
  28388. NetworkInterfacePermissionId *string `type:"string" required:"true"`
  28389. }
  28390. // String returns the string representation
  28391. func (s DeleteNetworkInterfacePermissionInput) String() string {
  28392. return awsutil.Prettify(s)
  28393. }
  28394. // GoString returns the string representation
  28395. func (s DeleteNetworkInterfacePermissionInput) GoString() string {
  28396. return s.String()
  28397. }
  28398. // Validate inspects the fields of the type to determine if they are valid.
  28399. func (s *DeleteNetworkInterfacePermissionInput) Validate() error {
  28400. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfacePermissionInput"}
  28401. if s.NetworkInterfacePermissionId == nil {
  28402. invalidParams.Add(request.NewErrParamRequired("NetworkInterfacePermissionId"))
  28403. }
  28404. if invalidParams.Len() > 0 {
  28405. return invalidParams
  28406. }
  28407. return nil
  28408. }
  28409. // SetDryRun sets the DryRun field's value.
  28410. func (s *DeleteNetworkInterfacePermissionInput) SetDryRun(v bool) *DeleteNetworkInterfacePermissionInput {
  28411. s.DryRun = &v
  28412. return s
  28413. }
  28414. // SetForce sets the Force field's value.
  28415. func (s *DeleteNetworkInterfacePermissionInput) SetForce(v bool) *DeleteNetworkInterfacePermissionInput {
  28416. s.Force = &v
  28417. return s
  28418. }
  28419. // SetNetworkInterfacePermissionId sets the NetworkInterfacePermissionId field's value.
  28420. func (s *DeleteNetworkInterfacePermissionInput) SetNetworkInterfacePermissionId(v string) *DeleteNetworkInterfacePermissionInput {
  28421. s.NetworkInterfacePermissionId = &v
  28422. return s
  28423. }
  28424. // Contains the output for DeleteNetworkInterfacePermission.
  28425. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteNetworkInterfacePermissionResult
  28426. type DeleteNetworkInterfacePermissionOutput struct {
  28427. _ struct{} `type:"structure"`
  28428. // Returns true if the request succeeds, otherwise returns an error.
  28429. Return *bool `locationName:"return" type:"boolean"`
  28430. }
  28431. // String returns the string representation
  28432. func (s DeleteNetworkInterfacePermissionOutput) String() string {
  28433. return awsutil.Prettify(s)
  28434. }
  28435. // GoString returns the string representation
  28436. func (s DeleteNetworkInterfacePermissionOutput) GoString() string {
  28437. return s.String()
  28438. }
  28439. // SetReturn sets the Return field's value.
  28440. func (s *DeleteNetworkInterfacePermissionOutput) SetReturn(v bool) *DeleteNetworkInterfacePermissionOutput {
  28441. s.Return = &v
  28442. return s
  28443. }
  28444. // Contains the parameters for DeletePlacementGroup.
  28445. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroupRequest
  28446. type DeletePlacementGroupInput struct {
  28447. _ struct{} `type:"structure"`
  28448. // Checks whether you have the required permissions for the action, without
  28449. // actually making the request, and provides an error response. If you have
  28450. // the required permissions, the error response is DryRunOperation. Otherwise,
  28451. // it is UnauthorizedOperation.
  28452. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28453. // The name of the placement group.
  28454. //
  28455. // GroupName is a required field
  28456. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  28457. }
  28458. // String returns the string representation
  28459. func (s DeletePlacementGroupInput) String() string {
  28460. return awsutil.Prettify(s)
  28461. }
  28462. // GoString returns the string representation
  28463. func (s DeletePlacementGroupInput) GoString() string {
  28464. return s.String()
  28465. }
  28466. // Validate inspects the fields of the type to determine if they are valid.
  28467. func (s *DeletePlacementGroupInput) Validate() error {
  28468. invalidParams := request.ErrInvalidParams{Context: "DeletePlacementGroupInput"}
  28469. if s.GroupName == nil {
  28470. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  28471. }
  28472. if invalidParams.Len() > 0 {
  28473. return invalidParams
  28474. }
  28475. return nil
  28476. }
  28477. // SetDryRun sets the DryRun field's value.
  28478. func (s *DeletePlacementGroupInput) SetDryRun(v bool) *DeletePlacementGroupInput {
  28479. s.DryRun = &v
  28480. return s
  28481. }
  28482. // SetGroupName sets the GroupName field's value.
  28483. func (s *DeletePlacementGroupInput) SetGroupName(v string) *DeletePlacementGroupInput {
  28484. s.GroupName = &v
  28485. return s
  28486. }
  28487. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeletePlacementGroupOutput
  28488. type DeletePlacementGroupOutput struct {
  28489. _ struct{} `type:"structure"`
  28490. }
  28491. // String returns the string representation
  28492. func (s DeletePlacementGroupOutput) String() string {
  28493. return awsutil.Prettify(s)
  28494. }
  28495. // GoString returns the string representation
  28496. func (s DeletePlacementGroupOutput) GoString() string {
  28497. return s.String()
  28498. }
  28499. // Contains the parameters for DeleteRoute.
  28500. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteRequest
  28501. type DeleteRouteInput struct {
  28502. _ struct{} `type:"structure"`
  28503. // The IPv4 CIDR range for the route. The value you specify must match the CIDR
  28504. // for the route exactly.
  28505. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  28506. // The IPv6 CIDR range for the route. The value you specify must match the CIDR
  28507. // for the route exactly.
  28508. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  28509. // Checks whether you have the required permissions for the action, without
  28510. // actually making the request, and provides an error response. If you have
  28511. // the required permissions, the error response is DryRunOperation. Otherwise,
  28512. // it is UnauthorizedOperation.
  28513. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28514. // The ID of the route table.
  28515. //
  28516. // RouteTableId is a required field
  28517. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  28518. }
  28519. // String returns the string representation
  28520. func (s DeleteRouteInput) String() string {
  28521. return awsutil.Prettify(s)
  28522. }
  28523. // GoString returns the string representation
  28524. func (s DeleteRouteInput) GoString() string {
  28525. return s.String()
  28526. }
  28527. // Validate inspects the fields of the type to determine if they are valid.
  28528. func (s *DeleteRouteInput) Validate() error {
  28529. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteInput"}
  28530. if s.RouteTableId == nil {
  28531. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  28532. }
  28533. if invalidParams.Len() > 0 {
  28534. return invalidParams
  28535. }
  28536. return nil
  28537. }
  28538. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  28539. func (s *DeleteRouteInput) SetDestinationCidrBlock(v string) *DeleteRouteInput {
  28540. s.DestinationCidrBlock = &v
  28541. return s
  28542. }
  28543. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  28544. func (s *DeleteRouteInput) SetDestinationIpv6CidrBlock(v string) *DeleteRouteInput {
  28545. s.DestinationIpv6CidrBlock = &v
  28546. return s
  28547. }
  28548. // SetDryRun sets the DryRun field's value.
  28549. func (s *DeleteRouteInput) SetDryRun(v bool) *DeleteRouteInput {
  28550. s.DryRun = &v
  28551. return s
  28552. }
  28553. // SetRouteTableId sets the RouteTableId field's value.
  28554. func (s *DeleteRouteInput) SetRouteTableId(v string) *DeleteRouteInput {
  28555. s.RouteTableId = &v
  28556. return s
  28557. }
  28558. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteOutput
  28559. type DeleteRouteOutput struct {
  28560. _ struct{} `type:"structure"`
  28561. }
  28562. // String returns the string representation
  28563. func (s DeleteRouteOutput) String() string {
  28564. return awsutil.Prettify(s)
  28565. }
  28566. // GoString returns the string representation
  28567. func (s DeleteRouteOutput) GoString() string {
  28568. return s.String()
  28569. }
  28570. // Contains the parameters for DeleteRouteTable.
  28571. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTableRequest
  28572. type DeleteRouteTableInput struct {
  28573. _ struct{} `type:"structure"`
  28574. // Checks whether you have the required permissions for the action, without
  28575. // actually making the request, and provides an error response. If you have
  28576. // the required permissions, the error response is DryRunOperation. Otherwise,
  28577. // it is UnauthorizedOperation.
  28578. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28579. // The ID of the route table.
  28580. //
  28581. // RouteTableId is a required field
  28582. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  28583. }
  28584. // String returns the string representation
  28585. func (s DeleteRouteTableInput) String() string {
  28586. return awsutil.Prettify(s)
  28587. }
  28588. // GoString returns the string representation
  28589. func (s DeleteRouteTableInput) GoString() string {
  28590. return s.String()
  28591. }
  28592. // Validate inspects the fields of the type to determine if they are valid.
  28593. func (s *DeleteRouteTableInput) Validate() error {
  28594. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteTableInput"}
  28595. if s.RouteTableId == nil {
  28596. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  28597. }
  28598. if invalidParams.Len() > 0 {
  28599. return invalidParams
  28600. }
  28601. return nil
  28602. }
  28603. // SetDryRun sets the DryRun field's value.
  28604. func (s *DeleteRouteTableInput) SetDryRun(v bool) *DeleteRouteTableInput {
  28605. s.DryRun = &v
  28606. return s
  28607. }
  28608. // SetRouteTableId sets the RouteTableId field's value.
  28609. func (s *DeleteRouteTableInput) SetRouteTableId(v string) *DeleteRouteTableInput {
  28610. s.RouteTableId = &v
  28611. return s
  28612. }
  28613. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRouteTableOutput
  28614. type DeleteRouteTableOutput struct {
  28615. _ struct{} `type:"structure"`
  28616. }
  28617. // String returns the string representation
  28618. func (s DeleteRouteTableOutput) String() string {
  28619. return awsutil.Prettify(s)
  28620. }
  28621. // GoString returns the string representation
  28622. func (s DeleteRouteTableOutput) GoString() string {
  28623. return s.String()
  28624. }
  28625. // Contains the parameters for DeleteSecurityGroup.
  28626. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroupRequest
  28627. type DeleteSecurityGroupInput struct {
  28628. _ struct{} `type:"structure"`
  28629. // Checks whether you have the required permissions for the action, without
  28630. // actually making the request, and provides an error response. If you have
  28631. // the required permissions, the error response is DryRunOperation. Otherwise,
  28632. // it is UnauthorizedOperation.
  28633. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28634. // The ID of the security group. Required for a nondefault VPC.
  28635. GroupId *string `type:"string"`
  28636. // [EC2-Classic, default VPC] The name of the security group. You can specify
  28637. // either the security group name or the security group ID.
  28638. GroupName *string `type:"string"`
  28639. }
  28640. // String returns the string representation
  28641. func (s DeleteSecurityGroupInput) String() string {
  28642. return awsutil.Prettify(s)
  28643. }
  28644. // GoString returns the string representation
  28645. func (s DeleteSecurityGroupInput) GoString() string {
  28646. return s.String()
  28647. }
  28648. // SetDryRun sets the DryRun field's value.
  28649. func (s *DeleteSecurityGroupInput) SetDryRun(v bool) *DeleteSecurityGroupInput {
  28650. s.DryRun = &v
  28651. return s
  28652. }
  28653. // SetGroupId sets the GroupId field's value.
  28654. func (s *DeleteSecurityGroupInput) SetGroupId(v string) *DeleteSecurityGroupInput {
  28655. s.GroupId = &v
  28656. return s
  28657. }
  28658. // SetGroupName sets the GroupName field's value.
  28659. func (s *DeleteSecurityGroupInput) SetGroupName(v string) *DeleteSecurityGroupInput {
  28660. s.GroupName = &v
  28661. return s
  28662. }
  28663. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSecurityGroupOutput
  28664. type DeleteSecurityGroupOutput struct {
  28665. _ struct{} `type:"structure"`
  28666. }
  28667. // String returns the string representation
  28668. func (s DeleteSecurityGroupOutput) String() string {
  28669. return awsutil.Prettify(s)
  28670. }
  28671. // GoString returns the string representation
  28672. func (s DeleteSecurityGroupOutput) GoString() string {
  28673. return s.String()
  28674. }
  28675. // Contains the parameters for DeleteSnapshot.
  28676. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshotRequest
  28677. type DeleteSnapshotInput struct {
  28678. _ struct{} `type:"structure"`
  28679. // Checks whether you have the required permissions for the action, without
  28680. // actually making the request, and provides an error response. If you have
  28681. // the required permissions, the error response is DryRunOperation. Otherwise,
  28682. // it is UnauthorizedOperation.
  28683. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28684. // The ID of the EBS snapshot.
  28685. //
  28686. // SnapshotId is a required field
  28687. SnapshotId *string `type:"string" required:"true"`
  28688. }
  28689. // String returns the string representation
  28690. func (s DeleteSnapshotInput) String() string {
  28691. return awsutil.Prettify(s)
  28692. }
  28693. // GoString returns the string representation
  28694. func (s DeleteSnapshotInput) GoString() string {
  28695. return s.String()
  28696. }
  28697. // Validate inspects the fields of the type to determine if they are valid.
  28698. func (s *DeleteSnapshotInput) Validate() error {
  28699. invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"}
  28700. if s.SnapshotId == nil {
  28701. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  28702. }
  28703. if invalidParams.Len() > 0 {
  28704. return invalidParams
  28705. }
  28706. return nil
  28707. }
  28708. // SetDryRun sets the DryRun field's value.
  28709. func (s *DeleteSnapshotInput) SetDryRun(v bool) *DeleteSnapshotInput {
  28710. s.DryRun = &v
  28711. return s
  28712. }
  28713. // SetSnapshotId sets the SnapshotId field's value.
  28714. func (s *DeleteSnapshotInput) SetSnapshotId(v string) *DeleteSnapshotInput {
  28715. s.SnapshotId = &v
  28716. return s
  28717. }
  28718. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSnapshotOutput
  28719. type DeleteSnapshotOutput struct {
  28720. _ struct{} `type:"structure"`
  28721. }
  28722. // String returns the string representation
  28723. func (s DeleteSnapshotOutput) String() string {
  28724. return awsutil.Prettify(s)
  28725. }
  28726. // GoString returns the string representation
  28727. func (s DeleteSnapshotOutput) GoString() string {
  28728. return s.String()
  28729. }
  28730. // Contains the parameters for DeleteSpotDatafeedSubscription.
  28731. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscriptionRequest
  28732. type DeleteSpotDatafeedSubscriptionInput struct {
  28733. _ struct{} `type:"structure"`
  28734. // Checks whether you have the required permissions for the action, without
  28735. // actually making the request, and provides an error response. If you have
  28736. // the required permissions, the error response is DryRunOperation. Otherwise,
  28737. // it is UnauthorizedOperation.
  28738. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28739. }
  28740. // String returns the string representation
  28741. func (s DeleteSpotDatafeedSubscriptionInput) String() string {
  28742. return awsutil.Prettify(s)
  28743. }
  28744. // GoString returns the string representation
  28745. func (s DeleteSpotDatafeedSubscriptionInput) GoString() string {
  28746. return s.String()
  28747. }
  28748. // SetDryRun sets the DryRun field's value.
  28749. func (s *DeleteSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DeleteSpotDatafeedSubscriptionInput {
  28750. s.DryRun = &v
  28751. return s
  28752. }
  28753. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSpotDatafeedSubscriptionOutput
  28754. type DeleteSpotDatafeedSubscriptionOutput struct {
  28755. _ struct{} `type:"structure"`
  28756. }
  28757. // String returns the string representation
  28758. func (s DeleteSpotDatafeedSubscriptionOutput) String() string {
  28759. return awsutil.Prettify(s)
  28760. }
  28761. // GoString returns the string representation
  28762. func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string {
  28763. return s.String()
  28764. }
  28765. // Contains the parameters for DeleteSubnet.
  28766. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnetRequest
  28767. type DeleteSubnetInput struct {
  28768. _ struct{} `type:"structure"`
  28769. // Checks whether you have the required permissions for the action, without
  28770. // actually making the request, and provides an error response. If you have
  28771. // the required permissions, the error response is DryRunOperation. Otherwise,
  28772. // it is UnauthorizedOperation.
  28773. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28774. // The ID of the subnet.
  28775. //
  28776. // SubnetId is a required field
  28777. SubnetId *string `type:"string" required:"true"`
  28778. }
  28779. // String returns the string representation
  28780. func (s DeleteSubnetInput) String() string {
  28781. return awsutil.Prettify(s)
  28782. }
  28783. // GoString returns the string representation
  28784. func (s DeleteSubnetInput) GoString() string {
  28785. return s.String()
  28786. }
  28787. // Validate inspects the fields of the type to determine if they are valid.
  28788. func (s *DeleteSubnetInput) Validate() error {
  28789. invalidParams := request.ErrInvalidParams{Context: "DeleteSubnetInput"}
  28790. if s.SubnetId == nil {
  28791. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  28792. }
  28793. if invalidParams.Len() > 0 {
  28794. return invalidParams
  28795. }
  28796. return nil
  28797. }
  28798. // SetDryRun sets the DryRun field's value.
  28799. func (s *DeleteSubnetInput) SetDryRun(v bool) *DeleteSubnetInput {
  28800. s.DryRun = &v
  28801. return s
  28802. }
  28803. // SetSubnetId sets the SubnetId field's value.
  28804. func (s *DeleteSubnetInput) SetSubnetId(v string) *DeleteSubnetInput {
  28805. s.SubnetId = &v
  28806. return s
  28807. }
  28808. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteSubnetOutput
  28809. type DeleteSubnetOutput struct {
  28810. _ struct{} `type:"structure"`
  28811. }
  28812. // String returns the string representation
  28813. func (s DeleteSubnetOutput) String() string {
  28814. return awsutil.Prettify(s)
  28815. }
  28816. // GoString returns the string representation
  28817. func (s DeleteSubnetOutput) GoString() string {
  28818. return s.String()
  28819. }
  28820. // Contains the parameters for DeleteTags.
  28821. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTagsRequest
  28822. type DeleteTagsInput struct {
  28823. _ struct{} `type:"structure"`
  28824. // Checks whether you have the required permissions for the action, without
  28825. // actually making the request, and provides an error response. If you have
  28826. // the required permissions, the error response is DryRunOperation. Otherwise,
  28827. // it is UnauthorizedOperation.
  28828. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28829. // The IDs of one or more resources.
  28830. //
  28831. // Resources is a required field
  28832. Resources []*string `locationName:"resourceId" type:"list" required:"true"`
  28833. // One or more tags to delete. If you omit this parameter, we delete all tags
  28834. // for the specified resources. Specify a tag key and an optional tag value
  28835. // to delete specific tags. If you specify a tag key without a tag value, we
  28836. // delete any tag with this key regardless of its value. If you specify a tag
  28837. // key with an empty string as the tag value, we delete the tag only if its
  28838. // value is an empty string.
  28839. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  28840. }
  28841. // String returns the string representation
  28842. func (s DeleteTagsInput) String() string {
  28843. return awsutil.Prettify(s)
  28844. }
  28845. // GoString returns the string representation
  28846. func (s DeleteTagsInput) GoString() string {
  28847. return s.String()
  28848. }
  28849. // Validate inspects the fields of the type to determine if they are valid.
  28850. func (s *DeleteTagsInput) Validate() error {
  28851. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  28852. if s.Resources == nil {
  28853. invalidParams.Add(request.NewErrParamRequired("Resources"))
  28854. }
  28855. if invalidParams.Len() > 0 {
  28856. return invalidParams
  28857. }
  28858. return nil
  28859. }
  28860. // SetDryRun sets the DryRun field's value.
  28861. func (s *DeleteTagsInput) SetDryRun(v bool) *DeleteTagsInput {
  28862. s.DryRun = &v
  28863. return s
  28864. }
  28865. // SetResources sets the Resources field's value.
  28866. func (s *DeleteTagsInput) SetResources(v []*string) *DeleteTagsInput {
  28867. s.Resources = v
  28868. return s
  28869. }
  28870. // SetTags sets the Tags field's value.
  28871. func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput {
  28872. s.Tags = v
  28873. return s
  28874. }
  28875. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTagsOutput
  28876. type DeleteTagsOutput struct {
  28877. _ struct{} `type:"structure"`
  28878. }
  28879. // String returns the string representation
  28880. func (s DeleteTagsOutput) String() string {
  28881. return awsutil.Prettify(s)
  28882. }
  28883. // GoString returns the string representation
  28884. func (s DeleteTagsOutput) GoString() string {
  28885. return s.String()
  28886. }
  28887. // Contains the parameters for DeleteVolume.
  28888. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolumeRequest
  28889. type DeleteVolumeInput struct {
  28890. _ struct{} `type:"structure"`
  28891. // Checks whether you have the required permissions for the action, without
  28892. // actually making the request, and provides an error response. If you have
  28893. // the required permissions, the error response is DryRunOperation. Otherwise,
  28894. // it is UnauthorizedOperation.
  28895. DryRun *bool `locationName:"dryRun" type:"boolean"`
  28896. // The ID of the volume.
  28897. //
  28898. // VolumeId is a required field
  28899. VolumeId *string `type:"string" required:"true"`
  28900. }
  28901. // String returns the string representation
  28902. func (s DeleteVolumeInput) String() string {
  28903. return awsutil.Prettify(s)
  28904. }
  28905. // GoString returns the string representation
  28906. func (s DeleteVolumeInput) GoString() string {
  28907. return s.String()
  28908. }
  28909. // Validate inspects the fields of the type to determine if they are valid.
  28910. func (s *DeleteVolumeInput) Validate() error {
  28911. invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"}
  28912. if s.VolumeId == nil {
  28913. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  28914. }
  28915. if invalidParams.Len() > 0 {
  28916. return invalidParams
  28917. }
  28918. return nil
  28919. }
  28920. // SetDryRun sets the DryRun field's value.
  28921. func (s *DeleteVolumeInput) SetDryRun(v bool) *DeleteVolumeInput {
  28922. s.DryRun = &v
  28923. return s
  28924. }
  28925. // SetVolumeId sets the VolumeId field's value.
  28926. func (s *DeleteVolumeInput) SetVolumeId(v string) *DeleteVolumeInput {
  28927. s.VolumeId = &v
  28928. return s
  28929. }
  28930. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVolumeOutput
  28931. type DeleteVolumeOutput struct {
  28932. _ struct{} `type:"structure"`
  28933. }
  28934. // String returns the string representation
  28935. func (s DeleteVolumeOutput) String() string {
  28936. return awsutil.Prettify(s)
  28937. }
  28938. // GoString returns the string representation
  28939. func (s DeleteVolumeOutput) GoString() string {
  28940. return s.String()
  28941. }
  28942. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotificationsRequest
  28943. type DeleteVpcEndpointConnectionNotificationsInput struct {
  28944. _ struct{} `type:"structure"`
  28945. // One or more notification IDs.
  28946. //
  28947. // ConnectionNotificationIds is a required field
  28948. ConnectionNotificationIds []*string `locationName:"ConnectionNotificationId" locationNameList:"item" type:"list" required:"true"`
  28949. // Checks whether you have the required permissions for the action, without
  28950. // actually making the request, and provides an error response. If you have
  28951. // the required permissions, the error response is DryRunOperation. Otherwise,
  28952. // it is UnauthorizedOperation.
  28953. DryRun *bool `type:"boolean"`
  28954. }
  28955. // String returns the string representation
  28956. func (s DeleteVpcEndpointConnectionNotificationsInput) String() string {
  28957. return awsutil.Prettify(s)
  28958. }
  28959. // GoString returns the string representation
  28960. func (s DeleteVpcEndpointConnectionNotificationsInput) GoString() string {
  28961. return s.String()
  28962. }
  28963. // Validate inspects the fields of the type to determine if they are valid.
  28964. func (s *DeleteVpcEndpointConnectionNotificationsInput) Validate() error {
  28965. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointConnectionNotificationsInput"}
  28966. if s.ConnectionNotificationIds == nil {
  28967. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationIds"))
  28968. }
  28969. if invalidParams.Len() > 0 {
  28970. return invalidParams
  28971. }
  28972. return nil
  28973. }
  28974. // SetConnectionNotificationIds sets the ConnectionNotificationIds field's value.
  28975. func (s *DeleteVpcEndpointConnectionNotificationsInput) SetConnectionNotificationIds(v []*string) *DeleteVpcEndpointConnectionNotificationsInput {
  28976. s.ConnectionNotificationIds = v
  28977. return s
  28978. }
  28979. // SetDryRun sets the DryRun field's value.
  28980. func (s *DeleteVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DeleteVpcEndpointConnectionNotificationsInput {
  28981. s.DryRun = &v
  28982. return s
  28983. }
  28984. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointConnectionNotificationsResult
  28985. type DeleteVpcEndpointConnectionNotificationsOutput struct {
  28986. _ struct{} `type:"structure"`
  28987. // Information about the notifications that could not be deleted successfully.
  28988. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  28989. }
  28990. // String returns the string representation
  28991. func (s DeleteVpcEndpointConnectionNotificationsOutput) String() string {
  28992. return awsutil.Prettify(s)
  28993. }
  28994. // GoString returns the string representation
  28995. func (s DeleteVpcEndpointConnectionNotificationsOutput) GoString() string {
  28996. return s.String()
  28997. }
  28998. // SetUnsuccessful sets the Unsuccessful field's value.
  28999. func (s *DeleteVpcEndpointConnectionNotificationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointConnectionNotificationsOutput {
  29000. s.Unsuccessful = v
  29001. return s
  29002. }
  29003. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurationsRequest
  29004. type DeleteVpcEndpointServiceConfigurationsInput struct {
  29005. _ struct{} `type:"structure"`
  29006. // Checks whether you have the required permissions for the action, without
  29007. // actually making the request, and provides an error response. If you have
  29008. // the required permissions, the error response is DryRunOperation. Otherwise,
  29009. // it is UnauthorizedOperation.
  29010. DryRun *bool `type:"boolean"`
  29011. // The IDs of one or more services.
  29012. //
  29013. // ServiceIds is a required field
  29014. ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list" required:"true"`
  29015. }
  29016. // String returns the string representation
  29017. func (s DeleteVpcEndpointServiceConfigurationsInput) String() string {
  29018. return awsutil.Prettify(s)
  29019. }
  29020. // GoString returns the string representation
  29021. func (s DeleteVpcEndpointServiceConfigurationsInput) GoString() string {
  29022. return s.String()
  29023. }
  29024. // Validate inspects the fields of the type to determine if they are valid.
  29025. func (s *DeleteVpcEndpointServiceConfigurationsInput) Validate() error {
  29026. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointServiceConfigurationsInput"}
  29027. if s.ServiceIds == nil {
  29028. invalidParams.Add(request.NewErrParamRequired("ServiceIds"))
  29029. }
  29030. if invalidParams.Len() > 0 {
  29031. return invalidParams
  29032. }
  29033. return nil
  29034. }
  29035. // SetDryRun sets the DryRun field's value.
  29036. func (s *DeleteVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DeleteVpcEndpointServiceConfigurationsInput {
  29037. s.DryRun = &v
  29038. return s
  29039. }
  29040. // SetServiceIds sets the ServiceIds field's value.
  29041. func (s *DeleteVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DeleteVpcEndpointServiceConfigurationsInput {
  29042. s.ServiceIds = v
  29043. return s
  29044. }
  29045. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointServiceConfigurationsResult
  29046. type DeleteVpcEndpointServiceConfigurationsOutput struct {
  29047. _ struct{} `type:"structure"`
  29048. // Information about the service configurations that were not deleted, if applicable.
  29049. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  29050. }
  29051. // String returns the string representation
  29052. func (s DeleteVpcEndpointServiceConfigurationsOutput) String() string {
  29053. return awsutil.Prettify(s)
  29054. }
  29055. // GoString returns the string representation
  29056. func (s DeleteVpcEndpointServiceConfigurationsOutput) GoString() string {
  29057. return s.String()
  29058. }
  29059. // SetUnsuccessful sets the Unsuccessful field's value.
  29060. func (s *DeleteVpcEndpointServiceConfigurationsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointServiceConfigurationsOutput {
  29061. s.Unsuccessful = v
  29062. return s
  29063. }
  29064. // Contains the parameters for DeleteVpcEndpoints.
  29065. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointsRequest
  29066. type DeleteVpcEndpointsInput struct {
  29067. _ struct{} `type:"structure"`
  29068. // Checks whether you have the required permissions for the action, without
  29069. // actually making the request, and provides an error response. If you have
  29070. // the required permissions, the error response is DryRunOperation. Otherwise,
  29071. // it is UnauthorizedOperation.
  29072. DryRun *bool `type:"boolean"`
  29073. // One or more VPC endpoint IDs.
  29074. //
  29075. // VpcEndpointIds is a required field
  29076. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  29077. }
  29078. // String returns the string representation
  29079. func (s DeleteVpcEndpointsInput) String() string {
  29080. return awsutil.Prettify(s)
  29081. }
  29082. // GoString returns the string representation
  29083. func (s DeleteVpcEndpointsInput) GoString() string {
  29084. return s.String()
  29085. }
  29086. // Validate inspects the fields of the type to determine if they are valid.
  29087. func (s *DeleteVpcEndpointsInput) Validate() error {
  29088. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointsInput"}
  29089. if s.VpcEndpointIds == nil {
  29090. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  29091. }
  29092. if invalidParams.Len() > 0 {
  29093. return invalidParams
  29094. }
  29095. return nil
  29096. }
  29097. // SetDryRun sets the DryRun field's value.
  29098. func (s *DeleteVpcEndpointsInput) SetDryRun(v bool) *DeleteVpcEndpointsInput {
  29099. s.DryRun = &v
  29100. return s
  29101. }
  29102. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  29103. func (s *DeleteVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DeleteVpcEndpointsInput {
  29104. s.VpcEndpointIds = v
  29105. return s
  29106. }
  29107. // Contains the output of DeleteVpcEndpoints.
  29108. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcEndpointsResult
  29109. type DeleteVpcEndpointsOutput struct {
  29110. _ struct{} `type:"structure"`
  29111. // Information about the VPC endpoints that were not successfully deleted.
  29112. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  29113. }
  29114. // String returns the string representation
  29115. func (s DeleteVpcEndpointsOutput) String() string {
  29116. return awsutil.Prettify(s)
  29117. }
  29118. // GoString returns the string representation
  29119. func (s DeleteVpcEndpointsOutput) GoString() string {
  29120. return s.String()
  29121. }
  29122. // SetUnsuccessful sets the Unsuccessful field's value.
  29123. func (s *DeleteVpcEndpointsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *DeleteVpcEndpointsOutput {
  29124. s.Unsuccessful = v
  29125. return s
  29126. }
  29127. // Contains the parameters for DeleteVpc.
  29128. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcRequest
  29129. type DeleteVpcInput struct {
  29130. _ struct{} `type:"structure"`
  29131. // Checks whether you have the required permissions for the action, without
  29132. // actually making the request, and provides an error response. If you have
  29133. // the required permissions, the error response is DryRunOperation. Otherwise,
  29134. // it is UnauthorizedOperation.
  29135. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29136. // The ID of the VPC.
  29137. //
  29138. // VpcId is a required field
  29139. VpcId *string `type:"string" required:"true"`
  29140. }
  29141. // String returns the string representation
  29142. func (s DeleteVpcInput) String() string {
  29143. return awsutil.Prettify(s)
  29144. }
  29145. // GoString returns the string representation
  29146. func (s DeleteVpcInput) GoString() string {
  29147. return s.String()
  29148. }
  29149. // Validate inspects the fields of the type to determine if they are valid.
  29150. func (s *DeleteVpcInput) Validate() error {
  29151. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcInput"}
  29152. if s.VpcId == nil {
  29153. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  29154. }
  29155. if invalidParams.Len() > 0 {
  29156. return invalidParams
  29157. }
  29158. return nil
  29159. }
  29160. // SetDryRun sets the DryRun field's value.
  29161. func (s *DeleteVpcInput) SetDryRun(v bool) *DeleteVpcInput {
  29162. s.DryRun = &v
  29163. return s
  29164. }
  29165. // SetVpcId sets the VpcId field's value.
  29166. func (s *DeleteVpcInput) SetVpcId(v string) *DeleteVpcInput {
  29167. s.VpcId = &v
  29168. return s
  29169. }
  29170. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcOutput
  29171. type DeleteVpcOutput struct {
  29172. _ struct{} `type:"structure"`
  29173. }
  29174. // String returns the string representation
  29175. func (s DeleteVpcOutput) String() string {
  29176. return awsutil.Prettify(s)
  29177. }
  29178. // GoString returns the string representation
  29179. func (s DeleteVpcOutput) GoString() string {
  29180. return s.String()
  29181. }
  29182. // Contains the parameters for DeleteVpcPeeringConnection.
  29183. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnectionRequest
  29184. type DeleteVpcPeeringConnectionInput struct {
  29185. _ struct{} `type:"structure"`
  29186. // Checks whether you have the required permissions for the action, without
  29187. // actually making the request, and provides an error response. If you have
  29188. // the required permissions, the error response is DryRunOperation. Otherwise,
  29189. // it is UnauthorizedOperation.
  29190. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29191. // The ID of the VPC peering connection.
  29192. //
  29193. // VpcPeeringConnectionId is a required field
  29194. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  29195. }
  29196. // String returns the string representation
  29197. func (s DeleteVpcPeeringConnectionInput) String() string {
  29198. return awsutil.Prettify(s)
  29199. }
  29200. // GoString returns the string representation
  29201. func (s DeleteVpcPeeringConnectionInput) GoString() string {
  29202. return s.String()
  29203. }
  29204. // Validate inspects the fields of the type to determine if they are valid.
  29205. func (s *DeleteVpcPeeringConnectionInput) Validate() error {
  29206. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcPeeringConnectionInput"}
  29207. if s.VpcPeeringConnectionId == nil {
  29208. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  29209. }
  29210. if invalidParams.Len() > 0 {
  29211. return invalidParams
  29212. }
  29213. return nil
  29214. }
  29215. // SetDryRun sets the DryRun field's value.
  29216. func (s *DeleteVpcPeeringConnectionInput) SetDryRun(v bool) *DeleteVpcPeeringConnectionInput {
  29217. s.DryRun = &v
  29218. return s
  29219. }
  29220. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  29221. func (s *DeleteVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *DeleteVpcPeeringConnectionInput {
  29222. s.VpcPeeringConnectionId = &v
  29223. return s
  29224. }
  29225. // Contains the output of DeleteVpcPeeringConnection.
  29226. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpcPeeringConnectionResult
  29227. type DeleteVpcPeeringConnectionOutput struct {
  29228. _ struct{} `type:"structure"`
  29229. // Returns true if the request succeeds; otherwise, it returns an error.
  29230. Return *bool `locationName:"return" type:"boolean"`
  29231. }
  29232. // String returns the string representation
  29233. func (s DeleteVpcPeeringConnectionOutput) String() string {
  29234. return awsutil.Prettify(s)
  29235. }
  29236. // GoString returns the string representation
  29237. func (s DeleteVpcPeeringConnectionOutput) GoString() string {
  29238. return s.String()
  29239. }
  29240. // SetReturn sets the Return field's value.
  29241. func (s *DeleteVpcPeeringConnectionOutput) SetReturn(v bool) *DeleteVpcPeeringConnectionOutput {
  29242. s.Return = &v
  29243. return s
  29244. }
  29245. // Contains the parameters for DeleteVpnConnection.
  29246. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRequest
  29247. type DeleteVpnConnectionInput struct {
  29248. _ struct{} `type:"structure"`
  29249. // Checks whether you have the required permissions for the action, without
  29250. // actually making the request, and provides an error response. If you have
  29251. // the required permissions, the error response is DryRunOperation. Otherwise,
  29252. // it is UnauthorizedOperation.
  29253. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29254. // The ID of the VPN connection.
  29255. //
  29256. // VpnConnectionId is a required field
  29257. VpnConnectionId *string `type:"string" required:"true"`
  29258. }
  29259. // String returns the string representation
  29260. func (s DeleteVpnConnectionInput) String() string {
  29261. return awsutil.Prettify(s)
  29262. }
  29263. // GoString returns the string representation
  29264. func (s DeleteVpnConnectionInput) GoString() string {
  29265. return s.String()
  29266. }
  29267. // Validate inspects the fields of the type to determine if they are valid.
  29268. func (s *DeleteVpnConnectionInput) Validate() error {
  29269. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionInput"}
  29270. if s.VpnConnectionId == nil {
  29271. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  29272. }
  29273. if invalidParams.Len() > 0 {
  29274. return invalidParams
  29275. }
  29276. return nil
  29277. }
  29278. // SetDryRun sets the DryRun field's value.
  29279. func (s *DeleteVpnConnectionInput) SetDryRun(v bool) *DeleteVpnConnectionInput {
  29280. s.DryRun = &v
  29281. return s
  29282. }
  29283. // SetVpnConnectionId sets the VpnConnectionId field's value.
  29284. func (s *DeleteVpnConnectionInput) SetVpnConnectionId(v string) *DeleteVpnConnectionInput {
  29285. s.VpnConnectionId = &v
  29286. return s
  29287. }
  29288. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionOutput
  29289. type DeleteVpnConnectionOutput struct {
  29290. _ struct{} `type:"structure"`
  29291. }
  29292. // String returns the string representation
  29293. func (s DeleteVpnConnectionOutput) String() string {
  29294. return awsutil.Prettify(s)
  29295. }
  29296. // GoString returns the string representation
  29297. func (s DeleteVpnConnectionOutput) GoString() string {
  29298. return s.String()
  29299. }
  29300. // Contains the parameters for DeleteVpnConnectionRoute.
  29301. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRouteRequest
  29302. type DeleteVpnConnectionRouteInput struct {
  29303. _ struct{} `type:"structure"`
  29304. // The CIDR block associated with the local subnet of the customer network.
  29305. //
  29306. // DestinationCidrBlock is a required field
  29307. DestinationCidrBlock *string `type:"string" required:"true"`
  29308. // The ID of the VPN connection.
  29309. //
  29310. // VpnConnectionId is a required field
  29311. VpnConnectionId *string `type:"string" required:"true"`
  29312. }
  29313. // String returns the string representation
  29314. func (s DeleteVpnConnectionRouteInput) String() string {
  29315. return awsutil.Prettify(s)
  29316. }
  29317. // GoString returns the string representation
  29318. func (s DeleteVpnConnectionRouteInput) GoString() string {
  29319. return s.String()
  29320. }
  29321. // Validate inspects the fields of the type to determine if they are valid.
  29322. func (s *DeleteVpnConnectionRouteInput) Validate() error {
  29323. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionRouteInput"}
  29324. if s.DestinationCidrBlock == nil {
  29325. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  29326. }
  29327. if s.VpnConnectionId == nil {
  29328. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  29329. }
  29330. if invalidParams.Len() > 0 {
  29331. return invalidParams
  29332. }
  29333. return nil
  29334. }
  29335. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  29336. func (s *DeleteVpnConnectionRouteInput) SetDestinationCidrBlock(v string) *DeleteVpnConnectionRouteInput {
  29337. s.DestinationCidrBlock = &v
  29338. return s
  29339. }
  29340. // SetVpnConnectionId sets the VpnConnectionId field's value.
  29341. func (s *DeleteVpnConnectionRouteInput) SetVpnConnectionId(v string) *DeleteVpnConnectionRouteInput {
  29342. s.VpnConnectionId = &v
  29343. return s
  29344. }
  29345. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnConnectionRouteOutput
  29346. type DeleteVpnConnectionRouteOutput struct {
  29347. _ struct{} `type:"structure"`
  29348. }
  29349. // String returns the string representation
  29350. func (s DeleteVpnConnectionRouteOutput) String() string {
  29351. return awsutil.Prettify(s)
  29352. }
  29353. // GoString returns the string representation
  29354. func (s DeleteVpnConnectionRouteOutput) GoString() string {
  29355. return s.String()
  29356. }
  29357. // Contains the parameters for DeleteVpnGateway.
  29358. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGatewayRequest
  29359. type DeleteVpnGatewayInput struct {
  29360. _ struct{} `type:"structure"`
  29361. // Checks whether you have the required permissions for the action, without
  29362. // actually making the request, and provides an error response. If you have
  29363. // the required permissions, the error response is DryRunOperation. Otherwise,
  29364. // it is UnauthorizedOperation.
  29365. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29366. // The ID of the virtual private gateway.
  29367. //
  29368. // VpnGatewayId is a required field
  29369. VpnGatewayId *string `type:"string" required:"true"`
  29370. }
  29371. // String returns the string representation
  29372. func (s DeleteVpnGatewayInput) String() string {
  29373. return awsutil.Prettify(s)
  29374. }
  29375. // GoString returns the string representation
  29376. func (s DeleteVpnGatewayInput) GoString() string {
  29377. return s.String()
  29378. }
  29379. // Validate inspects the fields of the type to determine if they are valid.
  29380. func (s *DeleteVpnGatewayInput) Validate() error {
  29381. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnGatewayInput"}
  29382. if s.VpnGatewayId == nil {
  29383. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  29384. }
  29385. if invalidParams.Len() > 0 {
  29386. return invalidParams
  29387. }
  29388. return nil
  29389. }
  29390. // SetDryRun sets the DryRun field's value.
  29391. func (s *DeleteVpnGatewayInput) SetDryRun(v bool) *DeleteVpnGatewayInput {
  29392. s.DryRun = &v
  29393. return s
  29394. }
  29395. // SetVpnGatewayId sets the VpnGatewayId field's value.
  29396. func (s *DeleteVpnGatewayInput) SetVpnGatewayId(v string) *DeleteVpnGatewayInput {
  29397. s.VpnGatewayId = &v
  29398. return s
  29399. }
  29400. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteVpnGatewayOutput
  29401. type DeleteVpnGatewayOutput struct {
  29402. _ struct{} `type:"structure"`
  29403. }
  29404. // String returns the string representation
  29405. func (s DeleteVpnGatewayOutput) String() string {
  29406. return awsutil.Prettify(s)
  29407. }
  29408. // GoString returns the string representation
  29409. func (s DeleteVpnGatewayOutput) GoString() string {
  29410. return s.String()
  29411. }
  29412. // Contains the parameters for DeregisterImage.
  29413. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImageRequest
  29414. type DeregisterImageInput 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 `locationName:"dryRun" type:"boolean"`
  29421. // The ID of the AMI.
  29422. //
  29423. // ImageId is a required field
  29424. ImageId *string `type:"string" required:"true"`
  29425. }
  29426. // String returns the string representation
  29427. func (s DeregisterImageInput) String() string {
  29428. return awsutil.Prettify(s)
  29429. }
  29430. // GoString returns the string representation
  29431. func (s DeregisterImageInput) GoString() string {
  29432. return s.String()
  29433. }
  29434. // Validate inspects the fields of the type to determine if they are valid.
  29435. func (s *DeregisterImageInput) Validate() error {
  29436. invalidParams := request.ErrInvalidParams{Context: "DeregisterImageInput"}
  29437. if s.ImageId == nil {
  29438. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  29439. }
  29440. if invalidParams.Len() > 0 {
  29441. return invalidParams
  29442. }
  29443. return nil
  29444. }
  29445. // SetDryRun sets the DryRun field's value.
  29446. func (s *DeregisterImageInput) SetDryRun(v bool) *DeregisterImageInput {
  29447. s.DryRun = &v
  29448. return s
  29449. }
  29450. // SetImageId sets the ImageId field's value.
  29451. func (s *DeregisterImageInput) SetImageId(v string) *DeregisterImageInput {
  29452. s.ImageId = &v
  29453. return s
  29454. }
  29455. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeregisterImageOutput
  29456. type DeregisterImageOutput struct {
  29457. _ struct{} `type:"structure"`
  29458. }
  29459. // String returns the string representation
  29460. func (s DeregisterImageOutput) String() string {
  29461. return awsutil.Prettify(s)
  29462. }
  29463. // GoString returns the string representation
  29464. func (s DeregisterImageOutput) GoString() string {
  29465. return s.String()
  29466. }
  29467. // Contains the parameters for DescribeAccountAttributes.
  29468. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributesRequest
  29469. type DescribeAccountAttributesInput struct {
  29470. _ struct{} `type:"structure"`
  29471. // One or more account attribute names.
  29472. AttributeNames []*string `locationName:"attributeName" locationNameList:"attributeName" type:"list"`
  29473. // Checks whether you have the required permissions for the action, without
  29474. // actually making the request, and provides an error response. If you have
  29475. // the required permissions, the error response is DryRunOperation. Otherwise,
  29476. // it is UnauthorizedOperation.
  29477. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29478. }
  29479. // String returns the string representation
  29480. func (s DescribeAccountAttributesInput) String() string {
  29481. return awsutil.Prettify(s)
  29482. }
  29483. // GoString returns the string representation
  29484. func (s DescribeAccountAttributesInput) GoString() string {
  29485. return s.String()
  29486. }
  29487. // SetAttributeNames sets the AttributeNames field's value.
  29488. func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput {
  29489. s.AttributeNames = v
  29490. return s
  29491. }
  29492. // SetDryRun sets the DryRun field's value.
  29493. func (s *DescribeAccountAttributesInput) SetDryRun(v bool) *DescribeAccountAttributesInput {
  29494. s.DryRun = &v
  29495. return s
  29496. }
  29497. // Contains the output of DescribeAccountAttributes.
  29498. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributesResult
  29499. type DescribeAccountAttributesOutput struct {
  29500. _ struct{} `type:"structure"`
  29501. // Information about one or more account attributes.
  29502. AccountAttributes []*AccountAttribute `locationName:"accountAttributeSet" locationNameList:"item" type:"list"`
  29503. }
  29504. // String returns the string representation
  29505. func (s DescribeAccountAttributesOutput) String() string {
  29506. return awsutil.Prettify(s)
  29507. }
  29508. // GoString returns the string representation
  29509. func (s DescribeAccountAttributesOutput) GoString() string {
  29510. return s.String()
  29511. }
  29512. // SetAccountAttributes sets the AccountAttributes field's value.
  29513. func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput {
  29514. s.AccountAttributes = v
  29515. return s
  29516. }
  29517. // Contains the parameters for DescribeAddresses.
  29518. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddressesRequest
  29519. type DescribeAddressesInput struct {
  29520. _ struct{} `type:"structure"`
  29521. // [EC2-VPC] One or more allocation IDs.
  29522. //
  29523. // Default: Describes all your Elastic IP addresses.
  29524. AllocationIds []*string `locationName:"AllocationId" locationNameList:"AllocationId" type:"list"`
  29525. // Checks whether you have the required permissions for the action, without
  29526. // actually making the request, and provides an error response. If you have
  29527. // the required permissions, the error response is DryRunOperation. Otherwise,
  29528. // it is UnauthorizedOperation.
  29529. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29530. // One or more filters. Filter names and values are case-sensitive.
  29531. //
  29532. // * allocation-id - [EC2-VPC] The allocation ID for the address.
  29533. //
  29534. // * association-id - [EC2-VPC] The association ID for the address.
  29535. //
  29536. // * domain - Indicates whether the address is for use in EC2-Classic (standard)
  29537. // or in a VPC (vpc).
  29538. //
  29539. // * instance-id - The ID of the instance the address is associated with,
  29540. // if any.
  29541. //
  29542. // * network-interface-id - [EC2-VPC] The ID of the network interface that
  29543. // the address is associated with, if any.
  29544. //
  29545. // * network-interface-owner-id - The AWS account ID of the owner.
  29546. //
  29547. // * private-ip-address - [EC2-VPC] The private IP address associated with
  29548. // the Elastic IP address.
  29549. //
  29550. // * public-ip - The Elastic IP address.
  29551. //
  29552. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  29553. // Specify the key of the tag in the filter name and the value of the tag
  29554. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  29555. // for the filter name and X for the filter value.
  29556. //
  29557. // * tag-key - The key of a tag assigned to the resource. This filter is
  29558. // independent of the tag-value filter. For example, if you use both the
  29559. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  29560. // assigned both the tag key Purpose (regardless of what the tag's value
  29561. // is), and the tag value X (regardless of the tag's key). If you want to
  29562. // list only resources where Purpose is X, see the tag:key=value filter.
  29563. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29564. // [EC2-Classic] One or more Elastic IP addresses.
  29565. //
  29566. // Default: Describes all your Elastic IP addresses.
  29567. PublicIps []*string `locationName:"PublicIp" locationNameList:"PublicIp" type:"list"`
  29568. }
  29569. // String returns the string representation
  29570. func (s DescribeAddressesInput) String() string {
  29571. return awsutil.Prettify(s)
  29572. }
  29573. // GoString returns the string representation
  29574. func (s DescribeAddressesInput) GoString() string {
  29575. return s.String()
  29576. }
  29577. // SetAllocationIds sets the AllocationIds field's value.
  29578. func (s *DescribeAddressesInput) SetAllocationIds(v []*string) *DescribeAddressesInput {
  29579. s.AllocationIds = v
  29580. return s
  29581. }
  29582. // SetDryRun sets the DryRun field's value.
  29583. func (s *DescribeAddressesInput) SetDryRun(v bool) *DescribeAddressesInput {
  29584. s.DryRun = &v
  29585. return s
  29586. }
  29587. // SetFilters sets the Filters field's value.
  29588. func (s *DescribeAddressesInput) SetFilters(v []*Filter) *DescribeAddressesInput {
  29589. s.Filters = v
  29590. return s
  29591. }
  29592. // SetPublicIps sets the PublicIps field's value.
  29593. func (s *DescribeAddressesInput) SetPublicIps(v []*string) *DescribeAddressesInput {
  29594. s.PublicIps = v
  29595. return s
  29596. }
  29597. // Contains the output of DescribeAddresses.
  29598. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAddressesResult
  29599. type DescribeAddressesOutput struct {
  29600. _ struct{} `type:"structure"`
  29601. // Information about one or more Elastic IP addresses.
  29602. Addresses []*Address `locationName:"addressesSet" locationNameList:"item" type:"list"`
  29603. }
  29604. // String returns the string representation
  29605. func (s DescribeAddressesOutput) String() string {
  29606. return awsutil.Prettify(s)
  29607. }
  29608. // GoString returns the string representation
  29609. func (s DescribeAddressesOutput) GoString() string {
  29610. return s.String()
  29611. }
  29612. // SetAddresses sets the Addresses field's value.
  29613. func (s *DescribeAddressesOutput) SetAddresses(v []*Address) *DescribeAddressesOutput {
  29614. s.Addresses = v
  29615. return s
  29616. }
  29617. // Contains the parameters for DescribeAvailabilityZones.
  29618. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZonesRequest
  29619. type DescribeAvailabilityZonesInput struct {
  29620. _ struct{} `type:"structure"`
  29621. // Checks whether you have the required permissions for the action, without
  29622. // actually making the request, and provides an error response. If you have
  29623. // the required permissions, the error response is DryRunOperation. Otherwise,
  29624. // it is UnauthorizedOperation.
  29625. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29626. // One or more filters.
  29627. //
  29628. // * message - Information about the Availability Zone.
  29629. //
  29630. // * region-name - The name of the region for the Availability Zone (for
  29631. // example, us-east-1).
  29632. //
  29633. // * state - The state of the Availability Zone (available | information
  29634. // | impaired | unavailable).
  29635. //
  29636. // * zone-name - The name of the Availability Zone (for example, us-east-1a).
  29637. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29638. // The names of one or more Availability Zones.
  29639. ZoneNames []*string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"`
  29640. }
  29641. // String returns the string representation
  29642. func (s DescribeAvailabilityZonesInput) String() string {
  29643. return awsutil.Prettify(s)
  29644. }
  29645. // GoString returns the string representation
  29646. func (s DescribeAvailabilityZonesInput) GoString() string {
  29647. return s.String()
  29648. }
  29649. // SetDryRun sets the DryRun field's value.
  29650. func (s *DescribeAvailabilityZonesInput) SetDryRun(v bool) *DescribeAvailabilityZonesInput {
  29651. s.DryRun = &v
  29652. return s
  29653. }
  29654. // SetFilters sets the Filters field's value.
  29655. func (s *DescribeAvailabilityZonesInput) SetFilters(v []*Filter) *DescribeAvailabilityZonesInput {
  29656. s.Filters = v
  29657. return s
  29658. }
  29659. // SetZoneNames sets the ZoneNames field's value.
  29660. func (s *DescribeAvailabilityZonesInput) SetZoneNames(v []*string) *DescribeAvailabilityZonesInput {
  29661. s.ZoneNames = v
  29662. return s
  29663. }
  29664. // Contains the output of DescribeAvailabiltyZones.
  29665. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAvailabilityZonesResult
  29666. type DescribeAvailabilityZonesOutput struct {
  29667. _ struct{} `type:"structure"`
  29668. // Information about one or more Availability Zones.
  29669. AvailabilityZones []*AvailabilityZone `locationName:"availabilityZoneInfo" locationNameList:"item" type:"list"`
  29670. }
  29671. // String returns the string representation
  29672. func (s DescribeAvailabilityZonesOutput) String() string {
  29673. return awsutil.Prettify(s)
  29674. }
  29675. // GoString returns the string representation
  29676. func (s DescribeAvailabilityZonesOutput) GoString() string {
  29677. return s.String()
  29678. }
  29679. // SetAvailabilityZones sets the AvailabilityZones field's value.
  29680. func (s *DescribeAvailabilityZonesOutput) SetAvailabilityZones(v []*AvailabilityZone) *DescribeAvailabilityZonesOutput {
  29681. s.AvailabilityZones = v
  29682. return s
  29683. }
  29684. // Contains the parameters for DescribeBundleTasks.
  29685. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasksRequest
  29686. type DescribeBundleTasksInput struct {
  29687. _ struct{} `type:"structure"`
  29688. // One or more bundle task IDs.
  29689. //
  29690. // Default: Describes all your bundle tasks.
  29691. BundleIds []*string `locationName:"BundleId" locationNameList:"BundleId" type:"list"`
  29692. // Checks whether you have the required permissions for the action, without
  29693. // actually making the request, and provides an error response. If you have
  29694. // the required permissions, the error response is DryRunOperation. Otherwise,
  29695. // it is UnauthorizedOperation.
  29696. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29697. // One or more filters.
  29698. //
  29699. // * bundle-id - The ID of the bundle task.
  29700. //
  29701. // * error-code - If the task failed, the error code returned.
  29702. //
  29703. // * error-message - If the task failed, the error message returned.
  29704. //
  29705. // * instance-id - The ID of the instance.
  29706. //
  29707. // * progress - The level of task completion, as a percentage (for example,
  29708. // 20%).
  29709. //
  29710. // * s3-bucket - The Amazon S3 bucket to store the AMI.
  29711. //
  29712. // * s3-prefix - The beginning of the AMI name.
  29713. //
  29714. // * start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).
  29715. //
  29716. // * state - The state of the task (pending | waiting-for-shutdown | bundling
  29717. // | storing | cancelling | complete | failed).
  29718. //
  29719. // * update-time - The time of the most recent update for the task.
  29720. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29721. }
  29722. // String returns the string representation
  29723. func (s DescribeBundleTasksInput) String() string {
  29724. return awsutil.Prettify(s)
  29725. }
  29726. // GoString returns the string representation
  29727. func (s DescribeBundleTasksInput) GoString() string {
  29728. return s.String()
  29729. }
  29730. // SetBundleIds sets the BundleIds field's value.
  29731. func (s *DescribeBundleTasksInput) SetBundleIds(v []*string) *DescribeBundleTasksInput {
  29732. s.BundleIds = v
  29733. return s
  29734. }
  29735. // SetDryRun sets the DryRun field's value.
  29736. func (s *DescribeBundleTasksInput) SetDryRun(v bool) *DescribeBundleTasksInput {
  29737. s.DryRun = &v
  29738. return s
  29739. }
  29740. // SetFilters sets the Filters field's value.
  29741. func (s *DescribeBundleTasksInput) SetFilters(v []*Filter) *DescribeBundleTasksInput {
  29742. s.Filters = v
  29743. return s
  29744. }
  29745. // Contains the output of DescribeBundleTasks.
  29746. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeBundleTasksResult
  29747. type DescribeBundleTasksOutput struct {
  29748. _ struct{} `type:"structure"`
  29749. // Information about one or more bundle tasks.
  29750. BundleTasks []*BundleTask `locationName:"bundleInstanceTasksSet" locationNameList:"item" type:"list"`
  29751. }
  29752. // String returns the string representation
  29753. func (s DescribeBundleTasksOutput) String() string {
  29754. return awsutil.Prettify(s)
  29755. }
  29756. // GoString returns the string representation
  29757. func (s DescribeBundleTasksOutput) GoString() string {
  29758. return s.String()
  29759. }
  29760. // SetBundleTasks sets the BundleTasks field's value.
  29761. func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBundleTasksOutput {
  29762. s.BundleTasks = v
  29763. return s
  29764. }
  29765. // Contains the parameters for DescribeClassicLinkInstances.
  29766. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstancesRequest
  29767. type DescribeClassicLinkInstancesInput struct {
  29768. _ struct{} `type:"structure"`
  29769. // Checks whether you have the required permissions for the action, without
  29770. // actually making the request, and provides an error response. If you have
  29771. // the required permissions, the error response is DryRunOperation. Otherwise,
  29772. // it is UnauthorizedOperation.
  29773. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29774. // One or more filters.
  29775. //
  29776. // * group-id - The ID of a VPC security group that's associated with the
  29777. // instance.
  29778. //
  29779. // * instance-id - The ID of the instance.
  29780. //
  29781. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  29782. //
  29783. // * tag-key - The key of a tag assigned to the resource. This filter is
  29784. // independent of the tag-value filter. For example, if you use both the
  29785. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  29786. // assigned both the tag key Purpose (regardless of what the tag's value
  29787. // is), and the tag value X (regardless of what the tag's key is). If you
  29788. // want to list only resources where Purpose is X, see the tag:key=value
  29789. // filter.
  29790. //
  29791. // * tag-value - The value of a tag assigned to the resource. This filter
  29792. // is independent of the tag-key filter.
  29793. //
  29794. // * vpc-id - The ID of the VPC that the instance is linked to.
  29795. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29796. // One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
  29797. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  29798. // The maximum number of results to return for the request in a single page.
  29799. // The remaining results of the initial request can be seen by sending another
  29800. // request with the returned NextToken value. This value can be between 5 and
  29801. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  29802. // are returned. You cannot specify this parameter and the instance IDs parameter
  29803. // in the same request.
  29804. //
  29805. // Constraint: If the value is greater than 1000, we return only 1000 items.
  29806. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  29807. // The token to retrieve the next page of results.
  29808. NextToken *string `locationName:"nextToken" type:"string"`
  29809. }
  29810. // String returns the string representation
  29811. func (s DescribeClassicLinkInstancesInput) String() string {
  29812. return awsutil.Prettify(s)
  29813. }
  29814. // GoString returns the string representation
  29815. func (s DescribeClassicLinkInstancesInput) GoString() string {
  29816. return s.String()
  29817. }
  29818. // SetDryRun sets the DryRun field's value.
  29819. func (s *DescribeClassicLinkInstancesInput) SetDryRun(v bool) *DescribeClassicLinkInstancesInput {
  29820. s.DryRun = &v
  29821. return s
  29822. }
  29823. // SetFilters sets the Filters field's value.
  29824. func (s *DescribeClassicLinkInstancesInput) SetFilters(v []*Filter) *DescribeClassicLinkInstancesInput {
  29825. s.Filters = v
  29826. return s
  29827. }
  29828. // SetInstanceIds sets the InstanceIds field's value.
  29829. func (s *DescribeClassicLinkInstancesInput) SetInstanceIds(v []*string) *DescribeClassicLinkInstancesInput {
  29830. s.InstanceIds = v
  29831. return s
  29832. }
  29833. // SetMaxResults sets the MaxResults field's value.
  29834. func (s *DescribeClassicLinkInstancesInput) SetMaxResults(v int64) *DescribeClassicLinkInstancesInput {
  29835. s.MaxResults = &v
  29836. return s
  29837. }
  29838. // SetNextToken sets the NextToken field's value.
  29839. func (s *DescribeClassicLinkInstancesInput) SetNextToken(v string) *DescribeClassicLinkInstancesInput {
  29840. s.NextToken = &v
  29841. return s
  29842. }
  29843. // Contains the output of DescribeClassicLinkInstances.
  29844. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstancesResult
  29845. type DescribeClassicLinkInstancesOutput struct {
  29846. _ struct{} `type:"structure"`
  29847. // Information about one or more linked EC2-Classic instances.
  29848. Instances []*ClassicLinkInstance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  29849. // The token to use to retrieve the next page of results. This value is null
  29850. // when there are no more results to return.
  29851. NextToken *string `locationName:"nextToken" type:"string"`
  29852. }
  29853. // String returns the string representation
  29854. func (s DescribeClassicLinkInstancesOutput) String() string {
  29855. return awsutil.Prettify(s)
  29856. }
  29857. // GoString returns the string representation
  29858. func (s DescribeClassicLinkInstancesOutput) GoString() string {
  29859. return s.String()
  29860. }
  29861. // SetInstances sets the Instances field's value.
  29862. func (s *DescribeClassicLinkInstancesOutput) SetInstances(v []*ClassicLinkInstance) *DescribeClassicLinkInstancesOutput {
  29863. s.Instances = v
  29864. return s
  29865. }
  29866. // SetNextToken sets the NextToken field's value.
  29867. func (s *DescribeClassicLinkInstancesOutput) SetNextToken(v string) *DescribeClassicLinkInstancesOutput {
  29868. s.NextToken = &v
  29869. return s
  29870. }
  29871. // Contains the parameters for DescribeConversionTasks.
  29872. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasksRequest
  29873. type DescribeConversionTasksInput struct {
  29874. _ struct{} `type:"structure"`
  29875. // One or more conversion task IDs.
  29876. ConversionTaskIds []*string `locationName:"conversionTaskId" locationNameList:"item" type:"list"`
  29877. // Checks whether you have the required permissions for the action, without
  29878. // actually making the request, and provides an error response. If you have
  29879. // the required permissions, the error response is DryRunOperation. Otherwise,
  29880. // it is UnauthorizedOperation.
  29881. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29882. }
  29883. // String returns the string representation
  29884. func (s DescribeConversionTasksInput) String() string {
  29885. return awsutil.Prettify(s)
  29886. }
  29887. // GoString returns the string representation
  29888. func (s DescribeConversionTasksInput) GoString() string {
  29889. return s.String()
  29890. }
  29891. // SetConversionTaskIds sets the ConversionTaskIds field's value.
  29892. func (s *DescribeConversionTasksInput) SetConversionTaskIds(v []*string) *DescribeConversionTasksInput {
  29893. s.ConversionTaskIds = v
  29894. return s
  29895. }
  29896. // SetDryRun sets the DryRun field's value.
  29897. func (s *DescribeConversionTasksInput) SetDryRun(v bool) *DescribeConversionTasksInput {
  29898. s.DryRun = &v
  29899. return s
  29900. }
  29901. // Contains the output for DescribeConversionTasks.
  29902. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeConversionTasksResult
  29903. type DescribeConversionTasksOutput struct {
  29904. _ struct{} `type:"structure"`
  29905. // Information about the conversion tasks.
  29906. ConversionTasks []*ConversionTask `locationName:"conversionTasks" locationNameList:"item" type:"list"`
  29907. }
  29908. // String returns the string representation
  29909. func (s DescribeConversionTasksOutput) String() string {
  29910. return awsutil.Prettify(s)
  29911. }
  29912. // GoString returns the string representation
  29913. func (s DescribeConversionTasksOutput) GoString() string {
  29914. return s.String()
  29915. }
  29916. // SetConversionTasks sets the ConversionTasks field's value.
  29917. func (s *DescribeConversionTasksOutput) SetConversionTasks(v []*ConversionTask) *DescribeConversionTasksOutput {
  29918. s.ConversionTasks = v
  29919. return s
  29920. }
  29921. // Contains the parameters for DescribeCustomerGateways.
  29922. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGatewaysRequest
  29923. type DescribeCustomerGatewaysInput struct {
  29924. _ struct{} `type:"structure"`
  29925. // One or more customer gateway IDs.
  29926. //
  29927. // Default: Describes all your customer gateways.
  29928. CustomerGatewayIds []*string `locationName:"CustomerGatewayId" locationNameList:"CustomerGatewayId" type:"list"`
  29929. // Checks whether you have the required permissions for the action, without
  29930. // actually making the request, and provides an error response. If you have
  29931. // the required permissions, the error response is DryRunOperation. Otherwise,
  29932. // it is UnauthorizedOperation.
  29933. DryRun *bool `locationName:"dryRun" type:"boolean"`
  29934. // One or more filters.
  29935. //
  29936. // * bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous
  29937. // System Number (ASN).
  29938. //
  29939. // * customer-gateway-id - The ID of the customer gateway.
  29940. //
  29941. // * ip-address - The IP address of the customer gateway's Internet-routable
  29942. // external interface.
  29943. //
  29944. // * state - The state of the customer gateway (pending | available | deleting
  29945. // | deleted).
  29946. //
  29947. // * type - The type of customer gateway. Currently, the only supported type
  29948. // is ipsec.1.
  29949. //
  29950. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  29951. // Specify the key of the tag in the filter name and the value of the tag
  29952. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  29953. // for the filter name and X for the filter value.
  29954. //
  29955. // * tag-key - The key of a tag assigned to the resource. This filter is
  29956. // independent of the tag-value filter. For example, if you use both the
  29957. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  29958. // assigned both the tag key Purpose (regardless of what the tag's value
  29959. // is), and the tag value X (regardless of what the tag's key is). If you
  29960. // want to list only resources where Purpose is X, see the tag:key=value
  29961. // filter.
  29962. //
  29963. // * tag-value - The value of a tag assigned to the resource. This filter
  29964. // is independent of the tag-key filter.
  29965. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  29966. }
  29967. // String returns the string representation
  29968. func (s DescribeCustomerGatewaysInput) String() string {
  29969. return awsutil.Prettify(s)
  29970. }
  29971. // GoString returns the string representation
  29972. func (s DescribeCustomerGatewaysInput) GoString() string {
  29973. return s.String()
  29974. }
  29975. // SetCustomerGatewayIds sets the CustomerGatewayIds field's value.
  29976. func (s *DescribeCustomerGatewaysInput) SetCustomerGatewayIds(v []*string) *DescribeCustomerGatewaysInput {
  29977. s.CustomerGatewayIds = v
  29978. return s
  29979. }
  29980. // SetDryRun sets the DryRun field's value.
  29981. func (s *DescribeCustomerGatewaysInput) SetDryRun(v bool) *DescribeCustomerGatewaysInput {
  29982. s.DryRun = &v
  29983. return s
  29984. }
  29985. // SetFilters sets the Filters field's value.
  29986. func (s *DescribeCustomerGatewaysInput) SetFilters(v []*Filter) *DescribeCustomerGatewaysInput {
  29987. s.Filters = v
  29988. return s
  29989. }
  29990. // Contains the output of DescribeCustomerGateways.
  29991. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCustomerGatewaysResult
  29992. type DescribeCustomerGatewaysOutput struct {
  29993. _ struct{} `type:"structure"`
  29994. // Information about one or more customer gateways.
  29995. CustomerGateways []*CustomerGateway `locationName:"customerGatewaySet" locationNameList:"item" type:"list"`
  29996. }
  29997. // String returns the string representation
  29998. func (s DescribeCustomerGatewaysOutput) String() string {
  29999. return awsutil.Prettify(s)
  30000. }
  30001. // GoString returns the string representation
  30002. func (s DescribeCustomerGatewaysOutput) GoString() string {
  30003. return s.String()
  30004. }
  30005. // SetCustomerGateways sets the CustomerGateways field's value.
  30006. func (s *DescribeCustomerGatewaysOutput) SetCustomerGateways(v []*CustomerGateway) *DescribeCustomerGatewaysOutput {
  30007. s.CustomerGateways = v
  30008. return s
  30009. }
  30010. // Contains the parameters for DescribeDhcpOptions.
  30011. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptionsRequest
  30012. type DescribeDhcpOptionsInput struct {
  30013. _ struct{} `type:"structure"`
  30014. // The IDs of one or more DHCP options sets.
  30015. //
  30016. // Default: Describes all your DHCP options sets.
  30017. DhcpOptionsIds []*string `locationName:"DhcpOptionsId" locationNameList:"DhcpOptionsId" type:"list"`
  30018. // Checks whether you have the required permissions for the action, without
  30019. // actually making the request, and provides an error response. If you have
  30020. // the required permissions, the error response is DryRunOperation. Otherwise,
  30021. // it is UnauthorizedOperation.
  30022. DryRun *bool `locationName:"dryRun" type:"boolean"`
  30023. // One or more filters.
  30024. //
  30025. // * dhcp-options-id - The ID of a set of DHCP options.
  30026. //
  30027. // * key - The key for one of the options (for example, domain-name).
  30028. //
  30029. // * value - The value for one of the options.
  30030. //
  30031. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  30032. // Specify the key of the tag in the filter name and the value of the tag
  30033. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  30034. // for the filter name and X for the filter value.
  30035. //
  30036. // * tag-key - The key of a tag assigned to the resource. This filter is
  30037. // independent of the tag-value filter. For example, if you use both the
  30038. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  30039. // assigned both the tag key Purpose (regardless of what the tag's value
  30040. // is), and the tag value X (regardless of what the tag's key is). If you
  30041. // want to list only resources where Purpose is X, see the tag:key=value
  30042. // filter.
  30043. //
  30044. // * tag-value - The value of a tag assigned to the resource. This filter
  30045. // is independent of the tag-key filter.
  30046. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30047. }
  30048. // String returns the string representation
  30049. func (s DescribeDhcpOptionsInput) String() string {
  30050. return awsutil.Prettify(s)
  30051. }
  30052. // GoString returns the string representation
  30053. func (s DescribeDhcpOptionsInput) GoString() string {
  30054. return s.String()
  30055. }
  30056. // SetDhcpOptionsIds sets the DhcpOptionsIds field's value.
  30057. func (s *DescribeDhcpOptionsInput) SetDhcpOptionsIds(v []*string) *DescribeDhcpOptionsInput {
  30058. s.DhcpOptionsIds = v
  30059. return s
  30060. }
  30061. // SetDryRun sets the DryRun field's value.
  30062. func (s *DescribeDhcpOptionsInput) SetDryRun(v bool) *DescribeDhcpOptionsInput {
  30063. s.DryRun = &v
  30064. return s
  30065. }
  30066. // SetFilters sets the Filters field's value.
  30067. func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsInput {
  30068. s.Filters = v
  30069. return s
  30070. }
  30071. // Contains the output of DescribeDhcpOptions.
  30072. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeDhcpOptionsResult
  30073. type DescribeDhcpOptionsOutput struct {
  30074. _ struct{} `type:"structure"`
  30075. // Information about one or more DHCP options sets.
  30076. DhcpOptions []*DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"`
  30077. }
  30078. // String returns the string representation
  30079. func (s DescribeDhcpOptionsOutput) String() string {
  30080. return awsutil.Prettify(s)
  30081. }
  30082. // GoString returns the string representation
  30083. func (s DescribeDhcpOptionsOutput) GoString() string {
  30084. return s.String()
  30085. }
  30086. // SetDhcpOptions sets the DhcpOptions field's value.
  30087. func (s *DescribeDhcpOptionsOutput) SetDhcpOptions(v []*DhcpOptions) *DescribeDhcpOptionsOutput {
  30088. s.DhcpOptions = v
  30089. return s
  30090. }
  30091. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGatewaysRequest
  30092. type DescribeEgressOnlyInternetGatewaysInput struct {
  30093. _ struct{} `type:"structure"`
  30094. // Checks whether you have the required permissions for the action, without
  30095. // actually making the request, and provides an error response. If you have
  30096. // the required permissions, the error response is DryRunOperation. Otherwise,
  30097. // it is UnauthorizedOperation.
  30098. DryRun *bool `type:"boolean"`
  30099. // One or more egress-only Internet gateway IDs.
  30100. EgressOnlyInternetGatewayIds []*string `locationName:"EgressOnlyInternetGatewayId" locationNameList:"item" type:"list"`
  30101. // The maximum number of results to return for the request in a single page.
  30102. // The remaining results can be seen by sending another request with the returned
  30103. // NextToken value. This value can be between 5 and 1000; if MaxResults is given
  30104. // a value larger than 1000, only 1000 results are returned.
  30105. MaxResults *int64 `type:"integer"`
  30106. // The token to retrieve the next page of results.
  30107. NextToken *string `type:"string"`
  30108. }
  30109. // String returns the string representation
  30110. func (s DescribeEgressOnlyInternetGatewaysInput) String() string {
  30111. return awsutil.Prettify(s)
  30112. }
  30113. // GoString returns the string representation
  30114. func (s DescribeEgressOnlyInternetGatewaysInput) GoString() string {
  30115. return s.String()
  30116. }
  30117. // SetDryRun sets the DryRun field's value.
  30118. func (s *DescribeEgressOnlyInternetGatewaysInput) SetDryRun(v bool) *DescribeEgressOnlyInternetGatewaysInput {
  30119. s.DryRun = &v
  30120. return s
  30121. }
  30122. // SetEgressOnlyInternetGatewayIds sets the EgressOnlyInternetGatewayIds field's value.
  30123. func (s *DescribeEgressOnlyInternetGatewaysInput) SetEgressOnlyInternetGatewayIds(v []*string) *DescribeEgressOnlyInternetGatewaysInput {
  30124. s.EgressOnlyInternetGatewayIds = v
  30125. return s
  30126. }
  30127. // SetMaxResults sets the MaxResults field's value.
  30128. func (s *DescribeEgressOnlyInternetGatewaysInput) SetMaxResults(v int64) *DescribeEgressOnlyInternetGatewaysInput {
  30129. s.MaxResults = &v
  30130. return s
  30131. }
  30132. // SetNextToken sets the NextToken field's value.
  30133. func (s *DescribeEgressOnlyInternetGatewaysInput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysInput {
  30134. s.NextToken = &v
  30135. return s
  30136. }
  30137. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGatewaysResult
  30138. type DescribeEgressOnlyInternetGatewaysOutput struct {
  30139. _ struct{} `type:"structure"`
  30140. // Information about the egress-only Internet gateways.
  30141. EgressOnlyInternetGateways []*EgressOnlyInternetGateway `locationName:"egressOnlyInternetGatewaySet" locationNameList:"item" type:"list"`
  30142. // The token to use to retrieve the next page of results.
  30143. NextToken *string `locationName:"nextToken" type:"string"`
  30144. }
  30145. // String returns the string representation
  30146. func (s DescribeEgressOnlyInternetGatewaysOutput) String() string {
  30147. return awsutil.Prettify(s)
  30148. }
  30149. // GoString returns the string representation
  30150. func (s DescribeEgressOnlyInternetGatewaysOutput) GoString() string {
  30151. return s.String()
  30152. }
  30153. // SetEgressOnlyInternetGateways sets the EgressOnlyInternetGateways field's value.
  30154. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetEgressOnlyInternetGateways(v []*EgressOnlyInternetGateway) *DescribeEgressOnlyInternetGatewaysOutput {
  30155. s.EgressOnlyInternetGateways = v
  30156. return s
  30157. }
  30158. // SetNextToken sets the NextToken field's value.
  30159. func (s *DescribeEgressOnlyInternetGatewaysOutput) SetNextToken(v string) *DescribeEgressOnlyInternetGatewaysOutput {
  30160. s.NextToken = &v
  30161. return s
  30162. }
  30163. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpusRequest
  30164. type DescribeElasticGpusInput struct {
  30165. _ struct{} `type:"structure"`
  30166. // Checks whether you have the required permissions for the action, without
  30167. // actually making the request, and provides an error response. If you have
  30168. // the required permissions, the error response is DryRunOperation. Otherwise,
  30169. // it is UnauthorizedOperation.
  30170. DryRun *bool `type:"boolean"`
  30171. // One or more Elastic GPU IDs.
  30172. ElasticGpuIds []*string `locationName:"ElasticGpuId" locationNameList:"item" type:"list"`
  30173. // One or more filters.
  30174. //
  30175. // * availability-zone - The Availability Zone in which the Elastic GPU resides.
  30176. //
  30177. // * elastic-gpu-health - The status of the Elastic GPU (OK | IMPAIRED).
  30178. //
  30179. // * elastic-gpu-state - The state of the Elastic GPU (ATTACHED).
  30180. //
  30181. // * elastic-gpu-type - The type of Elastic GPU; for example, eg1.medium.
  30182. //
  30183. // * instance-id - The ID of the instance to which the Elastic GPU is associated.
  30184. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30185. // The maximum number of results to return in a single call. To retrieve the
  30186. // remaining results, make another call with the returned NextToken value. This
  30187. // value can be between 5 and 1000.
  30188. MaxResults *int64 `type:"integer"`
  30189. // The token to request the next page of results.
  30190. NextToken *string `type:"string"`
  30191. }
  30192. // String returns the string representation
  30193. func (s DescribeElasticGpusInput) String() string {
  30194. return awsutil.Prettify(s)
  30195. }
  30196. // GoString returns the string representation
  30197. func (s DescribeElasticGpusInput) GoString() string {
  30198. return s.String()
  30199. }
  30200. // SetDryRun sets the DryRun field's value.
  30201. func (s *DescribeElasticGpusInput) SetDryRun(v bool) *DescribeElasticGpusInput {
  30202. s.DryRun = &v
  30203. return s
  30204. }
  30205. // SetElasticGpuIds sets the ElasticGpuIds field's value.
  30206. func (s *DescribeElasticGpusInput) SetElasticGpuIds(v []*string) *DescribeElasticGpusInput {
  30207. s.ElasticGpuIds = v
  30208. return s
  30209. }
  30210. // SetFilters sets the Filters field's value.
  30211. func (s *DescribeElasticGpusInput) SetFilters(v []*Filter) *DescribeElasticGpusInput {
  30212. s.Filters = v
  30213. return s
  30214. }
  30215. // SetMaxResults sets the MaxResults field's value.
  30216. func (s *DescribeElasticGpusInput) SetMaxResults(v int64) *DescribeElasticGpusInput {
  30217. s.MaxResults = &v
  30218. return s
  30219. }
  30220. // SetNextToken sets the NextToken field's value.
  30221. func (s *DescribeElasticGpusInput) SetNextToken(v string) *DescribeElasticGpusInput {
  30222. s.NextToken = &v
  30223. return s
  30224. }
  30225. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeElasticGpusResult
  30226. type DescribeElasticGpusOutput struct {
  30227. _ struct{} `type:"structure"`
  30228. // Information about the Elastic GPUs.
  30229. ElasticGpuSet []*ElasticGpus `locationName:"elasticGpuSet" locationNameList:"item" type:"list"`
  30230. // The total number of items to return. If the total number of items available
  30231. // is more than the value specified in max-items then a Next-Token will be provided
  30232. // in the output that you can use to resume pagination.
  30233. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  30234. // The token to use to retrieve the next page of results. This value is null
  30235. // when there are no more results to return.
  30236. NextToken *string `locationName:"nextToken" type:"string"`
  30237. }
  30238. // String returns the string representation
  30239. func (s DescribeElasticGpusOutput) String() string {
  30240. return awsutil.Prettify(s)
  30241. }
  30242. // GoString returns the string representation
  30243. func (s DescribeElasticGpusOutput) GoString() string {
  30244. return s.String()
  30245. }
  30246. // SetElasticGpuSet sets the ElasticGpuSet field's value.
  30247. func (s *DescribeElasticGpusOutput) SetElasticGpuSet(v []*ElasticGpus) *DescribeElasticGpusOutput {
  30248. s.ElasticGpuSet = v
  30249. return s
  30250. }
  30251. // SetMaxResults sets the MaxResults field's value.
  30252. func (s *DescribeElasticGpusOutput) SetMaxResults(v int64) *DescribeElasticGpusOutput {
  30253. s.MaxResults = &v
  30254. return s
  30255. }
  30256. // SetNextToken sets the NextToken field's value.
  30257. func (s *DescribeElasticGpusOutput) SetNextToken(v string) *DescribeElasticGpusOutput {
  30258. s.NextToken = &v
  30259. return s
  30260. }
  30261. // Contains the parameters for DescribeExportTasks.
  30262. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasksRequest
  30263. type DescribeExportTasksInput struct {
  30264. _ struct{} `type:"structure"`
  30265. // One or more export task IDs.
  30266. ExportTaskIds []*string `locationName:"exportTaskId" locationNameList:"ExportTaskId" type:"list"`
  30267. }
  30268. // String returns the string representation
  30269. func (s DescribeExportTasksInput) String() string {
  30270. return awsutil.Prettify(s)
  30271. }
  30272. // GoString returns the string representation
  30273. func (s DescribeExportTasksInput) GoString() string {
  30274. return s.String()
  30275. }
  30276. // SetExportTaskIds sets the ExportTaskIds field's value.
  30277. func (s *DescribeExportTasksInput) SetExportTaskIds(v []*string) *DescribeExportTasksInput {
  30278. s.ExportTaskIds = v
  30279. return s
  30280. }
  30281. // Contains the output for DescribeExportTasks.
  30282. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeExportTasksResult
  30283. type DescribeExportTasksOutput struct {
  30284. _ struct{} `type:"structure"`
  30285. // Information about the export tasks.
  30286. ExportTasks []*ExportTask `locationName:"exportTaskSet" locationNameList:"item" type:"list"`
  30287. }
  30288. // String returns the string representation
  30289. func (s DescribeExportTasksOutput) String() string {
  30290. return awsutil.Prettify(s)
  30291. }
  30292. // GoString returns the string representation
  30293. func (s DescribeExportTasksOutput) GoString() string {
  30294. return s.String()
  30295. }
  30296. // SetExportTasks sets the ExportTasks field's value.
  30297. func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput {
  30298. s.ExportTasks = v
  30299. return s
  30300. }
  30301. // Contains the parameters for DescribeFlowLogs.
  30302. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogsRequest
  30303. type DescribeFlowLogsInput struct {
  30304. _ struct{} `type:"structure"`
  30305. // One or more filters.
  30306. //
  30307. // * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).
  30308. //
  30309. // * flow-log-id - The ID of the flow log.
  30310. //
  30311. // * log-group-name - The name of the log group.
  30312. //
  30313. // * resource-id - The ID of the VPC, subnet, or network interface.
  30314. //
  30315. // * traffic-type - The type of traffic (ACCEPT | REJECT | ALL)
  30316. Filter []*Filter `locationNameList:"Filter" type:"list"`
  30317. // One or more flow log IDs.
  30318. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list"`
  30319. // The maximum number of results to return for the request in a single page.
  30320. // The remaining results can be seen by sending another request with the returned
  30321. // NextToken value. This value can be between 5 and 1000; if MaxResults is given
  30322. // a value larger than 1000, only 1000 results are returned. You cannot specify
  30323. // this parameter and the flow log IDs parameter in the same request.
  30324. MaxResults *int64 `type:"integer"`
  30325. // The token to retrieve the next page of results.
  30326. NextToken *string `type:"string"`
  30327. }
  30328. // String returns the string representation
  30329. func (s DescribeFlowLogsInput) String() string {
  30330. return awsutil.Prettify(s)
  30331. }
  30332. // GoString returns the string representation
  30333. func (s DescribeFlowLogsInput) GoString() string {
  30334. return s.String()
  30335. }
  30336. // SetFilter sets the Filter field's value.
  30337. func (s *DescribeFlowLogsInput) SetFilter(v []*Filter) *DescribeFlowLogsInput {
  30338. s.Filter = v
  30339. return s
  30340. }
  30341. // SetFlowLogIds sets the FlowLogIds field's value.
  30342. func (s *DescribeFlowLogsInput) SetFlowLogIds(v []*string) *DescribeFlowLogsInput {
  30343. s.FlowLogIds = v
  30344. return s
  30345. }
  30346. // SetMaxResults sets the MaxResults field's value.
  30347. func (s *DescribeFlowLogsInput) SetMaxResults(v int64) *DescribeFlowLogsInput {
  30348. s.MaxResults = &v
  30349. return s
  30350. }
  30351. // SetNextToken sets the NextToken field's value.
  30352. func (s *DescribeFlowLogsInput) SetNextToken(v string) *DescribeFlowLogsInput {
  30353. s.NextToken = &v
  30354. return s
  30355. }
  30356. // Contains the output of DescribeFlowLogs.
  30357. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogsResult
  30358. type DescribeFlowLogsOutput struct {
  30359. _ struct{} `type:"structure"`
  30360. // Information about the flow logs.
  30361. FlowLogs []*FlowLog `locationName:"flowLogSet" locationNameList:"item" type:"list"`
  30362. // The token to use to retrieve the next page of results. This value is null
  30363. // when there are no more results to return.
  30364. NextToken *string `locationName:"nextToken" type:"string"`
  30365. }
  30366. // String returns the string representation
  30367. func (s DescribeFlowLogsOutput) String() string {
  30368. return awsutil.Prettify(s)
  30369. }
  30370. // GoString returns the string representation
  30371. func (s DescribeFlowLogsOutput) GoString() string {
  30372. return s.String()
  30373. }
  30374. // SetFlowLogs sets the FlowLogs field's value.
  30375. func (s *DescribeFlowLogsOutput) SetFlowLogs(v []*FlowLog) *DescribeFlowLogsOutput {
  30376. s.FlowLogs = v
  30377. return s
  30378. }
  30379. // SetNextToken sets the NextToken field's value.
  30380. func (s *DescribeFlowLogsOutput) SetNextToken(v string) *DescribeFlowLogsOutput {
  30381. s.NextToken = &v
  30382. return s
  30383. }
  30384. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttributeRequest
  30385. type DescribeFpgaImageAttributeInput struct {
  30386. _ struct{} `type:"structure"`
  30387. // The AFI attribute.
  30388. //
  30389. // Attribute is a required field
  30390. Attribute *string `type:"string" required:"true" enum:"FpgaImageAttributeName"`
  30391. // Checks whether you have the required permissions for the action, without
  30392. // actually making the request, and provides an error response. If you have
  30393. // the required permissions, the error response is DryRunOperation. Otherwise,
  30394. // it is UnauthorizedOperation.
  30395. DryRun *bool `type:"boolean"`
  30396. // The ID of the AFI.
  30397. //
  30398. // FpgaImageId is a required field
  30399. FpgaImageId *string `type:"string" required:"true"`
  30400. }
  30401. // String returns the string representation
  30402. func (s DescribeFpgaImageAttributeInput) String() string {
  30403. return awsutil.Prettify(s)
  30404. }
  30405. // GoString returns the string representation
  30406. func (s DescribeFpgaImageAttributeInput) GoString() string {
  30407. return s.String()
  30408. }
  30409. // Validate inspects the fields of the type to determine if they are valid.
  30410. func (s *DescribeFpgaImageAttributeInput) Validate() error {
  30411. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImageAttributeInput"}
  30412. if s.Attribute == nil {
  30413. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  30414. }
  30415. if s.FpgaImageId == nil {
  30416. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  30417. }
  30418. if invalidParams.Len() > 0 {
  30419. return invalidParams
  30420. }
  30421. return nil
  30422. }
  30423. // SetAttribute sets the Attribute field's value.
  30424. func (s *DescribeFpgaImageAttributeInput) SetAttribute(v string) *DescribeFpgaImageAttributeInput {
  30425. s.Attribute = &v
  30426. return s
  30427. }
  30428. // SetDryRun sets the DryRun field's value.
  30429. func (s *DescribeFpgaImageAttributeInput) SetDryRun(v bool) *DescribeFpgaImageAttributeInput {
  30430. s.DryRun = &v
  30431. return s
  30432. }
  30433. // SetFpgaImageId sets the FpgaImageId field's value.
  30434. func (s *DescribeFpgaImageAttributeInput) SetFpgaImageId(v string) *DescribeFpgaImageAttributeInput {
  30435. s.FpgaImageId = &v
  30436. return s
  30437. }
  30438. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImageAttributeResult
  30439. type DescribeFpgaImageAttributeOutput struct {
  30440. _ struct{} `type:"structure"`
  30441. // Information about the attribute.
  30442. FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
  30443. }
  30444. // String returns the string representation
  30445. func (s DescribeFpgaImageAttributeOutput) String() string {
  30446. return awsutil.Prettify(s)
  30447. }
  30448. // GoString returns the string representation
  30449. func (s DescribeFpgaImageAttributeOutput) GoString() string {
  30450. return s.String()
  30451. }
  30452. // SetFpgaImageAttribute sets the FpgaImageAttribute field's value.
  30453. func (s *DescribeFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttribute) *DescribeFpgaImageAttributeOutput {
  30454. s.FpgaImageAttribute = v
  30455. return s
  30456. }
  30457. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImagesRequest
  30458. type DescribeFpgaImagesInput struct {
  30459. _ struct{} `type:"structure"`
  30460. // Checks whether you have the required permissions for the action, without
  30461. // actually making the request, and provides an error response. If you have
  30462. // the required permissions, the error response is DryRunOperation. Otherwise,
  30463. // it is UnauthorizedOperation.
  30464. DryRun *bool `type:"boolean"`
  30465. // One or more filters.
  30466. //
  30467. // * create-time - The creation time of the AFI.
  30468. //
  30469. // * fpga-image-id - The FPGA image identifier (AFI ID).
  30470. //
  30471. // * fpga-image-global-id - The global FPGA image identifier (AGFI ID).
  30472. //
  30473. // * name - The name of the AFI.
  30474. //
  30475. // * owner-id - The AWS account ID of the AFI owner.
  30476. //
  30477. // * product-code - The product code.
  30478. //
  30479. // * shell-version - The version of the AWS Shell that was used to create
  30480. // the bitstream.
  30481. //
  30482. // * state - The state of the AFI (pending | failed | available | unavailable).
  30483. //
  30484. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  30485. // Specify the key of the tag in the filter name and the value of the tag
  30486. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  30487. // for the filter name and X for the filter value.
  30488. //
  30489. // * tag-key - The key of a tag assigned to the resource. This filter is
  30490. // independent of the tag-value filter. For example, if you use both the
  30491. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  30492. // assigned both the tag key Purpose (regardless of what the tag's value
  30493. // is), and the tag value X (regardless of what the tag's key is). If you
  30494. // want to list only resources where Purpose is X, see the tag:key=value
  30495. // filter.
  30496. //
  30497. // * tag-value - The value of a tag assigned to the resource. This filter
  30498. // is independent of the tag-key filter.
  30499. //
  30500. // * update-time - The time of the most recent update.
  30501. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30502. // One or more AFI IDs.
  30503. FpgaImageIds []*string `locationName:"FpgaImageId" locationNameList:"item" type:"list"`
  30504. // The maximum number of results to return in a single call.
  30505. MaxResults *int64 `min:"5" type:"integer"`
  30506. // The token to retrieve the next page of results.
  30507. NextToken *string `min:"1" type:"string"`
  30508. // Filters the AFI by owner. Specify an AWS account ID, self (owner is the sender
  30509. // of the request), or an AWS owner alias (valid values are amazon | aws-marketplace).
  30510. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  30511. }
  30512. // String returns the string representation
  30513. func (s DescribeFpgaImagesInput) String() string {
  30514. return awsutil.Prettify(s)
  30515. }
  30516. // GoString returns the string representation
  30517. func (s DescribeFpgaImagesInput) GoString() string {
  30518. return s.String()
  30519. }
  30520. // Validate inspects the fields of the type to determine if they are valid.
  30521. func (s *DescribeFpgaImagesInput) Validate() error {
  30522. invalidParams := request.ErrInvalidParams{Context: "DescribeFpgaImagesInput"}
  30523. if s.MaxResults != nil && *s.MaxResults < 5 {
  30524. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  30525. }
  30526. if s.NextToken != nil && len(*s.NextToken) < 1 {
  30527. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  30528. }
  30529. if invalidParams.Len() > 0 {
  30530. return invalidParams
  30531. }
  30532. return nil
  30533. }
  30534. // SetDryRun sets the DryRun field's value.
  30535. func (s *DescribeFpgaImagesInput) SetDryRun(v bool) *DescribeFpgaImagesInput {
  30536. s.DryRun = &v
  30537. return s
  30538. }
  30539. // SetFilters sets the Filters field's value.
  30540. func (s *DescribeFpgaImagesInput) SetFilters(v []*Filter) *DescribeFpgaImagesInput {
  30541. s.Filters = v
  30542. return s
  30543. }
  30544. // SetFpgaImageIds sets the FpgaImageIds field's value.
  30545. func (s *DescribeFpgaImagesInput) SetFpgaImageIds(v []*string) *DescribeFpgaImagesInput {
  30546. s.FpgaImageIds = v
  30547. return s
  30548. }
  30549. // SetMaxResults sets the MaxResults field's value.
  30550. func (s *DescribeFpgaImagesInput) SetMaxResults(v int64) *DescribeFpgaImagesInput {
  30551. s.MaxResults = &v
  30552. return s
  30553. }
  30554. // SetNextToken sets the NextToken field's value.
  30555. func (s *DescribeFpgaImagesInput) SetNextToken(v string) *DescribeFpgaImagesInput {
  30556. s.NextToken = &v
  30557. return s
  30558. }
  30559. // SetOwners sets the Owners field's value.
  30560. func (s *DescribeFpgaImagesInput) SetOwners(v []*string) *DescribeFpgaImagesInput {
  30561. s.Owners = v
  30562. return s
  30563. }
  30564. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFpgaImagesResult
  30565. type DescribeFpgaImagesOutput struct {
  30566. _ struct{} `type:"structure"`
  30567. // Information about one or more FPGA images.
  30568. FpgaImages []*FpgaImage `locationName:"fpgaImageSet" locationNameList:"item" type:"list"`
  30569. // The token to use to retrieve the next page of results. This value is null
  30570. // when there are no more results to return.
  30571. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  30572. }
  30573. // String returns the string representation
  30574. func (s DescribeFpgaImagesOutput) String() string {
  30575. return awsutil.Prettify(s)
  30576. }
  30577. // GoString returns the string representation
  30578. func (s DescribeFpgaImagesOutput) GoString() string {
  30579. return s.String()
  30580. }
  30581. // SetFpgaImages sets the FpgaImages field's value.
  30582. func (s *DescribeFpgaImagesOutput) SetFpgaImages(v []*FpgaImage) *DescribeFpgaImagesOutput {
  30583. s.FpgaImages = v
  30584. return s
  30585. }
  30586. // SetNextToken sets the NextToken field's value.
  30587. func (s *DescribeFpgaImagesOutput) SetNextToken(v string) *DescribeFpgaImagesOutput {
  30588. s.NextToken = &v
  30589. return s
  30590. }
  30591. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferingsRequest
  30592. type DescribeHostReservationOfferingsInput struct {
  30593. _ struct{} `type:"structure"`
  30594. // One or more filters.
  30595. //
  30596. // * instance-family - The instance family of the offering (e.g., m4).
  30597. //
  30598. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  30599. Filter []*Filter `locationNameList:"Filter" type:"list"`
  30600. // This is the maximum duration of the reservation you'd like to purchase, specified
  30601. // in seconds. Reservations are available in one-year and three-year terms.
  30602. // The number of seconds specified must be the number of seconds in a year (365x24x60x60)
  30603. // times one of the supported durations (1 or 3). For example, specify 94608000
  30604. // for three years.
  30605. MaxDuration *int64 `type:"integer"`
  30606. // The maximum number of results to return for the request in a single page.
  30607. // The remaining results can be seen by sending another request with the returned
  30608. // nextToken value. This value can be between 5 and 500; if maxResults is given
  30609. // a larger value than 500, you will receive an error.
  30610. MaxResults *int64 `type:"integer"`
  30611. // This is the minimum duration of the reservation you'd like to purchase, specified
  30612. // in seconds. Reservations are available in one-year and three-year terms.
  30613. // The number of seconds specified must be the number of seconds in a year (365x24x60x60)
  30614. // times one of the supported durations (1 or 3). For example, specify 31536000
  30615. // for one year.
  30616. MinDuration *int64 `type:"integer"`
  30617. // The token to use to retrieve the next page of results.
  30618. NextToken *string `type:"string"`
  30619. // The ID of the reservation offering.
  30620. OfferingId *string `type:"string"`
  30621. }
  30622. // String returns the string representation
  30623. func (s DescribeHostReservationOfferingsInput) String() string {
  30624. return awsutil.Prettify(s)
  30625. }
  30626. // GoString returns the string representation
  30627. func (s DescribeHostReservationOfferingsInput) GoString() string {
  30628. return s.String()
  30629. }
  30630. // SetFilter sets the Filter field's value.
  30631. func (s *DescribeHostReservationOfferingsInput) SetFilter(v []*Filter) *DescribeHostReservationOfferingsInput {
  30632. s.Filter = v
  30633. return s
  30634. }
  30635. // SetMaxDuration sets the MaxDuration field's value.
  30636. func (s *DescribeHostReservationOfferingsInput) SetMaxDuration(v int64) *DescribeHostReservationOfferingsInput {
  30637. s.MaxDuration = &v
  30638. return s
  30639. }
  30640. // SetMaxResults sets the MaxResults field's value.
  30641. func (s *DescribeHostReservationOfferingsInput) SetMaxResults(v int64) *DescribeHostReservationOfferingsInput {
  30642. s.MaxResults = &v
  30643. return s
  30644. }
  30645. // SetMinDuration sets the MinDuration field's value.
  30646. func (s *DescribeHostReservationOfferingsInput) SetMinDuration(v int64) *DescribeHostReservationOfferingsInput {
  30647. s.MinDuration = &v
  30648. return s
  30649. }
  30650. // SetNextToken sets the NextToken field's value.
  30651. func (s *DescribeHostReservationOfferingsInput) SetNextToken(v string) *DescribeHostReservationOfferingsInput {
  30652. s.NextToken = &v
  30653. return s
  30654. }
  30655. // SetOfferingId sets the OfferingId field's value.
  30656. func (s *DescribeHostReservationOfferingsInput) SetOfferingId(v string) *DescribeHostReservationOfferingsInput {
  30657. s.OfferingId = &v
  30658. return s
  30659. }
  30660. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationOfferingsResult
  30661. type DescribeHostReservationOfferingsOutput struct {
  30662. _ struct{} `type:"structure"`
  30663. // The token to use to retrieve the next page of results. This value is null
  30664. // when there are no more results to return.
  30665. NextToken *string `locationName:"nextToken" type:"string"`
  30666. // Information about the offerings.
  30667. OfferingSet []*HostOffering `locationName:"offeringSet" locationNameList:"item" type:"list"`
  30668. }
  30669. // String returns the string representation
  30670. func (s DescribeHostReservationOfferingsOutput) String() string {
  30671. return awsutil.Prettify(s)
  30672. }
  30673. // GoString returns the string representation
  30674. func (s DescribeHostReservationOfferingsOutput) GoString() string {
  30675. return s.String()
  30676. }
  30677. // SetNextToken sets the NextToken field's value.
  30678. func (s *DescribeHostReservationOfferingsOutput) SetNextToken(v string) *DescribeHostReservationOfferingsOutput {
  30679. s.NextToken = &v
  30680. return s
  30681. }
  30682. // SetOfferingSet sets the OfferingSet field's value.
  30683. func (s *DescribeHostReservationOfferingsOutput) SetOfferingSet(v []*HostOffering) *DescribeHostReservationOfferingsOutput {
  30684. s.OfferingSet = v
  30685. return s
  30686. }
  30687. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationsRequest
  30688. type DescribeHostReservationsInput struct {
  30689. _ struct{} `type:"structure"`
  30690. // One or more filters.
  30691. //
  30692. // * instance-family - The instance family (e.g., m4).
  30693. //
  30694. // * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).
  30695. //
  30696. // * state - The state of the reservation (payment-pending | payment-failed
  30697. // | active | retired).
  30698. Filter []*Filter `locationNameList:"Filter" type:"list"`
  30699. // One or more host reservation IDs.
  30700. HostReservationIdSet []*string `locationNameList:"item" type:"list"`
  30701. // The maximum number of results to return for the request in a single page.
  30702. // The remaining results can be seen by sending another request with the returned
  30703. // nextToken value. This value can be between 5 and 500; if maxResults is given
  30704. // a larger value than 500, you will receive an error.
  30705. MaxResults *int64 `type:"integer"`
  30706. // The token to use to retrieve the next page of results.
  30707. NextToken *string `type:"string"`
  30708. }
  30709. // String returns the string representation
  30710. func (s DescribeHostReservationsInput) String() string {
  30711. return awsutil.Prettify(s)
  30712. }
  30713. // GoString returns the string representation
  30714. func (s DescribeHostReservationsInput) GoString() string {
  30715. return s.String()
  30716. }
  30717. // SetFilter sets the Filter field's value.
  30718. func (s *DescribeHostReservationsInput) SetFilter(v []*Filter) *DescribeHostReservationsInput {
  30719. s.Filter = v
  30720. return s
  30721. }
  30722. // SetHostReservationIdSet sets the HostReservationIdSet field's value.
  30723. func (s *DescribeHostReservationsInput) SetHostReservationIdSet(v []*string) *DescribeHostReservationsInput {
  30724. s.HostReservationIdSet = v
  30725. return s
  30726. }
  30727. // SetMaxResults sets the MaxResults field's value.
  30728. func (s *DescribeHostReservationsInput) SetMaxResults(v int64) *DescribeHostReservationsInput {
  30729. s.MaxResults = &v
  30730. return s
  30731. }
  30732. // SetNextToken sets the NextToken field's value.
  30733. func (s *DescribeHostReservationsInput) SetNextToken(v string) *DescribeHostReservationsInput {
  30734. s.NextToken = &v
  30735. return s
  30736. }
  30737. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostReservationsResult
  30738. type DescribeHostReservationsOutput struct {
  30739. _ struct{} `type:"structure"`
  30740. // Details about the reservation's configuration.
  30741. HostReservationSet []*HostReservation `locationName:"hostReservationSet" locationNameList:"item" type:"list"`
  30742. // The token to use to retrieve the next page of results. This value is null
  30743. // when there are no more results to return.
  30744. NextToken *string `locationName:"nextToken" type:"string"`
  30745. }
  30746. // String returns the string representation
  30747. func (s DescribeHostReservationsOutput) String() string {
  30748. return awsutil.Prettify(s)
  30749. }
  30750. // GoString returns the string representation
  30751. func (s DescribeHostReservationsOutput) GoString() string {
  30752. return s.String()
  30753. }
  30754. // SetHostReservationSet sets the HostReservationSet field's value.
  30755. func (s *DescribeHostReservationsOutput) SetHostReservationSet(v []*HostReservation) *DescribeHostReservationsOutput {
  30756. s.HostReservationSet = v
  30757. return s
  30758. }
  30759. // SetNextToken sets the NextToken field's value.
  30760. func (s *DescribeHostReservationsOutput) SetNextToken(v string) *DescribeHostReservationsOutput {
  30761. s.NextToken = &v
  30762. return s
  30763. }
  30764. // Contains the parameters for DescribeHosts.
  30765. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostsRequest
  30766. type DescribeHostsInput struct {
  30767. _ struct{} `type:"structure"`
  30768. // One or more filters.
  30769. //
  30770. // * instance-type - The instance type size that the Dedicated Host is configured
  30771. // to support.
  30772. //
  30773. // * auto-placement - Whether auto-placement is enabled or disabled (on |
  30774. // off).
  30775. //
  30776. // * host-reservation-id - The ID of the reservation assigned to this host.
  30777. //
  30778. // * client-token - The idempotency token you provided when you launched
  30779. // the instance
  30780. //
  30781. // * state- The allocation state of the Dedicated Host (available | under-assessment
  30782. // | permanent-failure | released | released-permanent-failure).
  30783. //
  30784. // * availability-zone - The Availability Zone of the host.
  30785. Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  30786. // The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.
  30787. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list"`
  30788. // The maximum number of results to return for the request in a single page.
  30789. // The remaining results can be seen by sending another request with the returned
  30790. // nextToken value. This value can be between 5 and 500; if maxResults is given
  30791. // a larger value than 500, you will receive an error. You cannot specify this
  30792. // parameter and the host IDs parameter in the same request.
  30793. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  30794. // The token to retrieve the next page of results.
  30795. NextToken *string `locationName:"nextToken" type:"string"`
  30796. }
  30797. // String returns the string representation
  30798. func (s DescribeHostsInput) String() string {
  30799. return awsutil.Prettify(s)
  30800. }
  30801. // GoString returns the string representation
  30802. func (s DescribeHostsInput) GoString() string {
  30803. return s.String()
  30804. }
  30805. // SetFilter sets the Filter field's value.
  30806. func (s *DescribeHostsInput) SetFilter(v []*Filter) *DescribeHostsInput {
  30807. s.Filter = v
  30808. return s
  30809. }
  30810. // SetHostIds sets the HostIds field's value.
  30811. func (s *DescribeHostsInput) SetHostIds(v []*string) *DescribeHostsInput {
  30812. s.HostIds = v
  30813. return s
  30814. }
  30815. // SetMaxResults sets the MaxResults field's value.
  30816. func (s *DescribeHostsInput) SetMaxResults(v int64) *DescribeHostsInput {
  30817. s.MaxResults = &v
  30818. return s
  30819. }
  30820. // SetNextToken sets the NextToken field's value.
  30821. func (s *DescribeHostsInput) SetNextToken(v string) *DescribeHostsInput {
  30822. s.NextToken = &v
  30823. return s
  30824. }
  30825. // Contains the output of DescribeHosts.
  30826. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeHostsResult
  30827. type DescribeHostsOutput struct {
  30828. _ struct{} `type:"structure"`
  30829. // Information about the Dedicated Hosts.
  30830. Hosts []*Host `locationName:"hostSet" locationNameList:"item" type:"list"`
  30831. // The token to use to retrieve the next page of results. This value is null
  30832. // when there are no more results to return.
  30833. NextToken *string `locationName:"nextToken" type:"string"`
  30834. }
  30835. // String returns the string representation
  30836. func (s DescribeHostsOutput) String() string {
  30837. return awsutil.Prettify(s)
  30838. }
  30839. // GoString returns the string representation
  30840. func (s DescribeHostsOutput) GoString() string {
  30841. return s.String()
  30842. }
  30843. // SetHosts sets the Hosts field's value.
  30844. func (s *DescribeHostsOutput) SetHosts(v []*Host) *DescribeHostsOutput {
  30845. s.Hosts = v
  30846. return s
  30847. }
  30848. // SetNextToken sets the NextToken field's value.
  30849. func (s *DescribeHostsOutput) SetNextToken(v string) *DescribeHostsOutput {
  30850. s.NextToken = &v
  30851. return s
  30852. }
  30853. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociationsRequest
  30854. type DescribeIamInstanceProfileAssociationsInput struct {
  30855. _ struct{} `type:"structure"`
  30856. // One or more IAM instance profile associations.
  30857. AssociationIds []*string `locationName:"AssociationId" locationNameList:"AssociationId" type:"list"`
  30858. // One or more filters.
  30859. //
  30860. // * instance-id - The ID of the instance.
  30861. //
  30862. // * state - The state of the association (associating | associated | disassociating
  30863. // | disassociated).
  30864. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  30865. // The maximum number of results to return in a single call. To retrieve the
  30866. // remaining results, make another call with the returned NextToken value.
  30867. MaxResults *int64 `min:"5" type:"integer"`
  30868. // The token to request the next page of results.
  30869. NextToken *string `min:"1" type:"string"`
  30870. }
  30871. // String returns the string representation
  30872. func (s DescribeIamInstanceProfileAssociationsInput) String() string {
  30873. return awsutil.Prettify(s)
  30874. }
  30875. // GoString returns the string representation
  30876. func (s DescribeIamInstanceProfileAssociationsInput) GoString() string {
  30877. return s.String()
  30878. }
  30879. // Validate inspects the fields of the type to determine if they are valid.
  30880. func (s *DescribeIamInstanceProfileAssociationsInput) Validate() error {
  30881. invalidParams := request.ErrInvalidParams{Context: "DescribeIamInstanceProfileAssociationsInput"}
  30882. if s.MaxResults != nil && *s.MaxResults < 5 {
  30883. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  30884. }
  30885. if s.NextToken != nil && len(*s.NextToken) < 1 {
  30886. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  30887. }
  30888. if invalidParams.Len() > 0 {
  30889. return invalidParams
  30890. }
  30891. return nil
  30892. }
  30893. // SetAssociationIds sets the AssociationIds field's value.
  30894. func (s *DescribeIamInstanceProfileAssociationsInput) SetAssociationIds(v []*string) *DescribeIamInstanceProfileAssociationsInput {
  30895. s.AssociationIds = v
  30896. return s
  30897. }
  30898. // SetFilters sets the Filters field's value.
  30899. func (s *DescribeIamInstanceProfileAssociationsInput) SetFilters(v []*Filter) *DescribeIamInstanceProfileAssociationsInput {
  30900. s.Filters = v
  30901. return s
  30902. }
  30903. // SetMaxResults sets the MaxResults field's value.
  30904. func (s *DescribeIamInstanceProfileAssociationsInput) SetMaxResults(v int64) *DescribeIamInstanceProfileAssociationsInput {
  30905. s.MaxResults = &v
  30906. return s
  30907. }
  30908. // SetNextToken sets the NextToken field's value.
  30909. func (s *DescribeIamInstanceProfileAssociationsInput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsInput {
  30910. s.NextToken = &v
  30911. return s
  30912. }
  30913. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIamInstanceProfileAssociationsResult
  30914. type DescribeIamInstanceProfileAssociationsOutput struct {
  30915. _ struct{} `type:"structure"`
  30916. // Information about one or more IAM instance profile associations.
  30917. IamInstanceProfileAssociations []*IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociationSet" locationNameList:"item" type:"list"`
  30918. // The token to use to retrieve the next page of results. This value is null
  30919. // when there are no more results to return.
  30920. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  30921. }
  30922. // String returns the string representation
  30923. func (s DescribeIamInstanceProfileAssociationsOutput) String() string {
  30924. return awsutil.Prettify(s)
  30925. }
  30926. // GoString returns the string representation
  30927. func (s DescribeIamInstanceProfileAssociationsOutput) GoString() string {
  30928. return s.String()
  30929. }
  30930. // SetIamInstanceProfileAssociations sets the IamInstanceProfileAssociations field's value.
  30931. func (s *DescribeIamInstanceProfileAssociationsOutput) SetIamInstanceProfileAssociations(v []*IamInstanceProfileAssociation) *DescribeIamInstanceProfileAssociationsOutput {
  30932. s.IamInstanceProfileAssociations = v
  30933. return s
  30934. }
  30935. // SetNextToken sets the NextToken field's value.
  30936. func (s *DescribeIamInstanceProfileAssociationsOutput) SetNextToken(v string) *DescribeIamInstanceProfileAssociationsOutput {
  30937. s.NextToken = &v
  30938. return s
  30939. }
  30940. // Contains the parameters for DescribeIdFormat.
  30941. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormatRequest
  30942. type DescribeIdFormatInput struct {
  30943. _ struct{} `type:"structure"`
  30944. // The type of resource: instance | reservation | snapshot | volume
  30945. Resource *string `type:"string"`
  30946. }
  30947. // String returns the string representation
  30948. func (s DescribeIdFormatInput) String() string {
  30949. return awsutil.Prettify(s)
  30950. }
  30951. // GoString returns the string representation
  30952. func (s DescribeIdFormatInput) GoString() string {
  30953. return s.String()
  30954. }
  30955. // SetResource sets the Resource field's value.
  30956. func (s *DescribeIdFormatInput) SetResource(v string) *DescribeIdFormatInput {
  30957. s.Resource = &v
  30958. return s
  30959. }
  30960. // Contains the output of DescribeIdFormat.
  30961. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdFormatResult
  30962. type DescribeIdFormatOutput struct {
  30963. _ struct{} `type:"structure"`
  30964. // Information about the ID format for the resource.
  30965. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  30966. }
  30967. // String returns the string representation
  30968. func (s DescribeIdFormatOutput) String() string {
  30969. return awsutil.Prettify(s)
  30970. }
  30971. // GoString returns the string representation
  30972. func (s DescribeIdFormatOutput) GoString() string {
  30973. return s.String()
  30974. }
  30975. // SetStatuses sets the Statuses field's value.
  30976. func (s *DescribeIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdFormatOutput {
  30977. s.Statuses = v
  30978. return s
  30979. }
  30980. // Contains the parameters for DescribeIdentityIdFormat.
  30981. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormatRequest
  30982. type DescribeIdentityIdFormatInput struct {
  30983. _ struct{} `type:"structure"`
  30984. // The ARN of the principal, which can be an IAM role, IAM user, or the root
  30985. // user.
  30986. //
  30987. // PrincipalArn is a required field
  30988. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  30989. // The type of resource: instance | reservation | snapshot | volume
  30990. Resource *string `locationName:"resource" type:"string"`
  30991. }
  30992. // String returns the string representation
  30993. func (s DescribeIdentityIdFormatInput) String() string {
  30994. return awsutil.Prettify(s)
  30995. }
  30996. // GoString returns the string representation
  30997. func (s DescribeIdentityIdFormatInput) GoString() string {
  30998. return s.String()
  30999. }
  31000. // Validate inspects the fields of the type to determine if they are valid.
  31001. func (s *DescribeIdentityIdFormatInput) Validate() error {
  31002. invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityIdFormatInput"}
  31003. if s.PrincipalArn == nil {
  31004. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  31005. }
  31006. if invalidParams.Len() > 0 {
  31007. return invalidParams
  31008. }
  31009. return nil
  31010. }
  31011. // SetPrincipalArn sets the PrincipalArn field's value.
  31012. func (s *DescribeIdentityIdFormatInput) SetPrincipalArn(v string) *DescribeIdentityIdFormatInput {
  31013. s.PrincipalArn = &v
  31014. return s
  31015. }
  31016. // SetResource sets the Resource field's value.
  31017. func (s *DescribeIdentityIdFormatInput) SetResource(v string) *DescribeIdentityIdFormatInput {
  31018. s.Resource = &v
  31019. return s
  31020. }
  31021. // Contains the output of DescribeIdentityIdFormat.
  31022. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIdentityIdFormatResult
  31023. type DescribeIdentityIdFormatOutput struct {
  31024. _ struct{} `type:"structure"`
  31025. // Information about the ID format for the resources.
  31026. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  31027. }
  31028. // String returns the string representation
  31029. func (s DescribeIdentityIdFormatOutput) String() string {
  31030. return awsutil.Prettify(s)
  31031. }
  31032. // GoString returns the string representation
  31033. func (s DescribeIdentityIdFormatOutput) GoString() string {
  31034. return s.String()
  31035. }
  31036. // SetStatuses sets the Statuses field's value.
  31037. func (s *DescribeIdentityIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdentityIdFormatOutput {
  31038. s.Statuses = v
  31039. return s
  31040. }
  31041. // Contains the parameters for DescribeImageAttribute.
  31042. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttributeRequest
  31043. type DescribeImageAttributeInput struct {
  31044. _ struct{} `type:"structure"`
  31045. // The AMI attribute.
  31046. //
  31047. // Note: Depending on your account privileges, the blockDeviceMapping attribute
  31048. // may return a Client.AuthFailure error. If this happens, use DescribeImages
  31049. // to get information about the block device mapping for the AMI.
  31050. //
  31051. // Attribute is a required field
  31052. Attribute *string `type:"string" required:"true" enum:"ImageAttributeName"`
  31053. // Checks whether you have the required permissions for the action, without
  31054. // actually making the request, and provides an error response. If you have
  31055. // the required permissions, the error response is DryRunOperation. Otherwise,
  31056. // it is UnauthorizedOperation.
  31057. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31058. // The ID of the AMI.
  31059. //
  31060. // ImageId is a required field
  31061. ImageId *string `type:"string" required:"true"`
  31062. }
  31063. // String returns the string representation
  31064. func (s DescribeImageAttributeInput) String() string {
  31065. return awsutil.Prettify(s)
  31066. }
  31067. // GoString returns the string representation
  31068. func (s DescribeImageAttributeInput) GoString() string {
  31069. return s.String()
  31070. }
  31071. // Validate inspects the fields of the type to determine if they are valid.
  31072. func (s *DescribeImageAttributeInput) Validate() error {
  31073. invalidParams := request.ErrInvalidParams{Context: "DescribeImageAttributeInput"}
  31074. if s.Attribute == nil {
  31075. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  31076. }
  31077. if s.ImageId == nil {
  31078. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  31079. }
  31080. if invalidParams.Len() > 0 {
  31081. return invalidParams
  31082. }
  31083. return nil
  31084. }
  31085. // SetAttribute sets the Attribute field's value.
  31086. func (s *DescribeImageAttributeInput) SetAttribute(v string) *DescribeImageAttributeInput {
  31087. s.Attribute = &v
  31088. return s
  31089. }
  31090. // SetDryRun sets the DryRun field's value.
  31091. func (s *DescribeImageAttributeInput) SetDryRun(v bool) *DescribeImageAttributeInput {
  31092. s.DryRun = &v
  31093. return s
  31094. }
  31095. // SetImageId sets the ImageId field's value.
  31096. func (s *DescribeImageAttributeInput) SetImageId(v string) *DescribeImageAttributeInput {
  31097. s.ImageId = &v
  31098. return s
  31099. }
  31100. // Describes an image attribute.
  31101. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageAttribute
  31102. type DescribeImageAttributeOutput struct {
  31103. _ struct{} `type:"structure"`
  31104. // One or more block device mapping entries.
  31105. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  31106. // A description for the AMI.
  31107. Description *AttributeValue `locationName:"description" type:"structure"`
  31108. // The ID of the AMI.
  31109. ImageId *string `locationName:"imageId" type:"string"`
  31110. // The kernel ID.
  31111. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  31112. // One or more launch permissions.
  31113. LaunchPermissions []*LaunchPermission `locationName:"launchPermission" locationNameList:"item" type:"list"`
  31114. // One or more product codes.
  31115. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  31116. // The RAM disk ID.
  31117. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  31118. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  31119. // interface is enabled.
  31120. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  31121. }
  31122. // String returns the string representation
  31123. func (s DescribeImageAttributeOutput) String() string {
  31124. return awsutil.Prettify(s)
  31125. }
  31126. // GoString returns the string representation
  31127. func (s DescribeImageAttributeOutput) GoString() string {
  31128. return s.String()
  31129. }
  31130. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  31131. func (s *DescribeImageAttributeOutput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *DescribeImageAttributeOutput {
  31132. s.BlockDeviceMappings = v
  31133. return s
  31134. }
  31135. // SetDescription sets the Description field's value.
  31136. func (s *DescribeImageAttributeOutput) SetDescription(v *AttributeValue) *DescribeImageAttributeOutput {
  31137. s.Description = v
  31138. return s
  31139. }
  31140. // SetImageId sets the ImageId field's value.
  31141. func (s *DescribeImageAttributeOutput) SetImageId(v string) *DescribeImageAttributeOutput {
  31142. s.ImageId = &v
  31143. return s
  31144. }
  31145. // SetKernelId sets the KernelId field's value.
  31146. func (s *DescribeImageAttributeOutput) SetKernelId(v *AttributeValue) *DescribeImageAttributeOutput {
  31147. s.KernelId = v
  31148. return s
  31149. }
  31150. // SetLaunchPermissions sets the LaunchPermissions field's value.
  31151. func (s *DescribeImageAttributeOutput) SetLaunchPermissions(v []*LaunchPermission) *DescribeImageAttributeOutput {
  31152. s.LaunchPermissions = v
  31153. return s
  31154. }
  31155. // SetProductCodes sets the ProductCodes field's value.
  31156. func (s *DescribeImageAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeImageAttributeOutput {
  31157. s.ProductCodes = v
  31158. return s
  31159. }
  31160. // SetRamdiskId sets the RamdiskId field's value.
  31161. func (s *DescribeImageAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeImageAttributeOutput {
  31162. s.RamdiskId = v
  31163. return s
  31164. }
  31165. // SetSriovNetSupport sets the SriovNetSupport field's value.
  31166. func (s *DescribeImageAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeImageAttributeOutput {
  31167. s.SriovNetSupport = v
  31168. return s
  31169. }
  31170. // Contains the parameters for DescribeImages.
  31171. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImagesRequest
  31172. type DescribeImagesInput struct {
  31173. _ struct{} `type:"structure"`
  31174. // Checks whether you have the required permissions for the action, without
  31175. // actually making the request, and provides an error response. If you have
  31176. // the required permissions, the error response is DryRunOperation. Otherwise,
  31177. // it is UnauthorizedOperation.
  31178. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31179. // Scopes the images by users with explicit launch permissions. Specify an AWS
  31180. // account ID, self (the sender of the request), or all (public AMIs).
  31181. ExecutableUsers []*string `locationName:"ExecutableBy" locationNameList:"ExecutableBy" type:"list"`
  31182. // One or more filters.
  31183. //
  31184. // * architecture - The image architecture (i386 | x86_64).
  31185. //
  31186. // * block-device-mapping.delete-on-termination - A Boolean value that indicates
  31187. // whether the Amazon EBS volume is deleted on instance termination.
  31188. //
  31189. // * block-device-mapping.device-name - The device name specified in the
  31190. // block device mapping (for example, /dev/sdh or xvdh).
  31191. //
  31192. // * block-device-mapping.snapshot-id - The ID of the snapshot used for the
  31193. // EBS volume.
  31194. //
  31195. // * block-device-mapping.volume-size - The volume size of the EBS volume,
  31196. // in GiB.
  31197. //
  31198. // * block-device-mapping.volume-type - The volume type of the EBS volume
  31199. // (gp2 | io1 | st1 | sc1 | standard).
  31200. //
  31201. // * description - The description of the image (provided during image creation).
  31202. //
  31203. // * ena-support - A Boolean that indicates whether enhanced networking with
  31204. // ENA is enabled.
  31205. //
  31206. // * hypervisor - The hypervisor type (ovm | xen).
  31207. //
  31208. // * image-id - The ID of the image.
  31209. //
  31210. // * image-type - The image type (machine | kernel | ramdisk).
  31211. //
  31212. // * is-public - A Boolean that indicates whether the image is public.
  31213. //
  31214. // * kernel-id - The kernel ID.
  31215. //
  31216. // * manifest-location - The location of the image manifest.
  31217. //
  31218. // * name - The name of the AMI (provided during image creation).
  31219. //
  31220. // * owner-alias - String value from an Amazon-maintained list (amazon |
  31221. // aws-marketplace | microsoft) of snapshot owners. Not to be confused with
  31222. // the user-configured AWS account alias, which is set from the IAM console.
  31223. //
  31224. // * owner-id - The AWS account ID of the image owner.
  31225. //
  31226. // * platform - The platform. To only list Windows-based AMIs, use windows.
  31227. //
  31228. // * product-code - The product code.
  31229. //
  31230. // * product-code.type - The type of the product code (devpay | marketplace).
  31231. //
  31232. // * ramdisk-id - The RAM disk ID.
  31233. //
  31234. // * root-device-name - The device name of the root device volume (for example,
  31235. // /dev/sda1).
  31236. //
  31237. // * root-device-type - The type of the root device volume (ebs | instance-store).
  31238. //
  31239. // * state - The state of the image (available | pending | failed).
  31240. //
  31241. // * state-reason-code - The reason code for the state change.
  31242. //
  31243. // * state-reason-message - The message for the state change.
  31244. //
  31245. // * sriov-net-support - A value of simple indicates that enhanced networking
  31246. // with the Intel 82599 VF interface is enabled.
  31247. //
  31248. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  31249. // Specify the key of the tag in the filter name and the value of the tag
  31250. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  31251. // for the filter name and X for the filter value.
  31252. //
  31253. // * tag-key - The key of a tag assigned to the resource. This filter is
  31254. // independent of the tag-value filter. For example, if you use both the
  31255. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  31256. // assigned both the tag key Purpose (regardless of what the tag's value
  31257. // is), and the tag value X (regardless of what the tag's key is). If you
  31258. // want to list only resources where Purpose is X, see the tag:key=value
  31259. // filter.
  31260. //
  31261. // * tag-value - The value of a tag assigned to the resource. This filter
  31262. // is independent of the tag-key filter.
  31263. //
  31264. // * virtualization-type - The virtualization type (paravirtual | hvm).
  31265. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31266. // One or more image IDs.
  31267. //
  31268. // Default: Describes all images available to you.
  31269. ImageIds []*string `locationName:"ImageId" locationNameList:"ImageId" type:"list"`
  31270. // Filters the images by the owner. Specify an AWS account ID, self (owner is
  31271. // the sender of the request), or an AWS owner alias (valid values are amazon
  31272. // | aws-marketplace | microsoft). Omitting this option returns all images for
  31273. // which you have launch permissions, regardless of ownership.
  31274. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  31275. }
  31276. // String returns the string representation
  31277. func (s DescribeImagesInput) String() string {
  31278. return awsutil.Prettify(s)
  31279. }
  31280. // GoString returns the string representation
  31281. func (s DescribeImagesInput) GoString() string {
  31282. return s.String()
  31283. }
  31284. // SetDryRun sets the DryRun field's value.
  31285. func (s *DescribeImagesInput) SetDryRun(v bool) *DescribeImagesInput {
  31286. s.DryRun = &v
  31287. return s
  31288. }
  31289. // SetExecutableUsers sets the ExecutableUsers field's value.
  31290. func (s *DescribeImagesInput) SetExecutableUsers(v []*string) *DescribeImagesInput {
  31291. s.ExecutableUsers = v
  31292. return s
  31293. }
  31294. // SetFilters sets the Filters field's value.
  31295. func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput {
  31296. s.Filters = v
  31297. return s
  31298. }
  31299. // SetImageIds sets the ImageIds field's value.
  31300. func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput {
  31301. s.ImageIds = v
  31302. return s
  31303. }
  31304. // SetOwners sets the Owners field's value.
  31305. func (s *DescribeImagesInput) SetOwners(v []*string) *DescribeImagesInput {
  31306. s.Owners = v
  31307. return s
  31308. }
  31309. // Contains the output of DescribeImages.
  31310. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImagesResult
  31311. type DescribeImagesOutput struct {
  31312. _ struct{} `type:"structure"`
  31313. // Information about one or more images.
  31314. Images []*Image `locationName:"imagesSet" locationNameList:"item" type:"list"`
  31315. }
  31316. // String returns the string representation
  31317. func (s DescribeImagesOutput) String() string {
  31318. return awsutil.Prettify(s)
  31319. }
  31320. // GoString returns the string representation
  31321. func (s DescribeImagesOutput) GoString() string {
  31322. return s.String()
  31323. }
  31324. // SetImages sets the Images field's value.
  31325. func (s *DescribeImagesOutput) SetImages(v []*Image) *DescribeImagesOutput {
  31326. s.Images = v
  31327. return s
  31328. }
  31329. // Contains the parameters for DescribeImportImageTasks.
  31330. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasksRequest
  31331. type DescribeImportImageTasksInput struct {
  31332. _ struct{} `type:"structure"`
  31333. // Checks whether you have the required permissions for the action, without
  31334. // actually making the request, and provides an error response. If you have
  31335. // the required permissions, the error response is DryRunOperation. Otherwise,
  31336. // it is UnauthorizedOperation.
  31337. DryRun *bool `type:"boolean"`
  31338. // Filter tasks using the task-state filter and one of the following values:
  31339. // active, completed, deleting, deleted.
  31340. Filters []*Filter `locationNameList:"Filter" type:"list"`
  31341. // A list of import image task IDs.
  31342. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  31343. // The maximum number of results to return in a single call. To retrieve the
  31344. // remaining results, make another call with the returned NextToken value.
  31345. MaxResults *int64 `type:"integer"`
  31346. // A token that indicates the next page of results.
  31347. NextToken *string `type:"string"`
  31348. }
  31349. // String returns the string representation
  31350. func (s DescribeImportImageTasksInput) String() string {
  31351. return awsutil.Prettify(s)
  31352. }
  31353. // GoString returns the string representation
  31354. func (s DescribeImportImageTasksInput) GoString() string {
  31355. return s.String()
  31356. }
  31357. // SetDryRun sets the DryRun field's value.
  31358. func (s *DescribeImportImageTasksInput) SetDryRun(v bool) *DescribeImportImageTasksInput {
  31359. s.DryRun = &v
  31360. return s
  31361. }
  31362. // SetFilters sets the Filters field's value.
  31363. func (s *DescribeImportImageTasksInput) SetFilters(v []*Filter) *DescribeImportImageTasksInput {
  31364. s.Filters = v
  31365. return s
  31366. }
  31367. // SetImportTaskIds sets the ImportTaskIds field's value.
  31368. func (s *DescribeImportImageTasksInput) SetImportTaskIds(v []*string) *DescribeImportImageTasksInput {
  31369. s.ImportTaskIds = v
  31370. return s
  31371. }
  31372. // SetMaxResults sets the MaxResults field's value.
  31373. func (s *DescribeImportImageTasksInput) SetMaxResults(v int64) *DescribeImportImageTasksInput {
  31374. s.MaxResults = &v
  31375. return s
  31376. }
  31377. // SetNextToken sets the NextToken field's value.
  31378. func (s *DescribeImportImageTasksInput) SetNextToken(v string) *DescribeImportImageTasksInput {
  31379. s.NextToken = &v
  31380. return s
  31381. }
  31382. // Contains the output for DescribeImportImageTasks.
  31383. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportImageTasksResult
  31384. type DescribeImportImageTasksOutput struct {
  31385. _ struct{} `type:"structure"`
  31386. // A list of zero or more import image tasks that are currently active or were
  31387. // completed or canceled in the previous 7 days.
  31388. ImportImageTasks []*ImportImageTask `locationName:"importImageTaskSet" locationNameList:"item" type:"list"`
  31389. // The token to use to get the next page of results. This value is null when
  31390. // there are no more results to return.
  31391. NextToken *string `locationName:"nextToken" type:"string"`
  31392. }
  31393. // String returns the string representation
  31394. func (s DescribeImportImageTasksOutput) String() string {
  31395. return awsutil.Prettify(s)
  31396. }
  31397. // GoString returns the string representation
  31398. func (s DescribeImportImageTasksOutput) GoString() string {
  31399. return s.String()
  31400. }
  31401. // SetImportImageTasks sets the ImportImageTasks field's value.
  31402. func (s *DescribeImportImageTasksOutput) SetImportImageTasks(v []*ImportImageTask) *DescribeImportImageTasksOutput {
  31403. s.ImportImageTasks = v
  31404. return s
  31405. }
  31406. // SetNextToken sets the NextToken field's value.
  31407. func (s *DescribeImportImageTasksOutput) SetNextToken(v string) *DescribeImportImageTasksOutput {
  31408. s.NextToken = &v
  31409. return s
  31410. }
  31411. // Contains the parameters for DescribeImportSnapshotTasks.
  31412. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasksRequest
  31413. type DescribeImportSnapshotTasksInput struct {
  31414. _ struct{} `type:"structure"`
  31415. // Checks whether you have the required permissions for the action, without
  31416. // actually making the request, and provides an error response. If you have
  31417. // the required permissions, the error response is DryRunOperation. Otherwise,
  31418. // it is UnauthorizedOperation.
  31419. DryRun *bool `type:"boolean"`
  31420. // One or more filters.
  31421. Filters []*Filter `locationNameList:"Filter" type:"list"`
  31422. // A list of import snapshot task IDs.
  31423. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  31424. // The maximum number of results to return in a single call. To retrieve the
  31425. // remaining results, make another call with the returned NextToken value.
  31426. MaxResults *int64 `type:"integer"`
  31427. // A token that indicates the next page of results.
  31428. NextToken *string `type:"string"`
  31429. }
  31430. // String returns the string representation
  31431. func (s DescribeImportSnapshotTasksInput) String() string {
  31432. return awsutil.Prettify(s)
  31433. }
  31434. // GoString returns the string representation
  31435. func (s DescribeImportSnapshotTasksInput) GoString() string {
  31436. return s.String()
  31437. }
  31438. // SetDryRun sets the DryRun field's value.
  31439. func (s *DescribeImportSnapshotTasksInput) SetDryRun(v bool) *DescribeImportSnapshotTasksInput {
  31440. s.DryRun = &v
  31441. return s
  31442. }
  31443. // SetFilters sets the Filters field's value.
  31444. func (s *DescribeImportSnapshotTasksInput) SetFilters(v []*Filter) *DescribeImportSnapshotTasksInput {
  31445. s.Filters = v
  31446. return s
  31447. }
  31448. // SetImportTaskIds sets the ImportTaskIds field's value.
  31449. func (s *DescribeImportSnapshotTasksInput) SetImportTaskIds(v []*string) *DescribeImportSnapshotTasksInput {
  31450. s.ImportTaskIds = v
  31451. return s
  31452. }
  31453. // SetMaxResults sets the MaxResults field's value.
  31454. func (s *DescribeImportSnapshotTasksInput) SetMaxResults(v int64) *DescribeImportSnapshotTasksInput {
  31455. s.MaxResults = &v
  31456. return s
  31457. }
  31458. // SetNextToken sets the NextToken field's value.
  31459. func (s *DescribeImportSnapshotTasksInput) SetNextToken(v string) *DescribeImportSnapshotTasksInput {
  31460. s.NextToken = &v
  31461. return s
  31462. }
  31463. // Contains the output for DescribeImportSnapshotTasks.
  31464. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImportSnapshotTasksResult
  31465. type DescribeImportSnapshotTasksOutput struct {
  31466. _ struct{} `type:"structure"`
  31467. // A list of zero or more import snapshot tasks that are currently active or
  31468. // were completed or canceled in the previous 7 days.
  31469. ImportSnapshotTasks []*ImportSnapshotTask `locationName:"importSnapshotTaskSet" locationNameList:"item" type:"list"`
  31470. // The token to use to get the next page of results. This value is null when
  31471. // there are no more results to return.
  31472. NextToken *string `locationName:"nextToken" type:"string"`
  31473. }
  31474. // String returns the string representation
  31475. func (s DescribeImportSnapshotTasksOutput) String() string {
  31476. return awsutil.Prettify(s)
  31477. }
  31478. // GoString returns the string representation
  31479. func (s DescribeImportSnapshotTasksOutput) GoString() string {
  31480. return s.String()
  31481. }
  31482. // SetImportSnapshotTasks sets the ImportSnapshotTasks field's value.
  31483. func (s *DescribeImportSnapshotTasksOutput) SetImportSnapshotTasks(v []*ImportSnapshotTask) *DescribeImportSnapshotTasksOutput {
  31484. s.ImportSnapshotTasks = v
  31485. return s
  31486. }
  31487. // SetNextToken sets the NextToken field's value.
  31488. func (s *DescribeImportSnapshotTasksOutput) SetNextToken(v string) *DescribeImportSnapshotTasksOutput {
  31489. s.NextToken = &v
  31490. return s
  31491. }
  31492. // Contains the parameters for DescribeInstanceAttribute.
  31493. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttributeRequest
  31494. type DescribeInstanceAttributeInput struct {
  31495. _ struct{} `type:"structure"`
  31496. // The instance attribute.
  31497. //
  31498. // Note: The enaSupport attribute is not supported at this time.
  31499. //
  31500. // Attribute is a required field
  31501. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  31502. // Checks whether you have the required permissions for the action, without
  31503. // actually making the request, and provides an error response. If you have
  31504. // the required permissions, the error response is DryRunOperation. Otherwise,
  31505. // it is UnauthorizedOperation.
  31506. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31507. // The ID of the instance.
  31508. //
  31509. // InstanceId is a required field
  31510. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  31511. }
  31512. // String returns the string representation
  31513. func (s DescribeInstanceAttributeInput) String() string {
  31514. return awsutil.Prettify(s)
  31515. }
  31516. // GoString returns the string representation
  31517. func (s DescribeInstanceAttributeInput) GoString() string {
  31518. return s.String()
  31519. }
  31520. // Validate inspects the fields of the type to determine if they are valid.
  31521. func (s *DescribeInstanceAttributeInput) Validate() error {
  31522. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAttributeInput"}
  31523. if s.Attribute == nil {
  31524. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  31525. }
  31526. if s.InstanceId == nil {
  31527. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  31528. }
  31529. if invalidParams.Len() > 0 {
  31530. return invalidParams
  31531. }
  31532. return nil
  31533. }
  31534. // SetAttribute sets the Attribute field's value.
  31535. func (s *DescribeInstanceAttributeInput) SetAttribute(v string) *DescribeInstanceAttributeInput {
  31536. s.Attribute = &v
  31537. return s
  31538. }
  31539. // SetDryRun sets the DryRun field's value.
  31540. func (s *DescribeInstanceAttributeInput) SetDryRun(v bool) *DescribeInstanceAttributeInput {
  31541. s.DryRun = &v
  31542. return s
  31543. }
  31544. // SetInstanceId sets the InstanceId field's value.
  31545. func (s *DescribeInstanceAttributeInput) SetInstanceId(v string) *DescribeInstanceAttributeInput {
  31546. s.InstanceId = &v
  31547. return s
  31548. }
  31549. // Describes an instance attribute.
  31550. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceAttribute
  31551. type DescribeInstanceAttributeOutput struct {
  31552. _ struct{} `type:"structure"`
  31553. // The block device mapping of the instance.
  31554. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  31555. // If the value is true, you can't terminate the instance through the Amazon
  31556. // EC2 console, CLI, or API; otherwise, you can.
  31557. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  31558. // Indicates whether the instance is optimized for Amazon EBS I/O.
  31559. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  31560. // Indicates whether enhanced networking with ENA is enabled.
  31561. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  31562. // The security groups associated with the instance.
  31563. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  31564. // The ID of the instance.
  31565. InstanceId *string `locationName:"instanceId" type:"string"`
  31566. // Indicates whether an instance stops or terminates when you initiate shutdown
  31567. // from the instance (using the operating system command for system shutdown).
  31568. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  31569. // The instance type.
  31570. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  31571. // The kernel ID.
  31572. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  31573. // A list of product codes.
  31574. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  31575. // The RAM disk ID.
  31576. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  31577. // The device name of the root device volume (for example, /dev/sda1).
  31578. RootDeviceName *AttributeValue `locationName:"rootDeviceName" type:"structure"`
  31579. // Indicates whether source/destination checking is enabled. A value of true
  31580. // means that checking is enabled, and false means that checking is disabled.
  31581. // This value must be false for a NAT instance to perform NAT.
  31582. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  31583. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  31584. // interface is enabled.
  31585. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  31586. // The user data.
  31587. UserData *AttributeValue `locationName:"userData" type:"structure"`
  31588. }
  31589. // String returns the string representation
  31590. func (s DescribeInstanceAttributeOutput) String() string {
  31591. return awsutil.Prettify(s)
  31592. }
  31593. // GoString returns the string representation
  31594. func (s DescribeInstanceAttributeOutput) GoString() string {
  31595. return s.String()
  31596. }
  31597. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  31598. func (s *DescribeInstanceAttributeOutput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *DescribeInstanceAttributeOutput {
  31599. s.BlockDeviceMappings = v
  31600. return s
  31601. }
  31602. // SetDisableApiTermination sets the DisableApiTermination field's value.
  31603. func (s *DescribeInstanceAttributeOutput) SetDisableApiTermination(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  31604. s.DisableApiTermination = v
  31605. return s
  31606. }
  31607. // SetEbsOptimized sets the EbsOptimized field's value.
  31608. func (s *DescribeInstanceAttributeOutput) SetEbsOptimized(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  31609. s.EbsOptimized = v
  31610. return s
  31611. }
  31612. // SetEnaSupport sets the EnaSupport field's value.
  31613. func (s *DescribeInstanceAttributeOutput) SetEnaSupport(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  31614. s.EnaSupport = v
  31615. return s
  31616. }
  31617. // SetGroups sets the Groups field's value.
  31618. func (s *DescribeInstanceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeInstanceAttributeOutput {
  31619. s.Groups = v
  31620. return s
  31621. }
  31622. // SetInstanceId sets the InstanceId field's value.
  31623. func (s *DescribeInstanceAttributeOutput) SetInstanceId(v string) *DescribeInstanceAttributeOutput {
  31624. s.InstanceId = &v
  31625. return s
  31626. }
  31627. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  31628. func (s *DescribeInstanceAttributeOutput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *DescribeInstanceAttributeOutput {
  31629. s.InstanceInitiatedShutdownBehavior = v
  31630. return s
  31631. }
  31632. // SetInstanceType sets the InstanceType field's value.
  31633. func (s *DescribeInstanceAttributeOutput) SetInstanceType(v *AttributeValue) *DescribeInstanceAttributeOutput {
  31634. s.InstanceType = v
  31635. return s
  31636. }
  31637. // SetKernelId sets the KernelId field's value.
  31638. func (s *DescribeInstanceAttributeOutput) SetKernelId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  31639. s.KernelId = v
  31640. return s
  31641. }
  31642. // SetProductCodes sets the ProductCodes field's value.
  31643. func (s *DescribeInstanceAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeInstanceAttributeOutput {
  31644. s.ProductCodes = v
  31645. return s
  31646. }
  31647. // SetRamdiskId sets the RamdiskId field's value.
  31648. func (s *DescribeInstanceAttributeOutput) SetRamdiskId(v *AttributeValue) *DescribeInstanceAttributeOutput {
  31649. s.RamdiskId = v
  31650. return s
  31651. }
  31652. // SetRootDeviceName sets the RootDeviceName field's value.
  31653. func (s *DescribeInstanceAttributeOutput) SetRootDeviceName(v *AttributeValue) *DescribeInstanceAttributeOutput {
  31654. s.RootDeviceName = v
  31655. return s
  31656. }
  31657. // SetSourceDestCheck sets the SourceDestCheck field's value.
  31658. func (s *DescribeInstanceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeInstanceAttributeOutput {
  31659. s.SourceDestCheck = v
  31660. return s
  31661. }
  31662. // SetSriovNetSupport sets the SriovNetSupport field's value.
  31663. func (s *DescribeInstanceAttributeOutput) SetSriovNetSupport(v *AttributeValue) *DescribeInstanceAttributeOutput {
  31664. s.SriovNetSupport = v
  31665. return s
  31666. }
  31667. // SetUserData sets the UserData field's value.
  31668. func (s *DescribeInstanceAttributeOutput) SetUserData(v *AttributeValue) *DescribeInstanceAttributeOutput {
  31669. s.UserData = v
  31670. return s
  31671. }
  31672. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecificationsRequest
  31673. type DescribeInstanceCreditSpecificationsInput struct {
  31674. _ struct{} `type:"structure"`
  31675. // Checks whether you have the required permissions for the action, without
  31676. // actually making the request, and provides an error response. If you have
  31677. // the required permissions, the error response is DryRunOperation. Otherwise,
  31678. // it is UnauthorizedOperation.
  31679. DryRun *bool `type:"boolean"`
  31680. // One or more filters.
  31681. //
  31682. // * instance-id - The ID of the instance.
  31683. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31684. // One or more instance IDs.
  31685. //
  31686. // Default: Describes all your instances.
  31687. //
  31688. // Constraints: Maximum 1000 explicitly specified instance IDs.
  31689. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  31690. // The maximum number of results to return in a single call. To retrieve the
  31691. // remaining results, make another call with the returned NextToken value. This
  31692. // value can be between 5 and 1000. You cannot specify this parameter and the
  31693. // instance IDs parameter in the same call.
  31694. MaxResults *int64 `type:"integer"`
  31695. // The token to retrieve the next page of results.
  31696. NextToken *string `type:"string"`
  31697. }
  31698. // String returns the string representation
  31699. func (s DescribeInstanceCreditSpecificationsInput) String() string {
  31700. return awsutil.Prettify(s)
  31701. }
  31702. // GoString returns the string representation
  31703. func (s DescribeInstanceCreditSpecificationsInput) GoString() string {
  31704. return s.String()
  31705. }
  31706. // SetDryRun sets the DryRun field's value.
  31707. func (s *DescribeInstanceCreditSpecificationsInput) SetDryRun(v bool) *DescribeInstanceCreditSpecificationsInput {
  31708. s.DryRun = &v
  31709. return s
  31710. }
  31711. // SetFilters sets the Filters field's value.
  31712. func (s *DescribeInstanceCreditSpecificationsInput) SetFilters(v []*Filter) *DescribeInstanceCreditSpecificationsInput {
  31713. s.Filters = v
  31714. return s
  31715. }
  31716. // SetInstanceIds sets the InstanceIds field's value.
  31717. func (s *DescribeInstanceCreditSpecificationsInput) SetInstanceIds(v []*string) *DescribeInstanceCreditSpecificationsInput {
  31718. s.InstanceIds = v
  31719. return s
  31720. }
  31721. // SetMaxResults sets the MaxResults field's value.
  31722. func (s *DescribeInstanceCreditSpecificationsInput) SetMaxResults(v int64) *DescribeInstanceCreditSpecificationsInput {
  31723. s.MaxResults = &v
  31724. return s
  31725. }
  31726. // SetNextToken sets the NextToken field's value.
  31727. func (s *DescribeInstanceCreditSpecificationsInput) SetNextToken(v string) *DescribeInstanceCreditSpecificationsInput {
  31728. s.NextToken = &v
  31729. return s
  31730. }
  31731. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceCreditSpecificationsResult
  31732. type DescribeInstanceCreditSpecificationsOutput struct {
  31733. _ struct{} `type:"structure"`
  31734. // Information about the credit option for CPU usage of an instance.
  31735. InstanceCreditSpecifications []*InstanceCreditSpecification `locationName:"instanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  31736. // The token to use to retrieve the next page of results. This value is null
  31737. // when there are no more results to return.
  31738. NextToken *string `locationName:"nextToken" type:"string"`
  31739. }
  31740. // String returns the string representation
  31741. func (s DescribeInstanceCreditSpecificationsOutput) String() string {
  31742. return awsutil.Prettify(s)
  31743. }
  31744. // GoString returns the string representation
  31745. func (s DescribeInstanceCreditSpecificationsOutput) GoString() string {
  31746. return s.String()
  31747. }
  31748. // SetInstanceCreditSpecifications sets the InstanceCreditSpecifications field's value.
  31749. func (s *DescribeInstanceCreditSpecificationsOutput) SetInstanceCreditSpecifications(v []*InstanceCreditSpecification) *DescribeInstanceCreditSpecificationsOutput {
  31750. s.InstanceCreditSpecifications = v
  31751. return s
  31752. }
  31753. // SetNextToken sets the NextToken field's value.
  31754. func (s *DescribeInstanceCreditSpecificationsOutput) SetNextToken(v string) *DescribeInstanceCreditSpecificationsOutput {
  31755. s.NextToken = &v
  31756. return s
  31757. }
  31758. // Contains the parameters for DescribeInstanceStatus.
  31759. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatusRequest
  31760. type DescribeInstanceStatusInput struct {
  31761. _ struct{} `type:"structure"`
  31762. // Checks whether you have the required permissions for the action, without
  31763. // actually making the request, and provides an error response. If you have
  31764. // the required permissions, the error response is DryRunOperation. Otherwise,
  31765. // it is UnauthorizedOperation.
  31766. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31767. // One or more filters.
  31768. //
  31769. // * availability-zone - The Availability Zone of the instance.
  31770. //
  31771. // * event.code - The code for the scheduled event (instance-reboot | system-reboot
  31772. // | system-maintenance | instance-retirement | instance-stop).
  31773. //
  31774. // * event.description - A description of the event.
  31775. //
  31776. // * event.not-after - The latest end time for the scheduled event (for example,
  31777. // 2014-09-15T17:15:20.000Z).
  31778. //
  31779. // * event.not-before - The earliest start time for the scheduled event (for
  31780. // example, 2014-09-15T17:15:20.000Z).
  31781. //
  31782. // * instance-state-code - The code for the instance state, as a 16-bit unsigned
  31783. // integer. The high byte is an opaque internal value and should be ignored.
  31784. // The low byte is set based on the state represented. The valid values are
  31785. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  31786. // and 80 (stopped).
  31787. //
  31788. // * instance-state-name - The state of the instance (pending | running |
  31789. // shutting-down | terminated | stopping | stopped).
  31790. //
  31791. // * instance-status.reachability - Filters on instance status where the
  31792. // name is reachability (passed | failed | initializing | insufficient-data).
  31793. //
  31794. // * instance-status.status - The status of the instance (ok | impaired |
  31795. // initializing | insufficient-data | not-applicable).
  31796. //
  31797. // * system-status.reachability - Filters on system status where the name
  31798. // is reachability (passed | failed | initializing | insufficient-data).
  31799. //
  31800. // * system-status.status - The system status of the instance (ok | impaired
  31801. // | initializing | insufficient-data | not-applicable).
  31802. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  31803. // When true, includes the health status for all instances. When false, includes
  31804. // the health status for running instances only.
  31805. //
  31806. // Default: false
  31807. IncludeAllInstances *bool `locationName:"includeAllInstances" type:"boolean"`
  31808. // One or more instance IDs.
  31809. //
  31810. // Default: Describes all your instances.
  31811. //
  31812. // Constraints: Maximum 100 explicitly specified instance IDs.
  31813. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  31814. // The maximum number of results to return in a single call. To retrieve the
  31815. // remaining results, make another call with the returned NextToken value. This
  31816. // value can be between 5 and 1000. You cannot specify this parameter and the
  31817. // instance IDs parameter in the same call.
  31818. MaxResults *int64 `type:"integer"`
  31819. // The token to retrieve the next page of results.
  31820. NextToken *string `type:"string"`
  31821. }
  31822. // String returns the string representation
  31823. func (s DescribeInstanceStatusInput) String() string {
  31824. return awsutil.Prettify(s)
  31825. }
  31826. // GoString returns the string representation
  31827. func (s DescribeInstanceStatusInput) GoString() string {
  31828. return s.String()
  31829. }
  31830. // SetDryRun sets the DryRun field's value.
  31831. func (s *DescribeInstanceStatusInput) SetDryRun(v bool) *DescribeInstanceStatusInput {
  31832. s.DryRun = &v
  31833. return s
  31834. }
  31835. // SetFilters sets the Filters field's value.
  31836. func (s *DescribeInstanceStatusInput) SetFilters(v []*Filter) *DescribeInstanceStatusInput {
  31837. s.Filters = v
  31838. return s
  31839. }
  31840. // SetIncludeAllInstances sets the IncludeAllInstances field's value.
  31841. func (s *DescribeInstanceStatusInput) SetIncludeAllInstances(v bool) *DescribeInstanceStatusInput {
  31842. s.IncludeAllInstances = &v
  31843. return s
  31844. }
  31845. // SetInstanceIds sets the InstanceIds field's value.
  31846. func (s *DescribeInstanceStatusInput) SetInstanceIds(v []*string) *DescribeInstanceStatusInput {
  31847. s.InstanceIds = v
  31848. return s
  31849. }
  31850. // SetMaxResults sets the MaxResults field's value.
  31851. func (s *DescribeInstanceStatusInput) SetMaxResults(v int64) *DescribeInstanceStatusInput {
  31852. s.MaxResults = &v
  31853. return s
  31854. }
  31855. // SetNextToken sets the NextToken field's value.
  31856. func (s *DescribeInstanceStatusInput) SetNextToken(v string) *DescribeInstanceStatusInput {
  31857. s.NextToken = &v
  31858. return s
  31859. }
  31860. // Contains the output of DescribeInstanceStatus.
  31861. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceStatusResult
  31862. type DescribeInstanceStatusOutput struct {
  31863. _ struct{} `type:"structure"`
  31864. // One or more instance status descriptions.
  31865. InstanceStatuses []*InstanceStatus `locationName:"instanceStatusSet" locationNameList:"item" type:"list"`
  31866. // The token to use to retrieve the next page of results. This value is null
  31867. // when there are no more results to return.
  31868. NextToken *string `locationName:"nextToken" type:"string"`
  31869. }
  31870. // String returns the string representation
  31871. func (s DescribeInstanceStatusOutput) String() string {
  31872. return awsutil.Prettify(s)
  31873. }
  31874. // GoString returns the string representation
  31875. func (s DescribeInstanceStatusOutput) GoString() string {
  31876. return s.String()
  31877. }
  31878. // SetInstanceStatuses sets the InstanceStatuses field's value.
  31879. func (s *DescribeInstanceStatusOutput) SetInstanceStatuses(v []*InstanceStatus) *DescribeInstanceStatusOutput {
  31880. s.InstanceStatuses = v
  31881. return s
  31882. }
  31883. // SetNextToken sets the NextToken field's value.
  31884. func (s *DescribeInstanceStatusOutput) SetNextToken(v string) *DescribeInstanceStatusOutput {
  31885. s.NextToken = &v
  31886. return s
  31887. }
  31888. // Contains the parameters for DescribeInstances.
  31889. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstancesRequest
  31890. type DescribeInstancesInput struct {
  31891. _ struct{} `type:"structure"`
  31892. // Checks whether you have the required permissions for the action, without
  31893. // actually making the request, and provides an error response. If you have
  31894. // the required permissions, the error response is DryRunOperation. Otherwise,
  31895. // it is UnauthorizedOperation.
  31896. DryRun *bool `locationName:"dryRun" type:"boolean"`
  31897. // One or more filters.
  31898. //
  31899. // * affinity - The affinity setting for an instance running on a Dedicated
  31900. // Host (default | host).
  31901. //
  31902. // * architecture - The instance architecture (i386 | x86_64).
  31903. //
  31904. // * availability-zone - The Availability Zone of the instance.
  31905. //
  31906. // * block-device-mapping.attach-time - The attach time for an EBS volume
  31907. // mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
  31908. //
  31909. // * block-device-mapping.delete-on-termination - A Boolean that indicates
  31910. // whether the EBS volume is deleted on instance termination.
  31911. //
  31912. // * block-device-mapping.device-name - The device name specified in the
  31913. // block device mapping (for example, /dev/sdh or xvdh).
  31914. //
  31915. // * block-device-mapping.status - The status for the EBS volume (attaching
  31916. // | attached | detaching | detached).
  31917. //
  31918. // * block-device-mapping.volume-id - The volume ID of the EBS volume.
  31919. //
  31920. // * client-token - The idempotency token you provided when you launched
  31921. // the instance.
  31922. //
  31923. // * dns-name - The public DNS name of the instance.
  31924. //
  31925. // * group-id - The ID of the security group for the instance. EC2-Classic
  31926. // only.
  31927. //
  31928. // * group-name - The name of the security group for the instance. EC2-Classic
  31929. // only.
  31930. //
  31931. // * host-id - The ID of the Dedicated Host on which the instance is running,
  31932. // if applicable.
  31933. //
  31934. // * hypervisor - The hypervisor type of the instance (ovm | xen).
  31935. //
  31936. // * iam-instance-profile.arn - The instance profile associated with the
  31937. // instance. Specified as an ARN.
  31938. //
  31939. // * image-id - The ID of the image used to launch the instance.
  31940. //
  31941. // * instance-id - The ID of the instance.
  31942. //
  31943. // * instance-lifecycle - Indicates whether this is a Spot Instance or a
  31944. // Scheduled Instance (spot | scheduled).
  31945. //
  31946. // * instance-state-code - The state of the instance, as a 16-bit unsigned
  31947. // integer. The high byte is an opaque internal value and should be ignored.
  31948. // The low byte is set based on the state represented. The valid values are:
  31949. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  31950. // and 80 (stopped).
  31951. //
  31952. // * instance-state-name - The state of the instance (pending | running |
  31953. // shutting-down | terminated | stopping | stopped).
  31954. //
  31955. // * instance-type - The type of instance (for example, t2.micro).
  31956. //
  31957. // * instance.group-id - The ID of the security group for the instance.
  31958. //
  31959. // * instance.group-name - The name of the security group for the instance.
  31960. //
  31961. //
  31962. // * ip-address - The public IPv4 address of the instance.
  31963. //
  31964. // * kernel-id - The kernel ID.
  31965. //
  31966. // * key-name - The name of the key pair used when the instance was launched.
  31967. //
  31968. // * launch-index - When launching multiple instances, this is the index
  31969. // for the instance in the launch group (for example, 0, 1, 2, and so on).
  31970. //
  31971. //
  31972. // * launch-time - The time when the instance was launched.
  31973. //
  31974. // * monitoring-state - Indicates whether detailed monitoring is enabled
  31975. // (disabled | enabled).
  31976. //
  31977. // * network-interface.addresses.private-ip-address - The private IPv4 address
  31978. // associated with the network interface.
  31979. //
  31980. // * network-interface.addresses.primary - Specifies whether the IPv4 address
  31981. // of the network interface is the primary private IPv4 address.
  31982. //
  31983. // * network-interface.addresses.association.public-ip - The ID of the association
  31984. // of an Elastic IP address (IPv4) with a network interface.
  31985. //
  31986. // * network-interface.addresses.association.ip-owner-id - The owner ID of
  31987. // the private IPv4 address associated with the network interface.
  31988. //
  31989. // * network-interface.association.public-ip - The address of the Elastic
  31990. // IP address (IPv4) bound to the network interface.
  31991. //
  31992. // * network-interface.association.ip-owner-id - The owner of the Elastic
  31993. // IP address (IPv4) associated with the network interface.
  31994. //
  31995. // * network-interface.association.allocation-id - The allocation ID returned
  31996. // when you allocated the Elastic IP address (IPv4) for your network interface.
  31997. //
  31998. // * network-interface.association.association-id - The association ID returned
  31999. // when the network interface was associated with an IPv4 address.
  32000. //
  32001. // * network-interface.attachment.attachment-id - The ID of the interface
  32002. // attachment.
  32003. //
  32004. // * network-interface.attachment.instance-id - The ID of the instance to
  32005. // which the network interface is attached.
  32006. //
  32007. // * network-interface.attachment.instance-owner-id - The owner ID of the
  32008. // instance to which the network interface is attached.
  32009. //
  32010. // * network-interface.attachment.device-index - The device index to which
  32011. // the network interface is attached.
  32012. //
  32013. // * network-interface.attachment.status - The status of the attachment (attaching
  32014. // | attached | detaching | detached).
  32015. //
  32016. // * network-interface.attachment.attach-time - The time that the network
  32017. // interface was attached to an instance.
  32018. //
  32019. // * network-interface.attachment.delete-on-termination - Specifies whether
  32020. // the attachment is deleted when an instance is terminated.
  32021. //
  32022. // * network-interface.availability-zone - The Availability Zone for the
  32023. // network interface.
  32024. //
  32025. // * network-interface.description - The description of the network interface.
  32026. //
  32027. // * network-interface.group-id - The ID of a security group associated with
  32028. // the network interface.
  32029. //
  32030. // * network-interface.group-name - The name of a security group associated
  32031. // with the network interface.
  32032. //
  32033. // * network-interface.ipv6-addresses.ipv6-address - The IPv6 address associated
  32034. // with the network interface.
  32035. //
  32036. // * network-interface.mac-address - The MAC address of the network interface.
  32037. //
  32038. // * network-interface.network-interface-id - The ID of the network interface.
  32039. //
  32040. // * network-interface.owner-id - The ID of the owner of the network interface.
  32041. //
  32042. // * network-interface.private-dns-name - The private DNS name of the network
  32043. // interface.
  32044. //
  32045. // * network-interface.requester-id - The requester ID for the network interface.
  32046. //
  32047. // * network-interface.requester-managed - Indicates whether the network
  32048. // interface is being managed by AWS.
  32049. //
  32050. // * network-interface.status - The status of the network interface (available)
  32051. // | in-use).
  32052. //
  32053. // * network-interface.source-dest-check - Whether the network interface
  32054. // performs source/destination checking. A value of true means that checking
  32055. // is enabled, and false means that checking is disabled. The value must
  32056. // be false for the network interface to perform network address translation
  32057. // (NAT) in your VPC.
  32058. //
  32059. // * network-interface.subnet-id - The ID of the subnet for the network interface.
  32060. //
  32061. // * network-interface.vpc-id - The ID of the VPC for the network interface.
  32062. //
  32063. // * owner-id - The AWS account ID of the instance owner.
  32064. //
  32065. // * placement-group-name - The name of the placement group for the instance.
  32066. //
  32067. // * platform - The platform. Use windows if you have Windows instances;
  32068. // otherwise, leave blank.
  32069. //
  32070. // * private-dns-name - The private IPv4 DNS name of the instance.
  32071. //
  32072. // * private-ip-address - The private IPv4 address of the instance.
  32073. //
  32074. // * product-code - The product code associated with the AMI used to launch
  32075. // the instance.
  32076. //
  32077. // * product-code.type - The type of product code (devpay | marketplace).
  32078. //
  32079. // * ramdisk-id - The RAM disk ID.
  32080. //
  32081. // * reason - The reason for the current state of the instance (for example,
  32082. // shows "User Initiated [date]" when you stop or terminate the instance).
  32083. // Similar to the state-reason-code filter.
  32084. //
  32085. // * requester-id - The ID of the entity that launched the instance on your
  32086. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  32087. //
  32088. // * reservation-id - The ID of the instance's reservation. A reservation
  32089. // ID is created any time you launch an instance. A reservation ID has a
  32090. // one-to-one relationship with an instance launch request, but can be associated
  32091. // with more than one instance if you launch multiple instances using the
  32092. // same launch request. For example, if you launch one instance, you get
  32093. // one reservation ID. If you launch ten instances using the same launch
  32094. // request, you also get one reservation ID.
  32095. //
  32096. // * root-device-name - The device name of the root device volume (for example,
  32097. // /dev/sda1).
  32098. //
  32099. // * root-device-type - The type of the root device volume (ebs | instance-store).
  32100. //
  32101. // * source-dest-check - Indicates whether the instance performs source/destination
  32102. // checking. A value of true means that checking is enabled, and false means
  32103. // that checking is disabled. The value must be false for the instance to
  32104. // perform network address translation (NAT) in your VPC.
  32105. //
  32106. // * spot-instance-request-id - The ID of the Spot Instance request.
  32107. //
  32108. // * state-reason-code - The reason code for the state change.
  32109. //
  32110. // * state-reason-message - A message that describes the state change.
  32111. //
  32112. // * subnet-id - The ID of the subnet for the instance.
  32113. //
  32114. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  32115. // Specify the key of the tag in the filter name and the value of the tag
  32116. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  32117. // for the filter name and X for the filter value.
  32118. //
  32119. // * tag-key - The key of a tag assigned to the resource. This filter is
  32120. // independent of the tag-value filter. For example, if you use both the
  32121. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  32122. // assigned both the tag key Purpose (regardless of what the tag's value
  32123. // is), and the tag value X (regardless of the tag's key). If you want to
  32124. // list only resources where Purpose is X, see the tag:key=value filter.
  32125. //
  32126. // * tag-value - The value of a tag assigned to the resource. This filter
  32127. // is independent of the tag-key filter.
  32128. //
  32129. // * tenancy - The tenancy of an instance (dedicated | default | host).
  32130. //
  32131. // * virtualization-type - The virtualization type of the instance (paravirtual
  32132. // | hvm).
  32133. //
  32134. // * vpc-id - The ID of the VPC that the instance is running in.
  32135. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32136. // One or more instance IDs.
  32137. //
  32138. // Default: Describes all your instances.
  32139. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  32140. // The maximum number of results to return in a single call. To retrieve the
  32141. // remaining results, make another call with the returned NextToken value. This
  32142. // value can be between 5 and 1000. You cannot specify this parameter and the
  32143. // instance IDs parameter or tag filters in the same call.
  32144. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  32145. // The token to request the next page of results.
  32146. NextToken *string `locationName:"nextToken" type:"string"`
  32147. }
  32148. // String returns the string representation
  32149. func (s DescribeInstancesInput) String() string {
  32150. return awsutil.Prettify(s)
  32151. }
  32152. // GoString returns the string representation
  32153. func (s DescribeInstancesInput) GoString() string {
  32154. return s.String()
  32155. }
  32156. // SetDryRun sets the DryRun field's value.
  32157. func (s *DescribeInstancesInput) SetDryRun(v bool) *DescribeInstancesInput {
  32158. s.DryRun = &v
  32159. return s
  32160. }
  32161. // SetFilters sets the Filters field's value.
  32162. func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput {
  32163. s.Filters = v
  32164. return s
  32165. }
  32166. // SetInstanceIds sets the InstanceIds field's value.
  32167. func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput {
  32168. s.InstanceIds = v
  32169. return s
  32170. }
  32171. // SetMaxResults sets the MaxResults field's value.
  32172. func (s *DescribeInstancesInput) SetMaxResults(v int64) *DescribeInstancesInput {
  32173. s.MaxResults = &v
  32174. return s
  32175. }
  32176. // SetNextToken sets the NextToken field's value.
  32177. func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput {
  32178. s.NextToken = &v
  32179. return s
  32180. }
  32181. // Contains the output of DescribeInstances.
  32182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstancesResult
  32183. type DescribeInstancesOutput struct {
  32184. _ struct{} `type:"structure"`
  32185. // The token to use to retrieve the next page of results. This value is null
  32186. // when there are no more results to return.
  32187. NextToken *string `locationName:"nextToken" type:"string"`
  32188. // Zero or more reservations.
  32189. Reservations []*Reservation `locationName:"reservationSet" locationNameList:"item" type:"list"`
  32190. }
  32191. // String returns the string representation
  32192. func (s DescribeInstancesOutput) String() string {
  32193. return awsutil.Prettify(s)
  32194. }
  32195. // GoString returns the string representation
  32196. func (s DescribeInstancesOutput) GoString() string {
  32197. return s.String()
  32198. }
  32199. // SetNextToken sets the NextToken field's value.
  32200. func (s *DescribeInstancesOutput) SetNextToken(v string) *DescribeInstancesOutput {
  32201. s.NextToken = &v
  32202. return s
  32203. }
  32204. // SetReservations sets the Reservations field's value.
  32205. func (s *DescribeInstancesOutput) SetReservations(v []*Reservation) *DescribeInstancesOutput {
  32206. s.Reservations = v
  32207. return s
  32208. }
  32209. // Contains the parameters for DescribeInternetGateways.
  32210. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGatewaysRequest
  32211. type DescribeInternetGatewaysInput struct {
  32212. _ struct{} `type:"structure"`
  32213. // Checks whether you have the required permissions for the action, without
  32214. // actually making the request, and provides an error response. If you have
  32215. // the required permissions, the error response is DryRunOperation. Otherwise,
  32216. // it is UnauthorizedOperation.
  32217. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32218. // One or more filters.
  32219. //
  32220. // * attachment.state - The current state of the attachment between the gateway
  32221. // and the VPC (available). Present only if a VPC is attached.
  32222. //
  32223. // * attachment.vpc-id - The ID of an attached VPC.
  32224. //
  32225. // * internet-gateway-id - The ID of the Internet gateway.
  32226. //
  32227. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  32228. // Specify the key of the tag in the filter name and the value of the tag
  32229. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  32230. // for the filter name and X for the filter value.
  32231. //
  32232. // * tag-key - The key of a tag assigned to the resource. This filter is
  32233. // independent of the tag-value filter. For example, if you use both the
  32234. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  32235. // assigned both the tag key Purpose (regardless of what the tag's value
  32236. // is), and the tag value X (regardless of what the tag's key is). If you
  32237. // want to list only resources where Purpose is X, see the tag:key=value
  32238. // filter.
  32239. //
  32240. // * tag-value - The value of a tag assigned to the resource. This filter
  32241. // is independent of the tag-key filter.
  32242. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32243. // One or more Internet gateway IDs.
  32244. //
  32245. // Default: Describes all your Internet gateways.
  32246. InternetGatewayIds []*string `locationName:"internetGatewayId" locationNameList:"item" type:"list"`
  32247. }
  32248. // String returns the string representation
  32249. func (s DescribeInternetGatewaysInput) String() string {
  32250. return awsutil.Prettify(s)
  32251. }
  32252. // GoString returns the string representation
  32253. func (s DescribeInternetGatewaysInput) GoString() string {
  32254. return s.String()
  32255. }
  32256. // SetDryRun sets the DryRun field's value.
  32257. func (s *DescribeInternetGatewaysInput) SetDryRun(v bool) *DescribeInternetGatewaysInput {
  32258. s.DryRun = &v
  32259. return s
  32260. }
  32261. // SetFilters sets the Filters field's value.
  32262. func (s *DescribeInternetGatewaysInput) SetFilters(v []*Filter) *DescribeInternetGatewaysInput {
  32263. s.Filters = v
  32264. return s
  32265. }
  32266. // SetInternetGatewayIds sets the InternetGatewayIds field's value.
  32267. func (s *DescribeInternetGatewaysInput) SetInternetGatewayIds(v []*string) *DescribeInternetGatewaysInput {
  32268. s.InternetGatewayIds = v
  32269. return s
  32270. }
  32271. // Contains the output of DescribeInternetGateways.
  32272. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGatewaysResult
  32273. type DescribeInternetGatewaysOutput struct {
  32274. _ struct{} `type:"structure"`
  32275. // Information about one or more Internet gateways.
  32276. InternetGateways []*InternetGateway `locationName:"internetGatewaySet" locationNameList:"item" type:"list"`
  32277. }
  32278. // String returns the string representation
  32279. func (s DescribeInternetGatewaysOutput) String() string {
  32280. return awsutil.Prettify(s)
  32281. }
  32282. // GoString returns the string representation
  32283. func (s DescribeInternetGatewaysOutput) GoString() string {
  32284. return s.String()
  32285. }
  32286. // SetInternetGateways sets the InternetGateways field's value.
  32287. func (s *DescribeInternetGatewaysOutput) SetInternetGateways(v []*InternetGateway) *DescribeInternetGatewaysOutput {
  32288. s.InternetGateways = v
  32289. return s
  32290. }
  32291. // Contains the parameters for DescribeKeyPairs.
  32292. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsRequest
  32293. type DescribeKeyPairsInput struct {
  32294. _ struct{} `type:"structure"`
  32295. // Checks whether you have the required permissions for the action, without
  32296. // actually making the request, and provides an error response. If you have
  32297. // the required permissions, the error response is DryRunOperation. Otherwise,
  32298. // it is UnauthorizedOperation.
  32299. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32300. // One or more filters.
  32301. //
  32302. // * fingerprint - The fingerprint of the key pair.
  32303. //
  32304. // * key-name - The name of the key pair.
  32305. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32306. // One or more key pair names.
  32307. //
  32308. // Default: Describes all your key pairs.
  32309. KeyNames []*string `locationName:"KeyName" locationNameList:"KeyName" type:"list"`
  32310. }
  32311. // String returns the string representation
  32312. func (s DescribeKeyPairsInput) String() string {
  32313. return awsutil.Prettify(s)
  32314. }
  32315. // GoString returns the string representation
  32316. func (s DescribeKeyPairsInput) GoString() string {
  32317. return s.String()
  32318. }
  32319. // SetDryRun sets the DryRun field's value.
  32320. func (s *DescribeKeyPairsInput) SetDryRun(v bool) *DescribeKeyPairsInput {
  32321. s.DryRun = &v
  32322. return s
  32323. }
  32324. // SetFilters sets the Filters field's value.
  32325. func (s *DescribeKeyPairsInput) SetFilters(v []*Filter) *DescribeKeyPairsInput {
  32326. s.Filters = v
  32327. return s
  32328. }
  32329. // SetKeyNames sets the KeyNames field's value.
  32330. func (s *DescribeKeyPairsInput) SetKeyNames(v []*string) *DescribeKeyPairsInput {
  32331. s.KeyNames = v
  32332. return s
  32333. }
  32334. // Contains the output of DescribeKeyPairs.
  32335. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeKeyPairsResult
  32336. type DescribeKeyPairsOutput struct {
  32337. _ struct{} `type:"structure"`
  32338. // Information about one or more key pairs.
  32339. KeyPairs []*KeyPairInfo `locationName:"keySet" locationNameList:"item" type:"list"`
  32340. }
  32341. // String returns the string representation
  32342. func (s DescribeKeyPairsOutput) String() string {
  32343. return awsutil.Prettify(s)
  32344. }
  32345. // GoString returns the string representation
  32346. func (s DescribeKeyPairsOutput) GoString() string {
  32347. return s.String()
  32348. }
  32349. // SetKeyPairs sets the KeyPairs field's value.
  32350. func (s *DescribeKeyPairsOutput) SetKeyPairs(v []*KeyPairInfo) *DescribeKeyPairsOutput {
  32351. s.KeyPairs = v
  32352. return s
  32353. }
  32354. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersionsRequest
  32355. type DescribeLaunchTemplateVersionsInput struct {
  32356. _ struct{} `type:"structure"`
  32357. // Checks whether you have the required permissions for the action, without
  32358. // actually making the request, and provides an error response. If you have
  32359. // the required permissions, the error response is DryRunOperation. Otherwise,
  32360. // it is UnauthorizedOperation.
  32361. DryRun *bool `type:"boolean"`
  32362. // One or more filters.
  32363. //
  32364. // * create-time - The time the launch template version was created.
  32365. //
  32366. // * ebs-optimized - A boolean that indicates whether the instance is optimized
  32367. // for Amazon EBS I/O.
  32368. //
  32369. // * iam-instance-profile - The ARN of the IAM instance profile.
  32370. //
  32371. // * image-id - The ID of the AMI.
  32372. //
  32373. // * instance-type - The instance type.
  32374. //
  32375. // * is-default-version - A boolean that indicates whether the launch template
  32376. // version is the default version.
  32377. //
  32378. // * kernel-id - The kernel ID.
  32379. //
  32380. // * ram-disk-id - The RAM disk ID.
  32381. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32382. // The ID of the launch template. You must specify either the launch template
  32383. // ID or launch template name in the request.
  32384. LaunchTemplateId *string `type:"string"`
  32385. // The name of the launch template. You must specify either the launch template
  32386. // ID or launch template name in the request.
  32387. LaunchTemplateName *string `min:"3" type:"string"`
  32388. // The maximum number of results to return in a single call. To retrieve the
  32389. // remaining results, make another call with the returned NextToken value. This
  32390. // value can be between 5 and 1000.
  32391. MaxResults *int64 `type:"integer"`
  32392. // The version number up to which to describe launch template versions.
  32393. MaxVersion *string `type:"string"`
  32394. // The version number after which to describe launch template versions.
  32395. MinVersion *string `type:"string"`
  32396. // The token to request the next page of results.
  32397. NextToken *string `type:"string"`
  32398. // One or more versions of the launch template.
  32399. Versions []*string `locationName:"LaunchTemplateVersion" locationNameList:"item" type:"list"`
  32400. }
  32401. // String returns the string representation
  32402. func (s DescribeLaunchTemplateVersionsInput) String() string {
  32403. return awsutil.Prettify(s)
  32404. }
  32405. // GoString returns the string representation
  32406. func (s DescribeLaunchTemplateVersionsInput) GoString() string {
  32407. return s.String()
  32408. }
  32409. // Validate inspects the fields of the type to determine if they are valid.
  32410. func (s *DescribeLaunchTemplateVersionsInput) Validate() error {
  32411. invalidParams := request.ErrInvalidParams{Context: "DescribeLaunchTemplateVersionsInput"}
  32412. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  32413. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  32414. }
  32415. if invalidParams.Len() > 0 {
  32416. return invalidParams
  32417. }
  32418. return nil
  32419. }
  32420. // SetDryRun sets the DryRun field's value.
  32421. func (s *DescribeLaunchTemplateVersionsInput) SetDryRun(v bool) *DescribeLaunchTemplateVersionsInput {
  32422. s.DryRun = &v
  32423. return s
  32424. }
  32425. // SetFilters sets the Filters field's value.
  32426. func (s *DescribeLaunchTemplateVersionsInput) SetFilters(v []*Filter) *DescribeLaunchTemplateVersionsInput {
  32427. s.Filters = v
  32428. return s
  32429. }
  32430. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  32431. func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateId(v string) *DescribeLaunchTemplateVersionsInput {
  32432. s.LaunchTemplateId = &v
  32433. return s
  32434. }
  32435. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  32436. func (s *DescribeLaunchTemplateVersionsInput) SetLaunchTemplateName(v string) *DescribeLaunchTemplateVersionsInput {
  32437. s.LaunchTemplateName = &v
  32438. return s
  32439. }
  32440. // SetMaxResults sets the MaxResults field's value.
  32441. func (s *DescribeLaunchTemplateVersionsInput) SetMaxResults(v int64) *DescribeLaunchTemplateVersionsInput {
  32442. s.MaxResults = &v
  32443. return s
  32444. }
  32445. // SetMaxVersion sets the MaxVersion field's value.
  32446. func (s *DescribeLaunchTemplateVersionsInput) SetMaxVersion(v string) *DescribeLaunchTemplateVersionsInput {
  32447. s.MaxVersion = &v
  32448. return s
  32449. }
  32450. // SetMinVersion sets the MinVersion field's value.
  32451. func (s *DescribeLaunchTemplateVersionsInput) SetMinVersion(v string) *DescribeLaunchTemplateVersionsInput {
  32452. s.MinVersion = &v
  32453. return s
  32454. }
  32455. // SetNextToken sets the NextToken field's value.
  32456. func (s *DescribeLaunchTemplateVersionsInput) SetNextToken(v string) *DescribeLaunchTemplateVersionsInput {
  32457. s.NextToken = &v
  32458. return s
  32459. }
  32460. // SetVersions sets the Versions field's value.
  32461. func (s *DescribeLaunchTemplateVersionsInput) SetVersions(v []*string) *DescribeLaunchTemplateVersionsInput {
  32462. s.Versions = v
  32463. return s
  32464. }
  32465. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersionsResult
  32466. type DescribeLaunchTemplateVersionsOutput struct {
  32467. _ struct{} `type:"structure"`
  32468. // Information about the launch template versions.
  32469. LaunchTemplateVersions []*LaunchTemplateVersion `locationName:"launchTemplateVersionSet" locationNameList:"item" type:"list"`
  32470. // The token to use to retrieve the next page of results. This value is null
  32471. // when there are no more results to return.
  32472. NextToken *string `locationName:"nextToken" type:"string"`
  32473. }
  32474. // String returns the string representation
  32475. func (s DescribeLaunchTemplateVersionsOutput) String() string {
  32476. return awsutil.Prettify(s)
  32477. }
  32478. // GoString returns the string representation
  32479. func (s DescribeLaunchTemplateVersionsOutput) GoString() string {
  32480. return s.String()
  32481. }
  32482. // SetLaunchTemplateVersions sets the LaunchTemplateVersions field's value.
  32483. func (s *DescribeLaunchTemplateVersionsOutput) SetLaunchTemplateVersions(v []*LaunchTemplateVersion) *DescribeLaunchTemplateVersionsOutput {
  32484. s.LaunchTemplateVersions = v
  32485. return s
  32486. }
  32487. // SetNextToken sets the NextToken field's value.
  32488. func (s *DescribeLaunchTemplateVersionsOutput) SetNextToken(v string) *DescribeLaunchTemplateVersionsOutput {
  32489. s.NextToken = &v
  32490. return s
  32491. }
  32492. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplatesRequest
  32493. type DescribeLaunchTemplatesInput struct {
  32494. _ struct{} `type:"structure"`
  32495. // Checks whether you have the required permissions for the action, without
  32496. // actually making the request, and provides an error response. If you have
  32497. // the required permissions, the error response is DryRunOperation. Otherwise,
  32498. // it is UnauthorizedOperation.
  32499. DryRun *bool `type:"boolean"`
  32500. // One or more filters.
  32501. //
  32502. // * create-time - The time the launch template was created.
  32503. //
  32504. // * launch-template-name - The name of the launch template.
  32505. //
  32506. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  32507. // Specify the key of the tag in the filter name and the value of the tag
  32508. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  32509. // for the filter name and X for the filter value.
  32510. //
  32511. // * tag-key - The key of a tag assigned to the resource. This filter is
  32512. // independent of the tag-value filter. For example, if you use both the
  32513. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  32514. // assigned both the tag key Purpose (regardless of what the tag's value
  32515. // is), and the tag value X (regardless of the tag's key). If you want to
  32516. // list only resources where Purpose is X, see the tag:key=value filter.
  32517. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32518. // One or more launch template IDs.
  32519. LaunchTemplateIds []*string `locationName:"LaunchTemplateId" locationNameList:"item" type:"list"`
  32520. // One or more launch template names.
  32521. LaunchTemplateNames []*string `locationName:"LaunchTemplateName" locationNameList:"item" type:"list"`
  32522. // The maximum number of results to return in a single call. To retrieve the
  32523. // remaining results, make another call with the returned NextToken value. This
  32524. // value can be between 5 and 1000.
  32525. MaxResults *int64 `type:"integer"`
  32526. // The token to request the next page of results.
  32527. NextToken *string `type:"string"`
  32528. }
  32529. // String returns the string representation
  32530. func (s DescribeLaunchTemplatesInput) String() string {
  32531. return awsutil.Prettify(s)
  32532. }
  32533. // GoString returns the string representation
  32534. func (s DescribeLaunchTemplatesInput) GoString() string {
  32535. return s.String()
  32536. }
  32537. // SetDryRun sets the DryRun field's value.
  32538. func (s *DescribeLaunchTemplatesInput) SetDryRun(v bool) *DescribeLaunchTemplatesInput {
  32539. s.DryRun = &v
  32540. return s
  32541. }
  32542. // SetFilters sets the Filters field's value.
  32543. func (s *DescribeLaunchTemplatesInput) SetFilters(v []*Filter) *DescribeLaunchTemplatesInput {
  32544. s.Filters = v
  32545. return s
  32546. }
  32547. // SetLaunchTemplateIds sets the LaunchTemplateIds field's value.
  32548. func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateIds(v []*string) *DescribeLaunchTemplatesInput {
  32549. s.LaunchTemplateIds = v
  32550. return s
  32551. }
  32552. // SetLaunchTemplateNames sets the LaunchTemplateNames field's value.
  32553. func (s *DescribeLaunchTemplatesInput) SetLaunchTemplateNames(v []*string) *DescribeLaunchTemplatesInput {
  32554. s.LaunchTemplateNames = v
  32555. return s
  32556. }
  32557. // SetMaxResults sets the MaxResults field's value.
  32558. func (s *DescribeLaunchTemplatesInput) SetMaxResults(v int64) *DescribeLaunchTemplatesInput {
  32559. s.MaxResults = &v
  32560. return s
  32561. }
  32562. // SetNextToken sets the NextToken field's value.
  32563. func (s *DescribeLaunchTemplatesInput) SetNextToken(v string) *DescribeLaunchTemplatesInput {
  32564. s.NextToken = &v
  32565. return s
  32566. }
  32567. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplatesResult
  32568. type DescribeLaunchTemplatesOutput struct {
  32569. _ struct{} `type:"structure"`
  32570. // Information about the launch templates.
  32571. LaunchTemplates []*LaunchTemplate `locationName:"launchTemplates" locationNameList:"item" type:"list"`
  32572. // The token to use to retrieve the next page of results. This value is null
  32573. // when there are no more results to return.
  32574. NextToken *string `locationName:"nextToken" type:"string"`
  32575. }
  32576. // String returns the string representation
  32577. func (s DescribeLaunchTemplatesOutput) String() string {
  32578. return awsutil.Prettify(s)
  32579. }
  32580. // GoString returns the string representation
  32581. func (s DescribeLaunchTemplatesOutput) GoString() string {
  32582. return s.String()
  32583. }
  32584. // SetLaunchTemplates sets the LaunchTemplates field's value.
  32585. func (s *DescribeLaunchTemplatesOutput) SetLaunchTemplates(v []*LaunchTemplate) *DescribeLaunchTemplatesOutput {
  32586. s.LaunchTemplates = v
  32587. return s
  32588. }
  32589. // SetNextToken sets the NextToken field's value.
  32590. func (s *DescribeLaunchTemplatesOutput) SetNextToken(v string) *DescribeLaunchTemplatesOutput {
  32591. s.NextToken = &v
  32592. return s
  32593. }
  32594. // Contains the parameters for DescribeMovingAddresses.
  32595. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddressesRequest
  32596. type DescribeMovingAddressesInput struct {
  32597. _ struct{} `type:"structure"`
  32598. // Checks whether you have the required permissions for the action, without
  32599. // actually making the request, and provides an error response. If you have
  32600. // the required permissions, the error response is DryRunOperation. Otherwise,
  32601. // it is UnauthorizedOperation.
  32602. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32603. // One or more filters.
  32604. //
  32605. // * moving-status - The status of the Elastic IP address (MovingToVpc |
  32606. // RestoringToClassic).
  32607. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  32608. // The maximum number of results to return for the request in a single page.
  32609. // The remaining results of the initial request can be seen by sending another
  32610. // request with the returned NextToken value. This value can be between 5 and
  32611. // 1000; if MaxResults is given a value outside of this range, an error is returned.
  32612. //
  32613. // Default: If no value is provided, the default is 1000.
  32614. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  32615. // The token to use to retrieve the next page of results.
  32616. NextToken *string `locationName:"nextToken" type:"string"`
  32617. // One or more Elastic IP addresses.
  32618. PublicIps []*string `locationName:"publicIp" locationNameList:"item" type:"list"`
  32619. }
  32620. // String returns the string representation
  32621. func (s DescribeMovingAddressesInput) String() string {
  32622. return awsutil.Prettify(s)
  32623. }
  32624. // GoString returns the string representation
  32625. func (s DescribeMovingAddressesInput) GoString() string {
  32626. return s.String()
  32627. }
  32628. // SetDryRun sets the DryRun field's value.
  32629. func (s *DescribeMovingAddressesInput) SetDryRun(v bool) *DescribeMovingAddressesInput {
  32630. s.DryRun = &v
  32631. return s
  32632. }
  32633. // SetFilters sets the Filters field's value.
  32634. func (s *DescribeMovingAddressesInput) SetFilters(v []*Filter) *DescribeMovingAddressesInput {
  32635. s.Filters = v
  32636. return s
  32637. }
  32638. // SetMaxResults sets the MaxResults field's value.
  32639. func (s *DescribeMovingAddressesInput) SetMaxResults(v int64) *DescribeMovingAddressesInput {
  32640. s.MaxResults = &v
  32641. return s
  32642. }
  32643. // SetNextToken sets the NextToken field's value.
  32644. func (s *DescribeMovingAddressesInput) SetNextToken(v string) *DescribeMovingAddressesInput {
  32645. s.NextToken = &v
  32646. return s
  32647. }
  32648. // SetPublicIps sets the PublicIps field's value.
  32649. func (s *DescribeMovingAddressesInput) SetPublicIps(v []*string) *DescribeMovingAddressesInput {
  32650. s.PublicIps = v
  32651. return s
  32652. }
  32653. // Contains the output of DescribeMovingAddresses.
  32654. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMovingAddressesResult
  32655. type DescribeMovingAddressesOutput struct {
  32656. _ struct{} `type:"structure"`
  32657. // The status for each Elastic IP address.
  32658. MovingAddressStatuses []*MovingAddressStatus `locationName:"movingAddressStatusSet" locationNameList:"item" type:"list"`
  32659. // The token to use to retrieve the next page of results. This value is null
  32660. // when there are no more results to return.
  32661. NextToken *string `locationName:"nextToken" type:"string"`
  32662. }
  32663. // String returns the string representation
  32664. func (s DescribeMovingAddressesOutput) String() string {
  32665. return awsutil.Prettify(s)
  32666. }
  32667. // GoString returns the string representation
  32668. func (s DescribeMovingAddressesOutput) GoString() string {
  32669. return s.String()
  32670. }
  32671. // SetMovingAddressStatuses sets the MovingAddressStatuses field's value.
  32672. func (s *DescribeMovingAddressesOutput) SetMovingAddressStatuses(v []*MovingAddressStatus) *DescribeMovingAddressesOutput {
  32673. s.MovingAddressStatuses = v
  32674. return s
  32675. }
  32676. // SetNextToken sets the NextToken field's value.
  32677. func (s *DescribeMovingAddressesOutput) SetNextToken(v string) *DescribeMovingAddressesOutput {
  32678. s.NextToken = &v
  32679. return s
  32680. }
  32681. // Contains the parameters for DescribeNatGateways.
  32682. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGatewaysRequest
  32683. type DescribeNatGatewaysInput struct {
  32684. _ struct{} `type:"structure"`
  32685. // One or more filters.
  32686. //
  32687. // * nat-gateway-id - The ID of the NAT gateway.
  32688. //
  32689. // * state - The state of the NAT gateway (pending | failed | available |
  32690. // deleting | deleted).
  32691. //
  32692. // * subnet-id - The ID of the subnet in which the NAT gateway resides.
  32693. //
  32694. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  32695. // Specify the key of the tag in the filter name and the value of the tag
  32696. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  32697. // for the filter name and X for the filter value.
  32698. //
  32699. // * tag-key - The key of a tag assigned to the resource. This filter is
  32700. // independent of the tag-value filter. For example, if you use both the
  32701. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  32702. // assigned both the tag key Purpose (regardless of what the tag's value
  32703. // is), and the tag value X (regardless of what the tag's key is). If you
  32704. // want to list only resources where Purpose is X, see the tag:key=value
  32705. // filter.
  32706. //
  32707. // * tag-value - The value of a tag assigned to the resource. This filter
  32708. // is independent of the tag-key filter.
  32709. //
  32710. // * vpc-id - The ID of the VPC in which the NAT gateway resides.
  32711. Filter []*Filter `locationNameList:"Filter" type:"list"`
  32712. // The maximum number of items to return for this request. The request returns
  32713. // a token that you can specify in a subsequent call to get the next set of
  32714. // results.
  32715. //
  32716. // Constraint: If the value specified is greater than 1000, we return only 1000
  32717. // items.
  32718. MaxResults *int64 `type:"integer"`
  32719. // One or more NAT gateway IDs.
  32720. NatGatewayIds []*string `locationName:"NatGatewayId" locationNameList:"item" type:"list"`
  32721. // The token to retrieve the next page of results.
  32722. NextToken *string `type:"string"`
  32723. }
  32724. // String returns the string representation
  32725. func (s DescribeNatGatewaysInput) String() string {
  32726. return awsutil.Prettify(s)
  32727. }
  32728. // GoString returns the string representation
  32729. func (s DescribeNatGatewaysInput) GoString() string {
  32730. return s.String()
  32731. }
  32732. // SetFilter sets the Filter field's value.
  32733. func (s *DescribeNatGatewaysInput) SetFilter(v []*Filter) *DescribeNatGatewaysInput {
  32734. s.Filter = v
  32735. return s
  32736. }
  32737. // SetMaxResults sets the MaxResults field's value.
  32738. func (s *DescribeNatGatewaysInput) SetMaxResults(v int64) *DescribeNatGatewaysInput {
  32739. s.MaxResults = &v
  32740. return s
  32741. }
  32742. // SetNatGatewayIds sets the NatGatewayIds field's value.
  32743. func (s *DescribeNatGatewaysInput) SetNatGatewayIds(v []*string) *DescribeNatGatewaysInput {
  32744. s.NatGatewayIds = v
  32745. return s
  32746. }
  32747. // SetNextToken sets the NextToken field's value.
  32748. func (s *DescribeNatGatewaysInput) SetNextToken(v string) *DescribeNatGatewaysInput {
  32749. s.NextToken = &v
  32750. return s
  32751. }
  32752. // Contains the output of DescribeNatGateways.
  32753. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGatewaysResult
  32754. type DescribeNatGatewaysOutput struct {
  32755. _ struct{} `type:"structure"`
  32756. // Information about the NAT gateways.
  32757. NatGateways []*NatGateway `locationName:"natGatewaySet" locationNameList:"item" type:"list"`
  32758. // The token to use to retrieve the next page of results. This value is null
  32759. // when there are no more results to return.
  32760. NextToken *string `locationName:"nextToken" type:"string"`
  32761. }
  32762. // String returns the string representation
  32763. func (s DescribeNatGatewaysOutput) String() string {
  32764. return awsutil.Prettify(s)
  32765. }
  32766. // GoString returns the string representation
  32767. func (s DescribeNatGatewaysOutput) GoString() string {
  32768. return s.String()
  32769. }
  32770. // SetNatGateways sets the NatGateways field's value.
  32771. func (s *DescribeNatGatewaysOutput) SetNatGateways(v []*NatGateway) *DescribeNatGatewaysOutput {
  32772. s.NatGateways = v
  32773. return s
  32774. }
  32775. // SetNextToken sets the NextToken field's value.
  32776. func (s *DescribeNatGatewaysOutput) SetNextToken(v string) *DescribeNatGatewaysOutput {
  32777. s.NextToken = &v
  32778. return s
  32779. }
  32780. // Contains the parameters for DescribeNetworkAcls.
  32781. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAclsRequest
  32782. type DescribeNetworkAclsInput struct {
  32783. _ struct{} `type:"structure"`
  32784. // Checks whether you have the required permissions for the action, without
  32785. // actually making the request, and provides an error response. If you have
  32786. // the required permissions, the error response is DryRunOperation. Otherwise,
  32787. // it is UnauthorizedOperation.
  32788. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32789. // One or more filters.
  32790. //
  32791. // * association.association-id - The ID of an association ID for the ACL.
  32792. //
  32793. // * association.network-acl-id - The ID of the network ACL involved in the
  32794. // association.
  32795. //
  32796. // * association.subnet-id - The ID of the subnet involved in the association.
  32797. //
  32798. // * default - Indicates whether the ACL is the default network ACL for the
  32799. // VPC.
  32800. //
  32801. // * entry.cidr - The IPv4 CIDR range specified in the entry.
  32802. //
  32803. // * entry.egress - Indicates whether the entry applies to egress traffic.
  32804. //
  32805. // * entry.icmp.code - The ICMP code specified in the entry, if any.
  32806. //
  32807. // * entry.icmp.type - The ICMP type specified in the entry, if any.
  32808. //
  32809. // * entry.ipv6-cidr - The IPv6 CIDR range specified in the entry.
  32810. //
  32811. // * entry.port-range.from - The start of the port range specified in the
  32812. // entry.
  32813. //
  32814. // * entry.port-range.to - The end of the port range specified in the entry.
  32815. //
  32816. //
  32817. // * entry.protocol - The protocol specified in the entry (tcp | udp | icmp
  32818. // or a protocol number).
  32819. //
  32820. // * entry.rule-action - Allows or denies the matching traffic (allow | deny).
  32821. //
  32822. // * entry.rule-number - The number of an entry (in other words, rule) in
  32823. // the ACL's set of entries.
  32824. //
  32825. // * network-acl-id - The ID of the network ACL.
  32826. //
  32827. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  32828. // Specify the key of the tag in the filter name and the value of the tag
  32829. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  32830. // for the filter name and X for the filter value.
  32831. //
  32832. // * tag-key - The key of a tag assigned to the resource. This filter is
  32833. // independent of the tag-value filter. For example, if you use both the
  32834. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  32835. // assigned both the tag key Purpose (regardless of what the tag's value
  32836. // is), and the tag value X (regardless of what the tag's key is). If you
  32837. // want to list only resources where Purpose is X, see the tag:key=value
  32838. // filter.
  32839. //
  32840. // * tag-value - The value of a tag assigned to the resource. This filter
  32841. // is independent of the tag-key filter.
  32842. //
  32843. // * vpc-id - The ID of the VPC for the network ACL.
  32844. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  32845. // One or more network ACL IDs.
  32846. //
  32847. // Default: Describes all your network ACLs.
  32848. NetworkAclIds []*string `locationName:"NetworkAclId" locationNameList:"item" type:"list"`
  32849. }
  32850. // String returns the string representation
  32851. func (s DescribeNetworkAclsInput) String() string {
  32852. return awsutil.Prettify(s)
  32853. }
  32854. // GoString returns the string representation
  32855. func (s DescribeNetworkAclsInput) GoString() string {
  32856. return s.String()
  32857. }
  32858. // SetDryRun sets the DryRun field's value.
  32859. func (s *DescribeNetworkAclsInput) SetDryRun(v bool) *DescribeNetworkAclsInput {
  32860. s.DryRun = &v
  32861. return s
  32862. }
  32863. // SetFilters sets the Filters field's value.
  32864. func (s *DescribeNetworkAclsInput) SetFilters(v []*Filter) *DescribeNetworkAclsInput {
  32865. s.Filters = v
  32866. return s
  32867. }
  32868. // SetNetworkAclIds sets the NetworkAclIds field's value.
  32869. func (s *DescribeNetworkAclsInput) SetNetworkAclIds(v []*string) *DescribeNetworkAclsInput {
  32870. s.NetworkAclIds = v
  32871. return s
  32872. }
  32873. // Contains the output of DescribeNetworkAcls.
  32874. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAclsResult
  32875. type DescribeNetworkAclsOutput struct {
  32876. _ struct{} `type:"structure"`
  32877. // Information about one or more network ACLs.
  32878. NetworkAcls []*NetworkAcl `locationName:"networkAclSet" locationNameList:"item" type:"list"`
  32879. }
  32880. // String returns the string representation
  32881. func (s DescribeNetworkAclsOutput) String() string {
  32882. return awsutil.Prettify(s)
  32883. }
  32884. // GoString returns the string representation
  32885. func (s DescribeNetworkAclsOutput) GoString() string {
  32886. return s.String()
  32887. }
  32888. // SetNetworkAcls sets the NetworkAcls field's value.
  32889. func (s *DescribeNetworkAclsOutput) SetNetworkAcls(v []*NetworkAcl) *DescribeNetworkAclsOutput {
  32890. s.NetworkAcls = v
  32891. return s
  32892. }
  32893. // Contains the parameters for DescribeNetworkInterfaceAttribute.
  32894. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttributeRequest
  32895. type DescribeNetworkInterfaceAttributeInput struct {
  32896. _ struct{} `type:"structure"`
  32897. // The attribute of the network interface. This parameter is required.
  32898. Attribute *string `locationName:"attribute" type:"string" enum:"NetworkInterfaceAttribute"`
  32899. // Checks whether you have the required permissions for the action, without
  32900. // actually making the request, and provides an error response. If you have
  32901. // the required permissions, the error response is DryRunOperation. Otherwise,
  32902. // it is UnauthorizedOperation.
  32903. DryRun *bool `locationName:"dryRun" type:"boolean"`
  32904. // The ID of the network interface.
  32905. //
  32906. // NetworkInterfaceId is a required field
  32907. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  32908. }
  32909. // String returns the string representation
  32910. func (s DescribeNetworkInterfaceAttributeInput) String() string {
  32911. return awsutil.Prettify(s)
  32912. }
  32913. // GoString returns the string representation
  32914. func (s DescribeNetworkInterfaceAttributeInput) GoString() string {
  32915. return s.String()
  32916. }
  32917. // Validate inspects the fields of the type to determine if they are valid.
  32918. func (s *DescribeNetworkInterfaceAttributeInput) Validate() error {
  32919. invalidParams := request.ErrInvalidParams{Context: "DescribeNetworkInterfaceAttributeInput"}
  32920. if s.NetworkInterfaceId == nil {
  32921. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  32922. }
  32923. if invalidParams.Len() > 0 {
  32924. return invalidParams
  32925. }
  32926. return nil
  32927. }
  32928. // SetAttribute sets the Attribute field's value.
  32929. func (s *DescribeNetworkInterfaceAttributeInput) SetAttribute(v string) *DescribeNetworkInterfaceAttributeInput {
  32930. s.Attribute = &v
  32931. return s
  32932. }
  32933. // SetDryRun sets the DryRun field's value.
  32934. func (s *DescribeNetworkInterfaceAttributeInput) SetDryRun(v bool) *DescribeNetworkInterfaceAttributeInput {
  32935. s.DryRun = &v
  32936. return s
  32937. }
  32938. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  32939. func (s *DescribeNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeInput {
  32940. s.NetworkInterfaceId = &v
  32941. return s
  32942. }
  32943. // Contains the output of DescribeNetworkInterfaceAttribute.
  32944. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttributeResult
  32945. type DescribeNetworkInterfaceAttributeOutput struct {
  32946. _ struct{} `type:"structure"`
  32947. // The attachment (if any) of the network interface.
  32948. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  32949. // The description of the network interface.
  32950. Description *AttributeValue `locationName:"description" type:"structure"`
  32951. // The security groups associated with the network interface.
  32952. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  32953. // The ID of the network interface.
  32954. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  32955. // Indicates whether source/destination checking is enabled.
  32956. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  32957. }
  32958. // String returns the string representation
  32959. func (s DescribeNetworkInterfaceAttributeOutput) String() string {
  32960. return awsutil.Prettify(s)
  32961. }
  32962. // GoString returns the string representation
  32963. func (s DescribeNetworkInterfaceAttributeOutput) GoString() string {
  32964. return s.String()
  32965. }
  32966. // SetAttachment sets the Attachment field's value.
  32967. func (s *DescribeNetworkInterfaceAttributeOutput) SetAttachment(v *NetworkInterfaceAttachment) *DescribeNetworkInterfaceAttributeOutput {
  32968. s.Attachment = v
  32969. return s
  32970. }
  32971. // SetDescription sets the Description field's value.
  32972. func (s *DescribeNetworkInterfaceAttributeOutput) SetDescription(v *AttributeValue) *DescribeNetworkInterfaceAttributeOutput {
  32973. s.Description = v
  32974. return s
  32975. }
  32976. // SetGroups sets the Groups field's value.
  32977. func (s *DescribeNetworkInterfaceAttributeOutput) SetGroups(v []*GroupIdentifier) *DescribeNetworkInterfaceAttributeOutput {
  32978. s.Groups = v
  32979. return s
  32980. }
  32981. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  32982. func (s *DescribeNetworkInterfaceAttributeOutput) SetNetworkInterfaceId(v string) *DescribeNetworkInterfaceAttributeOutput {
  32983. s.NetworkInterfaceId = &v
  32984. return s
  32985. }
  32986. // SetSourceDestCheck sets the SourceDestCheck field's value.
  32987. func (s *DescribeNetworkInterfaceAttributeOutput) SetSourceDestCheck(v *AttributeBooleanValue) *DescribeNetworkInterfaceAttributeOutput {
  32988. s.SourceDestCheck = v
  32989. return s
  32990. }
  32991. // Contains the parameters for DescribeNetworkInterfacePermissions.
  32992. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissionsRequest
  32993. type DescribeNetworkInterfacePermissionsInput struct {
  32994. _ struct{} `type:"structure"`
  32995. // One or more filters.
  32996. //
  32997. // * network-interface-permission.network-interface-permission-id - The ID
  32998. // of the permission.
  32999. //
  33000. // * network-interface-permission.network-interface-id - The ID of the network
  33001. // interface.
  33002. //
  33003. // * network-interface-permission.aws-account-id - The AWS account ID.
  33004. //
  33005. // * network-interface-permission.aws-service - The AWS service.
  33006. //
  33007. // * network-interface-permission.permission - The type of permission (INSTANCE-ATTACH
  33008. // | EIP-ASSOCIATE).
  33009. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33010. // The maximum number of results to return in a single call. To retrieve the
  33011. // remaining results, make another call with the returned NextToken value. If
  33012. // this parameter is not specified, up to 50 results are returned by default.
  33013. MaxResults *int64 `type:"integer"`
  33014. // One or more network interface permission IDs.
  33015. NetworkInterfacePermissionIds []*string `locationName:"NetworkInterfacePermissionId" type:"list"`
  33016. // The token to request the next page of results.
  33017. NextToken *string `type:"string"`
  33018. }
  33019. // String returns the string representation
  33020. func (s DescribeNetworkInterfacePermissionsInput) String() string {
  33021. return awsutil.Prettify(s)
  33022. }
  33023. // GoString returns the string representation
  33024. func (s DescribeNetworkInterfacePermissionsInput) GoString() string {
  33025. return s.String()
  33026. }
  33027. // SetFilters sets the Filters field's value.
  33028. func (s *DescribeNetworkInterfacePermissionsInput) SetFilters(v []*Filter) *DescribeNetworkInterfacePermissionsInput {
  33029. s.Filters = v
  33030. return s
  33031. }
  33032. // SetMaxResults sets the MaxResults field's value.
  33033. func (s *DescribeNetworkInterfacePermissionsInput) SetMaxResults(v int64) *DescribeNetworkInterfacePermissionsInput {
  33034. s.MaxResults = &v
  33035. return s
  33036. }
  33037. // SetNetworkInterfacePermissionIds sets the NetworkInterfacePermissionIds field's value.
  33038. func (s *DescribeNetworkInterfacePermissionsInput) SetNetworkInterfacePermissionIds(v []*string) *DescribeNetworkInterfacePermissionsInput {
  33039. s.NetworkInterfacePermissionIds = v
  33040. return s
  33041. }
  33042. // SetNextToken sets the NextToken field's value.
  33043. func (s *DescribeNetworkInterfacePermissionsInput) SetNextToken(v string) *DescribeNetworkInterfacePermissionsInput {
  33044. s.NextToken = &v
  33045. return s
  33046. }
  33047. // Contains the output for DescribeNetworkInterfacePermissions.
  33048. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacePermissionsResult
  33049. type DescribeNetworkInterfacePermissionsOutput struct {
  33050. _ struct{} `type:"structure"`
  33051. // The network interface permissions.
  33052. NetworkInterfacePermissions []*NetworkInterfacePermission `locationName:"networkInterfacePermissions" locationNameList:"item" type:"list"`
  33053. // The token to use to retrieve the next page of results.
  33054. NextToken *string `locationName:"nextToken" type:"string"`
  33055. }
  33056. // String returns the string representation
  33057. func (s DescribeNetworkInterfacePermissionsOutput) String() string {
  33058. return awsutil.Prettify(s)
  33059. }
  33060. // GoString returns the string representation
  33061. func (s DescribeNetworkInterfacePermissionsOutput) GoString() string {
  33062. return s.String()
  33063. }
  33064. // SetNetworkInterfacePermissions sets the NetworkInterfacePermissions field's value.
  33065. func (s *DescribeNetworkInterfacePermissionsOutput) SetNetworkInterfacePermissions(v []*NetworkInterfacePermission) *DescribeNetworkInterfacePermissionsOutput {
  33066. s.NetworkInterfacePermissions = v
  33067. return s
  33068. }
  33069. // SetNextToken sets the NextToken field's value.
  33070. func (s *DescribeNetworkInterfacePermissionsOutput) SetNextToken(v string) *DescribeNetworkInterfacePermissionsOutput {
  33071. s.NextToken = &v
  33072. return s
  33073. }
  33074. // Contains the parameters for DescribeNetworkInterfaces.
  33075. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacesRequest
  33076. type DescribeNetworkInterfacesInput struct {
  33077. _ struct{} `type:"structure"`
  33078. // Checks whether you have the required permissions for the action, without
  33079. // actually making the request, and provides an error response. If you have
  33080. // the required permissions, the error response is DryRunOperation. Otherwise,
  33081. // it is UnauthorizedOperation.
  33082. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33083. // One or more filters.
  33084. //
  33085. // * addresses.private-ip-address - The private IPv4 addresses associated
  33086. // with the network interface.
  33087. //
  33088. // * addresses.primary - Whether the private IPv4 address is the primary
  33089. // IP address associated with the network interface.
  33090. //
  33091. // * addresses.association.public-ip - The association ID returned when the
  33092. // network interface was associated with the Elastic IP address (IPv4).
  33093. //
  33094. // * addresses.association.owner-id - The owner ID of the addresses associated
  33095. // with the network interface.
  33096. //
  33097. // * association.association-id - The association ID returned when the network
  33098. // interface was associated with an IPv4 address.
  33099. //
  33100. // * association.allocation-id - The allocation ID returned when you allocated
  33101. // the Elastic IP address (IPv4) for your network interface.
  33102. //
  33103. // * association.ip-owner-id - The owner of the Elastic IP address (IPv4)
  33104. // associated with the network interface.
  33105. //
  33106. // * association.public-ip - The address of the Elastic IP address (IPv4)
  33107. // bound to the network interface.
  33108. //
  33109. // * association.public-dns-name - The public DNS name for the network interface
  33110. // (IPv4).
  33111. //
  33112. // * attachment.attachment-id - The ID of the interface attachment.
  33113. //
  33114. // * attachment.attach.time - The time that the network interface was attached
  33115. // to an instance.
  33116. //
  33117. // * attachment.delete-on-termination - Indicates whether the attachment
  33118. // is deleted when an instance is terminated.
  33119. //
  33120. // * attachment.device-index - The device index to which the network interface
  33121. // is attached.
  33122. //
  33123. // * attachment.instance-id - The ID of the instance to which the network
  33124. // interface is attached.
  33125. //
  33126. // * attachment.instance-owner-id - The owner ID of the instance to which
  33127. // the network interface is attached.
  33128. //
  33129. // * attachment.nat-gateway-id - The ID of the NAT gateway to which the network
  33130. // interface is attached.
  33131. //
  33132. // * attachment.status - The status of the attachment (attaching | attached
  33133. // | detaching | detached).
  33134. //
  33135. // * availability-zone - The Availability Zone of the network interface.
  33136. //
  33137. // * description - The description of the network interface.
  33138. //
  33139. // * group-id - The ID of a security group associated with the network interface.
  33140. //
  33141. // * group-name - The name of a security group associated with the network
  33142. // interface.
  33143. //
  33144. // * ipv6-addresses.ipv6-address - An IPv6 address associated with the network
  33145. // interface.
  33146. //
  33147. // * mac-address - The MAC address of the network interface.
  33148. //
  33149. // * network-interface-id - The ID of the network interface.
  33150. //
  33151. // * owner-id - The AWS account ID of the network interface owner.
  33152. //
  33153. // * private-ip-address - The private IPv4 address or addresses of the network
  33154. // interface.
  33155. //
  33156. // * private-dns-name - The private DNS name of the network interface (IPv4).
  33157. //
  33158. // * requester-id - The ID of the entity that launched the instance on your
  33159. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  33160. //
  33161. // * requester-managed - Indicates whether the network interface is being
  33162. // managed by an AWS service (for example, AWS Management Console, Auto Scaling,
  33163. // and so on).
  33164. //
  33165. // * source-desk-check - Indicates whether the network interface performs
  33166. // source/destination checking. A value of true means checking is enabled,
  33167. // and false means checking is disabled. The value must be false for the
  33168. // network interface to perform network address translation (NAT) in your
  33169. // VPC.
  33170. //
  33171. // * status - The status of the network interface. If the network interface
  33172. // is not attached to an instance, the status is available; if a network
  33173. // interface is attached to an instance the status is in-use.
  33174. //
  33175. // * subnet-id - The ID of the subnet for the network interface.
  33176. //
  33177. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  33178. // Specify the key of the tag in the filter name and the value of the tag
  33179. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  33180. // for the filter name and X for the filter value.
  33181. //
  33182. // * tag-key - The key of a tag assigned to the resource. This filter is
  33183. // independent of the tag-value filter. For example, if you use both the
  33184. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  33185. // assigned both the tag key Purpose (regardless of what the tag's value
  33186. // is), and the tag value X (regardless of what the tag's key is). If you
  33187. // want to list only resources where Purpose is X, see the tag:key=value
  33188. // filter.
  33189. //
  33190. // * tag-value - The value of a tag assigned to the resource. This filter
  33191. // is independent of the tag-key filter.
  33192. //
  33193. // * vpc-id - The ID of the VPC for the network interface.
  33194. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  33195. // One or more network interface IDs.
  33196. //
  33197. // Default: Describes all your network interfaces.
  33198. NetworkInterfaceIds []*string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"`
  33199. }
  33200. // String returns the string representation
  33201. func (s DescribeNetworkInterfacesInput) String() string {
  33202. return awsutil.Prettify(s)
  33203. }
  33204. // GoString returns the string representation
  33205. func (s DescribeNetworkInterfacesInput) GoString() string {
  33206. return s.String()
  33207. }
  33208. // SetDryRun sets the DryRun field's value.
  33209. func (s *DescribeNetworkInterfacesInput) SetDryRun(v bool) *DescribeNetworkInterfacesInput {
  33210. s.DryRun = &v
  33211. return s
  33212. }
  33213. // SetFilters sets the Filters field's value.
  33214. func (s *DescribeNetworkInterfacesInput) SetFilters(v []*Filter) *DescribeNetworkInterfacesInput {
  33215. s.Filters = v
  33216. return s
  33217. }
  33218. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  33219. func (s *DescribeNetworkInterfacesInput) SetNetworkInterfaceIds(v []*string) *DescribeNetworkInterfacesInput {
  33220. s.NetworkInterfaceIds = v
  33221. return s
  33222. }
  33223. // Contains the output of DescribeNetworkInterfaces.
  33224. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfacesResult
  33225. type DescribeNetworkInterfacesOutput struct {
  33226. _ struct{} `type:"structure"`
  33227. // Information about one or more network interfaces.
  33228. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  33229. }
  33230. // String returns the string representation
  33231. func (s DescribeNetworkInterfacesOutput) String() string {
  33232. return awsutil.Prettify(s)
  33233. }
  33234. // GoString returns the string representation
  33235. func (s DescribeNetworkInterfacesOutput) GoString() string {
  33236. return s.String()
  33237. }
  33238. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  33239. func (s *DescribeNetworkInterfacesOutput) SetNetworkInterfaces(v []*NetworkInterface) *DescribeNetworkInterfacesOutput {
  33240. s.NetworkInterfaces = v
  33241. return s
  33242. }
  33243. // Contains the parameters for DescribePlacementGroups.
  33244. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroupsRequest
  33245. type DescribePlacementGroupsInput struct {
  33246. _ struct{} `type:"structure"`
  33247. // Checks whether you have the required permissions for the action, without
  33248. // actually making the request, and provides an error response. If you have
  33249. // the required permissions, the error response is DryRunOperation. Otherwise,
  33250. // it is UnauthorizedOperation.
  33251. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33252. // One or more filters.
  33253. //
  33254. // * group-name - The name of the placement group.
  33255. //
  33256. // * state - The state of the placement group (pending | available | deleting
  33257. // | deleted).
  33258. //
  33259. // * strategy - The strategy of the placement group (cluster | spread).
  33260. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33261. // One or more placement group names.
  33262. //
  33263. // Default: Describes all your placement groups, or only those otherwise specified.
  33264. GroupNames []*string `locationName:"groupName" type:"list"`
  33265. }
  33266. // String returns the string representation
  33267. func (s DescribePlacementGroupsInput) String() string {
  33268. return awsutil.Prettify(s)
  33269. }
  33270. // GoString returns the string representation
  33271. func (s DescribePlacementGroupsInput) GoString() string {
  33272. return s.String()
  33273. }
  33274. // SetDryRun sets the DryRun field's value.
  33275. func (s *DescribePlacementGroupsInput) SetDryRun(v bool) *DescribePlacementGroupsInput {
  33276. s.DryRun = &v
  33277. return s
  33278. }
  33279. // SetFilters sets the Filters field's value.
  33280. func (s *DescribePlacementGroupsInput) SetFilters(v []*Filter) *DescribePlacementGroupsInput {
  33281. s.Filters = v
  33282. return s
  33283. }
  33284. // SetGroupNames sets the GroupNames field's value.
  33285. func (s *DescribePlacementGroupsInput) SetGroupNames(v []*string) *DescribePlacementGroupsInput {
  33286. s.GroupNames = v
  33287. return s
  33288. }
  33289. // Contains the output of DescribePlacementGroups.
  33290. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePlacementGroupsResult
  33291. type DescribePlacementGroupsOutput struct {
  33292. _ struct{} `type:"structure"`
  33293. // One or more placement groups.
  33294. PlacementGroups []*PlacementGroup `locationName:"placementGroupSet" locationNameList:"item" type:"list"`
  33295. }
  33296. // String returns the string representation
  33297. func (s DescribePlacementGroupsOutput) String() string {
  33298. return awsutil.Prettify(s)
  33299. }
  33300. // GoString returns the string representation
  33301. func (s DescribePlacementGroupsOutput) GoString() string {
  33302. return s.String()
  33303. }
  33304. // SetPlacementGroups sets the PlacementGroups field's value.
  33305. func (s *DescribePlacementGroupsOutput) SetPlacementGroups(v []*PlacementGroup) *DescribePlacementGroupsOutput {
  33306. s.PlacementGroups = v
  33307. return s
  33308. }
  33309. // Contains the parameters for DescribePrefixLists.
  33310. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixListsRequest
  33311. type DescribePrefixListsInput struct {
  33312. _ struct{} `type:"structure"`
  33313. // Checks whether you have the required permissions for the action, without
  33314. // actually making the request, and provides an error response. If you have
  33315. // the required permissions, the error response is DryRunOperation. Otherwise,
  33316. // it is UnauthorizedOperation.
  33317. DryRun *bool `type:"boolean"`
  33318. // One or more filters.
  33319. //
  33320. // * prefix-list-id: The ID of a prefix list.
  33321. //
  33322. // * prefix-list-name: The name of a prefix list.
  33323. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33324. // The maximum number of items to return for this request. The request returns
  33325. // a token that you can specify in a subsequent call to get the next set of
  33326. // results.
  33327. //
  33328. // Constraint: If the value specified is greater than 1000, we return only 1000
  33329. // items.
  33330. MaxResults *int64 `type:"integer"`
  33331. // The token for the next set of items to return. (You received this token from
  33332. // a prior call.)
  33333. NextToken *string `type:"string"`
  33334. // One or more prefix list IDs.
  33335. PrefixListIds []*string `locationName:"PrefixListId" locationNameList:"item" type:"list"`
  33336. }
  33337. // String returns the string representation
  33338. func (s DescribePrefixListsInput) String() string {
  33339. return awsutil.Prettify(s)
  33340. }
  33341. // GoString returns the string representation
  33342. func (s DescribePrefixListsInput) GoString() string {
  33343. return s.String()
  33344. }
  33345. // SetDryRun sets the DryRun field's value.
  33346. func (s *DescribePrefixListsInput) SetDryRun(v bool) *DescribePrefixListsInput {
  33347. s.DryRun = &v
  33348. return s
  33349. }
  33350. // SetFilters sets the Filters field's value.
  33351. func (s *DescribePrefixListsInput) SetFilters(v []*Filter) *DescribePrefixListsInput {
  33352. s.Filters = v
  33353. return s
  33354. }
  33355. // SetMaxResults sets the MaxResults field's value.
  33356. func (s *DescribePrefixListsInput) SetMaxResults(v int64) *DescribePrefixListsInput {
  33357. s.MaxResults = &v
  33358. return s
  33359. }
  33360. // SetNextToken sets the NextToken field's value.
  33361. func (s *DescribePrefixListsInput) SetNextToken(v string) *DescribePrefixListsInput {
  33362. s.NextToken = &v
  33363. return s
  33364. }
  33365. // SetPrefixListIds sets the PrefixListIds field's value.
  33366. func (s *DescribePrefixListsInput) SetPrefixListIds(v []*string) *DescribePrefixListsInput {
  33367. s.PrefixListIds = v
  33368. return s
  33369. }
  33370. // Contains the output of DescribePrefixLists.
  33371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePrefixListsResult
  33372. type DescribePrefixListsOutput struct {
  33373. _ struct{} `type:"structure"`
  33374. // The token to use when requesting the next set of items. If there are no additional
  33375. // items to return, the string is empty.
  33376. NextToken *string `locationName:"nextToken" type:"string"`
  33377. // All available prefix lists.
  33378. PrefixLists []*PrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"`
  33379. }
  33380. // String returns the string representation
  33381. func (s DescribePrefixListsOutput) String() string {
  33382. return awsutil.Prettify(s)
  33383. }
  33384. // GoString returns the string representation
  33385. func (s DescribePrefixListsOutput) GoString() string {
  33386. return s.String()
  33387. }
  33388. // SetNextToken sets the NextToken field's value.
  33389. func (s *DescribePrefixListsOutput) SetNextToken(v string) *DescribePrefixListsOutput {
  33390. s.NextToken = &v
  33391. return s
  33392. }
  33393. // SetPrefixLists sets the PrefixLists field's value.
  33394. func (s *DescribePrefixListsOutput) SetPrefixLists(v []*PrefixList) *DescribePrefixListsOutput {
  33395. s.PrefixLists = v
  33396. return s
  33397. }
  33398. // Contains the parameters for DescribeRegions.
  33399. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegionsRequest
  33400. type DescribeRegionsInput struct {
  33401. _ struct{} `type:"structure"`
  33402. // Checks whether you have the required permissions for the action, without
  33403. // actually making the request, and provides an error response. If you have
  33404. // the required permissions, the error response is DryRunOperation. Otherwise,
  33405. // it is UnauthorizedOperation.
  33406. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33407. // One or more filters.
  33408. //
  33409. // * endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).
  33410. //
  33411. // * region-name - The name of the region (for example, us-east-1).
  33412. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33413. // The names of one or more regions.
  33414. RegionNames []*string `locationName:"RegionName" locationNameList:"RegionName" type:"list"`
  33415. }
  33416. // String returns the string representation
  33417. func (s DescribeRegionsInput) String() string {
  33418. return awsutil.Prettify(s)
  33419. }
  33420. // GoString returns the string representation
  33421. func (s DescribeRegionsInput) GoString() string {
  33422. return s.String()
  33423. }
  33424. // SetDryRun sets the DryRun field's value.
  33425. func (s *DescribeRegionsInput) SetDryRun(v bool) *DescribeRegionsInput {
  33426. s.DryRun = &v
  33427. return s
  33428. }
  33429. // SetFilters sets the Filters field's value.
  33430. func (s *DescribeRegionsInput) SetFilters(v []*Filter) *DescribeRegionsInput {
  33431. s.Filters = v
  33432. return s
  33433. }
  33434. // SetRegionNames sets the RegionNames field's value.
  33435. func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput {
  33436. s.RegionNames = v
  33437. return s
  33438. }
  33439. // Contains the output of DescribeRegions.
  33440. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRegionsResult
  33441. type DescribeRegionsOutput struct {
  33442. _ struct{} `type:"structure"`
  33443. // Information about one or more regions.
  33444. Regions []*Region `locationName:"regionInfo" locationNameList:"item" type:"list"`
  33445. }
  33446. // String returns the string representation
  33447. func (s DescribeRegionsOutput) String() string {
  33448. return awsutil.Prettify(s)
  33449. }
  33450. // GoString returns the string representation
  33451. func (s DescribeRegionsOutput) GoString() string {
  33452. return s.String()
  33453. }
  33454. // SetRegions sets the Regions field's value.
  33455. func (s *DescribeRegionsOutput) SetRegions(v []*Region) *DescribeRegionsOutput {
  33456. s.Regions = v
  33457. return s
  33458. }
  33459. // Contains the parameters for DescribeReservedInstances.
  33460. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesRequest
  33461. type DescribeReservedInstancesInput struct {
  33462. _ struct{} `type:"structure"`
  33463. // Checks whether you have the required permissions for the action, without
  33464. // actually making the request, and provides an error response. If you have
  33465. // the required permissions, the error response is DryRunOperation. Otherwise,
  33466. // it is UnauthorizedOperation.
  33467. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33468. // One or more filters.
  33469. //
  33470. // * availability-zone - The Availability Zone where the Reserved Instance
  33471. // can be used.
  33472. //
  33473. // * duration - The duration of the Reserved Instance (one year or three
  33474. // years), in seconds (31536000 | 94608000).
  33475. //
  33476. // * end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).
  33477. //
  33478. // * fixed-price - The purchase price of the Reserved Instance (for example,
  33479. // 9800.0).
  33480. //
  33481. // * instance-type - The instance type that is covered by the reservation.
  33482. //
  33483. // * scope - The scope of the Reserved Instance (Region or Availability Zone).
  33484. //
  33485. // * product-description - The Reserved Instance product platform description.
  33486. // Instances that include (Amazon VPC) in the product platform description
  33487. // will only be displayed to EC2-Classic account holders and are for use
  33488. // with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE
  33489. // Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux
  33490. // (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server
  33491. // Standard | Windows with SQL Server Standard (Amazon VPC) | Windows with
  33492. // SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows with
  33493. // SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon VPC)).
  33494. //
  33495. // * reserved-instances-id - The ID of the Reserved Instance.
  33496. //
  33497. // * start - The time at which the Reserved Instance purchase request was
  33498. // placed (for example, 2014-08-07T11:54:42.000Z).
  33499. //
  33500. // * state - The state of the Reserved Instance (payment-pending | active
  33501. // | payment-failed | retired).
  33502. //
  33503. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  33504. // Specify the key of the tag in the filter name and the value of the tag
  33505. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  33506. // for the filter name and X for the filter value.
  33507. //
  33508. // * tag-key - The key of a tag assigned to the resource. This filter is
  33509. // independent of the tag-value filter. For example, if you use both the
  33510. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  33511. // assigned both the tag key Purpose (regardless of what the tag's value
  33512. // is), and the tag value X (regardless of what the tag's key is). If you
  33513. // want to list only resources where Purpose is X, see the tag:key=value
  33514. // filter.
  33515. //
  33516. // * tag-value - The value of a tag assigned to the resource. This filter
  33517. // is independent of the tag-key filter.
  33518. //
  33519. // * usage-price - The usage price of the Reserved Instance, per hour (for
  33520. // example, 0.84).
  33521. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33522. // Describes whether the Reserved Instance is Standard or Convertible.
  33523. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  33524. // The Reserved Instance offering type. If you are using tools that predate
  33525. // the 2011-11-01 API version, you only have access to the Medium Utilization
  33526. // Reserved Instance offering type.
  33527. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  33528. // One or more Reserved Instance IDs.
  33529. //
  33530. // Default: Describes all your Reserved Instances, or only those otherwise specified.
  33531. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"`
  33532. }
  33533. // String returns the string representation
  33534. func (s DescribeReservedInstancesInput) String() string {
  33535. return awsutil.Prettify(s)
  33536. }
  33537. // GoString returns the string representation
  33538. func (s DescribeReservedInstancesInput) GoString() string {
  33539. return s.String()
  33540. }
  33541. // SetDryRun sets the DryRun field's value.
  33542. func (s *DescribeReservedInstancesInput) SetDryRun(v bool) *DescribeReservedInstancesInput {
  33543. s.DryRun = &v
  33544. return s
  33545. }
  33546. // SetFilters sets the Filters field's value.
  33547. func (s *DescribeReservedInstancesInput) SetFilters(v []*Filter) *DescribeReservedInstancesInput {
  33548. s.Filters = v
  33549. return s
  33550. }
  33551. // SetOfferingClass sets the OfferingClass field's value.
  33552. func (s *DescribeReservedInstancesInput) SetOfferingClass(v string) *DescribeReservedInstancesInput {
  33553. s.OfferingClass = &v
  33554. return s
  33555. }
  33556. // SetOfferingType sets the OfferingType field's value.
  33557. func (s *DescribeReservedInstancesInput) SetOfferingType(v string) *DescribeReservedInstancesInput {
  33558. s.OfferingType = &v
  33559. return s
  33560. }
  33561. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  33562. func (s *DescribeReservedInstancesInput) SetReservedInstancesIds(v []*string) *DescribeReservedInstancesInput {
  33563. s.ReservedInstancesIds = v
  33564. return s
  33565. }
  33566. // Contains the parameters for DescribeReservedInstancesListings.
  33567. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListingsRequest
  33568. type DescribeReservedInstancesListingsInput struct {
  33569. _ struct{} `type:"structure"`
  33570. // One or more filters.
  33571. //
  33572. // * reserved-instances-id - The ID of the Reserved Instances.
  33573. //
  33574. // * reserved-instances-listing-id - The ID of the Reserved Instances listing.
  33575. //
  33576. // * status - The status of the Reserved Instance listing (pending | active
  33577. // | cancelled | closed).
  33578. //
  33579. // * status-message - The reason for the status.
  33580. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33581. // One or more Reserved Instance IDs.
  33582. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  33583. // One or more Reserved Instance listing IDs.
  33584. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  33585. }
  33586. // String returns the string representation
  33587. func (s DescribeReservedInstancesListingsInput) String() string {
  33588. return awsutil.Prettify(s)
  33589. }
  33590. // GoString returns the string representation
  33591. func (s DescribeReservedInstancesListingsInput) GoString() string {
  33592. return s.String()
  33593. }
  33594. // SetFilters sets the Filters field's value.
  33595. func (s *DescribeReservedInstancesListingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesListingsInput {
  33596. s.Filters = v
  33597. return s
  33598. }
  33599. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  33600. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesId(v string) *DescribeReservedInstancesListingsInput {
  33601. s.ReservedInstancesId = &v
  33602. return s
  33603. }
  33604. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  33605. func (s *DescribeReservedInstancesListingsInput) SetReservedInstancesListingId(v string) *DescribeReservedInstancesListingsInput {
  33606. s.ReservedInstancesListingId = &v
  33607. return s
  33608. }
  33609. // Contains the output of DescribeReservedInstancesListings.
  33610. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesListingsResult
  33611. type DescribeReservedInstancesListingsOutput struct {
  33612. _ struct{} `type:"structure"`
  33613. // Information about the Reserved Instance listing.
  33614. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  33615. }
  33616. // String returns the string representation
  33617. func (s DescribeReservedInstancesListingsOutput) String() string {
  33618. return awsutil.Prettify(s)
  33619. }
  33620. // GoString returns the string representation
  33621. func (s DescribeReservedInstancesListingsOutput) GoString() string {
  33622. return s.String()
  33623. }
  33624. // SetReservedInstancesListings sets the ReservedInstancesListings field's value.
  33625. func (s *DescribeReservedInstancesListingsOutput) SetReservedInstancesListings(v []*ReservedInstancesListing) *DescribeReservedInstancesListingsOutput {
  33626. s.ReservedInstancesListings = v
  33627. return s
  33628. }
  33629. // Contains the parameters for DescribeReservedInstancesModifications.
  33630. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModificationsRequest
  33631. type DescribeReservedInstancesModificationsInput struct {
  33632. _ struct{} `type:"structure"`
  33633. // One or more filters.
  33634. //
  33635. // * client-token - The idempotency token for the modification request.
  33636. //
  33637. // * create-date - The time when the modification request was created.
  33638. //
  33639. // * effective-date - The time when the modification becomes effective.
  33640. //
  33641. // * modification-result.reserved-instances-id - The ID for the Reserved
  33642. // Instances created as part of the modification request. This ID is only
  33643. // available when the status of the modification is fulfilled.
  33644. //
  33645. // * modification-result.target-configuration.availability-zone - The Availability
  33646. // Zone for the new Reserved Instances.
  33647. //
  33648. // * modification-result.target-configuration.instance-count - The number
  33649. // of new Reserved Instances.
  33650. //
  33651. // * modification-result.target-configuration.instance-type - The instance
  33652. // type of the new Reserved Instances.
  33653. //
  33654. // * modification-result.target-configuration.platform - The network platform
  33655. // of the new Reserved Instances (EC2-Classic | EC2-VPC).
  33656. //
  33657. // * reserved-instances-id - The ID of the Reserved Instances modified.
  33658. //
  33659. // * reserved-instances-modification-id - The ID of the modification request.
  33660. //
  33661. // * status - The status of the Reserved Instances modification request (processing
  33662. // | fulfilled | failed).
  33663. //
  33664. // * status-message - The reason for the status.
  33665. //
  33666. // * update-date - The time when the modification request was last updated.
  33667. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33668. // The token to retrieve the next page of results.
  33669. NextToken *string `locationName:"nextToken" type:"string"`
  33670. // IDs for the submitted modification request.
  33671. ReservedInstancesModificationIds []*string `locationName:"ReservedInstancesModificationId" locationNameList:"ReservedInstancesModificationId" type:"list"`
  33672. }
  33673. // String returns the string representation
  33674. func (s DescribeReservedInstancesModificationsInput) String() string {
  33675. return awsutil.Prettify(s)
  33676. }
  33677. // GoString returns the string representation
  33678. func (s DescribeReservedInstancesModificationsInput) GoString() string {
  33679. return s.String()
  33680. }
  33681. // SetFilters sets the Filters field's value.
  33682. func (s *DescribeReservedInstancesModificationsInput) SetFilters(v []*Filter) *DescribeReservedInstancesModificationsInput {
  33683. s.Filters = v
  33684. return s
  33685. }
  33686. // SetNextToken sets the NextToken field's value.
  33687. func (s *DescribeReservedInstancesModificationsInput) SetNextToken(v string) *DescribeReservedInstancesModificationsInput {
  33688. s.NextToken = &v
  33689. return s
  33690. }
  33691. // SetReservedInstancesModificationIds sets the ReservedInstancesModificationIds field's value.
  33692. func (s *DescribeReservedInstancesModificationsInput) SetReservedInstancesModificationIds(v []*string) *DescribeReservedInstancesModificationsInput {
  33693. s.ReservedInstancesModificationIds = v
  33694. return s
  33695. }
  33696. // Contains the output of DescribeReservedInstancesModifications.
  33697. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesModificationsResult
  33698. type DescribeReservedInstancesModificationsOutput struct {
  33699. _ struct{} `type:"structure"`
  33700. // The token to use to retrieve the next page of results. This value is null
  33701. // when there are no more results to return.
  33702. NextToken *string `locationName:"nextToken" type:"string"`
  33703. // The Reserved Instance modification information.
  33704. ReservedInstancesModifications []*ReservedInstancesModification `locationName:"reservedInstancesModificationsSet" locationNameList:"item" type:"list"`
  33705. }
  33706. // String returns the string representation
  33707. func (s DescribeReservedInstancesModificationsOutput) String() string {
  33708. return awsutil.Prettify(s)
  33709. }
  33710. // GoString returns the string representation
  33711. func (s DescribeReservedInstancesModificationsOutput) GoString() string {
  33712. return s.String()
  33713. }
  33714. // SetNextToken sets the NextToken field's value.
  33715. func (s *DescribeReservedInstancesModificationsOutput) SetNextToken(v string) *DescribeReservedInstancesModificationsOutput {
  33716. s.NextToken = &v
  33717. return s
  33718. }
  33719. // SetReservedInstancesModifications sets the ReservedInstancesModifications field's value.
  33720. func (s *DescribeReservedInstancesModificationsOutput) SetReservedInstancesModifications(v []*ReservedInstancesModification) *DescribeReservedInstancesModificationsOutput {
  33721. s.ReservedInstancesModifications = v
  33722. return s
  33723. }
  33724. // Contains the parameters for DescribeReservedInstancesOfferings.
  33725. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferingsRequest
  33726. type DescribeReservedInstancesOfferingsInput struct {
  33727. _ struct{} `type:"structure"`
  33728. // The Availability Zone in which the Reserved Instance can be used.
  33729. AvailabilityZone *string `type:"string"`
  33730. // Checks whether you have the required permissions for the action, without
  33731. // actually making the request, and provides an error response. If you have
  33732. // the required permissions, the error response is DryRunOperation. Otherwise,
  33733. // it is UnauthorizedOperation.
  33734. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33735. // One or more filters.
  33736. //
  33737. // * availability-zone - The Availability Zone where the Reserved Instance
  33738. // can be used.
  33739. //
  33740. // * duration - The duration of the Reserved Instance (for example, one year
  33741. // or three years), in seconds (31536000 | 94608000).
  33742. //
  33743. // * fixed-price - The purchase price of the Reserved Instance (for example,
  33744. // 9800.0).
  33745. //
  33746. // * instance-type - The instance type that is covered by the reservation.
  33747. //
  33748. // * marketplace - Set to true to show only Reserved Instance Marketplace
  33749. // offerings. When this filter is not used, which is the default behavior,
  33750. // all offerings from both AWS and the Reserved Instance Marketplace are
  33751. // listed.
  33752. //
  33753. // * product-description - The Reserved Instance product platform description.
  33754. // Instances that include (Amazon VPC) in the product platform description
  33755. // will only be displayed to EC2-Classic account holders and are for use
  33756. // with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux |
  33757. // SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise
  33758. // Linux (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL
  33759. // Server Standard | Windows with SQL Server Standard (Amazon VPC) | Windows
  33760. // with SQL Server Web | Windows with SQL Server Web (Amazon VPC) | Windows
  33761. // with SQL Server Enterprise | Windows with SQL Server Enterprise (Amazon
  33762. // VPC))
  33763. //
  33764. // * reserved-instances-offering-id - The Reserved Instances offering ID.
  33765. //
  33766. // * scope - The scope of the Reserved Instance (Availability Zone or Region).
  33767. //
  33768. // * usage-price - The usage price of the Reserved Instance, per hour (for
  33769. // example, 0.84).
  33770. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  33771. // Include Reserved Instance Marketplace offerings in the response.
  33772. IncludeMarketplace *bool `type:"boolean"`
  33773. // The tenancy of the instances covered by the reservation. A Reserved Instance
  33774. // with a tenancy of dedicated is applied to instances that run in a VPC on
  33775. // single-tenant hardware (i.e., Dedicated Instances).
  33776. //
  33777. // Important: The host value cannot be used with this parameter. Use the default
  33778. // or dedicated values only.
  33779. //
  33780. // Default: default
  33781. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  33782. // The instance type that the reservation will cover (for example, m1.small).
  33783. // For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  33784. // in the Amazon Elastic Compute Cloud User Guide.
  33785. InstanceType *string `type:"string" enum:"InstanceType"`
  33786. // The maximum duration (in seconds) to filter when searching for offerings.
  33787. //
  33788. // Default: 94608000 (3 years)
  33789. MaxDuration *int64 `type:"long"`
  33790. // The maximum number of instances to filter when searching for offerings.
  33791. //
  33792. // Default: 20
  33793. MaxInstanceCount *int64 `type:"integer"`
  33794. // The maximum number of results to return for the request in a single page.
  33795. // The remaining results of the initial request can be seen by sending another
  33796. // request with the returned NextToken value. The maximum is 100.
  33797. //
  33798. // Default: 100
  33799. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  33800. // The minimum duration (in seconds) to filter when searching for offerings.
  33801. //
  33802. // Default: 2592000 (1 month)
  33803. MinDuration *int64 `type:"long"`
  33804. // The token to retrieve the next page of results.
  33805. NextToken *string `locationName:"nextToken" type:"string"`
  33806. // The offering class of the Reserved Instance. Can be standard or convertible.
  33807. OfferingClass *string `type:"string" enum:"OfferingClassType"`
  33808. // The Reserved Instance offering type. If you are using tools that predate
  33809. // the 2011-11-01 API version, you only have access to the Medium Utilization
  33810. // Reserved Instance offering type.
  33811. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  33812. // The Reserved Instance product platform description. Instances that include
  33813. // (Amazon VPC) in the description are for use with Amazon VPC.
  33814. ProductDescription *string `type:"string" enum:"RIProductDescription"`
  33815. // One or more Reserved Instances offering IDs.
  33816. ReservedInstancesOfferingIds []*string `locationName:"ReservedInstancesOfferingId" type:"list"`
  33817. }
  33818. // String returns the string representation
  33819. func (s DescribeReservedInstancesOfferingsInput) String() string {
  33820. return awsutil.Prettify(s)
  33821. }
  33822. // GoString returns the string representation
  33823. func (s DescribeReservedInstancesOfferingsInput) GoString() string {
  33824. return s.String()
  33825. }
  33826. // SetAvailabilityZone sets the AvailabilityZone field's value.
  33827. func (s *DescribeReservedInstancesOfferingsInput) SetAvailabilityZone(v string) *DescribeReservedInstancesOfferingsInput {
  33828. s.AvailabilityZone = &v
  33829. return s
  33830. }
  33831. // SetDryRun sets the DryRun field's value.
  33832. func (s *DescribeReservedInstancesOfferingsInput) SetDryRun(v bool) *DescribeReservedInstancesOfferingsInput {
  33833. s.DryRun = &v
  33834. return s
  33835. }
  33836. // SetFilters sets the Filters field's value.
  33837. func (s *DescribeReservedInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedInstancesOfferingsInput {
  33838. s.Filters = v
  33839. return s
  33840. }
  33841. // SetIncludeMarketplace sets the IncludeMarketplace field's value.
  33842. func (s *DescribeReservedInstancesOfferingsInput) SetIncludeMarketplace(v bool) *DescribeReservedInstancesOfferingsInput {
  33843. s.IncludeMarketplace = &v
  33844. return s
  33845. }
  33846. // SetInstanceTenancy sets the InstanceTenancy field's value.
  33847. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceTenancy(v string) *DescribeReservedInstancesOfferingsInput {
  33848. s.InstanceTenancy = &v
  33849. return s
  33850. }
  33851. // SetInstanceType sets the InstanceType field's value.
  33852. func (s *DescribeReservedInstancesOfferingsInput) SetInstanceType(v string) *DescribeReservedInstancesOfferingsInput {
  33853. s.InstanceType = &v
  33854. return s
  33855. }
  33856. // SetMaxDuration sets the MaxDuration field's value.
  33857. func (s *DescribeReservedInstancesOfferingsInput) SetMaxDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  33858. s.MaxDuration = &v
  33859. return s
  33860. }
  33861. // SetMaxInstanceCount sets the MaxInstanceCount field's value.
  33862. func (s *DescribeReservedInstancesOfferingsInput) SetMaxInstanceCount(v int64) *DescribeReservedInstancesOfferingsInput {
  33863. s.MaxInstanceCount = &v
  33864. return s
  33865. }
  33866. // SetMaxResults sets the MaxResults field's value.
  33867. func (s *DescribeReservedInstancesOfferingsInput) SetMaxResults(v int64) *DescribeReservedInstancesOfferingsInput {
  33868. s.MaxResults = &v
  33869. return s
  33870. }
  33871. // SetMinDuration sets the MinDuration field's value.
  33872. func (s *DescribeReservedInstancesOfferingsInput) SetMinDuration(v int64) *DescribeReservedInstancesOfferingsInput {
  33873. s.MinDuration = &v
  33874. return s
  33875. }
  33876. // SetNextToken sets the NextToken field's value.
  33877. func (s *DescribeReservedInstancesOfferingsInput) SetNextToken(v string) *DescribeReservedInstancesOfferingsInput {
  33878. s.NextToken = &v
  33879. return s
  33880. }
  33881. // SetOfferingClass sets the OfferingClass field's value.
  33882. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingClass(v string) *DescribeReservedInstancesOfferingsInput {
  33883. s.OfferingClass = &v
  33884. return s
  33885. }
  33886. // SetOfferingType sets the OfferingType field's value.
  33887. func (s *DescribeReservedInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedInstancesOfferingsInput {
  33888. s.OfferingType = &v
  33889. return s
  33890. }
  33891. // SetProductDescription sets the ProductDescription field's value.
  33892. func (s *DescribeReservedInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedInstancesOfferingsInput {
  33893. s.ProductDescription = &v
  33894. return s
  33895. }
  33896. // SetReservedInstancesOfferingIds sets the ReservedInstancesOfferingIds field's value.
  33897. func (s *DescribeReservedInstancesOfferingsInput) SetReservedInstancesOfferingIds(v []*string) *DescribeReservedInstancesOfferingsInput {
  33898. s.ReservedInstancesOfferingIds = v
  33899. return s
  33900. }
  33901. // Contains the output of DescribeReservedInstancesOfferings.
  33902. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesOfferingsResult
  33903. type DescribeReservedInstancesOfferingsOutput struct {
  33904. _ struct{} `type:"structure"`
  33905. // The token to use to retrieve the next page of results. This value is null
  33906. // when there are no more results to return.
  33907. NextToken *string `locationName:"nextToken" type:"string"`
  33908. // A list of Reserved Instances offerings.
  33909. ReservedInstancesOfferings []*ReservedInstancesOffering `locationName:"reservedInstancesOfferingsSet" locationNameList:"item" type:"list"`
  33910. }
  33911. // String returns the string representation
  33912. func (s DescribeReservedInstancesOfferingsOutput) String() string {
  33913. return awsutil.Prettify(s)
  33914. }
  33915. // GoString returns the string representation
  33916. func (s DescribeReservedInstancesOfferingsOutput) GoString() string {
  33917. return s.String()
  33918. }
  33919. // SetNextToken sets the NextToken field's value.
  33920. func (s *DescribeReservedInstancesOfferingsOutput) SetNextToken(v string) *DescribeReservedInstancesOfferingsOutput {
  33921. s.NextToken = &v
  33922. return s
  33923. }
  33924. // SetReservedInstancesOfferings sets the ReservedInstancesOfferings field's value.
  33925. func (s *DescribeReservedInstancesOfferingsOutput) SetReservedInstancesOfferings(v []*ReservedInstancesOffering) *DescribeReservedInstancesOfferingsOutput {
  33926. s.ReservedInstancesOfferings = v
  33927. return s
  33928. }
  33929. // Contains the output for DescribeReservedInstances.
  33930. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReservedInstancesResult
  33931. type DescribeReservedInstancesOutput struct {
  33932. _ struct{} `type:"structure"`
  33933. // A list of Reserved Instances.
  33934. ReservedInstances []*ReservedInstances `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  33935. }
  33936. // String returns the string representation
  33937. func (s DescribeReservedInstancesOutput) String() string {
  33938. return awsutil.Prettify(s)
  33939. }
  33940. // GoString returns the string representation
  33941. func (s DescribeReservedInstancesOutput) GoString() string {
  33942. return s.String()
  33943. }
  33944. // SetReservedInstances sets the ReservedInstances field's value.
  33945. func (s *DescribeReservedInstancesOutput) SetReservedInstances(v []*ReservedInstances) *DescribeReservedInstancesOutput {
  33946. s.ReservedInstances = v
  33947. return s
  33948. }
  33949. // Contains the parameters for DescribeRouteTables.
  33950. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTablesRequest
  33951. type DescribeRouteTablesInput struct {
  33952. _ struct{} `type:"structure"`
  33953. // Checks whether you have the required permissions for the action, without
  33954. // actually making the request, and provides an error response. If you have
  33955. // the required permissions, the error response is DryRunOperation. Otherwise,
  33956. // it is UnauthorizedOperation.
  33957. DryRun *bool `locationName:"dryRun" type:"boolean"`
  33958. // One or more filters.
  33959. //
  33960. // * association.route-table-association-id - The ID of an association ID
  33961. // for the route table.
  33962. //
  33963. // * association.route-table-id - The ID of the route table involved in the
  33964. // association.
  33965. //
  33966. // * association.subnet-id - The ID of the subnet involved in the association.
  33967. //
  33968. // * association.main - Indicates whether the route table is the main route
  33969. // table for the VPC (true | false). Route tables that do not have an association
  33970. // ID are not returned in the response.
  33971. //
  33972. // * route-table-id - The ID of the route table.
  33973. //
  33974. // * route.destination-cidr-block - The IPv4 CIDR range specified in a route
  33975. // in the table.
  33976. //
  33977. // * route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in
  33978. // a route in the route table.
  33979. //
  33980. // * route.destination-prefix-list-id - The ID (prefix) of the AWS service
  33981. // specified in a route in the table.
  33982. //
  33983. // * route.egress-only-internet-gateway-id - The ID of an egress-only Internet
  33984. // gateway specified in a route in the route table.
  33985. //
  33986. // * route.gateway-id - The ID of a gateway specified in a route in the table.
  33987. //
  33988. // * route.instance-id - The ID of an instance specified in a route in the
  33989. // table.
  33990. //
  33991. // * route.nat-gateway-id - The ID of a NAT gateway.
  33992. //
  33993. // * route.origin - Describes how the route was created. CreateRouteTable
  33994. // indicates that the route was automatically created when the route table
  33995. // was created; CreateRoute indicates that the route was manually added to
  33996. // the route table; EnableVgwRoutePropagation indicates that the route was
  33997. // propagated by route propagation.
  33998. //
  33999. // * route.state - The state of a route in the route table (active | blackhole).
  34000. // The blackhole state indicates that the route's target isn't available
  34001. // (for example, the specified gateway isn't attached to the VPC, the specified
  34002. // NAT instance has been terminated, and so on).
  34003. //
  34004. // * route.vpc-peering-connection-id - The ID of a VPC peering connection
  34005. // specified in a route in the table.
  34006. //
  34007. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  34008. // Specify the key of the tag in the filter name and the value of the tag
  34009. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  34010. // for the filter name and X for the filter value.
  34011. //
  34012. // * tag-key - The key of a tag assigned to the resource. This filter is
  34013. // independent of the tag-value filter. For example, if you use both the
  34014. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  34015. // assigned both the tag key Purpose (regardless of what the tag's value
  34016. // is), and the tag value X (regardless of what the tag's key is). If you
  34017. // want to list only resources where Purpose is X, see the tag:key=value
  34018. // filter.
  34019. //
  34020. // * tag-value - The value of a tag assigned to the resource. This filter
  34021. // is independent of the tag-key filter.
  34022. //
  34023. // * vpc-id - The ID of the VPC for the route table.
  34024. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34025. // One or more route table IDs.
  34026. //
  34027. // Default: Describes all your route tables.
  34028. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  34029. }
  34030. // String returns the string representation
  34031. func (s DescribeRouteTablesInput) String() string {
  34032. return awsutil.Prettify(s)
  34033. }
  34034. // GoString returns the string representation
  34035. func (s DescribeRouteTablesInput) GoString() string {
  34036. return s.String()
  34037. }
  34038. // SetDryRun sets the DryRun field's value.
  34039. func (s *DescribeRouteTablesInput) SetDryRun(v bool) *DescribeRouteTablesInput {
  34040. s.DryRun = &v
  34041. return s
  34042. }
  34043. // SetFilters sets the Filters field's value.
  34044. func (s *DescribeRouteTablesInput) SetFilters(v []*Filter) *DescribeRouteTablesInput {
  34045. s.Filters = v
  34046. return s
  34047. }
  34048. // SetRouteTableIds sets the RouteTableIds field's value.
  34049. func (s *DescribeRouteTablesInput) SetRouteTableIds(v []*string) *DescribeRouteTablesInput {
  34050. s.RouteTableIds = v
  34051. return s
  34052. }
  34053. // Contains the output of DescribeRouteTables.
  34054. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTablesResult
  34055. type DescribeRouteTablesOutput struct {
  34056. _ struct{} `type:"structure"`
  34057. // Information about one or more route tables.
  34058. RouteTables []*RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"`
  34059. }
  34060. // String returns the string representation
  34061. func (s DescribeRouteTablesOutput) String() string {
  34062. return awsutil.Prettify(s)
  34063. }
  34064. // GoString returns the string representation
  34065. func (s DescribeRouteTablesOutput) GoString() string {
  34066. return s.String()
  34067. }
  34068. // SetRouteTables sets the RouteTables field's value.
  34069. func (s *DescribeRouteTablesOutput) SetRouteTables(v []*RouteTable) *DescribeRouteTablesOutput {
  34070. s.RouteTables = v
  34071. return s
  34072. }
  34073. // Contains the parameters for DescribeScheduledInstanceAvailability.
  34074. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailabilityRequest
  34075. type DescribeScheduledInstanceAvailabilityInput struct {
  34076. _ struct{} `type:"structure"`
  34077. // Checks whether you have the required permissions for the action, without
  34078. // actually making the request, and provides an error response. If you have
  34079. // the required permissions, the error response is DryRunOperation. Otherwise,
  34080. // it is UnauthorizedOperation.
  34081. DryRun *bool `type:"boolean"`
  34082. // One or more filters.
  34083. //
  34084. // * availability-zone - The Availability Zone (for example, us-west-2a).
  34085. //
  34086. // * instance-type - The instance type (for example, c4.large).
  34087. //
  34088. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  34089. //
  34090. // * platform - The platform (Linux/UNIX or Windows).
  34091. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34092. // The time period for the first schedule to start.
  34093. //
  34094. // FirstSlotStartTimeRange is a required field
  34095. FirstSlotStartTimeRange *SlotDateTimeRangeRequest `type:"structure" required:"true"`
  34096. // The maximum number of results to return in a single call. This value can
  34097. // be between 5 and 300. The default value is 300. To retrieve the remaining
  34098. // results, make another call with the returned NextToken value.
  34099. MaxResults *int64 `type:"integer"`
  34100. // The maximum available duration, in hours. This value must be greater than
  34101. // MinSlotDurationInHours and less than 1,720.
  34102. MaxSlotDurationInHours *int64 `type:"integer"`
  34103. // The minimum available duration, in hours. The minimum required duration is
  34104. // 1,200 hours per year. For example, the minimum daily schedule is 4 hours,
  34105. // the minimum weekly schedule is 24 hours, and the minimum monthly schedule
  34106. // is 100 hours.
  34107. MinSlotDurationInHours *int64 `type:"integer"`
  34108. // The token for the next set of results.
  34109. NextToken *string `type:"string"`
  34110. // The schedule recurrence.
  34111. //
  34112. // Recurrence is a required field
  34113. Recurrence *ScheduledInstanceRecurrenceRequest `type:"structure" required:"true"`
  34114. }
  34115. // String returns the string representation
  34116. func (s DescribeScheduledInstanceAvailabilityInput) String() string {
  34117. return awsutil.Prettify(s)
  34118. }
  34119. // GoString returns the string representation
  34120. func (s DescribeScheduledInstanceAvailabilityInput) GoString() string {
  34121. return s.String()
  34122. }
  34123. // Validate inspects the fields of the type to determine if they are valid.
  34124. func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error {
  34125. invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledInstanceAvailabilityInput"}
  34126. if s.FirstSlotStartTimeRange == nil {
  34127. invalidParams.Add(request.NewErrParamRequired("FirstSlotStartTimeRange"))
  34128. }
  34129. if s.Recurrence == nil {
  34130. invalidParams.Add(request.NewErrParamRequired("Recurrence"))
  34131. }
  34132. if s.FirstSlotStartTimeRange != nil {
  34133. if err := s.FirstSlotStartTimeRange.Validate(); err != nil {
  34134. invalidParams.AddNested("FirstSlotStartTimeRange", err.(request.ErrInvalidParams))
  34135. }
  34136. }
  34137. if invalidParams.Len() > 0 {
  34138. return invalidParams
  34139. }
  34140. return nil
  34141. }
  34142. // SetDryRun sets the DryRun field's value.
  34143. func (s *DescribeScheduledInstanceAvailabilityInput) SetDryRun(v bool) *DescribeScheduledInstanceAvailabilityInput {
  34144. s.DryRun = &v
  34145. return s
  34146. }
  34147. // SetFilters sets the Filters field's value.
  34148. func (s *DescribeScheduledInstanceAvailabilityInput) SetFilters(v []*Filter) *DescribeScheduledInstanceAvailabilityInput {
  34149. s.Filters = v
  34150. return s
  34151. }
  34152. // SetFirstSlotStartTimeRange sets the FirstSlotStartTimeRange field's value.
  34153. func (s *DescribeScheduledInstanceAvailabilityInput) SetFirstSlotStartTimeRange(v *SlotDateTimeRangeRequest) *DescribeScheduledInstanceAvailabilityInput {
  34154. s.FirstSlotStartTimeRange = v
  34155. return s
  34156. }
  34157. // SetMaxResults sets the MaxResults field's value.
  34158. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxResults(v int64) *DescribeScheduledInstanceAvailabilityInput {
  34159. s.MaxResults = &v
  34160. return s
  34161. }
  34162. // SetMaxSlotDurationInHours sets the MaxSlotDurationInHours field's value.
  34163. func (s *DescribeScheduledInstanceAvailabilityInput) SetMaxSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  34164. s.MaxSlotDurationInHours = &v
  34165. return s
  34166. }
  34167. // SetMinSlotDurationInHours sets the MinSlotDurationInHours field's value.
  34168. func (s *DescribeScheduledInstanceAvailabilityInput) SetMinSlotDurationInHours(v int64) *DescribeScheduledInstanceAvailabilityInput {
  34169. s.MinSlotDurationInHours = &v
  34170. return s
  34171. }
  34172. // SetNextToken sets the NextToken field's value.
  34173. func (s *DescribeScheduledInstanceAvailabilityInput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityInput {
  34174. s.NextToken = &v
  34175. return s
  34176. }
  34177. // SetRecurrence sets the Recurrence field's value.
  34178. func (s *DescribeScheduledInstanceAvailabilityInput) SetRecurrence(v *ScheduledInstanceRecurrenceRequest) *DescribeScheduledInstanceAvailabilityInput {
  34179. s.Recurrence = v
  34180. return s
  34181. }
  34182. // Contains the output of DescribeScheduledInstanceAvailability.
  34183. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstanceAvailabilityResult
  34184. type DescribeScheduledInstanceAvailabilityOutput struct {
  34185. _ struct{} `type:"structure"`
  34186. // The token required to retrieve the next set of results. This value is null
  34187. // when there are no more results to return.
  34188. NextToken *string `locationName:"nextToken" type:"string"`
  34189. // Information about the available Scheduled Instances.
  34190. ScheduledInstanceAvailabilitySet []*ScheduledInstanceAvailability `locationName:"scheduledInstanceAvailabilitySet" locationNameList:"item" type:"list"`
  34191. }
  34192. // String returns the string representation
  34193. func (s DescribeScheduledInstanceAvailabilityOutput) String() string {
  34194. return awsutil.Prettify(s)
  34195. }
  34196. // GoString returns the string representation
  34197. func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string {
  34198. return s.String()
  34199. }
  34200. // SetNextToken sets the NextToken field's value.
  34201. func (s *DescribeScheduledInstanceAvailabilityOutput) SetNextToken(v string) *DescribeScheduledInstanceAvailabilityOutput {
  34202. s.NextToken = &v
  34203. return s
  34204. }
  34205. // SetScheduledInstanceAvailabilitySet sets the ScheduledInstanceAvailabilitySet field's value.
  34206. func (s *DescribeScheduledInstanceAvailabilityOutput) SetScheduledInstanceAvailabilitySet(v []*ScheduledInstanceAvailability) *DescribeScheduledInstanceAvailabilityOutput {
  34207. s.ScheduledInstanceAvailabilitySet = v
  34208. return s
  34209. }
  34210. // Contains the parameters for DescribeScheduledInstances.
  34211. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstancesRequest
  34212. type DescribeScheduledInstancesInput struct {
  34213. _ struct{} `type:"structure"`
  34214. // Checks whether you have the required permissions for the action, without
  34215. // actually making the request, and provides an error response. If you have
  34216. // the required permissions, the error response is DryRunOperation. Otherwise,
  34217. // it is UnauthorizedOperation.
  34218. DryRun *bool `type:"boolean"`
  34219. // One or more filters.
  34220. //
  34221. // * availability-zone - The Availability Zone (for example, us-west-2a).
  34222. //
  34223. // * instance-type - The instance type (for example, c4.large).
  34224. //
  34225. // * network-platform - The network platform (EC2-Classic or EC2-VPC).
  34226. //
  34227. // * platform - The platform (Linux/UNIX or Windows).
  34228. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34229. // The maximum number of results to return in a single call. This value can
  34230. // be between 5 and 300. The default value is 100. To retrieve the remaining
  34231. // results, make another call with the returned NextToken value.
  34232. MaxResults *int64 `type:"integer"`
  34233. // The token for the next set of results.
  34234. NextToken *string `type:"string"`
  34235. // One or more Scheduled Instance IDs.
  34236. ScheduledInstanceIds []*string `locationName:"ScheduledInstanceId" locationNameList:"ScheduledInstanceId" type:"list"`
  34237. // The time period for the first schedule to start.
  34238. SlotStartTimeRange *SlotStartTimeRangeRequest `type:"structure"`
  34239. }
  34240. // String returns the string representation
  34241. func (s DescribeScheduledInstancesInput) String() string {
  34242. return awsutil.Prettify(s)
  34243. }
  34244. // GoString returns the string representation
  34245. func (s DescribeScheduledInstancesInput) GoString() string {
  34246. return s.String()
  34247. }
  34248. // SetDryRun sets the DryRun field's value.
  34249. func (s *DescribeScheduledInstancesInput) SetDryRun(v bool) *DescribeScheduledInstancesInput {
  34250. s.DryRun = &v
  34251. return s
  34252. }
  34253. // SetFilters sets the Filters field's value.
  34254. func (s *DescribeScheduledInstancesInput) SetFilters(v []*Filter) *DescribeScheduledInstancesInput {
  34255. s.Filters = v
  34256. return s
  34257. }
  34258. // SetMaxResults sets the MaxResults field's value.
  34259. func (s *DescribeScheduledInstancesInput) SetMaxResults(v int64) *DescribeScheduledInstancesInput {
  34260. s.MaxResults = &v
  34261. return s
  34262. }
  34263. // SetNextToken sets the NextToken field's value.
  34264. func (s *DescribeScheduledInstancesInput) SetNextToken(v string) *DescribeScheduledInstancesInput {
  34265. s.NextToken = &v
  34266. return s
  34267. }
  34268. // SetScheduledInstanceIds sets the ScheduledInstanceIds field's value.
  34269. func (s *DescribeScheduledInstancesInput) SetScheduledInstanceIds(v []*string) *DescribeScheduledInstancesInput {
  34270. s.ScheduledInstanceIds = v
  34271. return s
  34272. }
  34273. // SetSlotStartTimeRange sets the SlotStartTimeRange field's value.
  34274. func (s *DescribeScheduledInstancesInput) SetSlotStartTimeRange(v *SlotStartTimeRangeRequest) *DescribeScheduledInstancesInput {
  34275. s.SlotStartTimeRange = v
  34276. return s
  34277. }
  34278. // Contains the output of DescribeScheduledInstances.
  34279. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeScheduledInstancesResult
  34280. type DescribeScheduledInstancesOutput struct {
  34281. _ struct{} `type:"structure"`
  34282. // The token required to retrieve the next set of results. This value is null
  34283. // when there are no more results to return.
  34284. NextToken *string `locationName:"nextToken" type:"string"`
  34285. // Information about the Scheduled Instances.
  34286. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  34287. }
  34288. // String returns the string representation
  34289. func (s DescribeScheduledInstancesOutput) String() string {
  34290. return awsutil.Prettify(s)
  34291. }
  34292. // GoString returns the string representation
  34293. func (s DescribeScheduledInstancesOutput) GoString() string {
  34294. return s.String()
  34295. }
  34296. // SetNextToken sets the NextToken field's value.
  34297. func (s *DescribeScheduledInstancesOutput) SetNextToken(v string) *DescribeScheduledInstancesOutput {
  34298. s.NextToken = &v
  34299. return s
  34300. }
  34301. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  34302. func (s *DescribeScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *DescribeScheduledInstancesOutput {
  34303. s.ScheduledInstanceSet = v
  34304. return s
  34305. }
  34306. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferencesRequest
  34307. type DescribeSecurityGroupReferencesInput struct {
  34308. _ struct{} `type:"structure"`
  34309. // Checks whether you have the required permissions for the operation, without
  34310. // actually making the request, and provides an error response. If you have
  34311. // the required permissions, the error response is DryRunOperation. Otherwise,
  34312. // it is UnauthorizedOperation.
  34313. DryRun *bool `type:"boolean"`
  34314. // One or more security group IDs in your account.
  34315. //
  34316. // GroupId is a required field
  34317. GroupId []*string `locationNameList:"item" type:"list" required:"true"`
  34318. }
  34319. // String returns the string representation
  34320. func (s DescribeSecurityGroupReferencesInput) String() string {
  34321. return awsutil.Prettify(s)
  34322. }
  34323. // GoString returns the string representation
  34324. func (s DescribeSecurityGroupReferencesInput) GoString() string {
  34325. return s.String()
  34326. }
  34327. // Validate inspects the fields of the type to determine if they are valid.
  34328. func (s *DescribeSecurityGroupReferencesInput) Validate() error {
  34329. invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityGroupReferencesInput"}
  34330. if s.GroupId == nil {
  34331. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  34332. }
  34333. if invalidParams.Len() > 0 {
  34334. return invalidParams
  34335. }
  34336. return nil
  34337. }
  34338. // SetDryRun sets the DryRun field's value.
  34339. func (s *DescribeSecurityGroupReferencesInput) SetDryRun(v bool) *DescribeSecurityGroupReferencesInput {
  34340. s.DryRun = &v
  34341. return s
  34342. }
  34343. // SetGroupId sets the GroupId field's value.
  34344. func (s *DescribeSecurityGroupReferencesInput) SetGroupId(v []*string) *DescribeSecurityGroupReferencesInput {
  34345. s.GroupId = v
  34346. return s
  34347. }
  34348. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupReferencesResult
  34349. type DescribeSecurityGroupReferencesOutput struct {
  34350. _ struct{} `type:"structure"`
  34351. // Information about the VPCs with the referencing security groups.
  34352. SecurityGroupReferenceSet []*SecurityGroupReference `locationName:"securityGroupReferenceSet" locationNameList:"item" type:"list"`
  34353. }
  34354. // String returns the string representation
  34355. func (s DescribeSecurityGroupReferencesOutput) String() string {
  34356. return awsutil.Prettify(s)
  34357. }
  34358. // GoString returns the string representation
  34359. func (s DescribeSecurityGroupReferencesOutput) GoString() string {
  34360. return s.String()
  34361. }
  34362. // SetSecurityGroupReferenceSet sets the SecurityGroupReferenceSet field's value.
  34363. func (s *DescribeSecurityGroupReferencesOutput) SetSecurityGroupReferenceSet(v []*SecurityGroupReference) *DescribeSecurityGroupReferencesOutput {
  34364. s.SecurityGroupReferenceSet = v
  34365. return s
  34366. }
  34367. // Contains the parameters for DescribeSecurityGroups.
  34368. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupsRequest
  34369. type DescribeSecurityGroupsInput struct {
  34370. _ struct{} `type:"structure"`
  34371. // Checks whether you have the required permissions for the action, without
  34372. // actually making the request, and provides an error response. If you have
  34373. // the required permissions, the error response is DryRunOperation. Otherwise,
  34374. // it is UnauthorizedOperation.
  34375. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34376. // One or more filters. If using multiple filters for rules, the results include
  34377. // security groups for which any combination of rules - not necessarily a single
  34378. // rule - match all filters.
  34379. //
  34380. // * description - The description of the security group.
  34381. //
  34382. // * egress.ip-permission.cidr - An IPv4 CIDR block for an outbound security
  34383. // group rule.
  34384. //
  34385. // * egress.ip-permission.from-port - For an outbound rule, the start of
  34386. // port range for the TCP and UDP protocols, or an ICMP type number.
  34387. //
  34388. // * egress.ip-permission.group-id - The ID of a security group that has
  34389. // been referenced in an outbound security group rule.
  34390. //
  34391. // * egress.ip-permission.group-name - The name of a security group that
  34392. // has been referenced in an outbound security group rule.
  34393. //
  34394. // * egress.ip-permission.ipv6-cidr - An IPv6 CIDR block for an outbound
  34395. // security group rule.
  34396. //
  34397. // * egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service
  34398. // to which a security group rule allows outbound access.
  34399. //
  34400. // * egress.ip-permission.protocol - The IP protocol for an outbound security
  34401. // group rule (tcp | udp | icmp or a protocol number).
  34402. //
  34403. // * egress.ip-permission.to-port - For an outbound rule, the end of port
  34404. // range for the TCP and UDP protocols, or an ICMP code.
  34405. //
  34406. // * egress.ip-permission.user-id - The ID of an AWS account that has been
  34407. // referenced in an outbound security group rule.
  34408. //
  34409. // * group-id - The ID of the security group.
  34410. //
  34411. // * group-name - The name of the security group.
  34412. //
  34413. // * ip-permission.cidr - An IPv4 CIDR block for an inbound security group
  34414. // rule.
  34415. //
  34416. // * ip-permission.from-port - For an inbound rule, the start of port range
  34417. // for the TCP and UDP protocols, or an ICMP type number.
  34418. //
  34419. // * ip-permission.group-id - The ID of a security group that has been referenced
  34420. // in an inbound security group rule.
  34421. //
  34422. // * ip-permission.group-name - The name of a security group that has been
  34423. // referenced in an inbound security group rule.
  34424. //
  34425. // * ip-permission.ipv6-cidr - An IPv6 CIDR block for an inbound security
  34426. // group rule.
  34427. //
  34428. // * ip-permission.prefix-list-id - The ID (prefix) of the AWS service from
  34429. // which a security group rule allows inbound access.
  34430. //
  34431. // * ip-permission.protocol - The IP protocol for an inbound security group
  34432. // rule (tcp | udp | icmp or a protocol number).
  34433. //
  34434. // * ip-permission.to-port - For an inbound rule, the end of port range for
  34435. // the TCP and UDP protocols, or an ICMP code.
  34436. //
  34437. // * ip-permission.user-id - The ID of an AWS account that has been referenced
  34438. // in an inbound security group rule.
  34439. //
  34440. // * owner-id - The AWS account ID of the owner of the security group.
  34441. //
  34442. // * tag-key - The key of a tag assigned to the security group.
  34443. //
  34444. // * tag-value - The value of a tag assigned to the security group.
  34445. //
  34446. // * vpc-id - The ID of the VPC specified when the security group was created.
  34447. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34448. // One or more security group IDs. Required for security groups in a nondefault
  34449. // VPC.
  34450. //
  34451. // Default: Describes all your security groups.
  34452. GroupIds []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  34453. // [EC2-Classic and default VPC only] One or more security group names. You
  34454. // can specify either the security group name or the security group ID. For
  34455. // security groups in a nondefault VPC, use the group-name filter to describe
  34456. // security groups by name.
  34457. //
  34458. // Default: Describes all your security groups.
  34459. GroupNames []*string `locationName:"GroupName" locationNameList:"GroupName" type:"list"`
  34460. // The maximum number of results to return in a single call. To retrieve the
  34461. // remaining results, make another request with the returned NextToken value.
  34462. // This value can be between 5 and 1000.
  34463. MaxResults *int64 `type:"integer"`
  34464. // The token to request the next page of results.
  34465. NextToken *string `type:"string"`
  34466. }
  34467. // String returns the string representation
  34468. func (s DescribeSecurityGroupsInput) String() string {
  34469. return awsutil.Prettify(s)
  34470. }
  34471. // GoString returns the string representation
  34472. func (s DescribeSecurityGroupsInput) GoString() string {
  34473. return s.String()
  34474. }
  34475. // SetDryRun sets the DryRun field's value.
  34476. func (s *DescribeSecurityGroupsInput) SetDryRun(v bool) *DescribeSecurityGroupsInput {
  34477. s.DryRun = &v
  34478. return s
  34479. }
  34480. // SetFilters sets the Filters field's value.
  34481. func (s *DescribeSecurityGroupsInput) SetFilters(v []*Filter) *DescribeSecurityGroupsInput {
  34482. s.Filters = v
  34483. return s
  34484. }
  34485. // SetGroupIds sets the GroupIds field's value.
  34486. func (s *DescribeSecurityGroupsInput) SetGroupIds(v []*string) *DescribeSecurityGroupsInput {
  34487. s.GroupIds = v
  34488. return s
  34489. }
  34490. // SetGroupNames sets the GroupNames field's value.
  34491. func (s *DescribeSecurityGroupsInput) SetGroupNames(v []*string) *DescribeSecurityGroupsInput {
  34492. s.GroupNames = v
  34493. return s
  34494. }
  34495. // SetMaxResults sets the MaxResults field's value.
  34496. func (s *DescribeSecurityGroupsInput) SetMaxResults(v int64) *DescribeSecurityGroupsInput {
  34497. s.MaxResults = &v
  34498. return s
  34499. }
  34500. // SetNextToken sets the NextToken field's value.
  34501. func (s *DescribeSecurityGroupsInput) SetNextToken(v string) *DescribeSecurityGroupsInput {
  34502. s.NextToken = &v
  34503. return s
  34504. }
  34505. // Contains the output of DescribeSecurityGroups.
  34506. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSecurityGroupsResult
  34507. type DescribeSecurityGroupsOutput struct {
  34508. _ struct{} `type:"structure"`
  34509. // The token to use to retrieve the next page of results. This value is null
  34510. // when there are no more results to return.
  34511. NextToken *string `locationName:"nextToken" type:"string"`
  34512. // Information about one or more security groups.
  34513. SecurityGroups []*SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"`
  34514. }
  34515. // String returns the string representation
  34516. func (s DescribeSecurityGroupsOutput) String() string {
  34517. return awsutil.Prettify(s)
  34518. }
  34519. // GoString returns the string representation
  34520. func (s DescribeSecurityGroupsOutput) GoString() string {
  34521. return s.String()
  34522. }
  34523. // SetNextToken sets the NextToken field's value.
  34524. func (s *DescribeSecurityGroupsOutput) SetNextToken(v string) *DescribeSecurityGroupsOutput {
  34525. s.NextToken = &v
  34526. return s
  34527. }
  34528. // SetSecurityGroups sets the SecurityGroups field's value.
  34529. func (s *DescribeSecurityGroupsOutput) SetSecurityGroups(v []*SecurityGroup) *DescribeSecurityGroupsOutput {
  34530. s.SecurityGroups = v
  34531. return s
  34532. }
  34533. // Contains the parameters for DescribeSnapshotAttribute.
  34534. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttributeRequest
  34535. type DescribeSnapshotAttributeInput struct {
  34536. _ struct{} `type:"structure"`
  34537. // The snapshot attribute you would like to view.
  34538. //
  34539. // Attribute is a required field
  34540. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  34541. // Checks whether you have the required permissions for the action, without
  34542. // actually making the request, and provides an error response. If you have
  34543. // the required permissions, the error response is DryRunOperation. Otherwise,
  34544. // it is UnauthorizedOperation.
  34545. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34546. // The ID of the EBS snapshot.
  34547. //
  34548. // SnapshotId is a required field
  34549. SnapshotId *string `type:"string" required:"true"`
  34550. }
  34551. // String returns the string representation
  34552. func (s DescribeSnapshotAttributeInput) String() string {
  34553. return awsutil.Prettify(s)
  34554. }
  34555. // GoString returns the string representation
  34556. func (s DescribeSnapshotAttributeInput) GoString() string {
  34557. return s.String()
  34558. }
  34559. // Validate inspects the fields of the type to determine if they are valid.
  34560. func (s *DescribeSnapshotAttributeInput) Validate() error {
  34561. invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotAttributeInput"}
  34562. if s.Attribute == nil {
  34563. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  34564. }
  34565. if s.SnapshotId == nil {
  34566. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  34567. }
  34568. if invalidParams.Len() > 0 {
  34569. return invalidParams
  34570. }
  34571. return nil
  34572. }
  34573. // SetAttribute sets the Attribute field's value.
  34574. func (s *DescribeSnapshotAttributeInput) SetAttribute(v string) *DescribeSnapshotAttributeInput {
  34575. s.Attribute = &v
  34576. return s
  34577. }
  34578. // SetDryRun sets the DryRun field's value.
  34579. func (s *DescribeSnapshotAttributeInput) SetDryRun(v bool) *DescribeSnapshotAttributeInput {
  34580. s.DryRun = &v
  34581. return s
  34582. }
  34583. // SetSnapshotId sets the SnapshotId field's value.
  34584. func (s *DescribeSnapshotAttributeInput) SetSnapshotId(v string) *DescribeSnapshotAttributeInput {
  34585. s.SnapshotId = &v
  34586. return s
  34587. }
  34588. // Contains the output of DescribeSnapshotAttribute.
  34589. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotAttributeResult
  34590. type DescribeSnapshotAttributeOutput struct {
  34591. _ struct{} `type:"structure"`
  34592. // A list of permissions for creating volumes from the snapshot.
  34593. CreateVolumePermissions []*CreateVolumePermission `locationName:"createVolumePermission" locationNameList:"item" type:"list"`
  34594. // A list of product codes.
  34595. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  34596. // The ID of the EBS snapshot.
  34597. SnapshotId *string `locationName:"snapshotId" type:"string"`
  34598. }
  34599. // String returns the string representation
  34600. func (s DescribeSnapshotAttributeOutput) String() string {
  34601. return awsutil.Prettify(s)
  34602. }
  34603. // GoString returns the string representation
  34604. func (s DescribeSnapshotAttributeOutput) GoString() string {
  34605. return s.String()
  34606. }
  34607. // SetCreateVolumePermissions sets the CreateVolumePermissions field's value.
  34608. func (s *DescribeSnapshotAttributeOutput) SetCreateVolumePermissions(v []*CreateVolumePermission) *DescribeSnapshotAttributeOutput {
  34609. s.CreateVolumePermissions = v
  34610. return s
  34611. }
  34612. // SetProductCodes sets the ProductCodes field's value.
  34613. func (s *DescribeSnapshotAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeSnapshotAttributeOutput {
  34614. s.ProductCodes = v
  34615. return s
  34616. }
  34617. // SetSnapshotId sets the SnapshotId field's value.
  34618. func (s *DescribeSnapshotAttributeOutput) SetSnapshotId(v string) *DescribeSnapshotAttributeOutput {
  34619. s.SnapshotId = &v
  34620. return s
  34621. }
  34622. // Contains the parameters for DescribeSnapshots.
  34623. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotsRequest
  34624. type DescribeSnapshotsInput struct {
  34625. _ struct{} `type:"structure"`
  34626. // Checks whether you have the required permissions for the action, without
  34627. // actually making the request, and provides an error response. If you have
  34628. // the required permissions, the error response is DryRunOperation. Otherwise,
  34629. // it is UnauthorizedOperation.
  34630. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34631. // One or more filters.
  34632. //
  34633. // * description - A description of the snapshot.
  34634. //
  34635. // * owner-alias - Value from an Amazon-maintained list (amazon | aws-marketplace
  34636. // | microsoft) of snapshot owners. Not to be confused with the user-configured
  34637. // AWS account alias, which is set from the IAM console.
  34638. //
  34639. // * owner-id - The ID of the AWS account that owns the snapshot.
  34640. //
  34641. // * progress - The progress of the snapshot, as a percentage (for example,
  34642. // 80%).
  34643. //
  34644. // * snapshot-id - The snapshot ID.
  34645. //
  34646. // * start-time - The time stamp when the snapshot was initiated.
  34647. //
  34648. // * status - The status of the snapshot (pending | completed | error).
  34649. //
  34650. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  34651. // Specify the key of the tag in the filter name and the value of the tag
  34652. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  34653. // for the filter name and X for the filter value.
  34654. //
  34655. // * tag-key - The key of a tag assigned to the resource. This filter is
  34656. // independent of the tag-value filter. For example, if you use both the
  34657. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  34658. // assigned both the tag key Purpose (regardless of what the tag's value
  34659. // is), and the tag value X (regardless of what the tag's key is). If you
  34660. // want to list only resources where Purpose is X, see the tag:key=value
  34661. // filter.
  34662. //
  34663. // * tag-value - The value of a tag assigned to the resource. This filter
  34664. // is independent of the tag-key filter.
  34665. //
  34666. // * volume-id - The ID of the volume the snapshot is for.
  34667. //
  34668. // * volume-size - The size of the volume, in GiB.
  34669. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  34670. // The maximum number of snapshot results returned by DescribeSnapshots in paginated
  34671. // output. When this parameter is used, DescribeSnapshots only returns MaxResults
  34672. // results in a single page along with a NextToken response element. The remaining
  34673. // results of the initial request can be seen by sending another DescribeSnapshots
  34674. // request with the returned NextToken value. This value can be between 5 and
  34675. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  34676. // are returned. If this parameter is not used, then DescribeSnapshots returns
  34677. // all results. You cannot specify this parameter and the snapshot IDs parameter
  34678. // in the same request.
  34679. MaxResults *int64 `type:"integer"`
  34680. // The NextToken value returned from a previous paginated DescribeSnapshots
  34681. // request where MaxResults was used and the results exceeded the value of that
  34682. // parameter. Pagination continues from the end of the previous results that
  34683. // returned the NextToken value. This value is null when there are no more results
  34684. // to return.
  34685. NextToken *string `type:"string"`
  34686. // Returns the snapshots owned by the specified owner. Multiple owners can be
  34687. // specified.
  34688. OwnerIds []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  34689. // One or more AWS accounts IDs that can create volumes from the snapshot.
  34690. RestorableByUserIds []*string `locationName:"RestorableBy" type:"list"`
  34691. // One or more snapshot IDs.
  34692. //
  34693. // Default: Describes snapshots for which you have launch permissions.
  34694. SnapshotIds []*string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"`
  34695. }
  34696. // String returns the string representation
  34697. func (s DescribeSnapshotsInput) String() string {
  34698. return awsutil.Prettify(s)
  34699. }
  34700. // GoString returns the string representation
  34701. func (s DescribeSnapshotsInput) GoString() string {
  34702. return s.String()
  34703. }
  34704. // SetDryRun sets the DryRun field's value.
  34705. func (s *DescribeSnapshotsInput) SetDryRun(v bool) *DescribeSnapshotsInput {
  34706. s.DryRun = &v
  34707. return s
  34708. }
  34709. // SetFilters sets the Filters field's value.
  34710. func (s *DescribeSnapshotsInput) SetFilters(v []*Filter) *DescribeSnapshotsInput {
  34711. s.Filters = v
  34712. return s
  34713. }
  34714. // SetMaxResults sets the MaxResults field's value.
  34715. func (s *DescribeSnapshotsInput) SetMaxResults(v int64) *DescribeSnapshotsInput {
  34716. s.MaxResults = &v
  34717. return s
  34718. }
  34719. // SetNextToken sets the NextToken field's value.
  34720. func (s *DescribeSnapshotsInput) SetNextToken(v string) *DescribeSnapshotsInput {
  34721. s.NextToken = &v
  34722. return s
  34723. }
  34724. // SetOwnerIds sets the OwnerIds field's value.
  34725. func (s *DescribeSnapshotsInput) SetOwnerIds(v []*string) *DescribeSnapshotsInput {
  34726. s.OwnerIds = v
  34727. return s
  34728. }
  34729. // SetRestorableByUserIds sets the RestorableByUserIds field's value.
  34730. func (s *DescribeSnapshotsInput) SetRestorableByUserIds(v []*string) *DescribeSnapshotsInput {
  34731. s.RestorableByUserIds = v
  34732. return s
  34733. }
  34734. // SetSnapshotIds sets the SnapshotIds field's value.
  34735. func (s *DescribeSnapshotsInput) SetSnapshotIds(v []*string) *DescribeSnapshotsInput {
  34736. s.SnapshotIds = v
  34737. return s
  34738. }
  34739. // Contains the output of DescribeSnapshots.
  34740. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSnapshotsResult
  34741. type DescribeSnapshotsOutput struct {
  34742. _ struct{} `type:"structure"`
  34743. // The NextToken value to include in a future DescribeSnapshots request. When
  34744. // the results of a DescribeSnapshots request exceed MaxResults, this value
  34745. // can be used to retrieve the next page of results. This value is null when
  34746. // there are no more results to return.
  34747. NextToken *string `locationName:"nextToken" type:"string"`
  34748. // Information about the snapshots.
  34749. Snapshots []*Snapshot `locationName:"snapshotSet" locationNameList:"item" type:"list"`
  34750. }
  34751. // String returns the string representation
  34752. func (s DescribeSnapshotsOutput) String() string {
  34753. return awsutil.Prettify(s)
  34754. }
  34755. // GoString returns the string representation
  34756. func (s DescribeSnapshotsOutput) GoString() string {
  34757. return s.String()
  34758. }
  34759. // SetNextToken sets the NextToken field's value.
  34760. func (s *DescribeSnapshotsOutput) SetNextToken(v string) *DescribeSnapshotsOutput {
  34761. s.NextToken = &v
  34762. return s
  34763. }
  34764. // SetSnapshots sets the Snapshots field's value.
  34765. func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshotsOutput {
  34766. s.Snapshots = v
  34767. return s
  34768. }
  34769. // Contains the parameters for DescribeSpotDatafeedSubscription.
  34770. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscriptionRequest
  34771. type DescribeSpotDatafeedSubscriptionInput struct {
  34772. _ struct{} `type:"structure"`
  34773. // Checks whether you have the required permissions for the action, without
  34774. // actually making the request, and provides an error response. If you have
  34775. // the required permissions, the error response is DryRunOperation. Otherwise,
  34776. // it is UnauthorizedOperation.
  34777. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34778. }
  34779. // String returns the string representation
  34780. func (s DescribeSpotDatafeedSubscriptionInput) String() string {
  34781. return awsutil.Prettify(s)
  34782. }
  34783. // GoString returns the string representation
  34784. func (s DescribeSpotDatafeedSubscriptionInput) GoString() string {
  34785. return s.String()
  34786. }
  34787. // SetDryRun sets the DryRun field's value.
  34788. func (s *DescribeSpotDatafeedSubscriptionInput) SetDryRun(v bool) *DescribeSpotDatafeedSubscriptionInput {
  34789. s.DryRun = &v
  34790. return s
  34791. }
  34792. // Contains the output of DescribeSpotDatafeedSubscription.
  34793. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotDatafeedSubscriptionResult
  34794. type DescribeSpotDatafeedSubscriptionOutput struct {
  34795. _ struct{} `type:"structure"`
  34796. // The Spot Instance data feed subscription.
  34797. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  34798. }
  34799. // String returns the string representation
  34800. func (s DescribeSpotDatafeedSubscriptionOutput) String() string {
  34801. return awsutil.Prettify(s)
  34802. }
  34803. // GoString returns the string representation
  34804. func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string {
  34805. return s.String()
  34806. }
  34807. // SetSpotDatafeedSubscription sets the SpotDatafeedSubscription field's value.
  34808. func (s *DescribeSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *SpotDatafeedSubscription) *DescribeSpotDatafeedSubscriptionOutput {
  34809. s.SpotDatafeedSubscription = v
  34810. return s
  34811. }
  34812. // Contains the parameters for DescribeSpotFleetInstances.
  34813. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstancesRequest
  34814. type DescribeSpotFleetInstancesInput struct {
  34815. _ struct{} `type:"structure"`
  34816. // Checks whether you have the required permissions for the action, without
  34817. // actually making the request, and provides an error response. If you have
  34818. // the required permissions, the error response is DryRunOperation. Otherwise,
  34819. // it is UnauthorizedOperation.
  34820. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34821. // The maximum number of results to return in a single call. Specify a value
  34822. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  34823. // results, make another call with the returned NextToken value.
  34824. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  34825. // The token for the next set of results.
  34826. NextToken *string `locationName:"nextToken" type:"string"`
  34827. // The ID of the Spot Fleet request.
  34828. //
  34829. // SpotFleetRequestId is a required field
  34830. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  34831. }
  34832. // String returns the string representation
  34833. func (s DescribeSpotFleetInstancesInput) String() string {
  34834. return awsutil.Prettify(s)
  34835. }
  34836. // GoString returns the string representation
  34837. func (s DescribeSpotFleetInstancesInput) GoString() string {
  34838. return s.String()
  34839. }
  34840. // Validate inspects the fields of the type to determine if they are valid.
  34841. func (s *DescribeSpotFleetInstancesInput) Validate() error {
  34842. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetInstancesInput"}
  34843. if s.SpotFleetRequestId == nil {
  34844. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  34845. }
  34846. if invalidParams.Len() > 0 {
  34847. return invalidParams
  34848. }
  34849. return nil
  34850. }
  34851. // SetDryRun sets the DryRun field's value.
  34852. func (s *DescribeSpotFleetInstancesInput) SetDryRun(v bool) *DescribeSpotFleetInstancesInput {
  34853. s.DryRun = &v
  34854. return s
  34855. }
  34856. // SetMaxResults sets the MaxResults field's value.
  34857. func (s *DescribeSpotFleetInstancesInput) SetMaxResults(v int64) *DescribeSpotFleetInstancesInput {
  34858. s.MaxResults = &v
  34859. return s
  34860. }
  34861. // SetNextToken sets the NextToken field's value.
  34862. func (s *DescribeSpotFleetInstancesInput) SetNextToken(v string) *DescribeSpotFleetInstancesInput {
  34863. s.NextToken = &v
  34864. return s
  34865. }
  34866. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  34867. func (s *DescribeSpotFleetInstancesInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesInput {
  34868. s.SpotFleetRequestId = &v
  34869. return s
  34870. }
  34871. // Contains the output of DescribeSpotFleetInstances.
  34872. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetInstancesResponse
  34873. type DescribeSpotFleetInstancesOutput struct {
  34874. _ struct{} `type:"structure"`
  34875. // The running instances. Note that this list is refreshed periodically and
  34876. // might be out of date.
  34877. //
  34878. // ActiveInstances is a required field
  34879. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list" required:"true"`
  34880. // The token required to retrieve the next set of results. This value is null
  34881. // when there are no more results to return.
  34882. NextToken *string `locationName:"nextToken" type:"string"`
  34883. // The ID of the Spot Fleet request.
  34884. //
  34885. // SpotFleetRequestId is a required field
  34886. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  34887. }
  34888. // String returns the string representation
  34889. func (s DescribeSpotFleetInstancesOutput) String() string {
  34890. return awsutil.Prettify(s)
  34891. }
  34892. // GoString returns the string representation
  34893. func (s DescribeSpotFleetInstancesOutput) GoString() string {
  34894. return s.String()
  34895. }
  34896. // SetActiveInstances sets the ActiveInstances field's value.
  34897. func (s *DescribeSpotFleetInstancesOutput) SetActiveInstances(v []*ActiveInstance) *DescribeSpotFleetInstancesOutput {
  34898. s.ActiveInstances = v
  34899. return s
  34900. }
  34901. // SetNextToken sets the NextToken field's value.
  34902. func (s *DescribeSpotFleetInstancesOutput) SetNextToken(v string) *DescribeSpotFleetInstancesOutput {
  34903. s.NextToken = &v
  34904. return s
  34905. }
  34906. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  34907. func (s *DescribeSpotFleetInstancesOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetInstancesOutput {
  34908. s.SpotFleetRequestId = &v
  34909. return s
  34910. }
  34911. // Contains the parameters for DescribeSpotFleetRequestHistory.
  34912. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistoryRequest
  34913. type DescribeSpotFleetRequestHistoryInput struct {
  34914. _ struct{} `type:"structure"`
  34915. // Checks whether you have the required permissions for the action, without
  34916. // actually making the request, and provides an error response. If you have
  34917. // the required permissions, the error response is DryRunOperation. Otherwise,
  34918. // it is UnauthorizedOperation.
  34919. DryRun *bool `locationName:"dryRun" type:"boolean"`
  34920. // The type of events to describe. By default, all events are described.
  34921. EventType *string `locationName:"eventType" type:"string" enum:"EventType"`
  34922. // The maximum number of results to return in a single call. Specify a value
  34923. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  34924. // results, make another call with the returned NextToken value.
  34925. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  34926. // The token for the next set of results.
  34927. NextToken *string `locationName:"nextToken" type:"string"`
  34928. // The ID of the Spot Fleet request.
  34929. //
  34930. // SpotFleetRequestId is a required field
  34931. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  34932. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  34933. //
  34934. // StartTime is a required field
  34935. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  34936. }
  34937. // String returns the string representation
  34938. func (s DescribeSpotFleetRequestHistoryInput) String() string {
  34939. return awsutil.Prettify(s)
  34940. }
  34941. // GoString returns the string representation
  34942. func (s DescribeSpotFleetRequestHistoryInput) GoString() string {
  34943. return s.String()
  34944. }
  34945. // Validate inspects the fields of the type to determine if they are valid.
  34946. func (s *DescribeSpotFleetRequestHistoryInput) Validate() error {
  34947. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetRequestHistoryInput"}
  34948. if s.SpotFleetRequestId == nil {
  34949. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  34950. }
  34951. if s.StartTime == nil {
  34952. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  34953. }
  34954. if invalidParams.Len() > 0 {
  34955. return invalidParams
  34956. }
  34957. return nil
  34958. }
  34959. // SetDryRun sets the DryRun field's value.
  34960. func (s *DescribeSpotFleetRequestHistoryInput) SetDryRun(v bool) *DescribeSpotFleetRequestHistoryInput {
  34961. s.DryRun = &v
  34962. return s
  34963. }
  34964. // SetEventType sets the EventType field's value.
  34965. func (s *DescribeSpotFleetRequestHistoryInput) SetEventType(v string) *DescribeSpotFleetRequestHistoryInput {
  34966. s.EventType = &v
  34967. return s
  34968. }
  34969. // SetMaxResults sets the MaxResults field's value.
  34970. func (s *DescribeSpotFleetRequestHistoryInput) SetMaxResults(v int64) *DescribeSpotFleetRequestHistoryInput {
  34971. s.MaxResults = &v
  34972. return s
  34973. }
  34974. // SetNextToken sets the NextToken field's value.
  34975. func (s *DescribeSpotFleetRequestHistoryInput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryInput {
  34976. s.NextToken = &v
  34977. return s
  34978. }
  34979. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  34980. func (s *DescribeSpotFleetRequestHistoryInput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryInput {
  34981. s.SpotFleetRequestId = &v
  34982. return s
  34983. }
  34984. // SetStartTime sets the StartTime field's value.
  34985. func (s *DescribeSpotFleetRequestHistoryInput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryInput {
  34986. s.StartTime = &v
  34987. return s
  34988. }
  34989. // Contains the output of DescribeSpotFleetRequestHistory.
  34990. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestHistoryResponse
  34991. type DescribeSpotFleetRequestHistoryOutput struct {
  34992. _ struct{} `type:"structure"`
  34993. // Information about the events in the history of the Spot Fleet request.
  34994. //
  34995. // HistoryRecords is a required field
  34996. HistoryRecords []*HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list" required:"true"`
  34997. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  34998. // All records up to this time were retrieved.
  34999. //
  35000. // If nextToken indicates that there are more results, this value is not present.
  35001. //
  35002. // LastEvaluatedTime is a required field
  35003. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  35004. // The token required to retrieve the next set of results. This value is null
  35005. // when there are no more results to return.
  35006. NextToken *string `locationName:"nextToken" type:"string"`
  35007. // The ID of the Spot Fleet request.
  35008. //
  35009. // SpotFleetRequestId is a required field
  35010. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  35011. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  35012. //
  35013. // StartTime is a required field
  35014. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  35015. }
  35016. // String returns the string representation
  35017. func (s DescribeSpotFleetRequestHistoryOutput) String() string {
  35018. return awsutil.Prettify(s)
  35019. }
  35020. // GoString returns the string representation
  35021. func (s DescribeSpotFleetRequestHistoryOutput) GoString() string {
  35022. return s.String()
  35023. }
  35024. // SetHistoryRecords sets the HistoryRecords field's value.
  35025. func (s *DescribeSpotFleetRequestHistoryOutput) SetHistoryRecords(v []*HistoryRecord) *DescribeSpotFleetRequestHistoryOutput {
  35026. s.HistoryRecords = v
  35027. return s
  35028. }
  35029. // SetLastEvaluatedTime sets the LastEvaluatedTime field's value.
  35030. func (s *DescribeSpotFleetRequestHistoryOutput) SetLastEvaluatedTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  35031. s.LastEvaluatedTime = &v
  35032. return s
  35033. }
  35034. // SetNextToken sets the NextToken field's value.
  35035. func (s *DescribeSpotFleetRequestHistoryOutput) SetNextToken(v string) *DescribeSpotFleetRequestHistoryOutput {
  35036. s.NextToken = &v
  35037. return s
  35038. }
  35039. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  35040. func (s *DescribeSpotFleetRequestHistoryOutput) SetSpotFleetRequestId(v string) *DescribeSpotFleetRequestHistoryOutput {
  35041. s.SpotFleetRequestId = &v
  35042. return s
  35043. }
  35044. // SetStartTime sets the StartTime field's value.
  35045. func (s *DescribeSpotFleetRequestHistoryOutput) SetStartTime(v time.Time) *DescribeSpotFleetRequestHistoryOutput {
  35046. s.StartTime = &v
  35047. return s
  35048. }
  35049. // Contains the parameters for DescribeSpotFleetRequests.
  35050. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestsRequest
  35051. type DescribeSpotFleetRequestsInput struct {
  35052. _ struct{} `type:"structure"`
  35053. // Checks whether you have the required permissions for the action, without
  35054. // actually making the request, and provides an error response. If you have
  35055. // the required permissions, the error response is DryRunOperation. Otherwise,
  35056. // it is UnauthorizedOperation.
  35057. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35058. // The maximum number of results to return in a single call. Specify a value
  35059. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  35060. // results, make another call with the returned NextToken value.
  35061. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  35062. // The token for the next set of results.
  35063. NextToken *string `locationName:"nextToken" type:"string"`
  35064. // The IDs of the Spot Fleet requests.
  35065. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"`
  35066. }
  35067. // String returns the string representation
  35068. func (s DescribeSpotFleetRequestsInput) String() string {
  35069. return awsutil.Prettify(s)
  35070. }
  35071. // GoString returns the string representation
  35072. func (s DescribeSpotFleetRequestsInput) GoString() string {
  35073. return s.String()
  35074. }
  35075. // SetDryRun sets the DryRun field's value.
  35076. func (s *DescribeSpotFleetRequestsInput) SetDryRun(v bool) *DescribeSpotFleetRequestsInput {
  35077. s.DryRun = &v
  35078. return s
  35079. }
  35080. // SetMaxResults sets the MaxResults field's value.
  35081. func (s *DescribeSpotFleetRequestsInput) SetMaxResults(v int64) *DescribeSpotFleetRequestsInput {
  35082. s.MaxResults = &v
  35083. return s
  35084. }
  35085. // SetNextToken sets the NextToken field's value.
  35086. func (s *DescribeSpotFleetRequestsInput) SetNextToken(v string) *DescribeSpotFleetRequestsInput {
  35087. s.NextToken = &v
  35088. return s
  35089. }
  35090. // SetSpotFleetRequestIds sets the SpotFleetRequestIds field's value.
  35091. func (s *DescribeSpotFleetRequestsInput) SetSpotFleetRequestIds(v []*string) *DescribeSpotFleetRequestsInput {
  35092. s.SpotFleetRequestIds = v
  35093. return s
  35094. }
  35095. // Contains the output of DescribeSpotFleetRequests.
  35096. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotFleetRequestsResponse
  35097. type DescribeSpotFleetRequestsOutput struct {
  35098. _ struct{} `type:"structure"`
  35099. // The token required to retrieve the next set of results. This value is null
  35100. // when there are no more results to return.
  35101. NextToken *string `locationName:"nextToken" type:"string"`
  35102. // Information about the configuration of your Spot Fleet.
  35103. //
  35104. // SpotFleetRequestConfigs is a required field
  35105. SpotFleetRequestConfigs []*SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list" required:"true"`
  35106. }
  35107. // String returns the string representation
  35108. func (s DescribeSpotFleetRequestsOutput) String() string {
  35109. return awsutil.Prettify(s)
  35110. }
  35111. // GoString returns the string representation
  35112. func (s DescribeSpotFleetRequestsOutput) GoString() string {
  35113. return s.String()
  35114. }
  35115. // SetNextToken sets the NextToken field's value.
  35116. func (s *DescribeSpotFleetRequestsOutput) SetNextToken(v string) *DescribeSpotFleetRequestsOutput {
  35117. s.NextToken = &v
  35118. return s
  35119. }
  35120. // SetSpotFleetRequestConfigs sets the SpotFleetRequestConfigs field's value.
  35121. func (s *DescribeSpotFleetRequestsOutput) SetSpotFleetRequestConfigs(v []*SpotFleetRequestConfig) *DescribeSpotFleetRequestsOutput {
  35122. s.SpotFleetRequestConfigs = v
  35123. return s
  35124. }
  35125. // Contains the parameters for DescribeSpotInstanceRequests.
  35126. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequestsRequest
  35127. type DescribeSpotInstanceRequestsInput struct {
  35128. _ struct{} `type:"structure"`
  35129. // Checks whether you have the required permissions for the action, without
  35130. // actually making the request, and provides an error response. If you have
  35131. // the required permissions, the error response is DryRunOperation. Otherwise,
  35132. // it is UnauthorizedOperation.
  35133. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35134. // One or more filters.
  35135. //
  35136. // * availability-zone-group - The Availability Zone group.
  35137. //
  35138. // * create-time - The time stamp when the Spot Instance request was created.
  35139. //
  35140. // * fault-code - The fault code related to the request.
  35141. //
  35142. // * fault-message - The fault message related to the request.
  35143. //
  35144. // * instance-id - The ID of the instance that fulfilled the request.
  35145. //
  35146. // * launch-group - The Spot Instance launch group.
  35147. //
  35148. // * launch.block-device-mapping.delete-on-termination - Indicates whether
  35149. // the EBS volume is deleted on instance termination.
  35150. //
  35151. // * launch.block-device-mapping.device-name - The device name for the volume
  35152. // in the block device mapping (for example, /dev/sdh or xvdh).
  35153. //
  35154. // * launch.block-device-mapping.snapshot-id - The ID of the snapshot for
  35155. // the EBS volume.
  35156. //
  35157. // * launch.block-device-mapping.volume-size - The size of the EBS volume,
  35158. // in GiB.
  35159. //
  35160. // * launch.block-device-mapping.volume-type - The type of EBS volume: gp2
  35161. // for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput
  35162. // Optimized HDD, sc1for Cold HDD, or standard for Magnetic.
  35163. //
  35164. // * launch.group-id - The security group for the instance.
  35165. //
  35166. // * launch.image-id - The ID of the AMI.
  35167. //
  35168. // * launch.instance-type - The type of instance (for example, m3.medium).
  35169. //
  35170. // * launch.kernel-id - The kernel ID.
  35171. //
  35172. // * launch.key-name - The name of the key pair the instance launched with.
  35173. //
  35174. // * launch.monitoring-enabled - Whether detailed monitoring is enabled for
  35175. // the Spot Instance.
  35176. //
  35177. // * launch.ramdisk-id - The RAM disk ID.
  35178. //
  35179. // * launched-availability-zone - The Availability Zone in which the request
  35180. // is launched.
  35181. //
  35182. // * network-interface.addresses.primary - Indicates whether the IP address
  35183. // is the primary private IP address.
  35184. //
  35185. // * network-interface.delete-on-termination - Indicates whether the network
  35186. // interface is deleted when the instance is terminated.
  35187. //
  35188. // * network-interface.description - A description of the network interface.
  35189. //
  35190. // * network-interface.device-index - The index of the device for the network
  35191. // interface attachment on the instance.
  35192. //
  35193. // * network-interface.group-id - The ID of the security group associated
  35194. // with the network interface.
  35195. //
  35196. // * network-interface.network-interface-id - The ID of the network interface.
  35197. //
  35198. // * network-interface.private-ip-address - The primary private IP address
  35199. // of the network interface.
  35200. //
  35201. // * network-interface.subnet-id - The ID of the subnet for the instance.
  35202. //
  35203. // * product-description - The product description associated with the instance
  35204. // (Linux/UNIX | Windows).
  35205. //
  35206. // * spot-instance-request-id - The Spot Instance request ID.
  35207. //
  35208. // * spot-price - The maximum hourly price for any Spot Instance launched
  35209. // to fulfill the request.
  35210. //
  35211. // * state - The state of the Spot Instance request (open | active | closed
  35212. // | cancelled | failed). Spot request status information can help you track
  35213. // your Amazon EC2 Spot Instance requests. For more information, see Spot
  35214. // Request Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  35215. // in the Amazon Elastic Compute Cloud User Guide.
  35216. //
  35217. // * status-code - The short code describing the most recent evaluation of
  35218. // your Spot Instance request.
  35219. //
  35220. // * status-message - The message explaining the status of the Spot Instance
  35221. // request.
  35222. //
  35223. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  35224. // Specify the key of the tag in the filter name and the value of the tag
  35225. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  35226. // for the filter name and X for the filter value.
  35227. //
  35228. // * tag-key - The key of a tag assigned to the resource. This filter is
  35229. // independent of the tag-value filter. For example, if you use both the
  35230. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  35231. // assigned both the tag key Purpose (regardless of what the tag's value
  35232. // is), and the tag value X (regardless of what the tag's key is). If you
  35233. // want to list only resources where Purpose is X, see the tag:key=value
  35234. // filter.
  35235. //
  35236. // * tag-value - The value of a tag assigned to the resource. This filter
  35237. // is independent of the tag-key filter.
  35238. //
  35239. // * type - The type of Spot Instance request (one-time | persistent).
  35240. //
  35241. // * valid-from - The start date of the request.
  35242. //
  35243. // * valid-until - The end date of the request.
  35244. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35245. // One or more Spot Instance request IDs.
  35246. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"`
  35247. }
  35248. // String returns the string representation
  35249. func (s DescribeSpotInstanceRequestsInput) String() string {
  35250. return awsutil.Prettify(s)
  35251. }
  35252. // GoString returns the string representation
  35253. func (s DescribeSpotInstanceRequestsInput) GoString() string {
  35254. return s.String()
  35255. }
  35256. // SetDryRun sets the DryRun field's value.
  35257. func (s *DescribeSpotInstanceRequestsInput) SetDryRun(v bool) *DescribeSpotInstanceRequestsInput {
  35258. s.DryRun = &v
  35259. return s
  35260. }
  35261. // SetFilters sets the Filters field's value.
  35262. func (s *DescribeSpotInstanceRequestsInput) SetFilters(v []*Filter) *DescribeSpotInstanceRequestsInput {
  35263. s.Filters = v
  35264. return s
  35265. }
  35266. // SetSpotInstanceRequestIds sets the SpotInstanceRequestIds field's value.
  35267. func (s *DescribeSpotInstanceRequestsInput) SetSpotInstanceRequestIds(v []*string) *DescribeSpotInstanceRequestsInput {
  35268. s.SpotInstanceRequestIds = v
  35269. return s
  35270. }
  35271. // Contains the output of DescribeSpotInstanceRequests.
  35272. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotInstanceRequestsResult
  35273. type DescribeSpotInstanceRequestsOutput struct {
  35274. _ struct{} `type:"structure"`
  35275. // One or more Spot Instance requests.
  35276. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  35277. }
  35278. // String returns the string representation
  35279. func (s DescribeSpotInstanceRequestsOutput) String() string {
  35280. return awsutil.Prettify(s)
  35281. }
  35282. // GoString returns the string representation
  35283. func (s DescribeSpotInstanceRequestsOutput) GoString() string {
  35284. return s.String()
  35285. }
  35286. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  35287. func (s *DescribeSpotInstanceRequestsOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *DescribeSpotInstanceRequestsOutput {
  35288. s.SpotInstanceRequests = v
  35289. return s
  35290. }
  35291. // Contains the parameters for DescribeSpotPriceHistory.
  35292. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistoryRequest
  35293. type DescribeSpotPriceHistoryInput struct {
  35294. _ struct{} `type:"structure"`
  35295. // Filters the results by the specified Availability Zone.
  35296. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  35297. // Checks whether you have the required permissions for the action, without
  35298. // actually making the request, and provides an error response. If you have
  35299. // the required permissions, the error response is DryRunOperation. Otherwise,
  35300. // it is UnauthorizedOperation.
  35301. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35302. // The date and time, up to the current date, from which to stop retrieving
  35303. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  35304. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  35305. // One or more filters.
  35306. //
  35307. // * availability-zone - The Availability Zone for which prices should be
  35308. // returned.
  35309. //
  35310. // * instance-type - The type of instance (for example, m3.medium).
  35311. //
  35312. // * product-description - The product description for the Spot price (Linux/UNIX
  35313. // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon
  35314. // VPC) | Windows (Amazon VPC)).
  35315. //
  35316. // * spot-price - The Spot price. The value must match exactly (or use wildcards;
  35317. // greater than or less than comparison is not supported).
  35318. //
  35319. // * timestamp - The timestamp of the Spot price history, in UTC format (for
  35320. // example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater
  35321. // than or less than comparison is not supported.
  35322. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35323. // Filters the results by the specified instance types.
  35324. InstanceTypes []*string `locationName:"InstanceType" type:"list"`
  35325. // The maximum number of results to return in a single call. Specify a value
  35326. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  35327. // results, make another call with the returned NextToken value.
  35328. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  35329. // The token for the next set of results.
  35330. NextToken *string `locationName:"nextToken" type:"string"`
  35331. // Filters the results by the specified basic product descriptions.
  35332. ProductDescriptions []*string `locationName:"ProductDescription" type:"list"`
  35333. // The date and time, up to the past 90 days, from which to start retrieving
  35334. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  35335. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  35336. }
  35337. // String returns the string representation
  35338. func (s DescribeSpotPriceHistoryInput) String() string {
  35339. return awsutil.Prettify(s)
  35340. }
  35341. // GoString returns the string representation
  35342. func (s DescribeSpotPriceHistoryInput) GoString() string {
  35343. return s.String()
  35344. }
  35345. // SetAvailabilityZone sets the AvailabilityZone field's value.
  35346. func (s *DescribeSpotPriceHistoryInput) SetAvailabilityZone(v string) *DescribeSpotPriceHistoryInput {
  35347. s.AvailabilityZone = &v
  35348. return s
  35349. }
  35350. // SetDryRun sets the DryRun field's value.
  35351. func (s *DescribeSpotPriceHistoryInput) SetDryRun(v bool) *DescribeSpotPriceHistoryInput {
  35352. s.DryRun = &v
  35353. return s
  35354. }
  35355. // SetEndTime sets the EndTime field's value.
  35356. func (s *DescribeSpotPriceHistoryInput) SetEndTime(v time.Time) *DescribeSpotPriceHistoryInput {
  35357. s.EndTime = &v
  35358. return s
  35359. }
  35360. // SetFilters sets the Filters field's value.
  35361. func (s *DescribeSpotPriceHistoryInput) SetFilters(v []*Filter) *DescribeSpotPriceHistoryInput {
  35362. s.Filters = v
  35363. return s
  35364. }
  35365. // SetInstanceTypes sets the InstanceTypes field's value.
  35366. func (s *DescribeSpotPriceHistoryInput) SetInstanceTypes(v []*string) *DescribeSpotPriceHistoryInput {
  35367. s.InstanceTypes = v
  35368. return s
  35369. }
  35370. // SetMaxResults sets the MaxResults field's value.
  35371. func (s *DescribeSpotPriceHistoryInput) SetMaxResults(v int64) *DescribeSpotPriceHistoryInput {
  35372. s.MaxResults = &v
  35373. return s
  35374. }
  35375. // SetNextToken sets the NextToken field's value.
  35376. func (s *DescribeSpotPriceHistoryInput) SetNextToken(v string) *DescribeSpotPriceHistoryInput {
  35377. s.NextToken = &v
  35378. return s
  35379. }
  35380. // SetProductDescriptions sets the ProductDescriptions field's value.
  35381. func (s *DescribeSpotPriceHistoryInput) SetProductDescriptions(v []*string) *DescribeSpotPriceHistoryInput {
  35382. s.ProductDescriptions = v
  35383. return s
  35384. }
  35385. // SetStartTime sets the StartTime field's value.
  35386. func (s *DescribeSpotPriceHistoryInput) SetStartTime(v time.Time) *DescribeSpotPriceHistoryInput {
  35387. s.StartTime = &v
  35388. return s
  35389. }
  35390. // Contains the output of DescribeSpotPriceHistory.
  35391. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSpotPriceHistoryResult
  35392. type DescribeSpotPriceHistoryOutput struct {
  35393. _ struct{} `type:"structure"`
  35394. // The token required to retrieve the next set of results. This value is null
  35395. // when there are no more results to return.
  35396. NextToken *string `locationName:"nextToken" type:"string"`
  35397. // The historical Spot prices.
  35398. SpotPriceHistory []*SpotPrice `locationName:"spotPriceHistorySet" locationNameList:"item" type:"list"`
  35399. }
  35400. // String returns the string representation
  35401. func (s DescribeSpotPriceHistoryOutput) String() string {
  35402. return awsutil.Prettify(s)
  35403. }
  35404. // GoString returns the string representation
  35405. func (s DescribeSpotPriceHistoryOutput) GoString() string {
  35406. return s.String()
  35407. }
  35408. // SetNextToken sets the NextToken field's value.
  35409. func (s *DescribeSpotPriceHistoryOutput) SetNextToken(v string) *DescribeSpotPriceHistoryOutput {
  35410. s.NextToken = &v
  35411. return s
  35412. }
  35413. // SetSpotPriceHistory sets the SpotPriceHistory field's value.
  35414. func (s *DescribeSpotPriceHistoryOutput) SetSpotPriceHistory(v []*SpotPrice) *DescribeSpotPriceHistoryOutput {
  35415. s.SpotPriceHistory = v
  35416. return s
  35417. }
  35418. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroupsRequest
  35419. type DescribeStaleSecurityGroupsInput struct {
  35420. _ struct{} `type:"structure"`
  35421. // Checks whether you have the required permissions for the operation, without
  35422. // actually making the request, and provides an error response. If you have
  35423. // the required permissions, the error response is DryRunOperation. Otherwise,
  35424. // it is UnauthorizedOperation.
  35425. DryRun *bool `type:"boolean"`
  35426. // The maximum number of items to return for this request. The request returns
  35427. // a token that you can specify in a subsequent call to get the next set of
  35428. // results.
  35429. MaxResults *int64 `min:"5" type:"integer"`
  35430. // The token for the next set of items to return. (You received this token from
  35431. // a prior call.)
  35432. NextToken *string `min:"1" type:"string"`
  35433. // The ID of the VPC.
  35434. //
  35435. // VpcId is a required field
  35436. VpcId *string `type:"string" required:"true"`
  35437. }
  35438. // String returns the string representation
  35439. func (s DescribeStaleSecurityGroupsInput) String() string {
  35440. return awsutil.Prettify(s)
  35441. }
  35442. // GoString returns the string representation
  35443. func (s DescribeStaleSecurityGroupsInput) GoString() string {
  35444. return s.String()
  35445. }
  35446. // Validate inspects the fields of the type to determine if they are valid.
  35447. func (s *DescribeStaleSecurityGroupsInput) Validate() error {
  35448. invalidParams := request.ErrInvalidParams{Context: "DescribeStaleSecurityGroupsInput"}
  35449. if s.MaxResults != nil && *s.MaxResults < 5 {
  35450. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  35451. }
  35452. if s.NextToken != nil && len(*s.NextToken) < 1 {
  35453. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  35454. }
  35455. if s.VpcId == nil {
  35456. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  35457. }
  35458. if invalidParams.Len() > 0 {
  35459. return invalidParams
  35460. }
  35461. return nil
  35462. }
  35463. // SetDryRun sets the DryRun field's value.
  35464. func (s *DescribeStaleSecurityGroupsInput) SetDryRun(v bool) *DescribeStaleSecurityGroupsInput {
  35465. s.DryRun = &v
  35466. return s
  35467. }
  35468. // SetMaxResults sets the MaxResults field's value.
  35469. func (s *DescribeStaleSecurityGroupsInput) SetMaxResults(v int64) *DescribeStaleSecurityGroupsInput {
  35470. s.MaxResults = &v
  35471. return s
  35472. }
  35473. // SetNextToken sets the NextToken field's value.
  35474. func (s *DescribeStaleSecurityGroupsInput) SetNextToken(v string) *DescribeStaleSecurityGroupsInput {
  35475. s.NextToken = &v
  35476. return s
  35477. }
  35478. // SetVpcId sets the VpcId field's value.
  35479. func (s *DescribeStaleSecurityGroupsInput) SetVpcId(v string) *DescribeStaleSecurityGroupsInput {
  35480. s.VpcId = &v
  35481. return s
  35482. }
  35483. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeStaleSecurityGroupsResult
  35484. type DescribeStaleSecurityGroupsOutput struct {
  35485. _ struct{} `type:"structure"`
  35486. // The token to use when requesting the next set of items. If there are no additional
  35487. // items to return, the string is empty.
  35488. NextToken *string `locationName:"nextToken" type:"string"`
  35489. // Information about the stale security groups.
  35490. StaleSecurityGroupSet []*StaleSecurityGroup `locationName:"staleSecurityGroupSet" locationNameList:"item" type:"list"`
  35491. }
  35492. // String returns the string representation
  35493. func (s DescribeStaleSecurityGroupsOutput) String() string {
  35494. return awsutil.Prettify(s)
  35495. }
  35496. // GoString returns the string representation
  35497. func (s DescribeStaleSecurityGroupsOutput) GoString() string {
  35498. return s.String()
  35499. }
  35500. // SetNextToken sets the NextToken field's value.
  35501. func (s *DescribeStaleSecurityGroupsOutput) SetNextToken(v string) *DescribeStaleSecurityGroupsOutput {
  35502. s.NextToken = &v
  35503. return s
  35504. }
  35505. // SetStaleSecurityGroupSet sets the StaleSecurityGroupSet field's value.
  35506. func (s *DescribeStaleSecurityGroupsOutput) SetStaleSecurityGroupSet(v []*StaleSecurityGroup) *DescribeStaleSecurityGroupsOutput {
  35507. s.StaleSecurityGroupSet = v
  35508. return s
  35509. }
  35510. // Contains the parameters for DescribeSubnets.
  35511. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnetsRequest
  35512. type DescribeSubnetsInput struct {
  35513. _ struct{} `type:"structure"`
  35514. // Checks whether you have the required permissions for the action, without
  35515. // actually making the request, and provides an error response. If you have
  35516. // the required permissions, the error response is DryRunOperation. Otherwise,
  35517. // it is UnauthorizedOperation.
  35518. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35519. // One or more filters.
  35520. //
  35521. // * availabilityZone - The Availability Zone for the subnet. You can also
  35522. // use availability-zone as the filter name.
  35523. //
  35524. // * available-ip-address-count - The number of IPv4 addresses in the subnet
  35525. // that are available.
  35526. //
  35527. // * cidrBlock - The IPv4 CIDR block of the subnet. The CIDR block you specify
  35528. // must exactly match the subnet's CIDR block for information to be returned
  35529. // for the subnet. You can also use cidr or cidr-block as the filter names.
  35530. //
  35531. // * defaultForAz - Indicates whether this is the default subnet for the
  35532. // Availability Zone. You can also use default-for-az as the filter name.
  35533. //
  35534. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  35535. // with the subnet.
  35536. //
  35537. // * ipv6-cidr-block-association.association-id - An association ID for an
  35538. // IPv6 CIDR block associated with the subnet.
  35539. //
  35540. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  35541. // associated with the subnet.
  35542. //
  35543. // * state - The state of the subnet (pending | available).
  35544. //
  35545. // * subnet-id - The ID of the subnet.
  35546. //
  35547. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  35548. // Specify the key of the tag in the filter name and the value of the tag
  35549. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  35550. // for the filter name and X for the filter value.
  35551. //
  35552. // * tag-key - The key of a tag assigned to the resource. This filter is
  35553. // independent of the tag-value filter. For example, if you use both the
  35554. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  35555. // assigned both the tag key Purpose (regardless of what the tag's value
  35556. // is), and the tag value X (regardless of what the tag's key is). If you
  35557. // want to list only resources where Purpose is X, see the tag:key=value
  35558. // filter.
  35559. //
  35560. // * tag-value - The value of a tag assigned to the resource. This filter
  35561. // is independent of the tag-key filter.
  35562. //
  35563. // * vpc-id - The ID of the VPC for the subnet.
  35564. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35565. // One or more subnet IDs.
  35566. //
  35567. // Default: Describes all your subnets.
  35568. SubnetIds []*string `locationName:"SubnetId" locationNameList:"SubnetId" type:"list"`
  35569. }
  35570. // String returns the string representation
  35571. func (s DescribeSubnetsInput) String() string {
  35572. return awsutil.Prettify(s)
  35573. }
  35574. // GoString returns the string representation
  35575. func (s DescribeSubnetsInput) GoString() string {
  35576. return s.String()
  35577. }
  35578. // SetDryRun sets the DryRun field's value.
  35579. func (s *DescribeSubnetsInput) SetDryRun(v bool) *DescribeSubnetsInput {
  35580. s.DryRun = &v
  35581. return s
  35582. }
  35583. // SetFilters sets the Filters field's value.
  35584. func (s *DescribeSubnetsInput) SetFilters(v []*Filter) *DescribeSubnetsInput {
  35585. s.Filters = v
  35586. return s
  35587. }
  35588. // SetSubnetIds sets the SubnetIds field's value.
  35589. func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput {
  35590. s.SubnetIds = v
  35591. return s
  35592. }
  35593. // Contains the output of DescribeSubnets.
  35594. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeSubnetsResult
  35595. type DescribeSubnetsOutput struct {
  35596. _ struct{} `type:"structure"`
  35597. // Information about one or more subnets.
  35598. Subnets []*Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"`
  35599. }
  35600. // String returns the string representation
  35601. func (s DescribeSubnetsOutput) String() string {
  35602. return awsutil.Prettify(s)
  35603. }
  35604. // GoString returns the string representation
  35605. func (s DescribeSubnetsOutput) GoString() string {
  35606. return s.String()
  35607. }
  35608. // SetSubnets sets the Subnets field's value.
  35609. func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput {
  35610. s.Subnets = v
  35611. return s
  35612. }
  35613. // Contains the parameters for DescribeTags.
  35614. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTagsRequest
  35615. type DescribeTagsInput struct {
  35616. _ struct{} `type:"structure"`
  35617. // Checks whether you have the required permissions for the action, without
  35618. // actually making the request, and provides an error response. If you have
  35619. // the required permissions, the error response is DryRunOperation. Otherwise,
  35620. // it is UnauthorizedOperation.
  35621. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35622. // One or more filters.
  35623. //
  35624. // * key - The tag key.
  35625. //
  35626. // * resource-id - The resource ID.
  35627. //
  35628. // * resource-type - The resource type (customer-gateway | dhcp-options |
  35629. // elastic-ip | fpga-image | image | instance | internet-gateway | launch-template
  35630. // | natgateway | network-acl | network-interface | reserved-instances |
  35631. // route-table | security-group | snapshot | spot-instances-request | subnet
  35632. // | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway).
  35633. //
  35634. // * value - The tag value.
  35635. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35636. // The maximum number of results to return in a single call. This value can
  35637. // be between 5 and 1000. To retrieve the remaining results, make another call
  35638. // with the returned NextToken value.
  35639. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  35640. // The token to retrieve the next page of results.
  35641. NextToken *string `locationName:"nextToken" type:"string"`
  35642. }
  35643. // String returns the string representation
  35644. func (s DescribeTagsInput) String() string {
  35645. return awsutil.Prettify(s)
  35646. }
  35647. // GoString returns the string representation
  35648. func (s DescribeTagsInput) GoString() string {
  35649. return s.String()
  35650. }
  35651. // SetDryRun sets the DryRun field's value.
  35652. func (s *DescribeTagsInput) SetDryRun(v bool) *DescribeTagsInput {
  35653. s.DryRun = &v
  35654. return s
  35655. }
  35656. // SetFilters sets the Filters field's value.
  35657. func (s *DescribeTagsInput) SetFilters(v []*Filter) *DescribeTagsInput {
  35658. s.Filters = v
  35659. return s
  35660. }
  35661. // SetMaxResults sets the MaxResults field's value.
  35662. func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput {
  35663. s.MaxResults = &v
  35664. return s
  35665. }
  35666. // SetNextToken sets the NextToken field's value.
  35667. func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
  35668. s.NextToken = &v
  35669. return s
  35670. }
  35671. // Contains the output of DescribeTags.
  35672. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTagsResult
  35673. type DescribeTagsOutput struct {
  35674. _ struct{} `type:"structure"`
  35675. // The token to use to retrieve the next page of results. This value is null
  35676. // when there are no more results to return..
  35677. NextToken *string `locationName:"nextToken" type:"string"`
  35678. // A list of tags.
  35679. Tags []*TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"`
  35680. }
  35681. // String returns the string representation
  35682. func (s DescribeTagsOutput) String() string {
  35683. return awsutil.Prettify(s)
  35684. }
  35685. // GoString returns the string representation
  35686. func (s DescribeTagsOutput) GoString() string {
  35687. return s.String()
  35688. }
  35689. // SetNextToken sets the NextToken field's value.
  35690. func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput {
  35691. s.NextToken = &v
  35692. return s
  35693. }
  35694. // SetTags sets the Tags field's value.
  35695. func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput {
  35696. s.Tags = v
  35697. return s
  35698. }
  35699. // Contains the parameters for DescribeVolumeAttribute.
  35700. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttributeRequest
  35701. type DescribeVolumeAttributeInput struct {
  35702. _ struct{} `type:"structure"`
  35703. // The attribute of the volume. This parameter is required.
  35704. Attribute *string `type:"string" enum:"VolumeAttributeName"`
  35705. // Checks whether you have the required permissions for the action, without
  35706. // actually making the request, and provides an error response. If you have
  35707. // the required permissions, the error response is DryRunOperation. Otherwise,
  35708. // it is UnauthorizedOperation.
  35709. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35710. // The ID of the volume.
  35711. //
  35712. // VolumeId is a required field
  35713. VolumeId *string `type:"string" required:"true"`
  35714. }
  35715. // String returns the string representation
  35716. func (s DescribeVolumeAttributeInput) String() string {
  35717. return awsutil.Prettify(s)
  35718. }
  35719. // GoString returns the string representation
  35720. func (s DescribeVolumeAttributeInput) GoString() string {
  35721. return s.String()
  35722. }
  35723. // Validate inspects the fields of the type to determine if they are valid.
  35724. func (s *DescribeVolumeAttributeInput) Validate() error {
  35725. invalidParams := request.ErrInvalidParams{Context: "DescribeVolumeAttributeInput"}
  35726. if s.VolumeId == nil {
  35727. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  35728. }
  35729. if invalidParams.Len() > 0 {
  35730. return invalidParams
  35731. }
  35732. return nil
  35733. }
  35734. // SetAttribute sets the Attribute field's value.
  35735. func (s *DescribeVolumeAttributeInput) SetAttribute(v string) *DescribeVolumeAttributeInput {
  35736. s.Attribute = &v
  35737. return s
  35738. }
  35739. // SetDryRun sets the DryRun field's value.
  35740. func (s *DescribeVolumeAttributeInput) SetDryRun(v bool) *DescribeVolumeAttributeInput {
  35741. s.DryRun = &v
  35742. return s
  35743. }
  35744. // SetVolumeId sets the VolumeId field's value.
  35745. func (s *DescribeVolumeAttributeInput) SetVolumeId(v string) *DescribeVolumeAttributeInput {
  35746. s.VolumeId = &v
  35747. return s
  35748. }
  35749. // Contains the output of DescribeVolumeAttribute.
  35750. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeAttributeResult
  35751. type DescribeVolumeAttributeOutput struct {
  35752. _ struct{} `type:"structure"`
  35753. // The state of autoEnableIO attribute.
  35754. AutoEnableIO *AttributeBooleanValue `locationName:"autoEnableIO" type:"structure"`
  35755. // A list of product codes.
  35756. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  35757. // The ID of the volume.
  35758. VolumeId *string `locationName:"volumeId" type:"string"`
  35759. }
  35760. // String returns the string representation
  35761. func (s DescribeVolumeAttributeOutput) String() string {
  35762. return awsutil.Prettify(s)
  35763. }
  35764. // GoString returns the string representation
  35765. func (s DescribeVolumeAttributeOutput) GoString() string {
  35766. return s.String()
  35767. }
  35768. // SetAutoEnableIO sets the AutoEnableIO field's value.
  35769. func (s *DescribeVolumeAttributeOutput) SetAutoEnableIO(v *AttributeBooleanValue) *DescribeVolumeAttributeOutput {
  35770. s.AutoEnableIO = v
  35771. return s
  35772. }
  35773. // SetProductCodes sets the ProductCodes field's value.
  35774. func (s *DescribeVolumeAttributeOutput) SetProductCodes(v []*ProductCode) *DescribeVolumeAttributeOutput {
  35775. s.ProductCodes = v
  35776. return s
  35777. }
  35778. // SetVolumeId sets the VolumeId field's value.
  35779. func (s *DescribeVolumeAttributeOutput) SetVolumeId(v string) *DescribeVolumeAttributeOutput {
  35780. s.VolumeId = &v
  35781. return s
  35782. }
  35783. // Contains the parameters for DescribeVolumeStatus.
  35784. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatusRequest
  35785. type DescribeVolumeStatusInput struct {
  35786. _ struct{} `type:"structure"`
  35787. // Checks whether you have the required permissions for the action, without
  35788. // actually making the request, and provides an error response. If you have
  35789. // the required permissions, the error response is DryRunOperation. Otherwise,
  35790. // it is UnauthorizedOperation.
  35791. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35792. // One or more filters.
  35793. //
  35794. // * action.code - The action code for the event (for example, enable-volume-io).
  35795. //
  35796. // * action.description - A description of the action.
  35797. //
  35798. // * action.event-id - The event ID associated with the action.
  35799. //
  35800. // * availability-zone - The Availability Zone of the instance.
  35801. //
  35802. // * event.description - A description of the event.
  35803. //
  35804. // * event.event-id - The event ID.
  35805. //
  35806. // * event.event-type - The event type (for io-enabled: passed | failed;
  35807. // for io-performance: io-performance:degraded | io-performance:severely-degraded
  35808. // | io-performance:stalled).
  35809. //
  35810. // * event.not-after - The latest end time for the event.
  35811. //
  35812. // * event.not-before - The earliest start time for the event.
  35813. //
  35814. // * volume-status.details-name - The cause for volume-status.status (io-enabled
  35815. // | io-performance).
  35816. //
  35817. // * volume-status.details-status - The status of volume-status.details-name
  35818. // (for io-enabled: passed | failed; for io-performance: normal | degraded
  35819. // | severely-degraded | stalled).
  35820. //
  35821. // * volume-status.status - The status of the volume (ok | impaired | warning
  35822. // | insufficient-data).
  35823. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35824. // The maximum number of volume results returned by DescribeVolumeStatus in
  35825. // paginated output. When this parameter is used, the request only returns MaxResults
  35826. // results in a single page along with a NextToken response element. The remaining
  35827. // results of the initial request can be seen by sending another request with
  35828. // the returned NextToken value. This value can be between 5 and 1000; if MaxResults
  35829. // is given a value larger than 1000, only 1000 results are returned. If this
  35830. // parameter is not used, then DescribeVolumeStatus returns all results. You
  35831. // cannot specify this parameter and the volume IDs parameter in the same request.
  35832. MaxResults *int64 `type:"integer"`
  35833. // The NextToken value to include in a future DescribeVolumeStatus request.
  35834. // When the results of the request exceed MaxResults, this value can be used
  35835. // to retrieve the next page of results. This value is null when there are no
  35836. // more results to return.
  35837. NextToken *string `type:"string"`
  35838. // One or more volume IDs.
  35839. //
  35840. // Default: Describes all your volumes.
  35841. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  35842. }
  35843. // String returns the string representation
  35844. func (s DescribeVolumeStatusInput) String() string {
  35845. return awsutil.Prettify(s)
  35846. }
  35847. // GoString returns the string representation
  35848. func (s DescribeVolumeStatusInput) GoString() string {
  35849. return s.String()
  35850. }
  35851. // SetDryRun sets the DryRun field's value.
  35852. func (s *DescribeVolumeStatusInput) SetDryRun(v bool) *DescribeVolumeStatusInput {
  35853. s.DryRun = &v
  35854. return s
  35855. }
  35856. // SetFilters sets the Filters field's value.
  35857. func (s *DescribeVolumeStatusInput) SetFilters(v []*Filter) *DescribeVolumeStatusInput {
  35858. s.Filters = v
  35859. return s
  35860. }
  35861. // SetMaxResults sets the MaxResults field's value.
  35862. func (s *DescribeVolumeStatusInput) SetMaxResults(v int64) *DescribeVolumeStatusInput {
  35863. s.MaxResults = &v
  35864. return s
  35865. }
  35866. // SetNextToken sets the NextToken field's value.
  35867. func (s *DescribeVolumeStatusInput) SetNextToken(v string) *DescribeVolumeStatusInput {
  35868. s.NextToken = &v
  35869. return s
  35870. }
  35871. // SetVolumeIds sets the VolumeIds field's value.
  35872. func (s *DescribeVolumeStatusInput) SetVolumeIds(v []*string) *DescribeVolumeStatusInput {
  35873. s.VolumeIds = v
  35874. return s
  35875. }
  35876. // Contains the output of DescribeVolumeStatus.
  35877. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatusResult
  35878. type DescribeVolumeStatusOutput struct {
  35879. _ struct{} `type:"structure"`
  35880. // The token to use to retrieve the next page of results. This value is null
  35881. // when there are no more results to return.
  35882. NextToken *string `locationName:"nextToken" type:"string"`
  35883. // A list of volumes.
  35884. VolumeStatuses []*VolumeStatusItem `locationName:"volumeStatusSet" locationNameList:"item" type:"list"`
  35885. }
  35886. // String returns the string representation
  35887. func (s DescribeVolumeStatusOutput) String() string {
  35888. return awsutil.Prettify(s)
  35889. }
  35890. // GoString returns the string representation
  35891. func (s DescribeVolumeStatusOutput) GoString() string {
  35892. return s.String()
  35893. }
  35894. // SetNextToken sets the NextToken field's value.
  35895. func (s *DescribeVolumeStatusOutput) SetNextToken(v string) *DescribeVolumeStatusOutput {
  35896. s.NextToken = &v
  35897. return s
  35898. }
  35899. // SetVolumeStatuses sets the VolumeStatuses field's value.
  35900. func (s *DescribeVolumeStatusOutput) SetVolumeStatuses(v []*VolumeStatusItem) *DescribeVolumeStatusOutput {
  35901. s.VolumeStatuses = v
  35902. return s
  35903. }
  35904. // Contains the parameters for DescribeVolumes.
  35905. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesRequest
  35906. type DescribeVolumesInput struct {
  35907. _ struct{} `type:"structure"`
  35908. // Checks whether you have the required permissions for the action, without
  35909. // actually making the request, and provides an error response. If you have
  35910. // the required permissions, the error response is DryRunOperation. Otherwise,
  35911. // it is UnauthorizedOperation.
  35912. DryRun *bool `locationName:"dryRun" type:"boolean"`
  35913. // One or more filters.
  35914. //
  35915. // * attachment.attach-time - The time stamp when the attachment initiated.
  35916. //
  35917. // * attachment.delete-on-termination - Whether the volume is deleted on
  35918. // instance termination.
  35919. //
  35920. // * attachment.device - The device name specified in the block device mapping
  35921. // (for example, /dev/sda1).
  35922. //
  35923. // * attachment.instance-id - The ID of the instance the volume is attached
  35924. // to.
  35925. //
  35926. // * attachment.status - The attachment state (attaching | attached | detaching
  35927. // | detached).
  35928. //
  35929. // * availability-zone - The Availability Zone in which the volume was created.
  35930. //
  35931. // * create-time - The time stamp when the volume was created.
  35932. //
  35933. // * encrypted - The encryption status of the volume.
  35934. //
  35935. // * size - The size of the volume, in GiB.
  35936. //
  35937. // * snapshot-id - The snapshot from which the volume was created.
  35938. //
  35939. // * status - The status of the volume (creating | available | in-use | deleting
  35940. // | deleted | error).
  35941. //
  35942. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  35943. // Specify the key of the tag in the filter name and the value of the tag
  35944. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  35945. // for the filter name and X for the filter value.
  35946. //
  35947. // * tag-key - The key of a tag assigned to the resource. This filter is
  35948. // independent of the tag-value filter. For example, if you use both the
  35949. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  35950. // assigned both the tag key Purpose (regardless of what the tag's value
  35951. // is), and the tag value X (regardless of what the tag's key is). If you
  35952. // want to list only resources where Purpose is X, see the tag:key=value
  35953. // filter.
  35954. //
  35955. // * tag-value - The value of a tag assigned to the resource. This filter
  35956. // is independent of the tag-key filter.
  35957. //
  35958. // * volume-id - The volume ID.
  35959. //
  35960. // * volume-type - The Amazon EBS volume type. This can be gp2 for General
  35961. // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized
  35962. // HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
  35963. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  35964. // The maximum number of volume results returned by DescribeVolumes in paginated
  35965. // output. When this parameter is used, DescribeVolumes only returns MaxResults
  35966. // results in a single page along with a NextToken response element. The remaining
  35967. // results of the initial request can be seen by sending another DescribeVolumes
  35968. // request with the returned NextToken value. This value can be between 5 and
  35969. // 500; if MaxResults is given a value larger than 500, only 500 results are
  35970. // returned. If this parameter is not used, then DescribeVolumes returns all
  35971. // results. You cannot specify this parameter and the volume IDs parameter in
  35972. // the same request.
  35973. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  35974. // The NextToken value returned from a previous paginated DescribeVolumes request
  35975. // where MaxResults was used and the results exceeded the value of that parameter.
  35976. // Pagination continues from the end of the previous results that returned the
  35977. // NextToken value. This value is null when there are no more results to return.
  35978. NextToken *string `locationName:"nextToken" type:"string"`
  35979. // One or more volume IDs.
  35980. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  35981. }
  35982. // String returns the string representation
  35983. func (s DescribeVolumesInput) String() string {
  35984. return awsutil.Prettify(s)
  35985. }
  35986. // GoString returns the string representation
  35987. func (s DescribeVolumesInput) GoString() string {
  35988. return s.String()
  35989. }
  35990. // SetDryRun sets the DryRun field's value.
  35991. func (s *DescribeVolumesInput) SetDryRun(v bool) *DescribeVolumesInput {
  35992. s.DryRun = &v
  35993. return s
  35994. }
  35995. // SetFilters sets the Filters field's value.
  35996. func (s *DescribeVolumesInput) SetFilters(v []*Filter) *DescribeVolumesInput {
  35997. s.Filters = v
  35998. return s
  35999. }
  36000. // SetMaxResults sets the MaxResults field's value.
  36001. func (s *DescribeVolumesInput) SetMaxResults(v int64) *DescribeVolumesInput {
  36002. s.MaxResults = &v
  36003. return s
  36004. }
  36005. // SetNextToken sets the NextToken field's value.
  36006. func (s *DescribeVolumesInput) SetNextToken(v string) *DescribeVolumesInput {
  36007. s.NextToken = &v
  36008. return s
  36009. }
  36010. // SetVolumeIds sets the VolumeIds field's value.
  36011. func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput {
  36012. s.VolumeIds = v
  36013. return s
  36014. }
  36015. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModificationsRequest
  36016. type DescribeVolumesModificationsInput struct {
  36017. _ struct{} `type:"structure"`
  36018. // Checks whether you have the required permissions for the action, without
  36019. // actually making the request, and provides an error response. If you have
  36020. // the required permissions, the error response is DryRunOperation. Otherwise,
  36021. // it is UnauthorizedOperation.
  36022. DryRun *bool `type:"boolean"`
  36023. // One or more filters. Supported filters: volume-id, modification-state, target-size,
  36024. // target-iops, target-volume-type, original-size, original-iops, original-volume-type,
  36025. // start-time.
  36026. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36027. // The maximum number of results (up to a limit of 500) to be returned in a
  36028. // paginated request.
  36029. MaxResults *int64 `type:"integer"`
  36030. // The nextToken value returned by a previous paginated request.
  36031. NextToken *string `type:"string"`
  36032. // One or more volume IDs for which in-progress modifications will be described.
  36033. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  36034. }
  36035. // String returns the string representation
  36036. func (s DescribeVolumesModificationsInput) String() string {
  36037. return awsutil.Prettify(s)
  36038. }
  36039. // GoString returns the string representation
  36040. func (s DescribeVolumesModificationsInput) GoString() string {
  36041. return s.String()
  36042. }
  36043. // SetDryRun sets the DryRun field's value.
  36044. func (s *DescribeVolumesModificationsInput) SetDryRun(v bool) *DescribeVolumesModificationsInput {
  36045. s.DryRun = &v
  36046. return s
  36047. }
  36048. // SetFilters sets the Filters field's value.
  36049. func (s *DescribeVolumesModificationsInput) SetFilters(v []*Filter) *DescribeVolumesModificationsInput {
  36050. s.Filters = v
  36051. return s
  36052. }
  36053. // SetMaxResults sets the MaxResults field's value.
  36054. func (s *DescribeVolumesModificationsInput) SetMaxResults(v int64) *DescribeVolumesModificationsInput {
  36055. s.MaxResults = &v
  36056. return s
  36057. }
  36058. // SetNextToken sets the NextToken field's value.
  36059. func (s *DescribeVolumesModificationsInput) SetNextToken(v string) *DescribeVolumesModificationsInput {
  36060. s.NextToken = &v
  36061. return s
  36062. }
  36063. // SetVolumeIds sets the VolumeIds field's value.
  36064. func (s *DescribeVolumesModificationsInput) SetVolumeIds(v []*string) *DescribeVolumesModificationsInput {
  36065. s.VolumeIds = v
  36066. return s
  36067. }
  36068. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesModificationsResult
  36069. type DescribeVolumesModificationsOutput struct {
  36070. _ struct{} `type:"structure"`
  36071. // Token for pagination, null if there are no more results
  36072. NextToken *string `locationName:"nextToken" type:"string"`
  36073. // A list of returned VolumeModification objects.
  36074. VolumesModifications []*VolumeModification `locationName:"volumeModificationSet" locationNameList:"item" type:"list"`
  36075. }
  36076. // String returns the string representation
  36077. func (s DescribeVolumesModificationsOutput) String() string {
  36078. return awsutil.Prettify(s)
  36079. }
  36080. // GoString returns the string representation
  36081. func (s DescribeVolumesModificationsOutput) GoString() string {
  36082. return s.String()
  36083. }
  36084. // SetNextToken sets the NextToken field's value.
  36085. func (s *DescribeVolumesModificationsOutput) SetNextToken(v string) *DescribeVolumesModificationsOutput {
  36086. s.NextToken = &v
  36087. return s
  36088. }
  36089. // SetVolumesModifications sets the VolumesModifications field's value.
  36090. func (s *DescribeVolumesModificationsOutput) SetVolumesModifications(v []*VolumeModification) *DescribeVolumesModificationsOutput {
  36091. s.VolumesModifications = v
  36092. return s
  36093. }
  36094. // Contains the output of DescribeVolumes.
  36095. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumesResult
  36096. type DescribeVolumesOutput struct {
  36097. _ struct{} `type:"structure"`
  36098. // The NextToken value to include in a future DescribeVolumes request. When
  36099. // the results of a DescribeVolumes request exceed MaxResults, this value can
  36100. // be used to retrieve the next page of results. This value is null when there
  36101. // are no more results to return.
  36102. NextToken *string `locationName:"nextToken" type:"string"`
  36103. // Information about the volumes.
  36104. Volumes []*Volume `locationName:"volumeSet" locationNameList:"item" type:"list"`
  36105. }
  36106. // String returns the string representation
  36107. func (s DescribeVolumesOutput) String() string {
  36108. return awsutil.Prettify(s)
  36109. }
  36110. // GoString returns the string representation
  36111. func (s DescribeVolumesOutput) GoString() string {
  36112. return s.String()
  36113. }
  36114. // SetNextToken sets the NextToken field's value.
  36115. func (s *DescribeVolumesOutput) SetNextToken(v string) *DescribeVolumesOutput {
  36116. s.NextToken = &v
  36117. return s
  36118. }
  36119. // SetVolumes sets the Volumes field's value.
  36120. func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput {
  36121. s.Volumes = v
  36122. return s
  36123. }
  36124. // Contains the parameters for DescribeVpcAttribute.
  36125. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttributeRequest
  36126. type DescribeVpcAttributeInput struct {
  36127. _ struct{} `type:"structure"`
  36128. // The VPC attribute.
  36129. //
  36130. // Attribute is a required field
  36131. Attribute *string `type:"string" required:"true" enum:"VpcAttributeName"`
  36132. // Checks whether you have the required permissions for the action, without
  36133. // actually making the request, and provides an error response. If you have
  36134. // the required permissions, the error response is DryRunOperation. Otherwise,
  36135. // it is UnauthorizedOperation.
  36136. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36137. // The ID of the VPC.
  36138. //
  36139. // VpcId is a required field
  36140. VpcId *string `type:"string" required:"true"`
  36141. }
  36142. // String returns the string representation
  36143. func (s DescribeVpcAttributeInput) String() string {
  36144. return awsutil.Prettify(s)
  36145. }
  36146. // GoString returns the string representation
  36147. func (s DescribeVpcAttributeInput) GoString() string {
  36148. return s.String()
  36149. }
  36150. // Validate inspects the fields of the type to determine if they are valid.
  36151. func (s *DescribeVpcAttributeInput) Validate() error {
  36152. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcAttributeInput"}
  36153. if s.Attribute == nil {
  36154. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  36155. }
  36156. if s.VpcId == nil {
  36157. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  36158. }
  36159. if invalidParams.Len() > 0 {
  36160. return invalidParams
  36161. }
  36162. return nil
  36163. }
  36164. // SetAttribute sets the Attribute field's value.
  36165. func (s *DescribeVpcAttributeInput) SetAttribute(v string) *DescribeVpcAttributeInput {
  36166. s.Attribute = &v
  36167. return s
  36168. }
  36169. // SetDryRun sets the DryRun field's value.
  36170. func (s *DescribeVpcAttributeInput) SetDryRun(v bool) *DescribeVpcAttributeInput {
  36171. s.DryRun = &v
  36172. return s
  36173. }
  36174. // SetVpcId sets the VpcId field's value.
  36175. func (s *DescribeVpcAttributeInput) SetVpcId(v string) *DescribeVpcAttributeInput {
  36176. s.VpcId = &v
  36177. return s
  36178. }
  36179. // Contains the output of DescribeVpcAttribute.
  36180. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttributeResult
  36181. type DescribeVpcAttributeOutput struct {
  36182. _ struct{} `type:"structure"`
  36183. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  36184. // this attribute is true, instances in the VPC get DNS hostnames; otherwise,
  36185. // they do not.
  36186. EnableDnsHostnames *AttributeBooleanValue `locationName:"enableDnsHostnames" type:"structure"`
  36187. // Indicates whether DNS resolution is enabled for the VPC. If this attribute
  36188. // is true, the Amazon DNS server resolves DNS hostnames for your instances
  36189. // to their corresponding IP addresses; otherwise, it does not.
  36190. EnableDnsSupport *AttributeBooleanValue `locationName:"enableDnsSupport" type:"structure"`
  36191. // The ID of the VPC.
  36192. VpcId *string `locationName:"vpcId" type:"string"`
  36193. }
  36194. // String returns the string representation
  36195. func (s DescribeVpcAttributeOutput) String() string {
  36196. return awsutil.Prettify(s)
  36197. }
  36198. // GoString returns the string representation
  36199. func (s DescribeVpcAttributeOutput) GoString() string {
  36200. return s.String()
  36201. }
  36202. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  36203. func (s *DescribeVpcAttributeOutput) SetEnableDnsHostnames(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  36204. s.EnableDnsHostnames = v
  36205. return s
  36206. }
  36207. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  36208. func (s *DescribeVpcAttributeOutput) SetEnableDnsSupport(v *AttributeBooleanValue) *DescribeVpcAttributeOutput {
  36209. s.EnableDnsSupport = v
  36210. return s
  36211. }
  36212. // SetVpcId sets the VpcId field's value.
  36213. func (s *DescribeVpcAttributeOutput) SetVpcId(v string) *DescribeVpcAttributeOutput {
  36214. s.VpcId = &v
  36215. return s
  36216. }
  36217. // Contains the parameters for DescribeVpcClassicLinkDnsSupport.
  36218. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupportRequest
  36219. type DescribeVpcClassicLinkDnsSupportInput struct {
  36220. _ struct{} `type:"structure"`
  36221. // The maximum number of items to return for this request. The request returns
  36222. // a token that you can specify in a subsequent call to get the next set of
  36223. // results.
  36224. MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
  36225. // The token for the next set of items to return. (You received this token from
  36226. // a prior call.)
  36227. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  36228. // One or more VPC IDs.
  36229. VpcIds []*string `locationNameList:"VpcId" type:"list"`
  36230. }
  36231. // String returns the string representation
  36232. func (s DescribeVpcClassicLinkDnsSupportInput) String() string {
  36233. return awsutil.Prettify(s)
  36234. }
  36235. // GoString returns the string representation
  36236. func (s DescribeVpcClassicLinkDnsSupportInput) GoString() string {
  36237. return s.String()
  36238. }
  36239. // Validate inspects the fields of the type to determine if they are valid.
  36240. func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error {
  36241. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcClassicLinkDnsSupportInput"}
  36242. if s.MaxResults != nil && *s.MaxResults < 5 {
  36243. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  36244. }
  36245. if s.NextToken != nil && len(*s.NextToken) < 1 {
  36246. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  36247. }
  36248. if invalidParams.Len() > 0 {
  36249. return invalidParams
  36250. }
  36251. return nil
  36252. }
  36253. // SetMaxResults sets the MaxResults field's value.
  36254. func (s *DescribeVpcClassicLinkDnsSupportInput) SetMaxResults(v int64) *DescribeVpcClassicLinkDnsSupportInput {
  36255. s.MaxResults = &v
  36256. return s
  36257. }
  36258. // SetNextToken sets the NextToken field's value.
  36259. func (s *DescribeVpcClassicLinkDnsSupportInput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportInput {
  36260. s.NextToken = &v
  36261. return s
  36262. }
  36263. // SetVpcIds sets the VpcIds field's value.
  36264. func (s *DescribeVpcClassicLinkDnsSupportInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkDnsSupportInput {
  36265. s.VpcIds = v
  36266. return s
  36267. }
  36268. // Contains the output of DescribeVpcClassicLinkDnsSupport.
  36269. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkDnsSupportResult
  36270. type DescribeVpcClassicLinkDnsSupportOutput struct {
  36271. _ struct{} `type:"structure"`
  36272. // The token to use when requesting the next set of items.
  36273. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  36274. // Information about the ClassicLink DNS support status of the VPCs.
  36275. Vpcs []*ClassicLinkDnsSupport `locationName:"vpcs" locationNameList:"item" type:"list"`
  36276. }
  36277. // String returns the string representation
  36278. func (s DescribeVpcClassicLinkDnsSupportOutput) String() string {
  36279. return awsutil.Prettify(s)
  36280. }
  36281. // GoString returns the string representation
  36282. func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string {
  36283. return s.String()
  36284. }
  36285. // SetNextToken sets the NextToken field's value.
  36286. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetNextToken(v string) *DescribeVpcClassicLinkDnsSupportOutput {
  36287. s.NextToken = &v
  36288. return s
  36289. }
  36290. // SetVpcs sets the Vpcs field's value.
  36291. func (s *DescribeVpcClassicLinkDnsSupportOutput) SetVpcs(v []*ClassicLinkDnsSupport) *DescribeVpcClassicLinkDnsSupportOutput {
  36292. s.Vpcs = v
  36293. return s
  36294. }
  36295. // Contains the parameters for DescribeVpcClassicLink.
  36296. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkRequest
  36297. type DescribeVpcClassicLinkInput struct {
  36298. _ struct{} `type:"structure"`
  36299. // Checks whether you have the required permissions for the action, without
  36300. // actually making the request, and provides an error response. If you have
  36301. // the required permissions, the error response is DryRunOperation. Otherwise,
  36302. // it is UnauthorizedOperation.
  36303. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36304. // One or more filters.
  36305. //
  36306. // * is-classic-link-enabled - Whether the VPC is enabled for ClassicLink
  36307. // (true | false).
  36308. //
  36309. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  36310. // Specify the key of the tag in the filter name and the value of the tag
  36311. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  36312. // for the filter name and X for the filter value.
  36313. //
  36314. // * tag-key - The key of a tag assigned to the resource. This filter is
  36315. // independent of the tag-value filter. For example, if you use both the
  36316. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  36317. // assigned both the tag key Purpose (regardless of what the tag's value
  36318. // is), and the tag value X (regardless of what the tag's key is). If you
  36319. // want to list only resources where Purpose is X, see the tag:key=value
  36320. // filter.
  36321. //
  36322. // * tag-value - The value of a tag assigned to the resource. This filter
  36323. // is independent of the tag-key filter.
  36324. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36325. // One or more VPCs for which you want to describe the ClassicLink status.
  36326. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  36327. }
  36328. // String returns the string representation
  36329. func (s DescribeVpcClassicLinkInput) String() string {
  36330. return awsutil.Prettify(s)
  36331. }
  36332. // GoString returns the string representation
  36333. func (s DescribeVpcClassicLinkInput) GoString() string {
  36334. return s.String()
  36335. }
  36336. // SetDryRun sets the DryRun field's value.
  36337. func (s *DescribeVpcClassicLinkInput) SetDryRun(v bool) *DescribeVpcClassicLinkInput {
  36338. s.DryRun = &v
  36339. return s
  36340. }
  36341. // SetFilters sets the Filters field's value.
  36342. func (s *DescribeVpcClassicLinkInput) SetFilters(v []*Filter) *DescribeVpcClassicLinkInput {
  36343. s.Filters = v
  36344. return s
  36345. }
  36346. // SetVpcIds sets the VpcIds field's value.
  36347. func (s *DescribeVpcClassicLinkInput) SetVpcIds(v []*string) *DescribeVpcClassicLinkInput {
  36348. s.VpcIds = v
  36349. return s
  36350. }
  36351. // Contains the output of DescribeVpcClassicLink.
  36352. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcClassicLinkResult
  36353. type DescribeVpcClassicLinkOutput struct {
  36354. _ struct{} `type:"structure"`
  36355. // The ClassicLink status of one or more VPCs.
  36356. Vpcs []*VpcClassicLink `locationName:"vpcSet" locationNameList:"item" type:"list"`
  36357. }
  36358. // String returns the string representation
  36359. func (s DescribeVpcClassicLinkOutput) String() string {
  36360. return awsutil.Prettify(s)
  36361. }
  36362. // GoString returns the string representation
  36363. func (s DescribeVpcClassicLinkOutput) GoString() string {
  36364. return s.String()
  36365. }
  36366. // SetVpcs sets the Vpcs field's value.
  36367. func (s *DescribeVpcClassicLinkOutput) SetVpcs(v []*VpcClassicLink) *DescribeVpcClassicLinkOutput {
  36368. s.Vpcs = v
  36369. return s
  36370. }
  36371. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotificationsRequest
  36372. type DescribeVpcEndpointConnectionNotificationsInput struct {
  36373. _ struct{} `type:"structure"`
  36374. // The ID of the notification.
  36375. ConnectionNotificationId *string `type:"string"`
  36376. // Checks whether you have the required permissions for the action, without
  36377. // actually making the request, and provides an error response. If you have
  36378. // the required permissions, the error response is DryRunOperation. Otherwise,
  36379. // it is UnauthorizedOperation.
  36380. DryRun *bool `type:"boolean"`
  36381. // One or more filters.
  36382. //
  36383. // * connection-notification-arn - The ARN of SNS topic for the notification.
  36384. //
  36385. // * connection-notification-id - The ID of the notification.
  36386. //
  36387. // * connection-notification-state - The state of the notification (Enabled
  36388. // | Disabled).
  36389. //
  36390. // * connection-notification-type - The type of notification (Topic).
  36391. //
  36392. // * service-id - The ID of the endpoint service.
  36393. //
  36394. // * vpc-endpoint-id - The ID of the VPC endpoint.
  36395. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36396. // The maximum number of results to return in a single call. To retrieve the
  36397. // remaining results, make another request with the returned NextToken value.
  36398. MaxResults *int64 `type:"integer"`
  36399. // The token to request the next page of results.
  36400. NextToken *string `type:"string"`
  36401. }
  36402. // String returns the string representation
  36403. func (s DescribeVpcEndpointConnectionNotificationsInput) String() string {
  36404. return awsutil.Prettify(s)
  36405. }
  36406. // GoString returns the string representation
  36407. func (s DescribeVpcEndpointConnectionNotificationsInput) GoString() string {
  36408. return s.String()
  36409. }
  36410. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  36411. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetConnectionNotificationId(v string) *DescribeVpcEndpointConnectionNotificationsInput {
  36412. s.ConnectionNotificationId = &v
  36413. return s
  36414. }
  36415. // SetDryRun sets the DryRun field's value.
  36416. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionNotificationsInput {
  36417. s.DryRun = &v
  36418. return s
  36419. }
  36420. // SetFilters sets the Filters field's value.
  36421. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionNotificationsInput {
  36422. s.Filters = v
  36423. return s
  36424. }
  36425. // SetMaxResults sets the MaxResults field's value.
  36426. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionNotificationsInput {
  36427. s.MaxResults = &v
  36428. return s
  36429. }
  36430. // SetNextToken sets the NextToken field's value.
  36431. func (s *DescribeVpcEndpointConnectionNotificationsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsInput {
  36432. s.NextToken = &v
  36433. return s
  36434. }
  36435. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionNotificationsResult
  36436. type DescribeVpcEndpointConnectionNotificationsOutput struct {
  36437. _ struct{} `type:"structure"`
  36438. // One or more notifications.
  36439. ConnectionNotificationSet []*ConnectionNotification `locationName:"connectionNotificationSet" locationNameList:"item" type:"list"`
  36440. // The token to use to retrieve the next page of results. This value is null
  36441. // when there are no more results to return.
  36442. NextToken *string `locationName:"nextToken" type:"string"`
  36443. }
  36444. // String returns the string representation
  36445. func (s DescribeVpcEndpointConnectionNotificationsOutput) String() string {
  36446. return awsutil.Prettify(s)
  36447. }
  36448. // GoString returns the string representation
  36449. func (s DescribeVpcEndpointConnectionNotificationsOutput) GoString() string {
  36450. return s.String()
  36451. }
  36452. // SetConnectionNotificationSet sets the ConnectionNotificationSet field's value.
  36453. func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetConnectionNotificationSet(v []*ConnectionNotification) *DescribeVpcEndpointConnectionNotificationsOutput {
  36454. s.ConnectionNotificationSet = v
  36455. return s
  36456. }
  36457. // SetNextToken sets the NextToken field's value.
  36458. func (s *DescribeVpcEndpointConnectionNotificationsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionNotificationsOutput {
  36459. s.NextToken = &v
  36460. return s
  36461. }
  36462. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionsRequest
  36463. type DescribeVpcEndpointConnectionsInput struct {
  36464. _ struct{} `type:"structure"`
  36465. // Checks whether you have the required permissions for the action, without
  36466. // actually making the request, and provides an error response. If you have
  36467. // the required permissions, the error response is DryRunOperation. Otherwise,
  36468. // it is UnauthorizedOperation.
  36469. DryRun *bool `type:"boolean"`
  36470. // One or more filters.
  36471. //
  36472. // * service-id - The ID of the service.
  36473. //
  36474. // * vpc-endpoint-owner - The AWS account number of the owner of the endpoint.
  36475. //
  36476. // * vpc-endpoint-state - The state of the endpoint (pendingAcceptance |
  36477. // pending | available | deleting | deleted | rejected | failed).
  36478. //
  36479. // * vpc-endpoint-id - The ID of the endpoint.
  36480. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36481. // The maximum number of results to return for the request in a single page.
  36482. // The remaining results of the initial request can be seen by sending another
  36483. // request with the returned NextToken value. This value can be between 5 and
  36484. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  36485. // are returned.
  36486. MaxResults *int64 `type:"integer"`
  36487. // The token to retrieve the next page of results.
  36488. NextToken *string `type:"string"`
  36489. }
  36490. // String returns the string representation
  36491. func (s DescribeVpcEndpointConnectionsInput) String() string {
  36492. return awsutil.Prettify(s)
  36493. }
  36494. // GoString returns the string representation
  36495. func (s DescribeVpcEndpointConnectionsInput) GoString() string {
  36496. return s.String()
  36497. }
  36498. // SetDryRun sets the DryRun field's value.
  36499. func (s *DescribeVpcEndpointConnectionsInput) SetDryRun(v bool) *DescribeVpcEndpointConnectionsInput {
  36500. s.DryRun = &v
  36501. return s
  36502. }
  36503. // SetFilters sets the Filters field's value.
  36504. func (s *DescribeVpcEndpointConnectionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointConnectionsInput {
  36505. s.Filters = v
  36506. return s
  36507. }
  36508. // SetMaxResults sets the MaxResults field's value.
  36509. func (s *DescribeVpcEndpointConnectionsInput) SetMaxResults(v int64) *DescribeVpcEndpointConnectionsInput {
  36510. s.MaxResults = &v
  36511. return s
  36512. }
  36513. // SetNextToken sets the NextToken field's value.
  36514. func (s *DescribeVpcEndpointConnectionsInput) SetNextToken(v string) *DescribeVpcEndpointConnectionsInput {
  36515. s.NextToken = &v
  36516. return s
  36517. }
  36518. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointConnectionsResult
  36519. type DescribeVpcEndpointConnectionsOutput struct {
  36520. _ struct{} `type:"structure"`
  36521. // The token to use to retrieve the next page of results. This value is null
  36522. // when there are no more results to return.
  36523. NextToken *string `locationName:"nextToken" type:"string"`
  36524. // Information about one or more VPC endpoint connections.
  36525. VpcEndpointConnections []*VpcEndpointConnection `locationName:"vpcEndpointConnectionSet" locationNameList:"item" type:"list"`
  36526. }
  36527. // String returns the string representation
  36528. func (s DescribeVpcEndpointConnectionsOutput) String() string {
  36529. return awsutil.Prettify(s)
  36530. }
  36531. // GoString returns the string representation
  36532. func (s DescribeVpcEndpointConnectionsOutput) GoString() string {
  36533. return s.String()
  36534. }
  36535. // SetNextToken sets the NextToken field's value.
  36536. func (s *DescribeVpcEndpointConnectionsOutput) SetNextToken(v string) *DescribeVpcEndpointConnectionsOutput {
  36537. s.NextToken = &v
  36538. return s
  36539. }
  36540. // SetVpcEndpointConnections sets the VpcEndpointConnections field's value.
  36541. func (s *DescribeVpcEndpointConnectionsOutput) SetVpcEndpointConnections(v []*VpcEndpointConnection) *DescribeVpcEndpointConnectionsOutput {
  36542. s.VpcEndpointConnections = v
  36543. return s
  36544. }
  36545. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurationsRequest
  36546. type DescribeVpcEndpointServiceConfigurationsInput struct {
  36547. _ struct{} `type:"structure"`
  36548. // Checks whether you have the required permissions for the action, without
  36549. // actually making the request, and provides an error response. If you have
  36550. // the required permissions, the error response is DryRunOperation. Otherwise,
  36551. // it is UnauthorizedOperation.
  36552. DryRun *bool `type:"boolean"`
  36553. // One or more filters.
  36554. //
  36555. // * service-name - The name of the service.
  36556. //
  36557. // * service-id - The ID of the service.
  36558. //
  36559. // * service-state - The state of the service (Pending | Available | Deleting
  36560. // | Deleted | Failed).
  36561. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36562. // The maximum number of results to return for the request in a single page.
  36563. // The remaining results of the initial request can be seen by sending another
  36564. // request with the returned NextToken value. This value can be between 5 and
  36565. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  36566. // are returned.
  36567. MaxResults *int64 `type:"integer"`
  36568. // The token to retrieve the next page of results.
  36569. NextToken *string `type:"string"`
  36570. // The IDs of one or more services.
  36571. ServiceIds []*string `locationName:"ServiceId" locationNameList:"item" type:"list"`
  36572. }
  36573. // String returns the string representation
  36574. func (s DescribeVpcEndpointServiceConfigurationsInput) String() string {
  36575. return awsutil.Prettify(s)
  36576. }
  36577. // GoString returns the string representation
  36578. func (s DescribeVpcEndpointServiceConfigurationsInput) GoString() string {
  36579. return s.String()
  36580. }
  36581. // SetDryRun sets the DryRun field's value.
  36582. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetDryRun(v bool) *DescribeVpcEndpointServiceConfigurationsInput {
  36583. s.DryRun = &v
  36584. return s
  36585. }
  36586. // SetFilters sets the Filters field's value.
  36587. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServiceConfigurationsInput {
  36588. s.Filters = v
  36589. return s
  36590. }
  36591. // SetMaxResults sets the MaxResults field's value.
  36592. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetMaxResults(v int64) *DescribeVpcEndpointServiceConfigurationsInput {
  36593. s.MaxResults = &v
  36594. return s
  36595. }
  36596. // SetNextToken sets the NextToken field's value.
  36597. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsInput {
  36598. s.NextToken = &v
  36599. return s
  36600. }
  36601. // SetServiceIds sets the ServiceIds field's value.
  36602. func (s *DescribeVpcEndpointServiceConfigurationsInput) SetServiceIds(v []*string) *DescribeVpcEndpointServiceConfigurationsInput {
  36603. s.ServiceIds = v
  36604. return s
  36605. }
  36606. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServiceConfigurationsResult
  36607. type DescribeVpcEndpointServiceConfigurationsOutput struct {
  36608. _ struct{} `type:"structure"`
  36609. // The token to use to retrieve the next page of results. This value is null
  36610. // when there are no more results to return.
  36611. NextToken *string `locationName:"nextToken" type:"string"`
  36612. // Information about one or more services.
  36613. ServiceConfigurations []*ServiceConfiguration `locationName:"serviceConfigurationSet" locationNameList:"item" type:"list"`
  36614. }
  36615. // String returns the string representation
  36616. func (s DescribeVpcEndpointServiceConfigurationsOutput) String() string {
  36617. return awsutil.Prettify(s)
  36618. }
  36619. // GoString returns the string representation
  36620. func (s DescribeVpcEndpointServiceConfigurationsOutput) GoString() string {
  36621. return s.String()
  36622. }
  36623. // SetNextToken sets the NextToken field's value.
  36624. func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetNextToken(v string) *DescribeVpcEndpointServiceConfigurationsOutput {
  36625. s.NextToken = &v
  36626. return s
  36627. }
  36628. // SetServiceConfigurations sets the ServiceConfigurations field's value.
  36629. func (s *DescribeVpcEndpointServiceConfigurationsOutput) SetServiceConfigurations(v []*ServiceConfiguration) *DescribeVpcEndpointServiceConfigurationsOutput {
  36630. s.ServiceConfigurations = v
  36631. return s
  36632. }
  36633. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissionsRequest
  36634. type DescribeVpcEndpointServicePermissionsInput struct {
  36635. _ struct{} `type:"structure"`
  36636. // Checks whether you have the required permissions for the action, without
  36637. // actually making the request, and provides an error response. If you have
  36638. // the required permissions, the error response is DryRunOperation. Otherwise,
  36639. // it is UnauthorizedOperation.
  36640. DryRun *bool `type:"boolean"`
  36641. // One or more filters.
  36642. //
  36643. // * principal - The ARN of the principal.
  36644. //
  36645. // * principal-type - The principal type (All | Service | OrganizationUnit
  36646. // | Account | User | Role).
  36647. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36648. // The maximum number of results to return for the request in a single page.
  36649. // The remaining results of the initial request can be seen by sending another
  36650. // request with the returned NextToken value. This value can be between 5 and
  36651. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  36652. // are returned.
  36653. MaxResults *int64 `type:"integer"`
  36654. // The token to retrieve the next page of results.
  36655. NextToken *string `type:"string"`
  36656. // The ID of the service.
  36657. //
  36658. // ServiceId is a required field
  36659. ServiceId *string `type:"string" required:"true"`
  36660. }
  36661. // String returns the string representation
  36662. func (s DescribeVpcEndpointServicePermissionsInput) String() string {
  36663. return awsutil.Prettify(s)
  36664. }
  36665. // GoString returns the string representation
  36666. func (s DescribeVpcEndpointServicePermissionsInput) GoString() string {
  36667. return s.String()
  36668. }
  36669. // Validate inspects the fields of the type to determine if they are valid.
  36670. func (s *DescribeVpcEndpointServicePermissionsInput) Validate() error {
  36671. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcEndpointServicePermissionsInput"}
  36672. if s.ServiceId == nil {
  36673. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  36674. }
  36675. if invalidParams.Len() > 0 {
  36676. return invalidParams
  36677. }
  36678. return nil
  36679. }
  36680. // SetDryRun sets the DryRun field's value.
  36681. func (s *DescribeVpcEndpointServicePermissionsInput) SetDryRun(v bool) *DescribeVpcEndpointServicePermissionsInput {
  36682. s.DryRun = &v
  36683. return s
  36684. }
  36685. // SetFilters sets the Filters field's value.
  36686. func (s *DescribeVpcEndpointServicePermissionsInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicePermissionsInput {
  36687. s.Filters = v
  36688. return s
  36689. }
  36690. // SetMaxResults sets the MaxResults field's value.
  36691. func (s *DescribeVpcEndpointServicePermissionsInput) SetMaxResults(v int64) *DescribeVpcEndpointServicePermissionsInput {
  36692. s.MaxResults = &v
  36693. return s
  36694. }
  36695. // SetNextToken sets the NextToken field's value.
  36696. func (s *DescribeVpcEndpointServicePermissionsInput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsInput {
  36697. s.NextToken = &v
  36698. return s
  36699. }
  36700. // SetServiceId sets the ServiceId field's value.
  36701. func (s *DescribeVpcEndpointServicePermissionsInput) SetServiceId(v string) *DescribeVpcEndpointServicePermissionsInput {
  36702. s.ServiceId = &v
  36703. return s
  36704. }
  36705. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicePermissionsResult
  36706. type DescribeVpcEndpointServicePermissionsOutput struct {
  36707. _ struct{} `type:"structure"`
  36708. // Information about one or more allowed principals.
  36709. AllowedPrincipals []*AllowedPrincipal `locationName:"allowedPrincipals" locationNameList:"item" type:"list"`
  36710. // The token to use to retrieve the next page of results. This value is null
  36711. // when there are no more results to return.
  36712. NextToken *string `locationName:"nextToken" type:"string"`
  36713. }
  36714. // String returns the string representation
  36715. func (s DescribeVpcEndpointServicePermissionsOutput) String() string {
  36716. return awsutil.Prettify(s)
  36717. }
  36718. // GoString returns the string representation
  36719. func (s DescribeVpcEndpointServicePermissionsOutput) GoString() string {
  36720. return s.String()
  36721. }
  36722. // SetAllowedPrincipals sets the AllowedPrincipals field's value.
  36723. func (s *DescribeVpcEndpointServicePermissionsOutput) SetAllowedPrincipals(v []*AllowedPrincipal) *DescribeVpcEndpointServicePermissionsOutput {
  36724. s.AllowedPrincipals = v
  36725. return s
  36726. }
  36727. // SetNextToken sets the NextToken field's value.
  36728. func (s *DescribeVpcEndpointServicePermissionsOutput) SetNextToken(v string) *DescribeVpcEndpointServicePermissionsOutput {
  36729. s.NextToken = &v
  36730. return s
  36731. }
  36732. // Contains the parameters for DescribeVpcEndpointServices.
  36733. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicesRequest
  36734. type DescribeVpcEndpointServicesInput struct {
  36735. _ struct{} `type:"structure"`
  36736. // Checks whether you have the required permissions for the action, without
  36737. // actually making the request, and provides an error response. If you have
  36738. // the required permissions, the error response is DryRunOperation. Otherwise,
  36739. // it is UnauthorizedOperation.
  36740. DryRun *bool `type:"boolean"`
  36741. // One or more filters.
  36742. //
  36743. // * service-name: The name of the service.
  36744. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36745. // The maximum number of items to return for this request. The request returns
  36746. // a token that you can specify in a subsequent call to get the next set of
  36747. // results.
  36748. //
  36749. // Constraint: If the value is greater than 1000, we return only 1000 items.
  36750. MaxResults *int64 `type:"integer"`
  36751. // The token for the next set of items to return. (You received this token from
  36752. // a prior call.)
  36753. NextToken *string `type:"string"`
  36754. // One or more service names.
  36755. ServiceNames []*string `locationName:"ServiceName" locationNameList:"item" type:"list"`
  36756. }
  36757. // String returns the string representation
  36758. func (s DescribeVpcEndpointServicesInput) String() string {
  36759. return awsutil.Prettify(s)
  36760. }
  36761. // GoString returns the string representation
  36762. func (s DescribeVpcEndpointServicesInput) GoString() string {
  36763. return s.String()
  36764. }
  36765. // SetDryRun sets the DryRun field's value.
  36766. func (s *DescribeVpcEndpointServicesInput) SetDryRun(v bool) *DescribeVpcEndpointServicesInput {
  36767. s.DryRun = &v
  36768. return s
  36769. }
  36770. // SetFilters sets the Filters field's value.
  36771. func (s *DescribeVpcEndpointServicesInput) SetFilters(v []*Filter) *DescribeVpcEndpointServicesInput {
  36772. s.Filters = v
  36773. return s
  36774. }
  36775. // SetMaxResults sets the MaxResults field's value.
  36776. func (s *DescribeVpcEndpointServicesInput) SetMaxResults(v int64) *DescribeVpcEndpointServicesInput {
  36777. s.MaxResults = &v
  36778. return s
  36779. }
  36780. // SetNextToken sets the NextToken field's value.
  36781. func (s *DescribeVpcEndpointServicesInput) SetNextToken(v string) *DescribeVpcEndpointServicesInput {
  36782. s.NextToken = &v
  36783. return s
  36784. }
  36785. // SetServiceNames sets the ServiceNames field's value.
  36786. func (s *DescribeVpcEndpointServicesInput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesInput {
  36787. s.ServiceNames = v
  36788. return s
  36789. }
  36790. // Contains the output of DescribeVpcEndpointServices.
  36791. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointServicesResult
  36792. type DescribeVpcEndpointServicesOutput struct {
  36793. _ struct{} `type:"structure"`
  36794. // The token to use when requesting the next set of items. If there are no additional
  36795. // items to return, the string is empty.
  36796. NextToken *string `locationName:"nextToken" type:"string"`
  36797. // Information about the service.
  36798. ServiceDetails []*ServiceDetail `locationName:"serviceDetailSet" locationNameList:"item" type:"list"`
  36799. // A list of supported services.
  36800. ServiceNames []*string `locationName:"serviceNameSet" locationNameList:"item" type:"list"`
  36801. }
  36802. // String returns the string representation
  36803. func (s DescribeVpcEndpointServicesOutput) String() string {
  36804. return awsutil.Prettify(s)
  36805. }
  36806. // GoString returns the string representation
  36807. func (s DescribeVpcEndpointServicesOutput) GoString() string {
  36808. return s.String()
  36809. }
  36810. // SetNextToken sets the NextToken field's value.
  36811. func (s *DescribeVpcEndpointServicesOutput) SetNextToken(v string) *DescribeVpcEndpointServicesOutput {
  36812. s.NextToken = &v
  36813. return s
  36814. }
  36815. // SetServiceDetails sets the ServiceDetails field's value.
  36816. func (s *DescribeVpcEndpointServicesOutput) SetServiceDetails(v []*ServiceDetail) *DescribeVpcEndpointServicesOutput {
  36817. s.ServiceDetails = v
  36818. return s
  36819. }
  36820. // SetServiceNames sets the ServiceNames field's value.
  36821. func (s *DescribeVpcEndpointServicesOutput) SetServiceNames(v []*string) *DescribeVpcEndpointServicesOutput {
  36822. s.ServiceNames = v
  36823. return s
  36824. }
  36825. // Contains the parameters for DescribeVpcEndpoints.
  36826. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointsRequest
  36827. type DescribeVpcEndpointsInput struct {
  36828. _ struct{} `type:"structure"`
  36829. // Checks whether you have the required permissions for the action, without
  36830. // actually making the request, and provides an error response. If you have
  36831. // the required permissions, the error response is DryRunOperation. Otherwise,
  36832. // it is UnauthorizedOperation.
  36833. DryRun *bool `type:"boolean"`
  36834. // One or more filters.
  36835. //
  36836. // * service-name: The name of the service.
  36837. //
  36838. // * vpc-id: The ID of the VPC in which the endpoint resides.
  36839. //
  36840. // * vpc-endpoint-id: The ID of the endpoint.
  36841. //
  36842. // * vpc-endpoint-state: The state of the endpoint. (pending | available
  36843. // | deleting | deleted)
  36844. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36845. // The maximum number of items to return for this request. The request returns
  36846. // a token that you can specify in a subsequent call to get the next set of
  36847. // results.
  36848. //
  36849. // Constraint: If the value is greater than 1000, we return only 1000 items.
  36850. MaxResults *int64 `type:"integer"`
  36851. // The token for the next set of items to return. (You received this token from
  36852. // a prior call.)
  36853. NextToken *string `type:"string"`
  36854. // One or more endpoint IDs.
  36855. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list"`
  36856. }
  36857. // String returns the string representation
  36858. func (s DescribeVpcEndpointsInput) String() string {
  36859. return awsutil.Prettify(s)
  36860. }
  36861. // GoString returns the string representation
  36862. func (s DescribeVpcEndpointsInput) GoString() string {
  36863. return s.String()
  36864. }
  36865. // SetDryRun sets the DryRun field's value.
  36866. func (s *DescribeVpcEndpointsInput) SetDryRun(v bool) *DescribeVpcEndpointsInput {
  36867. s.DryRun = &v
  36868. return s
  36869. }
  36870. // SetFilters sets the Filters field's value.
  36871. func (s *DescribeVpcEndpointsInput) SetFilters(v []*Filter) *DescribeVpcEndpointsInput {
  36872. s.Filters = v
  36873. return s
  36874. }
  36875. // SetMaxResults sets the MaxResults field's value.
  36876. func (s *DescribeVpcEndpointsInput) SetMaxResults(v int64) *DescribeVpcEndpointsInput {
  36877. s.MaxResults = &v
  36878. return s
  36879. }
  36880. // SetNextToken sets the NextToken field's value.
  36881. func (s *DescribeVpcEndpointsInput) SetNextToken(v string) *DescribeVpcEndpointsInput {
  36882. s.NextToken = &v
  36883. return s
  36884. }
  36885. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  36886. func (s *DescribeVpcEndpointsInput) SetVpcEndpointIds(v []*string) *DescribeVpcEndpointsInput {
  36887. s.VpcEndpointIds = v
  36888. return s
  36889. }
  36890. // Contains the output of DescribeVpcEndpoints.
  36891. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcEndpointsResult
  36892. type DescribeVpcEndpointsOutput struct {
  36893. _ struct{} `type:"structure"`
  36894. // The token to use when requesting the next set of items. If there are no additional
  36895. // items to return, the string is empty.
  36896. NextToken *string `locationName:"nextToken" type:"string"`
  36897. // Information about the endpoints.
  36898. VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpointSet" locationNameList:"item" type:"list"`
  36899. }
  36900. // String returns the string representation
  36901. func (s DescribeVpcEndpointsOutput) String() string {
  36902. return awsutil.Prettify(s)
  36903. }
  36904. // GoString returns the string representation
  36905. func (s DescribeVpcEndpointsOutput) GoString() string {
  36906. return s.String()
  36907. }
  36908. // SetNextToken sets the NextToken field's value.
  36909. func (s *DescribeVpcEndpointsOutput) SetNextToken(v string) *DescribeVpcEndpointsOutput {
  36910. s.NextToken = &v
  36911. return s
  36912. }
  36913. // SetVpcEndpoints sets the VpcEndpoints field's value.
  36914. func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *DescribeVpcEndpointsOutput {
  36915. s.VpcEndpoints = v
  36916. return s
  36917. }
  36918. // Contains the parameters for DescribeVpcPeeringConnections.
  36919. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnectionsRequest
  36920. type DescribeVpcPeeringConnectionsInput struct {
  36921. _ struct{} `type:"structure"`
  36922. // Checks whether you have the required permissions for the action, without
  36923. // actually making the request, and provides an error response. If you have
  36924. // the required permissions, the error response is DryRunOperation. Otherwise,
  36925. // it is UnauthorizedOperation.
  36926. DryRun *bool `locationName:"dryRun" type:"boolean"`
  36927. // One or more filters.
  36928. //
  36929. // * accepter-vpc-info.cidr-block - The IPv4 CIDR block of the accepter VPC.
  36930. //
  36931. // * accepter-vpc-info.owner-id - The AWS account ID of the owner of the
  36932. // accepter VPC.
  36933. //
  36934. // * accepter-vpc-info.vpc-id - The ID of the accepter VPC.
  36935. //
  36936. // * expiration-time - The expiration date and time for the VPC peering connection.
  36937. //
  36938. // * requester-vpc-info.cidr-block - The IPv4 CIDR block of the requester's
  36939. // VPC.
  36940. //
  36941. // * requester-vpc-info.owner-id - The AWS account ID of the owner of the
  36942. // requester VPC.
  36943. //
  36944. // * requester-vpc-info.vpc-id - The ID of the requester VPC.
  36945. //
  36946. // * status-code - The status of the VPC peering connection (pending-acceptance
  36947. // | failed | expired | provisioning | active | deleting | deleted | rejected).
  36948. //
  36949. // * status-message - A message that provides more information about the
  36950. // status of the VPC peering connection, if applicable.
  36951. //
  36952. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  36953. // Specify the key of the tag in the filter name and the value of the tag
  36954. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  36955. // for the filter name and X for the filter value.
  36956. //
  36957. // * tag-key - The key of a tag assigned to the resource. This filter is
  36958. // independent of the tag-value filter. For example, if you use both the
  36959. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  36960. // assigned both the tag key Purpose (regardless of what the tag's value
  36961. // is), and the tag value X (regardless of what the tag's key is). If you
  36962. // want to list only resources where Purpose is X, see the tag:key=value
  36963. // filter.
  36964. //
  36965. // * tag-value - The value of a tag assigned to the resource. This filter
  36966. // is independent of the tag-key filter.
  36967. //
  36968. // * vpc-peering-connection-id - The ID of the VPC peering connection.
  36969. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  36970. // One or more VPC peering connection IDs.
  36971. //
  36972. // Default: Describes all your VPC peering connections.
  36973. VpcPeeringConnectionIds []*string `locationName:"VpcPeeringConnectionId" locationNameList:"item" type:"list"`
  36974. }
  36975. // String returns the string representation
  36976. func (s DescribeVpcPeeringConnectionsInput) String() string {
  36977. return awsutil.Prettify(s)
  36978. }
  36979. // GoString returns the string representation
  36980. func (s DescribeVpcPeeringConnectionsInput) GoString() string {
  36981. return s.String()
  36982. }
  36983. // SetDryRun sets the DryRun field's value.
  36984. func (s *DescribeVpcPeeringConnectionsInput) SetDryRun(v bool) *DescribeVpcPeeringConnectionsInput {
  36985. s.DryRun = &v
  36986. return s
  36987. }
  36988. // SetFilters sets the Filters field's value.
  36989. func (s *DescribeVpcPeeringConnectionsInput) SetFilters(v []*Filter) *DescribeVpcPeeringConnectionsInput {
  36990. s.Filters = v
  36991. return s
  36992. }
  36993. // SetVpcPeeringConnectionIds sets the VpcPeeringConnectionIds field's value.
  36994. func (s *DescribeVpcPeeringConnectionsInput) SetVpcPeeringConnectionIds(v []*string) *DescribeVpcPeeringConnectionsInput {
  36995. s.VpcPeeringConnectionIds = v
  36996. return s
  36997. }
  36998. // Contains the output of DescribeVpcPeeringConnections.
  36999. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnectionsResult
  37000. type DescribeVpcPeeringConnectionsOutput struct {
  37001. _ struct{} `type:"structure"`
  37002. // Information about the VPC peering connections.
  37003. VpcPeeringConnections []*VpcPeeringConnection `locationName:"vpcPeeringConnectionSet" locationNameList:"item" type:"list"`
  37004. }
  37005. // String returns the string representation
  37006. func (s DescribeVpcPeeringConnectionsOutput) String() string {
  37007. return awsutil.Prettify(s)
  37008. }
  37009. // GoString returns the string representation
  37010. func (s DescribeVpcPeeringConnectionsOutput) GoString() string {
  37011. return s.String()
  37012. }
  37013. // SetVpcPeeringConnections sets the VpcPeeringConnections field's value.
  37014. func (s *DescribeVpcPeeringConnectionsOutput) SetVpcPeeringConnections(v []*VpcPeeringConnection) *DescribeVpcPeeringConnectionsOutput {
  37015. s.VpcPeeringConnections = v
  37016. return s
  37017. }
  37018. // Contains the parameters for DescribeVpcs.
  37019. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcsRequest
  37020. type DescribeVpcsInput struct {
  37021. _ struct{} `type:"structure"`
  37022. // Checks whether you have the required permissions for the action, without
  37023. // actually making the request, and provides an error response. If you have
  37024. // the required permissions, the error response is DryRunOperation. Otherwise,
  37025. // it is UnauthorizedOperation.
  37026. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37027. // One or more filters.
  37028. //
  37029. // * cidr - The primary IPv4 CIDR block of the VPC. The CIDR block you specify
  37030. // must exactly match the VPC's CIDR block for information to be returned
  37031. // for the VPC. Must contain the slash followed by one or two digits (for
  37032. // example, /28).
  37033. //
  37034. // * cidr-block-association.cidr-block - An IPv4 CIDR block associated with
  37035. // the VPC.
  37036. //
  37037. // * cidr-block-association.association-id - The association ID for an IPv4
  37038. // CIDR block associated with the VPC.
  37039. //
  37040. // * cidr-block-association.state - The state of an IPv4 CIDR block associated
  37041. // with the VPC.
  37042. //
  37043. // * dhcp-options-id - The ID of a set of DHCP options.
  37044. //
  37045. // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated
  37046. // with the VPC.
  37047. //
  37048. // * ipv6-cidr-block-association.association-id - The association ID for
  37049. // an IPv6 CIDR block associated with the VPC.
  37050. //
  37051. // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block
  37052. // associated with the VPC.
  37053. //
  37054. // * isDefault - Indicates whether the VPC is the default VPC.
  37055. //
  37056. // * state - The state of the VPC (pending | available).
  37057. //
  37058. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  37059. // Specify the key of the tag in the filter name and the value of the tag
  37060. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  37061. // for the filter name and X for the filter value.
  37062. //
  37063. // * tag-key - The key of a tag assigned to the resource. This filter is
  37064. // independent of the tag-value filter. For example, if you use both the
  37065. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  37066. // assigned both the tag key Purpose (regardless of what the tag's value
  37067. // is), and the tag value X (regardless of what the tag's key is). If you
  37068. // want to list only resources where Purpose is X, see the tag:key=value
  37069. // filter.
  37070. //
  37071. // * tag-value - The value of a tag assigned to the resource. This filter
  37072. // is independent of the tag-key filter.
  37073. //
  37074. // * vpc-id - The ID of the VPC.
  37075. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37076. // One or more VPC IDs.
  37077. //
  37078. // Default: Describes all your VPCs.
  37079. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  37080. }
  37081. // String returns the string representation
  37082. func (s DescribeVpcsInput) String() string {
  37083. return awsutil.Prettify(s)
  37084. }
  37085. // GoString returns the string representation
  37086. func (s DescribeVpcsInput) GoString() string {
  37087. return s.String()
  37088. }
  37089. // SetDryRun sets the DryRun field's value.
  37090. func (s *DescribeVpcsInput) SetDryRun(v bool) *DescribeVpcsInput {
  37091. s.DryRun = &v
  37092. return s
  37093. }
  37094. // SetFilters sets the Filters field's value.
  37095. func (s *DescribeVpcsInput) SetFilters(v []*Filter) *DescribeVpcsInput {
  37096. s.Filters = v
  37097. return s
  37098. }
  37099. // SetVpcIds sets the VpcIds field's value.
  37100. func (s *DescribeVpcsInput) SetVpcIds(v []*string) *DescribeVpcsInput {
  37101. s.VpcIds = v
  37102. return s
  37103. }
  37104. // Contains the output of DescribeVpcs.
  37105. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcsResult
  37106. type DescribeVpcsOutput struct {
  37107. _ struct{} `type:"structure"`
  37108. // Information about one or more VPCs.
  37109. Vpcs []*Vpc `locationName:"vpcSet" locationNameList:"item" type:"list"`
  37110. }
  37111. // String returns the string representation
  37112. func (s DescribeVpcsOutput) String() string {
  37113. return awsutil.Prettify(s)
  37114. }
  37115. // GoString returns the string representation
  37116. func (s DescribeVpcsOutput) GoString() string {
  37117. return s.String()
  37118. }
  37119. // SetVpcs sets the Vpcs field's value.
  37120. func (s *DescribeVpcsOutput) SetVpcs(v []*Vpc) *DescribeVpcsOutput {
  37121. s.Vpcs = v
  37122. return s
  37123. }
  37124. // Contains the parameters for DescribeVpnConnections.
  37125. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnectionsRequest
  37126. type DescribeVpnConnectionsInput struct {
  37127. _ struct{} `type:"structure"`
  37128. // Checks whether you have the required permissions for the action, without
  37129. // actually making the request, and provides an error response. If you have
  37130. // the required permissions, the error response is DryRunOperation. Otherwise,
  37131. // it is UnauthorizedOperation.
  37132. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37133. // One or more filters.
  37134. //
  37135. // * customer-gateway-configuration - The configuration information for the
  37136. // customer gateway.
  37137. //
  37138. // * customer-gateway-id - The ID of a customer gateway associated with the
  37139. // VPN connection.
  37140. //
  37141. // * state - The state of the VPN connection (pending | available | deleting
  37142. // | deleted).
  37143. //
  37144. // * option.static-routes-only - Indicates whether the connection has static
  37145. // routes only. Used for devices that do not support Border Gateway Protocol
  37146. // (BGP).
  37147. //
  37148. // * route.destination-cidr-block - The destination CIDR block. This corresponds
  37149. // to the subnet used in a customer data center.
  37150. //
  37151. // * bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP
  37152. // device.
  37153. //
  37154. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  37155. // Specify the key of the tag in the filter name and the value of the tag
  37156. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  37157. // for the filter name and X for the filter value.
  37158. //
  37159. // * tag-key - The key of a tag assigned to the resource. This filter is
  37160. // independent of the tag-value filter. For example, if you use both the
  37161. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  37162. // assigned both the tag key Purpose (regardless of what the tag's value
  37163. // is), and the tag value X (regardless of what the tag's key is). If you
  37164. // want to list only resources where Purpose is X, see the tag:key=value
  37165. // filter.
  37166. //
  37167. // * tag-value - The value of a tag assigned to the resource. This filter
  37168. // is independent of the tag-key filter.
  37169. //
  37170. // * type - The type of VPN connection. Currently the only supported type
  37171. // is ipsec.1.
  37172. //
  37173. // * vpn-connection-id - The ID of the VPN connection.
  37174. //
  37175. // * vpn-gateway-id - The ID of a virtual private gateway associated with
  37176. // the VPN connection.
  37177. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37178. // One or more VPN connection IDs.
  37179. //
  37180. // Default: Describes your VPN connections.
  37181. VpnConnectionIds []*string `locationName:"VpnConnectionId" locationNameList:"VpnConnectionId" type:"list"`
  37182. }
  37183. // String returns the string representation
  37184. func (s DescribeVpnConnectionsInput) String() string {
  37185. return awsutil.Prettify(s)
  37186. }
  37187. // GoString returns the string representation
  37188. func (s DescribeVpnConnectionsInput) GoString() string {
  37189. return s.String()
  37190. }
  37191. // SetDryRun sets the DryRun field's value.
  37192. func (s *DescribeVpnConnectionsInput) SetDryRun(v bool) *DescribeVpnConnectionsInput {
  37193. s.DryRun = &v
  37194. return s
  37195. }
  37196. // SetFilters sets the Filters field's value.
  37197. func (s *DescribeVpnConnectionsInput) SetFilters(v []*Filter) *DescribeVpnConnectionsInput {
  37198. s.Filters = v
  37199. return s
  37200. }
  37201. // SetVpnConnectionIds sets the VpnConnectionIds field's value.
  37202. func (s *DescribeVpnConnectionsInput) SetVpnConnectionIds(v []*string) *DescribeVpnConnectionsInput {
  37203. s.VpnConnectionIds = v
  37204. return s
  37205. }
  37206. // Contains the output of DescribeVpnConnections.
  37207. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnConnectionsResult
  37208. type DescribeVpnConnectionsOutput struct {
  37209. _ struct{} `type:"structure"`
  37210. // Information about one or more VPN connections.
  37211. VpnConnections []*VpnConnection `locationName:"vpnConnectionSet" locationNameList:"item" type:"list"`
  37212. }
  37213. // String returns the string representation
  37214. func (s DescribeVpnConnectionsOutput) String() string {
  37215. return awsutil.Prettify(s)
  37216. }
  37217. // GoString returns the string representation
  37218. func (s DescribeVpnConnectionsOutput) GoString() string {
  37219. return s.String()
  37220. }
  37221. // SetVpnConnections sets the VpnConnections field's value.
  37222. func (s *DescribeVpnConnectionsOutput) SetVpnConnections(v []*VpnConnection) *DescribeVpnConnectionsOutput {
  37223. s.VpnConnections = v
  37224. return s
  37225. }
  37226. // Contains the parameters for DescribeVpnGateways.
  37227. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGatewaysRequest
  37228. type DescribeVpnGatewaysInput struct {
  37229. _ struct{} `type:"structure"`
  37230. // Checks whether you have the required permissions for the action, without
  37231. // actually making the request, and provides an error response. If you have
  37232. // the required permissions, the error response is DryRunOperation. Otherwise,
  37233. // it is UnauthorizedOperation.
  37234. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37235. // One or more filters.
  37236. //
  37237. // * amazon-side-asn - The Autonomous System Number (ASN) for the Amazon
  37238. // side of the gateway.
  37239. //
  37240. // * attachment.state - The current state of the attachment between the gateway
  37241. // and the VPC (attaching | attached | detaching | detached).
  37242. //
  37243. // * attachment.vpc-id - The ID of an attached VPC.
  37244. //
  37245. // * availability-zone - The Availability Zone for the virtual private gateway
  37246. // (if applicable).
  37247. //
  37248. // * state - The state of the virtual private gateway (pending | available
  37249. // | deleting | deleted).
  37250. //
  37251. // * tag:key=value - The key/value combination of a tag assigned to the resource.
  37252. // Specify the key of the tag in the filter name and the value of the tag
  37253. // in the filter value. For example, for the tag Purpose=X, specify tag:Purpose
  37254. // for the filter name and X for the filter value.
  37255. //
  37256. // * tag-key - The key of a tag assigned to the resource. This filter is
  37257. // independent of the tag-value filter. For example, if you use both the
  37258. // filter "tag-key=Purpose" and the filter "tag-value=X", you get any resources
  37259. // assigned both the tag key Purpose (regardless of what the tag's value
  37260. // is), and the tag value X (regardless of what the tag's key is). If you
  37261. // want to list only resources where Purpose is X, see the tag:key=value
  37262. // filter.
  37263. //
  37264. // * tag-value - The value of a tag assigned to the resource. This filter
  37265. // is independent of the tag-key filter.
  37266. //
  37267. // * type - The type of virtual private gateway. Currently the only supported
  37268. // type is ipsec.1.
  37269. //
  37270. // * vpn-gateway-id - The ID of the virtual private gateway.
  37271. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  37272. // One or more virtual private gateway IDs.
  37273. //
  37274. // Default: Describes all your virtual private gateways.
  37275. VpnGatewayIds []*string `locationName:"VpnGatewayId" locationNameList:"VpnGatewayId" type:"list"`
  37276. }
  37277. // String returns the string representation
  37278. func (s DescribeVpnGatewaysInput) String() string {
  37279. return awsutil.Prettify(s)
  37280. }
  37281. // GoString returns the string representation
  37282. func (s DescribeVpnGatewaysInput) GoString() string {
  37283. return s.String()
  37284. }
  37285. // SetDryRun sets the DryRun field's value.
  37286. func (s *DescribeVpnGatewaysInput) SetDryRun(v bool) *DescribeVpnGatewaysInput {
  37287. s.DryRun = &v
  37288. return s
  37289. }
  37290. // SetFilters sets the Filters field's value.
  37291. func (s *DescribeVpnGatewaysInput) SetFilters(v []*Filter) *DescribeVpnGatewaysInput {
  37292. s.Filters = v
  37293. return s
  37294. }
  37295. // SetVpnGatewayIds sets the VpnGatewayIds field's value.
  37296. func (s *DescribeVpnGatewaysInput) SetVpnGatewayIds(v []*string) *DescribeVpnGatewaysInput {
  37297. s.VpnGatewayIds = v
  37298. return s
  37299. }
  37300. // Contains the output of DescribeVpnGateways.
  37301. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpnGatewaysResult
  37302. type DescribeVpnGatewaysOutput struct {
  37303. _ struct{} `type:"structure"`
  37304. // Information about one or more virtual private gateways.
  37305. VpnGateways []*VpnGateway `locationName:"vpnGatewaySet" locationNameList:"item" type:"list"`
  37306. }
  37307. // String returns the string representation
  37308. func (s DescribeVpnGatewaysOutput) String() string {
  37309. return awsutil.Prettify(s)
  37310. }
  37311. // GoString returns the string representation
  37312. func (s DescribeVpnGatewaysOutput) GoString() string {
  37313. return s.String()
  37314. }
  37315. // SetVpnGateways sets the VpnGateways field's value.
  37316. func (s *DescribeVpnGatewaysOutput) SetVpnGateways(v []*VpnGateway) *DescribeVpnGatewaysOutput {
  37317. s.VpnGateways = v
  37318. return s
  37319. }
  37320. // Contains the parameters for DetachClassicLinkVpc.
  37321. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpcRequest
  37322. type DetachClassicLinkVpcInput struct {
  37323. _ struct{} `type:"structure"`
  37324. // Checks whether you have the required permissions for the action, without
  37325. // actually making the request, and provides an error response. If you have
  37326. // the required permissions, the error response is DryRunOperation. Otherwise,
  37327. // it is UnauthorizedOperation.
  37328. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37329. // The ID of the instance to unlink from the VPC.
  37330. //
  37331. // InstanceId is a required field
  37332. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  37333. // The ID of the VPC to which the instance is linked.
  37334. //
  37335. // VpcId is a required field
  37336. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  37337. }
  37338. // String returns the string representation
  37339. func (s DetachClassicLinkVpcInput) String() string {
  37340. return awsutil.Prettify(s)
  37341. }
  37342. // GoString returns the string representation
  37343. func (s DetachClassicLinkVpcInput) GoString() string {
  37344. return s.String()
  37345. }
  37346. // Validate inspects the fields of the type to determine if they are valid.
  37347. func (s *DetachClassicLinkVpcInput) Validate() error {
  37348. invalidParams := request.ErrInvalidParams{Context: "DetachClassicLinkVpcInput"}
  37349. if s.InstanceId == nil {
  37350. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  37351. }
  37352. if s.VpcId == nil {
  37353. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  37354. }
  37355. if invalidParams.Len() > 0 {
  37356. return invalidParams
  37357. }
  37358. return nil
  37359. }
  37360. // SetDryRun sets the DryRun field's value.
  37361. func (s *DetachClassicLinkVpcInput) SetDryRun(v bool) *DetachClassicLinkVpcInput {
  37362. s.DryRun = &v
  37363. return s
  37364. }
  37365. // SetInstanceId sets the InstanceId field's value.
  37366. func (s *DetachClassicLinkVpcInput) SetInstanceId(v string) *DetachClassicLinkVpcInput {
  37367. s.InstanceId = &v
  37368. return s
  37369. }
  37370. // SetVpcId sets the VpcId field's value.
  37371. func (s *DetachClassicLinkVpcInput) SetVpcId(v string) *DetachClassicLinkVpcInput {
  37372. s.VpcId = &v
  37373. return s
  37374. }
  37375. // Contains the output of DetachClassicLinkVpc.
  37376. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachClassicLinkVpcResult
  37377. type DetachClassicLinkVpcOutput struct {
  37378. _ struct{} `type:"structure"`
  37379. // Returns true if the request succeeds; otherwise, it returns an error.
  37380. Return *bool `locationName:"return" type:"boolean"`
  37381. }
  37382. // String returns the string representation
  37383. func (s DetachClassicLinkVpcOutput) String() string {
  37384. return awsutil.Prettify(s)
  37385. }
  37386. // GoString returns the string representation
  37387. func (s DetachClassicLinkVpcOutput) GoString() string {
  37388. return s.String()
  37389. }
  37390. // SetReturn sets the Return field's value.
  37391. func (s *DetachClassicLinkVpcOutput) SetReturn(v bool) *DetachClassicLinkVpcOutput {
  37392. s.Return = &v
  37393. return s
  37394. }
  37395. // Contains the parameters for DetachInternetGateway.
  37396. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGatewayRequest
  37397. type DetachInternetGatewayInput struct {
  37398. _ struct{} `type:"structure"`
  37399. // Checks whether you have the required permissions for the action, without
  37400. // actually making the request, and provides an error response. If you have
  37401. // the required permissions, the error response is DryRunOperation. Otherwise,
  37402. // it is UnauthorizedOperation.
  37403. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37404. // The ID of the Internet gateway.
  37405. //
  37406. // InternetGatewayId is a required field
  37407. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  37408. // The ID of the VPC.
  37409. //
  37410. // VpcId is a required field
  37411. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  37412. }
  37413. // String returns the string representation
  37414. func (s DetachInternetGatewayInput) String() string {
  37415. return awsutil.Prettify(s)
  37416. }
  37417. // GoString returns the string representation
  37418. func (s DetachInternetGatewayInput) GoString() string {
  37419. return s.String()
  37420. }
  37421. // Validate inspects the fields of the type to determine if they are valid.
  37422. func (s *DetachInternetGatewayInput) Validate() error {
  37423. invalidParams := request.ErrInvalidParams{Context: "DetachInternetGatewayInput"}
  37424. if s.InternetGatewayId == nil {
  37425. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  37426. }
  37427. if s.VpcId == nil {
  37428. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  37429. }
  37430. if invalidParams.Len() > 0 {
  37431. return invalidParams
  37432. }
  37433. return nil
  37434. }
  37435. // SetDryRun sets the DryRun field's value.
  37436. func (s *DetachInternetGatewayInput) SetDryRun(v bool) *DetachInternetGatewayInput {
  37437. s.DryRun = &v
  37438. return s
  37439. }
  37440. // SetInternetGatewayId sets the InternetGatewayId field's value.
  37441. func (s *DetachInternetGatewayInput) SetInternetGatewayId(v string) *DetachInternetGatewayInput {
  37442. s.InternetGatewayId = &v
  37443. return s
  37444. }
  37445. // SetVpcId sets the VpcId field's value.
  37446. func (s *DetachInternetGatewayInput) SetVpcId(v string) *DetachInternetGatewayInput {
  37447. s.VpcId = &v
  37448. return s
  37449. }
  37450. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachInternetGatewayOutput
  37451. type DetachInternetGatewayOutput struct {
  37452. _ struct{} `type:"structure"`
  37453. }
  37454. // String returns the string representation
  37455. func (s DetachInternetGatewayOutput) String() string {
  37456. return awsutil.Prettify(s)
  37457. }
  37458. // GoString returns the string representation
  37459. func (s DetachInternetGatewayOutput) GoString() string {
  37460. return s.String()
  37461. }
  37462. // Contains the parameters for DetachNetworkInterface.
  37463. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterfaceRequest
  37464. type DetachNetworkInterfaceInput struct {
  37465. _ struct{} `type:"structure"`
  37466. // The ID of the attachment.
  37467. //
  37468. // AttachmentId is a required field
  37469. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  37470. // Checks whether you have the required permissions for the action, without
  37471. // actually making the request, and provides an error response. If you have
  37472. // the required permissions, the error response is DryRunOperation. Otherwise,
  37473. // it is UnauthorizedOperation.
  37474. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37475. // Specifies whether to force a detachment.
  37476. Force *bool `locationName:"force" type:"boolean"`
  37477. }
  37478. // String returns the string representation
  37479. func (s DetachNetworkInterfaceInput) String() string {
  37480. return awsutil.Prettify(s)
  37481. }
  37482. // GoString returns the string representation
  37483. func (s DetachNetworkInterfaceInput) GoString() string {
  37484. return s.String()
  37485. }
  37486. // Validate inspects the fields of the type to determine if they are valid.
  37487. func (s *DetachNetworkInterfaceInput) Validate() error {
  37488. invalidParams := request.ErrInvalidParams{Context: "DetachNetworkInterfaceInput"}
  37489. if s.AttachmentId == nil {
  37490. invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
  37491. }
  37492. if invalidParams.Len() > 0 {
  37493. return invalidParams
  37494. }
  37495. return nil
  37496. }
  37497. // SetAttachmentId sets the AttachmentId field's value.
  37498. func (s *DetachNetworkInterfaceInput) SetAttachmentId(v string) *DetachNetworkInterfaceInput {
  37499. s.AttachmentId = &v
  37500. return s
  37501. }
  37502. // SetDryRun sets the DryRun field's value.
  37503. func (s *DetachNetworkInterfaceInput) SetDryRun(v bool) *DetachNetworkInterfaceInput {
  37504. s.DryRun = &v
  37505. return s
  37506. }
  37507. // SetForce sets the Force field's value.
  37508. func (s *DetachNetworkInterfaceInput) SetForce(v bool) *DetachNetworkInterfaceInput {
  37509. s.Force = &v
  37510. return s
  37511. }
  37512. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachNetworkInterfaceOutput
  37513. type DetachNetworkInterfaceOutput struct {
  37514. _ struct{} `type:"structure"`
  37515. }
  37516. // String returns the string representation
  37517. func (s DetachNetworkInterfaceOutput) String() string {
  37518. return awsutil.Prettify(s)
  37519. }
  37520. // GoString returns the string representation
  37521. func (s DetachNetworkInterfaceOutput) GoString() string {
  37522. return s.String()
  37523. }
  37524. // Contains the parameters for DetachVolume.
  37525. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVolumeRequest
  37526. type DetachVolumeInput struct {
  37527. _ struct{} `type:"structure"`
  37528. // The device name.
  37529. Device *string `type:"string"`
  37530. // Checks whether you have the required permissions for the action, without
  37531. // actually making the request, and provides an error response. If you have
  37532. // the required permissions, the error response is DryRunOperation. Otherwise,
  37533. // it is UnauthorizedOperation.
  37534. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37535. // Forces detachment if the previous detachment attempt did not occur cleanly
  37536. // (for example, logging into an instance, unmounting the volume, and detaching
  37537. // normally). This option can lead to data loss or a corrupted file system.
  37538. // Use this option only as a last resort to detach a volume from a failed instance.
  37539. // The instance won't have an opportunity to flush file system caches or file
  37540. // system metadata. If you use this option, you must perform file system check
  37541. // and repair procedures.
  37542. Force *bool `type:"boolean"`
  37543. // The ID of the instance.
  37544. InstanceId *string `type:"string"`
  37545. // The ID of the volume.
  37546. //
  37547. // VolumeId is a required field
  37548. VolumeId *string `type:"string" required:"true"`
  37549. }
  37550. // String returns the string representation
  37551. func (s DetachVolumeInput) String() string {
  37552. return awsutil.Prettify(s)
  37553. }
  37554. // GoString returns the string representation
  37555. func (s DetachVolumeInput) GoString() string {
  37556. return s.String()
  37557. }
  37558. // Validate inspects the fields of the type to determine if they are valid.
  37559. func (s *DetachVolumeInput) Validate() error {
  37560. invalidParams := request.ErrInvalidParams{Context: "DetachVolumeInput"}
  37561. if s.VolumeId == nil {
  37562. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  37563. }
  37564. if invalidParams.Len() > 0 {
  37565. return invalidParams
  37566. }
  37567. return nil
  37568. }
  37569. // SetDevice sets the Device field's value.
  37570. func (s *DetachVolumeInput) SetDevice(v string) *DetachVolumeInput {
  37571. s.Device = &v
  37572. return s
  37573. }
  37574. // SetDryRun sets the DryRun field's value.
  37575. func (s *DetachVolumeInput) SetDryRun(v bool) *DetachVolumeInput {
  37576. s.DryRun = &v
  37577. return s
  37578. }
  37579. // SetForce sets the Force field's value.
  37580. func (s *DetachVolumeInput) SetForce(v bool) *DetachVolumeInput {
  37581. s.Force = &v
  37582. return s
  37583. }
  37584. // SetInstanceId sets the InstanceId field's value.
  37585. func (s *DetachVolumeInput) SetInstanceId(v string) *DetachVolumeInput {
  37586. s.InstanceId = &v
  37587. return s
  37588. }
  37589. // SetVolumeId sets the VolumeId field's value.
  37590. func (s *DetachVolumeInput) SetVolumeId(v string) *DetachVolumeInput {
  37591. s.VolumeId = &v
  37592. return s
  37593. }
  37594. // Contains the parameters for DetachVpnGateway.
  37595. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGatewayRequest
  37596. type DetachVpnGatewayInput struct {
  37597. _ struct{} `type:"structure"`
  37598. // Checks whether you have the required permissions for the action, without
  37599. // actually making the request, and provides an error response. If you have
  37600. // the required permissions, the error response is DryRunOperation. Otherwise,
  37601. // it is UnauthorizedOperation.
  37602. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37603. // The ID of the VPC.
  37604. //
  37605. // VpcId is a required field
  37606. VpcId *string `type:"string" required:"true"`
  37607. // The ID of the virtual private gateway.
  37608. //
  37609. // VpnGatewayId is a required field
  37610. VpnGatewayId *string `type:"string" required:"true"`
  37611. }
  37612. // String returns the string representation
  37613. func (s DetachVpnGatewayInput) String() string {
  37614. return awsutil.Prettify(s)
  37615. }
  37616. // GoString returns the string representation
  37617. func (s DetachVpnGatewayInput) GoString() string {
  37618. return s.String()
  37619. }
  37620. // Validate inspects the fields of the type to determine if they are valid.
  37621. func (s *DetachVpnGatewayInput) Validate() error {
  37622. invalidParams := request.ErrInvalidParams{Context: "DetachVpnGatewayInput"}
  37623. if s.VpcId == nil {
  37624. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  37625. }
  37626. if s.VpnGatewayId == nil {
  37627. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  37628. }
  37629. if invalidParams.Len() > 0 {
  37630. return invalidParams
  37631. }
  37632. return nil
  37633. }
  37634. // SetDryRun sets the DryRun field's value.
  37635. func (s *DetachVpnGatewayInput) SetDryRun(v bool) *DetachVpnGatewayInput {
  37636. s.DryRun = &v
  37637. return s
  37638. }
  37639. // SetVpcId sets the VpcId field's value.
  37640. func (s *DetachVpnGatewayInput) SetVpcId(v string) *DetachVpnGatewayInput {
  37641. s.VpcId = &v
  37642. return s
  37643. }
  37644. // SetVpnGatewayId sets the VpnGatewayId field's value.
  37645. func (s *DetachVpnGatewayInput) SetVpnGatewayId(v string) *DetachVpnGatewayInput {
  37646. s.VpnGatewayId = &v
  37647. return s
  37648. }
  37649. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DetachVpnGatewayOutput
  37650. type DetachVpnGatewayOutput struct {
  37651. _ struct{} `type:"structure"`
  37652. }
  37653. // String returns the string representation
  37654. func (s DetachVpnGatewayOutput) String() string {
  37655. return awsutil.Prettify(s)
  37656. }
  37657. // GoString returns the string representation
  37658. func (s DetachVpnGatewayOutput) GoString() string {
  37659. return s.String()
  37660. }
  37661. // Describes a DHCP configuration option.
  37662. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DhcpConfiguration
  37663. type DhcpConfiguration struct {
  37664. _ struct{} `type:"structure"`
  37665. // The name of a DHCP option.
  37666. Key *string `locationName:"key" type:"string"`
  37667. // One or more values for the DHCP option.
  37668. Values []*AttributeValue `locationName:"valueSet" locationNameList:"item" type:"list"`
  37669. }
  37670. // String returns the string representation
  37671. func (s DhcpConfiguration) String() string {
  37672. return awsutil.Prettify(s)
  37673. }
  37674. // GoString returns the string representation
  37675. func (s DhcpConfiguration) GoString() string {
  37676. return s.String()
  37677. }
  37678. // SetKey sets the Key field's value.
  37679. func (s *DhcpConfiguration) SetKey(v string) *DhcpConfiguration {
  37680. s.Key = &v
  37681. return s
  37682. }
  37683. // SetValues sets the Values field's value.
  37684. func (s *DhcpConfiguration) SetValues(v []*AttributeValue) *DhcpConfiguration {
  37685. s.Values = v
  37686. return s
  37687. }
  37688. // Describes a set of DHCP options.
  37689. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DhcpOptions
  37690. type DhcpOptions struct {
  37691. _ struct{} `type:"structure"`
  37692. // One or more DHCP options in the set.
  37693. DhcpConfigurations []*DhcpConfiguration `locationName:"dhcpConfigurationSet" locationNameList:"item" type:"list"`
  37694. // The ID of the set of DHCP options.
  37695. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  37696. // Any tags assigned to the DHCP options set.
  37697. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  37698. }
  37699. // String returns the string representation
  37700. func (s DhcpOptions) String() string {
  37701. return awsutil.Prettify(s)
  37702. }
  37703. // GoString returns the string representation
  37704. func (s DhcpOptions) GoString() string {
  37705. return s.String()
  37706. }
  37707. // SetDhcpConfigurations sets the DhcpConfigurations field's value.
  37708. func (s *DhcpOptions) SetDhcpConfigurations(v []*DhcpConfiguration) *DhcpOptions {
  37709. s.DhcpConfigurations = v
  37710. return s
  37711. }
  37712. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  37713. func (s *DhcpOptions) SetDhcpOptionsId(v string) *DhcpOptions {
  37714. s.DhcpOptionsId = &v
  37715. return s
  37716. }
  37717. // SetTags sets the Tags field's value.
  37718. func (s *DhcpOptions) SetTags(v []*Tag) *DhcpOptions {
  37719. s.Tags = v
  37720. return s
  37721. }
  37722. // Contains the parameters for DisableVgwRoutePropagation.
  37723. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagationRequest
  37724. type DisableVgwRoutePropagationInput struct {
  37725. _ struct{} `type:"structure"`
  37726. // The ID of the virtual private gateway.
  37727. //
  37728. // GatewayId is a required field
  37729. GatewayId *string `type:"string" required:"true"`
  37730. // The ID of the route table.
  37731. //
  37732. // RouteTableId is a required field
  37733. RouteTableId *string `type:"string" required:"true"`
  37734. }
  37735. // String returns the string representation
  37736. func (s DisableVgwRoutePropagationInput) String() string {
  37737. return awsutil.Prettify(s)
  37738. }
  37739. // GoString returns the string representation
  37740. func (s DisableVgwRoutePropagationInput) GoString() string {
  37741. return s.String()
  37742. }
  37743. // Validate inspects the fields of the type to determine if they are valid.
  37744. func (s *DisableVgwRoutePropagationInput) Validate() error {
  37745. invalidParams := request.ErrInvalidParams{Context: "DisableVgwRoutePropagationInput"}
  37746. if s.GatewayId == nil {
  37747. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  37748. }
  37749. if s.RouteTableId == nil {
  37750. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  37751. }
  37752. if invalidParams.Len() > 0 {
  37753. return invalidParams
  37754. }
  37755. return nil
  37756. }
  37757. // SetGatewayId sets the GatewayId field's value.
  37758. func (s *DisableVgwRoutePropagationInput) SetGatewayId(v string) *DisableVgwRoutePropagationInput {
  37759. s.GatewayId = &v
  37760. return s
  37761. }
  37762. // SetRouteTableId sets the RouteTableId field's value.
  37763. func (s *DisableVgwRoutePropagationInput) SetRouteTableId(v string) *DisableVgwRoutePropagationInput {
  37764. s.RouteTableId = &v
  37765. return s
  37766. }
  37767. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVgwRoutePropagationOutput
  37768. type DisableVgwRoutePropagationOutput struct {
  37769. _ struct{} `type:"structure"`
  37770. }
  37771. // String returns the string representation
  37772. func (s DisableVgwRoutePropagationOutput) String() string {
  37773. return awsutil.Prettify(s)
  37774. }
  37775. // GoString returns the string representation
  37776. func (s DisableVgwRoutePropagationOutput) GoString() string {
  37777. return s.String()
  37778. }
  37779. // Contains the parameters for DisableVpcClassicLinkDnsSupport.
  37780. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupportRequest
  37781. type DisableVpcClassicLinkDnsSupportInput struct {
  37782. _ struct{} `type:"structure"`
  37783. // The ID of the VPC.
  37784. VpcId *string `type:"string"`
  37785. }
  37786. // String returns the string representation
  37787. func (s DisableVpcClassicLinkDnsSupportInput) String() string {
  37788. return awsutil.Prettify(s)
  37789. }
  37790. // GoString returns the string representation
  37791. func (s DisableVpcClassicLinkDnsSupportInput) GoString() string {
  37792. return s.String()
  37793. }
  37794. // SetVpcId sets the VpcId field's value.
  37795. func (s *DisableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *DisableVpcClassicLinkDnsSupportInput {
  37796. s.VpcId = &v
  37797. return s
  37798. }
  37799. // Contains the output of DisableVpcClassicLinkDnsSupport.
  37800. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkDnsSupportResult
  37801. type DisableVpcClassicLinkDnsSupportOutput struct {
  37802. _ struct{} `type:"structure"`
  37803. // Returns true if the request succeeds; otherwise, it returns an error.
  37804. Return *bool `locationName:"return" type:"boolean"`
  37805. }
  37806. // String returns the string representation
  37807. func (s DisableVpcClassicLinkDnsSupportOutput) String() string {
  37808. return awsutil.Prettify(s)
  37809. }
  37810. // GoString returns the string representation
  37811. func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string {
  37812. return s.String()
  37813. }
  37814. // SetReturn sets the Return field's value.
  37815. func (s *DisableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *DisableVpcClassicLinkDnsSupportOutput {
  37816. s.Return = &v
  37817. return s
  37818. }
  37819. // Contains the parameters for DisableVpcClassicLink.
  37820. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkRequest
  37821. type DisableVpcClassicLinkInput struct {
  37822. _ struct{} `type:"structure"`
  37823. // Checks whether you have the required permissions for the action, without
  37824. // actually making the request, and provides an error response. If you have
  37825. // the required permissions, the error response is DryRunOperation. Otherwise,
  37826. // it is UnauthorizedOperation.
  37827. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37828. // The ID of the VPC.
  37829. //
  37830. // VpcId is a required field
  37831. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  37832. }
  37833. // String returns the string representation
  37834. func (s DisableVpcClassicLinkInput) String() string {
  37835. return awsutil.Prettify(s)
  37836. }
  37837. // GoString returns the string representation
  37838. func (s DisableVpcClassicLinkInput) GoString() string {
  37839. return s.String()
  37840. }
  37841. // Validate inspects the fields of the type to determine if they are valid.
  37842. func (s *DisableVpcClassicLinkInput) Validate() error {
  37843. invalidParams := request.ErrInvalidParams{Context: "DisableVpcClassicLinkInput"}
  37844. if s.VpcId == nil {
  37845. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  37846. }
  37847. if invalidParams.Len() > 0 {
  37848. return invalidParams
  37849. }
  37850. return nil
  37851. }
  37852. // SetDryRun sets the DryRun field's value.
  37853. func (s *DisableVpcClassicLinkInput) SetDryRun(v bool) *DisableVpcClassicLinkInput {
  37854. s.DryRun = &v
  37855. return s
  37856. }
  37857. // SetVpcId sets the VpcId field's value.
  37858. func (s *DisableVpcClassicLinkInput) SetVpcId(v string) *DisableVpcClassicLinkInput {
  37859. s.VpcId = &v
  37860. return s
  37861. }
  37862. // Contains the output of DisableVpcClassicLink.
  37863. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableVpcClassicLinkResult
  37864. type DisableVpcClassicLinkOutput struct {
  37865. _ struct{} `type:"structure"`
  37866. // Returns true if the request succeeds; otherwise, it returns an error.
  37867. Return *bool `locationName:"return" type:"boolean"`
  37868. }
  37869. // String returns the string representation
  37870. func (s DisableVpcClassicLinkOutput) String() string {
  37871. return awsutil.Prettify(s)
  37872. }
  37873. // GoString returns the string representation
  37874. func (s DisableVpcClassicLinkOutput) GoString() string {
  37875. return s.String()
  37876. }
  37877. // SetReturn sets the Return field's value.
  37878. func (s *DisableVpcClassicLinkOutput) SetReturn(v bool) *DisableVpcClassicLinkOutput {
  37879. s.Return = &v
  37880. return s
  37881. }
  37882. // Contains the parameters for DisassociateAddress.
  37883. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddressRequest
  37884. type DisassociateAddressInput struct {
  37885. _ struct{} `type:"structure"`
  37886. // [EC2-VPC] The association ID. Required for EC2-VPC.
  37887. AssociationId *string `type:"string"`
  37888. // Checks whether you have the required permissions for the action, without
  37889. // actually making the request, and provides an error response. If you have
  37890. // the required permissions, the error response is DryRunOperation. Otherwise,
  37891. // it is UnauthorizedOperation.
  37892. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37893. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  37894. PublicIp *string `type:"string"`
  37895. }
  37896. // String returns the string representation
  37897. func (s DisassociateAddressInput) String() string {
  37898. return awsutil.Prettify(s)
  37899. }
  37900. // GoString returns the string representation
  37901. func (s DisassociateAddressInput) GoString() string {
  37902. return s.String()
  37903. }
  37904. // SetAssociationId sets the AssociationId field's value.
  37905. func (s *DisassociateAddressInput) SetAssociationId(v string) *DisassociateAddressInput {
  37906. s.AssociationId = &v
  37907. return s
  37908. }
  37909. // SetDryRun sets the DryRun field's value.
  37910. func (s *DisassociateAddressInput) SetDryRun(v bool) *DisassociateAddressInput {
  37911. s.DryRun = &v
  37912. return s
  37913. }
  37914. // SetPublicIp sets the PublicIp field's value.
  37915. func (s *DisassociateAddressInput) SetPublicIp(v string) *DisassociateAddressInput {
  37916. s.PublicIp = &v
  37917. return s
  37918. }
  37919. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateAddressOutput
  37920. type DisassociateAddressOutput struct {
  37921. _ struct{} `type:"structure"`
  37922. }
  37923. // String returns the string representation
  37924. func (s DisassociateAddressOutput) String() string {
  37925. return awsutil.Prettify(s)
  37926. }
  37927. // GoString returns the string representation
  37928. func (s DisassociateAddressOutput) GoString() string {
  37929. return s.String()
  37930. }
  37931. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfileRequest
  37932. type DisassociateIamInstanceProfileInput struct {
  37933. _ struct{} `type:"structure"`
  37934. // The ID of the IAM instance profile association.
  37935. //
  37936. // AssociationId is a required field
  37937. AssociationId *string `type:"string" required:"true"`
  37938. }
  37939. // String returns the string representation
  37940. func (s DisassociateIamInstanceProfileInput) String() string {
  37941. return awsutil.Prettify(s)
  37942. }
  37943. // GoString returns the string representation
  37944. func (s DisassociateIamInstanceProfileInput) GoString() string {
  37945. return s.String()
  37946. }
  37947. // Validate inspects the fields of the type to determine if they are valid.
  37948. func (s *DisassociateIamInstanceProfileInput) Validate() error {
  37949. invalidParams := request.ErrInvalidParams{Context: "DisassociateIamInstanceProfileInput"}
  37950. if s.AssociationId == nil {
  37951. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  37952. }
  37953. if invalidParams.Len() > 0 {
  37954. return invalidParams
  37955. }
  37956. return nil
  37957. }
  37958. // SetAssociationId sets the AssociationId field's value.
  37959. func (s *DisassociateIamInstanceProfileInput) SetAssociationId(v string) *DisassociateIamInstanceProfileInput {
  37960. s.AssociationId = &v
  37961. return s
  37962. }
  37963. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIamInstanceProfileResult
  37964. type DisassociateIamInstanceProfileOutput struct {
  37965. _ struct{} `type:"structure"`
  37966. // Information about the IAM instance profile association.
  37967. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  37968. }
  37969. // String returns the string representation
  37970. func (s DisassociateIamInstanceProfileOutput) String() string {
  37971. return awsutil.Prettify(s)
  37972. }
  37973. // GoString returns the string representation
  37974. func (s DisassociateIamInstanceProfileOutput) GoString() string {
  37975. return s.String()
  37976. }
  37977. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  37978. func (s *DisassociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *DisassociateIamInstanceProfileOutput {
  37979. s.IamInstanceProfileAssociation = v
  37980. return s
  37981. }
  37982. // Contains the parameters for DisassociateRouteTable.
  37983. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTableRequest
  37984. type DisassociateRouteTableInput struct {
  37985. _ struct{} `type:"structure"`
  37986. // The association ID representing the current association between the route
  37987. // table and subnet.
  37988. //
  37989. // AssociationId is a required field
  37990. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  37991. // Checks whether you have the required permissions for the action, without
  37992. // actually making the request, and provides an error response. If you have
  37993. // the required permissions, the error response is DryRunOperation. Otherwise,
  37994. // it is UnauthorizedOperation.
  37995. DryRun *bool `locationName:"dryRun" type:"boolean"`
  37996. }
  37997. // String returns the string representation
  37998. func (s DisassociateRouteTableInput) String() string {
  37999. return awsutil.Prettify(s)
  38000. }
  38001. // GoString returns the string representation
  38002. func (s DisassociateRouteTableInput) GoString() string {
  38003. return s.String()
  38004. }
  38005. // Validate inspects the fields of the type to determine if they are valid.
  38006. func (s *DisassociateRouteTableInput) Validate() error {
  38007. invalidParams := request.ErrInvalidParams{Context: "DisassociateRouteTableInput"}
  38008. if s.AssociationId == nil {
  38009. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  38010. }
  38011. if invalidParams.Len() > 0 {
  38012. return invalidParams
  38013. }
  38014. return nil
  38015. }
  38016. // SetAssociationId sets the AssociationId field's value.
  38017. func (s *DisassociateRouteTableInput) SetAssociationId(v string) *DisassociateRouteTableInput {
  38018. s.AssociationId = &v
  38019. return s
  38020. }
  38021. // SetDryRun sets the DryRun field's value.
  38022. func (s *DisassociateRouteTableInput) SetDryRun(v bool) *DisassociateRouteTableInput {
  38023. s.DryRun = &v
  38024. return s
  38025. }
  38026. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateRouteTableOutput
  38027. type DisassociateRouteTableOutput struct {
  38028. _ struct{} `type:"structure"`
  38029. }
  38030. // String returns the string representation
  38031. func (s DisassociateRouteTableOutput) String() string {
  38032. return awsutil.Prettify(s)
  38033. }
  38034. // GoString returns the string representation
  38035. func (s DisassociateRouteTableOutput) GoString() string {
  38036. return s.String()
  38037. }
  38038. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlockRequest
  38039. type DisassociateSubnetCidrBlockInput struct {
  38040. _ struct{} `type:"structure"`
  38041. // The association ID for the CIDR block.
  38042. //
  38043. // AssociationId is a required field
  38044. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  38045. }
  38046. // String returns the string representation
  38047. func (s DisassociateSubnetCidrBlockInput) String() string {
  38048. return awsutil.Prettify(s)
  38049. }
  38050. // GoString returns the string representation
  38051. func (s DisassociateSubnetCidrBlockInput) GoString() string {
  38052. return s.String()
  38053. }
  38054. // Validate inspects the fields of the type to determine if they are valid.
  38055. func (s *DisassociateSubnetCidrBlockInput) Validate() error {
  38056. invalidParams := request.ErrInvalidParams{Context: "DisassociateSubnetCidrBlockInput"}
  38057. if s.AssociationId == nil {
  38058. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  38059. }
  38060. if invalidParams.Len() > 0 {
  38061. return invalidParams
  38062. }
  38063. return nil
  38064. }
  38065. // SetAssociationId sets the AssociationId field's value.
  38066. func (s *DisassociateSubnetCidrBlockInput) SetAssociationId(v string) *DisassociateSubnetCidrBlockInput {
  38067. s.AssociationId = &v
  38068. return s
  38069. }
  38070. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateSubnetCidrBlockResult
  38071. type DisassociateSubnetCidrBlockOutput struct {
  38072. _ struct{} `type:"structure"`
  38073. // Information about the IPv6 CIDR block association.
  38074. Ipv6CidrBlockAssociation *SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  38075. // The ID of the subnet.
  38076. SubnetId *string `locationName:"subnetId" type:"string"`
  38077. }
  38078. // String returns the string representation
  38079. func (s DisassociateSubnetCidrBlockOutput) String() string {
  38080. return awsutil.Prettify(s)
  38081. }
  38082. // GoString returns the string representation
  38083. func (s DisassociateSubnetCidrBlockOutput) GoString() string {
  38084. return s.String()
  38085. }
  38086. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  38087. func (s *DisassociateSubnetCidrBlockOutput) SetIpv6CidrBlockAssociation(v *SubnetIpv6CidrBlockAssociation) *DisassociateSubnetCidrBlockOutput {
  38088. s.Ipv6CidrBlockAssociation = v
  38089. return s
  38090. }
  38091. // SetSubnetId sets the SubnetId field's value.
  38092. func (s *DisassociateSubnetCidrBlockOutput) SetSubnetId(v string) *DisassociateSubnetCidrBlockOutput {
  38093. s.SubnetId = &v
  38094. return s
  38095. }
  38096. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlockRequest
  38097. type DisassociateVpcCidrBlockInput struct {
  38098. _ struct{} `type:"structure"`
  38099. // The association ID for the CIDR block.
  38100. //
  38101. // AssociationId is a required field
  38102. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  38103. }
  38104. // String returns the string representation
  38105. func (s DisassociateVpcCidrBlockInput) String() string {
  38106. return awsutil.Prettify(s)
  38107. }
  38108. // GoString returns the string representation
  38109. func (s DisassociateVpcCidrBlockInput) GoString() string {
  38110. return s.String()
  38111. }
  38112. // Validate inspects the fields of the type to determine if they are valid.
  38113. func (s *DisassociateVpcCidrBlockInput) Validate() error {
  38114. invalidParams := request.ErrInvalidParams{Context: "DisassociateVpcCidrBlockInput"}
  38115. if s.AssociationId == nil {
  38116. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  38117. }
  38118. if invalidParams.Len() > 0 {
  38119. return invalidParams
  38120. }
  38121. return nil
  38122. }
  38123. // SetAssociationId sets the AssociationId field's value.
  38124. func (s *DisassociateVpcCidrBlockInput) SetAssociationId(v string) *DisassociateVpcCidrBlockInput {
  38125. s.AssociationId = &v
  38126. return s
  38127. }
  38128. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateVpcCidrBlockResult
  38129. type DisassociateVpcCidrBlockOutput struct {
  38130. _ struct{} `type:"structure"`
  38131. // Information about the IPv4 CIDR block association.
  38132. CidrBlockAssociation *VpcCidrBlockAssociation `locationName:"cidrBlockAssociation" type:"structure"`
  38133. // Information about the IPv6 CIDR block association.
  38134. Ipv6CidrBlockAssociation *VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociation" type:"structure"`
  38135. // The ID of the VPC.
  38136. VpcId *string `locationName:"vpcId" type:"string"`
  38137. }
  38138. // String returns the string representation
  38139. func (s DisassociateVpcCidrBlockOutput) String() string {
  38140. return awsutil.Prettify(s)
  38141. }
  38142. // GoString returns the string representation
  38143. func (s DisassociateVpcCidrBlockOutput) GoString() string {
  38144. return s.String()
  38145. }
  38146. // SetCidrBlockAssociation sets the CidrBlockAssociation field's value.
  38147. func (s *DisassociateVpcCidrBlockOutput) SetCidrBlockAssociation(v *VpcCidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  38148. s.CidrBlockAssociation = v
  38149. return s
  38150. }
  38151. // SetIpv6CidrBlockAssociation sets the Ipv6CidrBlockAssociation field's value.
  38152. func (s *DisassociateVpcCidrBlockOutput) SetIpv6CidrBlockAssociation(v *VpcIpv6CidrBlockAssociation) *DisassociateVpcCidrBlockOutput {
  38153. s.Ipv6CidrBlockAssociation = v
  38154. return s
  38155. }
  38156. // SetVpcId sets the VpcId field's value.
  38157. func (s *DisassociateVpcCidrBlockOutput) SetVpcId(v string) *DisassociateVpcCidrBlockOutput {
  38158. s.VpcId = &v
  38159. return s
  38160. }
  38161. // Describes a disk image.
  38162. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImage
  38163. type DiskImage struct {
  38164. _ struct{} `type:"structure"`
  38165. // A description of the disk image.
  38166. Description *string `type:"string"`
  38167. // Information about the disk image.
  38168. Image *DiskImageDetail `type:"structure"`
  38169. // Information about the volume.
  38170. Volume *VolumeDetail `type:"structure"`
  38171. }
  38172. // String returns the string representation
  38173. func (s DiskImage) String() string {
  38174. return awsutil.Prettify(s)
  38175. }
  38176. // GoString returns the string representation
  38177. func (s DiskImage) GoString() string {
  38178. return s.String()
  38179. }
  38180. // Validate inspects the fields of the type to determine if they are valid.
  38181. func (s *DiskImage) Validate() error {
  38182. invalidParams := request.ErrInvalidParams{Context: "DiskImage"}
  38183. if s.Image != nil {
  38184. if err := s.Image.Validate(); err != nil {
  38185. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  38186. }
  38187. }
  38188. if s.Volume != nil {
  38189. if err := s.Volume.Validate(); err != nil {
  38190. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  38191. }
  38192. }
  38193. if invalidParams.Len() > 0 {
  38194. return invalidParams
  38195. }
  38196. return nil
  38197. }
  38198. // SetDescription sets the Description field's value.
  38199. func (s *DiskImage) SetDescription(v string) *DiskImage {
  38200. s.Description = &v
  38201. return s
  38202. }
  38203. // SetImage sets the Image field's value.
  38204. func (s *DiskImage) SetImage(v *DiskImageDetail) *DiskImage {
  38205. s.Image = v
  38206. return s
  38207. }
  38208. // SetVolume sets the Volume field's value.
  38209. func (s *DiskImage) SetVolume(v *VolumeDetail) *DiskImage {
  38210. s.Volume = v
  38211. return s
  38212. }
  38213. // Describes a disk image.
  38214. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageDescription
  38215. type DiskImageDescription struct {
  38216. _ struct{} `type:"structure"`
  38217. // The checksum computed for the disk image.
  38218. Checksum *string `locationName:"checksum" type:"string"`
  38219. // The disk image format.
  38220. //
  38221. // Format is a required field
  38222. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  38223. // A presigned URL for the import manifest stored in Amazon S3. For information
  38224. // about creating a presigned URL for an Amazon S3 object, read the "Query String
  38225. // Request Authentication Alternative" section of the Authenticating REST Requests
  38226. // (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  38227. // topic in the Amazon Simple Storage Service Developer Guide.
  38228. //
  38229. // For information about the import manifest referenced by this API action,
  38230. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  38231. //
  38232. // ImportManifestUrl is a required field
  38233. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  38234. // The size of the disk image, in GiB.
  38235. //
  38236. // Size is a required field
  38237. Size *int64 `locationName:"size" type:"long" required:"true"`
  38238. }
  38239. // String returns the string representation
  38240. func (s DiskImageDescription) String() string {
  38241. return awsutil.Prettify(s)
  38242. }
  38243. // GoString returns the string representation
  38244. func (s DiskImageDescription) GoString() string {
  38245. return s.String()
  38246. }
  38247. // SetChecksum sets the Checksum field's value.
  38248. func (s *DiskImageDescription) SetChecksum(v string) *DiskImageDescription {
  38249. s.Checksum = &v
  38250. return s
  38251. }
  38252. // SetFormat sets the Format field's value.
  38253. func (s *DiskImageDescription) SetFormat(v string) *DiskImageDescription {
  38254. s.Format = &v
  38255. return s
  38256. }
  38257. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  38258. func (s *DiskImageDescription) SetImportManifestUrl(v string) *DiskImageDescription {
  38259. s.ImportManifestUrl = &v
  38260. return s
  38261. }
  38262. // SetSize sets the Size field's value.
  38263. func (s *DiskImageDescription) SetSize(v int64) *DiskImageDescription {
  38264. s.Size = &v
  38265. return s
  38266. }
  38267. // Describes a disk image.
  38268. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageDetail
  38269. type DiskImageDetail struct {
  38270. _ struct{} `type:"structure"`
  38271. // The size of the disk image, in GiB.
  38272. //
  38273. // Bytes is a required field
  38274. Bytes *int64 `locationName:"bytes" type:"long" required:"true"`
  38275. // The disk image format.
  38276. //
  38277. // Format is a required field
  38278. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  38279. // A presigned URL for the import manifest stored in Amazon S3 and presented
  38280. // here as an Amazon S3 presigned URL. For information about creating a presigned
  38281. // URL for an Amazon S3 object, read the "Query String Request Authentication
  38282. // Alternative" section of the Authenticating REST Requests (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  38283. // topic in the Amazon Simple Storage Service Developer Guide.
  38284. //
  38285. // For information about the import manifest referenced by this API action,
  38286. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  38287. //
  38288. // ImportManifestUrl is a required field
  38289. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  38290. }
  38291. // String returns the string representation
  38292. func (s DiskImageDetail) String() string {
  38293. return awsutil.Prettify(s)
  38294. }
  38295. // GoString returns the string representation
  38296. func (s DiskImageDetail) GoString() string {
  38297. return s.String()
  38298. }
  38299. // Validate inspects the fields of the type to determine if they are valid.
  38300. func (s *DiskImageDetail) Validate() error {
  38301. invalidParams := request.ErrInvalidParams{Context: "DiskImageDetail"}
  38302. if s.Bytes == nil {
  38303. invalidParams.Add(request.NewErrParamRequired("Bytes"))
  38304. }
  38305. if s.Format == nil {
  38306. invalidParams.Add(request.NewErrParamRequired("Format"))
  38307. }
  38308. if s.ImportManifestUrl == nil {
  38309. invalidParams.Add(request.NewErrParamRequired("ImportManifestUrl"))
  38310. }
  38311. if invalidParams.Len() > 0 {
  38312. return invalidParams
  38313. }
  38314. return nil
  38315. }
  38316. // SetBytes sets the Bytes field's value.
  38317. func (s *DiskImageDetail) SetBytes(v int64) *DiskImageDetail {
  38318. s.Bytes = &v
  38319. return s
  38320. }
  38321. // SetFormat sets the Format field's value.
  38322. func (s *DiskImageDetail) SetFormat(v string) *DiskImageDetail {
  38323. s.Format = &v
  38324. return s
  38325. }
  38326. // SetImportManifestUrl sets the ImportManifestUrl field's value.
  38327. func (s *DiskImageDetail) SetImportManifestUrl(v string) *DiskImageDetail {
  38328. s.ImportManifestUrl = &v
  38329. return s
  38330. }
  38331. // Describes a disk image volume.
  38332. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DiskImageVolumeDescription
  38333. type DiskImageVolumeDescription struct {
  38334. _ struct{} `type:"structure"`
  38335. // The volume identifier.
  38336. //
  38337. // Id is a required field
  38338. Id *string `locationName:"id" type:"string" required:"true"`
  38339. // The size of the volume, in GiB.
  38340. Size *int64 `locationName:"size" type:"long"`
  38341. }
  38342. // String returns the string representation
  38343. func (s DiskImageVolumeDescription) String() string {
  38344. return awsutil.Prettify(s)
  38345. }
  38346. // GoString returns the string representation
  38347. func (s DiskImageVolumeDescription) GoString() string {
  38348. return s.String()
  38349. }
  38350. // SetId sets the Id field's value.
  38351. func (s *DiskImageVolumeDescription) SetId(v string) *DiskImageVolumeDescription {
  38352. s.Id = &v
  38353. return s
  38354. }
  38355. // SetSize sets the Size field's value.
  38356. func (s *DiskImageVolumeDescription) SetSize(v int64) *DiskImageVolumeDescription {
  38357. s.Size = &v
  38358. return s
  38359. }
  38360. // Describes a DNS entry.
  38361. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DnsEntry
  38362. type DnsEntry struct {
  38363. _ struct{} `type:"structure"`
  38364. // The DNS name.
  38365. DnsName *string `locationName:"dnsName" type:"string"`
  38366. // The ID of the private hosted zone.
  38367. HostedZoneId *string `locationName:"hostedZoneId" type:"string"`
  38368. }
  38369. // String returns the string representation
  38370. func (s DnsEntry) String() string {
  38371. return awsutil.Prettify(s)
  38372. }
  38373. // GoString returns the string representation
  38374. func (s DnsEntry) GoString() string {
  38375. return s.String()
  38376. }
  38377. // SetDnsName sets the DnsName field's value.
  38378. func (s *DnsEntry) SetDnsName(v string) *DnsEntry {
  38379. s.DnsName = &v
  38380. return s
  38381. }
  38382. // SetHostedZoneId sets the HostedZoneId field's value.
  38383. func (s *DnsEntry) SetHostedZoneId(v string) *DnsEntry {
  38384. s.HostedZoneId = &v
  38385. return s
  38386. }
  38387. // Describes a block device for an EBS volume.
  38388. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsBlockDevice
  38389. type EbsBlockDevice struct {
  38390. _ struct{} `type:"structure"`
  38391. // Indicates whether the EBS volume is deleted on instance termination.
  38392. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  38393. // Indicates whether the EBS volume is encrypted. Encrypted volumes can only
  38394. // be attached to instances that support Amazon EBS encryption. If you are creating
  38395. // a volume from a snapshot, you can't specify an encryption value. This is
  38396. // because only blank volumes can be encrypted on creation.
  38397. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  38398. // The number of I/O operations per second (IOPS) that the volume supports.
  38399. // For io1, this represents the number of IOPS that are provisioned for the
  38400. // volume. For gp2, this represents the baseline performance of the volume and
  38401. // the rate at which the volume accumulates I/O credits for bursting. For more
  38402. // information about General Purpose SSD baseline performance, I/O credits,
  38403. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  38404. // in the Amazon Elastic Compute Cloud User Guide.
  38405. //
  38406. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  38407. // gp2 volumes.
  38408. //
  38409. // Condition: This parameter is required for requests to create io1 volumes;
  38410. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  38411. Iops *int64 `locationName:"iops" type:"integer"`
  38412. // ID for a user-managed CMK under which the EBS volume is encrypted.
  38413. //
  38414. // Note: This parameter is only supported on BlockDeviceMapping objects called
  38415. // by RunInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html),
  38416. // RequestSpotFleet (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html),
  38417. // and RequestSpotInstances (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html).
  38418. KmsKeyId *string `type:"string"`
  38419. // The ID of the snapshot.
  38420. SnapshotId *string `locationName:"snapshotId" type:"string"`
  38421. // The size of the volume, in GiB.
  38422. //
  38423. // Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned
  38424. // IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for
  38425. // Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify
  38426. // a snapshot, the volume size must be equal to or larger than the snapshot
  38427. // size.
  38428. //
  38429. // Default: If you're creating the volume from a snapshot and don't specify
  38430. // a volume size, the default is the snapshot size.
  38431. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  38432. // The volume type: gp2, io1, st1, sc1, or standard.
  38433. //
  38434. // Default: standard
  38435. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  38436. }
  38437. // String returns the string representation
  38438. func (s EbsBlockDevice) String() string {
  38439. return awsutil.Prettify(s)
  38440. }
  38441. // GoString returns the string representation
  38442. func (s EbsBlockDevice) GoString() string {
  38443. return s.String()
  38444. }
  38445. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  38446. func (s *EbsBlockDevice) SetDeleteOnTermination(v bool) *EbsBlockDevice {
  38447. s.DeleteOnTermination = &v
  38448. return s
  38449. }
  38450. // SetEncrypted sets the Encrypted field's value.
  38451. func (s *EbsBlockDevice) SetEncrypted(v bool) *EbsBlockDevice {
  38452. s.Encrypted = &v
  38453. return s
  38454. }
  38455. // SetIops sets the Iops field's value.
  38456. func (s *EbsBlockDevice) SetIops(v int64) *EbsBlockDevice {
  38457. s.Iops = &v
  38458. return s
  38459. }
  38460. // SetKmsKeyId sets the KmsKeyId field's value.
  38461. func (s *EbsBlockDevice) SetKmsKeyId(v string) *EbsBlockDevice {
  38462. s.KmsKeyId = &v
  38463. return s
  38464. }
  38465. // SetSnapshotId sets the SnapshotId field's value.
  38466. func (s *EbsBlockDevice) SetSnapshotId(v string) *EbsBlockDevice {
  38467. s.SnapshotId = &v
  38468. return s
  38469. }
  38470. // SetVolumeSize sets the VolumeSize field's value.
  38471. func (s *EbsBlockDevice) SetVolumeSize(v int64) *EbsBlockDevice {
  38472. s.VolumeSize = &v
  38473. return s
  38474. }
  38475. // SetVolumeType sets the VolumeType field's value.
  38476. func (s *EbsBlockDevice) SetVolumeType(v string) *EbsBlockDevice {
  38477. s.VolumeType = &v
  38478. return s
  38479. }
  38480. // Describes a parameter used to set up an EBS volume in a block device mapping.
  38481. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsInstanceBlockDevice
  38482. type EbsInstanceBlockDevice struct {
  38483. _ struct{} `type:"structure"`
  38484. // The time stamp when the attachment initiated.
  38485. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  38486. // Indicates whether the volume is deleted on instance termination.
  38487. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  38488. // The attachment state.
  38489. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  38490. // The ID of the EBS volume.
  38491. VolumeId *string `locationName:"volumeId" type:"string"`
  38492. }
  38493. // String returns the string representation
  38494. func (s EbsInstanceBlockDevice) String() string {
  38495. return awsutil.Prettify(s)
  38496. }
  38497. // GoString returns the string representation
  38498. func (s EbsInstanceBlockDevice) GoString() string {
  38499. return s.String()
  38500. }
  38501. // SetAttachTime sets the AttachTime field's value.
  38502. func (s *EbsInstanceBlockDevice) SetAttachTime(v time.Time) *EbsInstanceBlockDevice {
  38503. s.AttachTime = &v
  38504. return s
  38505. }
  38506. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  38507. func (s *EbsInstanceBlockDevice) SetDeleteOnTermination(v bool) *EbsInstanceBlockDevice {
  38508. s.DeleteOnTermination = &v
  38509. return s
  38510. }
  38511. // SetStatus sets the Status field's value.
  38512. func (s *EbsInstanceBlockDevice) SetStatus(v string) *EbsInstanceBlockDevice {
  38513. s.Status = &v
  38514. return s
  38515. }
  38516. // SetVolumeId sets the VolumeId field's value.
  38517. func (s *EbsInstanceBlockDevice) SetVolumeId(v string) *EbsInstanceBlockDevice {
  38518. s.VolumeId = &v
  38519. return s
  38520. }
  38521. // Describes information used to set up an EBS volume specified in a block device
  38522. // mapping.
  38523. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsInstanceBlockDeviceSpecification
  38524. type EbsInstanceBlockDeviceSpecification struct {
  38525. _ struct{} `type:"structure"`
  38526. // Indicates whether the volume is deleted on instance termination.
  38527. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  38528. // The ID of the EBS volume.
  38529. VolumeId *string `locationName:"volumeId" type:"string"`
  38530. }
  38531. // String returns the string representation
  38532. func (s EbsInstanceBlockDeviceSpecification) String() string {
  38533. return awsutil.Prettify(s)
  38534. }
  38535. // GoString returns the string representation
  38536. func (s EbsInstanceBlockDeviceSpecification) GoString() string {
  38537. return s.String()
  38538. }
  38539. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  38540. func (s *EbsInstanceBlockDeviceSpecification) SetDeleteOnTermination(v bool) *EbsInstanceBlockDeviceSpecification {
  38541. s.DeleteOnTermination = &v
  38542. return s
  38543. }
  38544. // SetVolumeId sets the VolumeId field's value.
  38545. func (s *EbsInstanceBlockDeviceSpecification) SetVolumeId(v string) *EbsInstanceBlockDeviceSpecification {
  38546. s.VolumeId = &v
  38547. return s
  38548. }
  38549. // Describes an egress-only Internet gateway.
  38550. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EgressOnlyInternetGateway
  38551. type EgressOnlyInternetGateway struct {
  38552. _ struct{} `type:"structure"`
  38553. // Information about the attachment of the egress-only Internet gateway.
  38554. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  38555. // The ID of the egress-only Internet gateway.
  38556. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  38557. }
  38558. // String returns the string representation
  38559. func (s EgressOnlyInternetGateway) String() string {
  38560. return awsutil.Prettify(s)
  38561. }
  38562. // GoString returns the string representation
  38563. func (s EgressOnlyInternetGateway) GoString() string {
  38564. return s.String()
  38565. }
  38566. // SetAttachments sets the Attachments field's value.
  38567. func (s *EgressOnlyInternetGateway) SetAttachments(v []*InternetGatewayAttachment) *EgressOnlyInternetGateway {
  38568. s.Attachments = v
  38569. return s
  38570. }
  38571. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  38572. func (s *EgressOnlyInternetGateway) SetEgressOnlyInternetGatewayId(v string) *EgressOnlyInternetGateway {
  38573. s.EgressOnlyInternetGatewayId = &v
  38574. return s
  38575. }
  38576. // Describes the association between an instance and an Elastic GPU.
  38577. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ElasticGpuAssociation
  38578. type ElasticGpuAssociation struct {
  38579. _ struct{} `type:"structure"`
  38580. // The ID of the association.
  38581. ElasticGpuAssociationId *string `locationName:"elasticGpuAssociationId" type:"string"`
  38582. // The state of the association between the instance and the Elastic GPU.
  38583. ElasticGpuAssociationState *string `locationName:"elasticGpuAssociationState" type:"string"`
  38584. // The time the Elastic GPU was associated with the instance.
  38585. ElasticGpuAssociationTime *string `locationName:"elasticGpuAssociationTime" type:"string"`
  38586. // The ID of the Elastic GPU.
  38587. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
  38588. }
  38589. // String returns the string representation
  38590. func (s ElasticGpuAssociation) String() string {
  38591. return awsutil.Prettify(s)
  38592. }
  38593. // GoString returns the string representation
  38594. func (s ElasticGpuAssociation) GoString() string {
  38595. return s.String()
  38596. }
  38597. // SetElasticGpuAssociationId sets the ElasticGpuAssociationId field's value.
  38598. func (s *ElasticGpuAssociation) SetElasticGpuAssociationId(v string) *ElasticGpuAssociation {
  38599. s.ElasticGpuAssociationId = &v
  38600. return s
  38601. }
  38602. // SetElasticGpuAssociationState sets the ElasticGpuAssociationState field's value.
  38603. func (s *ElasticGpuAssociation) SetElasticGpuAssociationState(v string) *ElasticGpuAssociation {
  38604. s.ElasticGpuAssociationState = &v
  38605. return s
  38606. }
  38607. // SetElasticGpuAssociationTime sets the ElasticGpuAssociationTime field's value.
  38608. func (s *ElasticGpuAssociation) SetElasticGpuAssociationTime(v string) *ElasticGpuAssociation {
  38609. s.ElasticGpuAssociationTime = &v
  38610. return s
  38611. }
  38612. // SetElasticGpuId sets the ElasticGpuId field's value.
  38613. func (s *ElasticGpuAssociation) SetElasticGpuId(v string) *ElasticGpuAssociation {
  38614. s.ElasticGpuId = &v
  38615. return s
  38616. }
  38617. // Describes the status of an Elastic GPU.
  38618. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ElasticGpuHealth
  38619. type ElasticGpuHealth struct {
  38620. _ struct{} `type:"structure"`
  38621. // The health status.
  38622. Status *string `locationName:"status" type:"string" enum:"ElasticGpuStatus"`
  38623. }
  38624. // String returns the string representation
  38625. func (s ElasticGpuHealth) String() string {
  38626. return awsutil.Prettify(s)
  38627. }
  38628. // GoString returns the string representation
  38629. func (s ElasticGpuHealth) GoString() string {
  38630. return s.String()
  38631. }
  38632. // SetStatus sets the Status field's value.
  38633. func (s *ElasticGpuHealth) SetStatus(v string) *ElasticGpuHealth {
  38634. s.Status = &v
  38635. return s
  38636. }
  38637. // A specification for an Elastic GPU.
  38638. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ElasticGpuSpecification
  38639. type ElasticGpuSpecification struct {
  38640. _ struct{} `type:"structure"`
  38641. // The type of Elastic GPU.
  38642. //
  38643. // Type is a required field
  38644. Type *string `type:"string" required:"true"`
  38645. }
  38646. // String returns the string representation
  38647. func (s ElasticGpuSpecification) String() string {
  38648. return awsutil.Prettify(s)
  38649. }
  38650. // GoString returns the string representation
  38651. func (s ElasticGpuSpecification) GoString() string {
  38652. return s.String()
  38653. }
  38654. // Validate inspects the fields of the type to determine if they are valid.
  38655. func (s *ElasticGpuSpecification) Validate() error {
  38656. invalidParams := request.ErrInvalidParams{Context: "ElasticGpuSpecification"}
  38657. if s.Type == nil {
  38658. invalidParams.Add(request.NewErrParamRequired("Type"))
  38659. }
  38660. if invalidParams.Len() > 0 {
  38661. return invalidParams
  38662. }
  38663. return nil
  38664. }
  38665. // SetType sets the Type field's value.
  38666. func (s *ElasticGpuSpecification) SetType(v string) *ElasticGpuSpecification {
  38667. s.Type = &v
  38668. return s
  38669. }
  38670. // Describes an elastic GPU.
  38671. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ElasticGpuSpecificationResponse
  38672. type ElasticGpuSpecificationResponse struct {
  38673. _ struct{} `type:"structure"`
  38674. // The elastic GPU type.
  38675. Type *string `locationName:"type" type:"string"`
  38676. }
  38677. // String returns the string representation
  38678. func (s ElasticGpuSpecificationResponse) String() string {
  38679. return awsutil.Prettify(s)
  38680. }
  38681. // GoString returns the string representation
  38682. func (s ElasticGpuSpecificationResponse) GoString() string {
  38683. return s.String()
  38684. }
  38685. // SetType sets the Type field's value.
  38686. func (s *ElasticGpuSpecificationResponse) SetType(v string) *ElasticGpuSpecificationResponse {
  38687. s.Type = &v
  38688. return s
  38689. }
  38690. // Describes an Elastic GPU.
  38691. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ElasticGpus
  38692. type ElasticGpus struct {
  38693. _ struct{} `type:"structure"`
  38694. // The Availability Zone in the which the Elastic GPU resides.
  38695. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  38696. // The status of the Elastic GPU.
  38697. ElasticGpuHealth *ElasticGpuHealth `locationName:"elasticGpuHealth" type:"structure"`
  38698. // The ID of the Elastic GPU.
  38699. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"`
  38700. // The state of the Elastic GPU.
  38701. ElasticGpuState *string `locationName:"elasticGpuState" type:"string" enum:"ElasticGpuState"`
  38702. // The type of Elastic GPU.
  38703. ElasticGpuType *string `locationName:"elasticGpuType" type:"string"`
  38704. // The ID of the instance to which the Elastic GPU is attached.
  38705. InstanceId *string `locationName:"instanceId" type:"string"`
  38706. }
  38707. // String returns the string representation
  38708. func (s ElasticGpus) String() string {
  38709. return awsutil.Prettify(s)
  38710. }
  38711. // GoString returns the string representation
  38712. func (s ElasticGpus) GoString() string {
  38713. return s.String()
  38714. }
  38715. // SetAvailabilityZone sets the AvailabilityZone field's value.
  38716. func (s *ElasticGpus) SetAvailabilityZone(v string) *ElasticGpus {
  38717. s.AvailabilityZone = &v
  38718. return s
  38719. }
  38720. // SetElasticGpuHealth sets the ElasticGpuHealth field's value.
  38721. func (s *ElasticGpus) SetElasticGpuHealth(v *ElasticGpuHealth) *ElasticGpus {
  38722. s.ElasticGpuHealth = v
  38723. return s
  38724. }
  38725. // SetElasticGpuId sets the ElasticGpuId field's value.
  38726. func (s *ElasticGpus) SetElasticGpuId(v string) *ElasticGpus {
  38727. s.ElasticGpuId = &v
  38728. return s
  38729. }
  38730. // SetElasticGpuState sets the ElasticGpuState field's value.
  38731. func (s *ElasticGpus) SetElasticGpuState(v string) *ElasticGpus {
  38732. s.ElasticGpuState = &v
  38733. return s
  38734. }
  38735. // SetElasticGpuType sets the ElasticGpuType field's value.
  38736. func (s *ElasticGpus) SetElasticGpuType(v string) *ElasticGpus {
  38737. s.ElasticGpuType = &v
  38738. return s
  38739. }
  38740. // SetInstanceId sets the InstanceId field's value.
  38741. func (s *ElasticGpus) SetInstanceId(v string) *ElasticGpus {
  38742. s.InstanceId = &v
  38743. return s
  38744. }
  38745. // Contains the parameters for EnableVgwRoutePropagation.
  38746. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagationRequest
  38747. type EnableVgwRoutePropagationInput struct {
  38748. _ struct{} `type:"structure"`
  38749. // The ID of the virtual private gateway.
  38750. //
  38751. // GatewayId is a required field
  38752. GatewayId *string `type:"string" required:"true"`
  38753. // The ID of the route table.
  38754. //
  38755. // RouteTableId is a required field
  38756. RouteTableId *string `type:"string" required:"true"`
  38757. }
  38758. // String returns the string representation
  38759. func (s EnableVgwRoutePropagationInput) String() string {
  38760. return awsutil.Prettify(s)
  38761. }
  38762. // GoString returns the string representation
  38763. func (s EnableVgwRoutePropagationInput) GoString() string {
  38764. return s.String()
  38765. }
  38766. // Validate inspects the fields of the type to determine if they are valid.
  38767. func (s *EnableVgwRoutePropagationInput) Validate() error {
  38768. invalidParams := request.ErrInvalidParams{Context: "EnableVgwRoutePropagationInput"}
  38769. if s.GatewayId == nil {
  38770. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  38771. }
  38772. if s.RouteTableId == nil {
  38773. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  38774. }
  38775. if invalidParams.Len() > 0 {
  38776. return invalidParams
  38777. }
  38778. return nil
  38779. }
  38780. // SetGatewayId sets the GatewayId field's value.
  38781. func (s *EnableVgwRoutePropagationInput) SetGatewayId(v string) *EnableVgwRoutePropagationInput {
  38782. s.GatewayId = &v
  38783. return s
  38784. }
  38785. // SetRouteTableId sets the RouteTableId field's value.
  38786. func (s *EnableVgwRoutePropagationInput) SetRouteTableId(v string) *EnableVgwRoutePropagationInput {
  38787. s.RouteTableId = &v
  38788. return s
  38789. }
  38790. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVgwRoutePropagationOutput
  38791. type EnableVgwRoutePropagationOutput struct {
  38792. _ struct{} `type:"structure"`
  38793. }
  38794. // String returns the string representation
  38795. func (s EnableVgwRoutePropagationOutput) String() string {
  38796. return awsutil.Prettify(s)
  38797. }
  38798. // GoString returns the string representation
  38799. func (s EnableVgwRoutePropagationOutput) GoString() string {
  38800. return s.String()
  38801. }
  38802. // Contains the parameters for EnableVolumeIO.
  38803. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIORequest
  38804. type EnableVolumeIOInput struct {
  38805. _ struct{} `type:"structure"`
  38806. // Checks whether you have the required permissions for the action, without
  38807. // actually making the request, and provides an error response. If you have
  38808. // the required permissions, the error response is DryRunOperation. Otherwise,
  38809. // it is UnauthorizedOperation.
  38810. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38811. // The ID of the volume.
  38812. //
  38813. // VolumeId is a required field
  38814. VolumeId *string `locationName:"volumeId" type:"string" required:"true"`
  38815. }
  38816. // String returns the string representation
  38817. func (s EnableVolumeIOInput) String() string {
  38818. return awsutil.Prettify(s)
  38819. }
  38820. // GoString returns the string representation
  38821. func (s EnableVolumeIOInput) GoString() string {
  38822. return s.String()
  38823. }
  38824. // Validate inspects the fields of the type to determine if they are valid.
  38825. func (s *EnableVolumeIOInput) Validate() error {
  38826. invalidParams := request.ErrInvalidParams{Context: "EnableVolumeIOInput"}
  38827. if s.VolumeId == nil {
  38828. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  38829. }
  38830. if invalidParams.Len() > 0 {
  38831. return invalidParams
  38832. }
  38833. return nil
  38834. }
  38835. // SetDryRun sets the DryRun field's value.
  38836. func (s *EnableVolumeIOInput) SetDryRun(v bool) *EnableVolumeIOInput {
  38837. s.DryRun = &v
  38838. return s
  38839. }
  38840. // SetVolumeId sets the VolumeId field's value.
  38841. func (s *EnableVolumeIOInput) SetVolumeId(v string) *EnableVolumeIOInput {
  38842. s.VolumeId = &v
  38843. return s
  38844. }
  38845. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVolumeIOOutput
  38846. type EnableVolumeIOOutput struct {
  38847. _ struct{} `type:"structure"`
  38848. }
  38849. // String returns the string representation
  38850. func (s EnableVolumeIOOutput) String() string {
  38851. return awsutil.Prettify(s)
  38852. }
  38853. // GoString returns the string representation
  38854. func (s EnableVolumeIOOutput) GoString() string {
  38855. return s.String()
  38856. }
  38857. // Contains the parameters for EnableVpcClassicLinkDnsSupport.
  38858. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupportRequest
  38859. type EnableVpcClassicLinkDnsSupportInput struct {
  38860. _ struct{} `type:"structure"`
  38861. // The ID of the VPC.
  38862. VpcId *string `type:"string"`
  38863. }
  38864. // String returns the string representation
  38865. func (s EnableVpcClassicLinkDnsSupportInput) String() string {
  38866. return awsutil.Prettify(s)
  38867. }
  38868. // GoString returns the string representation
  38869. func (s EnableVpcClassicLinkDnsSupportInput) GoString() string {
  38870. return s.String()
  38871. }
  38872. // SetVpcId sets the VpcId field's value.
  38873. func (s *EnableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *EnableVpcClassicLinkDnsSupportInput {
  38874. s.VpcId = &v
  38875. return s
  38876. }
  38877. // Contains the output of EnableVpcClassicLinkDnsSupport.
  38878. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupportResult
  38879. type EnableVpcClassicLinkDnsSupportOutput struct {
  38880. _ struct{} `type:"structure"`
  38881. // Returns true if the request succeeds; otherwise, it returns an error.
  38882. Return *bool `locationName:"return" type:"boolean"`
  38883. }
  38884. // String returns the string representation
  38885. func (s EnableVpcClassicLinkDnsSupportOutput) String() string {
  38886. return awsutil.Prettify(s)
  38887. }
  38888. // GoString returns the string representation
  38889. func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string {
  38890. return s.String()
  38891. }
  38892. // SetReturn sets the Return field's value.
  38893. func (s *EnableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *EnableVpcClassicLinkDnsSupportOutput {
  38894. s.Return = &v
  38895. return s
  38896. }
  38897. // Contains the parameters for EnableVpcClassicLink.
  38898. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkRequest
  38899. type EnableVpcClassicLinkInput struct {
  38900. _ struct{} `type:"structure"`
  38901. // Checks whether you have the required permissions for the action, without
  38902. // actually making the request, and provides an error response. If you have
  38903. // the required permissions, the error response is DryRunOperation. Otherwise,
  38904. // it is UnauthorizedOperation.
  38905. DryRun *bool `locationName:"dryRun" type:"boolean"`
  38906. // The ID of the VPC.
  38907. //
  38908. // VpcId is a required field
  38909. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  38910. }
  38911. // String returns the string representation
  38912. func (s EnableVpcClassicLinkInput) String() string {
  38913. return awsutil.Prettify(s)
  38914. }
  38915. // GoString returns the string representation
  38916. func (s EnableVpcClassicLinkInput) GoString() string {
  38917. return s.String()
  38918. }
  38919. // Validate inspects the fields of the type to determine if they are valid.
  38920. func (s *EnableVpcClassicLinkInput) Validate() error {
  38921. invalidParams := request.ErrInvalidParams{Context: "EnableVpcClassicLinkInput"}
  38922. if s.VpcId == nil {
  38923. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  38924. }
  38925. if invalidParams.Len() > 0 {
  38926. return invalidParams
  38927. }
  38928. return nil
  38929. }
  38930. // SetDryRun sets the DryRun field's value.
  38931. func (s *EnableVpcClassicLinkInput) SetDryRun(v bool) *EnableVpcClassicLinkInput {
  38932. s.DryRun = &v
  38933. return s
  38934. }
  38935. // SetVpcId sets the VpcId field's value.
  38936. func (s *EnableVpcClassicLinkInput) SetVpcId(v string) *EnableVpcClassicLinkInput {
  38937. s.VpcId = &v
  38938. return s
  38939. }
  38940. // Contains the output of EnableVpcClassicLink.
  38941. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkResult
  38942. type EnableVpcClassicLinkOutput struct {
  38943. _ struct{} `type:"structure"`
  38944. // Returns true if the request succeeds; otherwise, it returns an error.
  38945. Return *bool `locationName:"return" type:"boolean"`
  38946. }
  38947. // String returns the string representation
  38948. func (s EnableVpcClassicLinkOutput) String() string {
  38949. return awsutil.Prettify(s)
  38950. }
  38951. // GoString returns the string representation
  38952. func (s EnableVpcClassicLinkOutput) GoString() string {
  38953. return s.String()
  38954. }
  38955. // SetReturn sets the Return field's value.
  38956. func (s *EnableVpcClassicLinkOutput) SetReturn(v bool) *EnableVpcClassicLinkOutput {
  38957. s.Return = &v
  38958. return s
  38959. }
  38960. // Describes a Spot Fleet event.
  38961. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EventInformation
  38962. type EventInformation struct {
  38963. _ struct{} `type:"structure"`
  38964. // The description of the event.
  38965. EventDescription *string `locationName:"eventDescription" type:"string"`
  38966. // The event.
  38967. //
  38968. // The following are the error events:
  38969. //
  38970. // * iamFleetRoleInvalid - The Spot Fleet did not have the required permissions
  38971. // either to launch or terminate an instance.
  38972. //
  38973. // * launchSpecTemporarilyBlacklisted - The configuration is not valid and
  38974. // several attempts to launch instances have failed. For more information,
  38975. // see the description of the event.
  38976. //
  38977. // * spotFleetRequestConfigurationInvalid - The configuration is not valid.
  38978. // For more information, see the description of the event.
  38979. //
  38980. // * spotInstanceCountLimitExceeded - You've reached the limit on the number
  38981. // of Spot Instances that you can launch.
  38982. //
  38983. // The following are the fleetRequestChange events:
  38984. //
  38985. // * active - The Spot Fleet has been validated and Amazon EC2 is attempting
  38986. // to maintain the target number of running Spot Instances.
  38987. //
  38988. // * cancelled - The Spot Fleet is canceled and has no running Spot Instances.
  38989. // The Spot Fleet will be deleted two days after its instances were terminated.
  38990. //
  38991. // * cancelled_running - The Spot Fleet is canceled and will not launch additional
  38992. // Spot Instances, but its existing Spot Instances continue to run until
  38993. // they are interrupted or terminated.
  38994. //
  38995. // * cancelled_terminating - The Spot Fleet is canceled and its Spot Instances
  38996. // are terminating.
  38997. //
  38998. // * expired - The Spot Fleet request has expired. A subsequent event indicates
  38999. // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration
  39000. // set.
  39001. //
  39002. // * modify_in_progress - A request to modify the Spot Fleet request was
  39003. // accepted and is in progress.
  39004. //
  39005. // * modify_successful - The Spot Fleet request was modified.
  39006. //
  39007. // * price_update - The price for a launch configuration was adjusted because
  39008. // it was too high. This change is permanent.
  39009. //
  39010. // * submitted - The Spot Fleet request is being evaluated and Amazon EC2
  39011. // is preparing to launch the target number of Spot Instances.
  39012. //
  39013. // The following are the instanceChange events:
  39014. //
  39015. // * launched - A request was fulfilled and a new instance was launched.
  39016. //
  39017. // * terminated - An instance was terminated by the user.
  39018. //
  39019. // The following are the Information events:
  39020. //
  39021. // * launchSpecUnusable - The price in a launch specification is not valid
  39022. // because it is below the Spot price or the Spot price is above the On-Demand
  39023. // price.
  39024. //
  39025. // * fleetProgressHalted - The price in every launch specification is not
  39026. // valid. A launch specification might become valid if the Spot price changes.
  39027. EventSubType *string `locationName:"eventSubType" type:"string"`
  39028. // The ID of the instance. This information is available only for instanceChange
  39029. // events.
  39030. InstanceId *string `locationName:"instanceId" type:"string"`
  39031. }
  39032. // String returns the string representation
  39033. func (s EventInformation) String() string {
  39034. return awsutil.Prettify(s)
  39035. }
  39036. // GoString returns the string representation
  39037. func (s EventInformation) GoString() string {
  39038. return s.String()
  39039. }
  39040. // SetEventDescription sets the EventDescription field's value.
  39041. func (s *EventInformation) SetEventDescription(v string) *EventInformation {
  39042. s.EventDescription = &v
  39043. return s
  39044. }
  39045. // SetEventSubType sets the EventSubType field's value.
  39046. func (s *EventInformation) SetEventSubType(v string) *EventInformation {
  39047. s.EventSubType = &v
  39048. return s
  39049. }
  39050. // SetInstanceId sets the InstanceId field's value.
  39051. func (s *EventInformation) SetInstanceId(v string) *EventInformation {
  39052. s.InstanceId = &v
  39053. return s
  39054. }
  39055. // Describes an instance export task.
  39056. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTask
  39057. type ExportTask struct {
  39058. _ struct{} `type:"structure"`
  39059. // A description of the resource being exported.
  39060. Description *string `locationName:"description" type:"string"`
  39061. // The ID of the export task.
  39062. ExportTaskId *string `locationName:"exportTaskId" type:"string"`
  39063. // Information about the export task.
  39064. ExportToS3Task *ExportToS3Task `locationName:"exportToS3" type:"structure"`
  39065. // Information about the instance to export.
  39066. InstanceExportDetails *InstanceExportDetails `locationName:"instanceExport" type:"structure"`
  39067. // The state of the export task.
  39068. State *string `locationName:"state" type:"string" enum:"ExportTaskState"`
  39069. // The status message related to the export task.
  39070. StatusMessage *string `locationName:"statusMessage" type:"string"`
  39071. }
  39072. // String returns the string representation
  39073. func (s ExportTask) String() string {
  39074. return awsutil.Prettify(s)
  39075. }
  39076. // GoString returns the string representation
  39077. func (s ExportTask) GoString() string {
  39078. return s.String()
  39079. }
  39080. // SetDescription sets the Description field's value.
  39081. func (s *ExportTask) SetDescription(v string) *ExportTask {
  39082. s.Description = &v
  39083. return s
  39084. }
  39085. // SetExportTaskId sets the ExportTaskId field's value.
  39086. func (s *ExportTask) SetExportTaskId(v string) *ExportTask {
  39087. s.ExportTaskId = &v
  39088. return s
  39089. }
  39090. // SetExportToS3Task sets the ExportToS3Task field's value.
  39091. func (s *ExportTask) SetExportToS3Task(v *ExportToS3Task) *ExportTask {
  39092. s.ExportToS3Task = v
  39093. return s
  39094. }
  39095. // SetInstanceExportDetails sets the InstanceExportDetails field's value.
  39096. func (s *ExportTask) SetInstanceExportDetails(v *InstanceExportDetails) *ExportTask {
  39097. s.InstanceExportDetails = v
  39098. return s
  39099. }
  39100. // SetState sets the State field's value.
  39101. func (s *ExportTask) SetState(v string) *ExportTask {
  39102. s.State = &v
  39103. return s
  39104. }
  39105. // SetStatusMessage sets the StatusMessage field's value.
  39106. func (s *ExportTask) SetStatusMessage(v string) *ExportTask {
  39107. s.StatusMessage = &v
  39108. return s
  39109. }
  39110. // Describes the format and location for an instance export task.
  39111. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportToS3Task
  39112. type ExportToS3Task struct {
  39113. _ struct{} `type:"structure"`
  39114. // The container format used to combine disk images with metadata (such as OVF).
  39115. // If absent, only the disk image is exported.
  39116. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  39117. // The format for the exported image.
  39118. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  39119. // The S3 bucket for the destination image. The destination bucket must exist
  39120. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  39121. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  39122. // The encryption key for your S3 bucket.
  39123. S3Key *string `locationName:"s3Key" type:"string"`
  39124. }
  39125. // String returns the string representation
  39126. func (s ExportToS3Task) String() string {
  39127. return awsutil.Prettify(s)
  39128. }
  39129. // GoString returns the string representation
  39130. func (s ExportToS3Task) GoString() string {
  39131. return s.String()
  39132. }
  39133. // SetContainerFormat sets the ContainerFormat field's value.
  39134. func (s *ExportToS3Task) SetContainerFormat(v string) *ExportToS3Task {
  39135. s.ContainerFormat = &v
  39136. return s
  39137. }
  39138. // SetDiskImageFormat sets the DiskImageFormat field's value.
  39139. func (s *ExportToS3Task) SetDiskImageFormat(v string) *ExportToS3Task {
  39140. s.DiskImageFormat = &v
  39141. return s
  39142. }
  39143. // SetS3Bucket sets the S3Bucket field's value.
  39144. func (s *ExportToS3Task) SetS3Bucket(v string) *ExportToS3Task {
  39145. s.S3Bucket = &v
  39146. return s
  39147. }
  39148. // SetS3Key sets the S3Key field's value.
  39149. func (s *ExportToS3Task) SetS3Key(v string) *ExportToS3Task {
  39150. s.S3Key = &v
  39151. return s
  39152. }
  39153. // Describes an instance export task.
  39154. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportToS3TaskSpecification
  39155. type ExportToS3TaskSpecification struct {
  39156. _ struct{} `type:"structure"`
  39157. // The container format used to combine disk images with metadata (such as OVF).
  39158. // If absent, only the disk image is exported.
  39159. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  39160. // The format for the exported image.
  39161. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  39162. // The S3 bucket for the destination image. The destination bucket must exist
  39163. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  39164. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  39165. // The image is written to a single object in the S3 bucket at the S3 key s3prefix
  39166. // + exportTaskId + '.' + diskImageFormat.
  39167. S3Prefix *string `locationName:"s3Prefix" type:"string"`
  39168. }
  39169. // String returns the string representation
  39170. func (s ExportToS3TaskSpecification) String() string {
  39171. return awsutil.Prettify(s)
  39172. }
  39173. // GoString returns the string representation
  39174. func (s ExportToS3TaskSpecification) GoString() string {
  39175. return s.String()
  39176. }
  39177. // SetContainerFormat sets the ContainerFormat field's value.
  39178. func (s *ExportToS3TaskSpecification) SetContainerFormat(v string) *ExportToS3TaskSpecification {
  39179. s.ContainerFormat = &v
  39180. return s
  39181. }
  39182. // SetDiskImageFormat sets the DiskImageFormat field's value.
  39183. func (s *ExportToS3TaskSpecification) SetDiskImageFormat(v string) *ExportToS3TaskSpecification {
  39184. s.DiskImageFormat = &v
  39185. return s
  39186. }
  39187. // SetS3Bucket sets the S3Bucket field's value.
  39188. func (s *ExportToS3TaskSpecification) SetS3Bucket(v string) *ExportToS3TaskSpecification {
  39189. s.S3Bucket = &v
  39190. return s
  39191. }
  39192. // SetS3Prefix sets the S3Prefix field's value.
  39193. func (s *ExportToS3TaskSpecification) SetS3Prefix(v string) *ExportToS3TaskSpecification {
  39194. s.S3Prefix = &v
  39195. return s
  39196. }
  39197. // A filter name and value pair that is used to return a more specific list
  39198. // of results. Filters can be used to match a set of resources by various criteria,
  39199. // such as tags, attributes, or IDs.
  39200. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Filter
  39201. type Filter struct {
  39202. _ struct{} `type:"structure"`
  39203. // The name of the filter. Filter names are case-sensitive.
  39204. Name *string `type:"string"`
  39205. // One or more filter values. Filter values are case-sensitive.
  39206. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  39207. }
  39208. // String returns the string representation
  39209. func (s Filter) String() string {
  39210. return awsutil.Prettify(s)
  39211. }
  39212. // GoString returns the string representation
  39213. func (s Filter) GoString() string {
  39214. return s.String()
  39215. }
  39216. // SetName sets the Name field's value.
  39217. func (s *Filter) SetName(v string) *Filter {
  39218. s.Name = &v
  39219. return s
  39220. }
  39221. // SetValues sets the Values field's value.
  39222. func (s *Filter) SetValues(v []*string) *Filter {
  39223. s.Values = v
  39224. return s
  39225. }
  39226. // Describes a launch template.
  39227. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetLaunchTemplateSpecification
  39228. type FleetLaunchTemplateSpecification struct {
  39229. _ struct{} `type:"structure"`
  39230. // The ID of the launch template. You must specify either a template ID or a
  39231. // template name.
  39232. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  39233. // The name of the launch template. You must specify either a template name
  39234. // or a template ID.
  39235. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  39236. // The version number. By default, the default version of the launch template
  39237. // is used.
  39238. Version *string `locationName:"version" type:"string"`
  39239. }
  39240. // String returns the string representation
  39241. func (s FleetLaunchTemplateSpecification) String() string {
  39242. return awsutil.Prettify(s)
  39243. }
  39244. // GoString returns the string representation
  39245. func (s FleetLaunchTemplateSpecification) GoString() string {
  39246. return s.String()
  39247. }
  39248. // Validate inspects the fields of the type to determine if they are valid.
  39249. func (s *FleetLaunchTemplateSpecification) Validate() error {
  39250. invalidParams := request.ErrInvalidParams{Context: "FleetLaunchTemplateSpecification"}
  39251. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  39252. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  39253. }
  39254. if invalidParams.Len() > 0 {
  39255. return invalidParams
  39256. }
  39257. return nil
  39258. }
  39259. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  39260. func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateId(v string) *FleetLaunchTemplateSpecification {
  39261. s.LaunchTemplateId = &v
  39262. return s
  39263. }
  39264. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  39265. func (s *FleetLaunchTemplateSpecification) SetLaunchTemplateName(v string) *FleetLaunchTemplateSpecification {
  39266. s.LaunchTemplateName = &v
  39267. return s
  39268. }
  39269. // SetVersion sets the Version field's value.
  39270. func (s *FleetLaunchTemplateSpecification) SetVersion(v string) *FleetLaunchTemplateSpecification {
  39271. s.Version = &v
  39272. return s
  39273. }
  39274. // Describes a flow log.
  39275. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FlowLog
  39276. type FlowLog struct {
  39277. _ struct{} `type:"structure"`
  39278. // The date and time the flow log was created.
  39279. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
  39280. // Information about the error that occurred. Rate limited indicates that CloudWatch
  39281. // logs throttling has been applied for one or more network interfaces, or that
  39282. // you've reached the limit on the number of CloudWatch Logs log groups that
  39283. // you can create. Access error indicates that the IAM role associated with
  39284. // the flow log does not have sufficient permissions to publish to CloudWatch
  39285. // Logs. Unknown error indicates an internal error.
  39286. DeliverLogsErrorMessage *string `locationName:"deliverLogsErrorMessage" type:"string"`
  39287. // The ARN of the IAM role that posts logs to CloudWatch Logs.
  39288. DeliverLogsPermissionArn *string `locationName:"deliverLogsPermissionArn" type:"string"`
  39289. // The status of the logs delivery (SUCCESS | FAILED).
  39290. DeliverLogsStatus *string `locationName:"deliverLogsStatus" type:"string"`
  39291. // The flow log ID.
  39292. FlowLogId *string `locationName:"flowLogId" type:"string"`
  39293. // The status of the flow log (ACTIVE).
  39294. FlowLogStatus *string `locationName:"flowLogStatus" type:"string"`
  39295. // The name of the flow log group.
  39296. LogGroupName *string `locationName:"logGroupName" type:"string"`
  39297. // The ID of the resource on which the flow log was created.
  39298. ResourceId *string `locationName:"resourceId" type:"string"`
  39299. // The type of traffic captured for the flow log.
  39300. TrafficType *string `locationName:"trafficType" type:"string" enum:"TrafficType"`
  39301. }
  39302. // String returns the string representation
  39303. func (s FlowLog) String() string {
  39304. return awsutil.Prettify(s)
  39305. }
  39306. // GoString returns the string representation
  39307. func (s FlowLog) GoString() string {
  39308. return s.String()
  39309. }
  39310. // SetCreationTime sets the CreationTime field's value.
  39311. func (s *FlowLog) SetCreationTime(v time.Time) *FlowLog {
  39312. s.CreationTime = &v
  39313. return s
  39314. }
  39315. // SetDeliverLogsErrorMessage sets the DeliverLogsErrorMessage field's value.
  39316. func (s *FlowLog) SetDeliverLogsErrorMessage(v string) *FlowLog {
  39317. s.DeliverLogsErrorMessage = &v
  39318. return s
  39319. }
  39320. // SetDeliverLogsPermissionArn sets the DeliverLogsPermissionArn field's value.
  39321. func (s *FlowLog) SetDeliverLogsPermissionArn(v string) *FlowLog {
  39322. s.DeliverLogsPermissionArn = &v
  39323. return s
  39324. }
  39325. // SetDeliverLogsStatus sets the DeliverLogsStatus field's value.
  39326. func (s *FlowLog) SetDeliverLogsStatus(v string) *FlowLog {
  39327. s.DeliverLogsStatus = &v
  39328. return s
  39329. }
  39330. // SetFlowLogId sets the FlowLogId field's value.
  39331. func (s *FlowLog) SetFlowLogId(v string) *FlowLog {
  39332. s.FlowLogId = &v
  39333. return s
  39334. }
  39335. // SetFlowLogStatus sets the FlowLogStatus field's value.
  39336. func (s *FlowLog) SetFlowLogStatus(v string) *FlowLog {
  39337. s.FlowLogStatus = &v
  39338. return s
  39339. }
  39340. // SetLogGroupName sets the LogGroupName field's value.
  39341. func (s *FlowLog) SetLogGroupName(v string) *FlowLog {
  39342. s.LogGroupName = &v
  39343. return s
  39344. }
  39345. // SetResourceId sets the ResourceId field's value.
  39346. func (s *FlowLog) SetResourceId(v string) *FlowLog {
  39347. s.ResourceId = &v
  39348. return s
  39349. }
  39350. // SetTrafficType sets the TrafficType field's value.
  39351. func (s *FlowLog) SetTrafficType(v string) *FlowLog {
  39352. s.TrafficType = &v
  39353. return s
  39354. }
  39355. // Describes an Amazon FPGA image (AFI).
  39356. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FpgaImage
  39357. type FpgaImage struct {
  39358. _ struct{} `type:"structure"`
  39359. // The date and time the AFI was created.
  39360. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  39361. // The description of the AFI.
  39362. Description *string `locationName:"description" type:"string"`
  39363. // The global FPGA image identifier (AGFI ID).
  39364. FpgaImageGlobalId *string `locationName:"fpgaImageGlobalId" type:"string"`
  39365. // The FPGA image identifier (AFI ID).
  39366. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  39367. // The name of the AFI.
  39368. Name *string `locationName:"name" type:"string"`
  39369. // The alias of the AFI owner. Possible values include self, amazon, and aws-marketplace.
  39370. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  39371. // The AWS account ID of the AFI owner.
  39372. OwnerId *string `locationName:"ownerId" type:"string"`
  39373. // Information about the PCI bus.
  39374. PciId *PciId `locationName:"pciId" type:"structure"`
  39375. // The product codes for the AFI.
  39376. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  39377. // Indicates whether the AFI is public.
  39378. Public *bool `locationName:"public" type:"boolean"`
  39379. // The version of the AWS Shell that was used to create the bitstream.
  39380. ShellVersion *string `locationName:"shellVersion" type:"string"`
  39381. // Information about the state of the AFI.
  39382. State *FpgaImageState `locationName:"state" type:"structure"`
  39383. // Any tags assigned to the AFI.
  39384. Tags []*Tag `locationName:"tags" locationNameList:"item" type:"list"`
  39385. // The time of the most recent update to the AFI.
  39386. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  39387. }
  39388. // String returns the string representation
  39389. func (s FpgaImage) String() string {
  39390. return awsutil.Prettify(s)
  39391. }
  39392. // GoString returns the string representation
  39393. func (s FpgaImage) GoString() string {
  39394. return s.String()
  39395. }
  39396. // SetCreateTime sets the CreateTime field's value.
  39397. func (s *FpgaImage) SetCreateTime(v time.Time) *FpgaImage {
  39398. s.CreateTime = &v
  39399. return s
  39400. }
  39401. // SetDescription sets the Description field's value.
  39402. func (s *FpgaImage) SetDescription(v string) *FpgaImage {
  39403. s.Description = &v
  39404. return s
  39405. }
  39406. // SetFpgaImageGlobalId sets the FpgaImageGlobalId field's value.
  39407. func (s *FpgaImage) SetFpgaImageGlobalId(v string) *FpgaImage {
  39408. s.FpgaImageGlobalId = &v
  39409. return s
  39410. }
  39411. // SetFpgaImageId sets the FpgaImageId field's value.
  39412. func (s *FpgaImage) SetFpgaImageId(v string) *FpgaImage {
  39413. s.FpgaImageId = &v
  39414. return s
  39415. }
  39416. // SetName sets the Name field's value.
  39417. func (s *FpgaImage) SetName(v string) *FpgaImage {
  39418. s.Name = &v
  39419. return s
  39420. }
  39421. // SetOwnerAlias sets the OwnerAlias field's value.
  39422. func (s *FpgaImage) SetOwnerAlias(v string) *FpgaImage {
  39423. s.OwnerAlias = &v
  39424. return s
  39425. }
  39426. // SetOwnerId sets the OwnerId field's value.
  39427. func (s *FpgaImage) SetOwnerId(v string) *FpgaImage {
  39428. s.OwnerId = &v
  39429. return s
  39430. }
  39431. // SetPciId sets the PciId field's value.
  39432. func (s *FpgaImage) SetPciId(v *PciId) *FpgaImage {
  39433. s.PciId = v
  39434. return s
  39435. }
  39436. // SetProductCodes sets the ProductCodes field's value.
  39437. func (s *FpgaImage) SetProductCodes(v []*ProductCode) *FpgaImage {
  39438. s.ProductCodes = v
  39439. return s
  39440. }
  39441. // SetPublic sets the Public field's value.
  39442. func (s *FpgaImage) SetPublic(v bool) *FpgaImage {
  39443. s.Public = &v
  39444. return s
  39445. }
  39446. // SetShellVersion sets the ShellVersion field's value.
  39447. func (s *FpgaImage) SetShellVersion(v string) *FpgaImage {
  39448. s.ShellVersion = &v
  39449. return s
  39450. }
  39451. // SetState sets the State field's value.
  39452. func (s *FpgaImage) SetState(v *FpgaImageState) *FpgaImage {
  39453. s.State = v
  39454. return s
  39455. }
  39456. // SetTags sets the Tags field's value.
  39457. func (s *FpgaImage) SetTags(v []*Tag) *FpgaImage {
  39458. s.Tags = v
  39459. return s
  39460. }
  39461. // SetUpdateTime sets the UpdateTime field's value.
  39462. func (s *FpgaImage) SetUpdateTime(v time.Time) *FpgaImage {
  39463. s.UpdateTime = &v
  39464. return s
  39465. }
  39466. // Describes an Amazon FPGA image (AFI) attribute.
  39467. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FpgaImageAttribute
  39468. type FpgaImageAttribute struct {
  39469. _ struct{} `type:"structure"`
  39470. // The description of the AFI.
  39471. Description *string `locationName:"description" type:"string"`
  39472. // The ID of the AFI.
  39473. FpgaImageId *string `locationName:"fpgaImageId" type:"string"`
  39474. // One or more load permissions.
  39475. LoadPermissions []*LoadPermission `locationName:"loadPermissions" locationNameList:"item" type:"list"`
  39476. // The name of the AFI.
  39477. Name *string `locationName:"name" type:"string"`
  39478. // One or more product codes.
  39479. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  39480. }
  39481. // String returns the string representation
  39482. func (s FpgaImageAttribute) String() string {
  39483. return awsutil.Prettify(s)
  39484. }
  39485. // GoString returns the string representation
  39486. func (s FpgaImageAttribute) GoString() string {
  39487. return s.String()
  39488. }
  39489. // SetDescription sets the Description field's value.
  39490. func (s *FpgaImageAttribute) SetDescription(v string) *FpgaImageAttribute {
  39491. s.Description = &v
  39492. return s
  39493. }
  39494. // SetFpgaImageId sets the FpgaImageId field's value.
  39495. func (s *FpgaImageAttribute) SetFpgaImageId(v string) *FpgaImageAttribute {
  39496. s.FpgaImageId = &v
  39497. return s
  39498. }
  39499. // SetLoadPermissions sets the LoadPermissions field's value.
  39500. func (s *FpgaImageAttribute) SetLoadPermissions(v []*LoadPermission) *FpgaImageAttribute {
  39501. s.LoadPermissions = v
  39502. return s
  39503. }
  39504. // SetName sets the Name field's value.
  39505. func (s *FpgaImageAttribute) SetName(v string) *FpgaImageAttribute {
  39506. s.Name = &v
  39507. return s
  39508. }
  39509. // SetProductCodes sets the ProductCodes field's value.
  39510. func (s *FpgaImageAttribute) SetProductCodes(v []*ProductCode) *FpgaImageAttribute {
  39511. s.ProductCodes = v
  39512. return s
  39513. }
  39514. // Describes the state of the bitstream generation process for an Amazon FPGA
  39515. // image (AFI).
  39516. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FpgaImageState
  39517. type FpgaImageState struct {
  39518. _ struct{} `type:"structure"`
  39519. // The state. The following are the possible values:
  39520. //
  39521. // * pending - AFI bitstream generation is in progress.
  39522. //
  39523. // * available - The AFI is available for use.
  39524. //
  39525. // * failed - AFI bitstream generation failed.
  39526. //
  39527. // * unavailable - The AFI is no longer available for use.
  39528. Code *string `locationName:"code" type:"string" enum:"FpgaImageStateCode"`
  39529. // If the state is failed, this is the error message.
  39530. Message *string `locationName:"message" type:"string"`
  39531. }
  39532. // String returns the string representation
  39533. func (s FpgaImageState) String() string {
  39534. return awsutil.Prettify(s)
  39535. }
  39536. // GoString returns the string representation
  39537. func (s FpgaImageState) GoString() string {
  39538. return s.String()
  39539. }
  39540. // SetCode sets the Code field's value.
  39541. func (s *FpgaImageState) SetCode(v string) *FpgaImageState {
  39542. s.Code = &v
  39543. return s
  39544. }
  39545. // SetMessage sets the Message field's value.
  39546. func (s *FpgaImageState) SetMessage(v string) *FpgaImageState {
  39547. s.Message = &v
  39548. return s
  39549. }
  39550. // Contains the parameters for GetConsoleOutput.
  39551. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutputRequest
  39552. type GetConsoleOutputInput struct {
  39553. _ struct{} `type:"structure"`
  39554. // Checks whether you have the required permissions for the action, without
  39555. // actually making the request, and provides an error response. If you have
  39556. // the required permissions, the error response is DryRunOperation. Otherwise,
  39557. // it is UnauthorizedOperation.
  39558. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39559. // The ID of the instance.
  39560. //
  39561. // InstanceId is a required field
  39562. InstanceId *string `type:"string" required:"true"`
  39563. }
  39564. // String returns the string representation
  39565. func (s GetConsoleOutputInput) String() string {
  39566. return awsutil.Prettify(s)
  39567. }
  39568. // GoString returns the string representation
  39569. func (s GetConsoleOutputInput) GoString() string {
  39570. return s.String()
  39571. }
  39572. // Validate inspects the fields of the type to determine if they are valid.
  39573. func (s *GetConsoleOutputInput) Validate() error {
  39574. invalidParams := request.ErrInvalidParams{Context: "GetConsoleOutputInput"}
  39575. if s.InstanceId == nil {
  39576. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  39577. }
  39578. if invalidParams.Len() > 0 {
  39579. return invalidParams
  39580. }
  39581. return nil
  39582. }
  39583. // SetDryRun sets the DryRun field's value.
  39584. func (s *GetConsoleOutputInput) SetDryRun(v bool) *GetConsoleOutputInput {
  39585. s.DryRun = &v
  39586. return s
  39587. }
  39588. // SetInstanceId sets the InstanceId field's value.
  39589. func (s *GetConsoleOutputInput) SetInstanceId(v string) *GetConsoleOutputInput {
  39590. s.InstanceId = &v
  39591. return s
  39592. }
  39593. // Contains the output of GetConsoleOutput.
  39594. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleOutputResult
  39595. type GetConsoleOutputOutput struct {
  39596. _ struct{} `type:"structure"`
  39597. // The ID of the instance.
  39598. InstanceId *string `locationName:"instanceId" type:"string"`
  39599. // The console output, Base64-encoded. If using a command line tool, the tool
  39600. // decodes the output for you.
  39601. Output *string `locationName:"output" type:"string"`
  39602. // The time the output was last updated.
  39603. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  39604. }
  39605. // String returns the string representation
  39606. func (s GetConsoleOutputOutput) String() string {
  39607. return awsutil.Prettify(s)
  39608. }
  39609. // GoString returns the string representation
  39610. func (s GetConsoleOutputOutput) GoString() string {
  39611. return s.String()
  39612. }
  39613. // SetInstanceId sets the InstanceId field's value.
  39614. func (s *GetConsoleOutputOutput) SetInstanceId(v string) *GetConsoleOutputOutput {
  39615. s.InstanceId = &v
  39616. return s
  39617. }
  39618. // SetOutput sets the Output field's value.
  39619. func (s *GetConsoleOutputOutput) SetOutput(v string) *GetConsoleOutputOutput {
  39620. s.Output = &v
  39621. return s
  39622. }
  39623. // SetTimestamp sets the Timestamp field's value.
  39624. func (s *GetConsoleOutputOutput) SetTimestamp(v time.Time) *GetConsoleOutputOutput {
  39625. s.Timestamp = &v
  39626. return s
  39627. }
  39628. // Contains the parameters for the request.
  39629. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshotRequest
  39630. type GetConsoleScreenshotInput struct {
  39631. _ struct{} `type:"structure"`
  39632. // Checks whether you have the required permissions for the action, without
  39633. // actually making the request, and provides an error response. If you have
  39634. // the required permissions, the error response is DryRunOperation. Otherwise,
  39635. // it is UnauthorizedOperation.
  39636. DryRun *bool `type:"boolean"`
  39637. // The ID of the instance.
  39638. //
  39639. // InstanceId is a required field
  39640. InstanceId *string `type:"string" required:"true"`
  39641. // When set to true, acts as keystroke input and wakes up an instance that's
  39642. // in standby or "sleep" mode.
  39643. WakeUp *bool `type:"boolean"`
  39644. }
  39645. // String returns the string representation
  39646. func (s GetConsoleScreenshotInput) String() string {
  39647. return awsutil.Prettify(s)
  39648. }
  39649. // GoString returns the string representation
  39650. func (s GetConsoleScreenshotInput) GoString() string {
  39651. return s.String()
  39652. }
  39653. // Validate inspects the fields of the type to determine if they are valid.
  39654. func (s *GetConsoleScreenshotInput) Validate() error {
  39655. invalidParams := request.ErrInvalidParams{Context: "GetConsoleScreenshotInput"}
  39656. if s.InstanceId == nil {
  39657. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  39658. }
  39659. if invalidParams.Len() > 0 {
  39660. return invalidParams
  39661. }
  39662. return nil
  39663. }
  39664. // SetDryRun sets the DryRun field's value.
  39665. func (s *GetConsoleScreenshotInput) SetDryRun(v bool) *GetConsoleScreenshotInput {
  39666. s.DryRun = &v
  39667. return s
  39668. }
  39669. // SetInstanceId sets the InstanceId field's value.
  39670. func (s *GetConsoleScreenshotInput) SetInstanceId(v string) *GetConsoleScreenshotInput {
  39671. s.InstanceId = &v
  39672. return s
  39673. }
  39674. // SetWakeUp sets the WakeUp field's value.
  39675. func (s *GetConsoleScreenshotInput) SetWakeUp(v bool) *GetConsoleScreenshotInput {
  39676. s.WakeUp = &v
  39677. return s
  39678. }
  39679. // Contains the output of the request.
  39680. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetConsoleScreenshotResult
  39681. type GetConsoleScreenshotOutput struct {
  39682. _ struct{} `type:"structure"`
  39683. // The data that comprises the image.
  39684. ImageData *string `locationName:"imageData" type:"string"`
  39685. // The ID of the instance.
  39686. InstanceId *string `locationName:"instanceId" type:"string"`
  39687. }
  39688. // String returns the string representation
  39689. func (s GetConsoleScreenshotOutput) String() string {
  39690. return awsutil.Prettify(s)
  39691. }
  39692. // GoString returns the string representation
  39693. func (s GetConsoleScreenshotOutput) GoString() string {
  39694. return s.String()
  39695. }
  39696. // SetImageData sets the ImageData field's value.
  39697. func (s *GetConsoleScreenshotOutput) SetImageData(v string) *GetConsoleScreenshotOutput {
  39698. s.ImageData = &v
  39699. return s
  39700. }
  39701. // SetInstanceId sets the InstanceId field's value.
  39702. func (s *GetConsoleScreenshotOutput) SetInstanceId(v string) *GetConsoleScreenshotOutput {
  39703. s.InstanceId = &v
  39704. return s
  39705. }
  39706. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreviewRequest
  39707. type GetHostReservationPurchasePreviewInput struct {
  39708. _ struct{} `type:"structure"`
  39709. // The ID/s of the Dedicated Host/s that the reservation will be associated
  39710. // with.
  39711. //
  39712. // HostIdSet is a required field
  39713. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  39714. // The offering ID of the reservation.
  39715. //
  39716. // OfferingId is a required field
  39717. OfferingId *string `type:"string" required:"true"`
  39718. }
  39719. // String returns the string representation
  39720. func (s GetHostReservationPurchasePreviewInput) String() string {
  39721. return awsutil.Prettify(s)
  39722. }
  39723. // GoString returns the string representation
  39724. func (s GetHostReservationPurchasePreviewInput) GoString() string {
  39725. return s.String()
  39726. }
  39727. // Validate inspects the fields of the type to determine if they are valid.
  39728. func (s *GetHostReservationPurchasePreviewInput) Validate() error {
  39729. invalidParams := request.ErrInvalidParams{Context: "GetHostReservationPurchasePreviewInput"}
  39730. if s.HostIdSet == nil {
  39731. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  39732. }
  39733. if s.OfferingId == nil {
  39734. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  39735. }
  39736. if invalidParams.Len() > 0 {
  39737. return invalidParams
  39738. }
  39739. return nil
  39740. }
  39741. // SetHostIdSet sets the HostIdSet field's value.
  39742. func (s *GetHostReservationPurchasePreviewInput) SetHostIdSet(v []*string) *GetHostReservationPurchasePreviewInput {
  39743. s.HostIdSet = v
  39744. return s
  39745. }
  39746. // SetOfferingId sets the OfferingId field's value.
  39747. func (s *GetHostReservationPurchasePreviewInput) SetOfferingId(v string) *GetHostReservationPurchasePreviewInput {
  39748. s.OfferingId = &v
  39749. return s
  39750. }
  39751. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetHostReservationPurchasePreviewResult
  39752. type GetHostReservationPurchasePreviewOutput struct {
  39753. _ struct{} `type:"structure"`
  39754. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  39755. // are specified. At this time, the only supported currency is USD.
  39756. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  39757. // The purchase information of the Dedicated Host Reservation and the Dedicated
  39758. // Hosts associated with it.
  39759. Purchase []*Purchase `locationName:"purchase" locationNameList:"item" type:"list"`
  39760. // The potential total hourly price of the reservation per hour.
  39761. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  39762. // The potential total upfront price. This is billed immediately.
  39763. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  39764. }
  39765. // String returns the string representation
  39766. func (s GetHostReservationPurchasePreviewOutput) String() string {
  39767. return awsutil.Prettify(s)
  39768. }
  39769. // GoString returns the string representation
  39770. func (s GetHostReservationPurchasePreviewOutput) GoString() string {
  39771. return s.String()
  39772. }
  39773. // SetCurrencyCode sets the CurrencyCode field's value.
  39774. func (s *GetHostReservationPurchasePreviewOutput) SetCurrencyCode(v string) *GetHostReservationPurchasePreviewOutput {
  39775. s.CurrencyCode = &v
  39776. return s
  39777. }
  39778. // SetPurchase sets the Purchase field's value.
  39779. func (s *GetHostReservationPurchasePreviewOutput) SetPurchase(v []*Purchase) *GetHostReservationPurchasePreviewOutput {
  39780. s.Purchase = v
  39781. return s
  39782. }
  39783. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  39784. func (s *GetHostReservationPurchasePreviewOutput) SetTotalHourlyPrice(v string) *GetHostReservationPurchasePreviewOutput {
  39785. s.TotalHourlyPrice = &v
  39786. return s
  39787. }
  39788. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  39789. func (s *GetHostReservationPurchasePreviewOutput) SetTotalUpfrontPrice(v string) *GetHostReservationPurchasePreviewOutput {
  39790. s.TotalUpfrontPrice = &v
  39791. return s
  39792. }
  39793. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateDataRequest
  39794. type GetLaunchTemplateDataInput struct {
  39795. _ struct{} `type:"structure"`
  39796. // Checks whether you have the required permissions for the action, without
  39797. // actually making the request, and provides an error response. If you have
  39798. // the required permissions, the error response is DryRunOperation. Otherwise,
  39799. // it is UnauthorizedOperation.
  39800. DryRun *bool `type:"boolean"`
  39801. // The ID of the instance.
  39802. //
  39803. // InstanceId is a required field
  39804. InstanceId *string `type:"string" required:"true"`
  39805. }
  39806. // String returns the string representation
  39807. func (s GetLaunchTemplateDataInput) String() string {
  39808. return awsutil.Prettify(s)
  39809. }
  39810. // GoString returns the string representation
  39811. func (s GetLaunchTemplateDataInput) GoString() string {
  39812. return s.String()
  39813. }
  39814. // Validate inspects the fields of the type to determine if they are valid.
  39815. func (s *GetLaunchTemplateDataInput) Validate() error {
  39816. invalidParams := request.ErrInvalidParams{Context: "GetLaunchTemplateDataInput"}
  39817. if s.InstanceId == nil {
  39818. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  39819. }
  39820. if invalidParams.Len() > 0 {
  39821. return invalidParams
  39822. }
  39823. return nil
  39824. }
  39825. // SetDryRun sets the DryRun field's value.
  39826. func (s *GetLaunchTemplateDataInput) SetDryRun(v bool) *GetLaunchTemplateDataInput {
  39827. s.DryRun = &v
  39828. return s
  39829. }
  39830. // SetInstanceId sets the InstanceId field's value.
  39831. func (s *GetLaunchTemplateDataInput) SetInstanceId(v string) *GetLaunchTemplateDataInput {
  39832. s.InstanceId = &v
  39833. return s
  39834. }
  39835. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateDataResult
  39836. type GetLaunchTemplateDataOutput struct {
  39837. _ struct{} `type:"structure"`
  39838. // The instance data.
  39839. LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
  39840. }
  39841. // String returns the string representation
  39842. func (s GetLaunchTemplateDataOutput) String() string {
  39843. return awsutil.Prettify(s)
  39844. }
  39845. // GoString returns the string representation
  39846. func (s GetLaunchTemplateDataOutput) GoString() string {
  39847. return s.String()
  39848. }
  39849. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  39850. func (s *GetLaunchTemplateDataOutput) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *GetLaunchTemplateDataOutput {
  39851. s.LaunchTemplateData = v
  39852. return s
  39853. }
  39854. // Contains the parameters for GetPasswordData.
  39855. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordDataRequest
  39856. type GetPasswordDataInput struct {
  39857. _ struct{} `type:"structure"`
  39858. // Checks whether you have the required permissions for the action, without
  39859. // actually making the request, and provides an error response. If you have
  39860. // the required permissions, the error response is DryRunOperation. Otherwise,
  39861. // it is UnauthorizedOperation.
  39862. DryRun *bool `locationName:"dryRun" type:"boolean"`
  39863. // The ID of the Windows instance.
  39864. //
  39865. // InstanceId is a required field
  39866. InstanceId *string `type:"string" required:"true"`
  39867. }
  39868. // String returns the string representation
  39869. func (s GetPasswordDataInput) String() string {
  39870. return awsutil.Prettify(s)
  39871. }
  39872. // GoString returns the string representation
  39873. func (s GetPasswordDataInput) GoString() string {
  39874. return s.String()
  39875. }
  39876. // Validate inspects the fields of the type to determine if they are valid.
  39877. func (s *GetPasswordDataInput) Validate() error {
  39878. invalidParams := request.ErrInvalidParams{Context: "GetPasswordDataInput"}
  39879. if s.InstanceId == nil {
  39880. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  39881. }
  39882. if invalidParams.Len() > 0 {
  39883. return invalidParams
  39884. }
  39885. return nil
  39886. }
  39887. // SetDryRun sets the DryRun field's value.
  39888. func (s *GetPasswordDataInput) SetDryRun(v bool) *GetPasswordDataInput {
  39889. s.DryRun = &v
  39890. return s
  39891. }
  39892. // SetInstanceId sets the InstanceId field's value.
  39893. func (s *GetPasswordDataInput) SetInstanceId(v string) *GetPasswordDataInput {
  39894. s.InstanceId = &v
  39895. return s
  39896. }
  39897. // Contains the output of GetPasswordData.
  39898. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetPasswordDataResult
  39899. type GetPasswordDataOutput struct {
  39900. _ struct{} `type:"structure"`
  39901. // The ID of the Windows instance.
  39902. InstanceId *string `locationName:"instanceId" type:"string"`
  39903. // The password of the instance. Returns an empty string if the password is
  39904. // not available.
  39905. PasswordData *string `locationName:"passwordData" type:"string"`
  39906. // The time the data was last updated.
  39907. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  39908. }
  39909. // String returns the string representation
  39910. func (s GetPasswordDataOutput) String() string {
  39911. return awsutil.Prettify(s)
  39912. }
  39913. // GoString returns the string representation
  39914. func (s GetPasswordDataOutput) GoString() string {
  39915. return s.String()
  39916. }
  39917. // SetInstanceId sets the InstanceId field's value.
  39918. func (s *GetPasswordDataOutput) SetInstanceId(v string) *GetPasswordDataOutput {
  39919. s.InstanceId = &v
  39920. return s
  39921. }
  39922. // SetPasswordData sets the PasswordData field's value.
  39923. func (s *GetPasswordDataOutput) SetPasswordData(v string) *GetPasswordDataOutput {
  39924. s.PasswordData = &v
  39925. return s
  39926. }
  39927. // SetTimestamp sets the Timestamp field's value.
  39928. func (s *GetPasswordDataOutput) SetTimestamp(v time.Time) *GetPasswordDataOutput {
  39929. s.Timestamp = &v
  39930. return s
  39931. }
  39932. // Contains the parameters for GetReservedInstanceExchangeQuote.
  39933. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuoteRequest
  39934. type GetReservedInstancesExchangeQuoteInput struct {
  39935. _ struct{} `type:"structure"`
  39936. // Checks whether you have the required permissions for the action, without
  39937. // actually making the request, and provides an error response. If you have
  39938. // the required permissions, the error response is DryRunOperation. Otherwise,
  39939. // it is UnauthorizedOperation.
  39940. DryRun *bool `type:"boolean"`
  39941. // The IDs of the Convertible Reserved Instances to exchange.
  39942. //
  39943. // ReservedInstanceIds is a required field
  39944. ReservedInstanceIds []*string `locationName:"ReservedInstanceId" locationNameList:"ReservedInstanceId" type:"list" required:"true"`
  39945. // The configuration of the target Convertible Reserved Instance to exchange
  39946. // for your current Convertible Reserved Instances.
  39947. TargetConfigurations []*TargetConfigurationRequest `locationName:"TargetConfiguration" locationNameList:"TargetConfigurationRequest" type:"list"`
  39948. }
  39949. // String returns the string representation
  39950. func (s GetReservedInstancesExchangeQuoteInput) String() string {
  39951. return awsutil.Prettify(s)
  39952. }
  39953. // GoString returns the string representation
  39954. func (s GetReservedInstancesExchangeQuoteInput) GoString() string {
  39955. return s.String()
  39956. }
  39957. // Validate inspects the fields of the type to determine if they are valid.
  39958. func (s *GetReservedInstancesExchangeQuoteInput) Validate() error {
  39959. invalidParams := request.ErrInvalidParams{Context: "GetReservedInstancesExchangeQuoteInput"}
  39960. if s.ReservedInstanceIds == nil {
  39961. invalidParams.Add(request.NewErrParamRequired("ReservedInstanceIds"))
  39962. }
  39963. if s.TargetConfigurations != nil {
  39964. for i, v := range s.TargetConfigurations {
  39965. if v == nil {
  39966. continue
  39967. }
  39968. if err := v.Validate(); err != nil {
  39969. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetConfigurations", i), err.(request.ErrInvalidParams))
  39970. }
  39971. }
  39972. }
  39973. if invalidParams.Len() > 0 {
  39974. return invalidParams
  39975. }
  39976. return nil
  39977. }
  39978. // SetDryRun sets the DryRun field's value.
  39979. func (s *GetReservedInstancesExchangeQuoteInput) SetDryRun(v bool) *GetReservedInstancesExchangeQuoteInput {
  39980. s.DryRun = &v
  39981. return s
  39982. }
  39983. // SetReservedInstanceIds sets the ReservedInstanceIds field's value.
  39984. func (s *GetReservedInstancesExchangeQuoteInput) SetReservedInstanceIds(v []*string) *GetReservedInstancesExchangeQuoteInput {
  39985. s.ReservedInstanceIds = v
  39986. return s
  39987. }
  39988. // SetTargetConfigurations sets the TargetConfigurations field's value.
  39989. func (s *GetReservedInstancesExchangeQuoteInput) SetTargetConfigurations(v []*TargetConfigurationRequest) *GetReservedInstancesExchangeQuoteInput {
  39990. s.TargetConfigurations = v
  39991. return s
  39992. }
  39993. // Contains the output of GetReservedInstancesExchangeQuote.
  39994. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetReservedInstancesExchangeQuoteResult
  39995. type GetReservedInstancesExchangeQuoteOutput struct {
  39996. _ struct{} `type:"structure"`
  39997. // The currency of the transaction.
  39998. CurrencyCode *string `locationName:"currencyCode" type:"string"`
  39999. // If true, the exchange is valid. If false, the exchange cannot be completed.
  40000. IsValidExchange *bool `locationName:"isValidExchange" type:"boolean"`
  40001. // The new end date of the reservation term.
  40002. OutputReservedInstancesWillExpireAt *time.Time `locationName:"outputReservedInstancesWillExpireAt" type:"timestamp" timestampFormat:"iso8601"`
  40003. // The total true upfront charge for the exchange.
  40004. PaymentDue *string `locationName:"paymentDue" type:"string"`
  40005. // The cost associated with the Reserved Instance.
  40006. ReservedInstanceValueRollup *ReservationValue `locationName:"reservedInstanceValueRollup" type:"structure"`
  40007. // The configuration of your Convertible Reserved Instances.
  40008. ReservedInstanceValueSet []*ReservedInstanceReservationValue `locationName:"reservedInstanceValueSet" locationNameList:"item" type:"list"`
  40009. // The cost associated with the Reserved Instance.
  40010. TargetConfigurationValueRollup *ReservationValue `locationName:"targetConfigurationValueRollup" type:"structure"`
  40011. // The values of the target Convertible Reserved Instances.
  40012. TargetConfigurationValueSet []*TargetReservationValue `locationName:"targetConfigurationValueSet" locationNameList:"item" type:"list"`
  40013. // Describes the reason why the exchange cannot be completed.
  40014. ValidationFailureReason *string `locationName:"validationFailureReason" type:"string"`
  40015. }
  40016. // String returns the string representation
  40017. func (s GetReservedInstancesExchangeQuoteOutput) String() string {
  40018. return awsutil.Prettify(s)
  40019. }
  40020. // GoString returns the string representation
  40021. func (s GetReservedInstancesExchangeQuoteOutput) GoString() string {
  40022. return s.String()
  40023. }
  40024. // SetCurrencyCode sets the CurrencyCode field's value.
  40025. func (s *GetReservedInstancesExchangeQuoteOutput) SetCurrencyCode(v string) *GetReservedInstancesExchangeQuoteOutput {
  40026. s.CurrencyCode = &v
  40027. return s
  40028. }
  40029. // SetIsValidExchange sets the IsValidExchange field's value.
  40030. func (s *GetReservedInstancesExchangeQuoteOutput) SetIsValidExchange(v bool) *GetReservedInstancesExchangeQuoteOutput {
  40031. s.IsValidExchange = &v
  40032. return s
  40033. }
  40034. // SetOutputReservedInstancesWillExpireAt sets the OutputReservedInstancesWillExpireAt field's value.
  40035. func (s *GetReservedInstancesExchangeQuoteOutput) SetOutputReservedInstancesWillExpireAt(v time.Time) *GetReservedInstancesExchangeQuoteOutput {
  40036. s.OutputReservedInstancesWillExpireAt = &v
  40037. return s
  40038. }
  40039. // SetPaymentDue sets the PaymentDue field's value.
  40040. func (s *GetReservedInstancesExchangeQuoteOutput) SetPaymentDue(v string) *GetReservedInstancesExchangeQuoteOutput {
  40041. s.PaymentDue = &v
  40042. return s
  40043. }
  40044. // SetReservedInstanceValueRollup sets the ReservedInstanceValueRollup field's value.
  40045. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  40046. s.ReservedInstanceValueRollup = v
  40047. return s
  40048. }
  40049. // SetReservedInstanceValueSet sets the ReservedInstanceValueSet field's value.
  40050. func (s *GetReservedInstancesExchangeQuoteOutput) SetReservedInstanceValueSet(v []*ReservedInstanceReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  40051. s.ReservedInstanceValueSet = v
  40052. return s
  40053. }
  40054. // SetTargetConfigurationValueRollup sets the TargetConfigurationValueRollup field's value.
  40055. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueRollup(v *ReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  40056. s.TargetConfigurationValueRollup = v
  40057. return s
  40058. }
  40059. // SetTargetConfigurationValueSet sets the TargetConfigurationValueSet field's value.
  40060. func (s *GetReservedInstancesExchangeQuoteOutput) SetTargetConfigurationValueSet(v []*TargetReservationValue) *GetReservedInstancesExchangeQuoteOutput {
  40061. s.TargetConfigurationValueSet = v
  40062. return s
  40063. }
  40064. // SetValidationFailureReason sets the ValidationFailureReason field's value.
  40065. func (s *GetReservedInstancesExchangeQuoteOutput) SetValidationFailureReason(v string) *GetReservedInstancesExchangeQuoteOutput {
  40066. s.ValidationFailureReason = &v
  40067. return s
  40068. }
  40069. // Describes a security group.
  40070. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GroupIdentifier
  40071. type GroupIdentifier struct {
  40072. _ struct{} `type:"structure"`
  40073. // The ID of the security group.
  40074. GroupId *string `locationName:"groupId" type:"string"`
  40075. // The name of the security group.
  40076. GroupName *string `locationName:"groupName" type:"string"`
  40077. }
  40078. // String returns the string representation
  40079. func (s GroupIdentifier) String() string {
  40080. return awsutil.Prettify(s)
  40081. }
  40082. // GoString returns the string representation
  40083. func (s GroupIdentifier) GoString() string {
  40084. return s.String()
  40085. }
  40086. // SetGroupId sets the GroupId field's value.
  40087. func (s *GroupIdentifier) SetGroupId(v string) *GroupIdentifier {
  40088. s.GroupId = &v
  40089. return s
  40090. }
  40091. // SetGroupName sets the GroupName field's value.
  40092. func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier {
  40093. s.GroupName = &v
  40094. return s
  40095. }
  40096. // Describes an event in the history of the Spot Fleet request.
  40097. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HistoryRecord
  40098. type HistoryRecord struct {
  40099. _ struct{} `type:"structure"`
  40100. // Information about the event.
  40101. //
  40102. // EventInformation is a required field
  40103. EventInformation *EventInformation `locationName:"eventInformation" type:"structure" required:"true"`
  40104. // The event type.
  40105. //
  40106. // * error - An error with the Spot Fleet request.
  40107. //
  40108. // * fleetRequestChange - A change in the status or configuration of the
  40109. // Spot Fleet request.
  40110. //
  40111. // * instanceChange - An instance was launched or terminated.
  40112. //
  40113. // * Information - An informational event.
  40114. //
  40115. // EventType is a required field
  40116. EventType *string `locationName:"eventType" type:"string" required:"true" enum:"EventType"`
  40117. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  40118. //
  40119. // Timestamp is a required field
  40120. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  40121. }
  40122. // String returns the string representation
  40123. func (s HistoryRecord) String() string {
  40124. return awsutil.Prettify(s)
  40125. }
  40126. // GoString returns the string representation
  40127. func (s HistoryRecord) GoString() string {
  40128. return s.String()
  40129. }
  40130. // SetEventInformation sets the EventInformation field's value.
  40131. func (s *HistoryRecord) SetEventInformation(v *EventInformation) *HistoryRecord {
  40132. s.EventInformation = v
  40133. return s
  40134. }
  40135. // SetEventType sets the EventType field's value.
  40136. func (s *HistoryRecord) SetEventType(v string) *HistoryRecord {
  40137. s.EventType = &v
  40138. return s
  40139. }
  40140. // SetTimestamp sets the Timestamp field's value.
  40141. func (s *HistoryRecord) SetTimestamp(v time.Time) *HistoryRecord {
  40142. s.Timestamp = &v
  40143. return s
  40144. }
  40145. // Describes the properties of the Dedicated Host.
  40146. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Host
  40147. type Host struct {
  40148. _ struct{} `type:"structure"`
  40149. // Whether auto-placement is on or off.
  40150. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  40151. // The Availability Zone of the Dedicated Host.
  40152. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  40153. // The number of new instances that can be launched onto the Dedicated Host.
  40154. AvailableCapacity *AvailableCapacity `locationName:"availableCapacity" type:"structure"`
  40155. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  40156. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  40157. // in the Amazon Elastic Compute Cloud User Guide.
  40158. ClientToken *string `locationName:"clientToken" type:"string"`
  40159. // The ID of the Dedicated Host.
  40160. HostId *string `locationName:"hostId" type:"string"`
  40161. // The hardware specifications of the Dedicated Host.
  40162. HostProperties *HostProperties `locationName:"hostProperties" type:"structure"`
  40163. // The reservation ID of the Dedicated Host. This returns a null response if
  40164. // the Dedicated Host doesn't have an associated reservation.
  40165. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  40166. // The IDs and instance type that are currently running on the Dedicated Host.
  40167. Instances []*HostInstance `locationName:"instances" locationNameList:"item" type:"list"`
  40168. // The Dedicated Host's state.
  40169. State *string `locationName:"state" type:"string" enum:"AllocationState"`
  40170. }
  40171. // String returns the string representation
  40172. func (s Host) String() string {
  40173. return awsutil.Prettify(s)
  40174. }
  40175. // GoString returns the string representation
  40176. func (s Host) GoString() string {
  40177. return s.String()
  40178. }
  40179. // SetAutoPlacement sets the AutoPlacement field's value.
  40180. func (s *Host) SetAutoPlacement(v string) *Host {
  40181. s.AutoPlacement = &v
  40182. return s
  40183. }
  40184. // SetAvailabilityZone sets the AvailabilityZone field's value.
  40185. func (s *Host) SetAvailabilityZone(v string) *Host {
  40186. s.AvailabilityZone = &v
  40187. return s
  40188. }
  40189. // SetAvailableCapacity sets the AvailableCapacity field's value.
  40190. func (s *Host) SetAvailableCapacity(v *AvailableCapacity) *Host {
  40191. s.AvailableCapacity = v
  40192. return s
  40193. }
  40194. // SetClientToken sets the ClientToken field's value.
  40195. func (s *Host) SetClientToken(v string) *Host {
  40196. s.ClientToken = &v
  40197. return s
  40198. }
  40199. // SetHostId sets the HostId field's value.
  40200. func (s *Host) SetHostId(v string) *Host {
  40201. s.HostId = &v
  40202. return s
  40203. }
  40204. // SetHostProperties sets the HostProperties field's value.
  40205. func (s *Host) SetHostProperties(v *HostProperties) *Host {
  40206. s.HostProperties = v
  40207. return s
  40208. }
  40209. // SetHostReservationId sets the HostReservationId field's value.
  40210. func (s *Host) SetHostReservationId(v string) *Host {
  40211. s.HostReservationId = &v
  40212. return s
  40213. }
  40214. // SetInstances sets the Instances field's value.
  40215. func (s *Host) SetInstances(v []*HostInstance) *Host {
  40216. s.Instances = v
  40217. return s
  40218. }
  40219. // SetState sets the State field's value.
  40220. func (s *Host) SetState(v string) *Host {
  40221. s.State = &v
  40222. return s
  40223. }
  40224. // Describes an instance running on a Dedicated Host.
  40225. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostInstance
  40226. type HostInstance struct {
  40227. _ struct{} `type:"structure"`
  40228. // the IDs of instances that are running on the Dedicated Host.
  40229. InstanceId *string `locationName:"instanceId" type:"string"`
  40230. // The instance type size (for example, m3.medium) of the running instance.
  40231. InstanceType *string `locationName:"instanceType" type:"string"`
  40232. }
  40233. // String returns the string representation
  40234. func (s HostInstance) String() string {
  40235. return awsutil.Prettify(s)
  40236. }
  40237. // GoString returns the string representation
  40238. func (s HostInstance) GoString() string {
  40239. return s.String()
  40240. }
  40241. // SetInstanceId sets the InstanceId field's value.
  40242. func (s *HostInstance) SetInstanceId(v string) *HostInstance {
  40243. s.InstanceId = &v
  40244. return s
  40245. }
  40246. // SetInstanceType sets the InstanceType field's value.
  40247. func (s *HostInstance) SetInstanceType(v string) *HostInstance {
  40248. s.InstanceType = &v
  40249. return s
  40250. }
  40251. // Details about the Dedicated Host Reservation offering.
  40252. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostOffering
  40253. type HostOffering struct {
  40254. _ struct{} `type:"structure"`
  40255. // The currency of the offering.
  40256. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  40257. // The duration of the offering (in seconds).
  40258. Duration *int64 `locationName:"duration" type:"integer"`
  40259. // The hourly price of the offering.
  40260. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  40261. // The instance family of the offering.
  40262. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  40263. // The ID of the offering.
  40264. OfferingId *string `locationName:"offeringId" type:"string"`
  40265. // The available payment option.
  40266. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  40267. // The upfront price of the offering. Does not apply to No Upfront offerings.
  40268. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  40269. }
  40270. // String returns the string representation
  40271. func (s HostOffering) String() string {
  40272. return awsutil.Prettify(s)
  40273. }
  40274. // GoString returns the string representation
  40275. func (s HostOffering) GoString() string {
  40276. return s.String()
  40277. }
  40278. // SetCurrencyCode sets the CurrencyCode field's value.
  40279. func (s *HostOffering) SetCurrencyCode(v string) *HostOffering {
  40280. s.CurrencyCode = &v
  40281. return s
  40282. }
  40283. // SetDuration sets the Duration field's value.
  40284. func (s *HostOffering) SetDuration(v int64) *HostOffering {
  40285. s.Duration = &v
  40286. return s
  40287. }
  40288. // SetHourlyPrice sets the HourlyPrice field's value.
  40289. func (s *HostOffering) SetHourlyPrice(v string) *HostOffering {
  40290. s.HourlyPrice = &v
  40291. return s
  40292. }
  40293. // SetInstanceFamily sets the InstanceFamily field's value.
  40294. func (s *HostOffering) SetInstanceFamily(v string) *HostOffering {
  40295. s.InstanceFamily = &v
  40296. return s
  40297. }
  40298. // SetOfferingId sets the OfferingId field's value.
  40299. func (s *HostOffering) SetOfferingId(v string) *HostOffering {
  40300. s.OfferingId = &v
  40301. return s
  40302. }
  40303. // SetPaymentOption sets the PaymentOption field's value.
  40304. func (s *HostOffering) SetPaymentOption(v string) *HostOffering {
  40305. s.PaymentOption = &v
  40306. return s
  40307. }
  40308. // SetUpfrontPrice sets the UpfrontPrice field's value.
  40309. func (s *HostOffering) SetUpfrontPrice(v string) *HostOffering {
  40310. s.UpfrontPrice = &v
  40311. return s
  40312. }
  40313. // Describes properties of a Dedicated Host.
  40314. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostProperties
  40315. type HostProperties struct {
  40316. _ struct{} `type:"structure"`
  40317. // The number of cores on the Dedicated Host.
  40318. Cores *int64 `locationName:"cores" type:"integer"`
  40319. // The instance type size that the Dedicated Host supports (for example, m3.medium).
  40320. InstanceType *string `locationName:"instanceType" type:"string"`
  40321. // The number of sockets on the Dedicated Host.
  40322. Sockets *int64 `locationName:"sockets" type:"integer"`
  40323. // The number of vCPUs on the Dedicated Host.
  40324. TotalVCpus *int64 `locationName:"totalVCpus" type:"integer"`
  40325. }
  40326. // String returns the string representation
  40327. func (s HostProperties) String() string {
  40328. return awsutil.Prettify(s)
  40329. }
  40330. // GoString returns the string representation
  40331. func (s HostProperties) GoString() string {
  40332. return s.String()
  40333. }
  40334. // SetCores sets the Cores field's value.
  40335. func (s *HostProperties) SetCores(v int64) *HostProperties {
  40336. s.Cores = &v
  40337. return s
  40338. }
  40339. // SetInstanceType sets the InstanceType field's value.
  40340. func (s *HostProperties) SetInstanceType(v string) *HostProperties {
  40341. s.InstanceType = &v
  40342. return s
  40343. }
  40344. // SetSockets sets the Sockets field's value.
  40345. func (s *HostProperties) SetSockets(v int64) *HostProperties {
  40346. s.Sockets = &v
  40347. return s
  40348. }
  40349. // SetTotalVCpus sets the TotalVCpus field's value.
  40350. func (s *HostProperties) SetTotalVCpus(v int64) *HostProperties {
  40351. s.TotalVCpus = &v
  40352. return s
  40353. }
  40354. // Details about the Dedicated Host Reservation and associated Dedicated Hosts.
  40355. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HostReservation
  40356. type HostReservation struct {
  40357. _ struct{} `type:"structure"`
  40358. // The number of Dedicated Hosts the reservation is associated with.
  40359. Count *int64 `locationName:"count" type:"integer"`
  40360. // The currency in which the upfrontPrice and hourlyPrice amounts are specified.
  40361. // At this time, the only supported currency is USD.
  40362. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  40363. // The length of the reservation's term, specified in seconds. Can be 31536000
  40364. // (1 year) | 94608000 (3 years).
  40365. Duration *int64 `locationName:"duration" type:"integer"`
  40366. // The date and time that the reservation ends.
  40367. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
  40368. // The IDs of the Dedicated Hosts associated with the reservation.
  40369. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  40370. // The ID of the reservation that specifies the associated Dedicated Hosts.
  40371. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  40372. // The hourly price of the reservation.
  40373. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  40374. // The instance family of the Dedicated Host Reservation. The instance family
  40375. // on the Dedicated Host must be the same in order for it to benefit from the
  40376. // reservation.
  40377. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  40378. // The ID of the reservation. This remains the same regardless of which Dedicated
  40379. // Hosts are associated with it.
  40380. OfferingId *string `locationName:"offeringId" type:"string"`
  40381. // The payment option selected for this reservation.
  40382. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  40383. // The date and time that the reservation started.
  40384. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
  40385. // The state of the reservation.
  40386. State *string `locationName:"state" type:"string" enum:"ReservationState"`
  40387. // The upfront price of the reservation.
  40388. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  40389. }
  40390. // String returns the string representation
  40391. func (s HostReservation) String() string {
  40392. return awsutil.Prettify(s)
  40393. }
  40394. // GoString returns the string representation
  40395. func (s HostReservation) GoString() string {
  40396. return s.String()
  40397. }
  40398. // SetCount sets the Count field's value.
  40399. func (s *HostReservation) SetCount(v int64) *HostReservation {
  40400. s.Count = &v
  40401. return s
  40402. }
  40403. // SetCurrencyCode sets the CurrencyCode field's value.
  40404. func (s *HostReservation) SetCurrencyCode(v string) *HostReservation {
  40405. s.CurrencyCode = &v
  40406. return s
  40407. }
  40408. // SetDuration sets the Duration field's value.
  40409. func (s *HostReservation) SetDuration(v int64) *HostReservation {
  40410. s.Duration = &v
  40411. return s
  40412. }
  40413. // SetEnd sets the End field's value.
  40414. func (s *HostReservation) SetEnd(v time.Time) *HostReservation {
  40415. s.End = &v
  40416. return s
  40417. }
  40418. // SetHostIdSet sets the HostIdSet field's value.
  40419. func (s *HostReservation) SetHostIdSet(v []*string) *HostReservation {
  40420. s.HostIdSet = v
  40421. return s
  40422. }
  40423. // SetHostReservationId sets the HostReservationId field's value.
  40424. func (s *HostReservation) SetHostReservationId(v string) *HostReservation {
  40425. s.HostReservationId = &v
  40426. return s
  40427. }
  40428. // SetHourlyPrice sets the HourlyPrice field's value.
  40429. func (s *HostReservation) SetHourlyPrice(v string) *HostReservation {
  40430. s.HourlyPrice = &v
  40431. return s
  40432. }
  40433. // SetInstanceFamily sets the InstanceFamily field's value.
  40434. func (s *HostReservation) SetInstanceFamily(v string) *HostReservation {
  40435. s.InstanceFamily = &v
  40436. return s
  40437. }
  40438. // SetOfferingId sets the OfferingId field's value.
  40439. func (s *HostReservation) SetOfferingId(v string) *HostReservation {
  40440. s.OfferingId = &v
  40441. return s
  40442. }
  40443. // SetPaymentOption sets the PaymentOption field's value.
  40444. func (s *HostReservation) SetPaymentOption(v string) *HostReservation {
  40445. s.PaymentOption = &v
  40446. return s
  40447. }
  40448. // SetStart sets the Start field's value.
  40449. func (s *HostReservation) SetStart(v time.Time) *HostReservation {
  40450. s.Start = &v
  40451. return s
  40452. }
  40453. // SetState sets the State field's value.
  40454. func (s *HostReservation) SetState(v string) *HostReservation {
  40455. s.State = &v
  40456. return s
  40457. }
  40458. // SetUpfrontPrice sets the UpfrontPrice field's value.
  40459. func (s *HostReservation) SetUpfrontPrice(v string) *HostReservation {
  40460. s.UpfrontPrice = &v
  40461. return s
  40462. }
  40463. // Describes an IAM instance profile.
  40464. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfile
  40465. type IamInstanceProfile struct {
  40466. _ struct{} `type:"structure"`
  40467. // The Amazon Resource Name (ARN) of the instance profile.
  40468. Arn *string `locationName:"arn" type:"string"`
  40469. // The ID of the instance profile.
  40470. Id *string `locationName:"id" type:"string"`
  40471. }
  40472. // String returns the string representation
  40473. func (s IamInstanceProfile) String() string {
  40474. return awsutil.Prettify(s)
  40475. }
  40476. // GoString returns the string representation
  40477. func (s IamInstanceProfile) GoString() string {
  40478. return s.String()
  40479. }
  40480. // SetArn sets the Arn field's value.
  40481. func (s *IamInstanceProfile) SetArn(v string) *IamInstanceProfile {
  40482. s.Arn = &v
  40483. return s
  40484. }
  40485. // SetId sets the Id field's value.
  40486. func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile {
  40487. s.Id = &v
  40488. return s
  40489. }
  40490. // Describes an association between an IAM instance profile and an instance.
  40491. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfileAssociation
  40492. type IamInstanceProfileAssociation struct {
  40493. _ struct{} `type:"structure"`
  40494. // The ID of the association.
  40495. AssociationId *string `locationName:"associationId" type:"string"`
  40496. // The IAM instance profile.
  40497. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  40498. // The ID of the instance.
  40499. InstanceId *string `locationName:"instanceId" type:"string"`
  40500. // The state of the association.
  40501. State *string `locationName:"state" type:"string" enum:"IamInstanceProfileAssociationState"`
  40502. // The time the IAM instance profile was associated with the instance.
  40503. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  40504. }
  40505. // String returns the string representation
  40506. func (s IamInstanceProfileAssociation) String() string {
  40507. return awsutil.Prettify(s)
  40508. }
  40509. // GoString returns the string representation
  40510. func (s IamInstanceProfileAssociation) GoString() string {
  40511. return s.String()
  40512. }
  40513. // SetAssociationId sets the AssociationId field's value.
  40514. func (s *IamInstanceProfileAssociation) SetAssociationId(v string) *IamInstanceProfileAssociation {
  40515. s.AssociationId = &v
  40516. return s
  40517. }
  40518. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  40519. func (s *IamInstanceProfileAssociation) SetIamInstanceProfile(v *IamInstanceProfile) *IamInstanceProfileAssociation {
  40520. s.IamInstanceProfile = v
  40521. return s
  40522. }
  40523. // SetInstanceId sets the InstanceId field's value.
  40524. func (s *IamInstanceProfileAssociation) SetInstanceId(v string) *IamInstanceProfileAssociation {
  40525. s.InstanceId = &v
  40526. return s
  40527. }
  40528. // SetState sets the State field's value.
  40529. func (s *IamInstanceProfileAssociation) SetState(v string) *IamInstanceProfileAssociation {
  40530. s.State = &v
  40531. return s
  40532. }
  40533. // SetTimestamp sets the Timestamp field's value.
  40534. func (s *IamInstanceProfileAssociation) SetTimestamp(v time.Time) *IamInstanceProfileAssociation {
  40535. s.Timestamp = &v
  40536. return s
  40537. }
  40538. // Describes an IAM instance profile.
  40539. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IamInstanceProfileSpecification
  40540. type IamInstanceProfileSpecification struct {
  40541. _ struct{} `type:"structure"`
  40542. // The Amazon Resource Name (ARN) of the instance profile.
  40543. Arn *string `locationName:"arn" type:"string"`
  40544. // The name of the instance profile.
  40545. Name *string `locationName:"name" type:"string"`
  40546. }
  40547. // String returns the string representation
  40548. func (s IamInstanceProfileSpecification) String() string {
  40549. return awsutil.Prettify(s)
  40550. }
  40551. // GoString returns the string representation
  40552. func (s IamInstanceProfileSpecification) GoString() string {
  40553. return s.String()
  40554. }
  40555. // SetArn sets the Arn field's value.
  40556. func (s *IamInstanceProfileSpecification) SetArn(v string) *IamInstanceProfileSpecification {
  40557. s.Arn = &v
  40558. return s
  40559. }
  40560. // SetName sets the Name field's value.
  40561. func (s *IamInstanceProfileSpecification) SetName(v string) *IamInstanceProfileSpecification {
  40562. s.Name = &v
  40563. return s
  40564. }
  40565. // Describes the ICMP type and code.
  40566. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IcmpTypeCode
  40567. type IcmpTypeCode struct {
  40568. _ struct{} `type:"structure"`
  40569. // The ICMP code. A value of -1 means all codes for the specified ICMP type.
  40570. Code *int64 `locationName:"code" type:"integer"`
  40571. // The ICMP type. A value of -1 means all types.
  40572. Type *int64 `locationName:"type" type:"integer"`
  40573. }
  40574. // String returns the string representation
  40575. func (s IcmpTypeCode) String() string {
  40576. return awsutil.Prettify(s)
  40577. }
  40578. // GoString returns the string representation
  40579. func (s IcmpTypeCode) GoString() string {
  40580. return s.String()
  40581. }
  40582. // SetCode sets the Code field's value.
  40583. func (s *IcmpTypeCode) SetCode(v int64) *IcmpTypeCode {
  40584. s.Code = &v
  40585. return s
  40586. }
  40587. // SetType sets the Type field's value.
  40588. func (s *IcmpTypeCode) SetType(v int64) *IcmpTypeCode {
  40589. s.Type = &v
  40590. return s
  40591. }
  40592. // Describes the ID format for a resource.
  40593. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IdFormat
  40594. type IdFormat struct {
  40595. _ struct{} `type:"structure"`
  40596. // The date in UTC at which you are permanently switched over to using longer
  40597. // IDs. If a deadline is not yet available for this resource type, this field
  40598. // is not returned.
  40599. Deadline *time.Time `locationName:"deadline" type:"timestamp" timestampFormat:"iso8601"`
  40600. // The type of resource.
  40601. Resource *string `locationName:"resource" type:"string"`
  40602. // Indicates whether longer IDs (17-character IDs) are enabled for the resource.
  40603. UseLongIds *bool `locationName:"useLongIds" type:"boolean"`
  40604. }
  40605. // String returns the string representation
  40606. func (s IdFormat) String() string {
  40607. return awsutil.Prettify(s)
  40608. }
  40609. // GoString returns the string representation
  40610. func (s IdFormat) GoString() string {
  40611. return s.String()
  40612. }
  40613. // SetDeadline sets the Deadline field's value.
  40614. func (s *IdFormat) SetDeadline(v time.Time) *IdFormat {
  40615. s.Deadline = &v
  40616. return s
  40617. }
  40618. // SetResource sets the Resource field's value.
  40619. func (s *IdFormat) SetResource(v string) *IdFormat {
  40620. s.Resource = &v
  40621. return s
  40622. }
  40623. // SetUseLongIds sets the UseLongIds field's value.
  40624. func (s *IdFormat) SetUseLongIds(v bool) *IdFormat {
  40625. s.UseLongIds = &v
  40626. return s
  40627. }
  40628. // Describes an image.
  40629. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Image
  40630. type Image struct {
  40631. _ struct{} `type:"structure"`
  40632. // The architecture of the image.
  40633. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  40634. // Any block device mapping entries.
  40635. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  40636. // The date and time the image was created.
  40637. CreationDate *string `locationName:"creationDate" type:"string"`
  40638. // The description of the AMI that was provided during image creation.
  40639. Description *string `locationName:"description" type:"string"`
  40640. // Specifies whether enhanced networking with ENA is enabled.
  40641. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  40642. // The hypervisor type of the image.
  40643. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  40644. // The ID of the AMI.
  40645. ImageId *string `locationName:"imageId" type:"string"`
  40646. // The location of the AMI.
  40647. ImageLocation *string `locationName:"imageLocation" type:"string"`
  40648. // The AWS account alias (for example, amazon, self) or the AWS account ID of
  40649. // the AMI owner.
  40650. ImageOwnerAlias *string `locationName:"imageOwnerAlias" type:"string"`
  40651. // The type of image.
  40652. ImageType *string `locationName:"imageType" type:"string" enum:"ImageTypeValues"`
  40653. // The kernel associated with the image, if any. Only applicable for machine
  40654. // images.
  40655. KernelId *string `locationName:"kernelId" type:"string"`
  40656. // The name of the AMI that was provided during image creation.
  40657. Name *string `locationName:"name" type:"string"`
  40658. // The AWS account ID of the image owner.
  40659. OwnerId *string `locationName:"imageOwnerId" type:"string"`
  40660. // The value is Windows for Windows AMIs; otherwise blank.
  40661. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  40662. // Any product codes associated with the AMI.
  40663. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  40664. // Indicates whether the image has public launch permissions. The value is true
  40665. // if this image has public launch permissions or false if it has only implicit
  40666. // and explicit launch permissions.
  40667. Public *bool `locationName:"isPublic" type:"boolean"`
  40668. // The RAM disk associated with the image, if any. Only applicable for machine
  40669. // images.
  40670. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  40671. // The device name of the root device volume (for example, /dev/sda1).
  40672. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  40673. // The type of root device used by the AMI. The AMI can use an EBS volume or
  40674. // an instance store volume.
  40675. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  40676. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  40677. // interface is enabled.
  40678. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  40679. // The current state of the AMI. If the state is available, the image is successfully
  40680. // registered and can be used to launch an instance.
  40681. State *string `locationName:"imageState" type:"string" enum:"ImageState"`
  40682. // The reason for the state change.
  40683. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  40684. // Any tags assigned to the image.
  40685. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  40686. // The type of virtualization of the AMI.
  40687. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  40688. }
  40689. // String returns the string representation
  40690. func (s Image) String() string {
  40691. return awsutil.Prettify(s)
  40692. }
  40693. // GoString returns the string representation
  40694. func (s Image) GoString() string {
  40695. return s.String()
  40696. }
  40697. // SetArchitecture sets the Architecture field's value.
  40698. func (s *Image) SetArchitecture(v string) *Image {
  40699. s.Architecture = &v
  40700. return s
  40701. }
  40702. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  40703. func (s *Image) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Image {
  40704. s.BlockDeviceMappings = v
  40705. return s
  40706. }
  40707. // SetCreationDate sets the CreationDate field's value.
  40708. func (s *Image) SetCreationDate(v string) *Image {
  40709. s.CreationDate = &v
  40710. return s
  40711. }
  40712. // SetDescription sets the Description field's value.
  40713. func (s *Image) SetDescription(v string) *Image {
  40714. s.Description = &v
  40715. return s
  40716. }
  40717. // SetEnaSupport sets the EnaSupport field's value.
  40718. func (s *Image) SetEnaSupport(v bool) *Image {
  40719. s.EnaSupport = &v
  40720. return s
  40721. }
  40722. // SetHypervisor sets the Hypervisor field's value.
  40723. func (s *Image) SetHypervisor(v string) *Image {
  40724. s.Hypervisor = &v
  40725. return s
  40726. }
  40727. // SetImageId sets the ImageId field's value.
  40728. func (s *Image) SetImageId(v string) *Image {
  40729. s.ImageId = &v
  40730. return s
  40731. }
  40732. // SetImageLocation sets the ImageLocation field's value.
  40733. func (s *Image) SetImageLocation(v string) *Image {
  40734. s.ImageLocation = &v
  40735. return s
  40736. }
  40737. // SetImageOwnerAlias sets the ImageOwnerAlias field's value.
  40738. func (s *Image) SetImageOwnerAlias(v string) *Image {
  40739. s.ImageOwnerAlias = &v
  40740. return s
  40741. }
  40742. // SetImageType sets the ImageType field's value.
  40743. func (s *Image) SetImageType(v string) *Image {
  40744. s.ImageType = &v
  40745. return s
  40746. }
  40747. // SetKernelId sets the KernelId field's value.
  40748. func (s *Image) SetKernelId(v string) *Image {
  40749. s.KernelId = &v
  40750. return s
  40751. }
  40752. // SetName sets the Name field's value.
  40753. func (s *Image) SetName(v string) *Image {
  40754. s.Name = &v
  40755. return s
  40756. }
  40757. // SetOwnerId sets the OwnerId field's value.
  40758. func (s *Image) SetOwnerId(v string) *Image {
  40759. s.OwnerId = &v
  40760. return s
  40761. }
  40762. // SetPlatform sets the Platform field's value.
  40763. func (s *Image) SetPlatform(v string) *Image {
  40764. s.Platform = &v
  40765. return s
  40766. }
  40767. // SetProductCodes sets the ProductCodes field's value.
  40768. func (s *Image) SetProductCodes(v []*ProductCode) *Image {
  40769. s.ProductCodes = v
  40770. return s
  40771. }
  40772. // SetPublic sets the Public field's value.
  40773. func (s *Image) SetPublic(v bool) *Image {
  40774. s.Public = &v
  40775. return s
  40776. }
  40777. // SetRamdiskId sets the RamdiskId field's value.
  40778. func (s *Image) SetRamdiskId(v string) *Image {
  40779. s.RamdiskId = &v
  40780. return s
  40781. }
  40782. // SetRootDeviceName sets the RootDeviceName field's value.
  40783. func (s *Image) SetRootDeviceName(v string) *Image {
  40784. s.RootDeviceName = &v
  40785. return s
  40786. }
  40787. // SetRootDeviceType sets the RootDeviceType field's value.
  40788. func (s *Image) SetRootDeviceType(v string) *Image {
  40789. s.RootDeviceType = &v
  40790. return s
  40791. }
  40792. // SetSriovNetSupport sets the SriovNetSupport field's value.
  40793. func (s *Image) SetSriovNetSupport(v string) *Image {
  40794. s.SriovNetSupport = &v
  40795. return s
  40796. }
  40797. // SetState sets the State field's value.
  40798. func (s *Image) SetState(v string) *Image {
  40799. s.State = &v
  40800. return s
  40801. }
  40802. // SetStateReason sets the StateReason field's value.
  40803. func (s *Image) SetStateReason(v *StateReason) *Image {
  40804. s.StateReason = v
  40805. return s
  40806. }
  40807. // SetTags sets the Tags field's value.
  40808. func (s *Image) SetTags(v []*Tag) *Image {
  40809. s.Tags = v
  40810. return s
  40811. }
  40812. // SetVirtualizationType sets the VirtualizationType field's value.
  40813. func (s *Image) SetVirtualizationType(v string) *Image {
  40814. s.VirtualizationType = &v
  40815. return s
  40816. }
  40817. // Describes the disk container object for an import image task.
  40818. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageDiskContainer
  40819. type ImageDiskContainer struct {
  40820. _ struct{} `type:"structure"`
  40821. // The description of the disk image.
  40822. Description *string `type:"string"`
  40823. // The block device mapping for the disk.
  40824. DeviceName *string `type:"string"`
  40825. // The format of the disk image being imported.
  40826. //
  40827. // Valid values: RAW | VHD | VMDK | OVA
  40828. Format *string `type:"string"`
  40829. // The ID of the EBS snapshot to be used for importing the snapshot.
  40830. SnapshotId *string `type:"string"`
  40831. // The URL to the Amazon S3-based disk image being imported. The URL can either
  40832. // be a https URL (https://..) or an Amazon S3 URL (s3://..)
  40833. Url *string `type:"string"`
  40834. // The S3 bucket for the disk image.
  40835. UserBucket *UserBucket `type:"structure"`
  40836. }
  40837. // String returns the string representation
  40838. func (s ImageDiskContainer) String() string {
  40839. return awsutil.Prettify(s)
  40840. }
  40841. // GoString returns the string representation
  40842. func (s ImageDiskContainer) GoString() string {
  40843. return s.String()
  40844. }
  40845. // SetDescription sets the Description field's value.
  40846. func (s *ImageDiskContainer) SetDescription(v string) *ImageDiskContainer {
  40847. s.Description = &v
  40848. return s
  40849. }
  40850. // SetDeviceName sets the DeviceName field's value.
  40851. func (s *ImageDiskContainer) SetDeviceName(v string) *ImageDiskContainer {
  40852. s.DeviceName = &v
  40853. return s
  40854. }
  40855. // SetFormat sets the Format field's value.
  40856. func (s *ImageDiskContainer) SetFormat(v string) *ImageDiskContainer {
  40857. s.Format = &v
  40858. return s
  40859. }
  40860. // SetSnapshotId sets the SnapshotId field's value.
  40861. func (s *ImageDiskContainer) SetSnapshotId(v string) *ImageDiskContainer {
  40862. s.SnapshotId = &v
  40863. return s
  40864. }
  40865. // SetUrl sets the Url field's value.
  40866. func (s *ImageDiskContainer) SetUrl(v string) *ImageDiskContainer {
  40867. s.Url = &v
  40868. return s
  40869. }
  40870. // SetUserBucket sets the UserBucket field's value.
  40871. func (s *ImageDiskContainer) SetUserBucket(v *UserBucket) *ImageDiskContainer {
  40872. s.UserBucket = v
  40873. return s
  40874. }
  40875. // Contains the parameters for ImportImage.
  40876. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageRequest
  40877. type ImportImageInput struct {
  40878. _ struct{} `type:"structure"`
  40879. // The architecture of the virtual machine.
  40880. //
  40881. // Valid values: i386 | x86_64
  40882. Architecture *string `type:"string"`
  40883. // The client-specific data.
  40884. ClientData *ClientData `type:"structure"`
  40885. // The token to enable idempotency for VM import requests.
  40886. ClientToken *string `type:"string"`
  40887. // A description string for the import image task.
  40888. Description *string `type:"string"`
  40889. // Information about the disk containers.
  40890. DiskContainers []*ImageDiskContainer `locationName:"DiskContainer" locationNameList:"item" type:"list"`
  40891. // Checks whether you have the required permissions for the action, without
  40892. // actually making the request, and provides an error response. If you have
  40893. // the required permissions, the error response is DryRunOperation. Otherwise,
  40894. // it is UnauthorizedOperation.
  40895. DryRun *bool `type:"boolean"`
  40896. // The target hypervisor platform.
  40897. //
  40898. // Valid values: xen
  40899. Hypervisor *string `type:"string"`
  40900. // The license type to be used for the Amazon Machine Image (AMI) after importing.
  40901. //
  40902. // Note: You may only use BYOL if you have existing licenses with rights to
  40903. // use these licenses in a third party cloud like AWS. For more information,
  40904. // see Prerequisites (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#prerequisites-image)
  40905. // in the VM Import/Export User Guide.
  40906. //
  40907. // Valid values: AWS | BYOL
  40908. LicenseType *string `type:"string"`
  40909. // The operating system of the virtual machine.
  40910. //
  40911. // Valid values: Windows | Linux
  40912. Platform *string `type:"string"`
  40913. // The name of the role to use when not using the default role, 'vmimport'.
  40914. RoleName *string `type:"string"`
  40915. }
  40916. // String returns the string representation
  40917. func (s ImportImageInput) String() string {
  40918. return awsutil.Prettify(s)
  40919. }
  40920. // GoString returns the string representation
  40921. func (s ImportImageInput) GoString() string {
  40922. return s.String()
  40923. }
  40924. // SetArchitecture sets the Architecture field's value.
  40925. func (s *ImportImageInput) SetArchitecture(v string) *ImportImageInput {
  40926. s.Architecture = &v
  40927. return s
  40928. }
  40929. // SetClientData sets the ClientData field's value.
  40930. func (s *ImportImageInput) SetClientData(v *ClientData) *ImportImageInput {
  40931. s.ClientData = v
  40932. return s
  40933. }
  40934. // SetClientToken sets the ClientToken field's value.
  40935. func (s *ImportImageInput) SetClientToken(v string) *ImportImageInput {
  40936. s.ClientToken = &v
  40937. return s
  40938. }
  40939. // SetDescription sets the Description field's value.
  40940. func (s *ImportImageInput) SetDescription(v string) *ImportImageInput {
  40941. s.Description = &v
  40942. return s
  40943. }
  40944. // SetDiskContainers sets the DiskContainers field's value.
  40945. func (s *ImportImageInput) SetDiskContainers(v []*ImageDiskContainer) *ImportImageInput {
  40946. s.DiskContainers = v
  40947. return s
  40948. }
  40949. // SetDryRun sets the DryRun field's value.
  40950. func (s *ImportImageInput) SetDryRun(v bool) *ImportImageInput {
  40951. s.DryRun = &v
  40952. return s
  40953. }
  40954. // SetHypervisor sets the Hypervisor field's value.
  40955. func (s *ImportImageInput) SetHypervisor(v string) *ImportImageInput {
  40956. s.Hypervisor = &v
  40957. return s
  40958. }
  40959. // SetLicenseType sets the LicenseType field's value.
  40960. func (s *ImportImageInput) SetLicenseType(v string) *ImportImageInput {
  40961. s.LicenseType = &v
  40962. return s
  40963. }
  40964. // SetPlatform sets the Platform field's value.
  40965. func (s *ImportImageInput) SetPlatform(v string) *ImportImageInput {
  40966. s.Platform = &v
  40967. return s
  40968. }
  40969. // SetRoleName sets the RoleName field's value.
  40970. func (s *ImportImageInput) SetRoleName(v string) *ImportImageInput {
  40971. s.RoleName = &v
  40972. return s
  40973. }
  40974. // Contains the output for ImportImage.
  40975. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageResult
  40976. type ImportImageOutput struct {
  40977. _ struct{} `type:"structure"`
  40978. // The architecture of the virtual machine.
  40979. Architecture *string `locationName:"architecture" type:"string"`
  40980. // A description of the import task.
  40981. Description *string `locationName:"description" type:"string"`
  40982. // The target hypervisor of the import task.
  40983. Hypervisor *string `locationName:"hypervisor" type:"string"`
  40984. // The ID of the Amazon Machine Image (AMI) created by the import task.
  40985. ImageId *string `locationName:"imageId" type:"string"`
  40986. // The task ID of the import image task.
  40987. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  40988. // The license type of the virtual machine.
  40989. LicenseType *string `locationName:"licenseType" type:"string"`
  40990. // The operating system of the virtual machine.
  40991. Platform *string `locationName:"platform" type:"string"`
  40992. // The progress of the task.
  40993. Progress *string `locationName:"progress" type:"string"`
  40994. // Information about the snapshots.
  40995. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  40996. // A brief status of the task.
  40997. Status *string `locationName:"status" type:"string"`
  40998. // A detailed status message of the import task.
  40999. StatusMessage *string `locationName:"statusMessage" type:"string"`
  41000. }
  41001. // String returns the string representation
  41002. func (s ImportImageOutput) String() string {
  41003. return awsutil.Prettify(s)
  41004. }
  41005. // GoString returns the string representation
  41006. func (s ImportImageOutput) GoString() string {
  41007. return s.String()
  41008. }
  41009. // SetArchitecture sets the Architecture field's value.
  41010. func (s *ImportImageOutput) SetArchitecture(v string) *ImportImageOutput {
  41011. s.Architecture = &v
  41012. return s
  41013. }
  41014. // SetDescription sets the Description field's value.
  41015. func (s *ImportImageOutput) SetDescription(v string) *ImportImageOutput {
  41016. s.Description = &v
  41017. return s
  41018. }
  41019. // SetHypervisor sets the Hypervisor field's value.
  41020. func (s *ImportImageOutput) SetHypervisor(v string) *ImportImageOutput {
  41021. s.Hypervisor = &v
  41022. return s
  41023. }
  41024. // SetImageId sets the ImageId field's value.
  41025. func (s *ImportImageOutput) SetImageId(v string) *ImportImageOutput {
  41026. s.ImageId = &v
  41027. return s
  41028. }
  41029. // SetImportTaskId sets the ImportTaskId field's value.
  41030. func (s *ImportImageOutput) SetImportTaskId(v string) *ImportImageOutput {
  41031. s.ImportTaskId = &v
  41032. return s
  41033. }
  41034. // SetLicenseType sets the LicenseType field's value.
  41035. func (s *ImportImageOutput) SetLicenseType(v string) *ImportImageOutput {
  41036. s.LicenseType = &v
  41037. return s
  41038. }
  41039. // SetPlatform sets the Platform field's value.
  41040. func (s *ImportImageOutput) SetPlatform(v string) *ImportImageOutput {
  41041. s.Platform = &v
  41042. return s
  41043. }
  41044. // SetProgress sets the Progress field's value.
  41045. func (s *ImportImageOutput) SetProgress(v string) *ImportImageOutput {
  41046. s.Progress = &v
  41047. return s
  41048. }
  41049. // SetSnapshotDetails sets the SnapshotDetails field's value.
  41050. func (s *ImportImageOutput) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageOutput {
  41051. s.SnapshotDetails = v
  41052. return s
  41053. }
  41054. // SetStatus sets the Status field's value.
  41055. func (s *ImportImageOutput) SetStatus(v string) *ImportImageOutput {
  41056. s.Status = &v
  41057. return s
  41058. }
  41059. // SetStatusMessage sets the StatusMessage field's value.
  41060. func (s *ImportImageOutput) SetStatusMessage(v string) *ImportImageOutput {
  41061. s.StatusMessage = &v
  41062. return s
  41063. }
  41064. // Describes an import image task.
  41065. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportImageTask
  41066. type ImportImageTask struct {
  41067. _ struct{} `type:"structure"`
  41068. // The architecture of the virtual machine.
  41069. //
  41070. // Valid values: i386 | x86_64
  41071. Architecture *string `locationName:"architecture" type:"string"`
  41072. // A description of the import task.
  41073. Description *string `locationName:"description" type:"string"`
  41074. // The target hypervisor for the import task.
  41075. //
  41076. // Valid values: xen
  41077. Hypervisor *string `locationName:"hypervisor" type:"string"`
  41078. // The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
  41079. ImageId *string `locationName:"imageId" type:"string"`
  41080. // The ID of the import image task.
  41081. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  41082. // The license type of the virtual machine.
  41083. LicenseType *string `locationName:"licenseType" type:"string"`
  41084. // The description string for the import image task.
  41085. Platform *string `locationName:"platform" type:"string"`
  41086. // The percentage of progress of the import image task.
  41087. Progress *string `locationName:"progress" type:"string"`
  41088. // Information about the snapshots.
  41089. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  41090. // A brief status for the import image task.
  41091. Status *string `locationName:"status" type:"string"`
  41092. // A descriptive status message for the import image task.
  41093. StatusMessage *string `locationName:"statusMessage" type:"string"`
  41094. }
  41095. // String returns the string representation
  41096. func (s ImportImageTask) String() string {
  41097. return awsutil.Prettify(s)
  41098. }
  41099. // GoString returns the string representation
  41100. func (s ImportImageTask) GoString() string {
  41101. return s.String()
  41102. }
  41103. // SetArchitecture sets the Architecture field's value.
  41104. func (s *ImportImageTask) SetArchitecture(v string) *ImportImageTask {
  41105. s.Architecture = &v
  41106. return s
  41107. }
  41108. // SetDescription sets the Description field's value.
  41109. func (s *ImportImageTask) SetDescription(v string) *ImportImageTask {
  41110. s.Description = &v
  41111. return s
  41112. }
  41113. // SetHypervisor sets the Hypervisor field's value.
  41114. func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask {
  41115. s.Hypervisor = &v
  41116. return s
  41117. }
  41118. // SetImageId sets the ImageId field's value.
  41119. func (s *ImportImageTask) SetImageId(v string) *ImportImageTask {
  41120. s.ImageId = &v
  41121. return s
  41122. }
  41123. // SetImportTaskId sets the ImportTaskId field's value.
  41124. func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask {
  41125. s.ImportTaskId = &v
  41126. return s
  41127. }
  41128. // SetLicenseType sets the LicenseType field's value.
  41129. func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask {
  41130. s.LicenseType = &v
  41131. return s
  41132. }
  41133. // SetPlatform sets the Platform field's value.
  41134. func (s *ImportImageTask) SetPlatform(v string) *ImportImageTask {
  41135. s.Platform = &v
  41136. return s
  41137. }
  41138. // SetProgress sets the Progress field's value.
  41139. func (s *ImportImageTask) SetProgress(v string) *ImportImageTask {
  41140. s.Progress = &v
  41141. return s
  41142. }
  41143. // SetSnapshotDetails sets the SnapshotDetails field's value.
  41144. func (s *ImportImageTask) SetSnapshotDetails(v []*SnapshotDetail) *ImportImageTask {
  41145. s.SnapshotDetails = v
  41146. return s
  41147. }
  41148. // SetStatus sets the Status field's value.
  41149. func (s *ImportImageTask) SetStatus(v string) *ImportImageTask {
  41150. s.Status = &v
  41151. return s
  41152. }
  41153. // SetStatusMessage sets the StatusMessage field's value.
  41154. func (s *ImportImageTask) SetStatusMessage(v string) *ImportImageTask {
  41155. s.StatusMessage = &v
  41156. return s
  41157. }
  41158. // Contains the parameters for ImportInstance.
  41159. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceRequest
  41160. type ImportInstanceInput struct {
  41161. _ struct{} `type:"structure"`
  41162. // A description for the instance being imported.
  41163. Description *string `locationName:"description" type:"string"`
  41164. // The disk image.
  41165. DiskImages []*DiskImage `locationName:"diskImage" type:"list"`
  41166. // Checks whether you have the required permissions for the action, without
  41167. // actually making the request, and provides an error response. If you have
  41168. // the required permissions, the error response is DryRunOperation. Otherwise,
  41169. // it is UnauthorizedOperation.
  41170. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41171. // The launch specification.
  41172. LaunchSpecification *ImportInstanceLaunchSpecification `locationName:"launchSpecification" type:"structure"`
  41173. // The instance operating system.
  41174. //
  41175. // Platform is a required field
  41176. Platform *string `locationName:"platform" type:"string" required:"true" enum:"PlatformValues"`
  41177. }
  41178. // String returns the string representation
  41179. func (s ImportInstanceInput) String() string {
  41180. return awsutil.Prettify(s)
  41181. }
  41182. // GoString returns the string representation
  41183. func (s ImportInstanceInput) GoString() string {
  41184. return s.String()
  41185. }
  41186. // Validate inspects the fields of the type to determine if they are valid.
  41187. func (s *ImportInstanceInput) Validate() error {
  41188. invalidParams := request.ErrInvalidParams{Context: "ImportInstanceInput"}
  41189. if s.Platform == nil {
  41190. invalidParams.Add(request.NewErrParamRequired("Platform"))
  41191. }
  41192. if s.DiskImages != nil {
  41193. for i, v := range s.DiskImages {
  41194. if v == nil {
  41195. continue
  41196. }
  41197. if err := v.Validate(); err != nil {
  41198. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DiskImages", i), err.(request.ErrInvalidParams))
  41199. }
  41200. }
  41201. }
  41202. if invalidParams.Len() > 0 {
  41203. return invalidParams
  41204. }
  41205. return nil
  41206. }
  41207. // SetDescription sets the Description field's value.
  41208. func (s *ImportInstanceInput) SetDescription(v string) *ImportInstanceInput {
  41209. s.Description = &v
  41210. return s
  41211. }
  41212. // SetDiskImages sets the DiskImages field's value.
  41213. func (s *ImportInstanceInput) SetDiskImages(v []*DiskImage) *ImportInstanceInput {
  41214. s.DiskImages = v
  41215. return s
  41216. }
  41217. // SetDryRun sets the DryRun field's value.
  41218. func (s *ImportInstanceInput) SetDryRun(v bool) *ImportInstanceInput {
  41219. s.DryRun = &v
  41220. return s
  41221. }
  41222. // SetLaunchSpecification sets the LaunchSpecification field's value.
  41223. func (s *ImportInstanceInput) SetLaunchSpecification(v *ImportInstanceLaunchSpecification) *ImportInstanceInput {
  41224. s.LaunchSpecification = v
  41225. return s
  41226. }
  41227. // SetPlatform sets the Platform field's value.
  41228. func (s *ImportInstanceInput) SetPlatform(v string) *ImportInstanceInput {
  41229. s.Platform = &v
  41230. return s
  41231. }
  41232. // Describes the launch specification for VM import.
  41233. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceLaunchSpecification
  41234. type ImportInstanceLaunchSpecification struct {
  41235. _ struct{} `type:"structure"`
  41236. // Reserved.
  41237. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  41238. // The architecture of the instance.
  41239. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  41240. // One or more security group IDs.
  41241. GroupIds []*string `locationName:"GroupId" locationNameList:"SecurityGroupId" type:"list"`
  41242. // One or more security group names.
  41243. GroupNames []*string `locationName:"GroupName" locationNameList:"SecurityGroup" type:"list"`
  41244. // Indicates whether an instance stops or terminates when you initiate shutdown
  41245. // from the instance (using the operating system command for system shutdown).
  41246. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  41247. // The instance type. For more information about the instance types that you
  41248. // can import, see Instance Types (http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#vmimport-instance-types)
  41249. // in the VM Import/Export User Guide.
  41250. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  41251. // Indicates whether monitoring is enabled.
  41252. Monitoring *bool `locationName:"monitoring" type:"boolean"`
  41253. // The placement information for the instance.
  41254. Placement *Placement `locationName:"placement" type:"structure"`
  41255. // [EC2-VPC] An available IP address from the IP address range of the subnet.
  41256. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  41257. // [EC2-VPC] The ID of the subnet in which to launch the instance.
  41258. SubnetId *string `locationName:"subnetId" type:"string"`
  41259. // The user data to make available to the instance. If you are using an AWS
  41260. // SDK or command line tool, Base64-encoding is performed for you, and you can
  41261. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  41262. UserData *UserData `locationName:"userData" type:"structure"`
  41263. }
  41264. // String returns the string representation
  41265. func (s ImportInstanceLaunchSpecification) String() string {
  41266. return awsutil.Prettify(s)
  41267. }
  41268. // GoString returns the string representation
  41269. func (s ImportInstanceLaunchSpecification) GoString() string {
  41270. return s.String()
  41271. }
  41272. // SetAdditionalInfo sets the AdditionalInfo field's value.
  41273. func (s *ImportInstanceLaunchSpecification) SetAdditionalInfo(v string) *ImportInstanceLaunchSpecification {
  41274. s.AdditionalInfo = &v
  41275. return s
  41276. }
  41277. // SetArchitecture sets the Architecture field's value.
  41278. func (s *ImportInstanceLaunchSpecification) SetArchitecture(v string) *ImportInstanceLaunchSpecification {
  41279. s.Architecture = &v
  41280. return s
  41281. }
  41282. // SetGroupIds sets the GroupIds field's value.
  41283. func (s *ImportInstanceLaunchSpecification) SetGroupIds(v []*string) *ImportInstanceLaunchSpecification {
  41284. s.GroupIds = v
  41285. return s
  41286. }
  41287. // SetGroupNames sets the GroupNames field's value.
  41288. func (s *ImportInstanceLaunchSpecification) SetGroupNames(v []*string) *ImportInstanceLaunchSpecification {
  41289. s.GroupNames = v
  41290. return s
  41291. }
  41292. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  41293. func (s *ImportInstanceLaunchSpecification) SetInstanceInitiatedShutdownBehavior(v string) *ImportInstanceLaunchSpecification {
  41294. s.InstanceInitiatedShutdownBehavior = &v
  41295. return s
  41296. }
  41297. // SetInstanceType sets the InstanceType field's value.
  41298. func (s *ImportInstanceLaunchSpecification) SetInstanceType(v string) *ImportInstanceLaunchSpecification {
  41299. s.InstanceType = &v
  41300. return s
  41301. }
  41302. // SetMonitoring sets the Monitoring field's value.
  41303. func (s *ImportInstanceLaunchSpecification) SetMonitoring(v bool) *ImportInstanceLaunchSpecification {
  41304. s.Monitoring = &v
  41305. return s
  41306. }
  41307. // SetPlacement sets the Placement field's value.
  41308. func (s *ImportInstanceLaunchSpecification) SetPlacement(v *Placement) *ImportInstanceLaunchSpecification {
  41309. s.Placement = v
  41310. return s
  41311. }
  41312. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  41313. func (s *ImportInstanceLaunchSpecification) SetPrivateIpAddress(v string) *ImportInstanceLaunchSpecification {
  41314. s.PrivateIpAddress = &v
  41315. return s
  41316. }
  41317. // SetSubnetId sets the SubnetId field's value.
  41318. func (s *ImportInstanceLaunchSpecification) SetSubnetId(v string) *ImportInstanceLaunchSpecification {
  41319. s.SubnetId = &v
  41320. return s
  41321. }
  41322. // SetUserData sets the UserData field's value.
  41323. func (s *ImportInstanceLaunchSpecification) SetUserData(v *UserData) *ImportInstanceLaunchSpecification {
  41324. s.UserData = v
  41325. return s
  41326. }
  41327. // Contains the output for ImportInstance.
  41328. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceResult
  41329. type ImportInstanceOutput struct {
  41330. _ struct{} `type:"structure"`
  41331. // Information about the conversion task.
  41332. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  41333. }
  41334. // String returns the string representation
  41335. func (s ImportInstanceOutput) String() string {
  41336. return awsutil.Prettify(s)
  41337. }
  41338. // GoString returns the string representation
  41339. func (s ImportInstanceOutput) GoString() string {
  41340. return s.String()
  41341. }
  41342. // SetConversionTask sets the ConversionTask field's value.
  41343. func (s *ImportInstanceOutput) SetConversionTask(v *ConversionTask) *ImportInstanceOutput {
  41344. s.ConversionTask = v
  41345. return s
  41346. }
  41347. // Describes an import instance task.
  41348. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceTaskDetails
  41349. type ImportInstanceTaskDetails struct {
  41350. _ struct{} `type:"structure"`
  41351. // A description of the task.
  41352. Description *string `locationName:"description" type:"string"`
  41353. // The ID of the instance.
  41354. InstanceId *string `locationName:"instanceId" type:"string"`
  41355. // The instance operating system.
  41356. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  41357. // One or more volumes.
  41358. //
  41359. // Volumes is a required field
  41360. Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list" required:"true"`
  41361. }
  41362. // String returns the string representation
  41363. func (s ImportInstanceTaskDetails) String() string {
  41364. return awsutil.Prettify(s)
  41365. }
  41366. // GoString returns the string representation
  41367. func (s ImportInstanceTaskDetails) GoString() string {
  41368. return s.String()
  41369. }
  41370. // SetDescription sets the Description field's value.
  41371. func (s *ImportInstanceTaskDetails) SetDescription(v string) *ImportInstanceTaskDetails {
  41372. s.Description = &v
  41373. return s
  41374. }
  41375. // SetInstanceId sets the InstanceId field's value.
  41376. func (s *ImportInstanceTaskDetails) SetInstanceId(v string) *ImportInstanceTaskDetails {
  41377. s.InstanceId = &v
  41378. return s
  41379. }
  41380. // SetPlatform sets the Platform field's value.
  41381. func (s *ImportInstanceTaskDetails) SetPlatform(v string) *ImportInstanceTaskDetails {
  41382. s.Platform = &v
  41383. return s
  41384. }
  41385. // SetVolumes sets the Volumes field's value.
  41386. func (s *ImportInstanceTaskDetails) SetVolumes(v []*ImportInstanceVolumeDetailItem) *ImportInstanceTaskDetails {
  41387. s.Volumes = v
  41388. return s
  41389. }
  41390. // Describes an import volume task.
  41391. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstanceVolumeDetailItem
  41392. type ImportInstanceVolumeDetailItem struct {
  41393. _ struct{} `type:"structure"`
  41394. // The Availability Zone where the resulting instance will reside.
  41395. //
  41396. // AvailabilityZone is a required field
  41397. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  41398. // The number of bytes converted so far.
  41399. //
  41400. // BytesConverted is a required field
  41401. BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"`
  41402. // A description of the task.
  41403. Description *string `locationName:"description" type:"string"`
  41404. // The image.
  41405. //
  41406. // Image is a required field
  41407. Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"`
  41408. // The status of the import of this particular disk image.
  41409. //
  41410. // Status is a required field
  41411. Status *string `locationName:"status" type:"string" required:"true"`
  41412. // The status information or errors related to the disk image.
  41413. StatusMessage *string `locationName:"statusMessage" type:"string"`
  41414. // The volume.
  41415. //
  41416. // Volume is a required field
  41417. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"`
  41418. }
  41419. // String returns the string representation
  41420. func (s ImportInstanceVolumeDetailItem) String() string {
  41421. return awsutil.Prettify(s)
  41422. }
  41423. // GoString returns the string representation
  41424. func (s ImportInstanceVolumeDetailItem) GoString() string {
  41425. return s.String()
  41426. }
  41427. // SetAvailabilityZone sets the AvailabilityZone field's value.
  41428. func (s *ImportInstanceVolumeDetailItem) SetAvailabilityZone(v string) *ImportInstanceVolumeDetailItem {
  41429. s.AvailabilityZone = &v
  41430. return s
  41431. }
  41432. // SetBytesConverted sets the BytesConverted field's value.
  41433. func (s *ImportInstanceVolumeDetailItem) SetBytesConverted(v int64) *ImportInstanceVolumeDetailItem {
  41434. s.BytesConverted = &v
  41435. return s
  41436. }
  41437. // SetDescription sets the Description field's value.
  41438. func (s *ImportInstanceVolumeDetailItem) SetDescription(v string) *ImportInstanceVolumeDetailItem {
  41439. s.Description = &v
  41440. return s
  41441. }
  41442. // SetImage sets the Image field's value.
  41443. func (s *ImportInstanceVolumeDetailItem) SetImage(v *DiskImageDescription) *ImportInstanceVolumeDetailItem {
  41444. s.Image = v
  41445. return s
  41446. }
  41447. // SetStatus sets the Status field's value.
  41448. func (s *ImportInstanceVolumeDetailItem) SetStatus(v string) *ImportInstanceVolumeDetailItem {
  41449. s.Status = &v
  41450. return s
  41451. }
  41452. // SetStatusMessage sets the StatusMessage field's value.
  41453. func (s *ImportInstanceVolumeDetailItem) SetStatusMessage(v string) *ImportInstanceVolumeDetailItem {
  41454. s.StatusMessage = &v
  41455. return s
  41456. }
  41457. // SetVolume sets the Volume field's value.
  41458. func (s *ImportInstanceVolumeDetailItem) SetVolume(v *DiskImageVolumeDescription) *ImportInstanceVolumeDetailItem {
  41459. s.Volume = v
  41460. return s
  41461. }
  41462. // Contains the parameters for ImportKeyPair.
  41463. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPairRequest
  41464. type ImportKeyPairInput struct {
  41465. _ struct{} `type:"structure"`
  41466. // Checks whether you have the required permissions for the action, without
  41467. // actually making the request, and provides an error response. If you have
  41468. // the required permissions, the error response is DryRunOperation. Otherwise,
  41469. // it is UnauthorizedOperation.
  41470. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41471. // A unique name for the key pair.
  41472. //
  41473. // KeyName is a required field
  41474. KeyName *string `locationName:"keyName" type:"string" required:"true"`
  41475. // The public key. For API calls, the text must be base64-encoded. For command
  41476. // line tools, base64 encoding is performed for you.
  41477. //
  41478. // PublicKeyMaterial is automatically base64 encoded/decoded by the SDK.
  41479. //
  41480. // PublicKeyMaterial is a required field
  41481. PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"`
  41482. }
  41483. // String returns the string representation
  41484. func (s ImportKeyPairInput) String() string {
  41485. return awsutil.Prettify(s)
  41486. }
  41487. // GoString returns the string representation
  41488. func (s ImportKeyPairInput) GoString() string {
  41489. return s.String()
  41490. }
  41491. // Validate inspects the fields of the type to determine if they are valid.
  41492. func (s *ImportKeyPairInput) Validate() error {
  41493. invalidParams := request.ErrInvalidParams{Context: "ImportKeyPairInput"}
  41494. if s.KeyName == nil {
  41495. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  41496. }
  41497. if s.PublicKeyMaterial == nil {
  41498. invalidParams.Add(request.NewErrParamRequired("PublicKeyMaterial"))
  41499. }
  41500. if invalidParams.Len() > 0 {
  41501. return invalidParams
  41502. }
  41503. return nil
  41504. }
  41505. // SetDryRun sets the DryRun field's value.
  41506. func (s *ImportKeyPairInput) SetDryRun(v bool) *ImportKeyPairInput {
  41507. s.DryRun = &v
  41508. return s
  41509. }
  41510. // SetKeyName sets the KeyName field's value.
  41511. func (s *ImportKeyPairInput) SetKeyName(v string) *ImportKeyPairInput {
  41512. s.KeyName = &v
  41513. return s
  41514. }
  41515. // SetPublicKeyMaterial sets the PublicKeyMaterial field's value.
  41516. func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput {
  41517. s.PublicKeyMaterial = v
  41518. return s
  41519. }
  41520. // Contains the output of ImportKeyPair.
  41521. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPairResult
  41522. type ImportKeyPairOutput struct {
  41523. _ struct{} `type:"structure"`
  41524. // The MD5 public key fingerprint as specified in section 4 of RFC 4716.
  41525. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  41526. // The key pair name you provided.
  41527. KeyName *string `locationName:"keyName" type:"string"`
  41528. }
  41529. // String returns the string representation
  41530. func (s ImportKeyPairOutput) String() string {
  41531. return awsutil.Prettify(s)
  41532. }
  41533. // GoString returns the string representation
  41534. func (s ImportKeyPairOutput) GoString() string {
  41535. return s.String()
  41536. }
  41537. // SetKeyFingerprint sets the KeyFingerprint field's value.
  41538. func (s *ImportKeyPairOutput) SetKeyFingerprint(v string) *ImportKeyPairOutput {
  41539. s.KeyFingerprint = &v
  41540. return s
  41541. }
  41542. // SetKeyName sets the KeyName field's value.
  41543. func (s *ImportKeyPairOutput) SetKeyName(v string) *ImportKeyPairOutput {
  41544. s.KeyName = &v
  41545. return s
  41546. }
  41547. // Contains the parameters for ImportSnapshot.
  41548. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotRequest
  41549. type ImportSnapshotInput struct {
  41550. _ struct{} `type:"structure"`
  41551. // The client-specific data.
  41552. ClientData *ClientData `type:"structure"`
  41553. // Token to enable idempotency for VM import requests.
  41554. ClientToken *string `type:"string"`
  41555. // The description string for the import snapshot task.
  41556. Description *string `type:"string"`
  41557. // Information about the disk container.
  41558. DiskContainer *SnapshotDiskContainer `type:"structure"`
  41559. // Checks whether you have the required permissions for the action, without
  41560. // actually making the request, and provides an error response. If you have
  41561. // the required permissions, the error response is DryRunOperation. Otherwise,
  41562. // it is UnauthorizedOperation.
  41563. DryRun *bool `type:"boolean"`
  41564. // The name of the role to use when not using the default role, 'vmimport'.
  41565. RoleName *string `type:"string"`
  41566. }
  41567. // String returns the string representation
  41568. func (s ImportSnapshotInput) String() string {
  41569. return awsutil.Prettify(s)
  41570. }
  41571. // GoString returns the string representation
  41572. func (s ImportSnapshotInput) GoString() string {
  41573. return s.String()
  41574. }
  41575. // SetClientData sets the ClientData field's value.
  41576. func (s *ImportSnapshotInput) SetClientData(v *ClientData) *ImportSnapshotInput {
  41577. s.ClientData = v
  41578. return s
  41579. }
  41580. // SetClientToken sets the ClientToken field's value.
  41581. func (s *ImportSnapshotInput) SetClientToken(v string) *ImportSnapshotInput {
  41582. s.ClientToken = &v
  41583. return s
  41584. }
  41585. // SetDescription sets the Description field's value.
  41586. func (s *ImportSnapshotInput) SetDescription(v string) *ImportSnapshotInput {
  41587. s.Description = &v
  41588. return s
  41589. }
  41590. // SetDiskContainer sets the DiskContainer field's value.
  41591. func (s *ImportSnapshotInput) SetDiskContainer(v *SnapshotDiskContainer) *ImportSnapshotInput {
  41592. s.DiskContainer = v
  41593. return s
  41594. }
  41595. // SetDryRun sets the DryRun field's value.
  41596. func (s *ImportSnapshotInput) SetDryRun(v bool) *ImportSnapshotInput {
  41597. s.DryRun = &v
  41598. return s
  41599. }
  41600. // SetRoleName sets the RoleName field's value.
  41601. func (s *ImportSnapshotInput) SetRoleName(v string) *ImportSnapshotInput {
  41602. s.RoleName = &v
  41603. return s
  41604. }
  41605. // Contains the output for ImportSnapshot.
  41606. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotResult
  41607. type ImportSnapshotOutput struct {
  41608. _ struct{} `type:"structure"`
  41609. // A description of the import snapshot task.
  41610. Description *string `locationName:"description" type:"string"`
  41611. // The ID of the import snapshot task.
  41612. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  41613. // Information about the import snapshot task.
  41614. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  41615. }
  41616. // String returns the string representation
  41617. func (s ImportSnapshotOutput) String() string {
  41618. return awsutil.Prettify(s)
  41619. }
  41620. // GoString returns the string representation
  41621. func (s ImportSnapshotOutput) GoString() string {
  41622. return s.String()
  41623. }
  41624. // SetDescription sets the Description field's value.
  41625. func (s *ImportSnapshotOutput) SetDescription(v string) *ImportSnapshotOutput {
  41626. s.Description = &v
  41627. return s
  41628. }
  41629. // SetImportTaskId sets the ImportTaskId field's value.
  41630. func (s *ImportSnapshotOutput) SetImportTaskId(v string) *ImportSnapshotOutput {
  41631. s.ImportTaskId = &v
  41632. return s
  41633. }
  41634. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  41635. func (s *ImportSnapshotOutput) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotOutput {
  41636. s.SnapshotTaskDetail = v
  41637. return s
  41638. }
  41639. // Describes an import snapshot task.
  41640. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportSnapshotTask
  41641. type ImportSnapshotTask struct {
  41642. _ struct{} `type:"structure"`
  41643. // A description of the import snapshot task.
  41644. Description *string `locationName:"description" type:"string"`
  41645. // The ID of the import snapshot task.
  41646. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  41647. // Describes an import snapshot task.
  41648. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  41649. }
  41650. // String returns the string representation
  41651. func (s ImportSnapshotTask) String() string {
  41652. return awsutil.Prettify(s)
  41653. }
  41654. // GoString returns the string representation
  41655. func (s ImportSnapshotTask) GoString() string {
  41656. return s.String()
  41657. }
  41658. // SetDescription sets the Description field's value.
  41659. func (s *ImportSnapshotTask) SetDescription(v string) *ImportSnapshotTask {
  41660. s.Description = &v
  41661. return s
  41662. }
  41663. // SetImportTaskId sets the ImportTaskId field's value.
  41664. func (s *ImportSnapshotTask) SetImportTaskId(v string) *ImportSnapshotTask {
  41665. s.ImportTaskId = &v
  41666. return s
  41667. }
  41668. // SetSnapshotTaskDetail sets the SnapshotTaskDetail field's value.
  41669. func (s *ImportSnapshotTask) SetSnapshotTaskDetail(v *SnapshotTaskDetail) *ImportSnapshotTask {
  41670. s.SnapshotTaskDetail = v
  41671. return s
  41672. }
  41673. // Contains the parameters for ImportVolume.
  41674. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeRequest
  41675. type ImportVolumeInput struct {
  41676. _ struct{} `type:"structure"`
  41677. // The Availability Zone for the resulting EBS volume.
  41678. //
  41679. // AvailabilityZone is a required field
  41680. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  41681. // A description of the volume.
  41682. Description *string `locationName:"description" type:"string"`
  41683. // Checks whether you have the required permissions for the action, without
  41684. // actually making the request, and provides an error response. If you have
  41685. // the required permissions, the error response is DryRunOperation. Otherwise,
  41686. // it is UnauthorizedOperation.
  41687. DryRun *bool `locationName:"dryRun" type:"boolean"`
  41688. // The disk image.
  41689. //
  41690. // Image is a required field
  41691. Image *DiskImageDetail `locationName:"image" type:"structure" required:"true"`
  41692. // The volume size.
  41693. //
  41694. // Volume is a required field
  41695. Volume *VolumeDetail `locationName:"volume" type:"structure" required:"true"`
  41696. }
  41697. // String returns the string representation
  41698. func (s ImportVolumeInput) String() string {
  41699. return awsutil.Prettify(s)
  41700. }
  41701. // GoString returns the string representation
  41702. func (s ImportVolumeInput) GoString() string {
  41703. return s.String()
  41704. }
  41705. // Validate inspects the fields of the type to determine if they are valid.
  41706. func (s *ImportVolumeInput) Validate() error {
  41707. invalidParams := request.ErrInvalidParams{Context: "ImportVolumeInput"}
  41708. if s.AvailabilityZone == nil {
  41709. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  41710. }
  41711. if s.Image == nil {
  41712. invalidParams.Add(request.NewErrParamRequired("Image"))
  41713. }
  41714. if s.Volume == nil {
  41715. invalidParams.Add(request.NewErrParamRequired("Volume"))
  41716. }
  41717. if s.Image != nil {
  41718. if err := s.Image.Validate(); err != nil {
  41719. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  41720. }
  41721. }
  41722. if s.Volume != nil {
  41723. if err := s.Volume.Validate(); err != nil {
  41724. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  41725. }
  41726. }
  41727. if invalidParams.Len() > 0 {
  41728. return invalidParams
  41729. }
  41730. return nil
  41731. }
  41732. // SetAvailabilityZone sets the AvailabilityZone field's value.
  41733. func (s *ImportVolumeInput) SetAvailabilityZone(v string) *ImportVolumeInput {
  41734. s.AvailabilityZone = &v
  41735. return s
  41736. }
  41737. // SetDescription sets the Description field's value.
  41738. func (s *ImportVolumeInput) SetDescription(v string) *ImportVolumeInput {
  41739. s.Description = &v
  41740. return s
  41741. }
  41742. // SetDryRun sets the DryRun field's value.
  41743. func (s *ImportVolumeInput) SetDryRun(v bool) *ImportVolumeInput {
  41744. s.DryRun = &v
  41745. return s
  41746. }
  41747. // SetImage sets the Image field's value.
  41748. func (s *ImportVolumeInput) SetImage(v *DiskImageDetail) *ImportVolumeInput {
  41749. s.Image = v
  41750. return s
  41751. }
  41752. // SetVolume sets the Volume field's value.
  41753. func (s *ImportVolumeInput) SetVolume(v *VolumeDetail) *ImportVolumeInput {
  41754. s.Volume = v
  41755. return s
  41756. }
  41757. // Contains the output for ImportVolume.
  41758. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeResult
  41759. type ImportVolumeOutput struct {
  41760. _ struct{} `type:"structure"`
  41761. // Information about the conversion task.
  41762. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  41763. }
  41764. // String returns the string representation
  41765. func (s ImportVolumeOutput) String() string {
  41766. return awsutil.Prettify(s)
  41767. }
  41768. // GoString returns the string representation
  41769. func (s ImportVolumeOutput) GoString() string {
  41770. return s.String()
  41771. }
  41772. // SetConversionTask sets the ConversionTask field's value.
  41773. func (s *ImportVolumeOutput) SetConversionTask(v *ConversionTask) *ImportVolumeOutput {
  41774. s.ConversionTask = v
  41775. return s
  41776. }
  41777. // Describes an import volume task.
  41778. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportVolumeTaskDetails
  41779. type ImportVolumeTaskDetails struct {
  41780. _ struct{} `type:"structure"`
  41781. // The Availability Zone where the resulting volume will reside.
  41782. //
  41783. // AvailabilityZone is a required field
  41784. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  41785. // The number of bytes converted so far.
  41786. //
  41787. // BytesConverted is a required field
  41788. BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"`
  41789. // The description you provided when starting the import volume task.
  41790. Description *string `locationName:"description" type:"string"`
  41791. // The image.
  41792. //
  41793. // Image is a required field
  41794. Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"`
  41795. // The volume.
  41796. //
  41797. // Volume is a required field
  41798. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"`
  41799. }
  41800. // String returns the string representation
  41801. func (s ImportVolumeTaskDetails) String() string {
  41802. return awsutil.Prettify(s)
  41803. }
  41804. // GoString returns the string representation
  41805. func (s ImportVolumeTaskDetails) GoString() string {
  41806. return s.String()
  41807. }
  41808. // SetAvailabilityZone sets the AvailabilityZone field's value.
  41809. func (s *ImportVolumeTaskDetails) SetAvailabilityZone(v string) *ImportVolumeTaskDetails {
  41810. s.AvailabilityZone = &v
  41811. return s
  41812. }
  41813. // SetBytesConverted sets the BytesConverted field's value.
  41814. func (s *ImportVolumeTaskDetails) SetBytesConverted(v int64) *ImportVolumeTaskDetails {
  41815. s.BytesConverted = &v
  41816. return s
  41817. }
  41818. // SetDescription sets the Description field's value.
  41819. func (s *ImportVolumeTaskDetails) SetDescription(v string) *ImportVolumeTaskDetails {
  41820. s.Description = &v
  41821. return s
  41822. }
  41823. // SetImage sets the Image field's value.
  41824. func (s *ImportVolumeTaskDetails) SetImage(v *DiskImageDescription) *ImportVolumeTaskDetails {
  41825. s.Image = v
  41826. return s
  41827. }
  41828. // SetVolume sets the Volume field's value.
  41829. func (s *ImportVolumeTaskDetails) SetVolume(v *DiskImageVolumeDescription) *ImportVolumeTaskDetails {
  41830. s.Volume = v
  41831. return s
  41832. }
  41833. // Describes an instance.
  41834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Instance
  41835. type Instance struct {
  41836. _ struct{} `type:"structure"`
  41837. // The AMI launch index, which can be used to find this instance in the launch
  41838. // group.
  41839. AmiLaunchIndex *int64 `locationName:"amiLaunchIndex" type:"integer"`
  41840. // The architecture of the image.
  41841. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  41842. // Any block device mapping entries for the instance.
  41843. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  41844. // The idempotency token you provided when you launched the instance, if applicable.
  41845. ClientToken *string `locationName:"clientToken" type:"string"`
  41846. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  41847. // provides dedicated throughput to Amazon EBS and an optimized configuration
  41848. // stack to provide optimal I/O performance. This optimization isn't available
  41849. // with all instance types. Additional usage charges apply when using an EBS
  41850. // Optimized instance.
  41851. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  41852. // The Elastic GPU associated with the instance.
  41853. ElasticGpuAssociations []*ElasticGpuAssociation `locationName:"elasticGpuAssociationSet" locationNameList:"item" type:"list"`
  41854. // Specifies whether enhanced networking with ENA is enabled.
  41855. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  41856. // The hypervisor type of the instance.
  41857. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  41858. // The IAM instance profile associated with the instance, if applicable.
  41859. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  41860. // The ID of the AMI used to launch the instance.
  41861. ImageId *string `locationName:"imageId" type:"string"`
  41862. // The ID of the instance.
  41863. InstanceId *string `locationName:"instanceId" type:"string"`
  41864. // Indicates whether this is a Spot Instance or a Scheduled Instance.
  41865. InstanceLifecycle *string `locationName:"instanceLifecycle" type:"string" enum:"InstanceLifecycleType"`
  41866. // The instance type.
  41867. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  41868. // The kernel associated with this instance, if applicable.
  41869. KernelId *string `locationName:"kernelId" type:"string"`
  41870. // The name of the key pair, if this instance was launched with an associated
  41871. // key pair.
  41872. KeyName *string `locationName:"keyName" type:"string"`
  41873. // The time the instance was launched.
  41874. LaunchTime *time.Time `locationName:"launchTime" type:"timestamp" timestampFormat:"iso8601"`
  41875. // The monitoring for the instance.
  41876. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  41877. // [EC2-VPC] One or more network interfaces for the instance.
  41878. NetworkInterfaces []*InstanceNetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  41879. // The location where the instance launched, if applicable.
  41880. Placement *Placement `locationName:"placement" type:"structure"`
  41881. // The value is Windows for Windows instances; otherwise blank.
  41882. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  41883. // (IPv4 only) The private DNS hostname name assigned to the instance. This
  41884. // DNS hostname can only be used inside the Amazon EC2 network. This name is
  41885. // not available until the instance enters the running state.
  41886. //
  41887. // [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private
  41888. // DNS hostnames if you've enabled DNS resolution and DNS hostnames in your
  41889. // VPC. If you are not using the Amazon-provided DNS server in your VPC, your
  41890. // custom domain name servers must resolve the hostname as appropriate.
  41891. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  41892. // The private IPv4 address assigned to the instance.
  41893. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  41894. // The product codes attached to this instance, if applicable.
  41895. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  41896. // (IPv4 only) The public DNS name assigned to the instance. This name is not
  41897. // available until the instance enters the running state. For EC2-VPC, this
  41898. // name is only available if you've enabled DNS hostnames for your VPC.
  41899. PublicDnsName *string `locationName:"dnsName" type:"string"`
  41900. // The public IPv4 address assigned to the instance, if applicable.
  41901. PublicIpAddress *string `locationName:"ipAddress" type:"string"`
  41902. // The RAM disk associated with this instance, if applicable.
  41903. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  41904. // The device name of the root device volume (for example, /dev/sda1).
  41905. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  41906. // The root device type used by the AMI. The AMI can use an EBS volume or an
  41907. // instance store volume.
  41908. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  41909. // One or more security groups for the instance.
  41910. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  41911. // Specifies whether to enable an instance launched in a VPC to perform NAT.
  41912. // This controls whether source/destination checking is enabled on the instance.
  41913. // A value of true means that checking is enabled, and false means that checking
  41914. // is disabled. The value must be false for the instance to perform NAT. For
  41915. // more information, see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  41916. // in the Amazon Virtual Private Cloud User Guide.
  41917. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  41918. // If the request is a Spot Instance request, the ID of the request.
  41919. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  41920. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  41921. // interface is enabled.
  41922. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  41923. // The current state of the instance.
  41924. State *InstanceState `locationName:"instanceState" type:"structure"`
  41925. // The reason for the most recent state transition.
  41926. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  41927. // The reason for the most recent state transition. This might be an empty string.
  41928. StateTransitionReason *string `locationName:"reason" type:"string"`
  41929. // [EC2-VPC] The ID of the subnet in which the instance is running.
  41930. SubnetId *string `locationName:"subnetId" type:"string"`
  41931. // Any tags assigned to the instance.
  41932. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  41933. // The virtualization type of the instance.
  41934. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  41935. // [EC2-VPC] The ID of the VPC in which the instance is running.
  41936. VpcId *string `locationName:"vpcId" type:"string"`
  41937. }
  41938. // String returns the string representation
  41939. func (s Instance) String() string {
  41940. return awsutil.Prettify(s)
  41941. }
  41942. // GoString returns the string representation
  41943. func (s Instance) GoString() string {
  41944. return s.String()
  41945. }
  41946. // SetAmiLaunchIndex sets the AmiLaunchIndex field's value.
  41947. func (s *Instance) SetAmiLaunchIndex(v int64) *Instance {
  41948. s.AmiLaunchIndex = &v
  41949. return s
  41950. }
  41951. // SetArchitecture sets the Architecture field's value.
  41952. func (s *Instance) SetArchitecture(v string) *Instance {
  41953. s.Architecture = &v
  41954. return s
  41955. }
  41956. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  41957. func (s *Instance) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *Instance {
  41958. s.BlockDeviceMappings = v
  41959. return s
  41960. }
  41961. // SetClientToken sets the ClientToken field's value.
  41962. func (s *Instance) SetClientToken(v string) *Instance {
  41963. s.ClientToken = &v
  41964. return s
  41965. }
  41966. // SetEbsOptimized sets the EbsOptimized field's value.
  41967. func (s *Instance) SetEbsOptimized(v bool) *Instance {
  41968. s.EbsOptimized = &v
  41969. return s
  41970. }
  41971. // SetElasticGpuAssociations sets the ElasticGpuAssociations field's value.
  41972. func (s *Instance) SetElasticGpuAssociations(v []*ElasticGpuAssociation) *Instance {
  41973. s.ElasticGpuAssociations = v
  41974. return s
  41975. }
  41976. // SetEnaSupport sets the EnaSupport field's value.
  41977. func (s *Instance) SetEnaSupport(v bool) *Instance {
  41978. s.EnaSupport = &v
  41979. return s
  41980. }
  41981. // SetHypervisor sets the Hypervisor field's value.
  41982. func (s *Instance) SetHypervisor(v string) *Instance {
  41983. s.Hypervisor = &v
  41984. return s
  41985. }
  41986. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  41987. func (s *Instance) SetIamInstanceProfile(v *IamInstanceProfile) *Instance {
  41988. s.IamInstanceProfile = v
  41989. return s
  41990. }
  41991. // SetImageId sets the ImageId field's value.
  41992. func (s *Instance) SetImageId(v string) *Instance {
  41993. s.ImageId = &v
  41994. return s
  41995. }
  41996. // SetInstanceId sets the InstanceId field's value.
  41997. func (s *Instance) SetInstanceId(v string) *Instance {
  41998. s.InstanceId = &v
  41999. return s
  42000. }
  42001. // SetInstanceLifecycle sets the InstanceLifecycle field's value.
  42002. func (s *Instance) SetInstanceLifecycle(v string) *Instance {
  42003. s.InstanceLifecycle = &v
  42004. return s
  42005. }
  42006. // SetInstanceType sets the InstanceType field's value.
  42007. func (s *Instance) SetInstanceType(v string) *Instance {
  42008. s.InstanceType = &v
  42009. return s
  42010. }
  42011. // SetKernelId sets the KernelId field's value.
  42012. func (s *Instance) SetKernelId(v string) *Instance {
  42013. s.KernelId = &v
  42014. return s
  42015. }
  42016. // SetKeyName sets the KeyName field's value.
  42017. func (s *Instance) SetKeyName(v string) *Instance {
  42018. s.KeyName = &v
  42019. return s
  42020. }
  42021. // SetLaunchTime sets the LaunchTime field's value.
  42022. func (s *Instance) SetLaunchTime(v time.Time) *Instance {
  42023. s.LaunchTime = &v
  42024. return s
  42025. }
  42026. // SetMonitoring sets the Monitoring field's value.
  42027. func (s *Instance) SetMonitoring(v *Monitoring) *Instance {
  42028. s.Monitoring = v
  42029. return s
  42030. }
  42031. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  42032. func (s *Instance) SetNetworkInterfaces(v []*InstanceNetworkInterface) *Instance {
  42033. s.NetworkInterfaces = v
  42034. return s
  42035. }
  42036. // SetPlacement sets the Placement field's value.
  42037. func (s *Instance) SetPlacement(v *Placement) *Instance {
  42038. s.Placement = v
  42039. return s
  42040. }
  42041. // SetPlatform sets the Platform field's value.
  42042. func (s *Instance) SetPlatform(v string) *Instance {
  42043. s.Platform = &v
  42044. return s
  42045. }
  42046. // SetPrivateDnsName sets the PrivateDnsName field's value.
  42047. func (s *Instance) SetPrivateDnsName(v string) *Instance {
  42048. s.PrivateDnsName = &v
  42049. return s
  42050. }
  42051. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  42052. func (s *Instance) SetPrivateIpAddress(v string) *Instance {
  42053. s.PrivateIpAddress = &v
  42054. return s
  42055. }
  42056. // SetProductCodes sets the ProductCodes field's value.
  42057. func (s *Instance) SetProductCodes(v []*ProductCode) *Instance {
  42058. s.ProductCodes = v
  42059. return s
  42060. }
  42061. // SetPublicDnsName sets the PublicDnsName field's value.
  42062. func (s *Instance) SetPublicDnsName(v string) *Instance {
  42063. s.PublicDnsName = &v
  42064. return s
  42065. }
  42066. // SetPublicIpAddress sets the PublicIpAddress field's value.
  42067. func (s *Instance) SetPublicIpAddress(v string) *Instance {
  42068. s.PublicIpAddress = &v
  42069. return s
  42070. }
  42071. // SetRamdiskId sets the RamdiskId field's value.
  42072. func (s *Instance) SetRamdiskId(v string) *Instance {
  42073. s.RamdiskId = &v
  42074. return s
  42075. }
  42076. // SetRootDeviceName sets the RootDeviceName field's value.
  42077. func (s *Instance) SetRootDeviceName(v string) *Instance {
  42078. s.RootDeviceName = &v
  42079. return s
  42080. }
  42081. // SetRootDeviceType sets the RootDeviceType field's value.
  42082. func (s *Instance) SetRootDeviceType(v string) *Instance {
  42083. s.RootDeviceType = &v
  42084. return s
  42085. }
  42086. // SetSecurityGroups sets the SecurityGroups field's value.
  42087. func (s *Instance) SetSecurityGroups(v []*GroupIdentifier) *Instance {
  42088. s.SecurityGroups = v
  42089. return s
  42090. }
  42091. // SetSourceDestCheck sets the SourceDestCheck field's value.
  42092. func (s *Instance) SetSourceDestCheck(v bool) *Instance {
  42093. s.SourceDestCheck = &v
  42094. return s
  42095. }
  42096. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  42097. func (s *Instance) SetSpotInstanceRequestId(v string) *Instance {
  42098. s.SpotInstanceRequestId = &v
  42099. return s
  42100. }
  42101. // SetSriovNetSupport sets the SriovNetSupport field's value.
  42102. func (s *Instance) SetSriovNetSupport(v string) *Instance {
  42103. s.SriovNetSupport = &v
  42104. return s
  42105. }
  42106. // SetState sets the State field's value.
  42107. func (s *Instance) SetState(v *InstanceState) *Instance {
  42108. s.State = v
  42109. return s
  42110. }
  42111. // SetStateReason sets the StateReason field's value.
  42112. func (s *Instance) SetStateReason(v *StateReason) *Instance {
  42113. s.StateReason = v
  42114. return s
  42115. }
  42116. // SetStateTransitionReason sets the StateTransitionReason field's value.
  42117. func (s *Instance) SetStateTransitionReason(v string) *Instance {
  42118. s.StateTransitionReason = &v
  42119. return s
  42120. }
  42121. // SetSubnetId sets the SubnetId field's value.
  42122. func (s *Instance) SetSubnetId(v string) *Instance {
  42123. s.SubnetId = &v
  42124. return s
  42125. }
  42126. // SetTags sets the Tags field's value.
  42127. func (s *Instance) SetTags(v []*Tag) *Instance {
  42128. s.Tags = v
  42129. return s
  42130. }
  42131. // SetVirtualizationType sets the VirtualizationType field's value.
  42132. func (s *Instance) SetVirtualizationType(v string) *Instance {
  42133. s.VirtualizationType = &v
  42134. return s
  42135. }
  42136. // SetVpcId sets the VpcId field's value.
  42137. func (s *Instance) SetVpcId(v string) *Instance {
  42138. s.VpcId = &v
  42139. return s
  42140. }
  42141. // Describes a block device mapping.
  42142. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMapping
  42143. type InstanceBlockDeviceMapping struct {
  42144. _ struct{} `type:"structure"`
  42145. // The device name (for example, /dev/sdh or xvdh).
  42146. DeviceName *string `locationName:"deviceName" type:"string"`
  42147. // Parameters used to automatically set up EBS volumes when the instance is
  42148. // launched.
  42149. Ebs *EbsInstanceBlockDevice `locationName:"ebs" type:"structure"`
  42150. }
  42151. // String returns the string representation
  42152. func (s InstanceBlockDeviceMapping) String() string {
  42153. return awsutil.Prettify(s)
  42154. }
  42155. // GoString returns the string representation
  42156. func (s InstanceBlockDeviceMapping) GoString() string {
  42157. return s.String()
  42158. }
  42159. // SetDeviceName sets the DeviceName field's value.
  42160. func (s *InstanceBlockDeviceMapping) SetDeviceName(v string) *InstanceBlockDeviceMapping {
  42161. s.DeviceName = &v
  42162. return s
  42163. }
  42164. // SetEbs sets the Ebs field's value.
  42165. func (s *InstanceBlockDeviceMapping) SetEbs(v *EbsInstanceBlockDevice) *InstanceBlockDeviceMapping {
  42166. s.Ebs = v
  42167. return s
  42168. }
  42169. // Describes a block device mapping entry.
  42170. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMappingSpecification
  42171. type InstanceBlockDeviceMappingSpecification struct {
  42172. _ struct{} `type:"structure"`
  42173. // The device name (for example, /dev/sdh or xvdh).
  42174. DeviceName *string `locationName:"deviceName" type:"string"`
  42175. // Parameters used to automatically set up EBS volumes when the instance is
  42176. // launched.
  42177. Ebs *EbsInstanceBlockDeviceSpecification `locationName:"ebs" type:"structure"`
  42178. // suppress the specified device included in the block device mapping.
  42179. NoDevice *string `locationName:"noDevice" type:"string"`
  42180. // The virtual device name.
  42181. VirtualName *string `locationName:"virtualName" type:"string"`
  42182. }
  42183. // String returns the string representation
  42184. func (s InstanceBlockDeviceMappingSpecification) String() string {
  42185. return awsutil.Prettify(s)
  42186. }
  42187. // GoString returns the string representation
  42188. func (s InstanceBlockDeviceMappingSpecification) GoString() string {
  42189. return s.String()
  42190. }
  42191. // SetDeviceName sets the DeviceName field's value.
  42192. func (s *InstanceBlockDeviceMappingSpecification) SetDeviceName(v string) *InstanceBlockDeviceMappingSpecification {
  42193. s.DeviceName = &v
  42194. return s
  42195. }
  42196. // SetEbs sets the Ebs field's value.
  42197. func (s *InstanceBlockDeviceMappingSpecification) SetEbs(v *EbsInstanceBlockDeviceSpecification) *InstanceBlockDeviceMappingSpecification {
  42198. s.Ebs = v
  42199. return s
  42200. }
  42201. // SetNoDevice sets the NoDevice field's value.
  42202. func (s *InstanceBlockDeviceMappingSpecification) SetNoDevice(v string) *InstanceBlockDeviceMappingSpecification {
  42203. s.NoDevice = &v
  42204. return s
  42205. }
  42206. // SetVirtualName sets the VirtualName field's value.
  42207. func (s *InstanceBlockDeviceMappingSpecification) SetVirtualName(v string) *InstanceBlockDeviceMappingSpecification {
  42208. s.VirtualName = &v
  42209. return s
  42210. }
  42211. // Information about the instance type that the Dedicated Host supports.
  42212. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceCapacity
  42213. type InstanceCapacity struct {
  42214. _ struct{} `type:"structure"`
  42215. // The number of instances that can still be launched onto the Dedicated Host.
  42216. AvailableCapacity *int64 `locationName:"availableCapacity" type:"integer"`
  42217. // The instance type size supported by the Dedicated Host.
  42218. InstanceType *string `locationName:"instanceType" type:"string"`
  42219. // The total number of instances that can be launched onto the Dedicated Host.
  42220. TotalCapacity *int64 `locationName:"totalCapacity" type:"integer"`
  42221. }
  42222. // String returns the string representation
  42223. func (s InstanceCapacity) String() string {
  42224. return awsutil.Prettify(s)
  42225. }
  42226. // GoString returns the string representation
  42227. func (s InstanceCapacity) GoString() string {
  42228. return s.String()
  42229. }
  42230. // SetAvailableCapacity sets the AvailableCapacity field's value.
  42231. func (s *InstanceCapacity) SetAvailableCapacity(v int64) *InstanceCapacity {
  42232. s.AvailableCapacity = &v
  42233. return s
  42234. }
  42235. // SetInstanceType sets the InstanceType field's value.
  42236. func (s *InstanceCapacity) SetInstanceType(v string) *InstanceCapacity {
  42237. s.InstanceType = &v
  42238. return s
  42239. }
  42240. // SetTotalCapacity sets the TotalCapacity field's value.
  42241. func (s *InstanceCapacity) SetTotalCapacity(v int64) *InstanceCapacity {
  42242. s.TotalCapacity = &v
  42243. return s
  42244. }
  42245. // Describes a Reserved Instance listing state.
  42246. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceCount
  42247. type InstanceCount struct {
  42248. _ struct{} `type:"structure"`
  42249. // The number of listed Reserved Instances in the state specified by the state.
  42250. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  42251. // The states of the listed Reserved Instances.
  42252. State *string `locationName:"state" type:"string" enum:"ListingState"`
  42253. }
  42254. // String returns the string representation
  42255. func (s InstanceCount) String() string {
  42256. return awsutil.Prettify(s)
  42257. }
  42258. // GoString returns the string representation
  42259. func (s InstanceCount) GoString() string {
  42260. return s.String()
  42261. }
  42262. // SetInstanceCount sets the InstanceCount field's value.
  42263. func (s *InstanceCount) SetInstanceCount(v int64) *InstanceCount {
  42264. s.InstanceCount = &v
  42265. return s
  42266. }
  42267. // SetState sets the State field's value.
  42268. func (s *InstanceCount) SetState(v string) *InstanceCount {
  42269. s.State = &v
  42270. return s
  42271. }
  42272. // Describes the credit option for CPU usage of a T2 instance.
  42273. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceCreditSpecification
  42274. type InstanceCreditSpecification struct {
  42275. _ struct{} `type:"structure"`
  42276. // The credit option for CPU usage of the instance. Valid values are standard
  42277. // and unlimited.
  42278. CpuCredits *string `locationName:"cpuCredits" type:"string"`
  42279. // The ID of the instance.
  42280. InstanceId *string `locationName:"instanceId" type:"string"`
  42281. }
  42282. // String returns the string representation
  42283. func (s InstanceCreditSpecification) String() string {
  42284. return awsutil.Prettify(s)
  42285. }
  42286. // GoString returns the string representation
  42287. func (s InstanceCreditSpecification) GoString() string {
  42288. return s.String()
  42289. }
  42290. // SetCpuCredits sets the CpuCredits field's value.
  42291. func (s *InstanceCreditSpecification) SetCpuCredits(v string) *InstanceCreditSpecification {
  42292. s.CpuCredits = &v
  42293. return s
  42294. }
  42295. // SetInstanceId sets the InstanceId field's value.
  42296. func (s *InstanceCreditSpecification) SetInstanceId(v string) *InstanceCreditSpecification {
  42297. s.InstanceId = &v
  42298. return s
  42299. }
  42300. // Describes the credit option for CPU usage of a T2 instance.
  42301. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceCreditSpecificationRequest
  42302. type InstanceCreditSpecificationRequest struct {
  42303. _ struct{} `type:"structure"`
  42304. // The credit option for CPU usage of the instance. Valid values are standard
  42305. // and unlimited.
  42306. CpuCredits *string `type:"string"`
  42307. // The ID of the instance.
  42308. InstanceId *string `type:"string"`
  42309. }
  42310. // String returns the string representation
  42311. func (s InstanceCreditSpecificationRequest) String() string {
  42312. return awsutil.Prettify(s)
  42313. }
  42314. // GoString returns the string representation
  42315. func (s InstanceCreditSpecificationRequest) GoString() string {
  42316. return s.String()
  42317. }
  42318. // SetCpuCredits sets the CpuCredits field's value.
  42319. func (s *InstanceCreditSpecificationRequest) SetCpuCredits(v string) *InstanceCreditSpecificationRequest {
  42320. s.CpuCredits = &v
  42321. return s
  42322. }
  42323. // SetInstanceId sets the InstanceId field's value.
  42324. func (s *InstanceCreditSpecificationRequest) SetInstanceId(v string) *InstanceCreditSpecificationRequest {
  42325. s.InstanceId = &v
  42326. return s
  42327. }
  42328. // Describes an instance to export.
  42329. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceExportDetails
  42330. type InstanceExportDetails struct {
  42331. _ struct{} `type:"structure"`
  42332. // The ID of the resource being exported.
  42333. InstanceId *string `locationName:"instanceId" type:"string"`
  42334. // The target virtualization environment.
  42335. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  42336. }
  42337. // String returns the string representation
  42338. func (s InstanceExportDetails) String() string {
  42339. return awsutil.Prettify(s)
  42340. }
  42341. // GoString returns the string representation
  42342. func (s InstanceExportDetails) GoString() string {
  42343. return s.String()
  42344. }
  42345. // SetInstanceId sets the InstanceId field's value.
  42346. func (s *InstanceExportDetails) SetInstanceId(v string) *InstanceExportDetails {
  42347. s.InstanceId = &v
  42348. return s
  42349. }
  42350. // SetTargetEnvironment sets the TargetEnvironment field's value.
  42351. func (s *InstanceExportDetails) SetTargetEnvironment(v string) *InstanceExportDetails {
  42352. s.TargetEnvironment = &v
  42353. return s
  42354. }
  42355. // Describes an IPv6 address.
  42356. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceIpv6Address
  42357. type InstanceIpv6Address struct {
  42358. _ struct{} `type:"structure"`
  42359. // The IPv6 address.
  42360. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  42361. }
  42362. // String returns the string representation
  42363. func (s InstanceIpv6Address) String() string {
  42364. return awsutil.Prettify(s)
  42365. }
  42366. // GoString returns the string representation
  42367. func (s InstanceIpv6Address) GoString() string {
  42368. return s.String()
  42369. }
  42370. // SetIpv6Address sets the Ipv6Address field's value.
  42371. func (s *InstanceIpv6Address) SetIpv6Address(v string) *InstanceIpv6Address {
  42372. s.Ipv6Address = &v
  42373. return s
  42374. }
  42375. // Describes an IPv6 address.
  42376. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceIpv6AddressRequest
  42377. type InstanceIpv6AddressRequest struct {
  42378. _ struct{} `type:"structure"`
  42379. // The IPv6 address.
  42380. Ipv6Address *string `type:"string"`
  42381. }
  42382. // String returns the string representation
  42383. func (s InstanceIpv6AddressRequest) String() string {
  42384. return awsutil.Prettify(s)
  42385. }
  42386. // GoString returns the string representation
  42387. func (s InstanceIpv6AddressRequest) GoString() string {
  42388. return s.String()
  42389. }
  42390. // SetIpv6Address sets the Ipv6Address field's value.
  42391. func (s *InstanceIpv6AddressRequest) SetIpv6Address(v string) *InstanceIpv6AddressRequest {
  42392. s.Ipv6Address = &v
  42393. return s
  42394. }
  42395. // Describes the market (purchasing) option for the instances.
  42396. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMarketOptionsRequest
  42397. type InstanceMarketOptionsRequest struct {
  42398. _ struct{} `type:"structure"`
  42399. // The market type.
  42400. MarketType *string `type:"string" enum:"MarketType"`
  42401. // The options for Spot Instances.
  42402. SpotOptions *SpotMarketOptions `type:"structure"`
  42403. }
  42404. // String returns the string representation
  42405. func (s InstanceMarketOptionsRequest) String() string {
  42406. return awsutil.Prettify(s)
  42407. }
  42408. // GoString returns the string representation
  42409. func (s InstanceMarketOptionsRequest) GoString() string {
  42410. return s.String()
  42411. }
  42412. // SetMarketType sets the MarketType field's value.
  42413. func (s *InstanceMarketOptionsRequest) SetMarketType(v string) *InstanceMarketOptionsRequest {
  42414. s.MarketType = &v
  42415. return s
  42416. }
  42417. // SetSpotOptions sets the SpotOptions field's value.
  42418. func (s *InstanceMarketOptionsRequest) SetSpotOptions(v *SpotMarketOptions) *InstanceMarketOptionsRequest {
  42419. s.SpotOptions = v
  42420. return s
  42421. }
  42422. // Describes the monitoring of an instance.
  42423. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMonitoring
  42424. type InstanceMonitoring struct {
  42425. _ struct{} `type:"structure"`
  42426. // The ID of the instance.
  42427. InstanceId *string `locationName:"instanceId" type:"string"`
  42428. // The monitoring for the instance.
  42429. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  42430. }
  42431. // String returns the string representation
  42432. func (s InstanceMonitoring) String() string {
  42433. return awsutil.Prettify(s)
  42434. }
  42435. // GoString returns the string representation
  42436. func (s InstanceMonitoring) GoString() string {
  42437. return s.String()
  42438. }
  42439. // SetInstanceId sets the InstanceId field's value.
  42440. func (s *InstanceMonitoring) SetInstanceId(v string) *InstanceMonitoring {
  42441. s.InstanceId = &v
  42442. return s
  42443. }
  42444. // SetMonitoring sets the Monitoring field's value.
  42445. func (s *InstanceMonitoring) SetMonitoring(v *Monitoring) *InstanceMonitoring {
  42446. s.Monitoring = v
  42447. return s
  42448. }
  42449. // Describes a network interface.
  42450. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterface
  42451. type InstanceNetworkInterface struct {
  42452. _ struct{} `type:"structure"`
  42453. // The association information for an Elastic IPv4 associated with the network
  42454. // interface.
  42455. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  42456. // The network interface attachment.
  42457. Attachment *InstanceNetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  42458. // The description.
  42459. Description *string `locationName:"description" type:"string"`
  42460. // One or more security groups.
  42461. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  42462. // One or more IPv6 addresses associated with the network interface.
  42463. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  42464. // The MAC address.
  42465. MacAddress *string `locationName:"macAddress" type:"string"`
  42466. // The ID of the network interface.
  42467. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  42468. // The ID of the AWS account that created the network interface.
  42469. OwnerId *string `locationName:"ownerId" type:"string"`
  42470. // The private DNS name.
  42471. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  42472. // The IPv4 address of the network interface within the subnet.
  42473. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  42474. // One or more private IPv4 addresses associated with the network interface.
  42475. PrivateIpAddresses []*InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  42476. // Indicates whether to validate network traffic to or from this network interface.
  42477. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  42478. // The status of the network interface.
  42479. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  42480. // The ID of the subnet.
  42481. SubnetId *string `locationName:"subnetId" type:"string"`
  42482. // The ID of the VPC.
  42483. VpcId *string `locationName:"vpcId" type:"string"`
  42484. }
  42485. // String returns the string representation
  42486. func (s InstanceNetworkInterface) String() string {
  42487. return awsutil.Prettify(s)
  42488. }
  42489. // GoString returns the string representation
  42490. func (s InstanceNetworkInterface) GoString() string {
  42491. return s.String()
  42492. }
  42493. // SetAssociation sets the Association field's value.
  42494. func (s *InstanceNetworkInterface) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstanceNetworkInterface {
  42495. s.Association = v
  42496. return s
  42497. }
  42498. // SetAttachment sets the Attachment field's value.
  42499. func (s *InstanceNetworkInterface) SetAttachment(v *InstanceNetworkInterfaceAttachment) *InstanceNetworkInterface {
  42500. s.Attachment = v
  42501. return s
  42502. }
  42503. // SetDescription sets the Description field's value.
  42504. func (s *InstanceNetworkInterface) SetDescription(v string) *InstanceNetworkInterface {
  42505. s.Description = &v
  42506. return s
  42507. }
  42508. // SetGroups sets the Groups field's value.
  42509. func (s *InstanceNetworkInterface) SetGroups(v []*GroupIdentifier) *InstanceNetworkInterface {
  42510. s.Groups = v
  42511. return s
  42512. }
  42513. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  42514. func (s *InstanceNetworkInterface) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterface {
  42515. s.Ipv6Addresses = v
  42516. return s
  42517. }
  42518. // SetMacAddress sets the MacAddress field's value.
  42519. func (s *InstanceNetworkInterface) SetMacAddress(v string) *InstanceNetworkInterface {
  42520. s.MacAddress = &v
  42521. return s
  42522. }
  42523. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  42524. func (s *InstanceNetworkInterface) SetNetworkInterfaceId(v string) *InstanceNetworkInterface {
  42525. s.NetworkInterfaceId = &v
  42526. return s
  42527. }
  42528. // SetOwnerId sets the OwnerId field's value.
  42529. func (s *InstanceNetworkInterface) SetOwnerId(v string) *InstanceNetworkInterface {
  42530. s.OwnerId = &v
  42531. return s
  42532. }
  42533. // SetPrivateDnsName sets the PrivateDnsName field's value.
  42534. func (s *InstanceNetworkInterface) SetPrivateDnsName(v string) *InstanceNetworkInterface {
  42535. s.PrivateDnsName = &v
  42536. return s
  42537. }
  42538. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  42539. func (s *InstanceNetworkInterface) SetPrivateIpAddress(v string) *InstanceNetworkInterface {
  42540. s.PrivateIpAddress = &v
  42541. return s
  42542. }
  42543. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  42544. func (s *InstanceNetworkInterface) SetPrivateIpAddresses(v []*InstancePrivateIpAddress) *InstanceNetworkInterface {
  42545. s.PrivateIpAddresses = v
  42546. return s
  42547. }
  42548. // SetSourceDestCheck sets the SourceDestCheck field's value.
  42549. func (s *InstanceNetworkInterface) SetSourceDestCheck(v bool) *InstanceNetworkInterface {
  42550. s.SourceDestCheck = &v
  42551. return s
  42552. }
  42553. // SetStatus sets the Status field's value.
  42554. func (s *InstanceNetworkInterface) SetStatus(v string) *InstanceNetworkInterface {
  42555. s.Status = &v
  42556. return s
  42557. }
  42558. // SetSubnetId sets the SubnetId field's value.
  42559. func (s *InstanceNetworkInterface) SetSubnetId(v string) *InstanceNetworkInterface {
  42560. s.SubnetId = &v
  42561. return s
  42562. }
  42563. // SetVpcId sets the VpcId field's value.
  42564. func (s *InstanceNetworkInterface) SetVpcId(v string) *InstanceNetworkInterface {
  42565. s.VpcId = &v
  42566. return s
  42567. }
  42568. // Describes association information for an Elastic IP address (IPv4).
  42569. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceAssociation
  42570. type InstanceNetworkInterfaceAssociation struct {
  42571. _ struct{} `type:"structure"`
  42572. // The ID of the owner of the Elastic IP address.
  42573. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  42574. // The public DNS name.
  42575. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  42576. // The public IP address or Elastic IP address bound to the network interface.
  42577. PublicIp *string `locationName:"publicIp" type:"string"`
  42578. }
  42579. // String returns the string representation
  42580. func (s InstanceNetworkInterfaceAssociation) String() string {
  42581. return awsutil.Prettify(s)
  42582. }
  42583. // GoString returns the string representation
  42584. func (s InstanceNetworkInterfaceAssociation) GoString() string {
  42585. return s.String()
  42586. }
  42587. // SetIpOwnerId sets the IpOwnerId field's value.
  42588. func (s *InstanceNetworkInterfaceAssociation) SetIpOwnerId(v string) *InstanceNetworkInterfaceAssociation {
  42589. s.IpOwnerId = &v
  42590. return s
  42591. }
  42592. // SetPublicDnsName sets the PublicDnsName field's value.
  42593. func (s *InstanceNetworkInterfaceAssociation) SetPublicDnsName(v string) *InstanceNetworkInterfaceAssociation {
  42594. s.PublicDnsName = &v
  42595. return s
  42596. }
  42597. // SetPublicIp sets the PublicIp field's value.
  42598. func (s *InstanceNetworkInterfaceAssociation) SetPublicIp(v string) *InstanceNetworkInterfaceAssociation {
  42599. s.PublicIp = &v
  42600. return s
  42601. }
  42602. // Describes a network interface attachment.
  42603. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceAttachment
  42604. type InstanceNetworkInterfaceAttachment struct {
  42605. _ struct{} `type:"structure"`
  42606. // The time stamp when the attachment initiated.
  42607. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  42608. // The ID of the network interface attachment.
  42609. AttachmentId *string `locationName:"attachmentId" type:"string"`
  42610. // Indicates whether the network interface is deleted when the instance is terminated.
  42611. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  42612. // The index of the device on the instance for the network interface attachment.
  42613. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  42614. // The attachment state.
  42615. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  42616. }
  42617. // String returns the string representation
  42618. func (s InstanceNetworkInterfaceAttachment) String() string {
  42619. return awsutil.Prettify(s)
  42620. }
  42621. // GoString returns the string representation
  42622. func (s InstanceNetworkInterfaceAttachment) GoString() string {
  42623. return s.String()
  42624. }
  42625. // SetAttachTime sets the AttachTime field's value.
  42626. func (s *InstanceNetworkInterfaceAttachment) SetAttachTime(v time.Time) *InstanceNetworkInterfaceAttachment {
  42627. s.AttachTime = &v
  42628. return s
  42629. }
  42630. // SetAttachmentId sets the AttachmentId field's value.
  42631. func (s *InstanceNetworkInterfaceAttachment) SetAttachmentId(v string) *InstanceNetworkInterfaceAttachment {
  42632. s.AttachmentId = &v
  42633. return s
  42634. }
  42635. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  42636. func (s *InstanceNetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceAttachment {
  42637. s.DeleteOnTermination = &v
  42638. return s
  42639. }
  42640. // SetDeviceIndex sets the DeviceIndex field's value.
  42641. func (s *InstanceNetworkInterfaceAttachment) SetDeviceIndex(v int64) *InstanceNetworkInterfaceAttachment {
  42642. s.DeviceIndex = &v
  42643. return s
  42644. }
  42645. // SetStatus sets the Status field's value.
  42646. func (s *InstanceNetworkInterfaceAttachment) SetStatus(v string) *InstanceNetworkInterfaceAttachment {
  42647. s.Status = &v
  42648. return s
  42649. }
  42650. // Describes a network interface.
  42651. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceSpecification
  42652. type InstanceNetworkInterfaceSpecification struct {
  42653. _ struct{} `type:"structure"`
  42654. // Indicates whether to assign a public IPv4 address to an instance you launch
  42655. // in a VPC. The public IP address can only be assigned to a network interface
  42656. // for eth0, and can only be assigned to a new network interface, not an existing
  42657. // one. You cannot specify more than one network interface in the request. If
  42658. // launching into a default subnet, the default value is true.
  42659. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  42660. // If set to true, the interface is deleted when the instance is terminated.
  42661. // You can specify true only if creating a new network interface when launching
  42662. // an instance.
  42663. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  42664. // The description of the network interface. Applies only if creating a network
  42665. // interface when launching an instance.
  42666. Description *string `locationName:"description" type:"string"`
  42667. // The index of the device on the instance for the network interface attachment.
  42668. // If you are specifying a network interface in a RunInstances request, you
  42669. // must provide the device index.
  42670. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  42671. // The IDs of the security groups for the network interface. Applies only if
  42672. // creating a network interface when launching an instance.
  42673. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  42674. // A number of IPv6 addresses to assign to the network interface. Amazon EC2
  42675. // chooses the IPv6 addresses from the range of the subnet. You cannot specify
  42676. // this option and the option to assign specific IPv6 addresses in the same
  42677. // request. You can specify this option if you've specified a minimum number
  42678. // of instances to launch.
  42679. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  42680. // One or more IPv6 addresses to assign to the network interface. You cannot
  42681. // specify this option and the option to assign a number of IPv6 addresses in
  42682. // the same request. You cannot specify this option if you've specified a minimum
  42683. // number of instances to launch.
  42684. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" queryName:"Ipv6Addresses" locationNameList:"item" type:"list"`
  42685. // The ID of the network interface.
  42686. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  42687. // The private IPv4 address of the network interface. Applies only if creating
  42688. // a network interface when launching an instance. You cannot specify this option
  42689. // if you're launching more than one instance in a RunInstances request.
  42690. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  42691. // One or more private IPv4 addresses to assign to the network interface. Only
  42692. // one private IPv4 address can be designated as primary. You cannot specify
  42693. // this option if you're launching more than one instance in a RunInstances
  42694. // request.
  42695. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"`
  42696. // The number of secondary private IPv4 addresses. You can't specify this option
  42697. // and specify more than one private IP address using the private IP addresses
  42698. // option. You cannot specify this option if you're launching more than one
  42699. // instance in a RunInstances request.
  42700. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  42701. // The ID of the subnet associated with the network string. Applies only if
  42702. // creating a network interface when launching an instance.
  42703. SubnetId *string `locationName:"subnetId" type:"string"`
  42704. }
  42705. // String returns the string representation
  42706. func (s InstanceNetworkInterfaceSpecification) String() string {
  42707. return awsutil.Prettify(s)
  42708. }
  42709. // GoString returns the string representation
  42710. func (s InstanceNetworkInterfaceSpecification) GoString() string {
  42711. return s.String()
  42712. }
  42713. // Validate inspects the fields of the type to determine if they are valid.
  42714. func (s *InstanceNetworkInterfaceSpecification) Validate() error {
  42715. invalidParams := request.ErrInvalidParams{Context: "InstanceNetworkInterfaceSpecification"}
  42716. if s.PrivateIpAddresses != nil {
  42717. for i, v := range s.PrivateIpAddresses {
  42718. if v == nil {
  42719. continue
  42720. }
  42721. if err := v.Validate(); err != nil {
  42722. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  42723. }
  42724. }
  42725. }
  42726. if invalidParams.Len() > 0 {
  42727. return invalidParams
  42728. }
  42729. return nil
  42730. }
  42731. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  42732. func (s *InstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *InstanceNetworkInterfaceSpecification {
  42733. s.AssociatePublicIpAddress = &v
  42734. return s
  42735. }
  42736. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  42737. func (s *InstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *InstanceNetworkInterfaceSpecification {
  42738. s.DeleteOnTermination = &v
  42739. return s
  42740. }
  42741. // SetDescription sets the Description field's value.
  42742. func (s *InstanceNetworkInterfaceSpecification) SetDescription(v string) *InstanceNetworkInterfaceSpecification {
  42743. s.Description = &v
  42744. return s
  42745. }
  42746. // SetDeviceIndex sets the DeviceIndex field's value.
  42747. func (s *InstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *InstanceNetworkInterfaceSpecification {
  42748. s.DeviceIndex = &v
  42749. return s
  42750. }
  42751. // SetGroups sets the Groups field's value.
  42752. func (s *InstanceNetworkInterfaceSpecification) SetGroups(v []*string) *InstanceNetworkInterfaceSpecification {
  42753. s.Groups = v
  42754. return s
  42755. }
  42756. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  42757. func (s *InstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  42758. s.Ipv6AddressCount = &v
  42759. return s
  42760. }
  42761. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  42762. func (s *InstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *InstanceNetworkInterfaceSpecification {
  42763. s.Ipv6Addresses = v
  42764. return s
  42765. }
  42766. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  42767. func (s *InstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *InstanceNetworkInterfaceSpecification {
  42768. s.NetworkInterfaceId = &v
  42769. return s
  42770. }
  42771. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  42772. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *InstanceNetworkInterfaceSpecification {
  42773. s.PrivateIpAddress = &v
  42774. return s
  42775. }
  42776. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  42777. func (s *InstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *InstanceNetworkInterfaceSpecification {
  42778. s.PrivateIpAddresses = v
  42779. return s
  42780. }
  42781. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  42782. func (s *InstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *InstanceNetworkInterfaceSpecification {
  42783. s.SecondaryPrivateIpAddressCount = &v
  42784. return s
  42785. }
  42786. // SetSubnetId sets the SubnetId field's value.
  42787. func (s *InstanceNetworkInterfaceSpecification) SetSubnetId(v string) *InstanceNetworkInterfaceSpecification {
  42788. s.SubnetId = &v
  42789. return s
  42790. }
  42791. // Describes a private IPv4 address.
  42792. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstancePrivateIpAddress
  42793. type InstancePrivateIpAddress struct {
  42794. _ struct{} `type:"structure"`
  42795. // The association information for an Elastic IP address for the network interface.
  42796. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  42797. // Indicates whether this IPv4 address is the primary private IP address of
  42798. // the network interface.
  42799. Primary *bool `locationName:"primary" type:"boolean"`
  42800. // The private IPv4 DNS name.
  42801. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  42802. // The private IPv4 address of the network interface.
  42803. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  42804. }
  42805. // String returns the string representation
  42806. func (s InstancePrivateIpAddress) String() string {
  42807. return awsutil.Prettify(s)
  42808. }
  42809. // GoString returns the string representation
  42810. func (s InstancePrivateIpAddress) GoString() string {
  42811. return s.String()
  42812. }
  42813. // SetAssociation sets the Association field's value.
  42814. func (s *InstancePrivateIpAddress) SetAssociation(v *InstanceNetworkInterfaceAssociation) *InstancePrivateIpAddress {
  42815. s.Association = v
  42816. return s
  42817. }
  42818. // SetPrimary sets the Primary field's value.
  42819. func (s *InstancePrivateIpAddress) SetPrimary(v bool) *InstancePrivateIpAddress {
  42820. s.Primary = &v
  42821. return s
  42822. }
  42823. // SetPrivateDnsName sets the PrivateDnsName field's value.
  42824. func (s *InstancePrivateIpAddress) SetPrivateDnsName(v string) *InstancePrivateIpAddress {
  42825. s.PrivateDnsName = &v
  42826. return s
  42827. }
  42828. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  42829. func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivateIpAddress {
  42830. s.PrivateIpAddress = &v
  42831. return s
  42832. }
  42833. // Describes the current state of an instance.
  42834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceState
  42835. type InstanceState struct {
  42836. _ struct{} `type:"structure"`
  42837. // The low byte represents the state. The high byte is an opaque internal value
  42838. // and should be ignored.
  42839. //
  42840. // * 0 : pending
  42841. //
  42842. // * 16 : running
  42843. //
  42844. // * 32 : shutting-down
  42845. //
  42846. // * 48 : terminated
  42847. //
  42848. // * 64 : stopping
  42849. //
  42850. // * 80 : stopped
  42851. Code *int64 `locationName:"code" type:"integer"`
  42852. // The current state of the instance.
  42853. Name *string `locationName:"name" type:"string" enum:"InstanceStateName"`
  42854. }
  42855. // String returns the string representation
  42856. func (s InstanceState) String() string {
  42857. return awsutil.Prettify(s)
  42858. }
  42859. // GoString returns the string representation
  42860. func (s InstanceState) GoString() string {
  42861. return s.String()
  42862. }
  42863. // SetCode sets the Code field's value.
  42864. func (s *InstanceState) SetCode(v int64) *InstanceState {
  42865. s.Code = &v
  42866. return s
  42867. }
  42868. // SetName sets the Name field's value.
  42869. func (s *InstanceState) SetName(v string) *InstanceState {
  42870. s.Name = &v
  42871. return s
  42872. }
  42873. // Describes an instance state change.
  42874. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStateChange
  42875. type InstanceStateChange struct {
  42876. _ struct{} `type:"structure"`
  42877. // The current state of the instance.
  42878. CurrentState *InstanceState `locationName:"currentState" type:"structure"`
  42879. // The ID of the instance.
  42880. InstanceId *string `locationName:"instanceId" type:"string"`
  42881. // The previous state of the instance.
  42882. PreviousState *InstanceState `locationName:"previousState" type:"structure"`
  42883. }
  42884. // String returns the string representation
  42885. func (s InstanceStateChange) String() string {
  42886. return awsutil.Prettify(s)
  42887. }
  42888. // GoString returns the string representation
  42889. func (s InstanceStateChange) GoString() string {
  42890. return s.String()
  42891. }
  42892. // SetCurrentState sets the CurrentState field's value.
  42893. func (s *InstanceStateChange) SetCurrentState(v *InstanceState) *InstanceStateChange {
  42894. s.CurrentState = v
  42895. return s
  42896. }
  42897. // SetInstanceId sets the InstanceId field's value.
  42898. func (s *InstanceStateChange) SetInstanceId(v string) *InstanceStateChange {
  42899. s.InstanceId = &v
  42900. return s
  42901. }
  42902. // SetPreviousState sets the PreviousState field's value.
  42903. func (s *InstanceStateChange) SetPreviousState(v *InstanceState) *InstanceStateChange {
  42904. s.PreviousState = v
  42905. return s
  42906. }
  42907. // Describes the status of an instance.
  42908. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatus
  42909. type InstanceStatus struct {
  42910. _ struct{} `type:"structure"`
  42911. // The Availability Zone of the instance.
  42912. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  42913. // Any scheduled events associated with the instance.
  42914. Events []*InstanceStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  42915. // The ID of the instance.
  42916. InstanceId *string `locationName:"instanceId" type:"string"`
  42917. // The intended state of the instance. DescribeInstanceStatus requires that
  42918. // an instance be in the running state.
  42919. InstanceState *InstanceState `locationName:"instanceState" type:"structure"`
  42920. // Reports impaired functionality that stems from issues internal to the instance,
  42921. // such as impaired reachability.
  42922. InstanceStatus *InstanceStatusSummary `locationName:"instanceStatus" type:"structure"`
  42923. // Reports impaired functionality that stems from issues related to the systems
  42924. // that support an instance, such as hardware failures and network connectivity
  42925. // problems.
  42926. SystemStatus *InstanceStatusSummary `locationName:"systemStatus" type:"structure"`
  42927. }
  42928. // String returns the string representation
  42929. func (s InstanceStatus) String() string {
  42930. return awsutil.Prettify(s)
  42931. }
  42932. // GoString returns the string representation
  42933. func (s InstanceStatus) GoString() string {
  42934. return s.String()
  42935. }
  42936. // SetAvailabilityZone sets the AvailabilityZone field's value.
  42937. func (s *InstanceStatus) SetAvailabilityZone(v string) *InstanceStatus {
  42938. s.AvailabilityZone = &v
  42939. return s
  42940. }
  42941. // SetEvents sets the Events field's value.
  42942. func (s *InstanceStatus) SetEvents(v []*InstanceStatusEvent) *InstanceStatus {
  42943. s.Events = v
  42944. return s
  42945. }
  42946. // SetInstanceId sets the InstanceId field's value.
  42947. func (s *InstanceStatus) SetInstanceId(v string) *InstanceStatus {
  42948. s.InstanceId = &v
  42949. return s
  42950. }
  42951. // SetInstanceState sets the InstanceState field's value.
  42952. func (s *InstanceStatus) SetInstanceState(v *InstanceState) *InstanceStatus {
  42953. s.InstanceState = v
  42954. return s
  42955. }
  42956. // SetInstanceStatus sets the InstanceStatus field's value.
  42957. func (s *InstanceStatus) SetInstanceStatus(v *InstanceStatusSummary) *InstanceStatus {
  42958. s.InstanceStatus = v
  42959. return s
  42960. }
  42961. // SetSystemStatus sets the SystemStatus field's value.
  42962. func (s *InstanceStatus) SetSystemStatus(v *InstanceStatusSummary) *InstanceStatus {
  42963. s.SystemStatus = v
  42964. return s
  42965. }
  42966. // Describes the instance status.
  42967. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusDetails
  42968. type InstanceStatusDetails struct {
  42969. _ struct{} `type:"structure"`
  42970. // The time when a status check failed. For an instance that was launched and
  42971. // impaired, this is the time when the instance was launched.
  42972. ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp" timestampFormat:"iso8601"`
  42973. // The type of instance status.
  42974. Name *string `locationName:"name" type:"string" enum:"StatusName"`
  42975. // The status.
  42976. Status *string `locationName:"status" type:"string" enum:"StatusType"`
  42977. }
  42978. // String returns the string representation
  42979. func (s InstanceStatusDetails) String() string {
  42980. return awsutil.Prettify(s)
  42981. }
  42982. // GoString returns the string representation
  42983. func (s InstanceStatusDetails) GoString() string {
  42984. return s.String()
  42985. }
  42986. // SetImpairedSince sets the ImpairedSince field's value.
  42987. func (s *InstanceStatusDetails) SetImpairedSince(v time.Time) *InstanceStatusDetails {
  42988. s.ImpairedSince = &v
  42989. return s
  42990. }
  42991. // SetName sets the Name field's value.
  42992. func (s *InstanceStatusDetails) SetName(v string) *InstanceStatusDetails {
  42993. s.Name = &v
  42994. return s
  42995. }
  42996. // SetStatus sets the Status field's value.
  42997. func (s *InstanceStatusDetails) SetStatus(v string) *InstanceStatusDetails {
  42998. s.Status = &v
  42999. return s
  43000. }
  43001. // Describes a scheduled event for an instance.
  43002. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusEvent
  43003. type InstanceStatusEvent struct {
  43004. _ struct{} `type:"structure"`
  43005. // The event code.
  43006. Code *string `locationName:"code" type:"string" enum:"EventCode"`
  43007. // A description of the event.
  43008. //
  43009. // After a scheduled event is completed, it can still be described for up to
  43010. // a week. If the event has been completed, this description starts with the
  43011. // following text: [Completed].
  43012. Description *string `locationName:"description" type:"string"`
  43013. // The latest scheduled end time for the event.
  43014. NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
  43015. // The earliest scheduled start time for the event.
  43016. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
  43017. }
  43018. // String returns the string representation
  43019. func (s InstanceStatusEvent) String() string {
  43020. return awsutil.Prettify(s)
  43021. }
  43022. // GoString returns the string representation
  43023. func (s InstanceStatusEvent) GoString() string {
  43024. return s.String()
  43025. }
  43026. // SetCode sets the Code field's value.
  43027. func (s *InstanceStatusEvent) SetCode(v string) *InstanceStatusEvent {
  43028. s.Code = &v
  43029. return s
  43030. }
  43031. // SetDescription sets the Description field's value.
  43032. func (s *InstanceStatusEvent) SetDescription(v string) *InstanceStatusEvent {
  43033. s.Description = &v
  43034. return s
  43035. }
  43036. // SetNotAfter sets the NotAfter field's value.
  43037. func (s *InstanceStatusEvent) SetNotAfter(v time.Time) *InstanceStatusEvent {
  43038. s.NotAfter = &v
  43039. return s
  43040. }
  43041. // SetNotBefore sets the NotBefore field's value.
  43042. func (s *InstanceStatusEvent) SetNotBefore(v time.Time) *InstanceStatusEvent {
  43043. s.NotBefore = &v
  43044. return s
  43045. }
  43046. // Describes the status of an instance.
  43047. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceStatusSummary
  43048. type InstanceStatusSummary struct {
  43049. _ struct{} `type:"structure"`
  43050. // The system instance health or application instance health.
  43051. Details []*InstanceStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  43052. // The status.
  43053. Status *string `locationName:"status" type:"string" enum:"SummaryStatus"`
  43054. }
  43055. // String returns the string representation
  43056. func (s InstanceStatusSummary) String() string {
  43057. return awsutil.Prettify(s)
  43058. }
  43059. // GoString returns the string representation
  43060. func (s InstanceStatusSummary) GoString() string {
  43061. return s.String()
  43062. }
  43063. // SetDetails sets the Details field's value.
  43064. func (s *InstanceStatusSummary) SetDetails(v []*InstanceStatusDetails) *InstanceStatusSummary {
  43065. s.Details = v
  43066. return s
  43067. }
  43068. // SetStatus sets the Status field's value.
  43069. func (s *InstanceStatusSummary) SetStatus(v string) *InstanceStatusSummary {
  43070. s.Status = &v
  43071. return s
  43072. }
  43073. // Describes an Internet gateway.
  43074. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InternetGateway
  43075. type InternetGateway struct {
  43076. _ struct{} `type:"structure"`
  43077. // Any VPCs attached to the Internet gateway.
  43078. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  43079. // The ID of the Internet gateway.
  43080. InternetGatewayId *string `locationName:"internetGatewayId" type:"string"`
  43081. // Any tags assigned to the Internet gateway.
  43082. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  43083. }
  43084. // String returns the string representation
  43085. func (s InternetGateway) String() string {
  43086. return awsutil.Prettify(s)
  43087. }
  43088. // GoString returns the string representation
  43089. func (s InternetGateway) GoString() string {
  43090. return s.String()
  43091. }
  43092. // SetAttachments sets the Attachments field's value.
  43093. func (s *InternetGateway) SetAttachments(v []*InternetGatewayAttachment) *InternetGateway {
  43094. s.Attachments = v
  43095. return s
  43096. }
  43097. // SetInternetGatewayId sets the InternetGatewayId field's value.
  43098. func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway {
  43099. s.InternetGatewayId = &v
  43100. return s
  43101. }
  43102. // SetTags sets the Tags field's value.
  43103. func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway {
  43104. s.Tags = v
  43105. return s
  43106. }
  43107. // Describes the attachment of a VPC to an Internet gateway or an egress-only
  43108. // Internet gateway.
  43109. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InternetGatewayAttachment
  43110. type InternetGatewayAttachment struct {
  43111. _ struct{} `type:"structure"`
  43112. // The current state of the attachment. For an Internet gateway, the state is
  43113. // available when attached to a VPC; otherwise, this value is not returned.
  43114. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  43115. // The ID of the VPC.
  43116. VpcId *string `locationName:"vpcId" type:"string"`
  43117. }
  43118. // String returns the string representation
  43119. func (s InternetGatewayAttachment) String() string {
  43120. return awsutil.Prettify(s)
  43121. }
  43122. // GoString returns the string representation
  43123. func (s InternetGatewayAttachment) GoString() string {
  43124. return s.String()
  43125. }
  43126. // SetState sets the State field's value.
  43127. func (s *InternetGatewayAttachment) SetState(v string) *InternetGatewayAttachment {
  43128. s.State = &v
  43129. return s
  43130. }
  43131. // SetVpcId sets the VpcId field's value.
  43132. func (s *InternetGatewayAttachment) SetVpcId(v string) *InternetGatewayAttachment {
  43133. s.VpcId = &v
  43134. return s
  43135. }
  43136. // Describes a set of permissions for a security group rule.
  43137. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IpPermission
  43138. type IpPermission struct {
  43139. _ struct{} `type:"structure"`
  43140. // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
  43141. // type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify
  43142. // all ICMP/ICMPv6 types, you must specify all codes.
  43143. FromPort *int64 `locationName:"fromPort" type:"integer"`
  43144. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  43145. //
  43146. // [EC2-VPC only] Use -1 to specify all protocols. When authorizing security
  43147. // group rules, specifying -1 or a protocol number other than tcp, udp, icmp,
  43148. // or 58 (ICMPv6) allows traffic on all ports, regardless of any port range
  43149. // you specify. For tcp, udp, and icmp, you must specify a port range. For 58
  43150. // (ICMPv6), you can optionally specify a port range; if you don't, traffic
  43151. // for all types and codes is allowed when authorizing rules.
  43152. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  43153. // One or more IPv4 ranges.
  43154. IpRanges []*IpRange `locationName:"ipRanges" locationNameList:"item" type:"list"`
  43155. // [EC2-VPC only] One or more IPv6 ranges.
  43156. Ipv6Ranges []*Ipv6Range `locationName:"ipv6Ranges" locationNameList:"item" type:"list"`
  43157. // (EC2-VPC only; valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress
  43158. // and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service.
  43159. // In an AuthorizeSecurityGroupEgress request, this is the AWS service that
  43160. // you want to access through a VPC endpoint from instances associated with
  43161. // the security group.
  43162. PrefixListIds []*PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  43163. // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
  43164. // A value of -1 indicates all ICMP/ICMPv6 codes for the specified ICMP type.
  43165. // If you specify all ICMP/ICMPv6 types, you must specify all codes.
  43166. ToPort *int64 `locationName:"toPort" type:"integer"`
  43167. // One or more security group and AWS account ID pairs.
  43168. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  43169. }
  43170. // String returns the string representation
  43171. func (s IpPermission) String() string {
  43172. return awsutil.Prettify(s)
  43173. }
  43174. // GoString returns the string representation
  43175. func (s IpPermission) GoString() string {
  43176. return s.String()
  43177. }
  43178. // SetFromPort sets the FromPort field's value.
  43179. func (s *IpPermission) SetFromPort(v int64) *IpPermission {
  43180. s.FromPort = &v
  43181. return s
  43182. }
  43183. // SetIpProtocol sets the IpProtocol field's value.
  43184. func (s *IpPermission) SetIpProtocol(v string) *IpPermission {
  43185. s.IpProtocol = &v
  43186. return s
  43187. }
  43188. // SetIpRanges sets the IpRanges field's value.
  43189. func (s *IpPermission) SetIpRanges(v []*IpRange) *IpPermission {
  43190. s.IpRanges = v
  43191. return s
  43192. }
  43193. // SetIpv6Ranges sets the Ipv6Ranges field's value.
  43194. func (s *IpPermission) SetIpv6Ranges(v []*Ipv6Range) *IpPermission {
  43195. s.Ipv6Ranges = v
  43196. return s
  43197. }
  43198. // SetPrefixListIds sets the PrefixListIds field's value.
  43199. func (s *IpPermission) SetPrefixListIds(v []*PrefixListId) *IpPermission {
  43200. s.PrefixListIds = v
  43201. return s
  43202. }
  43203. // SetToPort sets the ToPort field's value.
  43204. func (s *IpPermission) SetToPort(v int64) *IpPermission {
  43205. s.ToPort = &v
  43206. return s
  43207. }
  43208. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  43209. func (s *IpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *IpPermission {
  43210. s.UserIdGroupPairs = v
  43211. return s
  43212. }
  43213. // Describes an IPv4 range.
  43214. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/IpRange
  43215. type IpRange struct {
  43216. _ struct{} `type:"structure"`
  43217. // The IPv4 CIDR range. You can either specify a CIDR range or a source security
  43218. // group, not both. To specify a single IPv4 address, use the /32 prefix length.
  43219. CidrIp *string `locationName:"cidrIp" type:"string"`
  43220. // A description for the security group rule that references this IPv4 address
  43221. // range.
  43222. //
  43223. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  43224. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  43225. Description *string `locationName:"description" type:"string"`
  43226. }
  43227. // String returns the string representation
  43228. func (s IpRange) String() string {
  43229. return awsutil.Prettify(s)
  43230. }
  43231. // GoString returns the string representation
  43232. func (s IpRange) GoString() string {
  43233. return s.String()
  43234. }
  43235. // SetCidrIp sets the CidrIp field's value.
  43236. func (s *IpRange) SetCidrIp(v string) *IpRange {
  43237. s.CidrIp = &v
  43238. return s
  43239. }
  43240. // SetDescription sets the Description field's value.
  43241. func (s *IpRange) SetDescription(v string) *IpRange {
  43242. s.Description = &v
  43243. return s
  43244. }
  43245. // Describes an IPv6 CIDR block.
  43246. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Ipv6CidrBlock
  43247. type Ipv6CidrBlock struct {
  43248. _ struct{} `type:"structure"`
  43249. // The IPv6 CIDR block.
  43250. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  43251. }
  43252. // String returns the string representation
  43253. func (s Ipv6CidrBlock) String() string {
  43254. return awsutil.Prettify(s)
  43255. }
  43256. // GoString returns the string representation
  43257. func (s Ipv6CidrBlock) GoString() string {
  43258. return s.String()
  43259. }
  43260. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  43261. func (s *Ipv6CidrBlock) SetIpv6CidrBlock(v string) *Ipv6CidrBlock {
  43262. s.Ipv6CidrBlock = &v
  43263. return s
  43264. }
  43265. // [EC2-VPC only] Describes an IPv6 range.
  43266. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Ipv6Range
  43267. type Ipv6Range struct {
  43268. _ struct{} `type:"structure"`
  43269. // The IPv6 CIDR range. You can either specify a CIDR range or a source security
  43270. // group, not both. To specify a single IPv6 address, use the /128 prefix length.
  43271. CidrIpv6 *string `locationName:"cidrIpv6" type:"string"`
  43272. // A description for the security group rule that references this IPv6 address
  43273. // range.
  43274. //
  43275. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  43276. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  43277. Description *string `locationName:"description" type:"string"`
  43278. }
  43279. // String returns the string representation
  43280. func (s Ipv6Range) String() string {
  43281. return awsutil.Prettify(s)
  43282. }
  43283. // GoString returns the string representation
  43284. func (s Ipv6Range) GoString() string {
  43285. return s.String()
  43286. }
  43287. // SetCidrIpv6 sets the CidrIpv6 field's value.
  43288. func (s *Ipv6Range) SetCidrIpv6(v string) *Ipv6Range {
  43289. s.CidrIpv6 = &v
  43290. return s
  43291. }
  43292. // SetDescription sets the Description field's value.
  43293. func (s *Ipv6Range) SetDescription(v string) *Ipv6Range {
  43294. s.Description = &v
  43295. return s
  43296. }
  43297. // Describes a key pair.
  43298. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPairInfo
  43299. type KeyPairInfo struct {
  43300. _ struct{} `type:"structure"`
  43301. // If you used CreateKeyPair to create the key pair, this is the SHA-1 digest
  43302. // of the DER encoded private key. If you used ImportKeyPair to provide AWS
  43303. // the public key, this is the MD5 public key fingerprint as specified in section
  43304. // 4 of RFC4716.
  43305. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  43306. // The name of the key pair.
  43307. KeyName *string `locationName:"keyName" type:"string"`
  43308. }
  43309. // String returns the string representation
  43310. func (s KeyPairInfo) String() string {
  43311. return awsutil.Prettify(s)
  43312. }
  43313. // GoString returns the string representation
  43314. func (s KeyPairInfo) GoString() string {
  43315. return s.String()
  43316. }
  43317. // SetKeyFingerprint sets the KeyFingerprint field's value.
  43318. func (s *KeyPairInfo) SetKeyFingerprint(v string) *KeyPairInfo {
  43319. s.KeyFingerprint = &v
  43320. return s
  43321. }
  43322. // SetKeyName sets the KeyName field's value.
  43323. func (s *KeyPairInfo) SetKeyName(v string) *KeyPairInfo {
  43324. s.KeyName = &v
  43325. return s
  43326. }
  43327. // Describes a launch permission.
  43328. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchPermission
  43329. type LaunchPermission struct {
  43330. _ struct{} `type:"structure"`
  43331. // The name of the group.
  43332. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  43333. // The AWS account ID.
  43334. UserId *string `locationName:"userId" type:"string"`
  43335. }
  43336. // String returns the string representation
  43337. func (s LaunchPermission) String() string {
  43338. return awsutil.Prettify(s)
  43339. }
  43340. // GoString returns the string representation
  43341. func (s LaunchPermission) GoString() string {
  43342. return s.String()
  43343. }
  43344. // SetGroup sets the Group field's value.
  43345. func (s *LaunchPermission) SetGroup(v string) *LaunchPermission {
  43346. s.Group = &v
  43347. return s
  43348. }
  43349. // SetUserId sets the UserId field's value.
  43350. func (s *LaunchPermission) SetUserId(v string) *LaunchPermission {
  43351. s.UserId = &v
  43352. return s
  43353. }
  43354. // Describes a launch permission modification.
  43355. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchPermissionModifications
  43356. type LaunchPermissionModifications struct {
  43357. _ struct{} `type:"structure"`
  43358. // The AWS account ID to add to the list of launch permissions for the AMI.
  43359. Add []*LaunchPermission `locationNameList:"item" type:"list"`
  43360. // The AWS account ID to remove from the list of launch permissions for the
  43361. // AMI.
  43362. Remove []*LaunchPermission `locationNameList:"item" type:"list"`
  43363. }
  43364. // String returns the string representation
  43365. func (s LaunchPermissionModifications) String() string {
  43366. return awsutil.Prettify(s)
  43367. }
  43368. // GoString returns the string representation
  43369. func (s LaunchPermissionModifications) GoString() string {
  43370. return s.String()
  43371. }
  43372. // SetAdd sets the Add field's value.
  43373. func (s *LaunchPermissionModifications) SetAdd(v []*LaunchPermission) *LaunchPermissionModifications {
  43374. s.Add = v
  43375. return s
  43376. }
  43377. // SetRemove sets the Remove field's value.
  43378. func (s *LaunchPermissionModifications) SetRemove(v []*LaunchPermission) *LaunchPermissionModifications {
  43379. s.Remove = v
  43380. return s
  43381. }
  43382. // Describes the launch specification for an instance.
  43383. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchSpecification
  43384. type LaunchSpecification struct {
  43385. _ struct{} `type:"structure"`
  43386. // Deprecated.
  43387. AddressingType *string `locationName:"addressingType" type:"string"`
  43388. // One or more block device mapping entries.
  43389. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  43390. // Indicates whether the instance is optimized for EBS I/O. This optimization
  43391. // provides dedicated throughput to Amazon EBS and an optimized configuration
  43392. // stack to provide optimal EBS I/O performance. This optimization isn't available
  43393. // with all instance types. Additional usage charges apply when using an EBS
  43394. // Optimized instance.
  43395. //
  43396. // Default: false
  43397. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  43398. // The IAM instance profile.
  43399. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  43400. // The ID of the AMI.
  43401. ImageId *string `locationName:"imageId" type:"string"`
  43402. // The instance type.
  43403. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  43404. // The ID of the kernel.
  43405. KernelId *string `locationName:"kernelId" type:"string"`
  43406. // The name of the key pair.
  43407. KeyName *string `locationName:"keyName" type:"string"`
  43408. // Describes the monitoring of an instance.
  43409. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  43410. // One or more network interfaces. If you specify a network interface, you must
  43411. // specify subnet IDs and security group IDs using the network interface.
  43412. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  43413. // The placement information for the instance.
  43414. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  43415. // The ID of the RAM disk.
  43416. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  43417. // One or more security groups. When requesting instances in a VPC, you must
  43418. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  43419. // you can specify the names or the IDs of the security groups.
  43420. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  43421. // The ID of the subnet in which to launch the instance.
  43422. SubnetId *string `locationName:"subnetId" type:"string"`
  43423. // The user data to make available to the instances. If you are using an AWS
  43424. // SDK or command line tool, Base64-encoding is performed for you, and you can
  43425. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  43426. UserData *string `locationName:"userData" type:"string"`
  43427. }
  43428. // String returns the string representation
  43429. func (s LaunchSpecification) String() string {
  43430. return awsutil.Prettify(s)
  43431. }
  43432. // GoString returns the string representation
  43433. func (s LaunchSpecification) GoString() string {
  43434. return s.String()
  43435. }
  43436. // SetAddressingType sets the AddressingType field's value.
  43437. func (s *LaunchSpecification) SetAddressingType(v string) *LaunchSpecification {
  43438. s.AddressingType = &v
  43439. return s
  43440. }
  43441. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  43442. func (s *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification {
  43443. s.BlockDeviceMappings = v
  43444. return s
  43445. }
  43446. // SetEbsOptimized sets the EbsOptimized field's value.
  43447. func (s *LaunchSpecification) SetEbsOptimized(v bool) *LaunchSpecification {
  43448. s.EbsOptimized = &v
  43449. return s
  43450. }
  43451. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  43452. func (s *LaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *LaunchSpecification {
  43453. s.IamInstanceProfile = v
  43454. return s
  43455. }
  43456. // SetImageId sets the ImageId field's value.
  43457. func (s *LaunchSpecification) SetImageId(v string) *LaunchSpecification {
  43458. s.ImageId = &v
  43459. return s
  43460. }
  43461. // SetInstanceType sets the InstanceType field's value.
  43462. func (s *LaunchSpecification) SetInstanceType(v string) *LaunchSpecification {
  43463. s.InstanceType = &v
  43464. return s
  43465. }
  43466. // SetKernelId sets the KernelId field's value.
  43467. func (s *LaunchSpecification) SetKernelId(v string) *LaunchSpecification {
  43468. s.KernelId = &v
  43469. return s
  43470. }
  43471. // SetKeyName sets the KeyName field's value.
  43472. func (s *LaunchSpecification) SetKeyName(v string) *LaunchSpecification {
  43473. s.KeyName = &v
  43474. return s
  43475. }
  43476. // SetMonitoring sets the Monitoring field's value.
  43477. func (s *LaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *LaunchSpecification {
  43478. s.Monitoring = v
  43479. return s
  43480. }
  43481. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  43482. func (s *LaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *LaunchSpecification {
  43483. s.NetworkInterfaces = v
  43484. return s
  43485. }
  43486. // SetPlacement sets the Placement field's value.
  43487. func (s *LaunchSpecification) SetPlacement(v *SpotPlacement) *LaunchSpecification {
  43488. s.Placement = v
  43489. return s
  43490. }
  43491. // SetRamdiskId sets the RamdiskId field's value.
  43492. func (s *LaunchSpecification) SetRamdiskId(v string) *LaunchSpecification {
  43493. s.RamdiskId = &v
  43494. return s
  43495. }
  43496. // SetSecurityGroups sets the SecurityGroups field's value.
  43497. func (s *LaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *LaunchSpecification {
  43498. s.SecurityGroups = v
  43499. return s
  43500. }
  43501. // SetSubnetId sets the SubnetId field's value.
  43502. func (s *LaunchSpecification) SetSubnetId(v string) *LaunchSpecification {
  43503. s.SubnetId = &v
  43504. return s
  43505. }
  43506. // SetUserData sets the UserData field's value.
  43507. func (s *LaunchSpecification) SetUserData(v string) *LaunchSpecification {
  43508. s.UserData = &v
  43509. return s
  43510. }
  43511. // Describes a launch template.
  43512. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplate
  43513. type LaunchTemplate struct {
  43514. _ struct{} `type:"structure"`
  43515. // The time launch template was created.
  43516. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  43517. // The principal that created the launch template.
  43518. CreatedBy *string `locationName:"createdBy" type:"string"`
  43519. // The version number of the default version of the launch template.
  43520. DefaultVersionNumber *int64 `locationName:"defaultVersionNumber" type:"long"`
  43521. // The version number of the latest version of the launch template.
  43522. LatestVersionNumber *int64 `locationName:"latestVersionNumber" type:"long"`
  43523. // The ID of the launch template.
  43524. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  43525. // The name of the launch template.
  43526. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  43527. // The tags for the launch template.
  43528. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  43529. }
  43530. // String returns the string representation
  43531. func (s LaunchTemplate) String() string {
  43532. return awsutil.Prettify(s)
  43533. }
  43534. // GoString returns the string representation
  43535. func (s LaunchTemplate) GoString() string {
  43536. return s.String()
  43537. }
  43538. // SetCreateTime sets the CreateTime field's value.
  43539. func (s *LaunchTemplate) SetCreateTime(v time.Time) *LaunchTemplate {
  43540. s.CreateTime = &v
  43541. return s
  43542. }
  43543. // SetCreatedBy sets the CreatedBy field's value.
  43544. func (s *LaunchTemplate) SetCreatedBy(v string) *LaunchTemplate {
  43545. s.CreatedBy = &v
  43546. return s
  43547. }
  43548. // SetDefaultVersionNumber sets the DefaultVersionNumber field's value.
  43549. func (s *LaunchTemplate) SetDefaultVersionNumber(v int64) *LaunchTemplate {
  43550. s.DefaultVersionNumber = &v
  43551. return s
  43552. }
  43553. // SetLatestVersionNumber sets the LatestVersionNumber field's value.
  43554. func (s *LaunchTemplate) SetLatestVersionNumber(v int64) *LaunchTemplate {
  43555. s.LatestVersionNumber = &v
  43556. return s
  43557. }
  43558. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  43559. func (s *LaunchTemplate) SetLaunchTemplateId(v string) *LaunchTemplate {
  43560. s.LaunchTemplateId = &v
  43561. return s
  43562. }
  43563. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  43564. func (s *LaunchTemplate) SetLaunchTemplateName(v string) *LaunchTemplate {
  43565. s.LaunchTemplateName = &v
  43566. return s
  43567. }
  43568. // SetTags sets the Tags field's value.
  43569. func (s *LaunchTemplate) SetTags(v []*Tag) *LaunchTemplate {
  43570. s.Tags = v
  43571. return s
  43572. }
  43573. // Describes a block device mapping.
  43574. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateBlockDeviceMapping
  43575. type LaunchTemplateBlockDeviceMapping struct {
  43576. _ struct{} `type:"structure"`
  43577. // The device name.
  43578. DeviceName *string `locationName:"deviceName" type:"string"`
  43579. // Information about the block device for an EBS volume.
  43580. Ebs *LaunchTemplateEbsBlockDevice `locationName:"ebs" type:"structure"`
  43581. // Suppresses the specified device included in the block device mapping of the
  43582. // AMI.
  43583. NoDevice *string `locationName:"noDevice" type:"string"`
  43584. // The virtual device name (ephemeralN).
  43585. VirtualName *string `locationName:"virtualName" type:"string"`
  43586. }
  43587. // String returns the string representation
  43588. func (s LaunchTemplateBlockDeviceMapping) String() string {
  43589. return awsutil.Prettify(s)
  43590. }
  43591. // GoString returns the string representation
  43592. func (s LaunchTemplateBlockDeviceMapping) GoString() string {
  43593. return s.String()
  43594. }
  43595. // SetDeviceName sets the DeviceName field's value.
  43596. func (s *LaunchTemplateBlockDeviceMapping) SetDeviceName(v string) *LaunchTemplateBlockDeviceMapping {
  43597. s.DeviceName = &v
  43598. return s
  43599. }
  43600. // SetEbs sets the Ebs field's value.
  43601. func (s *LaunchTemplateBlockDeviceMapping) SetEbs(v *LaunchTemplateEbsBlockDevice) *LaunchTemplateBlockDeviceMapping {
  43602. s.Ebs = v
  43603. return s
  43604. }
  43605. // SetNoDevice sets the NoDevice field's value.
  43606. func (s *LaunchTemplateBlockDeviceMapping) SetNoDevice(v string) *LaunchTemplateBlockDeviceMapping {
  43607. s.NoDevice = &v
  43608. return s
  43609. }
  43610. // SetVirtualName sets the VirtualName field's value.
  43611. func (s *LaunchTemplateBlockDeviceMapping) SetVirtualName(v string) *LaunchTemplateBlockDeviceMapping {
  43612. s.VirtualName = &v
  43613. return s
  43614. }
  43615. // Describes a block device mapping.
  43616. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateBlockDeviceMappingRequest
  43617. type LaunchTemplateBlockDeviceMappingRequest struct {
  43618. _ struct{} `type:"structure"`
  43619. // The device name (for example, /dev/sdh or xvdh).
  43620. DeviceName *string `type:"string"`
  43621. // Parameters used to automatically set up EBS volumes when the instance is
  43622. // launched.
  43623. Ebs *LaunchTemplateEbsBlockDeviceRequest `type:"structure"`
  43624. // Suppresses the specified device included in the block device mapping of the
  43625. // AMI.
  43626. NoDevice *string `type:"string"`
  43627. // The virtual device name (ephemeralN). Instance store volumes are numbered
  43628. // starting from 0. An instance type with 2 available instance store volumes
  43629. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  43630. // instance store volumes depends on the instance type. After you connect to
  43631. // the instance, you must mount the volume.
  43632. VirtualName *string `type:"string"`
  43633. }
  43634. // String returns the string representation
  43635. func (s LaunchTemplateBlockDeviceMappingRequest) String() string {
  43636. return awsutil.Prettify(s)
  43637. }
  43638. // GoString returns the string representation
  43639. func (s LaunchTemplateBlockDeviceMappingRequest) GoString() string {
  43640. return s.String()
  43641. }
  43642. // SetDeviceName sets the DeviceName field's value.
  43643. func (s *LaunchTemplateBlockDeviceMappingRequest) SetDeviceName(v string) *LaunchTemplateBlockDeviceMappingRequest {
  43644. s.DeviceName = &v
  43645. return s
  43646. }
  43647. // SetEbs sets the Ebs field's value.
  43648. func (s *LaunchTemplateBlockDeviceMappingRequest) SetEbs(v *LaunchTemplateEbsBlockDeviceRequest) *LaunchTemplateBlockDeviceMappingRequest {
  43649. s.Ebs = v
  43650. return s
  43651. }
  43652. // SetNoDevice sets the NoDevice field's value.
  43653. func (s *LaunchTemplateBlockDeviceMappingRequest) SetNoDevice(v string) *LaunchTemplateBlockDeviceMappingRequest {
  43654. s.NoDevice = &v
  43655. return s
  43656. }
  43657. // SetVirtualName sets the VirtualName field's value.
  43658. func (s *LaunchTemplateBlockDeviceMappingRequest) SetVirtualName(v string) *LaunchTemplateBlockDeviceMappingRequest {
  43659. s.VirtualName = &v
  43660. return s
  43661. }
  43662. // Describes a launch template and overrides.
  43663. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateConfig
  43664. type LaunchTemplateConfig struct {
  43665. _ struct{} `type:"structure"`
  43666. // The launch template.
  43667. LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"`
  43668. // Any parameters that you specify override the same parameters in the launch
  43669. // template.
  43670. Overrides []*LaunchTemplateOverrides `locationName:"overrides" locationNameList:"item" type:"list"`
  43671. }
  43672. // String returns the string representation
  43673. func (s LaunchTemplateConfig) String() string {
  43674. return awsutil.Prettify(s)
  43675. }
  43676. // GoString returns the string representation
  43677. func (s LaunchTemplateConfig) GoString() string {
  43678. return s.String()
  43679. }
  43680. // Validate inspects the fields of the type to determine if they are valid.
  43681. func (s *LaunchTemplateConfig) Validate() error {
  43682. invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateConfig"}
  43683. if s.LaunchTemplateSpecification != nil {
  43684. if err := s.LaunchTemplateSpecification.Validate(); err != nil {
  43685. invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams))
  43686. }
  43687. }
  43688. if invalidParams.Len() > 0 {
  43689. return invalidParams
  43690. }
  43691. return nil
  43692. }
  43693. // SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value.
  43694. func (s *LaunchTemplateConfig) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *LaunchTemplateConfig {
  43695. s.LaunchTemplateSpecification = v
  43696. return s
  43697. }
  43698. // SetOverrides sets the Overrides field's value.
  43699. func (s *LaunchTemplateConfig) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTemplateConfig {
  43700. s.Overrides = v
  43701. return s
  43702. }
  43703. // Describes a block device for an EBS volume.
  43704. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateEbsBlockDevice
  43705. type LaunchTemplateEbsBlockDevice struct {
  43706. _ struct{} `type:"structure"`
  43707. // Indicates whether the EBS volume is deleted on instance termination.
  43708. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  43709. // Indicates whether the EBS volume is encrypted.
  43710. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  43711. // The number of I/O operations per second (IOPS) that the volume supports.
  43712. Iops *int64 `locationName:"iops" type:"integer"`
  43713. // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
  43714. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  43715. // The ID of the snapshot.
  43716. SnapshotId *string `locationName:"snapshotId" type:"string"`
  43717. // The size of the volume, in GiB.
  43718. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  43719. // The volume type.
  43720. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  43721. }
  43722. // String returns the string representation
  43723. func (s LaunchTemplateEbsBlockDevice) String() string {
  43724. return awsutil.Prettify(s)
  43725. }
  43726. // GoString returns the string representation
  43727. func (s LaunchTemplateEbsBlockDevice) GoString() string {
  43728. return s.String()
  43729. }
  43730. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  43731. func (s *LaunchTemplateEbsBlockDevice) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDevice {
  43732. s.DeleteOnTermination = &v
  43733. return s
  43734. }
  43735. // SetEncrypted sets the Encrypted field's value.
  43736. func (s *LaunchTemplateEbsBlockDevice) SetEncrypted(v bool) *LaunchTemplateEbsBlockDevice {
  43737. s.Encrypted = &v
  43738. return s
  43739. }
  43740. // SetIops sets the Iops field's value.
  43741. func (s *LaunchTemplateEbsBlockDevice) SetIops(v int64) *LaunchTemplateEbsBlockDevice {
  43742. s.Iops = &v
  43743. return s
  43744. }
  43745. // SetKmsKeyId sets the KmsKeyId field's value.
  43746. func (s *LaunchTemplateEbsBlockDevice) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDevice {
  43747. s.KmsKeyId = &v
  43748. return s
  43749. }
  43750. // SetSnapshotId sets the SnapshotId field's value.
  43751. func (s *LaunchTemplateEbsBlockDevice) SetSnapshotId(v string) *LaunchTemplateEbsBlockDevice {
  43752. s.SnapshotId = &v
  43753. return s
  43754. }
  43755. // SetVolumeSize sets the VolumeSize field's value.
  43756. func (s *LaunchTemplateEbsBlockDevice) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDevice {
  43757. s.VolumeSize = &v
  43758. return s
  43759. }
  43760. // SetVolumeType sets the VolumeType field's value.
  43761. func (s *LaunchTemplateEbsBlockDevice) SetVolumeType(v string) *LaunchTemplateEbsBlockDevice {
  43762. s.VolumeType = &v
  43763. return s
  43764. }
  43765. // The parameters for a block device for an EBS volume.
  43766. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateEbsBlockDeviceRequest
  43767. type LaunchTemplateEbsBlockDeviceRequest struct {
  43768. _ struct{} `type:"structure"`
  43769. // Indicates whether the EBS volume is deleted on instance termination.
  43770. DeleteOnTermination *bool `type:"boolean"`
  43771. // Indicates whether the EBS volume is encrypted. Encrypted volumes can only
  43772. // be attached to instances that support Amazon EBS encryption. If you are creating
  43773. // a volume from a snapshot, you can't specify an encryption value.
  43774. Encrypted *bool `type:"boolean"`
  43775. // The number of I/O operations per second (IOPS) that the volume supports.
  43776. // For io1, this represents the number of IOPS that are provisioned for the
  43777. // volume. For gp2, this represents the baseline performance of the volume and
  43778. // the rate at which the volume accumulates I/O credits for bursting. For more
  43779. // information about General Purpose SSD baseline performance, I/O credits,
  43780. // and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud
  43781. // User Guide.
  43782. //
  43783. // Condition: This parameter is required for requests to create io1 volumes;
  43784. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  43785. Iops *int64 `type:"integer"`
  43786. // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
  43787. KmsKeyId *string `type:"string"`
  43788. // The ID of the snapshot.
  43789. SnapshotId *string `type:"string"`
  43790. // The size of the volume, in GiB.
  43791. //
  43792. // Default: If you're creating the volume from a snapshot and don't specify
  43793. // a volume size, the default is the snapshot size.
  43794. VolumeSize *int64 `type:"integer"`
  43795. // The volume type.
  43796. VolumeType *string `type:"string" enum:"VolumeType"`
  43797. }
  43798. // String returns the string representation
  43799. func (s LaunchTemplateEbsBlockDeviceRequest) String() string {
  43800. return awsutil.Prettify(s)
  43801. }
  43802. // GoString returns the string representation
  43803. func (s LaunchTemplateEbsBlockDeviceRequest) GoString() string {
  43804. return s.String()
  43805. }
  43806. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  43807. func (s *LaunchTemplateEbsBlockDeviceRequest) SetDeleteOnTermination(v bool) *LaunchTemplateEbsBlockDeviceRequest {
  43808. s.DeleteOnTermination = &v
  43809. return s
  43810. }
  43811. // SetEncrypted sets the Encrypted field's value.
  43812. func (s *LaunchTemplateEbsBlockDeviceRequest) SetEncrypted(v bool) *LaunchTemplateEbsBlockDeviceRequest {
  43813. s.Encrypted = &v
  43814. return s
  43815. }
  43816. // SetIops sets the Iops field's value.
  43817. func (s *LaunchTemplateEbsBlockDeviceRequest) SetIops(v int64) *LaunchTemplateEbsBlockDeviceRequest {
  43818. s.Iops = &v
  43819. return s
  43820. }
  43821. // SetKmsKeyId sets the KmsKeyId field's value.
  43822. func (s *LaunchTemplateEbsBlockDeviceRequest) SetKmsKeyId(v string) *LaunchTemplateEbsBlockDeviceRequest {
  43823. s.KmsKeyId = &v
  43824. return s
  43825. }
  43826. // SetSnapshotId sets the SnapshotId field's value.
  43827. func (s *LaunchTemplateEbsBlockDeviceRequest) SetSnapshotId(v string) *LaunchTemplateEbsBlockDeviceRequest {
  43828. s.SnapshotId = &v
  43829. return s
  43830. }
  43831. // SetVolumeSize sets the VolumeSize field's value.
  43832. func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeSize(v int64) *LaunchTemplateEbsBlockDeviceRequest {
  43833. s.VolumeSize = &v
  43834. return s
  43835. }
  43836. // SetVolumeType sets the VolumeType field's value.
  43837. func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeType(v string) *LaunchTemplateEbsBlockDeviceRequest {
  43838. s.VolumeType = &v
  43839. return s
  43840. }
  43841. // Describes an IAM instance profile.
  43842. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateIamInstanceProfileSpecification
  43843. type LaunchTemplateIamInstanceProfileSpecification struct {
  43844. _ struct{} `type:"structure"`
  43845. // The Amazon Resource Name (ARN) of the instance profile.
  43846. Arn *string `locationName:"arn" type:"string"`
  43847. // The name of the instance profile.
  43848. Name *string `locationName:"name" type:"string"`
  43849. }
  43850. // String returns the string representation
  43851. func (s LaunchTemplateIamInstanceProfileSpecification) String() string {
  43852. return awsutil.Prettify(s)
  43853. }
  43854. // GoString returns the string representation
  43855. func (s LaunchTemplateIamInstanceProfileSpecification) GoString() string {
  43856. return s.String()
  43857. }
  43858. // SetArn sets the Arn field's value.
  43859. func (s *LaunchTemplateIamInstanceProfileSpecification) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecification {
  43860. s.Arn = &v
  43861. return s
  43862. }
  43863. // SetName sets the Name field's value.
  43864. func (s *LaunchTemplateIamInstanceProfileSpecification) SetName(v string) *LaunchTemplateIamInstanceProfileSpecification {
  43865. s.Name = &v
  43866. return s
  43867. }
  43868. // An IAM instance profile.
  43869. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateIamInstanceProfileSpecificationRequest
  43870. type LaunchTemplateIamInstanceProfileSpecificationRequest struct {
  43871. _ struct{} `type:"structure"`
  43872. // The Amazon Resource Name (ARN) of the instance profile.
  43873. Arn *string `type:"string"`
  43874. // The name of the instance profile.
  43875. Name *string `type:"string"`
  43876. }
  43877. // String returns the string representation
  43878. func (s LaunchTemplateIamInstanceProfileSpecificationRequest) String() string {
  43879. return awsutil.Prettify(s)
  43880. }
  43881. // GoString returns the string representation
  43882. func (s LaunchTemplateIamInstanceProfileSpecificationRequest) GoString() string {
  43883. return s.String()
  43884. }
  43885. // SetArn sets the Arn field's value.
  43886. func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetArn(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest {
  43887. s.Arn = &v
  43888. return s
  43889. }
  43890. // SetName sets the Name field's value.
  43891. func (s *LaunchTemplateIamInstanceProfileSpecificationRequest) SetName(v string) *LaunchTemplateIamInstanceProfileSpecificationRequest {
  43892. s.Name = &v
  43893. return s
  43894. }
  43895. // The market (purchasing) option for the instances.
  43896. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceMarketOptions
  43897. type LaunchTemplateInstanceMarketOptions struct {
  43898. _ struct{} `type:"structure"`
  43899. // The market type.
  43900. MarketType *string `locationName:"marketType" type:"string" enum:"MarketType"`
  43901. // The options for Spot Instances.
  43902. SpotOptions *LaunchTemplateSpotMarketOptions `locationName:"spotOptions" type:"structure"`
  43903. }
  43904. // String returns the string representation
  43905. func (s LaunchTemplateInstanceMarketOptions) String() string {
  43906. return awsutil.Prettify(s)
  43907. }
  43908. // GoString returns the string representation
  43909. func (s LaunchTemplateInstanceMarketOptions) GoString() string {
  43910. return s.String()
  43911. }
  43912. // SetMarketType sets the MarketType field's value.
  43913. func (s *LaunchTemplateInstanceMarketOptions) SetMarketType(v string) *LaunchTemplateInstanceMarketOptions {
  43914. s.MarketType = &v
  43915. return s
  43916. }
  43917. // SetSpotOptions sets the SpotOptions field's value.
  43918. func (s *LaunchTemplateInstanceMarketOptions) SetSpotOptions(v *LaunchTemplateSpotMarketOptions) *LaunchTemplateInstanceMarketOptions {
  43919. s.SpotOptions = v
  43920. return s
  43921. }
  43922. // The market (purchasing) option for the instances.
  43923. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceMarketOptionsRequest
  43924. type LaunchTemplateInstanceMarketOptionsRequest struct {
  43925. _ struct{} `type:"structure"`
  43926. // The market type.
  43927. MarketType *string `type:"string" enum:"MarketType"`
  43928. // The options for Spot Instances.
  43929. SpotOptions *LaunchTemplateSpotMarketOptionsRequest `type:"structure"`
  43930. }
  43931. // String returns the string representation
  43932. func (s LaunchTemplateInstanceMarketOptionsRequest) String() string {
  43933. return awsutil.Prettify(s)
  43934. }
  43935. // GoString returns the string representation
  43936. func (s LaunchTemplateInstanceMarketOptionsRequest) GoString() string {
  43937. return s.String()
  43938. }
  43939. // SetMarketType sets the MarketType field's value.
  43940. func (s *LaunchTemplateInstanceMarketOptionsRequest) SetMarketType(v string) *LaunchTemplateInstanceMarketOptionsRequest {
  43941. s.MarketType = &v
  43942. return s
  43943. }
  43944. // SetSpotOptions sets the SpotOptions field's value.
  43945. func (s *LaunchTemplateInstanceMarketOptionsRequest) SetSpotOptions(v *LaunchTemplateSpotMarketOptionsRequest) *LaunchTemplateInstanceMarketOptionsRequest {
  43946. s.SpotOptions = v
  43947. return s
  43948. }
  43949. // Describes a network interface.
  43950. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceNetworkInterfaceSpecification
  43951. type LaunchTemplateInstanceNetworkInterfaceSpecification struct {
  43952. _ struct{} `type:"structure"`
  43953. // Indicates whether to associate a public IPv4 address with eth0 for a new
  43954. // network interface.
  43955. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  43956. // Indicates whether the network interface is deleted when the instance is terminated.
  43957. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  43958. // A description for the network interface.
  43959. Description *string `locationName:"description" type:"string"`
  43960. // The device index for the network interface attachment.
  43961. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  43962. // The IDs of one or more security groups.
  43963. Groups []*string `locationName:"groupSet" locationNameList:"groupId" type:"list"`
  43964. // The number of IPv6 addresses for the network interface.
  43965. Ipv6AddressCount *int64 `locationName:"ipv6AddressCount" type:"integer"`
  43966. // The IPv6 addresses for the network interface.
  43967. Ipv6Addresses []*InstanceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  43968. // The ID of the network interface.
  43969. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  43970. // The primary private IPv4 address of the network interface.
  43971. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  43972. // One or more private IPv4 addresses.
  43973. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  43974. // The number of secondary private IPv4 addresses for the network interface.
  43975. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  43976. // The ID of the subnet for the network interface.
  43977. SubnetId *string `locationName:"subnetId" type:"string"`
  43978. }
  43979. // String returns the string representation
  43980. func (s LaunchTemplateInstanceNetworkInterfaceSpecification) String() string {
  43981. return awsutil.Prettify(s)
  43982. }
  43983. // GoString returns the string representation
  43984. func (s LaunchTemplateInstanceNetworkInterfaceSpecification) GoString() string {
  43985. return s.String()
  43986. }
  43987. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  43988. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  43989. s.AssociatePublicIpAddress = &v
  43990. return s
  43991. }
  43992. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  43993. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  43994. s.DeleteOnTermination = &v
  43995. return s
  43996. }
  43997. // SetDescription sets the Description field's value.
  43998. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  43999. s.Description = &v
  44000. return s
  44001. }
  44002. // SetDeviceIndex sets the DeviceIndex field's value.
  44003. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44004. s.DeviceIndex = &v
  44005. return s
  44006. }
  44007. // SetGroups sets the Groups field's value.
  44008. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44009. s.Groups = v
  44010. return s
  44011. }
  44012. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  44013. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44014. s.Ipv6AddressCount = &v
  44015. return s
  44016. }
  44017. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  44018. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetIpv6Addresses(v []*InstanceIpv6Address) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44019. s.Ipv6Addresses = v
  44020. return s
  44021. }
  44022. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  44023. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44024. s.NetworkInterfaceId = &v
  44025. return s
  44026. }
  44027. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  44028. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44029. s.PrivateIpAddress = &v
  44030. return s
  44031. }
  44032. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  44033. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44034. s.PrivateIpAddresses = v
  44035. return s
  44036. }
  44037. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  44038. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44039. s.SecondaryPrivateIpAddressCount = &v
  44040. return s
  44041. }
  44042. // SetSubnetId sets the SubnetId field's value.
  44043. func (s *LaunchTemplateInstanceNetworkInterfaceSpecification) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecification {
  44044. s.SubnetId = &v
  44045. return s
  44046. }
  44047. // The parameters for a network interface.
  44048. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceNetworkInterfaceSpecificationRequest
  44049. type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct {
  44050. _ struct{} `type:"structure"`
  44051. // Associates a public IPv4 address with eth0 for a new network interface.
  44052. AssociatePublicIpAddress *bool `type:"boolean"`
  44053. // Indicates whether the network interface is deleted when the instance is terminated.
  44054. DeleteOnTermination *bool `type:"boolean"`
  44055. // A description for the network interface.
  44056. Description *string `type:"string"`
  44057. // The device index for the network interface attachment.
  44058. DeviceIndex *int64 `type:"integer"`
  44059. // The IDs of one or more security groups.
  44060. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  44061. // The number of IPv6 addresses to assign to a network interface. Amazon EC2
  44062. // automatically selects the IPv6 addresses from the subnet range. You can't
  44063. // use this option if specifying specific IPv6 addresses.
  44064. Ipv6AddressCount *int64 `type:"integer"`
  44065. // One or more specific IPv6 addresses from the IPv6 CIDR block range of your
  44066. // subnet. You can't use this option if you're specifying a number of IPv6 addresses.
  44067. Ipv6Addresses []*InstanceIpv6AddressRequest `locationNameList:"InstanceIpv6Address" type:"list"`
  44068. // The ID of the network interface.
  44069. NetworkInterfaceId *string `type:"string"`
  44070. // The primary private IPv4 address of the network interface.
  44071. PrivateIpAddress *string `type:"string"`
  44072. // One or more private IPv4 addresses.
  44073. PrivateIpAddresses []*PrivateIpAddressSpecification `locationNameList:"item" type:"list"`
  44074. // The number of secondary private IPv4 addresses to assign to a network interface.
  44075. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  44076. // The ID of the subnet for the network interface.
  44077. SubnetId *string `type:"string"`
  44078. }
  44079. // String returns the string representation
  44080. func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) String() string {
  44081. return awsutil.Prettify(s)
  44082. }
  44083. // GoString returns the string representation
  44084. func (s LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) GoString() string {
  44085. return s.String()
  44086. }
  44087. // Validate inspects the fields of the type to determine if they are valid.
  44088. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) Validate() error {
  44089. invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest"}
  44090. if s.PrivateIpAddresses != nil {
  44091. for i, v := range s.PrivateIpAddresses {
  44092. if v == nil {
  44093. continue
  44094. }
  44095. if err := v.Validate(); err != nil {
  44096. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  44097. }
  44098. }
  44099. }
  44100. if invalidParams.Len() > 0 {
  44101. return invalidParams
  44102. }
  44103. return nil
  44104. }
  44105. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  44106. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetAssociatePublicIpAddress(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44107. s.AssociatePublicIpAddress = &v
  44108. return s
  44109. }
  44110. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  44111. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeleteOnTermination(v bool) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44112. s.DeleteOnTermination = &v
  44113. return s
  44114. }
  44115. // SetDescription sets the Description field's value.
  44116. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDescription(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44117. s.Description = &v
  44118. return s
  44119. }
  44120. // SetDeviceIndex sets the DeviceIndex field's value.
  44121. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetDeviceIndex(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44122. s.DeviceIndex = &v
  44123. return s
  44124. }
  44125. // SetGroups sets the Groups field's value.
  44126. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetGroups(v []*string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44127. s.Groups = v
  44128. return s
  44129. }
  44130. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  44131. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6AddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44132. s.Ipv6AddressCount = &v
  44133. return s
  44134. }
  44135. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  44136. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetIpv6Addresses(v []*InstanceIpv6AddressRequest) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44137. s.Ipv6Addresses = v
  44138. return s
  44139. }
  44140. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  44141. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetNetworkInterfaceId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44142. s.NetworkInterfaceId = &v
  44143. return s
  44144. }
  44145. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  44146. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddress(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44147. s.PrivateIpAddress = &v
  44148. return s
  44149. }
  44150. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  44151. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetPrivateIpAddresses(v []*PrivateIpAddressSpecification) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44152. s.PrivateIpAddresses = v
  44153. return s
  44154. }
  44155. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  44156. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSecondaryPrivateIpAddressCount(v int64) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44157. s.SecondaryPrivateIpAddressCount = &v
  44158. return s
  44159. }
  44160. // SetSubnetId sets the SubnetId field's value.
  44161. func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSubnetId(v string) *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest {
  44162. s.SubnetId = &v
  44163. return s
  44164. }
  44165. // Describes overrides for a launch template.
  44166. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateOverrides
  44167. type LaunchTemplateOverrides struct {
  44168. _ struct{} `type:"structure"`
  44169. // The Availability Zone in which to launch the instances.
  44170. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  44171. // The instance type.
  44172. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  44173. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  44174. SpotPrice *string `locationName:"spotPrice" type:"string"`
  44175. // The ID of the subnet in which to launch the instances.
  44176. SubnetId *string `locationName:"subnetId" type:"string"`
  44177. // The number of units provided by the specified instance type.
  44178. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  44179. }
  44180. // String returns the string representation
  44181. func (s LaunchTemplateOverrides) String() string {
  44182. return awsutil.Prettify(s)
  44183. }
  44184. // GoString returns the string representation
  44185. func (s LaunchTemplateOverrides) GoString() string {
  44186. return s.String()
  44187. }
  44188. // SetAvailabilityZone sets the AvailabilityZone field's value.
  44189. func (s *LaunchTemplateOverrides) SetAvailabilityZone(v string) *LaunchTemplateOverrides {
  44190. s.AvailabilityZone = &v
  44191. return s
  44192. }
  44193. // SetInstanceType sets the InstanceType field's value.
  44194. func (s *LaunchTemplateOverrides) SetInstanceType(v string) *LaunchTemplateOverrides {
  44195. s.InstanceType = &v
  44196. return s
  44197. }
  44198. // SetSpotPrice sets the SpotPrice field's value.
  44199. func (s *LaunchTemplateOverrides) SetSpotPrice(v string) *LaunchTemplateOverrides {
  44200. s.SpotPrice = &v
  44201. return s
  44202. }
  44203. // SetSubnetId sets the SubnetId field's value.
  44204. func (s *LaunchTemplateOverrides) SetSubnetId(v string) *LaunchTemplateOverrides {
  44205. s.SubnetId = &v
  44206. return s
  44207. }
  44208. // SetWeightedCapacity sets the WeightedCapacity field's value.
  44209. func (s *LaunchTemplateOverrides) SetWeightedCapacity(v float64) *LaunchTemplateOverrides {
  44210. s.WeightedCapacity = &v
  44211. return s
  44212. }
  44213. // Describes the placement of an instance.
  44214. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplatePlacement
  44215. type LaunchTemplatePlacement struct {
  44216. _ struct{} `type:"structure"`
  44217. // The affinity setting for the instance on the Dedicated Host.
  44218. Affinity *string `locationName:"affinity" type:"string"`
  44219. // The Availability Zone of the instance.
  44220. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  44221. // The name of the placement group for the instance.
  44222. GroupName *string `locationName:"groupName" type:"string"`
  44223. // The ID of the Dedicated Host for the instance.
  44224. HostId *string `locationName:"hostId" type:"string"`
  44225. // Reserved for future use.
  44226. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  44227. // The tenancy of the instance (if the instance is running in a VPC). An instance
  44228. // with a tenancy of dedicated runs on single-tenant hardware.
  44229. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  44230. }
  44231. // String returns the string representation
  44232. func (s LaunchTemplatePlacement) String() string {
  44233. return awsutil.Prettify(s)
  44234. }
  44235. // GoString returns the string representation
  44236. func (s LaunchTemplatePlacement) GoString() string {
  44237. return s.String()
  44238. }
  44239. // SetAffinity sets the Affinity field's value.
  44240. func (s *LaunchTemplatePlacement) SetAffinity(v string) *LaunchTemplatePlacement {
  44241. s.Affinity = &v
  44242. return s
  44243. }
  44244. // SetAvailabilityZone sets the AvailabilityZone field's value.
  44245. func (s *LaunchTemplatePlacement) SetAvailabilityZone(v string) *LaunchTemplatePlacement {
  44246. s.AvailabilityZone = &v
  44247. return s
  44248. }
  44249. // SetGroupName sets the GroupName field's value.
  44250. func (s *LaunchTemplatePlacement) SetGroupName(v string) *LaunchTemplatePlacement {
  44251. s.GroupName = &v
  44252. return s
  44253. }
  44254. // SetHostId sets the HostId field's value.
  44255. func (s *LaunchTemplatePlacement) SetHostId(v string) *LaunchTemplatePlacement {
  44256. s.HostId = &v
  44257. return s
  44258. }
  44259. // SetSpreadDomain sets the SpreadDomain field's value.
  44260. func (s *LaunchTemplatePlacement) SetSpreadDomain(v string) *LaunchTemplatePlacement {
  44261. s.SpreadDomain = &v
  44262. return s
  44263. }
  44264. // SetTenancy sets the Tenancy field's value.
  44265. func (s *LaunchTemplatePlacement) SetTenancy(v string) *LaunchTemplatePlacement {
  44266. s.Tenancy = &v
  44267. return s
  44268. }
  44269. // The placement for the instance.
  44270. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplatePlacementRequest
  44271. type LaunchTemplatePlacementRequest struct {
  44272. _ struct{} `type:"structure"`
  44273. // The affinity setting for an instance on a Dedicated Host.
  44274. Affinity *string `type:"string"`
  44275. // The Availability Zone for the instance.
  44276. AvailabilityZone *string `type:"string"`
  44277. // The name of the placement group for the instance.
  44278. GroupName *string `type:"string"`
  44279. // The ID of the Dedicated Host for the instance.
  44280. HostId *string `type:"string"`
  44281. // Reserved for future use.
  44282. SpreadDomain *string `type:"string"`
  44283. // The tenancy of the instance (if the instance is running in a VPC). An instance
  44284. // with a tenancy of dedicated runs on single-tenant hardware.
  44285. Tenancy *string `type:"string" enum:"Tenancy"`
  44286. }
  44287. // String returns the string representation
  44288. func (s LaunchTemplatePlacementRequest) String() string {
  44289. return awsutil.Prettify(s)
  44290. }
  44291. // GoString returns the string representation
  44292. func (s LaunchTemplatePlacementRequest) GoString() string {
  44293. return s.String()
  44294. }
  44295. // SetAffinity sets the Affinity field's value.
  44296. func (s *LaunchTemplatePlacementRequest) SetAffinity(v string) *LaunchTemplatePlacementRequest {
  44297. s.Affinity = &v
  44298. return s
  44299. }
  44300. // SetAvailabilityZone sets the AvailabilityZone field's value.
  44301. func (s *LaunchTemplatePlacementRequest) SetAvailabilityZone(v string) *LaunchTemplatePlacementRequest {
  44302. s.AvailabilityZone = &v
  44303. return s
  44304. }
  44305. // SetGroupName sets the GroupName field's value.
  44306. func (s *LaunchTemplatePlacementRequest) SetGroupName(v string) *LaunchTemplatePlacementRequest {
  44307. s.GroupName = &v
  44308. return s
  44309. }
  44310. // SetHostId sets the HostId field's value.
  44311. func (s *LaunchTemplatePlacementRequest) SetHostId(v string) *LaunchTemplatePlacementRequest {
  44312. s.HostId = &v
  44313. return s
  44314. }
  44315. // SetSpreadDomain sets the SpreadDomain field's value.
  44316. func (s *LaunchTemplatePlacementRequest) SetSpreadDomain(v string) *LaunchTemplatePlacementRequest {
  44317. s.SpreadDomain = &v
  44318. return s
  44319. }
  44320. // SetTenancy sets the Tenancy field's value.
  44321. func (s *LaunchTemplatePlacementRequest) SetTenancy(v string) *LaunchTemplatePlacementRequest {
  44322. s.Tenancy = &v
  44323. return s
  44324. }
  44325. // The launch template to use. You must specify either the launch template ID
  44326. // or launch template name in the request.
  44327. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateSpecification
  44328. type LaunchTemplateSpecification struct {
  44329. _ struct{} `type:"structure"`
  44330. // The ID of the launch template.
  44331. LaunchTemplateId *string `type:"string"`
  44332. // The name of the launch template.
  44333. LaunchTemplateName *string `type:"string"`
  44334. // The version number of the launch template.
  44335. //
  44336. // Default: The default version for the launch template.
  44337. Version *string `type:"string"`
  44338. }
  44339. // String returns the string representation
  44340. func (s LaunchTemplateSpecification) String() string {
  44341. return awsutil.Prettify(s)
  44342. }
  44343. // GoString returns the string representation
  44344. func (s LaunchTemplateSpecification) GoString() string {
  44345. return s.String()
  44346. }
  44347. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  44348. func (s *LaunchTemplateSpecification) SetLaunchTemplateId(v string) *LaunchTemplateSpecification {
  44349. s.LaunchTemplateId = &v
  44350. return s
  44351. }
  44352. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  44353. func (s *LaunchTemplateSpecification) SetLaunchTemplateName(v string) *LaunchTemplateSpecification {
  44354. s.LaunchTemplateName = &v
  44355. return s
  44356. }
  44357. // SetVersion sets the Version field's value.
  44358. func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecification {
  44359. s.Version = &v
  44360. return s
  44361. }
  44362. // The options for Spot Instances.
  44363. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateSpotMarketOptions
  44364. type LaunchTemplateSpotMarketOptions struct {
  44365. _ struct{} `type:"structure"`
  44366. // The required duration for the Spot Instances (also known as Spot blocks),
  44367. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  44368. // or 360).
  44369. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  44370. // The behavior when a Spot Instance is interrupted.
  44371. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  44372. // The maximum hourly price you're willing to pay for the Spot Instances.
  44373. MaxPrice *string `locationName:"maxPrice" type:"string"`
  44374. // The Spot Instance request type.
  44375. SpotInstanceType *string `locationName:"spotInstanceType" type:"string" enum:"SpotInstanceType"`
  44376. // The end date of the request. For a one-time request, the request remains
  44377. // active until all instances launch, the request is canceled, or this date
  44378. // is reached. If the request is persistent, it remains active until it is canceled
  44379. // or this date and time is reached.
  44380. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  44381. }
  44382. // String returns the string representation
  44383. func (s LaunchTemplateSpotMarketOptions) String() string {
  44384. return awsutil.Prettify(s)
  44385. }
  44386. // GoString returns the string representation
  44387. func (s LaunchTemplateSpotMarketOptions) GoString() string {
  44388. return s.String()
  44389. }
  44390. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  44391. func (s *LaunchTemplateSpotMarketOptions) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptions {
  44392. s.BlockDurationMinutes = &v
  44393. return s
  44394. }
  44395. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  44396. func (s *LaunchTemplateSpotMarketOptions) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptions {
  44397. s.InstanceInterruptionBehavior = &v
  44398. return s
  44399. }
  44400. // SetMaxPrice sets the MaxPrice field's value.
  44401. func (s *LaunchTemplateSpotMarketOptions) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptions {
  44402. s.MaxPrice = &v
  44403. return s
  44404. }
  44405. // SetSpotInstanceType sets the SpotInstanceType field's value.
  44406. func (s *LaunchTemplateSpotMarketOptions) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptions {
  44407. s.SpotInstanceType = &v
  44408. return s
  44409. }
  44410. // SetValidUntil sets the ValidUntil field's value.
  44411. func (s *LaunchTemplateSpotMarketOptions) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptions {
  44412. s.ValidUntil = &v
  44413. return s
  44414. }
  44415. // The options for Spot Instances.
  44416. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateSpotMarketOptionsRequest
  44417. type LaunchTemplateSpotMarketOptionsRequest struct {
  44418. _ struct{} `type:"structure"`
  44419. // The required duration for the Spot Instances (also known as Spot blocks),
  44420. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  44421. // or 360).
  44422. BlockDurationMinutes *int64 `type:"integer"`
  44423. // The behavior when a Spot Instance is interrupted. The default is terminate.
  44424. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  44425. // The maximum hourly price you're willing to pay for the Spot Instances.
  44426. MaxPrice *string `type:"string"`
  44427. // The Spot Instance request type.
  44428. SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
  44429. // The end date of the request. For a one-time request, the request remains
  44430. // active until all instances launch, the request is canceled, or this date
  44431. // is reached. If the request is persistent, it remains active until it is canceled
  44432. // or this date and time is reached. The default end date is 7 days from the
  44433. // current date.
  44434. ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  44435. }
  44436. // String returns the string representation
  44437. func (s LaunchTemplateSpotMarketOptionsRequest) String() string {
  44438. return awsutil.Prettify(s)
  44439. }
  44440. // GoString returns the string representation
  44441. func (s LaunchTemplateSpotMarketOptionsRequest) GoString() string {
  44442. return s.String()
  44443. }
  44444. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  44445. func (s *LaunchTemplateSpotMarketOptionsRequest) SetBlockDurationMinutes(v int64) *LaunchTemplateSpotMarketOptionsRequest {
  44446. s.BlockDurationMinutes = &v
  44447. return s
  44448. }
  44449. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  44450. func (s *LaunchTemplateSpotMarketOptionsRequest) SetInstanceInterruptionBehavior(v string) *LaunchTemplateSpotMarketOptionsRequest {
  44451. s.InstanceInterruptionBehavior = &v
  44452. return s
  44453. }
  44454. // SetMaxPrice sets the MaxPrice field's value.
  44455. func (s *LaunchTemplateSpotMarketOptionsRequest) SetMaxPrice(v string) *LaunchTemplateSpotMarketOptionsRequest {
  44456. s.MaxPrice = &v
  44457. return s
  44458. }
  44459. // SetSpotInstanceType sets the SpotInstanceType field's value.
  44460. func (s *LaunchTemplateSpotMarketOptionsRequest) SetSpotInstanceType(v string) *LaunchTemplateSpotMarketOptionsRequest {
  44461. s.SpotInstanceType = &v
  44462. return s
  44463. }
  44464. // SetValidUntil sets the ValidUntil field's value.
  44465. func (s *LaunchTemplateSpotMarketOptionsRequest) SetValidUntil(v time.Time) *LaunchTemplateSpotMarketOptionsRequest {
  44466. s.ValidUntil = &v
  44467. return s
  44468. }
  44469. // The tag specification for the launch template.
  44470. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateTagSpecification
  44471. type LaunchTemplateTagSpecification struct {
  44472. _ struct{} `type:"structure"`
  44473. // The type of resource.
  44474. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  44475. // The tags for the resource.
  44476. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  44477. }
  44478. // String returns the string representation
  44479. func (s LaunchTemplateTagSpecification) String() string {
  44480. return awsutil.Prettify(s)
  44481. }
  44482. // GoString returns the string representation
  44483. func (s LaunchTemplateTagSpecification) GoString() string {
  44484. return s.String()
  44485. }
  44486. // SetResourceType sets the ResourceType field's value.
  44487. func (s *LaunchTemplateTagSpecification) SetResourceType(v string) *LaunchTemplateTagSpecification {
  44488. s.ResourceType = &v
  44489. return s
  44490. }
  44491. // SetTags sets the Tags field's value.
  44492. func (s *LaunchTemplateTagSpecification) SetTags(v []*Tag) *LaunchTemplateTagSpecification {
  44493. s.Tags = v
  44494. return s
  44495. }
  44496. // The tags specification for the launch template.
  44497. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateTagSpecificationRequest
  44498. type LaunchTemplateTagSpecificationRequest struct {
  44499. _ struct{} `type:"structure"`
  44500. // The type of resource to tag. Currently, the resource types that support tagging
  44501. // on creation are instance and volume.
  44502. ResourceType *string `type:"string" enum:"ResourceType"`
  44503. // The tags to apply to the resource.
  44504. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  44505. }
  44506. // String returns the string representation
  44507. func (s LaunchTemplateTagSpecificationRequest) String() string {
  44508. return awsutil.Prettify(s)
  44509. }
  44510. // GoString returns the string representation
  44511. func (s LaunchTemplateTagSpecificationRequest) GoString() string {
  44512. return s.String()
  44513. }
  44514. // SetResourceType sets the ResourceType field's value.
  44515. func (s *LaunchTemplateTagSpecificationRequest) SetResourceType(v string) *LaunchTemplateTagSpecificationRequest {
  44516. s.ResourceType = &v
  44517. return s
  44518. }
  44519. // SetTags sets the Tags field's value.
  44520. func (s *LaunchTemplateTagSpecificationRequest) SetTags(v []*Tag) *LaunchTemplateTagSpecificationRequest {
  44521. s.Tags = v
  44522. return s
  44523. }
  44524. // Describes a launch template version.
  44525. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateVersion
  44526. type LaunchTemplateVersion struct {
  44527. _ struct{} `type:"structure"`
  44528. // The time the version was created.
  44529. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  44530. // The principal that created the version.
  44531. CreatedBy *string `locationName:"createdBy" type:"string"`
  44532. // Indicates whether the version is the default version.
  44533. DefaultVersion *bool `locationName:"defaultVersion" type:"boolean"`
  44534. // Information about the launch template.
  44535. LaunchTemplateData *ResponseLaunchTemplateData `locationName:"launchTemplateData" type:"structure"`
  44536. // The ID of the launch template.
  44537. LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"`
  44538. // The name of the launch template.
  44539. LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
  44540. // The description for the version.
  44541. VersionDescription *string `locationName:"versionDescription" type:"string"`
  44542. // The version number.
  44543. VersionNumber *int64 `locationName:"versionNumber" type:"long"`
  44544. }
  44545. // String returns the string representation
  44546. func (s LaunchTemplateVersion) String() string {
  44547. return awsutil.Prettify(s)
  44548. }
  44549. // GoString returns the string representation
  44550. func (s LaunchTemplateVersion) GoString() string {
  44551. return s.String()
  44552. }
  44553. // SetCreateTime sets the CreateTime field's value.
  44554. func (s *LaunchTemplateVersion) SetCreateTime(v time.Time) *LaunchTemplateVersion {
  44555. s.CreateTime = &v
  44556. return s
  44557. }
  44558. // SetCreatedBy sets the CreatedBy field's value.
  44559. func (s *LaunchTemplateVersion) SetCreatedBy(v string) *LaunchTemplateVersion {
  44560. s.CreatedBy = &v
  44561. return s
  44562. }
  44563. // SetDefaultVersion sets the DefaultVersion field's value.
  44564. func (s *LaunchTemplateVersion) SetDefaultVersion(v bool) *LaunchTemplateVersion {
  44565. s.DefaultVersion = &v
  44566. return s
  44567. }
  44568. // SetLaunchTemplateData sets the LaunchTemplateData field's value.
  44569. func (s *LaunchTemplateVersion) SetLaunchTemplateData(v *ResponseLaunchTemplateData) *LaunchTemplateVersion {
  44570. s.LaunchTemplateData = v
  44571. return s
  44572. }
  44573. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  44574. func (s *LaunchTemplateVersion) SetLaunchTemplateId(v string) *LaunchTemplateVersion {
  44575. s.LaunchTemplateId = &v
  44576. return s
  44577. }
  44578. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  44579. func (s *LaunchTemplateVersion) SetLaunchTemplateName(v string) *LaunchTemplateVersion {
  44580. s.LaunchTemplateName = &v
  44581. return s
  44582. }
  44583. // SetVersionDescription sets the VersionDescription field's value.
  44584. func (s *LaunchTemplateVersion) SetVersionDescription(v string) *LaunchTemplateVersion {
  44585. s.VersionDescription = &v
  44586. return s
  44587. }
  44588. // SetVersionNumber sets the VersionNumber field's value.
  44589. func (s *LaunchTemplateVersion) SetVersionNumber(v int64) *LaunchTemplateVersion {
  44590. s.VersionNumber = &v
  44591. return s
  44592. }
  44593. // Describes the monitoring for the instance.
  44594. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplatesMonitoring
  44595. type LaunchTemplatesMonitoring struct {
  44596. _ struct{} `type:"structure"`
  44597. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  44598. // is enabled.
  44599. Enabled *bool `locationName:"enabled" type:"boolean"`
  44600. }
  44601. // String returns the string representation
  44602. func (s LaunchTemplatesMonitoring) String() string {
  44603. return awsutil.Prettify(s)
  44604. }
  44605. // GoString returns the string representation
  44606. func (s LaunchTemplatesMonitoring) GoString() string {
  44607. return s.String()
  44608. }
  44609. // SetEnabled sets the Enabled field's value.
  44610. func (s *LaunchTemplatesMonitoring) SetEnabled(v bool) *LaunchTemplatesMonitoring {
  44611. s.Enabled = &v
  44612. return s
  44613. }
  44614. // Describes the monitoring for the instance.
  44615. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplatesMonitoringRequest
  44616. type LaunchTemplatesMonitoringRequest struct {
  44617. _ struct{} `type:"structure"`
  44618. // Specify true to enable detailed monitoring. Otherwise, basic monitoring is
  44619. // enabled.
  44620. Enabled *bool `type:"boolean"`
  44621. }
  44622. // String returns the string representation
  44623. func (s LaunchTemplatesMonitoringRequest) String() string {
  44624. return awsutil.Prettify(s)
  44625. }
  44626. // GoString returns the string representation
  44627. func (s LaunchTemplatesMonitoringRequest) GoString() string {
  44628. return s.String()
  44629. }
  44630. // SetEnabled sets the Enabled field's value.
  44631. func (s *LaunchTemplatesMonitoringRequest) SetEnabled(v bool) *LaunchTemplatesMonitoringRequest {
  44632. s.Enabled = &v
  44633. return s
  44634. }
  44635. // Describes the Classic Load Balancers and target groups to attach to a Spot
  44636. // Fleet request.
  44637. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LoadBalancersConfig
  44638. type LoadBalancersConfig struct {
  44639. _ struct{} `type:"structure"`
  44640. // The Classic Load Balancers.
  44641. ClassicLoadBalancersConfig *ClassicLoadBalancersConfig `locationName:"classicLoadBalancersConfig" type:"structure"`
  44642. // The target groups.
  44643. TargetGroupsConfig *TargetGroupsConfig `locationName:"targetGroupsConfig" type:"structure"`
  44644. }
  44645. // String returns the string representation
  44646. func (s LoadBalancersConfig) String() string {
  44647. return awsutil.Prettify(s)
  44648. }
  44649. // GoString returns the string representation
  44650. func (s LoadBalancersConfig) GoString() string {
  44651. return s.String()
  44652. }
  44653. // Validate inspects the fields of the type to determine if they are valid.
  44654. func (s *LoadBalancersConfig) Validate() error {
  44655. invalidParams := request.ErrInvalidParams{Context: "LoadBalancersConfig"}
  44656. if s.ClassicLoadBalancersConfig != nil {
  44657. if err := s.ClassicLoadBalancersConfig.Validate(); err != nil {
  44658. invalidParams.AddNested("ClassicLoadBalancersConfig", err.(request.ErrInvalidParams))
  44659. }
  44660. }
  44661. if s.TargetGroupsConfig != nil {
  44662. if err := s.TargetGroupsConfig.Validate(); err != nil {
  44663. invalidParams.AddNested("TargetGroupsConfig", err.(request.ErrInvalidParams))
  44664. }
  44665. }
  44666. if invalidParams.Len() > 0 {
  44667. return invalidParams
  44668. }
  44669. return nil
  44670. }
  44671. // SetClassicLoadBalancersConfig sets the ClassicLoadBalancersConfig field's value.
  44672. func (s *LoadBalancersConfig) SetClassicLoadBalancersConfig(v *ClassicLoadBalancersConfig) *LoadBalancersConfig {
  44673. s.ClassicLoadBalancersConfig = v
  44674. return s
  44675. }
  44676. // SetTargetGroupsConfig sets the TargetGroupsConfig field's value.
  44677. func (s *LoadBalancersConfig) SetTargetGroupsConfig(v *TargetGroupsConfig) *LoadBalancersConfig {
  44678. s.TargetGroupsConfig = v
  44679. return s
  44680. }
  44681. // Describes a load permission.
  44682. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LoadPermission
  44683. type LoadPermission struct {
  44684. _ struct{} `type:"structure"`
  44685. // The name of the group.
  44686. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  44687. // The AWS account ID.
  44688. UserId *string `locationName:"userId" type:"string"`
  44689. }
  44690. // String returns the string representation
  44691. func (s LoadPermission) String() string {
  44692. return awsutil.Prettify(s)
  44693. }
  44694. // GoString returns the string representation
  44695. func (s LoadPermission) GoString() string {
  44696. return s.String()
  44697. }
  44698. // SetGroup sets the Group field's value.
  44699. func (s *LoadPermission) SetGroup(v string) *LoadPermission {
  44700. s.Group = &v
  44701. return s
  44702. }
  44703. // SetUserId sets the UserId field's value.
  44704. func (s *LoadPermission) SetUserId(v string) *LoadPermission {
  44705. s.UserId = &v
  44706. return s
  44707. }
  44708. // Describes modifications to the load permissions of an Amazon FPGA image (AFI).
  44709. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LoadPermissionModifications
  44710. type LoadPermissionModifications struct {
  44711. _ struct{} `type:"structure"`
  44712. // The load permissions to add.
  44713. Add []*LoadPermissionRequest `locationNameList:"item" type:"list"`
  44714. // The load permissions to remove.
  44715. Remove []*LoadPermissionRequest `locationNameList:"item" type:"list"`
  44716. }
  44717. // String returns the string representation
  44718. func (s LoadPermissionModifications) String() string {
  44719. return awsutil.Prettify(s)
  44720. }
  44721. // GoString returns the string representation
  44722. func (s LoadPermissionModifications) GoString() string {
  44723. return s.String()
  44724. }
  44725. // SetAdd sets the Add field's value.
  44726. func (s *LoadPermissionModifications) SetAdd(v []*LoadPermissionRequest) *LoadPermissionModifications {
  44727. s.Add = v
  44728. return s
  44729. }
  44730. // SetRemove sets the Remove field's value.
  44731. func (s *LoadPermissionModifications) SetRemove(v []*LoadPermissionRequest) *LoadPermissionModifications {
  44732. s.Remove = v
  44733. return s
  44734. }
  44735. // Describes a load permission.
  44736. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LoadPermissionRequest
  44737. type LoadPermissionRequest struct {
  44738. _ struct{} `type:"structure"`
  44739. // The name of the group.
  44740. Group *string `type:"string" enum:"PermissionGroup"`
  44741. // The AWS account ID.
  44742. UserId *string `type:"string"`
  44743. }
  44744. // String returns the string representation
  44745. func (s LoadPermissionRequest) String() string {
  44746. return awsutil.Prettify(s)
  44747. }
  44748. // GoString returns the string representation
  44749. func (s LoadPermissionRequest) GoString() string {
  44750. return s.String()
  44751. }
  44752. // SetGroup sets the Group field's value.
  44753. func (s *LoadPermissionRequest) SetGroup(v string) *LoadPermissionRequest {
  44754. s.Group = &v
  44755. return s
  44756. }
  44757. // SetUserId sets the UserId field's value.
  44758. func (s *LoadPermissionRequest) SetUserId(v string) *LoadPermissionRequest {
  44759. s.UserId = &v
  44760. return s
  44761. }
  44762. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttributeRequest
  44763. type ModifyFpgaImageAttributeInput struct {
  44764. _ struct{} `type:"structure"`
  44765. // The name of the attribute.
  44766. Attribute *string `type:"string" enum:"FpgaImageAttributeName"`
  44767. // A description for the AFI.
  44768. Description *string `type:"string"`
  44769. // Checks whether you have the required permissions for the action, without
  44770. // actually making the request, and provides an error response. If you have
  44771. // the required permissions, the error response is DryRunOperation. Otherwise,
  44772. // it is UnauthorizedOperation.
  44773. DryRun *bool `type:"boolean"`
  44774. // The ID of the AFI.
  44775. //
  44776. // FpgaImageId is a required field
  44777. FpgaImageId *string `type:"string" required:"true"`
  44778. // The load permission for the AFI.
  44779. LoadPermission *LoadPermissionModifications `type:"structure"`
  44780. // A name for the AFI.
  44781. Name *string `type:"string"`
  44782. // The operation type.
  44783. OperationType *string `type:"string" enum:"OperationType"`
  44784. // One or more product codes. After you add a product code to an AFI, it can't
  44785. // be removed. This parameter is valid only when modifying the productCodes
  44786. // attribute.
  44787. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  44788. // One or more user groups. This parameter is valid only when modifying the
  44789. // loadPermission attribute.
  44790. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  44791. // One or more AWS account IDs. This parameter is valid only when modifying
  44792. // the loadPermission attribute.
  44793. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  44794. }
  44795. // String returns the string representation
  44796. func (s ModifyFpgaImageAttributeInput) String() string {
  44797. return awsutil.Prettify(s)
  44798. }
  44799. // GoString returns the string representation
  44800. func (s ModifyFpgaImageAttributeInput) GoString() string {
  44801. return s.String()
  44802. }
  44803. // Validate inspects the fields of the type to determine if they are valid.
  44804. func (s *ModifyFpgaImageAttributeInput) Validate() error {
  44805. invalidParams := request.ErrInvalidParams{Context: "ModifyFpgaImageAttributeInput"}
  44806. if s.FpgaImageId == nil {
  44807. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  44808. }
  44809. if invalidParams.Len() > 0 {
  44810. return invalidParams
  44811. }
  44812. return nil
  44813. }
  44814. // SetAttribute sets the Attribute field's value.
  44815. func (s *ModifyFpgaImageAttributeInput) SetAttribute(v string) *ModifyFpgaImageAttributeInput {
  44816. s.Attribute = &v
  44817. return s
  44818. }
  44819. // SetDescription sets the Description field's value.
  44820. func (s *ModifyFpgaImageAttributeInput) SetDescription(v string) *ModifyFpgaImageAttributeInput {
  44821. s.Description = &v
  44822. return s
  44823. }
  44824. // SetDryRun sets the DryRun field's value.
  44825. func (s *ModifyFpgaImageAttributeInput) SetDryRun(v bool) *ModifyFpgaImageAttributeInput {
  44826. s.DryRun = &v
  44827. return s
  44828. }
  44829. // SetFpgaImageId sets the FpgaImageId field's value.
  44830. func (s *ModifyFpgaImageAttributeInput) SetFpgaImageId(v string) *ModifyFpgaImageAttributeInput {
  44831. s.FpgaImageId = &v
  44832. return s
  44833. }
  44834. // SetLoadPermission sets the LoadPermission field's value.
  44835. func (s *ModifyFpgaImageAttributeInput) SetLoadPermission(v *LoadPermissionModifications) *ModifyFpgaImageAttributeInput {
  44836. s.LoadPermission = v
  44837. return s
  44838. }
  44839. // SetName sets the Name field's value.
  44840. func (s *ModifyFpgaImageAttributeInput) SetName(v string) *ModifyFpgaImageAttributeInput {
  44841. s.Name = &v
  44842. return s
  44843. }
  44844. // SetOperationType sets the OperationType field's value.
  44845. func (s *ModifyFpgaImageAttributeInput) SetOperationType(v string) *ModifyFpgaImageAttributeInput {
  44846. s.OperationType = &v
  44847. return s
  44848. }
  44849. // SetProductCodes sets the ProductCodes field's value.
  44850. func (s *ModifyFpgaImageAttributeInput) SetProductCodes(v []*string) *ModifyFpgaImageAttributeInput {
  44851. s.ProductCodes = v
  44852. return s
  44853. }
  44854. // SetUserGroups sets the UserGroups field's value.
  44855. func (s *ModifyFpgaImageAttributeInput) SetUserGroups(v []*string) *ModifyFpgaImageAttributeInput {
  44856. s.UserGroups = v
  44857. return s
  44858. }
  44859. // SetUserIds sets the UserIds field's value.
  44860. func (s *ModifyFpgaImageAttributeInput) SetUserIds(v []*string) *ModifyFpgaImageAttributeInput {
  44861. s.UserIds = v
  44862. return s
  44863. }
  44864. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFpgaImageAttributeResult
  44865. type ModifyFpgaImageAttributeOutput struct {
  44866. _ struct{} `type:"structure"`
  44867. // Information about the attribute.
  44868. FpgaImageAttribute *FpgaImageAttribute `locationName:"fpgaImageAttribute" type:"structure"`
  44869. }
  44870. // String returns the string representation
  44871. func (s ModifyFpgaImageAttributeOutput) String() string {
  44872. return awsutil.Prettify(s)
  44873. }
  44874. // GoString returns the string representation
  44875. func (s ModifyFpgaImageAttributeOutput) GoString() string {
  44876. return s.String()
  44877. }
  44878. // SetFpgaImageAttribute sets the FpgaImageAttribute field's value.
  44879. func (s *ModifyFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttribute) *ModifyFpgaImageAttributeOutput {
  44880. s.FpgaImageAttribute = v
  44881. return s
  44882. }
  44883. // Contains the parameters for ModifyHosts.
  44884. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHostsRequest
  44885. type ModifyHostsInput struct {
  44886. _ struct{} `type:"structure"`
  44887. // Specify whether to enable or disable auto-placement.
  44888. //
  44889. // AutoPlacement is a required field
  44890. AutoPlacement *string `locationName:"autoPlacement" type:"string" required:"true" enum:"AutoPlacement"`
  44891. // The host IDs of the Dedicated Hosts you want to modify.
  44892. //
  44893. // HostIds is a required field
  44894. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  44895. }
  44896. // String returns the string representation
  44897. func (s ModifyHostsInput) String() string {
  44898. return awsutil.Prettify(s)
  44899. }
  44900. // GoString returns the string representation
  44901. func (s ModifyHostsInput) GoString() string {
  44902. return s.String()
  44903. }
  44904. // Validate inspects the fields of the type to determine if they are valid.
  44905. func (s *ModifyHostsInput) Validate() error {
  44906. invalidParams := request.ErrInvalidParams{Context: "ModifyHostsInput"}
  44907. if s.AutoPlacement == nil {
  44908. invalidParams.Add(request.NewErrParamRequired("AutoPlacement"))
  44909. }
  44910. if s.HostIds == nil {
  44911. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  44912. }
  44913. if invalidParams.Len() > 0 {
  44914. return invalidParams
  44915. }
  44916. return nil
  44917. }
  44918. // SetAutoPlacement sets the AutoPlacement field's value.
  44919. func (s *ModifyHostsInput) SetAutoPlacement(v string) *ModifyHostsInput {
  44920. s.AutoPlacement = &v
  44921. return s
  44922. }
  44923. // SetHostIds sets the HostIds field's value.
  44924. func (s *ModifyHostsInput) SetHostIds(v []*string) *ModifyHostsInput {
  44925. s.HostIds = v
  44926. return s
  44927. }
  44928. // Contains the output of ModifyHosts.
  44929. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyHostsResult
  44930. type ModifyHostsOutput struct {
  44931. _ struct{} `type:"structure"`
  44932. // The IDs of the Dedicated Hosts that were successfully modified.
  44933. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  44934. // The IDs of the Dedicated Hosts that could not be modified. Check whether
  44935. // the setting you requested can be used.
  44936. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  44937. }
  44938. // String returns the string representation
  44939. func (s ModifyHostsOutput) String() string {
  44940. return awsutil.Prettify(s)
  44941. }
  44942. // GoString returns the string representation
  44943. func (s ModifyHostsOutput) GoString() string {
  44944. return s.String()
  44945. }
  44946. // SetSuccessful sets the Successful field's value.
  44947. func (s *ModifyHostsOutput) SetSuccessful(v []*string) *ModifyHostsOutput {
  44948. s.Successful = v
  44949. return s
  44950. }
  44951. // SetUnsuccessful sets the Unsuccessful field's value.
  44952. func (s *ModifyHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ModifyHostsOutput {
  44953. s.Unsuccessful = v
  44954. return s
  44955. }
  44956. // Contains the parameters of ModifyIdFormat.
  44957. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormatRequest
  44958. type ModifyIdFormatInput struct {
  44959. _ struct{} `type:"structure"`
  44960. // The type of resource: instance | reservation | snapshot | volume
  44961. //
  44962. // Resource is a required field
  44963. Resource *string `type:"string" required:"true"`
  44964. // Indicate whether the resource should use longer IDs (17-character IDs).
  44965. //
  44966. // UseLongIds is a required field
  44967. UseLongIds *bool `type:"boolean" required:"true"`
  44968. }
  44969. // String returns the string representation
  44970. func (s ModifyIdFormatInput) String() string {
  44971. return awsutil.Prettify(s)
  44972. }
  44973. // GoString returns the string representation
  44974. func (s ModifyIdFormatInput) GoString() string {
  44975. return s.String()
  44976. }
  44977. // Validate inspects the fields of the type to determine if they are valid.
  44978. func (s *ModifyIdFormatInput) Validate() error {
  44979. invalidParams := request.ErrInvalidParams{Context: "ModifyIdFormatInput"}
  44980. if s.Resource == nil {
  44981. invalidParams.Add(request.NewErrParamRequired("Resource"))
  44982. }
  44983. if s.UseLongIds == nil {
  44984. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  44985. }
  44986. if invalidParams.Len() > 0 {
  44987. return invalidParams
  44988. }
  44989. return nil
  44990. }
  44991. // SetResource sets the Resource field's value.
  44992. func (s *ModifyIdFormatInput) SetResource(v string) *ModifyIdFormatInput {
  44993. s.Resource = &v
  44994. return s
  44995. }
  44996. // SetUseLongIds sets the UseLongIds field's value.
  44997. func (s *ModifyIdFormatInput) SetUseLongIds(v bool) *ModifyIdFormatInput {
  44998. s.UseLongIds = &v
  44999. return s
  45000. }
  45001. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdFormatOutput
  45002. type ModifyIdFormatOutput struct {
  45003. _ struct{} `type:"structure"`
  45004. }
  45005. // String returns the string representation
  45006. func (s ModifyIdFormatOutput) String() string {
  45007. return awsutil.Prettify(s)
  45008. }
  45009. // GoString returns the string representation
  45010. func (s ModifyIdFormatOutput) GoString() string {
  45011. return s.String()
  45012. }
  45013. // Contains the parameters of ModifyIdentityIdFormat.
  45014. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormatRequest
  45015. type ModifyIdentityIdFormatInput struct {
  45016. _ struct{} `type:"structure"`
  45017. // The ARN of the principal, which can be an IAM user, IAM role, or the root
  45018. // user. Specify all to modify the ID format for all IAM users, IAM roles, and
  45019. // the root user of the account.
  45020. //
  45021. // PrincipalArn is a required field
  45022. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  45023. // The type of resource: instance | reservation | snapshot | volume
  45024. //
  45025. // Resource is a required field
  45026. Resource *string `locationName:"resource" type:"string" required:"true"`
  45027. // Indicates whether the resource should use longer IDs (17-character IDs)
  45028. //
  45029. // UseLongIds is a required field
  45030. UseLongIds *bool `locationName:"useLongIds" type:"boolean" required:"true"`
  45031. }
  45032. // String returns the string representation
  45033. func (s ModifyIdentityIdFormatInput) String() string {
  45034. return awsutil.Prettify(s)
  45035. }
  45036. // GoString returns the string representation
  45037. func (s ModifyIdentityIdFormatInput) GoString() string {
  45038. return s.String()
  45039. }
  45040. // Validate inspects the fields of the type to determine if they are valid.
  45041. func (s *ModifyIdentityIdFormatInput) Validate() error {
  45042. invalidParams := request.ErrInvalidParams{Context: "ModifyIdentityIdFormatInput"}
  45043. if s.PrincipalArn == nil {
  45044. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  45045. }
  45046. if s.Resource == nil {
  45047. invalidParams.Add(request.NewErrParamRequired("Resource"))
  45048. }
  45049. if s.UseLongIds == nil {
  45050. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  45051. }
  45052. if invalidParams.Len() > 0 {
  45053. return invalidParams
  45054. }
  45055. return nil
  45056. }
  45057. // SetPrincipalArn sets the PrincipalArn field's value.
  45058. func (s *ModifyIdentityIdFormatInput) SetPrincipalArn(v string) *ModifyIdentityIdFormatInput {
  45059. s.PrincipalArn = &v
  45060. return s
  45061. }
  45062. // SetResource sets the Resource field's value.
  45063. func (s *ModifyIdentityIdFormatInput) SetResource(v string) *ModifyIdentityIdFormatInput {
  45064. s.Resource = &v
  45065. return s
  45066. }
  45067. // SetUseLongIds sets the UseLongIds field's value.
  45068. func (s *ModifyIdentityIdFormatInput) SetUseLongIds(v bool) *ModifyIdentityIdFormatInput {
  45069. s.UseLongIds = &v
  45070. return s
  45071. }
  45072. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIdentityIdFormatOutput
  45073. type ModifyIdentityIdFormatOutput struct {
  45074. _ struct{} `type:"structure"`
  45075. }
  45076. // String returns the string representation
  45077. func (s ModifyIdentityIdFormatOutput) String() string {
  45078. return awsutil.Prettify(s)
  45079. }
  45080. // GoString returns the string representation
  45081. func (s ModifyIdentityIdFormatOutput) GoString() string {
  45082. return s.String()
  45083. }
  45084. // Contains the parameters for ModifyImageAttribute.
  45085. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttributeRequest
  45086. type ModifyImageAttributeInput struct {
  45087. _ struct{} `type:"structure"`
  45088. // The name of the attribute to modify. The valid values are description, launchPermission,
  45089. // and productCodes.
  45090. Attribute *string `type:"string"`
  45091. // A new description for the AMI.
  45092. Description *AttributeValue `type:"structure"`
  45093. // Checks whether you have the required permissions for the action, without
  45094. // actually making the request, and provides an error response. If you have
  45095. // the required permissions, the error response is DryRunOperation. Otherwise,
  45096. // it is UnauthorizedOperation.
  45097. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45098. // The ID of the AMI.
  45099. //
  45100. // ImageId is a required field
  45101. ImageId *string `type:"string" required:"true"`
  45102. // A new launch permission for the AMI.
  45103. LaunchPermission *LaunchPermissionModifications `type:"structure"`
  45104. // The operation type. This parameter can be used only when the Attribute parameter
  45105. // is launchPermission.
  45106. OperationType *string `type:"string" enum:"OperationType"`
  45107. // One or more DevPay product codes. After you add a product code to an AMI,
  45108. // it can't be removed.
  45109. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  45110. // One or more user groups. This parameter can be used only when the Attribute
  45111. // parameter is launchPermission.
  45112. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  45113. // One or more AWS account IDs. This parameter can be used only when the Attribute
  45114. // parameter is launchPermission.
  45115. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  45116. // The value of the attribute being modified. This parameter can be used only
  45117. // when the Attribute parameter is description or productCodes.
  45118. Value *string `type:"string"`
  45119. }
  45120. // String returns the string representation
  45121. func (s ModifyImageAttributeInput) String() string {
  45122. return awsutil.Prettify(s)
  45123. }
  45124. // GoString returns the string representation
  45125. func (s ModifyImageAttributeInput) GoString() string {
  45126. return s.String()
  45127. }
  45128. // Validate inspects the fields of the type to determine if they are valid.
  45129. func (s *ModifyImageAttributeInput) Validate() error {
  45130. invalidParams := request.ErrInvalidParams{Context: "ModifyImageAttributeInput"}
  45131. if s.ImageId == nil {
  45132. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  45133. }
  45134. if invalidParams.Len() > 0 {
  45135. return invalidParams
  45136. }
  45137. return nil
  45138. }
  45139. // SetAttribute sets the Attribute field's value.
  45140. func (s *ModifyImageAttributeInput) SetAttribute(v string) *ModifyImageAttributeInput {
  45141. s.Attribute = &v
  45142. return s
  45143. }
  45144. // SetDescription sets the Description field's value.
  45145. func (s *ModifyImageAttributeInput) SetDescription(v *AttributeValue) *ModifyImageAttributeInput {
  45146. s.Description = v
  45147. return s
  45148. }
  45149. // SetDryRun sets the DryRun field's value.
  45150. func (s *ModifyImageAttributeInput) SetDryRun(v bool) *ModifyImageAttributeInput {
  45151. s.DryRun = &v
  45152. return s
  45153. }
  45154. // SetImageId sets the ImageId field's value.
  45155. func (s *ModifyImageAttributeInput) SetImageId(v string) *ModifyImageAttributeInput {
  45156. s.ImageId = &v
  45157. return s
  45158. }
  45159. // SetLaunchPermission sets the LaunchPermission field's value.
  45160. func (s *ModifyImageAttributeInput) SetLaunchPermission(v *LaunchPermissionModifications) *ModifyImageAttributeInput {
  45161. s.LaunchPermission = v
  45162. return s
  45163. }
  45164. // SetOperationType sets the OperationType field's value.
  45165. func (s *ModifyImageAttributeInput) SetOperationType(v string) *ModifyImageAttributeInput {
  45166. s.OperationType = &v
  45167. return s
  45168. }
  45169. // SetProductCodes sets the ProductCodes field's value.
  45170. func (s *ModifyImageAttributeInput) SetProductCodes(v []*string) *ModifyImageAttributeInput {
  45171. s.ProductCodes = v
  45172. return s
  45173. }
  45174. // SetUserGroups sets the UserGroups field's value.
  45175. func (s *ModifyImageAttributeInput) SetUserGroups(v []*string) *ModifyImageAttributeInput {
  45176. s.UserGroups = v
  45177. return s
  45178. }
  45179. // SetUserIds sets the UserIds field's value.
  45180. func (s *ModifyImageAttributeInput) SetUserIds(v []*string) *ModifyImageAttributeInput {
  45181. s.UserIds = v
  45182. return s
  45183. }
  45184. // SetValue sets the Value field's value.
  45185. func (s *ModifyImageAttributeInput) SetValue(v string) *ModifyImageAttributeInput {
  45186. s.Value = &v
  45187. return s
  45188. }
  45189. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttributeOutput
  45190. type ModifyImageAttributeOutput struct {
  45191. _ struct{} `type:"structure"`
  45192. }
  45193. // String returns the string representation
  45194. func (s ModifyImageAttributeOutput) String() string {
  45195. return awsutil.Prettify(s)
  45196. }
  45197. // GoString returns the string representation
  45198. func (s ModifyImageAttributeOutput) GoString() string {
  45199. return s.String()
  45200. }
  45201. // Contains the parameters for ModifyInstanceAttribute.
  45202. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttributeRequest
  45203. type ModifyInstanceAttributeInput struct {
  45204. _ struct{} `type:"structure"`
  45205. // The name of the attribute.
  45206. Attribute *string `locationName:"attribute" type:"string" enum:"InstanceAttributeName"`
  45207. // Modifies the DeleteOnTermination attribute for volumes that are currently
  45208. // attached. The volume must be owned by the caller. If no value is specified
  45209. // for DeleteOnTermination, the default is true and the volume is deleted when
  45210. // the instance is terminated.
  45211. //
  45212. // To add instance store volumes to an Amazon EBS-backed instance, you must
  45213. // add them when you launch the instance. For more information, see Updating
  45214. // the Block Device Mapping when Launching an Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM)
  45215. // in the Amazon Elastic Compute Cloud User Guide.
  45216. BlockDeviceMappings []*InstanceBlockDeviceMappingSpecification `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  45217. // If the value is true, you can't terminate the instance using the Amazon EC2
  45218. // console, CLI, or API; otherwise, you can. You cannot use this parameter for
  45219. // Spot Instances.
  45220. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  45221. // Checks whether you have the required permissions for the action, without
  45222. // actually making the request, and provides an error response. If you have
  45223. // the required permissions, the error response is DryRunOperation. Otherwise,
  45224. // it is UnauthorizedOperation.
  45225. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45226. // Specifies whether the instance is optimized for Amazon EBS I/O. This optimization
  45227. // provides dedicated throughput to Amazon EBS and an optimized configuration
  45228. // stack to provide optimal EBS I/O performance. This optimization isn't available
  45229. // with all instance types. Additional usage charges apply when using an EBS
  45230. // Optimized instance.
  45231. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  45232. // Set to true to enable enhanced networking with ENA for the instance.
  45233. //
  45234. // This option is supported only for HVM instances. Specifying this option with
  45235. // a PV instance can make it unreachable.
  45236. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  45237. // [EC2-VPC] Changes the security groups of the instance. You must specify at
  45238. // least one security group, even if it's just the default security group for
  45239. // the VPC. You must specify the security group ID, not the security group name.
  45240. Groups []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  45241. // The ID of the instance.
  45242. //
  45243. // InstanceId is a required field
  45244. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  45245. // Specifies whether an instance stops or terminates when you initiate shutdown
  45246. // from the instance (using the operating system command for system shutdown).
  45247. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  45248. // Changes the instance type to the specified value. For more information, see
  45249. // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  45250. // If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
  45251. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  45252. // Changes the instance's kernel to the specified value. We recommend that you
  45253. // use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB
  45254. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  45255. Kernel *AttributeValue `locationName:"kernel" type:"structure"`
  45256. // Changes the instance's RAM disk to the specified value. We recommend that
  45257. // you use PV-GRUB instead of kernels and RAM disks. For more information, see
  45258. // PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  45259. Ramdisk *AttributeValue `locationName:"ramdisk" type:"structure"`
  45260. // Specifies whether source/destination checking is enabled. A value of true
  45261. // means that checking is enabled, and false means that checking is disabled.
  45262. // This value must be false for a NAT instance to perform NAT.
  45263. SourceDestCheck *AttributeBooleanValue `type:"structure"`
  45264. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  45265. // Function interface for the instance.
  45266. //
  45267. // There is no way to disable enhanced networking with the Intel 82599 Virtual
  45268. // Function interface at this time.
  45269. //
  45270. // This option is supported only for HVM instances. Specifying this option with
  45271. // a PV instance can make it unreachable.
  45272. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  45273. // Changes the instance's user data to the specified value. If you are using
  45274. // an AWS SDK or command line tool, base64-encoding is performed for you, and
  45275. // you can load the text from a file. Otherwise, you must provide base64-encoded
  45276. // text.
  45277. UserData *BlobAttributeValue `locationName:"userData" type:"structure"`
  45278. // A new value for the attribute. Use only with the kernel, ramdisk, userData,
  45279. // disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
  45280. Value *string `locationName:"value" type:"string"`
  45281. }
  45282. // String returns the string representation
  45283. func (s ModifyInstanceAttributeInput) String() string {
  45284. return awsutil.Prettify(s)
  45285. }
  45286. // GoString returns the string representation
  45287. func (s ModifyInstanceAttributeInput) GoString() string {
  45288. return s.String()
  45289. }
  45290. // Validate inspects the fields of the type to determine if they are valid.
  45291. func (s *ModifyInstanceAttributeInput) Validate() error {
  45292. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceAttributeInput"}
  45293. if s.InstanceId == nil {
  45294. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  45295. }
  45296. if invalidParams.Len() > 0 {
  45297. return invalidParams
  45298. }
  45299. return nil
  45300. }
  45301. // SetAttribute sets the Attribute field's value.
  45302. func (s *ModifyInstanceAttributeInput) SetAttribute(v string) *ModifyInstanceAttributeInput {
  45303. s.Attribute = &v
  45304. return s
  45305. }
  45306. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  45307. func (s *ModifyInstanceAttributeInput) SetBlockDeviceMappings(v []*InstanceBlockDeviceMappingSpecification) *ModifyInstanceAttributeInput {
  45308. s.BlockDeviceMappings = v
  45309. return s
  45310. }
  45311. // SetDisableApiTermination sets the DisableApiTermination field's value.
  45312. func (s *ModifyInstanceAttributeInput) SetDisableApiTermination(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  45313. s.DisableApiTermination = v
  45314. return s
  45315. }
  45316. // SetDryRun sets the DryRun field's value.
  45317. func (s *ModifyInstanceAttributeInput) SetDryRun(v bool) *ModifyInstanceAttributeInput {
  45318. s.DryRun = &v
  45319. return s
  45320. }
  45321. // SetEbsOptimized sets the EbsOptimized field's value.
  45322. func (s *ModifyInstanceAttributeInput) SetEbsOptimized(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  45323. s.EbsOptimized = v
  45324. return s
  45325. }
  45326. // SetEnaSupport sets the EnaSupport field's value.
  45327. func (s *ModifyInstanceAttributeInput) SetEnaSupport(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  45328. s.EnaSupport = v
  45329. return s
  45330. }
  45331. // SetGroups sets the Groups field's value.
  45332. func (s *ModifyInstanceAttributeInput) SetGroups(v []*string) *ModifyInstanceAttributeInput {
  45333. s.Groups = v
  45334. return s
  45335. }
  45336. // SetInstanceId sets the InstanceId field's value.
  45337. func (s *ModifyInstanceAttributeInput) SetInstanceId(v string) *ModifyInstanceAttributeInput {
  45338. s.InstanceId = &v
  45339. return s
  45340. }
  45341. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  45342. func (s *ModifyInstanceAttributeInput) SetInstanceInitiatedShutdownBehavior(v *AttributeValue) *ModifyInstanceAttributeInput {
  45343. s.InstanceInitiatedShutdownBehavior = v
  45344. return s
  45345. }
  45346. // SetInstanceType sets the InstanceType field's value.
  45347. func (s *ModifyInstanceAttributeInput) SetInstanceType(v *AttributeValue) *ModifyInstanceAttributeInput {
  45348. s.InstanceType = v
  45349. return s
  45350. }
  45351. // SetKernel sets the Kernel field's value.
  45352. func (s *ModifyInstanceAttributeInput) SetKernel(v *AttributeValue) *ModifyInstanceAttributeInput {
  45353. s.Kernel = v
  45354. return s
  45355. }
  45356. // SetRamdisk sets the Ramdisk field's value.
  45357. func (s *ModifyInstanceAttributeInput) SetRamdisk(v *AttributeValue) *ModifyInstanceAttributeInput {
  45358. s.Ramdisk = v
  45359. return s
  45360. }
  45361. // SetSourceDestCheck sets the SourceDestCheck field's value.
  45362. func (s *ModifyInstanceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyInstanceAttributeInput {
  45363. s.SourceDestCheck = v
  45364. return s
  45365. }
  45366. // SetSriovNetSupport sets the SriovNetSupport field's value.
  45367. func (s *ModifyInstanceAttributeInput) SetSriovNetSupport(v *AttributeValue) *ModifyInstanceAttributeInput {
  45368. s.SriovNetSupport = v
  45369. return s
  45370. }
  45371. // SetUserData sets the UserData field's value.
  45372. func (s *ModifyInstanceAttributeInput) SetUserData(v *BlobAttributeValue) *ModifyInstanceAttributeInput {
  45373. s.UserData = v
  45374. return s
  45375. }
  45376. // SetValue sets the Value field's value.
  45377. func (s *ModifyInstanceAttributeInput) SetValue(v string) *ModifyInstanceAttributeInput {
  45378. s.Value = &v
  45379. return s
  45380. }
  45381. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttributeOutput
  45382. type ModifyInstanceAttributeOutput struct {
  45383. _ struct{} `type:"structure"`
  45384. }
  45385. // String returns the string representation
  45386. func (s ModifyInstanceAttributeOutput) String() string {
  45387. return awsutil.Prettify(s)
  45388. }
  45389. // GoString returns the string representation
  45390. func (s ModifyInstanceAttributeOutput) GoString() string {
  45391. return s.String()
  45392. }
  45393. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecificationRequest
  45394. type ModifyInstanceCreditSpecificationInput struct {
  45395. _ struct{} `type:"structure"`
  45396. // A unique, case-sensitive token that you provide to ensure idempotency of
  45397. // your modification request. For more information, see Ensuring Idempotency
  45398. // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  45399. ClientToken *string `type:"string"`
  45400. // Checks whether you have the required permissions for the action, without
  45401. // actually making the request, and provides an error response. If you have
  45402. // the required permissions, the error response is DryRunOperation. Otherwise,
  45403. // it is UnauthorizedOperation.
  45404. DryRun *bool `type:"boolean"`
  45405. // Information about the credit option for CPU usage.
  45406. //
  45407. // InstanceCreditSpecifications is a required field
  45408. InstanceCreditSpecifications []*InstanceCreditSpecificationRequest `locationName:"InstanceCreditSpecification" locationNameList:"item" type:"list" required:"true"`
  45409. }
  45410. // String returns the string representation
  45411. func (s ModifyInstanceCreditSpecificationInput) String() string {
  45412. return awsutil.Prettify(s)
  45413. }
  45414. // GoString returns the string representation
  45415. func (s ModifyInstanceCreditSpecificationInput) GoString() string {
  45416. return s.String()
  45417. }
  45418. // Validate inspects the fields of the type to determine if they are valid.
  45419. func (s *ModifyInstanceCreditSpecificationInput) Validate() error {
  45420. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceCreditSpecificationInput"}
  45421. if s.InstanceCreditSpecifications == nil {
  45422. invalidParams.Add(request.NewErrParamRequired("InstanceCreditSpecifications"))
  45423. }
  45424. if invalidParams.Len() > 0 {
  45425. return invalidParams
  45426. }
  45427. return nil
  45428. }
  45429. // SetClientToken sets the ClientToken field's value.
  45430. func (s *ModifyInstanceCreditSpecificationInput) SetClientToken(v string) *ModifyInstanceCreditSpecificationInput {
  45431. s.ClientToken = &v
  45432. return s
  45433. }
  45434. // SetDryRun sets the DryRun field's value.
  45435. func (s *ModifyInstanceCreditSpecificationInput) SetDryRun(v bool) *ModifyInstanceCreditSpecificationInput {
  45436. s.DryRun = &v
  45437. return s
  45438. }
  45439. // SetInstanceCreditSpecifications sets the InstanceCreditSpecifications field's value.
  45440. func (s *ModifyInstanceCreditSpecificationInput) SetInstanceCreditSpecifications(v []*InstanceCreditSpecificationRequest) *ModifyInstanceCreditSpecificationInput {
  45441. s.InstanceCreditSpecifications = v
  45442. return s
  45443. }
  45444. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCreditSpecificationResult
  45445. type ModifyInstanceCreditSpecificationOutput struct {
  45446. _ struct{} `type:"structure"`
  45447. // Information about the instances whose credit option for CPU usage was successfully
  45448. // modified.
  45449. SuccessfulInstanceCreditSpecifications []*SuccessfulInstanceCreditSpecificationItem `locationName:"successfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  45450. // Information about the instances whose credit option for CPU usage was not
  45451. // modified.
  45452. UnsuccessfulInstanceCreditSpecifications []*UnsuccessfulInstanceCreditSpecificationItem `locationName:"unsuccessfulInstanceCreditSpecificationSet" locationNameList:"item" type:"list"`
  45453. }
  45454. // String returns the string representation
  45455. func (s ModifyInstanceCreditSpecificationOutput) String() string {
  45456. return awsutil.Prettify(s)
  45457. }
  45458. // GoString returns the string representation
  45459. func (s ModifyInstanceCreditSpecificationOutput) GoString() string {
  45460. return s.String()
  45461. }
  45462. // SetSuccessfulInstanceCreditSpecifications sets the SuccessfulInstanceCreditSpecifications field's value.
  45463. func (s *ModifyInstanceCreditSpecificationOutput) SetSuccessfulInstanceCreditSpecifications(v []*SuccessfulInstanceCreditSpecificationItem) *ModifyInstanceCreditSpecificationOutput {
  45464. s.SuccessfulInstanceCreditSpecifications = v
  45465. return s
  45466. }
  45467. // SetUnsuccessfulInstanceCreditSpecifications sets the UnsuccessfulInstanceCreditSpecifications field's value.
  45468. func (s *ModifyInstanceCreditSpecificationOutput) SetUnsuccessfulInstanceCreditSpecifications(v []*UnsuccessfulInstanceCreditSpecificationItem) *ModifyInstanceCreditSpecificationOutput {
  45469. s.UnsuccessfulInstanceCreditSpecifications = v
  45470. return s
  45471. }
  45472. // Contains the parameters for ModifyInstancePlacement.
  45473. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacementRequest
  45474. type ModifyInstancePlacementInput struct {
  45475. _ struct{} `type:"structure"`
  45476. // The new affinity setting for the instance.
  45477. Affinity *string `locationName:"affinity" type:"string" enum:"Affinity"`
  45478. // The ID of the Dedicated Host that the instance will have affinity with.
  45479. HostId *string `locationName:"hostId" type:"string"`
  45480. // The ID of the instance that you are modifying.
  45481. //
  45482. // InstanceId is a required field
  45483. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  45484. // The tenancy of the instance that you are modifying.
  45485. Tenancy *string `locationName:"tenancy" type:"string" enum:"HostTenancy"`
  45486. }
  45487. // String returns the string representation
  45488. func (s ModifyInstancePlacementInput) String() string {
  45489. return awsutil.Prettify(s)
  45490. }
  45491. // GoString returns the string representation
  45492. func (s ModifyInstancePlacementInput) GoString() string {
  45493. return s.String()
  45494. }
  45495. // Validate inspects the fields of the type to determine if they are valid.
  45496. func (s *ModifyInstancePlacementInput) Validate() error {
  45497. invalidParams := request.ErrInvalidParams{Context: "ModifyInstancePlacementInput"}
  45498. if s.InstanceId == nil {
  45499. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  45500. }
  45501. if invalidParams.Len() > 0 {
  45502. return invalidParams
  45503. }
  45504. return nil
  45505. }
  45506. // SetAffinity sets the Affinity field's value.
  45507. func (s *ModifyInstancePlacementInput) SetAffinity(v string) *ModifyInstancePlacementInput {
  45508. s.Affinity = &v
  45509. return s
  45510. }
  45511. // SetHostId sets the HostId field's value.
  45512. func (s *ModifyInstancePlacementInput) SetHostId(v string) *ModifyInstancePlacementInput {
  45513. s.HostId = &v
  45514. return s
  45515. }
  45516. // SetInstanceId sets the InstanceId field's value.
  45517. func (s *ModifyInstancePlacementInput) SetInstanceId(v string) *ModifyInstancePlacementInput {
  45518. s.InstanceId = &v
  45519. return s
  45520. }
  45521. // SetTenancy sets the Tenancy field's value.
  45522. func (s *ModifyInstancePlacementInput) SetTenancy(v string) *ModifyInstancePlacementInput {
  45523. s.Tenancy = &v
  45524. return s
  45525. }
  45526. // Contains the output of ModifyInstancePlacement.
  45527. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstancePlacementResult
  45528. type ModifyInstancePlacementOutput struct {
  45529. _ struct{} `type:"structure"`
  45530. // Is true if the request succeeds, and an error otherwise.
  45531. Return *bool `locationName:"return" type:"boolean"`
  45532. }
  45533. // String returns the string representation
  45534. func (s ModifyInstancePlacementOutput) String() string {
  45535. return awsutil.Prettify(s)
  45536. }
  45537. // GoString returns the string representation
  45538. func (s ModifyInstancePlacementOutput) GoString() string {
  45539. return s.String()
  45540. }
  45541. // SetReturn sets the Return field's value.
  45542. func (s *ModifyInstancePlacementOutput) SetReturn(v bool) *ModifyInstancePlacementOutput {
  45543. s.Return = &v
  45544. return s
  45545. }
  45546. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplateRequest
  45547. type ModifyLaunchTemplateInput struct {
  45548. _ struct{} `type:"structure"`
  45549. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  45550. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  45551. ClientToken *string `type:"string"`
  45552. // The version number of the launch template to set as the default version.
  45553. DefaultVersion *string `locationName:"SetDefaultVersion" type:"string"`
  45554. // Checks whether you have the required permissions for the action, without
  45555. // actually making the request, and provides an error response. If you have
  45556. // the required permissions, the error response is DryRunOperation. Otherwise,
  45557. // it is UnauthorizedOperation.
  45558. DryRun *bool `type:"boolean"`
  45559. // The ID of the launch template. You must specify either the launch template
  45560. // ID or launch template name in the request.
  45561. LaunchTemplateId *string `type:"string"`
  45562. // The name of the launch template. You must specify either the launch template
  45563. // ID or launch template name in the request.
  45564. LaunchTemplateName *string `min:"3" type:"string"`
  45565. }
  45566. // String returns the string representation
  45567. func (s ModifyLaunchTemplateInput) String() string {
  45568. return awsutil.Prettify(s)
  45569. }
  45570. // GoString returns the string representation
  45571. func (s ModifyLaunchTemplateInput) GoString() string {
  45572. return s.String()
  45573. }
  45574. // Validate inspects the fields of the type to determine if they are valid.
  45575. func (s *ModifyLaunchTemplateInput) Validate() error {
  45576. invalidParams := request.ErrInvalidParams{Context: "ModifyLaunchTemplateInput"}
  45577. if s.LaunchTemplateName != nil && len(*s.LaunchTemplateName) < 3 {
  45578. invalidParams.Add(request.NewErrParamMinLen("LaunchTemplateName", 3))
  45579. }
  45580. if invalidParams.Len() > 0 {
  45581. return invalidParams
  45582. }
  45583. return nil
  45584. }
  45585. // SetClientToken sets the ClientToken field's value.
  45586. func (s *ModifyLaunchTemplateInput) SetClientToken(v string) *ModifyLaunchTemplateInput {
  45587. s.ClientToken = &v
  45588. return s
  45589. }
  45590. // SetDefaultVersion sets the DefaultVersion field's value.
  45591. func (s *ModifyLaunchTemplateInput) SetDefaultVersion(v string) *ModifyLaunchTemplateInput {
  45592. s.DefaultVersion = &v
  45593. return s
  45594. }
  45595. // SetDryRun sets the DryRun field's value.
  45596. func (s *ModifyLaunchTemplateInput) SetDryRun(v bool) *ModifyLaunchTemplateInput {
  45597. s.DryRun = &v
  45598. return s
  45599. }
  45600. // SetLaunchTemplateId sets the LaunchTemplateId field's value.
  45601. func (s *ModifyLaunchTemplateInput) SetLaunchTemplateId(v string) *ModifyLaunchTemplateInput {
  45602. s.LaunchTemplateId = &v
  45603. return s
  45604. }
  45605. // SetLaunchTemplateName sets the LaunchTemplateName field's value.
  45606. func (s *ModifyLaunchTemplateInput) SetLaunchTemplateName(v string) *ModifyLaunchTemplateInput {
  45607. s.LaunchTemplateName = &v
  45608. return s
  45609. }
  45610. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyLaunchTemplateResult
  45611. type ModifyLaunchTemplateOutput struct {
  45612. _ struct{} `type:"structure"`
  45613. // Information about the launch template.
  45614. LaunchTemplate *LaunchTemplate `locationName:"launchTemplate" type:"structure"`
  45615. }
  45616. // String returns the string representation
  45617. func (s ModifyLaunchTemplateOutput) String() string {
  45618. return awsutil.Prettify(s)
  45619. }
  45620. // GoString returns the string representation
  45621. func (s ModifyLaunchTemplateOutput) GoString() string {
  45622. return s.String()
  45623. }
  45624. // SetLaunchTemplate sets the LaunchTemplate field's value.
  45625. func (s *ModifyLaunchTemplateOutput) SetLaunchTemplate(v *LaunchTemplate) *ModifyLaunchTemplateOutput {
  45626. s.LaunchTemplate = v
  45627. return s
  45628. }
  45629. // Contains the parameters for ModifyNetworkInterfaceAttribute.
  45630. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeRequest
  45631. type ModifyNetworkInterfaceAttributeInput struct {
  45632. _ struct{} `type:"structure"`
  45633. // Information about the interface attachment. If modifying the 'delete on termination'
  45634. // attribute, you must specify the ID of the interface attachment.
  45635. Attachment *NetworkInterfaceAttachmentChanges `locationName:"attachment" type:"structure"`
  45636. // A description for the network interface.
  45637. Description *AttributeValue `locationName:"description" type:"structure"`
  45638. // Checks whether you have the required permissions for the action, without
  45639. // actually making the request, and provides an error response. If you have
  45640. // the required permissions, the error response is DryRunOperation. Otherwise,
  45641. // it is UnauthorizedOperation.
  45642. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45643. // Changes the security groups for the network interface. The new set of groups
  45644. // you specify replaces the current set. You must specify at least one group,
  45645. // even if it's just the default security group in the VPC. You must specify
  45646. // the ID of the security group, not the name.
  45647. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  45648. // The ID of the network interface.
  45649. //
  45650. // NetworkInterfaceId is a required field
  45651. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  45652. // Indicates whether source/destination checking is enabled. A value of true
  45653. // means checking is enabled, and false means checking is disabled. This value
  45654. // must be false for a NAT instance to perform NAT. For more information, see
  45655. // NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  45656. // in the Amazon Virtual Private Cloud User Guide.
  45657. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  45658. }
  45659. // String returns the string representation
  45660. func (s ModifyNetworkInterfaceAttributeInput) String() string {
  45661. return awsutil.Prettify(s)
  45662. }
  45663. // GoString returns the string representation
  45664. func (s ModifyNetworkInterfaceAttributeInput) GoString() string {
  45665. return s.String()
  45666. }
  45667. // Validate inspects the fields of the type to determine if they are valid.
  45668. func (s *ModifyNetworkInterfaceAttributeInput) Validate() error {
  45669. invalidParams := request.ErrInvalidParams{Context: "ModifyNetworkInterfaceAttributeInput"}
  45670. if s.NetworkInterfaceId == nil {
  45671. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  45672. }
  45673. if invalidParams.Len() > 0 {
  45674. return invalidParams
  45675. }
  45676. return nil
  45677. }
  45678. // SetAttachment sets the Attachment field's value.
  45679. func (s *ModifyNetworkInterfaceAttributeInput) SetAttachment(v *NetworkInterfaceAttachmentChanges) *ModifyNetworkInterfaceAttributeInput {
  45680. s.Attachment = v
  45681. return s
  45682. }
  45683. // SetDescription sets the Description field's value.
  45684. func (s *ModifyNetworkInterfaceAttributeInput) SetDescription(v *AttributeValue) *ModifyNetworkInterfaceAttributeInput {
  45685. s.Description = v
  45686. return s
  45687. }
  45688. // SetDryRun sets the DryRun field's value.
  45689. func (s *ModifyNetworkInterfaceAttributeInput) SetDryRun(v bool) *ModifyNetworkInterfaceAttributeInput {
  45690. s.DryRun = &v
  45691. return s
  45692. }
  45693. // SetGroups sets the Groups field's value.
  45694. func (s *ModifyNetworkInterfaceAttributeInput) SetGroups(v []*string) *ModifyNetworkInterfaceAttributeInput {
  45695. s.Groups = v
  45696. return s
  45697. }
  45698. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  45699. func (s *ModifyNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ModifyNetworkInterfaceAttributeInput {
  45700. s.NetworkInterfaceId = &v
  45701. return s
  45702. }
  45703. // SetSourceDestCheck sets the SourceDestCheck field's value.
  45704. func (s *ModifyNetworkInterfaceAttributeInput) SetSourceDestCheck(v *AttributeBooleanValue) *ModifyNetworkInterfaceAttributeInput {
  45705. s.SourceDestCheck = v
  45706. return s
  45707. }
  45708. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeOutput
  45709. type ModifyNetworkInterfaceAttributeOutput struct {
  45710. _ struct{} `type:"structure"`
  45711. }
  45712. // String returns the string representation
  45713. func (s ModifyNetworkInterfaceAttributeOutput) String() string {
  45714. return awsutil.Prettify(s)
  45715. }
  45716. // GoString returns the string representation
  45717. func (s ModifyNetworkInterfaceAttributeOutput) GoString() string {
  45718. return s.String()
  45719. }
  45720. // Contains the parameters for ModifyReservedInstances.
  45721. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstancesRequest
  45722. type ModifyReservedInstancesInput struct {
  45723. _ struct{} `type:"structure"`
  45724. // A unique, case-sensitive token you provide to ensure idempotency of your
  45725. // modification request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  45726. ClientToken *string `locationName:"clientToken" type:"string"`
  45727. // The IDs of the Reserved Instances to modify.
  45728. //
  45729. // ReservedInstancesIds is a required field
  45730. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list" required:"true"`
  45731. // The configuration settings for the Reserved Instances to modify.
  45732. //
  45733. // TargetConfigurations is a required field
  45734. TargetConfigurations []*ReservedInstancesConfiguration `locationName:"ReservedInstancesConfigurationSetItemType" locationNameList:"item" type:"list" required:"true"`
  45735. }
  45736. // String returns the string representation
  45737. func (s ModifyReservedInstancesInput) String() string {
  45738. return awsutil.Prettify(s)
  45739. }
  45740. // GoString returns the string representation
  45741. func (s ModifyReservedInstancesInput) GoString() string {
  45742. return s.String()
  45743. }
  45744. // Validate inspects the fields of the type to determine if they are valid.
  45745. func (s *ModifyReservedInstancesInput) Validate() error {
  45746. invalidParams := request.ErrInvalidParams{Context: "ModifyReservedInstancesInput"}
  45747. if s.ReservedInstancesIds == nil {
  45748. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesIds"))
  45749. }
  45750. if s.TargetConfigurations == nil {
  45751. invalidParams.Add(request.NewErrParamRequired("TargetConfigurations"))
  45752. }
  45753. if invalidParams.Len() > 0 {
  45754. return invalidParams
  45755. }
  45756. return nil
  45757. }
  45758. // SetClientToken sets the ClientToken field's value.
  45759. func (s *ModifyReservedInstancesInput) SetClientToken(v string) *ModifyReservedInstancesInput {
  45760. s.ClientToken = &v
  45761. return s
  45762. }
  45763. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  45764. func (s *ModifyReservedInstancesInput) SetReservedInstancesIds(v []*string) *ModifyReservedInstancesInput {
  45765. s.ReservedInstancesIds = v
  45766. return s
  45767. }
  45768. // SetTargetConfigurations sets the TargetConfigurations field's value.
  45769. func (s *ModifyReservedInstancesInput) SetTargetConfigurations(v []*ReservedInstancesConfiguration) *ModifyReservedInstancesInput {
  45770. s.TargetConfigurations = v
  45771. return s
  45772. }
  45773. // Contains the output of ModifyReservedInstances.
  45774. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyReservedInstancesResult
  45775. type ModifyReservedInstancesOutput struct {
  45776. _ struct{} `type:"structure"`
  45777. // The ID for the modification.
  45778. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  45779. }
  45780. // String returns the string representation
  45781. func (s ModifyReservedInstancesOutput) String() string {
  45782. return awsutil.Prettify(s)
  45783. }
  45784. // GoString returns the string representation
  45785. func (s ModifyReservedInstancesOutput) GoString() string {
  45786. return s.String()
  45787. }
  45788. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  45789. func (s *ModifyReservedInstancesOutput) SetReservedInstancesModificationId(v string) *ModifyReservedInstancesOutput {
  45790. s.ReservedInstancesModificationId = &v
  45791. return s
  45792. }
  45793. // Contains the parameters for ModifySnapshotAttribute.
  45794. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttributeRequest
  45795. type ModifySnapshotAttributeInput struct {
  45796. _ struct{} `type:"structure"`
  45797. // The snapshot attribute to modify.
  45798. //
  45799. // Only volume creation permissions may be modified at the customer level.
  45800. Attribute *string `type:"string" enum:"SnapshotAttributeName"`
  45801. // A JSON representation of the snapshot attribute modification.
  45802. CreateVolumePermission *CreateVolumePermissionModifications `type:"structure"`
  45803. // Checks whether you have the required permissions for the action, without
  45804. // actually making the request, and provides an error response. If you have
  45805. // the required permissions, the error response is DryRunOperation. Otherwise,
  45806. // it is UnauthorizedOperation.
  45807. DryRun *bool `locationName:"dryRun" type:"boolean"`
  45808. // The group to modify for the snapshot.
  45809. GroupNames []*string `locationName:"UserGroup" locationNameList:"GroupName" type:"list"`
  45810. // The type of operation to perform to the attribute.
  45811. OperationType *string `type:"string" enum:"OperationType"`
  45812. // The ID of the snapshot.
  45813. //
  45814. // SnapshotId is a required field
  45815. SnapshotId *string `type:"string" required:"true"`
  45816. // The account ID to modify for the snapshot.
  45817. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  45818. }
  45819. // String returns the string representation
  45820. func (s ModifySnapshotAttributeInput) String() string {
  45821. return awsutil.Prettify(s)
  45822. }
  45823. // GoString returns the string representation
  45824. func (s ModifySnapshotAttributeInput) GoString() string {
  45825. return s.String()
  45826. }
  45827. // Validate inspects the fields of the type to determine if they are valid.
  45828. func (s *ModifySnapshotAttributeInput) Validate() error {
  45829. invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotAttributeInput"}
  45830. if s.SnapshotId == nil {
  45831. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  45832. }
  45833. if invalidParams.Len() > 0 {
  45834. return invalidParams
  45835. }
  45836. return nil
  45837. }
  45838. // SetAttribute sets the Attribute field's value.
  45839. func (s *ModifySnapshotAttributeInput) SetAttribute(v string) *ModifySnapshotAttributeInput {
  45840. s.Attribute = &v
  45841. return s
  45842. }
  45843. // SetCreateVolumePermission sets the CreateVolumePermission field's value.
  45844. func (s *ModifySnapshotAttributeInput) SetCreateVolumePermission(v *CreateVolumePermissionModifications) *ModifySnapshotAttributeInput {
  45845. s.CreateVolumePermission = v
  45846. return s
  45847. }
  45848. // SetDryRun sets the DryRun field's value.
  45849. func (s *ModifySnapshotAttributeInput) SetDryRun(v bool) *ModifySnapshotAttributeInput {
  45850. s.DryRun = &v
  45851. return s
  45852. }
  45853. // SetGroupNames sets the GroupNames field's value.
  45854. func (s *ModifySnapshotAttributeInput) SetGroupNames(v []*string) *ModifySnapshotAttributeInput {
  45855. s.GroupNames = v
  45856. return s
  45857. }
  45858. // SetOperationType sets the OperationType field's value.
  45859. func (s *ModifySnapshotAttributeInput) SetOperationType(v string) *ModifySnapshotAttributeInput {
  45860. s.OperationType = &v
  45861. return s
  45862. }
  45863. // SetSnapshotId sets the SnapshotId field's value.
  45864. func (s *ModifySnapshotAttributeInput) SetSnapshotId(v string) *ModifySnapshotAttributeInput {
  45865. s.SnapshotId = &v
  45866. return s
  45867. }
  45868. // SetUserIds sets the UserIds field's value.
  45869. func (s *ModifySnapshotAttributeInput) SetUserIds(v []*string) *ModifySnapshotAttributeInput {
  45870. s.UserIds = v
  45871. return s
  45872. }
  45873. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySnapshotAttributeOutput
  45874. type ModifySnapshotAttributeOutput struct {
  45875. _ struct{} `type:"structure"`
  45876. }
  45877. // String returns the string representation
  45878. func (s ModifySnapshotAttributeOutput) String() string {
  45879. return awsutil.Prettify(s)
  45880. }
  45881. // GoString returns the string representation
  45882. func (s ModifySnapshotAttributeOutput) GoString() string {
  45883. return s.String()
  45884. }
  45885. // Contains the parameters for ModifySpotFleetRequest.
  45886. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequestRequest
  45887. type ModifySpotFleetRequestInput struct {
  45888. _ struct{} `type:"structure"`
  45889. // Indicates whether running Spot Instances should be terminated if the target
  45890. // capacity of the Spot Fleet request is decreased below the current size of
  45891. // the Spot Fleet.
  45892. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  45893. // The ID of the Spot Fleet request.
  45894. //
  45895. // SpotFleetRequestId is a required field
  45896. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  45897. // The size of the fleet.
  45898. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer"`
  45899. }
  45900. // String returns the string representation
  45901. func (s ModifySpotFleetRequestInput) String() string {
  45902. return awsutil.Prettify(s)
  45903. }
  45904. // GoString returns the string representation
  45905. func (s ModifySpotFleetRequestInput) GoString() string {
  45906. return s.String()
  45907. }
  45908. // Validate inspects the fields of the type to determine if they are valid.
  45909. func (s *ModifySpotFleetRequestInput) Validate() error {
  45910. invalidParams := request.ErrInvalidParams{Context: "ModifySpotFleetRequestInput"}
  45911. if s.SpotFleetRequestId == nil {
  45912. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  45913. }
  45914. if invalidParams.Len() > 0 {
  45915. return invalidParams
  45916. }
  45917. return nil
  45918. }
  45919. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  45920. func (s *ModifySpotFleetRequestInput) SetExcessCapacityTerminationPolicy(v string) *ModifySpotFleetRequestInput {
  45921. s.ExcessCapacityTerminationPolicy = &v
  45922. return s
  45923. }
  45924. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  45925. func (s *ModifySpotFleetRequestInput) SetSpotFleetRequestId(v string) *ModifySpotFleetRequestInput {
  45926. s.SpotFleetRequestId = &v
  45927. return s
  45928. }
  45929. // SetTargetCapacity sets the TargetCapacity field's value.
  45930. func (s *ModifySpotFleetRequestInput) SetTargetCapacity(v int64) *ModifySpotFleetRequestInput {
  45931. s.TargetCapacity = &v
  45932. return s
  45933. }
  45934. // Contains the output of ModifySpotFleetRequest.
  45935. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequestResponse
  45936. type ModifySpotFleetRequestOutput struct {
  45937. _ struct{} `type:"structure"`
  45938. // Is true if the request succeeds, and an error otherwise.
  45939. Return *bool `locationName:"return" type:"boolean"`
  45940. }
  45941. // String returns the string representation
  45942. func (s ModifySpotFleetRequestOutput) String() string {
  45943. return awsutil.Prettify(s)
  45944. }
  45945. // GoString returns the string representation
  45946. func (s ModifySpotFleetRequestOutput) GoString() string {
  45947. return s.String()
  45948. }
  45949. // SetReturn sets the Return field's value.
  45950. func (s *ModifySpotFleetRequestOutput) SetReturn(v bool) *ModifySpotFleetRequestOutput {
  45951. s.Return = &v
  45952. return s
  45953. }
  45954. // Contains the parameters for ModifySubnetAttribute.
  45955. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttributeRequest
  45956. type ModifySubnetAttributeInput struct {
  45957. _ struct{} `type:"structure"`
  45958. // Specify true to indicate that network interfaces created in the specified
  45959. // subnet should be assigned an IPv6 address. This includes a network interface
  45960. // that's created when launching an instance into the subnet (the instance therefore
  45961. // receives an IPv6 address).
  45962. //
  45963. // If you enable the IPv6 addressing feature for your subnet, your network interface
  45964. // or instance only receives an IPv6 address if it's created using version 2016-11-15
  45965. // or later of the Amazon EC2 API.
  45966. AssignIpv6AddressOnCreation *AttributeBooleanValue `type:"structure"`
  45967. // Specify true to indicate that network interfaces created in the specified
  45968. // subnet should be assigned a public IPv4 address. This includes a network
  45969. // interface that's created when launching an instance into the subnet (the
  45970. // instance therefore receives a public IPv4 address).
  45971. MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"`
  45972. // The ID of the subnet.
  45973. //
  45974. // SubnetId is a required field
  45975. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  45976. }
  45977. // String returns the string representation
  45978. func (s ModifySubnetAttributeInput) String() string {
  45979. return awsutil.Prettify(s)
  45980. }
  45981. // GoString returns the string representation
  45982. func (s ModifySubnetAttributeInput) GoString() string {
  45983. return s.String()
  45984. }
  45985. // Validate inspects the fields of the type to determine if they are valid.
  45986. func (s *ModifySubnetAttributeInput) Validate() error {
  45987. invalidParams := request.ErrInvalidParams{Context: "ModifySubnetAttributeInput"}
  45988. if s.SubnetId == nil {
  45989. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  45990. }
  45991. if invalidParams.Len() > 0 {
  45992. return invalidParams
  45993. }
  45994. return nil
  45995. }
  45996. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  45997. func (s *ModifySubnetAttributeInput) SetAssignIpv6AddressOnCreation(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  45998. s.AssignIpv6AddressOnCreation = v
  45999. return s
  46000. }
  46001. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  46002. func (s *ModifySubnetAttributeInput) SetMapPublicIpOnLaunch(v *AttributeBooleanValue) *ModifySubnetAttributeInput {
  46003. s.MapPublicIpOnLaunch = v
  46004. return s
  46005. }
  46006. // SetSubnetId sets the SubnetId field's value.
  46007. func (s *ModifySubnetAttributeInput) SetSubnetId(v string) *ModifySubnetAttributeInput {
  46008. s.SubnetId = &v
  46009. return s
  46010. }
  46011. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySubnetAttributeOutput
  46012. type ModifySubnetAttributeOutput struct {
  46013. _ struct{} `type:"structure"`
  46014. }
  46015. // String returns the string representation
  46016. func (s ModifySubnetAttributeOutput) String() string {
  46017. return awsutil.Prettify(s)
  46018. }
  46019. // GoString returns the string representation
  46020. func (s ModifySubnetAttributeOutput) GoString() string {
  46021. return s.String()
  46022. }
  46023. // Contains the parameters for ModifyVolumeAttribute.
  46024. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttributeRequest
  46025. type ModifyVolumeAttributeInput struct {
  46026. _ struct{} `type:"structure"`
  46027. // Indicates whether the volume should be auto-enabled for I/O operations.
  46028. AutoEnableIO *AttributeBooleanValue `type:"structure"`
  46029. // Checks whether you have the required permissions for the action, without
  46030. // actually making the request, and provides an error response. If you have
  46031. // the required permissions, the error response is DryRunOperation. Otherwise,
  46032. // it is UnauthorizedOperation.
  46033. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46034. // The ID of the volume.
  46035. //
  46036. // VolumeId is a required field
  46037. VolumeId *string `type:"string" required:"true"`
  46038. }
  46039. // String returns the string representation
  46040. func (s ModifyVolumeAttributeInput) String() string {
  46041. return awsutil.Prettify(s)
  46042. }
  46043. // GoString returns the string representation
  46044. func (s ModifyVolumeAttributeInput) GoString() string {
  46045. return s.String()
  46046. }
  46047. // Validate inspects the fields of the type to determine if they are valid.
  46048. func (s *ModifyVolumeAttributeInput) Validate() error {
  46049. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeAttributeInput"}
  46050. if s.VolumeId == nil {
  46051. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  46052. }
  46053. if invalidParams.Len() > 0 {
  46054. return invalidParams
  46055. }
  46056. return nil
  46057. }
  46058. // SetAutoEnableIO sets the AutoEnableIO field's value.
  46059. func (s *ModifyVolumeAttributeInput) SetAutoEnableIO(v *AttributeBooleanValue) *ModifyVolumeAttributeInput {
  46060. s.AutoEnableIO = v
  46061. return s
  46062. }
  46063. // SetDryRun sets the DryRun field's value.
  46064. func (s *ModifyVolumeAttributeInput) SetDryRun(v bool) *ModifyVolumeAttributeInput {
  46065. s.DryRun = &v
  46066. return s
  46067. }
  46068. // SetVolumeId sets the VolumeId field's value.
  46069. func (s *ModifyVolumeAttributeInput) SetVolumeId(v string) *ModifyVolumeAttributeInput {
  46070. s.VolumeId = &v
  46071. return s
  46072. }
  46073. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeAttributeOutput
  46074. type ModifyVolumeAttributeOutput struct {
  46075. _ struct{} `type:"structure"`
  46076. }
  46077. // String returns the string representation
  46078. func (s ModifyVolumeAttributeOutput) String() string {
  46079. return awsutil.Prettify(s)
  46080. }
  46081. // GoString returns the string representation
  46082. func (s ModifyVolumeAttributeOutput) GoString() string {
  46083. return s.String()
  46084. }
  46085. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeRequest
  46086. type ModifyVolumeInput struct {
  46087. _ struct{} `type:"structure"`
  46088. // Checks whether you have the required permissions for the action, without
  46089. // actually making the request, and provides an error response. If you have
  46090. // the required permissions, the error response is DryRunOperation. Otherwise,
  46091. // it is UnauthorizedOperation.
  46092. DryRun *bool `type:"boolean"`
  46093. // Target IOPS rate of the volume to be modified.
  46094. //
  46095. // Only valid for Provisioned IOPS SSD (io1) volumes. For more information about
  46096. // io1 IOPS configuration, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops
  46097. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html#EBSVolumeTypes_piops).
  46098. //
  46099. // Default: If no IOPS value is specified, the existing value is retained.
  46100. Iops *int64 `type:"integer"`
  46101. // Target size in GiB of the volume to be modified. Target volume size must
  46102. // be greater than or equal to than the existing size of the volume. For information
  46103. // about available EBS volume sizes, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html
  46104. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
  46105. //
  46106. // Default: If no size is specified, the existing size is retained.
  46107. Size *int64 `type:"integer"`
  46108. // VolumeId is a required field
  46109. VolumeId *string `type:"string" required:"true"`
  46110. // Target EBS volume type of the volume to be modified
  46111. //
  46112. // The API does not support modifications for volume type standard. You also
  46113. // cannot change the type of a volume to standard.
  46114. //
  46115. // Default: If no type is specified, the existing type is retained.
  46116. VolumeType *string `type:"string" enum:"VolumeType"`
  46117. }
  46118. // String returns the string representation
  46119. func (s ModifyVolumeInput) String() string {
  46120. return awsutil.Prettify(s)
  46121. }
  46122. // GoString returns the string representation
  46123. func (s ModifyVolumeInput) GoString() string {
  46124. return s.String()
  46125. }
  46126. // Validate inspects the fields of the type to determine if they are valid.
  46127. func (s *ModifyVolumeInput) Validate() error {
  46128. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeInput"}
  46129. if s.VolumeId == nil {
  46130. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  46131. }
  46132. if invalidParams.Len() > 0 {
  46133. return invalidParams
  46134. }
  46135. return nil
  46136. }
  46137. // SetDryRun sets the DryRun field's value.
  46138. func (s *ModifyVolumeInput) SetDryRun(v bool) *ModifyVolumeInput {
  46139. s.DryRun = &v
  46140. return s
  46141. }
  46142. // SetIops sets the Iops field's value.
  46143. func (s *ModifyVolumeInput) SetIops(v int64) *ModifyVolumeInput {
  46144. s.Iops = &v
  46145. return s
  46146. }
  46147. // SetSize sets the Size field's value.
  46148. func (s *ModifyVolumeInput) SetSize(v int64) *ModifyVolumeInput {
  46149. s.Size = &v
  46150. return s
  46151. }
  46152. // SetVolumeId sets the VolumeId field's value.
  46153. func (s *ModifyVolumeInput) SetVolumeId(v string) *ModifyVolumeInput {
  46154. s.VolumeId = &v
  46155. return s
  46156. }
  46157. // SetVolumeType sets the VolumeType field's value.
  46158. func (s *ModifyVolumeInput) SetVolumeType(v string) *ModifyVolumeInput {
  46159. s.VolumeType = &v
  46160. return s
  46161. }
  46162. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVolumeResult
  46163. type ModifyVolumeOutput struct {
  46164. _ struct{} `type:"structure"`
  46165. // A VolumeModification object.
  46166. VolumeModification *VolumeModification `locationName:"volumeModification" type:"structure"`
  46167. }
  46168. // String returns the string representation
  46169. func (s ModifyVolumeOutput) String() string {
  46170. return awsutil.Prettify(s)
  46171. }
  46172. // GoString returns the string representation
  46173. func (s ModifyVolumeOutput) GoString() string {
  46174. return s.String()
  46175. }
  46176. // SetVolumeModification sets the VolumeModification field's value.
  46177. func (s *ModifyVolumeOutput) SetVolumeModification(v *VolumeModification) *ModifyVolumeOutput {
  46178. s.VolumeModification = v
  46179. return s
  46180. }
  46181. // Contains the parameters for ModifyVpcAttribute.
  46182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttributeRequest
  46183. type ModifyVpcAttributeInput struct {
  46184. _ struct{} `type:"structure"`
  46185. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  46186. // enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
  46187. //
  46188. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  46189. // same request. Use separate requests for each attribute. You can only enable
  46190. // DNS hostnames if you've enabled DNS support.
  46191. EnableDnsHostnames *AttributeBooleanValue `type:"structure"`
  46192. // Indicates whether the DNS resolution is supported for the VPC. If enabled,
  46193. // queries to the Amazon provided DNS server at the 169.254.169.253 IP address,
  46194. // or the reserved IP address at the base of the VPC network range "plus two"
  46195. // will succeed. If disabled, the Amazon provided DNS service in the VPC that
  46196. // resolves public DNS hostnames to IP addresses is not enabled.
  46197. //
  46198. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  46199. // same request. Use separate requests for each attribute.
  46200. EnableDnsSupport *AttributeBooleanValue `type:"structure"`
  46201. // The ID of the VPC.
  46202. //
  46203. // VpcId is a required field
  46204. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  46205. }
  46206. // String returns the string representation
  46207. func (s ModifyVpcAttributeInput) String() string {
  46208. return awsutil.Prettify(s)
  46209. }
  46210. // GoString returns the string representation
  46211. func (s ModifyVpcAttributeInput) GoString() string {
  46212. return s.String()
  46213. }
  46214. // Validate inspects the fields of the type to determine if they are valid.
  46215. func (s *ModifyVpcAttributeInput) Validate() error {
  46216. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcAttributeInput"}
  46217. if s.VpcId == nil {
  46218. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  46219. }
  46220. if invalidParams.Len() > 0 {
  46221. return invalidParams
  46222. }
  46223. return nil
  46224. }
  46225. // SetEnableDnsHostnames sets the EnableDnsHostnames field's value.
  46226. func (s *ModifyVpcAttributeInput) SetEnableDnsHostnames(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  46227. s.EnableDnsHostnames = v
  46228. return s
  46229. }
  46230. // SetEnableDnsSupport sets the EnableDnsSupport field's value.
  46231. func (s *ModifyVpcAttributeInput) SetEnableDnsSupport(v *AttributeBooleanValue) *ModifyVpcAttributeInput {
  46232. s.EnableDnsSupport = v
  46233. return s
  46234. }
  46235. // SetVpcId sets the VpcId field's value.
  46236. func (s *ModifyVpcAttributeInput) SetVpcId(v string) *ModifyVpcAttributeInput {
  46237. s.VpcId = &v
  46238. return s
  46239. }
  46240. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttributeOutput
  46241. type ModifyVpcAttributeOutput struct {
  46242. _ struct{} `type:"structure"`
  46243. }
  46244. // String returns the string representation
  46245. func (s ModifyVpcAttributeOutput) String() string {
  46246. return awsutil.Prettify(s)
  46247. }
  46248. // GoString returns the string representation
  46249. func (s ModifyVpcAttributeOutput) GoString() string {
  46250. return s.String()
  46251. }
  46252. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotificationRequest
  46253. type ModifyVpcEndpointConnectionNotificationInput struct {
  46254. _ struct{} `type:"structure"`
  46255. // One or more events for the endpoint. Valid values are Accept, Connect, Delete,
  46256. // and Reject.
  46257. ConnectionEvents []*string `locationNameList:"item" type:"list"`
  46258. // The ARN for the SNS topic for the notification.
  46259. ConnectionNotificationArn *string `type:"string"`
  46260. // The ID of the notification.
  46261. //
  46262. // ConnectionNotificationId is a required field
  46263. ConnectionNotificationId *string `type:"string" required:"true"`
  46264. // Checks whether you have the required permissions for the action, without
  46265. // actually making the request, and provides an error response. If you have
  46266. // the required permissions, the error response is DryRunOperation. Otherwise,
  46267. // it is UnauthorizedOperation.
  46268. DryRun *bool `type:"boolean"`
  46269. }
  46270. // String returns the string representation
  46271. func (s ModifyVpcEndpointConnectionNotificationInput) String() string {
  46272. return awsutil.Prettify(s)
  46273. }
  46274. // GoString returns the string representation
  46275. func (s ModifyVpcEndpointConnectionNotificationInput) GoString() string {
  46276. return s.String()
  46277. }
  46278. // Validate inspects the fields of the type to determine if they are valid.
  46279. func (s *ModifyVpcEndpointConnectionNotificationInput) Validate() error {
  46280. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointConnectionNotificationInput"}
  46281. if s.ConnectionNotificationId == nil {
  46282. invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationId"))
  46283. }
  46284. if invalidParams.Len() > 0 {
  46285. return invalidParams
  46286. }
  46287. return nil
  46288. }
  46289. // SetConnectionEvents sets the ConnectionEvents field's value.
  46290. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *ModifyVpcEndpointConnectionNotificationInput {
  46291. s.ConnectionEvents = v
  46292. return s
  46293. }
  46294. // SetConnectionNotificationArn sets the ConnectionNotificationArn field's value.
  46295. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *ModifyVpcEndpointConnectionNotificationInput {
  46296. s.ConnectionNotificationArn = &v
  46297. return s
  46298. }
  46299. // SetConnectionNotificationId sets the ConnectionNotificationId field's value.
  46300. func (s *ModifyVpcEndpointConnectionNotificationInput) SetConnectionNotificationId(v string) *ModifyVpcEndpointConnectionNotificationInput {
  46301. s.ConnectionNotificationId = &v
  46302. return s
  46303. }
  46304. // SetDryRun sets the DryRun field's value.
  46305. func (s *ModifyVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *ModifyVpcEndpointConnectionNotificationInput {
  46306. s.DryRun = &v
  46307. return s
  46308. }
  46309. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointConnectionNotificationResult
  46310. type ModifyVpcEndpointConnectionNotificationOutput struct {
  46311. _ struct{} `type:"structure"`
  46312. // Returns true if the request succeeds; otherwise, it returns an error.
  46313. ReturnValue *bool `locationName:"return" type:"boolean"`
  46314. }
  46315. // String returns the string representation
  46316. func (s ModifyVpcEndpointConnectionNotificationOutput) String() string {
  46317. return awsutil.Prettify(s)
  46318. }
  46319. // GoString returns the string representation
  46320. func (s ModifyVpcEndpointConnectionNotificationOutput) GoString() string {
  46321. return s.String()
  46322. }
  46323. // SetReturnValue sets the ReturnValue field's value.
  46324. func (s *ModifyVpcEndpointConnectionNotificationOutput) SetReturnValue(v bool) *ModifyVpcEndpointConnectionNotificationOutput {
  46325. s.ReturnValue = &v
  46326. return s
  46327. }
  46328. // Contains the parameters for ModifyVpcEndpoint.
  46329. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointRequest
  46330. type ModifyVpcEndpointInput struct {
  46331. _ struct{} `type:"structure"`
  46332. // (Gateway endpoint) One or more route tables IDs to associate with the endpoint.
  46333. AddRouteTableIds []*string `locationName:"AddRouteTableId" locationNameList:"item" type:"list"`
  46334. // (Interface endpoint) One or more security group IDs to associate with the
  46335. // network interface.
  46336. AddSecurityGroupIds []*string `locationName:"AddSecurityGroupId" locationNameList:"item" type:"list"`
  46337. // (Interface endpoint) One or more subnet IDs in which to serve the endpoint.
  46338. AddSubnetIds []*string `locationName:"AddSubnetId" locationNameList:"item" type:"list"`
  46339. // Checks whether you have the required permissions for the action, without
  46340. // actually making the request, and provides an error response. If you have
  46341. // the required permissions, the error response is DryRunOperation. Otherwise,
  46342. // it is UnauthorizedOperation.
  46343. DryRun *bool `type:"boolean"`
  46344. // (Gateway endpoint) A policy document to attach to the endpoint. The policy
  46345. // must be in valid JSON format.
  46346. PolicyDocument *string `type:"string"`
  46347. // (Interface endpoint) Indicate whether a private hosted zone is associated
  46348. // with the VPC.
  46349. PrivateDnsEnabled *bool `type:"boolean"`
  46350. // (Gateway endpoint) One or more route table IDs to disassociate from the endpoint.
  46351. RemoveRouteTableIds []*string `locationName:"RemoveRouteTableId" locationNameList:"item" type:"list"`
  46352. // (Interface endpoint) One or more security group IDs to disassociate from
  46353. // the network interface.
  46354. RemoveSecurityGroupIds []*string `locationName:"RemoveSecurityGroupId" locationNameList:"item" type:"list"`
  46355. // (Interface endpoint) One or more subnets IDs in which to remove the endpoint.
  46356. RemoveSubnetIds []*string `locationName:"RemoveSubnetId" locationNameList:"item" type:"list"`
  46357. // (Gateway endpoint) Specify true to reset the policy document to the default
  46358. // policy. The default policy allows full access to the service.
  46359. ResetPolicy *bool `type:"boolean"`
  46360. // The ID of the endpoint.
  46361. //
  46362. // VpcEndpointId is a required field
  46363. VpcEndpointId *string `type:"string" required:"true"`
  46364. }
  46365. // String returns the string representation
  46366. func (s ModifyVpcEndpointInput) String() string {
  46367. return awsutil.Prettify(s)
  46368. }
  46369. // GoString returns the string representation
  46370. func (s ModifyVpcEndpointInput) GoString() string {
  46371. return s.String()
  46372. }
  46373. // Validate inspects the fields of the type to determine if they are valid.
  46374. func (s *ModifyVpcEndpointInput) Validate() error {
  46375. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointInput"}
  46376. if s.VpcEndpointId == nil {
  46377. invalidParams.Add(request.NewErrParamRequired("VpcEndpointId"))
  46378. }
  46379. if invalidParams.Len() > 0 {
  46380. return invalidParams
  46381. }
  46382. return nil
  46383. }
  46384. // SetAddRouteTableIds sets the AddRouteTableIds field's value.
  46385. func (s *ModifyVpcEndpointInput) SetAddRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  46386. s.AddRouteTableIds = v
  46387. return s
  46388. }
  46389. // SetAddSecurityGroupIds sets the AddSecurityGroupIds field's value.
  46390. func (s *ModifyVpcEndpointInput) SetAddSecurityGroupIds(v []*string) *ModifyVpcEndpointInput {
  46391. s.AddSecurityGroupIds = v
  46392. return s
  46393. }
  46394. // SetAddSubnetIds sets the AddSubnetIds field's value.
  46395. func (s *ModifyVpcEndpointInput) SetAddSubnetIds(v []*string) *ModifyVpcEndpointInput {
  46396. s.AddSubnetIds = v
  46397. return s
  46398. }
  46399. // SetDryRun sets the DryRun field's value.
  46400. func (s *ModifyVpcEndpointInput) SetDryRun(v bool) *ModifyVpcEndpointInput {
  46401. s.DryRun = &v
  46402. return s
  46403. }
  46404. // SetPolicyDocument sets the PolicyDocument field's value.
  46405. func (s *ModifyVpcEndpointInput) SetPolicyDocument(v string) *ModifyVpcEndpointInput {
  46406. s.PolicyDocument = &v
  46407. return s
  46408. }
  46409. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  46410. func (s *ModifyVpcEndpointInput) SetPrivateDnsEnabled(v bool) *ModifyVpcEndpointInput {
  46411. s.PrivateDnsEnabled = &v
  46412. return s
  46413. }
  46414. // SetRemoveRouteTableIds sets the RemoveRouteTableIds field's value.
  46415. func (s *ModifyVpcEndpointInput) SetRemoveRouteTableIds(v []*string) *ModifyVpcEndpointInput {
  46416. s.RemoveRouteTableIds = v
  46417. return s
  46418. }
  46419. // SetRemoveSecurityGroupIds sets the RemoveSecurityGroupIds field's value.
  46420. func (s *ModifyVpcEndpointInput) SetRemoveSecurityGroupIds(v []*string) *ModifyVpcEndpointInput {
  46421. s.RemoveSecurityGroupIds = v
  46422. return s
  46423. }
  46424. // SetRemoveSubnetIds sets the RemoveSubnetIds field's value.
  46425. func (s *ModifyVpcEndpointInput) SetRemoveSubnetIds(v []*string) *ModifyVpcEndpointInput {
  46426. s.RemoveSubnetIds = v
  46427. return s
  46428. }
  46429. // SetResetPolicy sets the ResetPolicy field's value.
  46430. func (s *ModifyVpcEndpointInput) SetResetPolicy(v bool) *ModifyVpcEndpointInput {
  46431. s.ResetPolicy = &v
  46432. return s
  46433. }
  46434. // SetVpcEndpointId sets the VpcEndpointId field's value.
  46435. func (s *ModifyVpcEndpointInput) SetVpcEndpointId(v string) *ModifyVpcEndpointInput {
  46436. s.VpcEndpointId = &v
  46437. return s
  46438. }
  46439. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointResult
  46440. type ModifyVpcEndpointOutput struct {
  46441. _ struct{} `type:"structure"`
  46442. // Returns true if the request succeeds; otherwise, it returns an error.
  46443. Return *bool `locationName:"return" type:"boolean"`
  46444. }
  46445. // String returns the string representation
  46446. func (s ModifyVpcEndpointOutput) String() string {
  46447. return awsutil.Prettify(s)
  46448. }
  46449. // GoString returns the string representation
  46450. func (s ModifyVpcEndpointOutput) GoString() string {
  46451. return s.String()
  46452. }
  46453. // SetReturn sets the Return field's value.
  46454. func (s *ModifyVpcEndpointOutput) SetReturn(v bool) *ModifyVpcEndpointOutput {
  46455. s.Return = &v
  46456. return s
  46457. }
  46458. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfigurationRequest
  46459. type ModifyVpcEndpointServiceConfigurationInput struct {
  46460. _ struct{} `type:"structure"`
  46461. // Indicate whether requests to create an endpoint to your service must be accepted.
  46462. AcceptanceRequired *bool `type:"boolean"`
  46463. // The Amazon Resource Names (ARNs) of Network Load Balancers to add to your
  46464. // service configuration.
  46465. AddNetworkLoadBalancerArns []*string `locationName:"addNetworkLoadBalancerArn" locationNameList:"item" type:"list"`
  46466. // Checks whether you have the required permissions for the action, without
  46467. // actually making the request, and provides an error response. If you have
  46468. // the required permissions, the error response is DryRunOperation. Otherwise,
  46469. // it is UnauthorizedOperation.
  46470. DryRun *bool `type:"boolean"`
  46471. // The Amazon Resource Names (ARNs) of Network Load Balancers to remove from
  46472. // your service configuration.
  46473. RemoveNetworkLoadBalancerArns []*string `locationName:"removeNetworkLoadBalancerArn" locationNameList:"item" type:"list"`
  46474. // The ID of the service.
  46475. //
  46476. // ServiceId is a required field
  46477. ServiceId *string `type:"string" required:"true"`
  46478. }
  46479. // String returns the string representation
  46480. func (s ModifyVpcEndpointServiceConfigurationInput) String() string {
  46481. return awsutil.Prettify(s)
  46482. }
  46483. // GoString returns the string representation
  46484. func (s ModifyVpcEndpointServiceConfigurationInput) GoString() string {
  46485. return s.String()
  46486. }
  46487. // Validate inspects the fields of the type to determine if they are valid.
  46488. func (s *ModifyVpcEndpointServiceConfigurationInput) Validate() error {
  46489. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServiceConfigurationInput"}
  46490. if s.ServiceId == nil {
  46491. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  46492. }
  46493. if invalidParams.Len() > 0 {
  46494. return invalidParams
  46495. }
  46496. return nil
  46497. }
  46498. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  46499. func (s *ModifyVpcEndpointServiceConfigurationInput) SetAcceptanceRequired(v bool) *ModifyVpcEndpointServiceConfigurationInput {
  46500. s.AcceptanceRequired = &v
  46501. return s
  46502. }
  46503. // SetAddNetworkLoadBalancerArns sets the AddNetworkLoadBalancerArns field's value.
  46504. func (s *ModifyVpcEndpointServiceConfigurationInput) SetAddNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput {
  46505. s.AddNetworkLoadBalancerArns = v
  46506. return s
  46507. }
  46508. // SetDryRun sets the DryRun field's value.
  46509. func (s *ModifyVpcEndpointServiceConfigurationInput) SetDryRun(v bool) *ModifyVpcEndpointServiceConfigurationInput {
  46510. s.DryRun = &v
  46511. return s
  46512. }
  46513. // SetRemoveNetworkLoadBalancerArns sets the RemoveNetworkLoadBalancerArns field's value.
  46514. func (s *ModifyVpcEndpointServiceConfigurationInput) SetRemoveNetworkLoadBalancerArns(v []*string) *ModifyVpcEndpointServiceConfigurationInput {
  46515. s.RemoveNetworkLoadBalancerArns = v
  46516. return s
  46517. }
  46518. // SetServiceId sets the ServiceId field's value.
  46519. func (s *ModifyVpcEndpointServiceConfigurationInput) SetServiceId(v string) *ModifyVpcEndpointServiceConfigurationInput {
  46520. s.ServiceId = &v
  46521. return s
  46522. }
  46523. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServiceConfigurationResult
  46524. type ModifyVpcEndpointServiceConfigurationOutput struct {
  46525. _ struct{} `type:"structure"`
  46526. // Returns true if the request succeeds; otherwise, it returns an error.
  46527. Return *bool `locationName:"return" type:"boolean"`
  46528. }
  46529. // String returns the string representation
  46530. func (s ModifyVpcEndpointServiceConfigurationOutput) String() string {
  46531. return awsutil.Prettify(s)
  46532. }
  46533. // GoString returns the string representation
  46534. func (s ModifyVpcEndpointServiceConfigurationOutput) GoString() string {
  46535. return s.String()
  46536. }
  46537. // SetReturn sets the Return field's value.
  46538. func (s *ModifyVpcEndpointServiceConfigurationOutput) SetReturn(v bool) *ModifyVpcEndpointServiceConfigurationOutput {
  46539. s.Return = &v
  46540. return s
  46541. }
  46542. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissionsRequest
  46543. type ModifyVpcEndpointServicePermissionsInput struct {
  46544. _ struct{} `type:"structure"`
  46545. // One or more Amazon Resource Names (ARNs) of principals for which to allow
  46546. // permission. Specify * to allow all principals.
  46547. AddAllowedPrincipals []*string `locationNameList:"item" type:"list"`
  46548. // Checks whether you have the required permissions for the action, without
  46549. // actually making the request, and provides an error response. If you have
  46550. // the required permissions, the error response is DryRunOperation. Otherwise,
  46551. // it is UnauthorizedOperation.
  46552. DryRun *bool `type:"boolean"`
  46553. // One or more Amazon Resource Names (ARNs) of principals for which to remove
  46554. // permission.
  46555. RemoveAllowedPrincipals []*string `locationNameList:"item" type:"list"`
  46556. // The ID of the service.
  46557. //
  46558. // ServiceId is a required field
  46559. ServiceId *string `type:"string" required:"true"`
  46560. }
  46561. // String returns the string representation
  46562. func (s ModifyVpcEndpointServicePermissionsInput) String() string {
  46563. return awsutil.Prettify(s)
  46564. }
  46565. // GoString returns the string representation
  46566. func (s ModifyVpcEndpointServicePermissionsInput) GoString() string {
  46567. return s.String()
  46568. }
  46569. // Validate inspects the fields of the type to determine if they are valid.
  46570. func (s *ModifyVpcEndpointServicePermissionsInput) Validate() error {
  46571. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointServicePermissionsInput"}
  46572. if s.ServiceId == nil {
  46573. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  46574. }
  46575. if invalidParams.Len() > 0 {
  46576. return invalidParams
  46577. }
  46578. return nil
  46579. }
  46580. // SetAddAllowedPrincipals sets the AddAllowedPrincipals field's value.
  46581. func (s *ModifyVpcEndpointServicePermissionsInput) SetAddAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput {
  46582. s.AddAllowedPrincipals = v
  46583. return s
  46584. }
  46585. // SetDryRun sets the DryRun field's value.
  46586. func (s *ModifyVpcEndpointServicePermissionsInput) SetDryRun(v bool) *ModifyVpcEndpointServicePermissionsInput {
  46587. s.DryRun = &v
  46588. return s
  46589. }
  46590. // SetRemoveAllowedPrincipals sets the RemoveAllowedPrincipals field's value.
  46591. func (s *ModifyVpcEndpointServicePermissionsInput) SetRemoveAllowedPrincipals(v []*string) *ModifyVpcEndpointServicePermissionsInput {
  46592. s.RemoveAllowedPrincipals = v
  46593. return s
  46594. }
  46595. // SetServiceId sets the ServiceId field's value.
  46596. func (s *ModifyVpcEndpointServicePermissionsInput) SetServiceId(v string) *ModifyVpcEndpointServicePermissionsInput {
  46597. s.ServiceId = &v
  46598. return s
  46599. }
  46600. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcEndpointServicePermissionsResult
  46601. type ModifyVpcEndpointServicePermissionsOutput struct {
  46602. _ struct{} `type:"structure"`
  46603. // Returns true if the request succeeds; otherwise, it returns an error.
  46604. ReturnValue *bool `locationName:"return" type:"boolean"`
  46605. }
  46606. // String returns the string representation
  46607. func (s ModifyVpcEndpointServicePermissionsOutput) String() string {
  46608. return awsutil.Prettify(s)
  46609. }
  46610. // GoString returns the string representation
  46611. func (s ModifyVpcEndpointServicePermissionsOutput) GoString() string {
  46612. return s.String()
  46613. }
  46614. // SetReturnValue sets the ReturnValue field's value.
  46615. func (s *ModifyVpcEndpointServicePermissionsOutput) SetReturnValue(v bool) *ModifyVpcEndpointServicePermissionsOutput {
  46616. s.ReturnValue = &v
  46617. return s
  46618. }
  46619. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptionsRequest
  46620. type ModifyVpcPeeringConnectionOptionsInput struct {
  46621. _ struct{} `type:"structure"`
  46622. // The VPC peering connection options for the accepter VPC.
  46623. AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  46624. // Checks whether you have the required permissions for the operation, without
  46625. // actually making the request, and provides an error response. If you have
  46626. // the required permissions, the error response is DryRunOperation. Otherwise,
  46627. // it is UnauthorizedOperation.
  46628. DryRun *bool `type:"boolean"`
  46629. // The VPC peering connection options for the requester VPC.
  46630. RequesterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  46631. // The ID of the VPC peering connection.
  46632. //
  46633. // VpcPeeringConnectionId is a required field
  46634. VpcPeeringConnectionId *string `type:"string" required:"true"`
  46635. }
  46636. // String returns the string representation
  46637. func (s ModifyVpcPeeringConnectionOptionsInput) String() string {
  46638. return awsutil.Prettify(s)
  46639. }
  46640. // GoString returns the string representation
  46641. func (s ModifyVpcPeeringConnectionOptionsInput) GoString() string {
  46642. return s.String()
  46643. }
  46644. // Validate inspects the fields of the type to determine if they are valid.
  46645. func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error {
  46646. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcPeeringConnectionOptionsInput"}
  46647. if s.VpcPeeringConnectionId == nil {
  46648. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  46649. }
  46650. if invalidParams.Len() > 0 {
  46651. return invalidParams
  46652. }
  46653. return nil
  46654. }
  46655. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  46656. func (s *ModifyVpcPeeringConnectionOptionsInput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  46657. s.AccepterPeeringConnectionOptions = v
  46658. return s
  46659. }
  46660. // SetDryRun sets the DryRun field's value.
  46661. func (s *ModifyVpcPeeringConnectionOptionsInput) SetDryRun(v bool) *ModifyVpcPeeringConnectionOptionsInput {
  46662. s.DryRun = &v
  46663. return s
  46664. }
  46665. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  46666. func (s *ModifyVpcPeeringConnectionOptionsInput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptionsRequest) *ModifyVpcPeeringConnectionOptionsInput {
  46667. s.RequesterPeeringConnectionOptions = v
  46668. return s
  46669. }
  46670. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  46671. func (s *ModifyVpcPeeringConnectionOptionsInput) SetVpcPeeringConnectionId(v string) *ModifyVpcPeeringConnectionOptionsInput {
  46672. s.VpcPeeringConnectionId = &v
  46673. return s
  46674. }
  46675. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcPeeringConnectionOptionsResult
  46676. type ModifyVpcPeeringConnectionOptionsOutput struct {
  46677. _ struct{} `type:"structure"`
  46678. // Information about the VPC peering connection options for the accepter VPC.
  46679. AccepterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"accepterPeeringConnectionOptions" type:"structure"`
  46680. // Information about the VPC peering connection options for the requester VPC.
  46681. RequesterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"requesterPeeringConnectionOptions" type:"structure"`
  46682. }
  46683. // String returns the string representation
  46684. func (s ModifyVpcPeeringConnectionOptionsOutput) String() string {
  46685. return awsutil.Prettify(s)
  46686. }
  46687. // GoString returns the string representation
  46688. func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string {
  46689. return s.String()
  46690. }
  46691. // SetAccepterPeeringConnectionOptions sets the AccepterPeeringConnectionOptions field's value.
  46692. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetAccepterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  46693. s.AccepterPeeringConnectionOptions = v
  46694. return s
  46695. }
  46696. // SetRequesterPeeringConnectionOptions sets the RequesterPeeringConnectionOptions field's value.
  46697. func (s *ModifyVpcPeeringConnectionOptionsOutput) SetRequesterPeeringConnectionOptions(v *PeeringConnectionOptions) *ModifyVpcPeeringConnectionOptionsOutput {
  46698. s.RequesterPeeringConnectionOptions = v
  46699. return s
  46700. }
  46701. // Contains the parameters for ModifyVpcTenancy.
  46702. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancyRequest
  46703. type ModifyVpcTenancyInput struct {
  46704. _ struct{} `type:"structure"`
  46705. // Checks whether you have the required permissions for the operation, without
  46706. // actually making the request, and provides an error response. If you have
  46707. // the required permissions, the error response is DryRunOperation. Otherwise,
  46708. // it is UnauthorizedOperation.
  46709. DryRun *bool `type:"boolean"`
  46710. // The instance tenancy attribute for the VPC.
  46711. //
  46712. // InstanceTenancy is a required field
  46713. InstanceTenancy *string `type:"string" required:"true" enum:"VpcTenancy"`
  46714. // The ID of the VPC.
  46715. //
  46716. // VpcId is a required field
  46717. VpcId *string `type:"string" required:"true"`
  46718. }
  46719. // String returns the string representation
  46720. func (s ModifyVpcTenancyInput) String() string {
  46721. return awsutil.Prettify(s)
  46722. }
  46723. // GoString returns the string representation
  46724. func (s ModifyVpcTenancyInput) GoString() string {
  46725. return s.String()
  46726. }
  46727. // Validate inspects the fields of the type to determine if they are valid.
  46728. func (s *ModifyVpcTenancyInput) Validate() error {
  46729. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcTenancyInput"}
  46730. if s.InstanceTenancy == nil {
  46731. invalidParams.Add(request.NewErrParamRequired("InstanceTenancy"))
  46732. }
  46733. if s.VpcId == nil {
  46734. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  46735. }
  46736. if invalidParams.Len() > 0 {
  46737. return invalidParams
  46738. }
  46739. return nil
  46740. }
  46741. // SetDryRun sets the DryRun field's value.
  46742. func (s *ModifyVpcTenancyInput) SetDryRun(v bool) *ModifyVpcTenancyInput {
  46743. s.DryRun = &v
  46744. return s
  46745. }
  46746. // SetInstanceTenancy sets the InstanceTenancy field's value.
  46747. func (s *ModifyVpcTenancyInput) SetInstanceTenancy(v string) *ModifyVpcTenancyInput {
  46748. s.InstanceTenancy = &v
  46749. return s
  46750. }
  46751. // SetVpcId sets the VpcId field's value.
  46752. func (s *ModifyVpcTenancyInput) SetVpcId(v string) *ModifyVpcTenancyInput {
  46753. s.VpcId = &v
  46754. return s
  46755. }
  46756. // Contains the output of ModifyVpcTenancy.
  46757. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcTenancyResult
  46758. type ModifyVpcTenancyOutput struct {
  46759. _ struct{} `type:"structure"`
  46760. // Returns true if the request succeeds; otherwise, returns an error.
  46761. ReturnValue *bool `locationName:"return" type:"boolean"`
  46762. }
  46763. // String returns the string representation
  46764. func (s ModifyVpcTenancyOutput) String() string {
  46765. return awsutil.Prettify(s)
  46766. }
  46767. // GoString returns the string representation
  46768. func (s ModifyVpcTenancyOutput) GoString() string {
  46769. return s.String()
  46770. }
  46771. // SetReturnValue sets the ReturnValue field's value.
  46772. func (s *ModifyVpcTenancyOutput) SetReturnValue(v bool) *ModifyVpcTenancyOutput {
  46773. s.ReturnValue = &v
  46774. return s
  46775. }
  46776. // Contains the parameters for MonitorInstances.
  46777. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstancesRequest
  46778. type MonitorInstancesInput struct {
  46779. _ struct{} `type:"structure"`
  46780. // Checks whether you have the required permissions for the action, without
  46781. // actually making the request, and provides an error response. If you have
  46782. // the required permissions, the error response is DryRunOperation. Otherwise,
  46783. // it is UnauthorizedOperation.
  46784. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46785. // One or more instance IDs.
  46786. //
  46787. // InstanceIds is a required field
  46788. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  46789. }
  46790. // String returns the string representation
  46791. func (s MonitorInstancesInput) String() string {
  46792. return awsutil.Prettify(s)
  46793. }
  46794. // GoString returns the string representation
  46795. func (s MonitorInstancesInput) GoString() string {
  46796. return s.String()
  46797. }
  46798. // Validate inspects the fields of the type to determine if they are valid.
  46799. func (s *MonitorInstancesInput) Validate() error {
  46800. invalidParams := request.ErrInvalidParams{Context: "MonitorInstancesInput"}
  46801. if s.InstanceIds == nil {
  46802. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  46803. }
  46804. if invalidParams.Len() > 0 {
  46805. return invalidParams
  46806. }
  46807. return nil
  46808. }
  46809. // SetDryRun sets the DryRun field's value.
  46810. func (s *MonitorInstancesInput) SetDryRun(v bool) *MonitorInstancesInput {
  46811. s.DryRun = &v
  46812. return s
  46813. }
  46814. // SetInstanceIds sets the InstanceIds field's value.
  46815. func (s *MonitorInstancesInput) SetInstanceIds(v []*string) *MonitorInstancesInput {
  46816. s.InstanceIds = v
  46817. return s
  46818. }
  46819. // Contains the output of MonitorInstances.
  46820. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MonitorInstancesResult
  46821. type MonitorInstancesOutput struct {
  46822. _ struct{} `type:"structure"`
  46823. // The monitoring information.
  46824. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  46825. }
  46826. // String returns the string representation
  46827. func (s MonitorInstancesOutput) String() string {
  46828. return awsutil.Prettify(s)
  46829. }
  46830. // GoString returns the string representation
  46831. func (s MonitorInstancesOutput) GoString() string {
  46832. return s.String()
  46833. }
  46834. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  46835. func (s *MonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *MonitorInstancesOutput {
  46836. s.InstanceMonitorings = v
  46837. return s
  46838. }
  46839. // Describes the monitoring of an instance.
  46840. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Monitoring
  46841. type Monitoring struct {
  46842. _ struct{} `type:"structure"`
  46843. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  46844. // is enabled.
  46845. State *string `locationName:"state" type:"string" enum:"MonitoringState"`
  46846. }
  46847. // String returns the string representation
  46848. func (s Monitoring) String() string {
  46849. return awsutil.Prettify(s)
  46850. }
  46851. // GoString returns the string representation
  46852. func (s Monitoring) GoString() string {
  46853. return s.String()
  46854. }
  46855. // SetState sets the State field's value.
  46856. func (s *Monitoring) SetState(v string) *Monitoring {
  46857. s.State = &v
  46858. return s
  46859. }
  46860. // Contains the parameters for MoveAddressToVpc.
  46861. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpcRequest
  46862. type MoveAddressToVpcInput struct {
  46863. _ struct{} `type:"structure"`
  46864. // Checks whether you have the required permissions for the action, without
  46865. // actually making the request, and provides an error response. If you have
  46866. // the required permissions, the error response is DryRunOperation. Otherwise,
  46867. // it is UnauthorizedOperation.
  46868. DryRun *bool `locationName:"dryRun" type:"boolean"`
  46869. // The Elastic IP address.
  46870. //
  46871. // PublicIp is a required field
  46872. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  46873. }
  46874. // String returns the string representation
  46875. func (s MoveAddressToVpcInput) String() string {
  46876. return awsutil.Prettify(s)
  46877. }
  46878. // GoString returns the string representation
  46879. func (s MoveAddressToVpcInput) GoString() string {
  46880. return s.String()
  46881. }
  46882. // Validate inspects the fields of the type to determine if they are valid.
  46883. func (s *MoveAddressToVpcInput) Validate() error {
  46884. invalidParams := request.ErrInvalidParams{Context: "MoveAddressToVpcInput"}
  46885. if s.PublicIp == nil {
  46886. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  46887. }
  46888. if invalidParams.Len() > 0 {
  46889. return invalidParams
  46890. }
  46891. return nil
  46892. }
  46893. // SetDryRun sets the DryRun field's value.
  46894. func (s *MoveAddressToVpcInput) SetDryRun(v bool) *MoveAddressToVpcInput {
  46895. s.DryRun = &v
  46896. return s
  46897. }
  46898. // SetPublicIp sets the PublicIp field's value.
  46899. func (s *MoveAddressToVpcInput) SetPublicIp(v string) *MoveAddressToVpcInput {
  46900. s.PublicIp = &v
  46901. return s
  46902. }
  46903. // Contains the output of MoveAddressToVpc.
  46904. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveAddressToVpcResult
  46905. type MoveAddressToVpcOutput struct {
  46906. _ struct{} `type:"structure"`
  46907. // The allocation ID for the Elastic IP address.
  46908. AllocationId *string `locationName:"allocationId" type:"string"`
  46909. // The status of the move of the IP address.
  46910. Status *string `locationName:"status" type:"string" enum:"Status"`
  46911. }
  46912. // String returns the string representation
  46913. func (s MoveAddressToVpcOutput) String() string {
  46914. return awsutil.Prettify(s)
  46915. }
  46916. // GoString returns the string representation
  46917. func (s MoveAddressToVpcOutput) GoString() string {
  46918. return s.String()
  46919. }
  46920. // SetAllocationId sets the AllocationId field's value.
  46921. func (s *MoveAddressToVpcOutput) SetAllocationId(v string) *MoveAddressToVpcOutput {
  46922. s.AllocationId = &v
  46923. return s
  46924. }
  46925. // SetStatus sets the Status field's value.
  46926. func (s *MoveAddressToVpcOutput) SetStatus(v string) *MoveAddressToVpcOutput {
  46927. s.Status = &v
  46928. return s
  46929. }
  46930. // Describes the status of a moving Elastic IP address.
  46931. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MovingAddressStatus
  46932. type MovingAddressStatus struct {
  46933. _ struct{} `type:"structure"`
  46934. // The status of the Elastic IP address that's being moved to the EC2-VPC platform,
  46935. // or restored to the EC2-Classic platform.
  46936. MoveStatus *string `locationName:"moveStatus" type:"string" enum:"MoveStatus"`
  46937. // The Elastic IP address.
  46938. PublicIp *string `locationName:"publicIp" type:"string"`
  46939. }
  46940. // String returns the string representation
  46941. func (s MovingAddressStatus) String() string {
  46942. return awsutil.Prettify(s)
  46943. }
  46944. // GoString returns the string representation
  46945. func (s MovingAddressStatus) GoString() string {
  46946. return s.String()
  46947. }
  46948. // SetMoveStatus sets the MoveStatus field's value.
  46949. func (s *MovingAddressStatus) SetMoveStatus(v string) *MovingAddressStatus {
  46950. s.MoveStatus = &v
  46951. return s
  46952. }
  46953. // SetPublicIp sets the PublicIp field's value.
  46954. func (s *MovingAddressStatus) SetPublicIp(v string) *MovingAddressStatus {
  46955. s.PublicIp = &v
  46956. return s
  46957. }
  46958. // Describes a NAT gateway.
  46959. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGateway
  46960. type NatGateway struct {
  46961. _ struct{} `type:"structure"`
  46962. // The date and time the NAT gateway was created.
  46963. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  46964. // The date and time the NAT gateway was deleted, if applicable.
  46965. DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp" timestampFormat:"iso8601"`
  46966. // If the NAT gateway could not be created, specifies the error code for the
  46967. // failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound
  46968. // | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)
  46969. FailureCode *string `locationName:"failureCode" type:"string"`
  46970. // If the NAT gateway could not be created, specifies the error message for
  46971. // the failure, that corresponds to the error code.
  46972. //
  46973. // * For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free
  46974. // addresses to create this NAT gateway"
  46975. //
  46976. // * For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway
  46977. // attached"
  46978. //
  46979. // * For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx
  46980. // could not be associated with this NAT gateway"
  46981. //
  46982. // * For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx
  46983. // is already associated"
  46984. //
  46985. // * For InternalError: "Network interface eni-xxxxxxxx, created and used
  46986. // internally by this NAT gateway is in an invalid state. Please try again."
  46987. //
  46988. // * For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx
  46989. // does not exist or could not be found."
  46990. FailureMessage *string `locationName:"failureMessage" type:"string"`
  46991. // Information about the IP addresses and network interface associated with
  46992. // the NAT gateway.
  46993. NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"`
  46994. // The ID of the NAT gateway.
  46995. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  46996. // Reserved. If you need to sustain traffic greater than the documented limits
  46997. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  46998. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  46999. ProvisionedBandwidth *ProvisionedBandwidth `locationName:"provisionedBandwidth" type:"structure"`
  47000. // The state of the NAT gateway.
  47001. //
  47002. // * pending: The NAT gateway is being created and is not ready to process
  47003. // traffic.
  47004. //
  47005. // * failed: The NAT gateway could not be created. Check the failureCode
  47006. // and failureMessage fields for the reason.
  47007. //
  47008. // * available: The NAT gateway is able to process traffic. This status remains
  47009. // until you delete the NAT gateway, and does not indicate the health of
  47010. // the NAT gateway.
  47011. //
  47012. // * deleting: The NAT gateway is in the process of being terminated and
  47013. // may still be processing traffic.
  47014. //
  47015. // * deleted: The NAT gateway has been terminated and is no longer processing
  47016. // traffic.
  47017. State *string `locationName:"state" type:"string" enum:"NatGatewayState"`
  47018. // The ID of the subnet in which the NAT gateway is located.
  47019. SubnetId *string `locationName:"subnetId" type:"string"`
  47020. // The tags for the NAT gateway.
  47021. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  47022. // The ID of the VPC in which the NAT gateway is located.
  47023. VpcId *string `locationName:"vpcId" type:"string"`
  47024. }
  47025. // String returns the string representation
  47026. func (s NatGateway) String() string {
  47027. return awsutil.Prettify(s)
  47028. }
  47029. // GoString returns the string representation
  47030. func (s NatGateway) GoString() string {
  47031. return s.String()
  47032. }
  47033. // SetCreateTime sets the CreateTime field's value.
  47034. func (s *NatGateway) SetCreateTime(v time.Time) *NatGateway {
  47035. s.CreateTime = &v
  47036. return s
  47037. }
  47038. // SetDeleteTime sets the DeleteTime field's value.
  47039. func (s *NatGateway) SetDeleteTime(v time.Time) *NatGateway {
  47040. s.DeleteTime = &v
  47041. return s
  47042. }
  47043. // SetFailureCode sets the FailureCode field's value.
  47044. func (s *NatGateway) SetFailureCode(v string) *NatGateway {
  47045. s.FailureCode = &v
  47046. return s
  47047. }
  47048. // SetFailureMessage sets the FailureMessage field's value.
  47049. func (s *NatGateway) SetFailureMessage(v string) *NatGateway {
  47050. s.FailureMessage = &v
  47051. return s
  47052. }
  47053. // SetNatGatewayAddresses sets the NatGatewayAddresses field's value.
  47054. func (s *NatGateway) SetNatGatewayAddresses(v []*NatGatewayAddress) *NatGateway {
  47055. s.NatGatewayAddresses = v
  47056. return s
  47057. }
  47058. // SetNatGatewayId sets the NatGatewayId field's value.
  47059. func (s *NatGateway) SetNatGatewayId(v string) *NatGateway {
  47060. s.NatGatewayId = &v
  47061. return s
  47062. }
  47063. // SetProvisionedBandwidth sets the ProvisionedBandwidth field's value.
  47064. func (s *NatGateway) SetProvisionedBandwidth(v *ProvisionedBandwidth) *NatGateway {
  47065. s.ProvisionedBandwidth = v
  47066. return s
  47067. }
  47068. // SetState sets the State field's value.
  47069. func (s *NatGateway) SetState(v string) *NatGateway {
  47070. s.State = &v
  47071. return s
  47072. }
  47073. // SetSubnetId sets the SubnetId field's value.
  47074. func (s *NatGateway) SetSubnetId(v string) *NatGateway {
  47075. s.SubnetId = &v
  47076. return s
  47077. }
  47078. // SetTags sets the Tags field's value.
  47079. func (s *NatGateway) SetTags(v []*Tag) *NatGateway {
  47080. s.Tags = v
  47081. return s
  47082. }
  47083. // SetVpcId sets the VpcId field's value.
  47084. func (s *NatGateway) SetVpcId(v string) *NatGateway {
  47085. s.VpcId = &v
  47086. return s
  47087. }
  47088. // Describes the IP addresses and network interface associated with a NAT gateway.
  47089. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGatewayAddress
  47090. type NatGatewayAddress struct {
  47091. _ struct{} `type:"structure"`
  47092. // The allocation ID of the Elastic IP address that's associated with the NAT
  47093. // gateway.
  47094. AllocationId *string `locationName:"allocationId" type:"string"`
  47095. // The ID of the network interface associated with the NAT gateway.
  47096. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  47097. // The private IP address associated with the Elastic IP address.
  47098. PrivateIp *string `locationName:"privateIp" type:"string"`
  47099. // The Elastic IP address associated with the NAT gateway.
  47100. PublicIp *string `locationName:"publicIp" type:"string"`
  47101. }
  47102. // String returns the string representation
  47103. func (s NatGatewayAddress) String() string {
  47104. return awsutil.Prettify(s)
  47105. }
  47106. // GoString returns the string representation
  47107. func (s NatGatewayAddress) GoString() string {
  47108. return s.String()
  47109. }
  47110. // SetAllocationId sets the AllocationId field's value.
  47111. func (s *NatGatewayAddress) SetAllocationId(v string) *NatGatewayAddress {
  47112. s.AllocationId = &v
  47113. return s
  47114. }
  47115. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  47116. func (s *NatGatewayAddress) SetNetworkInterfaceId(v string) *NatGatewayAddress {
  47117. s.NetworkInterfaceId = &v
  47118. return s
  47119. }
  47120. // SetPrivateIp sets the PrivateIp field's value.
  47121. func (s *NatGatewayAddress) SetPrivateIp(v string) *NatGatewayAddress {
  47122. s.PrivateIp = &v
  47123. return s
  47124. }
  47125. // SetPublicIp sets the PublicIp field's value.
  47126. func (s *NatGatewayAddress) SetPublicIp(v string) *NatGatewayAddress {
  47127. s.PublicIp = &v
  47128. return s
  47129. }
  47130. // Describes a network ACL.
  47131. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAcl
  47132. type NetworkAcl struct {
  47133. _ struct{} `type:"structure"`
  47134. // Any associations between the network ACL and one or more subnets
  47135. Associations []*NetworkAclAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  47136. // One or more entries (rules) in the network ACL.
  47137. Entries []*NetworkAclEntry `locationName:"entrySet" locationNameList:"item" type:"list"`
  47138. // Indicates whether this is the default network ACL for the VPC.
  47139. IsDefault *bool `locationName:"default" type:"boolean"`
  47140. // The ID of the network ACL.
  47141. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  47142. // Any tags assigned to the network ACL.
  47143. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  47144. // The ID of the VPC for the network ACL.
  47145. VpcId *string `locationName:"vpcId" type:"string"`
  47146. }
  47147. // String returns the string representation
  47148. func (s NetworkAcl) String() string {
  47149. return awsutil.Prettify(s)
  47150. }
  47151. // GoString returns the string representation
  47152. func (s NetworkAcl) GoString() string {
  47153. return s.String()
  47154. }
  47155. // SetAssociations sets the Associations field's value.
  47156. func (s *NetworkAcl) SetAssociations(v []*NetworkAclAssociation) *NetworkAcl {
  47157. s.Associations = v
  47158. return s
  47159. }
  47160. // SetEntries sets the Entries field's value.
  47161. func (s *NetworkAcl) SetEntries(v []*NetworkAclEntry) *NetworkAcl {
  47162. s.Entries = v
  47163. return s
  47164. }
  47165. // SetIsDefault sets the IsDefault field's value.
  47166. func (s *NetworkAcl) SetIsDefault(v bool) *NetworkAcl {
  47167. s.IsDefault = &v
  47168. return s
  47169. }
  47170. // SetNetworkAclId sets the NetworkAclId field's value.
  47171. func (s *NetworkAcl) SetNetworkAclId(v string) *NetworkAcl {
  47172. s.NetworkAclId = &v
  47173. return s
  47174. }
  47175. // SetTags sets the Tags field's value.
  47176. func (s *NetworkAcl) SetTags(v []*Tag) *NetworkAcl {
  47177. s.Tags = v
  47178. return s
  47179. }
  47180. // SetVpcId sets the VpcId field's value.
  47181. func (s *NetworkAcl) SetVpcId(v string) *NetworkAcl {
  47182. s.VpcId = &v
  47183. return s
  47184. }
  47185. // Describes an association between a network ACL and a subnet.
  47186. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAclAssociation
  47187. type NetworkAclAssociation struct {
  47188. _ struct{} `type:"structure"`
  47189. // The ID of the association between a network ACL and a subnet.
  47190. NetworkAclAssociationId *string `locationName:"networkAclAssociationId" type:"string"`
  47191. // The ID of the network ACL.
  47192. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  47193. // The ID of the subnet.
  47194. SubnetId *string `locationName:"subnetId" type:"string"`
  47195. }
  47196. // String returns the string representation
  47197. func (s NetworkAclAssociation) String() string {
  47198. return awsutil.Prettify(s)
  47199. }
  47200. // GoString returns the string representation
  47201. func (s NetworkAclAssociation) GoString() string {
  47202. return s.String()
  47203. }
  47204. // SetNetworkAclAssociationId sets the NetworkAclAssociationId field's value.
  47205. func (s *NetworkAclAssociation) SetNetworkAclAssociationId(v string) *NetworkAclAssociation {
  47206. s.NetworkAclAssociationId = &v
  47207. return s
  47208. }
  47209. // SetNetworkAclId sets the NetworkAclId field's value.
  47210. func (s *NetworkAclAssociation) SetNetworkAclId(v string) *NetworkAclAssociation {
  47211. s.NetworkAclId = &v
  47212. return s
  47213. }
  47214. // SetSubnetId sets the SubnetId field's value.
  47215. func (s *NetworkAclAssociation) SetSubnetId(v string) *NetworkAclAssociation {
  47216. s.SubnetId = &v
  47217. return s
  47218. }
  47219. // Describes an entry in a network ACL.
  47220. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkAclEntry
  47221. type NetworkAclEntry struct {
  47222. _ struct{} `type:"structure"`
  47223. // The IPv4 network range to allow or deny, in CIDR notation.
  47224. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  47225. // Indicates whether the rule is an egress rule (applied to traffic leaving
  47226. // the subnet).
  47227. Egress *bool `locationName:"egress" type:"boolean"`
  47228. // ICMP protocol: The ICMP type and code.
  47229. IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"`
  47230. // The IPv6 network range to allow or deny, in CIDR notation.
  47231. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  47232. // TCP or UDP protocols: The range of ports the rule applies to.
  47233. PortRange *PortRange `locationName:"portRange" type:"structure"`
  47234. // The protocol. A value of -1 means all protocols.
  47235. Protocol *string `locationName:"protocol" type:"string"`
  47236. // Indicates whether to allow or deny the traffic that matches the rule.
  47237. RuleAction *string `locationName:"ruleAction" type:"string" enum:"RuleAction"`
  47238. // The rule number for the entry. ACL entries are processed in ascending order
  47239. // by rule number.
  47240. RuleNumber *int64 `locationName:"ruleNumber" type:"integer"`
  47241. }
  47242. // String returns the string representation
  47243. func (s NetworkAclEntry) String() string {
  47244. return awsutil.Prettify(s)
  47245. }
  47246. // GoString returns the string representation
  47247. func (s NetworkAclEntry) GoString() string {
  47248. return s.String()
  47249. }
  47250. // SetCidrBlock sets the CidrBlock field's value.
  47251. func (s *NetworkAclEntry) SetCidrBlock(v string) *NetworkAclEntry {
  47252. s.CidrBlock = &v
  47253. return s
  47254. }
  47255. // SetEgress sets the Egress field's value.
  47256. func (s *NetworkAclEntry) SetEgress(v bool) *NetworkAclEntry {
  47257. s.Egress = &v
  47258. return s
  47259. }
  47260. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  47261. func (s *NetworkAclEntry) SetIcmpTypeCode(v *IcmpTypeCode) *NetworkAclEntry {
  47262. s.IcmpTypeCode = v
  47263. return s
  47264. }
  47265. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  47266. func (s *NetworkAclEntry) SetIpv6CidrBlock(v string) *NetworkAclEntry {
  47267. s.Ipv6CidrBlock = &v
  47268. return s
  47269. }
  47270. // SetPortRange sets the PortRange field's value.
  47271. func (s *NetworkAclEntry) SetPortRange(v *PortRange) *NetworkAclEntry {
  47272. s.PortRange = v
  47273. return s
  47274. }
  47275. // SetProtocol sets the Protocol field's value.
  47276. func (s *NetworkAclEntry) SetProtocol(v string) *NetworkAclEntry {
  47277. s.Protocol = &v
  47278. return s
  47279. }
  47280. // SetRuleAction sets the RuleAction field's value.
  47281. func (s *NetworkAclEntry) SetRuleAction(v string) *NetworkAclEntry {
  47282. s.RuleAction = &v
  47283. return s
  47284. }
  47285. // SetRuleNumber sets the RuleNumber field's value.
  47286. func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry {
  47287. s.RuleNumber = &v
  47288. return s
  47289. }
  47290. // Describes a network interface.
  47291. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterface
  47292. type NetworkInterface struct {
  47293. _ struct{} `type:"structure"`
  47294. // The association information for an Elastic IP address (IPv4) associated with
  47295. // the network interface.
  47296. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  47297. // The network interface attachment.
  47298. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  47299. // The Availability Zone.
  47300. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  47301. // A description.
  47302. Description *string `locationName:"description" type:"string"`
  47303. // Any security groups for the network interface.
  47304. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  47305. // The type of interface.
  47306. InterfaceType *string `locationName:"interfaceType" type:"string" enum:"NetworkInterfaceType"`
  47307. // The IPv6 addresses associated with the network interface.
  47308. Ipv6Addresses []*NetworkInterfaceIpv6Address `locationName:"ipv6AddressesSet" locationNameList:"item" type:"list"`
  47309. // The MAC address.
  47310. MacAddress *string `locationName:"macAddress" type:"string"`
  47311. // The ID of the network interface.
  47312. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  47313. // The AWS account ID of the owner of the network interface.
  47314. OwnerId *string `locationName:"ownerId" type:"string"`
  47315. // The private DNS name.
  47316. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  47317. // The IPv4 address of the network interface within the subnet.
  47318. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  47319. // The private IPv4 addresses associated with the network interface.
  47320. PrivateIpAddresses []*NetworkInterfacePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  47321. // The ID of the entity that launched the instance on your behalf (for example,
  47322. // AWS Management Console or Auto Scaling).
  47323. RequesterId *string `locationName:"requesterId" type:"string"`
  47324. // Indicates whether the network interface is being managed by AWS.
  47325. RequesterManaged *bool `locationName:"requesterManaged" type:"boolean"`
  47326. // Indicates whether traffic to or from the instance is validated.
  47327. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  47328. // The status of the network interface.
  47329. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  47330. // The ID of the subnet.
  47331. SubnetId *string `locationName:"subnetId" type:"string"`
  47332. // Any tags assigned to the network interface.
  47333. TagSet []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  47334. // The ID of the VPC.
  47335. VpcId *string `locationName:"vpcId" type:"string"`
  47336. }
  47337. // String returns the string representation
  47338. func (s NetworkInterface) String() string {
  47339. return awsutil.Prettify(s)
  47340. }
  47341. // GoString returns the string representation
  47342. func (s NetworkInterface) GoString() string {
  47343. return s.String()
  47344. }
  47345. // SetAssociation sets the Association field's value.
  47346. func (s *NetworkInterface) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterface {
  47347. s.Association = v
  47348. return s
  47349. }
  47350. // SetAttachment sets the Attachment field's value.
  47351. func (s *NetworkInterface) SetAttachment(v *NetworkInterfaceAttachment) *NetworkInterface {
  47352. s.Attachment = v
  47353. return s
  47354. }
  47355. // SetAvailabilityZone sets the AvailabilityZone field's value.
  47356. func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface {
  47357. s.AvailabilityZone = &v
  47358. return s
  47359. }
  47360. // SetDescription sets the Description field's value.
  47361. func (s *NetworkInterface) SetDescription(v string) *NetworkInterface {
  47362. s.Description = &v
  47363. return s
  47364. }
  47365. // SetGroups sets the Groups field's value.
  47366. func (s *NetworkInterface) SetGroups(v []*GroupIdentifier) *NetworkInterface {
  47367. s.Groups = v
  47368. return s
  47369. }
  47370. // SetInterfaceType sets the InterfaceType field's value.
  47371. func (s *NetworkInterface) SetInterfaceType(v string) *NetworkInterface {
  47372. s.InterfaceType = &v
  47373. return s
  47374. }
  47375. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  47376. func (s *NetworkInterface) SetIpv6Addresses(v []*NetworkInterfaceIpv6Address) *NetworkInterface {
  47377. s.Ipv6Addresses = v
  47378. return s
  47379. }
  47380. // SetMacAddress sets the MacAddress field's value.
  47381. func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface {
  47382. s.MacAddress = &v
  47383. return s
  47384. }
  47385. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  47386. func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface {
  47387. s.NetworkInterfaceId = &v
  47388. return s
  47389. }
  47390. // SetOwnerId sets the OwnerId field's value.
  47391. func (s *NetworkInterface) SetOwnerId(v string) *NetworkInterface {
  47392. s.OwnerId = &v
  47393. return s
  47394. }
  47395. // SetPrivateDnsName sets the PrivateDnsName field's value.
  47396. func (s *NetworkInterface) SetPrivateDnsName(v string) *NetworkInterface {
  47397. s.PrivateDnsName = &v
  47398. return s
  47399. }
  47400. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  47401. func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface {
  47402. s.PrivateIpAddress = &v
  47403. return s
  47404. }
  47405. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  47406. func (s *NetworkInterface) SetPrivateIpAddresses(v []*NetworkInterfacePrivateIpAddress) *NetworkInterface {
  47407. s.PrivateIpAddresses = v
  47408. return s
  47409. }
  47410. // SetRequesterId sets the RequesterId field's value.
  47411. func (s *NetworkInterface) SetRequesterId(v string) *NetworkInterface {
  47412. s.RequesterId = &v
  47413. return s
  47414. }
  47415. // SetRequesterManaged sets the RequesterManaged field's value.
  47416. func (s *NetworkInterface) SetRequesterManaged(v bool) *NetworkInterface {
  47417. s.RequesterManaged = &v
  47418. return s
  47419. }
  47420. // SetSourceDestCheck sets the SourceDestCheck field's value.
  47421. func (s *NetworkInterface) SetSourceDestCheck(v bool) *NetworkInterface {
  47422. s.SourceDestCheck = &v
  47423. return s
  47424. }
  47425. // SetStatus sets the Status field's value.
  47426. func (s *NetworkInterface) SetStatus(v string) *NetworkInterface {
  47427. s.Status = &v
  47428. return s
  47429. }
  47430. // SetSubnetId sets the SubnetId field's value.
  47431. func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface {
  47432. s.SubnetId = &v
  47433. return s
  47434. }
  47435. // SetTagSet sets the TagSet field's value.
  47436. func (s *NetworkInterface) SetTagSet(v []*Tag) *NetworkInterface {
  47437. s.TagSet = v
  47438. return s
  47439. }
  47440. // SetVpcId sets the VpcId field's value.
  47441. func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface {
  47442. s.VpcId = &v
  47443. return s
  47444. }
  47445. // Describes association information for an Elastic IP address (IPv4 only).
  47446. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAssociation
  47447. type NetworkInterfaceAssociation struct {
  47448. _ struct{} `type:"structure"`
  47449. // The allocation ID.
  47450. AllocationId *string `locationName:"allocationId" type:"string"`
  47451. // The association ID.
  47452. AssociationId *string `locationName:"associationId" type:"string"`
  47453. // The ID of the Elastic IP address owner.
  47454. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  47455. // The public DNS name.
  47456. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  47457. // The address of the Elastic IP address bound to the network interface.
  47458. PublicIp *string `locationName:"publicIp" type:"string"`
  47459. }
  47460. // String returns the string representation
  47461. func (s NetworkInterfaceAssociation) String() string {
  47462. return awsutil.Prettify(s)
  47463. }
  47464. // GoString returns the string representation
  47465. func (s NetworkInterfaceAssociation) GoString() string {
  47466. return s.String()
  47467. }
  47468. // SetAllocationId sets the AllocationId field's value.
  47469. func (s *NetworkInterfaceAssociation) SetAllocationId(v string) *NetworkInterfaceAssociation {
  47470. s.AllocationId = &v
  47471. return s
  47472. }
  47473. // SetAssociationId sets the AssociationId field's value.
  47474. func (s *NetworkInterfaceAssociation) SetAssociationId(v string) *NetworkInterfaceAssociation {
  47475. s.AssociationId = &v
  47476. return s
  47477. }
  47478. // SetIpOwnerId sets the IpOwnerId field's value.
  47479. func (s *NetworkInterfaceAssociation) SetIpOwnerId(v string) *NetworkInterfaceAssociation {
  47480. s.IpOwnerId = &v
  47481. return s
  47482. }
  47483. // SetPublicDnsName sets the PublicDnsName field's value.
  47484. func (s *NetworkInterfaceAssociation) SetPublicDnsName(v string) *NetworkInterfaceAssociation {
  47485. s.PublicDnsName = &v
  47486. return s
  47487. }
  47488. // SetPublicIp sets the PublicIp field's value.
  47489. func (s *NetworkInterfaceAssociation) SetPublicIp(v string) *NetworkInterfaceAssociation {
  47490. s.PublicIp = &v
  47491. return s
  47492. }
  47493. // Describes a network interface attachment.
  47494. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAttachment
  47495. type NetworkInterfaceAttachment struct {
  47496. _ struct{} `type:"structure"`
  47497. // The timestamp indicating when the attachment initiated.
  47498. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  47499. // The ID of the network interface attachment.
  47500. AttachmentId *string `locationName:"attachmentId" type:"string"`
  47501. // Indicates whether the network interface is deleted when the instance is terminated.
  47502. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  47503. // The device index of the network interface attachment on the instance.
  47504. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  47505. // The ID of the instance.
  47506. InstanceId *string `locationName:"instanceId" type:"string"`
  47507. // The AWS account ID of the owner of the instance.
  47508. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  47509. // The attachment state.
  47510. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  47511. }
  47512. // String returns the string representation
  47513. func (s NetworkInterfaceAttachment) String() string {
  47514. return awsutil.Prettify(s)
  47515. }
  47516. // GoString returns the string representation
  47517. func (s NetworkInterfaceAttachment) GoString() string {
  47518. return s.String()
  47519. }
  47520. // SetAttachTime sets the AttachTime field's value.
  47521. func (s *NetworkInterfaceAttachment) SetAttachTime(v time.Time) *NetworkInterfaceAttachment {
  47522. s.AttachTime = &v
  47523. return s
  47524. }
  47525. // SetAttachmentId sets the AttachmentId field's value.
  47526. func (s *NetworkInterfaceAttachment) SetAttachmentId(v string) *NetworkInterfaceAttachment {
  47527. s.AttachmentId = &v
  47528. return s
  47529. }
  47530. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  47531. func (s *NetworkInterfaceAttachment) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachment {
  47532. s.DeleteOnTermination = &v
  47533. return s
  47534. }
  47535. // SetDeviceIndex sets the DeviceIndex field's value.
  47536. func (s *NetworkInterfaceAttachment) SetDeviceIndex(v int64) *NetworkInterfaceAttachment {
  47537. s.DeviceIndex = &v
  47538. return s
  47539. }
  47540. // SetInstanceId sets the InstanceId field's value.
  47541. func (s *NetworkInterfaceAttachment) SetInstanceId(v string) *NetworkInterfaceAttachment {
  47542. s.InstanceId = &v
  47543. return s
  47544. }
  47545. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  47546. func (s *NetworkInterfaceAttachment) SetInstanceOwnerId(v string) *NetworkInterfaceAttachment {
  47547. s.InstanceOwnerId = &v
  47548. return s
  47549. }
  47550. // SetStatus sets the Status field's value.
  47551. func (s *NetworkInterfaceAttachment) SetStatus(v string) *NetworkInterfaceAttachment {
  47552. s.Status = &v
  47553. return s
  47554. }
  47555. // Describes an attachment change.
  47556. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceAttachmentChanges
  47557. type NetworkInterfaceAttachmentChanges struct {
  47558. _ struct{} `type:"structure"`
  47559. // The ID of the network interface attachment.
  47560. AttachmentId *string `locationName:"attachmentId" type:"string"`
  47561. // Indicates whether the network interface is deleted when the instance is terminated.
  47562. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  47563. }
  47564. // String returns the string representation
  47565. func (s NetworkInterfaceAttachmentChanges) String() string {
  47566. return awsutil.Prettify(s)
  47567. }
  47568. // GoString returns the string representation
  47569. func (s NetworkInterfaceAttachmentChanges) GoString() string {
  47570. return s.String()
  47571. }
  47572. // SetAttachmentId sets the AttachmentId field's value.
  47573. func (s *NetworkInterfaceAttachmentChanges) SetAttachmentId(v string) *NetworkInterfaceAttachmentChanges {
  47574. s.AttachmentId = &v
  47575. return s
  47576. }
  47577. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  47578. func (s *NetworkInterfaceAttachmentChanges) SetDeleteOnTermination(v bool) *NetworkInterfaceAttachmentChanges {
  47579. s.DeleteOnTermination = &v
  47580. return s
  47581. }
  47582. // Describes an IPv6 address associated with a network interface.
  47583. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceIpv6Address
  47584. type NetworkInterfaceIpv6Address struct {
  47585. _ struct{} `type:"structure"`
  47586. // The IPv6 address.
  47587. Ipv6Address *string `locationName:"ipv6Address" type:"string"`
  47588. }
  47589. // String returns the string representation
  47590. func (s NetworkInterfaceIpv6Address) String() string {
  47591. return awsutil.Prettify(s)
  47592. }
  47593. // GoString returns the string representation
  47594. func (s NetworkInterfaceIpv6Address) GoString() string {
  47595. return s.String()
  47596. }
  47597. // SetIpv6Address sets the Ipv6Address field's value.
  47598. func (s *NetworkInterfaceIpv6Address) SetIpv6Address(v string) *NetworkInterfaceIpv6Address {
  47599. s.Ipv6Address = &v
  47600. return s
  47601. }
  47602. // Describes a permission for a network interface.
  47603. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfacePermission
  47604. type NetworkInterfacePermission struct {
  47605. _ struct{} `type:"structure"`
  47606. // The AWS account ID.
  47607. AwsAccountId *string `locationName:"awsAccountId" type:"string"`
  47608. // The AWS service.
  47609. AwsService *string `locationName:"awsService" type:"string"`
  47610. // The ID of the network interface.
  47611. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  47612. // The ID of the network interface permission.
  47613. NetworkInterfacePermissionId *string `locationName:"networkInterfacePermissionId" type:"string"`
  47614. // The type of permission.
  47615. Permission *string `locationName:"permission" type:"string" enum:"InterfacePermissionType"`
  47616. // Information about the state of the permission.
  47617. PermissionState *NetworkInterfacePermissionState `locationName:"permissionState" type:"structure"`
  47618. }
  47619. // String returns the string representation
  47620. func (s NetworkInterfacePermission) String() string {
  47621. return awsutil.Prettify(s)
  47622. }
  47623. // GoString returns the string representation
  47624. func (s NetworkInterfacePermission) GoString() string {
  47625. return s.String()
  47626. }
  47627. // SetAwsAccountId sets the AwsAccountId field's value.
  47628. func (s *NetworkInterfacePermission) SetAwsAccountId(v string) *NetworkInterfacePermission {
  47629. s.AwsAccountId = &v
  47630. return s
  47631. }
  47632. // SetAwsService sets the AwsService field's value.
  47633. func (s *NetworkInterfacePermission) SetAwsService(v string) *NetworkInterfacePermission {
  47634. s.AwsService = &v
  47635. return s
  47636. }
  47637. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  47638. func (s *NetworkInterfacePermission) SetNetworkInterfaceId(v string) *NetworkInterfacePermission {
  47639. s.NetworkInterfaceId = &v
  47640. return s
  47641. }
  47642. // SetNetworkInterfacePermissionId sets the NetworkInterfacePermissionId field's value.
  47643. func (s *NetworkInterfacePermission) SetNetworkInterfacePermissionId(v string) *NetworkInterfacePermission {
  47644. s.NetworkInterfacePermissionId = &v
  47645. return s
  47646. }
  47647. // SetPermission sets the Permission field's value.
  47648. func (s *NetworkInterfacePermission) SetPermission(v string) *NetworkInterfacePermission {
  47649. s.Permission = &v
  47650. return s
  47651. }
  47652. // SetPermissionState sets the PermissionState field's value.
  47653. func (s *NetworkInterfacePermission) SetPermissionState(v *NetworkInterfacePermissionState) *NetworkInterfacePermission {
  47654. s.PermissionState = v
  47655. return s
  47656. }
  47657. // Describes the state of a network interface permission.
  47658. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfacePermissionState
  47659. type NetworkInterfacePermissionState struct {
  47660. _ struct{} `type:"structure"`
  47661. // The state of the permission.
  47662. State *string `locationName:"state" type:"string" enum:"NetworkInterfacePermissionStateCode"`
  47663. // A status message, if applicable.
  47664. StatusMessage *string `locationName:"statusMessage" type:"string"`
  47665. }
  47666. // String returns the string representation
  47667. func (s NetworkInterfacePermissionState) String() string {
  47668. return awsutil.Prettify(s)
  47669. }
  47670. // GoString returns the string representation
  47671. func (s NetworkInterfacePermissionState) GoString() string {
  47672. return s.String()
  47673. }
  47674. // SetState sets the State field's value.
  47675. func (s *NetworkInterfacePermissionState) SetState(v string) *NetworkInterfacePermissionState {
  47676. s.State = &v
  47677. return s
  47678. }
  47679. // SetStatusMessage sets the StatusMessage field's value.
  47680. func (s *NetworkInterfacePermissionState) SetStatusMessage(v string) *NetworkInterfacePermissionState {
  47681. s.StatusMessage = &v
  47682. return s
  47683. }
  47684. // Describes the private IPv4 address of a network interface.
  47685. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfacePrivateIpAddress
  47686. type NetworkInterfacePrivateIpAddress struct {
  47687. _ struct{} `type:"structure"`
  47688. // The association information for an Elastic IP address (IPv4) associated with
  47689. // the network interface.
  47690. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  47691. // Indicates whether this IPv4 address is the primary private IPv4 address of
  47692. // the network interface.
  47693. Primary *bool `locationName:"primary" type:"boolean"`
  47694. // The private DNS name.
  47695. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  47696. // The private IPv4 address.
  47697. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  47698. }
  47699. // String returns the string representation
  47700. func (s NetworkInterfacePrivateIpAddress) String() string {
  47701. return awsutil.Prettify(s)
  47702. }
  47703. // GoString returns the string representation
  47704. func (s NetworkInterfacePrivateIpAddress) GoString() string {
  47705. return s.String()
  47706. }
  47707. // SetAssociation sets the Association field's value.
  47708. func (s *NetworkInterfacePrivateIpAddress) SetAssociation(v *NetworkInterfaceAssociation) *NetworkInterfacePrivateIpAddress {
  47709. s.Association = v
  47710. return s
  47711. }
  47712. // SetPrimary sets the Primary field's value.
  47713. func (s *NetworkInterfacePrivateIpAddress) SetPrimary(v bool) *NetworkInterfacePrivateIpAddress {
  47714. s.Primary = &v
  47715. return s
  47716. }
  47717. // SetPrivateDnsName sets the PrivateDnsName field's value.
  47718. func (s *NetworkInterfacePrivateIpAddress) SetPrivateDnsName(v string) *NetworkInterfacePrivateIpAddress {
  47719. s.PrivateDnsName = &v
  47720. return s
  47721. }
  47722. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  47723. func (s *NetworkInterfacePrivateIpAddress) SetPrivateIpAddress(v string) *NetworkInterfacePrivateIpAddress {
  47724. s.PrivateIpAddress = &v
  47725. return s
  47726. }
  47727. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NewDhcpConfiguration
  47728. type NewDhcpConfiguration struct {
  47729. _ struct{} `type:"structure"`
  47730. Key *string `locationName:"key" type:"string"`
  47731. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  47732. }
  47733. // String returns the string representation
  47734. func (s NewDhcpConfiguration) String() string {
  47735. return awsutil.Prettify(s)
  47736. }
  47737. // GoString returns the string representation
  47738. func (s NewDhcpConfiguration) GoString() string {
  47739. return s.String()
  47740. }
  47741. // SetKey sets the Key field's value.
  47742. func (s *NewDhcpConfiguration) SetKey(v string) *NewDhcpConfiguration {
  47743. s.Key = &v
  47744. return s
  47745. }
  47746. // SetValues sets the Values field's value.
  47747. func (s *NewDhcpConfiguration) SetValues(v []*string) *NewDhcpConfiguration {
  47748. s.Values = v
  47749. return s
  47750. }
  47751. // Describes the data that identifies an Amazon FPGA image (AFI) on the PCI
  47752. // bus.
  47753. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PciId
  47754. type PciId struct {
  47755. _ struct{} `type:"structure"`
  47756. // The ID of the device.
  47757. DeviceId *string `type:"string"`
  47758. // The ID of the subsystem.
  47759. SubsystemId *string `type:"string"`
  47760. // The ID of the vendor for the subsystem.
  47761. SubsystemVendorId *string `type:"string"`
  47762. // The ID of the vendor.
  47763. VendorId *string `type:"string"`
  47764. }
  47765. // String returns the string representation
  47766. func (s PciId) String() string {
  47767. return awsutil.Prettify(s)
  47768. }
  47769. // GoString returns the string representation
  47770. func (s PciId) GoString() string {
  47771. return s.String()
  47772. }
  47773. // SetDeviceId sets the DeviceId field's value.
  47774. func (s *PciId) SetDeviceId(v string) *PciId {
  47775. s.DeviceId = &v
  47776. return s
  47777. }
  47778. // SetSubsystemId sets the SubsystemId field's value.
  47779. func (s *PciId) SetSubsystemId(v string) *PciId {
  47780. s.SubsystemId = &v
  47781. return s
  47782. }
  47783. // SetSubsystemVendorId sets the SubsystemVendorId field's value.
  47784. func (s *PciId) SetSubsystemVendorId(v string) *PciId {
  47785. s.SubsystemVendorId = &v
  47786. return s
  47787. }
  47788. // SetVendorId sets the VendorId field's value.
  47789. func (s *PciId) SetVendorId(v string) *PciId {
  47790. s.VendorId = &v
  47791. return s
  47792. }
  47793. // Describes the VPC peering connection options.
  47794. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PeeringConnectionOptions
  47795. type PeeringConnectionOptions struct {
  47796. _ struct{} `type:"structure"`
  47797. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  47798. // addresses when queried from instances in the peer VPC.
  47799. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  47800. // If true, enables outbound communication from an EC2-Classic instance that's
  47801. // linked to a local VPC via ClassicLink to instances in a peer VPC.
  47802. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  47803. // If true, enables outbound communication from instances in a local VPC to
  47804. // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
  47805. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  47806. }
  47807. // String returns the string representation
  47808. func (s PeeringConnectionOptions) String() string {
  47809. return awsutil.Prettify(s)
  47810. }
  47811. // GoString returns the string representation
  47812. func (s PeeringConnectionOptions) GoString() string {
  47813. return s.String()
  47814. }
  47815. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  47816. func (s *PeeringConnectionOptions) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptions {
  47817. s.AllowDnsResolutionFromRemoteVpc = &v
  47818. return s
  47819. }
  47820. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  47821. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptions {
  47822. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  47823. return s
  47824. }
  47825. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  47826. func (s *PeeringConnectionOptions) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptions {
  47827. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  47828. return s
  47829. }
  47830. // The VPC peering connection options.
  47831. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PeeringConnectionOptionsRequest
  47832. type PeeringConnectionOptionsRequest struct {
  47833. _ struct{} `type:"structure"`
  47834. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  47835. // addresses when queried from instances in the peer VPC.
  47836. AllowDnsResolutionFromRemoteVpc *bool `type:"boolean"`
  47837. // If true, enables outbound communication from an EC2-Classic instance that's
  47838. // linked to a local VPC via ClassicLink to instances in a peer VPC.
  47839. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean"`
  47840. // If true, enables outbound communication from instances in a local VPC to
  47841. // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
  47842. AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean"`
  47843. }
  47844. // String returns the string representation
  47845. func (s PeeringConnectionOptionsRequest) String() string {
  47846. return awsutil.Prettify(s)
  47847. }
  47848. // GoString returns the string representation
  47849. func (s PeeringConnectionOptionsRequest) GoString() string {
  47850. return s.String()
  47851. }
  47852. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  47853. func (s *PeeringConnectionOptionsRequest) SetAllowDnsResolutionFromRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  47854. s.AllowDnsResolutionFromRemoteVpc = &v
  47855. return s
  47856. }
  47857. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  47858. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *PeeringConnectionOptionsRequest {
  47859. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  47860. return s
  47861. }
  47862. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  47863. func (s *PeeringConnectionOptionsRequest) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *PeeringConnectionOptionsRequest {
  47864. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  47865. return s
  47866. }
  47867. // Describes the placement of an instance.
  47868. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Placement
  47869. type Placement struct {
  47870. _ struct{} `type:"structure"`
  47871. // The affinity setting for the instance on the Dedicated Host. This parameter
  47872. // is not supported for the ImportInstance command.
  47873. Affinity *string `locationName:"affinity" type:"string"`
  47874. // The Availability Zone of the instance.
  47875. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  47876. // The name of the placement group the instance is in (for cluster compute instances).
  47877. GroupName *string `locationName:"groupName" type:"string"`
  47878. // The ID of the Dedicated Host on which the instance resides. This parameter
  47879. // is not supported for the ImportInstance command.
  47880. HostId *string `locationName:"hostId" type:"string"`
  47881. // Reserved for future use.
  47882. SpreadDomain *string `locationName:"spreadDomain" type:"string"`
  47883. // The tenancy of the instance (if the instance is running in a VPC). An instance
  47884. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  47885. // is not supported for the ImportInstance command.
  47886. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  47887. }
  47888. // String returns the string representation
  47889. func (s Placement) String() string {
  47890. return awsutil.Prettify(s)
  47891. }
  47892. // GoString returns the string representation
  47893. func (s Placement) GoString() string {
  47894. return s.String()
  47895. }
  47896. // SetAffinity sets the Affinity field's value.
  47897. func (s *Placement) SetAffinity(v string) *Placement {
  47898. s.Affinity = &v
  47899. return s
  47900. }
  47901. // SetAvailabilityZone sets the AvailabilityZone field's value.
  47902. func (s *Placement) SetAvailabilityZone(v string) *Placement {
  47903. s.AvailabilityZone = &v
  47904. return s
  47905. }
  47906. // SetGroupName sets the GroupName field's value.
  47907. func (s *Placement) SetGroupName(v string) *Placement {
  47908. s.GroupName = &v
  47909. return s
  47910. }
  47911. // SetHostId sets the HostId field's value.
  47912. func (s *Placement) SetHostId(v string) *Placement {
  47913. s.HostId = &v
  47914. return s
  47915. }
  47916. // SetSpreadDomain sets the SpreadDomain field's value.
  47917. func (s *Placement) SetSpreadDomain(v string) *Placement {
  47918. s.SpreadDomain = &v
  47919. return s
  47920. }
  47921. // SetTenancy sets the Tenancy field's value.
  47922. func (s *Placement) SetTenancy(v string) *Placement {
  47923. s.Tenancy = &v
  47924. return s
  47925. }
  47926. // Describes a placement group.
  47927. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PlacementGroup
  47928. type PlacementGroup struct {
  47929. _ struct{} `type:"structure"`
  47930. // The name of the placement group.
  47931. GroupName *string `locationName:"groupName" type:"string"`
  47932. // The state of the placement group.
  47933. State *string `locationName:"state" type:"string" enum:"PlacementGroupState"`
  47934. // The placement strategy.
  47935. Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
  47936. }
  47937. // String returns the string representation
  47938. func (s PlacementGroup) String() string {
  47939. return awsutil.Prettify(s)
  47940. }
  47941. // GoString returns the string representation
  47942. func (s PlacementGroup) GoString() string {
  47943. return s.String()
  47944. }
  47945. // SetGroupName sets the GroupName field's value.
  47946. func (s *PlacementGroup) SetGroupName(v string) *PlacementGroup {
  47947. s.GroupName = &v
  47948. return s
  47949. }
  47950. // SetState sets the State field's value.
  47951. func (s *PlacementGroup) SetState(v string) *PlacementGroup {
  47952. s.State = &v
  47953. return s
  47954. }
  47955. // SetStrategy sets the Strategy field's value.
  47956. func (s *PlacementGroup) SetStrategy(v string) *PlacementGroup {
  47957. s.Strategy = &v
  47958. return s
  47959. }
  47960. // Describes a range of ports.
  47961. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PortRange
  47962. type PortRange struct {
  47963. _ struct{} `type:"structure"`
  47964. // The first port in the range.
  47965. From *int64 `locationName:"from" type:"integer"`
  47966. // The last port in the range.
  47967. To *int64 `locationName:"to" type:"integer"`
  47968. }
  47969. // String returns the string representation
  47970. func (s PortRange) String() string {
  47971. return awsutil.Prettify(s)
  47972. }
  47973. // GoString returns the string representation
  47974. func (s PortRange) GoString() string {
  47975. return s.String()
  47976. }
  47977. // SetFrom sets the From field's value.
  47978. func (s *PortRange) SetFrom(v int64) *PortRange {
  47979. s.From = &v
  47980. return s
  47981. }
  47982. // SetTo sets the To field's value.
  47983. func (s *PortRange) SetTo(v int64) *PortRange {
  47984. s.To = &v
  47985. return s
  47986. }
  47987. // Describes prefixes for AWS services.
  47988. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrefixList
  47989. type PrefixList struct {
  47990. _ struct{} `type:"structure"`
  47991. // The IP address range of the AWS service.
  47992. Cidrs []*string `locationName:"cidrSet" locationNameList:"item" type:"list"`
  47993. // The ID of the prefix.
  47994. PrefixListId *string `locationName:"prefixListId" type:"string"`
  47995. // The name of the prefix.
  47996. PrefixListName *string `locationName:"prefixListName" type:"string"`
  47997. }
  47998. // String returns the string representation
  47999. func (s PrefixList) String() string {
  48000. return awsutil.Prettify(s)
  48001. }
  48002. // GoString returns the string representation
  48003. func (s PrefixList) GoString() string {
  48004. return s.String()
  48005. }
  48006. // SetCidrs sets the Cidrs field's value.
  48007. func (s *PrefixList) SetCidrs(v []*string) *PrefixList {
  48008. s.Cidrs = v
  48009. return s
  48010. }
  48011. // SetPrefixListId sets the PrefixListId field's value.
  48012. func (s *PrefixList) SetPrefixListId(v string) *PrefixList {
  48013. s.PrefixListId = &v
  48014. return s
  48015. }
  48016. // SetPrefixListName sets the PrefixListName field's value.
  48017. func (s *PrefixList) SetPrefixListName(v string) *PrefixList {
  48018. s.PrefixListName = &v
  48019. return s
  48020. }
  48021. // [EC2-VPC only] The ID of the prefix.
  48022. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrefixListId
  48023. type PrefixListId struct {
  48024. _ struct{} `type:"structure"`
  48025. // A description for the security group rule that references this prefix list
  48026. // ID.
  48027. //
  48028. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  48029. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  48030. Description *string `locationName:"description" type:"string"`
  48031. // The ID of the prefix.
  48032. PrefixListId *string `locationName:"prefixListId" type:"string"`
  48033. }
  48034. // String returns the string representation
  48035. func (s PrefixListId) String() string {
  48036. return awsutil.Prettify(s)
  48037. }
  48038. // GoString returns the string representation
  48039. func (s PrefixListId) GoString() string {
  48040. return s.String()
  48041. }
  48042. // SetDescription sets the Description field's value.
  48043. func (s *PrefixListId) SetDescription(v string) *PrefixListId {
  48044. s.Description = &v
  48045. return s
  48046. }
  48047. // SetPrefixListId sets the PrefixListId field's value.
  48048. func (s *PrefixListId) SetPrefixListId(v string) *PrefixListId {
  48049. s.PrefixListId = &v
  48050. return s
  48051. }
  48052. // Describes the price for a Reserved Instance.
  48053. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PriceSchedule
  48054. type PriceSchedule struct {
  48055. _ struct{} `type:"structure"`
  48056. // The current price schedule, as determined by the term remaining for the Reserved
  48057. // Instance in the listing.
  48058. //
  48059. // A specific price schedule is always in effect, but only one price schedule
  48060. // can be active at any time. Take, for example, a Reserved Instance listing
  48061. // that has five months remaining in its term. When you specify price schedules
  48062. // for five months and two months, this means that schedule 1, covering the
  48063. // first three months of the remaining term, will be active during months 5,
  48064. // 4, and 3. Then schedule 2, covering the last two months of the term, will
  48065. // be active for months 2 and 1.
  48066. Active *bool `locationName:"active" type:"boolean"`
  48067. // The currency for transacting the Reserved Instance resale. At this time,
  48068. // the only supported currency is USD.
  48069. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  48070. // The fixed price for the term.
  48071. Price *float64 `locationName:"price" type:"double"`
  48072. // The number of months remaining in the reservation. For example, 2 is the
  48073. // second to the last month before the capacity reservation expires.
  48074. Term *int64 `locationName:"term" type:"long"`
  48075. }
  48076. // String returns the string representation
  48077. func (s PriceSchedule) String() string {
  48078. return awsutil.Prettify(s)
  48079. }
  48080. // GoString returns the string representation
  48081. func (s PriceSchedule) GoString() string {
  48082. return s.String()
  48083. }
  48084. // SetActive sets the Active field's value.
  48085. func (s *PriceSchedule) SetActive(v bool) *PriceSchedule {
  48086. s.Active = &v
  48087. return s
  48088. }
  48089. // SetCurrencyCode sets the CurrencyCode field's value.
  48090. func (s *PriceSchedule) SetCurrencyCode(v string) *PriceSchedule {
  48091. s.CurrencyCode = &v
  48092. return s
  48093. }
  48094. // SetPrice sets the Price field's value.
  48095. func (s *PriceSchedule) SetPrice(v float64) *PriceSchedule {
  48096. s.Price = &v
  48097. return s
  48098. }
  48099. // SetTerm sets the Term field's value.
  48100. func (s *PriceSchedule) SetTerm(v int64) *PriceSchedule {
  48101. s.Term = &v
  48102. return s
  48103. }
  48104. // Describes the price for a Reserved Instance.
  48105. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PriceScheduleSpecification
  48106. type PriceScheduleSpecification struct {
  48107. _ struct{} `type:"structure"`
  48108. // The currency for transacting the Reserved Instance resale. At this time,
  48109. // the only supported currency is USD.
  48110. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  48111. // The fixed price for the term.
  48112. Price *float64 `locationName:"price" type:"double"`
  48113. // The number of months remaining in the reservation. For example, 2 is the
  48114. // second to the last month before the capacity reservation expires.
  48115. Term *int64 `locationName:"term" type:"long"`
  48116. }
  48117. // String returns the string representation
  48118. func (s PriceScheduleSpecification) String() string {
  48119. return awsutil.Prettify(s)
  48120. }
  48121. // GoString returns the string representation
  48122. func (s PriceScheduleSpecification) GoString() string {
  48123. return s.String()
  48124. }
  48125. // SetCurrencyCode sets the CurrencyCode field's value.
  48126. func (s *PriceScheduleSpecification) SetCurrencyCode(v string) *PriceScheduleSpecification {
  48127. s.CurrencyCode = &v
  48128. return s
  48129. }
  48130. // SetPrice sets the Price field's value.
  48131. func (s *PriceScheduleSpecification) SetPrice(v float64) *PriceScheduleSpecification {
  48132. s.Price = &v
  48133. return s
  48134. }
  48135. // SetTerm sets the Term field's value.
  48136. func (s *PriceScheduleSpecification) SetTerm(v int64) *PriceScheduleSpecification {
  48137. s.Term = &v
  48138. return s
  48139. }
  48140. // Describes a Reserved Instance offering.
  48141. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PricingDetail
  48142. type PricingDetail struct {
  48143. _ struct{} `type:"structure"`
  48144. // The number of reservations available for the price.
  48145. Count *int64 `locationName:"count" type:"integer"`
  48146. // The price per instance.
  48147. Price *float64 `locationName:"price" type:"double"`
  48148. }
  48149. // String returns the string representation
  48150. func (s PricingDetail) String() string {
  48151. return awsutil.Prettify(s)
  48152. }
  48153. // GoString returns the string representation
  48154. func (s PricingDetail) GoString() string {
  48155. return s.String()
  48156. }
  48157. // SetCount sets the Count field's value.
  48158. func (s *PricingDetail) SetCount(v int64) *PricingDetail {
  48159. s.Count = &v
  48160. return s
  48161. }
  48162. // SetPrice sets the Price field's value.
  48163. func (s *PricingDetail) SetPrice(v float64) *PricingDetail {
  48164. s.Price = &v
  48165. return s
  48166. }
  48167. // Describes a secondary private IPv4 address for a network interface.
  48168. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PrivateIpAddressSpecification
  48169. type PrivateIpAddressSpecification struct {
  48170. _ struct{} `type:"structure"`
  48171. // Indicates whether the private IPv4 address is the primary private IPv4 address.
  48172. // Only one IPv4 address can be designated as primary.
  48173. Primary *bool `locationName:"primary" type:"boolean"`
  48174. // The private IPv4 addresses.
  48175. //
  48176. // PrivateIpAddress is a required field
  48177. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string" required:"true"`
  48178. }
  48179. // String returns the string representation
  48180. func (s PrivateIpAddressSpecification) String() string {
  48181. return awsutil.Prettify(s)
  48182. }
  48183. // GoString returns the string representation
  48184. func (s PrivateIpAddressSpecification) GoString() string {
  48185. return s.String()
  48186. }
  48187. // Validate inspects the fields of the type to determine if they are valid.
  48188. func (s *PrivateIpAddressSpecification) Validate() error {
  48189. invalidParams := request.ErrInvalidParams{Context: "PrivateIpAddressSpecification"}
  48190. if s.PrivateIpAddress == nil {
  48191. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddress"))
  48192. }
  48193. if invalidParams.Len() > 0 {
  48194. return invalidParams
  48195. }
  48196. return nil
  48197. }
  48198. // SetPrimary sets the Primary field's value.
  48199. func (s *PrivateIpAddressSpecification) SetPrimary(v bool) *PrivateIpAddressSpecification {
  48200. s.Primary = &v
  48201. return s
  48202. }
  48203. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  48204. func (s *PrivateIpAddressSpecification) SetPrivateIpAddress(v string) *PrivateIpAddressSpecification {
  48205. s.PrivateIpAddress = &v
  48206. return s
  48207. }
  48208. // Describes a product code.
  48209. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProductCode
  48210. type ProductCode struct {
  48211. _ struct{} `type:"structure"`
  48212. // The product code.
  48213. ProductCodeId *string `locationName:"productCode" type:"string"`
  48214. // The type of product code.
  48215. ProductCodeType *string `locationName:"type" type:"string" enum:"ProductCodeValues"`
  48216. }
  48217. // String returns the string representation
  48218. func (s ProductCode) String() string {
  48219. return awsutil.Prettify(s)
  48220. }
  48221. // GoString returns the string representation
  48222. func (s ProductCode) GoString() string {
  48223. return s.String()
  48224. }
  48225. // SetProductCodeId sets the ProductCodeId field's value.
  48226. func (s *ProductCode) SetProductCodeId(v string) *ProductCode {
  48227. s.ProductCodeId = &v
  48228. return s
  48229. }
  48230. // SetProductCodeType sets the ProductCodeType field's value.
  48231. func (s *ProductCode) SetProductCodeType(v string) *ProductCode {
  48232. s.ProductCodeType = &v
  48233. return s
  48234. }
  48235. // Describes a virtual private gateway propagating route.
  48236. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PropagatingVgw
  48237. type PropagatingVgw struct {
  48238. _ struct{} `type:"structure"`
  48239. // The ID of the virtual private gateway (VGW).
  48240. GatewayId *string `locationName:"gatewayId" type:"string"`
  48241. }
  48242. // String returns the string representation
  48243. func (s PropagatingVgw) String() string {
  48244. return awsutil.Prettify(s)
  48245. }
  48246. // GoString returns the string representation
  48247. func (s PropagatingVgw) GoString() string {
  48248. return s.String()
  48249. }
  48250. // SetGatewayId sets the GatewayId field's value.
  48251. func (s *PropagatingVgw) SetGatewayId(v string) *PropagatingVgw {
  48252. s.GatewayId = &v
  48253. return s
  48254. }
  48255. // Reserved. If you need to sustain traffic greater than the documented limits
  48256. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  48257. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  48258. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionedBandwidth
  48259. type ProvisionedBandwidth struct {
  48260. _ struct{} `type:"structure"`
  48261. // Reserved. If you need to sustain traffic greater than the documented limits
  48262. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  48263. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  48264. ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp" timestampFormat:"iso8601"`
  48265. // Reserved. If you need to sustain traffic greater than the documented limits
  48266. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  48267. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  48268. Provisioned *string `locationName:"provisioned" type:"string"`
  48269. // Reserved. If you need to sustain traffic greater than the documented limits
  48270. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  48271. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  48272. RequestTime *time.Time `locationName:"requestTime" type:"timestamp" timestampFormat:"iso8601"`
  48273. // Reserved. If you need to sustain traffic greater than the documented limits
  48274. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  48275. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  48276. Requested *string `locationName:"requested" type:"string"`
  48277. // Reserved. If you need to sustain traffic greater than the documented limits
  48278. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  48279. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  48280. Status *string `locationName:"status" type:"string"`
  48281. }
  48282. // String returns the string representation
  48283. func (s ProvisionedBandwidth) String() string {
  48284. return awsutil.Prettify(s)
  48285. }
  48286. // GoString returns the string representation
  48287. func (s ProvisionedBandwidth) GoString() string {
  48288. return s.String()
  48289. }
  48290. // SetProvisionTime sets the ProvisionTime field's value.
  48291. func (s *ProvisionedBandwidth) SetProvisionTime(v time.Time) *ProvisionedBandwidth {
  48292. s.ProvisionTime = &v
  48293. return s
  48294. }
  48295. // SetProvisioned sets the Provisioned field's value.
  48296. func (s *ProvisionedBandwidth) SetProvisioned(v string) *ProvisionedBandwidth {
  48297. s.Provisioned = &v
  48298. return s
  48299. }
  48300. // SetRequestTime sets the RequestTime field's value.
  48301. func (s *ProvisionedBandwidth) SetRequestTime(v time.Time) *ProvisionedBandwidth {
  48302. s.RequestTime = &v
  48303. return s
  48304. }
  48305. // SetRequested sets the Requested field's value.
  48306. func (s *ProvisionedBandwidth) SetRequested(v string) *ProvisionedBandwidth {
  48307. s.Requested = &v
  48308. return s
  48309. }
  48310. // SetStatus sets the Status field's value.
  48311. func (s *ProvisionedBandwidth) SetStatus(v string) *ProvisionedBandwidth {
  48312. s.Status = &v
  48313. return s
  48314. }
  48315. // Describes the result of the purchase.
  48316. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Purchase
  48317. type Purchase struct {
  48318. _ struct{} `type:"structure"`
  48319. // The currency in which the UpfrontPrice and HourlyPrice amounts are specified.
  48320. // At this time, the only supported currency is USD.
  48321. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  48322. // The duration of the reservation's term in seconds.
  48323. Duration *int64 `locationName:"duration" type:"integer"`
  48324. // The IDs of the Dedicated Hosts associated with the reservation.
  48325. HostIdSet []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  48326. // The ID of the reservation.
  48327. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  48328. // The hourly price of the reservation per hour.
  48329. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  48330. // The instance family on the Dedicated Host that the reservation can be associated
  48331. // with.
  48332. InstanceFamily *string `locationName:"instanceFamily" type:"string"`
  48333. // The payment option for the reservation.
  48334. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"PaymentOption"`
  48335. // The upfront price of the reservation.
  48336. UpfrontPrice *string `locationName:"upfrontPrice" type:"string"`
  48337. }
  48338. // String returns the string representation
  48339. func (s Purchase) String() string {
  48340. return awsutil.Prettify(s)
  48341. }
  48342. // GoString returns the string representation
  48343. func (s Purchase) GoString() string {
  48344. return s.String()
  48345. }
  48346. // SetCurrencyCode sets the CurrencyCode field's value.
  48347. func (s *Purchase) SetCurrencyCode(v string) *Purchase {
  48348. s.CurrencyCode = &v
  48349. return s
  48350. }
  48351. // SetDuration sets the Duration field's value.
  48352. func (s *Purchase) SetDuration(v int64) *Purchase {
  48353. s.Duration = &v
  48354. return s
  48355. }
  48356. // SetHostIdSet sets the HostIdSet field's value.
  48357. func (s *Purchase) SetHostIdSet(v []*string) *Purchase {
  48358. s.HostIdSet = v
  48359. return s
  48360. }
  48361. // SetHostReservationId sets the HostReservationId field's value.
  48362. func (s *Purchase) SetHostReservationId(v string) *Purchase {
  48363. s.HostReservationId = &v
  48364. return s
  48365. }
  48366. // SetHourlyPrice sets the HourlyPrice field's value.
  48367. func (s *Purchase) SetHourlyPrice(v string) *Purchase {
  48368. s.HourlyPrice = &v
  48369. return s
  48370. }
  48371. // SetInstanceFamily sets the InstanceFamily field's value.
  48372. func (s *Purchase) SetInstanceFamily(v string) *Purchase {
  48373. s.InstanceFamily = &v
  48374. return s
  48375. }
  48376. // SetPaymentOption sets the PaymentOption field's value.
  48377. func (s *Purchase) SetPaymentOption(v string) *Purchase {
  48378. s.PaymentOption = &v
  48379. return s
  48380. }
  48381. // SetUpfrontPrice sets the UpfrontPrice field's value.
  48382. func (s *Purchase) SetUpfrontPrice(v string) *Purchase {
  48383. s.UpfrontPrice = &v
  48384. return s
  48385. }
  48386. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservationRequest
  48387. type PurchaseHostReservationInput struct {
  48388. _ struct{} `type:"structure"`
  48389. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  48390. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  48391. // in the Amazon Elastic Compute Cloud User Guide.
  48392. ClientToken *string `type:"string"`
  48393. // The currency in which the totalUpfrontPrice, LimitPrice, and totalHourlyPrice
  48394. // amounts are specified. At this time, the only supported currency is USD.
  48395. CurrencyCode *string `type:"string" enum:"CurrencyCodeValues"`
  48396. // The ID/s of the Dedicated Host/s that the reservation will be associated
  48397. // with.
  48398. //
  48399. // HostIdSet is a required field
  48400. HostIdSet []*string `locationNameList:"item" type:"list" required:"true"`
  48401. // The specified limit is checked against the total upfront cost of the reservation
  48402. // (calculated as the offering's upfront cost multiplied by the host count).
  48403. // If the total upfront cost is greater than the specified price limit, the
  48404. // request will fail. This is used to ensure that the purchase does not exceed
  48405. // the expected upfront cost of the purchase. At this time, the only supported
  48406. // currency is USD. For example, to indicate a limit price of USD 100, specify
  48407. // 100.00.
  48408. LimitPrice *string `type:"string"`
  48409. // The ID of the offering.
  48410. //
  48411. // OfferingId is a required field
  48412. OfferingId *string `type:"string" required:"true"`
  48413. }
  48414. // String returns the string representation
  48415. func (s PurchaseHostReservationInput) String() string {
  48416. return awsutil.Prettify(s)
  48417. }
  48418. // GoString returns the string representation
  48419. func (s PurchaseHostReservationInput) GoString() string {
  48420. return s.String()
  48421. }
  48422. // Validate inspects the fields of the type to determine if they are valid.
  48423. func (s *PurchaseHostReservationInput) Validate() error {
  48424. invalidParams := request.ErrInvalidParams{Context: "PurchaseHostReservationInput"}
  48425. if s.HostIdSet == nil {
  48426. invalidParams.Add(request.NewErrParamRequired("HostIdSet"))
  48427. }
  48428. if s.OfferingId == nil {
  48429. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  48430. }
  48431. if invalidParams.Len() > 0 {
  48432. return invalidParams
  48433. }
  48434. return nil
  48435. }
  48436. // SetClientToken sets the ClientToken field's value.
  48437. func (s *PurchaseHostReservationInput) SetClientToken(v string) *PurchaseHostReservationInput {
  48438. s.ClientToken = &v
  48439. return s
  48440. }
  48441. // SetCurrencyCode sets the CurrencyCode field's value.
  48442. func (s *PurchaseHostReservationInput) SetCurrencyCode(v string) *PurchaseHostReservationInput {
  48443. s.CurrencyCode = &v
  48444. return s
  48445. }
  48446. // SetHostIdSet sets the HostIdSet field's value.
  48447. func (s *PurchaseHostReservationInput) SetHostIdSet(v []*string) *PurchaseHostReservationInput {
  48448. s.HostIdSet = v
  48449. return s
  48450. }
  48451. // SetLimitPrice sets the LimitPrice field's value.
  48452. func (s *PurchaseHostReservationInput) SetLimitPrice(v string) *PurchaseHostReservationInput {
  48453. s.LimitPrice = &v
  48454. return s
  48455. }
  48456. // SetOfferingId sets the OfferingId field's value.
  48457. func (s *PurchaseHostReservationInput) SetOfferingId(v string) *PurchaseHostReservationInput {
  48458. s.OfferingId = &v
  48459. return s
  48460. }
  48461. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseHostReservationResult
  48462. type PurchaseHostReservationOutput struct {
  48463. _ struct{} `type:"structure"`
  48464. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  48465. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  48466. // in the Amazon Elastic Compute Cloud User Guide
  48467. ClientToken *string `locationName:"clientToken" type:"string"`
  48468. // The currency in which the totalUpfrontPrice and totalHourlyPrice amounts
  48469. // are specified. At this time, the only supported currency is USD.
  48470. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  48471. // Describes the details of the purchase.
  48472. Purchase []*Purchase `locationName:"purchase" locationNameList:"item" type:"list"`
  48473. // The total hourly price of the reservation calculated per hour.
  48474. TotalHourlyPrice *string `locationName:"totalHourlyPrice" type:"string"`
  48475. // The total amount that will be charged to your account when you purchase the
  48476. // reservation.
  48477. TotalUpfrontPrice *string `locationName:"totalUpfrontPrice" type:"string"`
  48478. }
  48479. // String returns the string representation
  48480. func (s PurchaseHostReservationOutput) String() string {
  48481. return awsutil.Prettify(s)
  48482. }
  48483. // GoString returns the string representation
  48484. func (s PurchaseHostReservationOutput) GoString() string {
  48485. return s.String()
  48486. }
  48487. // SetClientToken sets the ClientToken field's value.
  48488. func (s *PurchaseHostReservationOutput) SetClientToken(v string) *PurchaseHostReservationOutput {
  48489. s.ClientToken = &v
  48490. return s
  48491. }
  48492. // SetCurrencyCode sets the CurrencyCode field's value.
  48493. func (s *PurchaseHostReservationOutput) SetCurrencyCode(v string) *PurchaseHostReservationOutput {
  48494. s.CurrencyCode = &v
  48495. return s
  48496. }
  48497. // SetPurchase sets the Purchase field's value.
  48498. func (s *PurchaseHostReservationOutput) SetPurchase(v []*Purchase) *PurchaseHostReservationOutput {
  48499. s.Purchase = v
  48500. return s
  48501. }
  48502. // SetTotalHourlyPrice sets the TotalHourlyPrice field's value.
  48503. func (s *PurchaseHostReservationOutput) SetTotalHourlyPrice(v string) *PurchaseHostReservationOutput {
  48504. s.TotalHourlyPrice = &v
  48505. return s
  48506. }
  48507. // SetTotalUpfrontPrice sets the TotalUpfrontPrice field's value.
  48508. func (s *PurchaseHostReservationOutput) SetTotalUpfrontPrice(v string) *PurchaseHostReservationOutput {
  48509. s.TotalUpfrontPrice = &v
  48510. return s
  48511. }
  48512. // Describes a request to purchase Scheduled Instances.
  48513. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseRequest
  48514. type PurchaseRequest struct {
  48515. _ struct{} `type:"structure"`
  48516. // The number of instances.
  48517. //
  48518. // InstanceCount is a required field
  48519. InstanceCount *int64 `type:"integer" required:"true"`
  48520. // The purchase token.
  48521. //
  48522. // PurchaseToken is a required field
  48523. PurchaseToken *string `type:"string" required:"true"`
  48524. }
  48525. // String returns the string representation
  48526. func (s PurchaseRequest) String() string {
  48527. return awsutil.Prettify(s)
  48528. }
  48529. // GoString returns the string representation
  48530. func (s PurchaseRequest) GoString() string {
  48531. return s.String()
  48532. }
  48533. // Validate inspects the fields of the type to determine if they are valid.
  48534. func (s *PurchaseRequest) Validate() error {
  48535. invalidParams := request.ErrInvalidParams{Context: "PurchaseRequest"}
  48536. if s.InstanceCount == nil {
  48537. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  48538. }
  48539. if s.PurchaseToken == nil {
  48540. invalidParams.Add(request.NewErrParamRequired("PurchaseToken"))
  48541. }
  48542. if invalidParams.Len() > 0 {
  48543. return invalidParams
  48544. }
  48545. return nil
  48546. }
  48547. // SetInstanceCount sets the InstanceCount field's value.
  48548. func (s *PurchaseRequest) SetInstanceCount(v int64) *PurchaseRequest {
  48549. s.InstanceCount = &v
  48550. return s
  48551. }
  48552. // SetPurchaseToken sets the PurchaseToken field's value.
  48553. func (s *PurchaseRequest) SetPurchaseToken(v string) *PurchaseRequest {
  48554. s.PurchaseToken = &v
  48555. return s
  48556. }
  48557. // Contains the parameters for PurchaseReservedInstancesOffering.
  48558. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOfferingRequest
  48559. type PurchaseReservedInstancesOfferingInput struct {
  48560. _ struct{} `type:"structure"`
  48561. // Checks whether you have the required permissions for the action, without
  48562. // actually making the request, and provides an error response. If you have
  48563. // the required permissions, the error response is DryRunOperation. Otherwise,
  48564. // it is UnauthorizedOperation.
  48565. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48566. // The number of Reserved Instances to purchase.
  48567. //
  48568. // InstanceCount is a required field
  48569. InstanceCount *int64 `type:"integer" required:"true"`
  48570. // Specified for Reserved Instance Marketplace offerings to limit the total
  48571. // order and ensure that the Reserved Instances are not purchased at unexpected
  48572. // prices.
  48573. LimitPrice *ReservedInstanceLimitPrice `locationName:"limitPrice" type:"structure"`
  48574. // The ID of the Reserved Instance offering to purchase.
  48575. //
  48576. // ReservedInstancesOfferingId is a required field
  48577. ReservedInstancesOfferingId *string `type:"string" required:"true"`
  48578. }
  48579. // String returns the string representation
  48580. func (s PurchaseReservedInstancesOfferingInput) String() string {
  48581. return awsutil.Prettify(s)
  48582. }
  48583. // GoString returns the string representation
  48584. func (s PurchaseReservedInstancesOfferingInput) GoString() string {
  48585. return s.String()
  48586. }
  48587. // Validate inspects the fields of the type to determine if they are valid.
  48588. func (s *PurchaseReservedInstancesOfferingInput) Validate() error {
  48589. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedInstancesOfferingInput"}
  48590. if s.InstanceCount == nil {
  48591. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  48592. }
  48593. if s.ReservedInstancesOfferingId == nil {
  48594. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesOfferingId"))
  48595. }
  48596. if invalidParams.Len() > 0 {
  48597. return invalidParams
  48598. }
  48599. return nil
  48600. }
  48601. // SetDryRun sets the DryRun field's value.
  48602. func (s *PurchaseReservedInstancesOfferingInput) SetDryRun(v bool) *PurchaseReservedInstancesOfferingInput {
  48603. s.DryRun = &v
  48604. return s
  48605. }
  48606. // SetInstanceCount sets the InstanceCount field's value.
  48607. func (s *PurchaseReservedInstancesOfferingInput) SetInstanceCount(v int64) *PurchaseReservedInstancesOfferingInput {
  48608. s.InstanceCount = &v
  48609. return s
  48610. }
  48611. // SetLimitPrice sets the LimitPrice field's value.
  48612. func (s *PurchaseReservedInstancesOfferingInput) SetLimitPrice(v *ReservedInstanceLimitPrice) *PurchaseReservedInstancesOfferingInput {
  48613. s.LimitPrice = v
  48614. return s
  48615. }
  48616. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  48617. func (s *PurchaseReservedInstancesOfferingInput) SetReservedInstancesOfferingId(v string) *PurchaseReservedInstancesOfferingInput {
  48618. s.ReservedInstancesOfferingId = &v
  48619. return s
  48620. }
  48621. // Contains the output of PurchaseReservedInstancesOffering.
  48622. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseReservedInstancesOfferingResult
  48623. type PurchaseReservedInstancesOfferingOutput struct {
  48624. _ struct{} `type:"structure"`
  48625. // The IDs of the purchased Reserved Instances.
  48626. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  48627. }
  48628. // String returns the string representation
  48629. func (s PurchaseReservedInstancesOfferingOutput) String() string {
  48630. return awsutil.Prettify(s)
  48631. }
  48632. // GoString returns the string representation
  48633. func (s PurchaseReservedInstancesOfferingOutput) GoString() string {
  48634. return s.String()
  48635. }
  48636. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  48637. func (s *PurchaseReservedInstancesOfferingOutput) SetReservedInstancesId(v string) *PurchaseReservedInstancesOfferingOutput {
  48638. s.ReservedInstancesId = &v
  48639. return s
  48640. }
  48641. // Contains the parameters for PurchaseScheduledInstances.
  48642. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstancesRequest
  48643. type PurchaseScheduledInstancesInput struct {
  48644. _ struct{} `type:"structure"`
  48645. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  48646. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  48647. ClientToken *string `type:"string" idempotencyToken:"true"`
  48648. // Checks whether you have the required permissions for the action, without
  48649. // actually making the request, and provides an error response. If you have
  48650. // the required permissions, the error response is DryRunOperation. Otherwise,
  48651. // it is UnauthorizedOperation.
  48652. DryRun *bool `type:"boolean"`
  48653. // One or more purchase requests.
  48654. //
  48655. // PurchaseRequests is a required field
  48656. PurchaseRequests []*PurchaseRequest `locationName:"PurchaseRequest" locationNameList:"PurchaseRequest" min:"1" type:"list" required:"true"`
  48657. }
  48658. // String returns the string representation
  48659. func (s PurchaseScheduledInstancesInput) String() string {
  48660. return awsutil.Prettify(s)
  48661. }
  48662. // GoString returns the string representation
  48663. func (s PurchaseScheduledInstancesInput) GoString() string {
  48664. return s.String()
  48665. }
  48666. // Validate inspects the fields of the type to determine if they are valid.
  48667. func (s *PurchaseScheduledInstancesInput) Validate() error {
  48668. invalidParams := request.ErrInvalidParams{Context: "PurchaseScheduledInstancesInput"}
  48669. if s.PurchaseRequests == nil {
  48670. invalidParams.Add(request.NewErrParamRequired("PurchaseRequests"))
  48671. }
  48672. if s.PurchaseRequests != nil && len(s.PurchaseRequests) < 1 {
  48673. invalidParams.Add(request.NewErrParamMinLen("PurchaseRequests", 1))
  48674. }
  48675. if s.PurchaseRequests != nil {
  48676. for i, v := range s.PurchaseRequests {
  48677. if v == nil {
  48678. continue
  48679. }
  48680. if err := v.Validate(); err != nil {
  48681. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PurchaseRequests", i), err.(request.ErrInvalidParams))
  48682. }
  48683. }
  48684. }
  48685. if invalidParams.Len() > 0 {
  48686. return invalidParams
  48687. }
  48688. return nil
  48689. }
  48690. // SetClientToken sets the ClientToken field's value.
  48691. func (s *PurchaseScheduledInstancesInput) SetClientToken(v string) *PurchaseScheduledInstancesInput {
  48692. s.ClientToken = &v
  48693. return s
  48694. }
  48695. // SetDryRun sets the DryRun field's value.
  48696. func (s *PurchaseScheduledInstancesInput) SetDryRun(v bool) *PurchaseScheduledInstancesInput {
  48697. s.DryRun = &v
  48698. return s
  48699. }
  48700. // SetPurchaseRequests sets the PurchaseRequests field's value.
  48701. func (s *PurchaseScheduledInstancesInput) SetPurchaseRequests(v []*PurchaseRequest) *PurchaseScheduledInstancesInput {
  48702. s.PurchaseRequests = v
  48703. return s
  48704. }
  48705. // Contains the output of PurchaseScheduledInstances.
  48706. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseScheduledInstancesResult
  48707. type PurchaseScheduledInstancesOutput struct {
  48708. _ struct{} `type:"structure"`
  48709. // Information about the Scheduled Instances.
  48710. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  48711. }
  48712. // String returns the string representation
  48713. func (s PurchaseScheduledInstancesOutput) String() string {
  48714. return awsutil.Prettify(s)
  48715. }
  48716. // GoString returns the string representation
  48717. func (s PurchaseScheduledInstancesOutput) GoString() string {
  48718. return s.String()
  48719. }
  48720. // SetScheduledInstanceSet sets the ScheduledInstanceSet field's value.
  48721. func (s *PurchaseScheduledInstancesOutput) SetScheduledInstanceSet(v []*ScheduledInstance) *PurchaseScheduledInstancesOutput {
  48722. s.ScheduledInstanceSet = v
  48723. return s
  48724. }
  48725. // Contains the parameters for RebootInstances.
  48726. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstancesRequest
  48727. type RebootInstancesInput struct {
  48728. _ struct{} `type:"structure"`
  48729. // Checks whether you have the required permissions for the action, without
  48730. // actually making the request, and provides an error response. If you have
  48731. // the required permissions, the error response is DryRunOperation. Otherwise,
  48732. // it is UnauthorizedOperation.
  48733. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48734. // One or more instance IDs.
  48735. //
  48736. // InstanceIds is a required field
  48737. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  48738. }
  48739. // String returns the string representation
  48740. func (s RebootInstancesInput) String() string {
  48741. return awsutil.Prettify(s)
  48742. }
  48743. // GoString returns the string representation
  48744. func (s RebootInstancesInput) GoString() string {
  48745. return s.String()
  48746. }
  48747. // Validate inspects the fields of the type to determine if they are valid.
  48748. func (s *RebootInstancesInput) Validate() error {
  48749. invalidParams := request.ErrInvalidParams{Context: "RebootInstancesInput"}
  48750. if s.InstanceIds == nil {
  48751. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  48752. }
  48753. if invalidParams.Len() > 0 {
  48754. return invalidParams
  48755. }
  48756. return nil
  48757. }
  48758. // SetDryRun sets the DryRun field's value.
  48759. func (s *RebootInstancesInput) SetDryRun(v bool) *RebootInstancesInput {
  48760. s.DryRun = &v
  48761. return s
  48762. }
  48763. // SetInstanceIds sets the InstanceIds field's value.
  48764. func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput {
  48765. s.InstanceIds = v
  48766. return s
  48767. }
  48768. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RebootInstancesOutput
  48769. type RebootInstancesOutput struct {
  48770. _ struct{} `type:"structure"`
  48771. }
  48772. // String returns the string representation
  48773. func (s RebootInstancesOutput) String() string {
  48774. return awsutil.Prettify(s)
  48775. }
  48776. // GoString returns the string representation
  48777. func (s RebootInstancesOutput) GoString() string {
  48778. return s.String()
  48779. }
  48780. // Describes a recurring charge.
  48781. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RecurringCharge
  48782. type RecurringCharge struct {
  48783. _ struct{} `type:"structure"`
  48784. // The amount of the recurring charge.
  48785. Amount *float64 `locationName:"amount" type:"double"`
  48786. // The frequency of the recurring charge.
  48787. Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"`
  48788. }
  48789. // String returns the string representation
  48790. func (s RecurringCharge) String() string {
  48791. return awsutil.Prettify(s)
  48792. }
  48793. // GoString returns the string representation
  48794. func (s RecurringCharge) GoString() string {
  48795. return s.String()
  48796. }
  48797. // SetAmount sets the Amount field's value.
  48798. func (s *RecurringCharge) SetAmount(v float64) *RecurringCharge {
  48799. s.Amount = &v
  48800. return s
  48801. }
  48802. // SetFrequency sets the Frequency field's value.
  48803. func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge {
  48804. s.Frequency = &v
  48805. return s
  48806. }
  48807. // Describes a region.
  48808. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Region
  48809. type Region struct {
  48810. _ struct{} `type:"structure"`
  48811. // The region service endpoint.
  48812. Endpoint *string `locationName:"regionEndpoint" type:"string"`
  48813. // The name of the region.
  48814. RegionName *string `locationName:"regionName" type:"string"`
  48815. }
  48816. // String returns the string representation
  48817. func (s Region) String() string {
  48818. return awsutil.Prettify(s)
  48819. }
  48820. // GoString returns the string representation
  48821. func (s Region) GoString() string {
  48822. return s.String()
  48823. }
  48824. // SetEndpoint sets the Endpoint field's value.
  48825. func (s *Region) SetEndpoint(v string) *Region {
  48826. s.Endpoint = &v
  48827. return s
  48828. }
  48829. // SetRegionName sets the RegionName field's value.
  48830. func (s *Region) SetRegionName(v string) *Region {
  48831. s.RegionName = &v
  48832. return s
  48833. }
  48834. // Contains the parameters for RegisterImage.
  48835. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImageRequest
  48836. type RegisterImageInput struct {
  48837. _ struct{} `type:"structure"`
  48838. // The architecture of the AMI.
  48839. //
  48840. // Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs,
  48841. // the architecture specified in the manifest file.
  48842. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  48843. // The billing product codes. Your account must be authorized to specify billing
  48844. // product codes. Otherwise, you can use the AWS Marketplace to bill for the
  48845. // use of an AMI.
  48846. BillingProducts []*string `locationName:"BillingProduct" locationNameList:"item" type:"list"`
  48847. // One or more block device mapping entries.
  48848. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  48849. // A description for your AMI.
  48850. Description *string `locationName:"description" type:"string"`
  48851. // Checks whether you have the required permissions for the action, without
  48852. // actually making the request, and provides an error response. If you have
  48853. // the required permissions, the error response is DryRunOperation. Otherwise,
  48854. // it is UnauthorizedOperation.
  48855. DryRun *bool `locationName:"dryRun" type:"boolean"`
  48856. // Set to true to enable enhanced networking with ENA for the AMI and any instances
  48857. // that you launch from the AMI.
  48858. //
  48859. // This option is supported only for HVM AMIs. Specifying this option with a
  48860. // PV AMI can make instances launched from the AMI unreachable.
  48861. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  48862. // The full path to your AMI manifest in Amazon S3 storage.
  48863. ImageLocation *string `type:"string"`
  48864. // The ID of the kernel.
  48865. KernelId *string `locationName:"kernelId" type:"string"`
  48866. // A name for your AMI.
  48867. //
  48868. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  48869. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  48870. // at-signs (@), or underscores(_)
  48871. //
  48872. // Name is a required field
  48873. Name *string `locationName:"name" type:"string" required:"true"`
  48874. // The ID of the RAM disk.
  48875. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  48876. // The device name of the root device volume (for example, /dev/sda1).
  48877. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  48878. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  48879. // Function interface for the AMI and any instances that you launch from the
  48880. // AMI.
  48881. //
  48882. // There is no way to disable sriovNetSupport at this time.
  48883. //
  48884. // This option is supported only for HVM AMIs. Specifying this option with a
  48885. // PV AMI can make instances launched from the AMI unreachable.
  48886. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  48887. // The type of virtualization (hvm | paravirtual).
  48888. //
  48889. // Default: paravirtual
  48890. VirtualizationType *string `locationName:"virtualizationType" type:"string"`
  48891. }
  48892. // String returns the string representation
  48893. func (s RegisterImageInput) String() string {
  48894. return awsutil.Prettify(s)
  48895. }
  48896. // GoString returns the string representation
  48897. func (s RegisterImageInput) GoString() string {
  48898. return s.String()
  48899. }
  48900. // Validate inspects the fields of the type to determine if they are valid.
  48901. func (s *RegisterImageInput) Validate() error {
  48902. invalidParams := request.ErrInvalidParams{Context: "RegisterImageInput"}
  48903. if s.Name == nil {
  48904. invalidParams.Add(request.NewErrParamRequired("Name"))
  48905. }
  48906. if invalidParams.Len() > 0 {
  48907. return invalidParams
  48908. }
  48909. return nil
  48910. }
  48911. // SetArchitecture sets the Architecture field's value.
  48912. func (s *RegisterImageInput) SetArchitecture(v string) *RegisterImageInput {
  48913. s.Architecture = &v
  48914. return s
  48915. }
  48916. // SetBillingProducts sets the BillingProducts field's value.
  48917. func (s *RegisterImageInput) SetBillingProducts(v []*string) *RegisterImageInput {
  48918. s.BillingProducts = v
  48919. return s
  48920. }
  48921. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  48922. func (s *RegisterImageInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RegisterImageInput {
  48923. s.BlockDeviceMappings = v
  48924. return s
  48925. }
  48926. // SetDescription sets the Description field's value.
  48927. func (s *RegisterImageInput) SetDescription(v string) *RegisterImageInput {
  48928. s.Description = &v
  48929. return s
  48930. }
  48931. // SetDryRun sets the DryRun field's value.
  48932. func (s *RegisterImageInput) SetDryRun(v bool) *RegisterImageInput {
  48933. s.DryRun = &v
  48934. return s
  48935. }
  48936. // SetEnaSupport sets the EnaSupport field's value.
  48937. func (s *RegisterImageInput) SetEnaSupport(v bool) *RegisterImageInput {
  48938. s.EnaSupport = &v
  48939. return s
  48940. }
  48941. // SetImageLocation sets the ImageLocation field's value.
  48942. func (s *RegisterImageInput) SetImageLocation(v string) *RegisterImageInput {
  48943. s.ImageLocation = &v
  48944. return s
  48945. }
  48946. // SetKernelId sets the KernelId field's value.
  48947. func (s *RegisterImageInput) SetKernelId(v string) *RegisterImageInput {
  48948. s.KernelId = &v
  48949. return s
  48950. }
  48951. // SetName sets the Name field's value.
  48952. func (s *RegisterImageInput) SetName(v string) *RegisterImageInput {
  48953. s.Name = &v
  48954. return s
  48955. }
  48956. // SetRamdiskId sets the RamdiskId field's value.
  48957. func (s *RegisterImageInput) SetRamdiskId(v string) *RegisterImageInput {
  48958. s.RamdiskId = &v
  48959. return s
  48960. }
  48961. // SetRootDeviceName sets the RootDeviceName field's value.
  48962. func (s *RegisterImageInput) SetRootDeviceName(v string) *RegisterImageInput {
  48963. s.RootDeviceName = &v
  48964. return s
  48965. }
  48966. // SetSriovNetSupport sets the SriovNetSupport field's value.
  48967. func (s *RegisterImageInput) SetSriovNetSupport(v string) *RegisterImageInput {
  48968. s.SriovNetSupport = &v
  48969. return s
  48970. }
  48971. // SetVirtualizationType sets the VirtualizationType field's value.
  48972. func (s *RegisterImageInput) SetVirtualizationType(v string) *RegisterImageInput {
  48973. s.VirtualizationType = &v
  48974. return s
  48975. }
  48976. // Contains the output of RegisterImage.
  48977. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImageResult
  48978. type RegisterImageOutput struct {
  48979. _ struct{} `type:"structure"`
  48980. // The ID of the newly registered AMI.
  48981. ImageId *string `locationName:"imageId" type:"string"`
  48982. }
  48983. // String returns the string representation
  48984. func (s RegisterImageOutput) String() string {
  48985. return awsutil.Prettify(s)
  48986. }
  48987. // GoString returns the string representation
  48988. func (s RegisterImageOutput) GoString() string {
  48989. return s.String()
  48990. }
  48991. // SetImageId sets the ImageId field's value.
  48992. func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput {
  48993. s.ImageId = &v
  48994. return s
  48995. }
  48996. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnectionsRequest
  48997. type RejectVpcEndpointConnectionsInput struct {
  48998. _ struct{} `type:"structure"`
  48999. // Checks whether you have the required permissions for the action, without
  49000. // actually making the request, and provides an error response. If you have
  49001. // the required permissions, the error response is DryRunOperation. Otherwise,
  49002. // it is UnauthorizedOperation.
  49003. DryRun *bool `type:"boolean"`
  49004. // The ID of the service.
  49005. //
  49006. // ServiceId is a required field
  49007. ServiceId *string `type:"string" required:"true"`
  49008. // The IDs of one or more VPC endpoints.
  49009. //
  49010. // VpcEndpointIds is a required field
  49011. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  49012. }
  49013. // String returns the string representation
  49014. func (s RejectVpcEndpointConnectionsInput) String() string {
  49015. return awsutil.Prettify(s)
  49016. }
  49017. // GoString returns the string representation
  49018. func (s RejectVpcEndpointConnectionsInput) GoString() string {
  49019. return s.String()
  49020. }
  49021. // Validate inspects the fields of the type to determine if they are valid.
  49022. func (s *RejectVpcEndpointConnectionsInput) Validate() error {
  49023. invalidParams := request.ErrInvalidParams{Context: "RejectVpcEndpointConnectionsInput"}
  49024. if s.ServiceId == nil {
  49025. invalidParams.Add(request.NewErrParamRequired("ServiceId"))
  49026. }
  49027. if s.VpcEndpointIds == nil {
  49028. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  49029. }
  49030. if invalidParams.Len() > 0 {
  49031. return invalidParams
  49032. }
  49033. return nil
  49034. }
  49035. // SetDryRun sets the DryRun field's value.
  49036. func (s *RejectVpcEndpointConnectionsInput) SetDryRun(v bool) *RejectVpcEndpointConnectionsInput {
  49037. s.DryRun = &v
  49038. return s
  49039. }
  49040. // SetServiceId sets the ServiceId field's value.
  49041. func (s *RejectVpcEndpointConnectionsInput) SetServiceId(v string) *RejectVpcEndpointConnectionsInput {
  49042. s.ServiceId = &v
  49043. return s
  49044. }
  49045. // SetVpcEndpointIds sets the VpcEndpointIds field's value.
  49046. func (s *RejectVpcEndpointConnectionsInput) SetVpcEndpointIds(v []*string) *RejectVpcEndpointConnectionsInput {
  49047. s.VpcEndpointIds = v
  49048. return s
  49049. }
  49050. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcEndpointConnectionsResult
  49051. type RejectVpcEndpointConnectionsOutput struct {
  49052. _ struct{} `type:"structure"`
  49053. // Information about the endpoints that were not rejected, if applicable.
  49054. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  49055. }
  49056. // String returns the string representation
  49057. func (s RejectVpcEndpointConnectionsOutput) String() string {
  49058. return awsutil.Prettify(s)
  49059. }
  49060. // GoString returns the string representation
  49061. func (s RejectVpcEndpointConnectionsOutput) GoString() string {
  49062. return s.String()
  49063. }
  49064. // SetUnsuccessful sets the Unsuccessful field's value.
  49065. func (s *RejectVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *RejectVpcEndpointConnectionsOutput {
  49066. s.Unsuccessful = v
  49067. return s
  49068. }
  49069. // Contains the parameters for RejectVpcPeeringConnection.
  49070. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnectionRequest
  49071. type RejectVpcPeeringConnectionInput struct {
  49072. _ struct{} `type:"structure"`
  49073. // Checks whether you have the required permissions for the action, without
  49074. // actually making the request, and provides an error response. If you have
  49075. // the required permissions, the error response is DryRunOperation. Otherwise,
  49076. // it is UnauthorizedOperation.
  49077. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49078. // The ID of the VPC peering connection.
  49079. //
  49080. // VpcPeeringConnectionId is a required field
  49081. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  49082. }
  49083. // String returns the string representation
  49084. func (s RejectVpcPeeringConnectionInput) String() string {
  49085. return awsutil.Prettify(s)
  49086. }
  49087. // GoString returns the string representation
  49088. func (s RejectVpcPeeringConnectionInput) GoString() string {
  49089. return s.String()
  49090. }
  49091. // Validate inspects the fields of the type to determine if they are valid.
  49092. func (s *RejectVpcPeeringConnectionInput) Validate() error {
  49093. invalidParams := request.ErrInvalidParams{Context: "RejectVpcPeeringConnectionInput"}
  49094. if s.VpcPeeringConnectionId == nil {
  49095. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  49096. }
  49097. if invalidParams.Len() > 0 {
  49098. return invalidParams
  49099. }
  49100. return nil
  49101. }
  49102. // SetDryRun sets the DryRun field's value.
  49103. func (s *RejectVpcPeeringConnectionInput) SetDryRun(v bool) *RejectVpcPeeringConnectionInput {
  49104. s.DryRun = &v
  49105. return s
  49106. }
  49107. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  49108. func (s *RejectVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *RejectVpcPeeringConnectionInput {
  49109. s.VpcPeeringConnectionId = &v
  49110. return s
  49111. }
  49112. // Contains the output of RejectVpcPeeringConnection.
  49113. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectVpcPeeringConnectionResult
  49114. type RejectVpcPeeringConnectionOutput struct {
  49115. _ struct{} `type:"structure"`
  49116. // Returns true if the request succeeds; otherwise, it returns an error.
  49117. Return *bool `locationName:"return" type:"boolean"`
  49118. }
  49119. // String returns the string representation
  49120. func (s RejectVpcPeeringConnectionOutput) String() string {
  49121. return awsutil.Prettify(s)
  49122. }
  49123. // GoString returns the string representation
  49124. func (s RejectVpcPeeringConnectionOutput) GoString() string {
  49125. return s.String()
  49126. }
  49127. // SetReturn sets the Return field's value.
  49128. func (s *RejectVpcPeeringConnectionOutput) SetReturn(v bool) *RejectVpcPeeringConnectionOutput {
  49129. s.Return = &v
  49130. return s
  49131. }
  49132. // Contains the parameters for ReleaseAddress.
  49133. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddressRequest
  49134. type ReleaseAddressInput struct {
  49135. _ struct{} `type:"structure"`
  49136. // [EC2-VPC] The allocation ID. Required for EC2-VPC.
  49137. AllocationId *string `type:"string"`
  49138. // Checks whether you have the required permissions for the action, without
  49139. // actually making the request, and provides an error response. If you have
  49140. // the required permissions, the error response is DryRunOperation. Otherwise,
  49141. // it is UnauthorizedOperation.
  49142. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49143. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  49144. PublicIp *string `type:"string"`
  49145. }
  49146. // String returns the string representation
  49147. func (s ReleaseAddressInput) String() string {
  49148. return awsutil.Prettify(s)
  49149. }
  49150. // GoString returns the string representation
  49151. func (s ReleaseAddressInput) GoString() string {
  49152. return s.String()
  49153. }
  49154. // SetAllocationId sets the AllocationId field's value.
  49155. func (s *ReleaseAddressInput) SetAllocationId(v string) *ReleaseAddressInput {
  49156. s.AllocationId = &v
  49157. return s
  49158. }
  49159. // SetDryRun sets the DryRun field's value.
  49160. func (s *ReleaseAddressInput) SetDryRun(v bool) *ReleaseAddressInput {
  49161. s.DryRun = &v
  49162. return s
  49163. }
  49164. // SetPublicIp sets the PublicIp field's value.
  49165. func (s *ReleaseAddressInput) SetPublicIp(v string) *ReleaseAddressInput {
  49166. s.PublicIp = &v
  49167. return s
  49168. }
  49169. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseAddressOutput
  49170. type ReleaseAddressOutput struct {
  49171. _ struct{} `type:"structure"`
  49172. }
  49173. // String returns the string representation
  49174. func (s ReleaseAddressOutput) String() string {
  49175. return awsutil.Prettify(s)
  49176. }
  49177. // GoString returns the string representation
  49178. func (s ReleaseAddressOutput) GoString() string {
  49179. return s.String()
  49180. }
  49181. // Contains the parameters for ReleaseHosts.
  49182. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHostsRequest
  49183. type ReleaseHostsInput struct {
  49184. _ struct{} `type:"structure"`
  49185. // The IDs of the Dedicated Hosts you want to release.
  49186. //
  49187. // HostIds is a required field
  49188. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  49189. }
  49190. // String returns the string representation
  49191. func (s ReleaseHostsInput) String() string {
  49192. return awsutil.Prettify(s)
  49193. }
  49194. // GoString returns the string representation
  49195. func (s ReleaseHostsInput) GoString() string {
  49196. return s.String()
  49197. }
  49198. // Validate inspects the fields of the type to determine if they are valid.
  49199. func (s *ReleaseHostsInput) Validate() error {
  49200. invalidParams := request.ErrInvalidParams{Context: "ReleaseHostsInput"}
  49201. if s.HostIds == nil {
  49202. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  49203. }
  49204. if invalidParams.Len() > 0 {
  49205. return invalidParams
  49206. }
  49207. return nil
  49208. }
  49209. // SetHostIds sets the HostIds field's value.
  49210. func (s *ReleaseHostsInput) SetHostIds(v []*string) *ReleaseHostsInput {
  49211. s.HostIds = v
  49212. return s
  49213. }
  49214. // Contains the output of ReleaseHosts.
  49215. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReleaseHostsResult
  49216. type ReleaseHostsOutput struct {
  49217. _ struct{} `type:"structure"`
  49218. // The IDs of the Dedicated Hosts that were successfully released.
  49219. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  49220. // The IDs of the Dedicated Hosts that could not be released, including an error
  49221. // message.
  49222. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  49223. }
  49224. // String returns the string representation
  49225. func (s ReleaseHostsOutput) String() string {
  49226. return awsutil.Prettify(s)
  49227. }
  49228. // GoString returns the string representation
  49229. func (s ReleaseHostsOutput) GoString() string {
  49230. return s.String()
  49231. }
  49232. // SetSuccessful sets the Successful field's value.
  49233. func (s *ReleaseHostsOutput) SetSuccessful(v []*string) *ReleaseHostsOutput {
  49234. s.Successful = v
  49235. return s
  49236. }
  49237. // SetUnsuccessful sets the Unsuccessful field's value.
  49238. func (s *ReleaseHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ReleaseHostsOutput {
  49239. s.Unsuccessful = v
  49240. return s
  49241. }
  49242. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociationRequest
  49243. type ReplaceIamInstanceProfileAssociationInput struct {
  49244. _ struct{} `type:"structure"`
  49245. // The ID of the existing IAM instance profile association.
  49246. //
  49247. // AssociationId is a required field
  49248. AssociationId *string `type:"string" required:"true"`
  49249. // The IAM instance profile.
  49250. //
  49251. // IamInstanceProfile is a required field
  49252. IamInstanceProfile *IamInstanceProfileSpecification `type:"structure" required:"true"`
  49253. }
  49254. // String returns the string representation
  49255. func (s ReplaceIamInstanceProfileAssociationInput) String() string {
  49256. return awsutil.Prettify(s)
  49257. }
  49258. // GoString returns the string representation
  49259. func (s ReplaceIamInstanceProfileAssociationInput) GoString() string {
  49260. return s.String()
  49261. }
  49262. // Validate inspects the fields of the type to determine if they are valid.
  49263. func (s *ReplaceIamInstanceProfileAssociationInput) Validate() error {
  49264. invalidParams := request.ErrInvalidParams{Context: "ReplaceIamInstanceProfileAssociationInput"}
  49265. if s.AssociationId == nil {
  49266. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  49267. }
  49268. if s.IamInstanceProfile == nil {
  49269. invalidParams.Add(request.NewErrParamRequired("IamInstanceProfile"))
  49270. }
  49271. if invalidParams.Len() > 0 {
  49272. return invalidParams
  49273. }
  49274. return nil
  49275. }
  49276. // SetAssociationId sets the AssociationId field's value.
  49277. func (s *ReplaceIamInstanceProfileAssociationInput) SetAssociationId(v string) *ReplaceIamInstanceProfileAssociationInput {
  49278. s.AssociationId = &v
  49279. return s
  49280. }
  49281. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  49282. func (s *ReplaceIamInstanceProfileAssociationInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *ReplaceIamInstanceProfileAssociationInput {
  49283. s.IamInstanceProfile = v
  49284. return s
  49285. }
  49286. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceIamInstanceProfileAssociationResult
  49287. type ReplaceIamInstanceProfileAssociationOutput struct {
  49288. _ struct{} `type:"structure"`
  49289. // Information about the IAM instance profile association.
  49290. IamInstanceProfileAssociation *IamInstanceProfileAssociation `locationName:"iamInstanceProfileAssociation" type:"structure"`
  49291. }
  49292. // String returns the string representation
  49293. func (s ReplaceIamInstanceProfileAssociationOutput) String() string {
  49294. return awsutil.Prettify(s)
  49295. }
  49296. // GoString returns the string representation
  49297. func (s ReplaceIamInstanceProfileAssociationOutput) GoString() string {
  49298. return s.String()
  49299. }
  49300. // SetIamInstanceProfileAssociation sets the IamInstanceProfileAssociation field's value.
  49301. func (s *ReplaceIamInstanceProfileAssociationOutput) SetIamInstanceProfileAssociation(v *IamInstanceProfileAssociation) *ReplaceIamInstanceProfileAssociationOutput {
  49302. s.IamInstanceProfileAssociation = v
  49303. return s
  49304. }
  49305. // Contains the parameters for ReplaceNetworkAclAssociation.
  49306. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociationRequest
  49307. type ReplaceNetworkAclAssociationInput struct {
  49308. _ struct{} `type:"structure"`
  49309. // The ID of the current association between the original network ACL and the
  49310. // subnet.
  49311. //
  49312. // AssociationId is a required field
  49313. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  49314. // Checks whether you have the required permissions for the action, without
  49315. // actually making the request, and provides an error response. If you have
  49316. // the required permissions, the error response is DryRunOperation. Otherwise,
  49317. // it is UnauthorizedOperation.
  49318. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49319. // The ID of the new network ACL to associate with the subnet.
  49320. //
  49321. // NetworkAclId is a required field
  49322. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  49323. }
  49324. // String returns the string representation
  49325. func (s ReplaceNetworkAclAssociationInput) String() string {
  49326. return awsutil.Prettify(s)
  49327. }
  49328. // GoString returns the string representation
  49329. func (s ReplaceNetworkAclAssociationInput) GoString() string {
  49330. return s.String()
  49331. }
  49332. // Validate inspects the fields of the type to determine if they are valid.
  49333. func (s *ReplaceNetworkAclAssociationInput) Validate() error {
  49334. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclAssociationInput"}
  49335. if s.AssociationId == nil {
  49336. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  49337. }
  49338. if s.NetworkAclId == nil {
  49339. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  49340. }
  49341. if invalidParams.Len() > 0 {
  49342. return invalidParams
  49343. }
  49344. return nil
  49345. }
  49346. // SetAssociationId sets the AssociationId field's value.
  49347. func (s *ReplaceNetworkAclAssociationInput) SetAssociationId(v string) *ReplaceNetworkAclAssociationInput {
  49348. s.AssociationId = &v
  49349. return s
  49350. }
  49351. // SetDryRun sets the DryRun field's value.
  49352. func (s *ReplaceNetworkAclAssociationInput) SetDryRun(v bool) *ReplaceNetworkAclAssociationInput {
  49353. s.DryRun = &v
  49354. return s
  49355. }
  49356. // SetNetworkAclId sets the NetworkAclId field's value.
  49357. func (s *ReplaceNetworkAclAssociationInput) SetNetworkAclId(v string) *ReplaceNetworkAclAssociationInput {
  49358. s.NetworkAclId = &v
  49359. return s
  49360. }
  49361. // Contains the output of ReplaceNetworkAclAssociation.
  49362. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclAssociationResult
  49363. type ReplaceNetworkAclAssociationOutput struct {
  49364. _ struct{} `type:"structure"`
  49365. // The ID of the new association.
  49366. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  49367. }
  49368. // String returns the string representation
  49369. func (s ReplaceNetworkAclAssociationOutput) String() string {
  49370. return awsutil.Prettify(s)
  49371. }
  49372. // GoString returns the string representation
  49373. func (s ReplaceNetworkAclAssociationOutput) GoString() string {
  49374. return s.String()
  49375. }
  49376. // SetNewAssociationId sets the NewAssociationId field's value.
  49377. func (s *ReplaceNetworkAclAssociationOutput) SetNewAssociationId(v string) *ReplaceNetworkAclAssociationOutput {
  49378. s.NewAssociationId = &v
  49379. return s
  49380. }
  49381. // Contains the parameters for ReplaceNetworkAclEntry.
  49382. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntryRequest
  49383. type ReplaceNetworkAclEntryInput struct {
  49384. _ struct{} `type:"structure"`
  49385. // The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  49386. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  49387. // Checks whether you have the required permissions for the action, without
  49388. // actually making the request, and provides an error response. If you have
  49389. // the required permissions, the error response is DryRunOperation. Otherwise,
  49390. // it is UnauthorizedOperation.
  49391. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49392. // Indicates whether to replace the egress rule.
  49393. //
  49394. // Default: If no value is specified, we replace the ingress rule.
  49395. //
  49396. // Egress is a required field
  49397. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  49398. // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the
  49399. // ICMP (1) protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block.
  49400. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  49401. // The IPv6 network range to allow or deny, in CIDR notation (for example 2001:bd8:1234:1a00::/64).
  49402. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  49403. // The ID of the ACL.
  49404. //
  49405. // NetworkAclId is a required field
  49406. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  49407. // TCP or UDP protocols: The range of ports the rule applies to. Required if
  49408. // specifying TCP (6) or UDP (17) for the protocol.
  49409. PortRange *PortRange `locationName:"portRange" type:"structure"`
  49410. // The IP protocol. You can specify all or -1 to mean all protocols. If you
  49411. // specify all, -1, or a protocol number other than tcp, udp, or icmp, traffic
  49412. // on all ports is allowed, regardless of any ports or ICMP types or codes you
  49413. // specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block,
  49414. // traffic for all ICMP types and codes allowed, regardless of any that you
  49415. // specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block,
  49416. // you must specify an ICMP type and code.
  49417. //
  49418. // Protocol is a required field
  49419. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  49420. // Indicates whether to allow or deny the traffic that matches the rule.
  49421. //
  49422. // RuleAction is a required field
  49423. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  49424. // The rule number of the entry to replace.
  49425. //
  49426. // RuleNumber is a required field
  49427. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  49428. }
  49429. // String returns the string representation
  49430. func (s ReplaceNetworkAclEntryInput) String() string {
  49431. return awsutil.Prettify(s)
  49432. }
  49433. // GoString returns the string representation
  49434. func (s ReplaceNetworkAclEntryInput) GoString() string {
  49435. return s.String()
  49436. }
  49437. // Validate inspects the fields of the type to determine if they are valid.
  49438. func (s *ReplaceNetworkAclEntryInput) Validate() error {
  49439. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclEntryInput"}
  49440. if s.Egress == nil {
  49441. invalidParams.Add(request.NewErrParamRequired("Egress"))
  49442. }
  49443. if s.NetworkAclId == nil {
  49444. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  49445. }
  49446. if s.Protocol == nil {
  49447. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  49448. }
  49449. if s.RuleAction == nil {
  49450. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  49451. }
  49452. if s.RuleNumber == nil {
  49453. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  49454. }
  49455. if invalidParams.Len() > 0 {
  49456. return invalidParams
  49457. }
  49458. return nil
  49459. }
  49460. // SetCidrBlock sets the CidrBlock field's value.
  49461. func (s *ReplaceNetworkAclEntryInput) SetCidrBlock(v string) *ReplaceNetworkAclEntryInput {
  49462. s.CidrBlock = &v
  49463. return s
  49464. }
  49465. // SetDryRun sets the DryRun field's value.
  49466. func (s *ReplaceNetworkAclEntryInput) SetDryRun(v bool) *ReplaceNetworkAclEntryInput {
  49467. s.DryRun = &v
  49468. return s
  49469. }
  49470. // SetEgress sets the Egress field's value.
  49471. func (s *ReplaceNetworkAclEntryInput) SetEgress(v bool) *ReplaceNetworkAclEntryInput {
  49472. s.Egress = &v
  49473. return s
  49474. }
  49475. // SetIcmpTypeCode sets the IcmpTypeCode field's value.
  49476. func (s *ReplaceNetworkAclEntryInput) SetIcmpTypeCode(v *IcmpTypeCode) *ReplaceNetworkAclEntryInput {
  49477. s.IcmpTypeCode = v
  49478. return s
  49479. }
  49480. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  49481. func (s *ReplaceNetworkAclEntryInput) SetIpv6CidrBlock(v string) *ReplaceNetworkAclEntryInput {
  49482. s.Ipv6CidrBlock = &v
  49483. return s
  49484. }
  49485. // SetNetworkAclId sets the NetworkAclId field's value.
  49486. func (s *ReplaceNetworkAclEntryInput) SetNetworkAclId(v string) *ReplaceNetworkAclEntryInput {
  49487. s.NetworkAclId = &v
  49488. return s
  49489. }
  49490. // SetPortRange sets the PortRange field's value.
  49491. func (s *ReplaceNetworkAclEntryInput) SetPortRange(v *PortRange) *ReplaceNetworkAclEntryInput {
  49492. s.PortRange = v
  49493. return s
  49494. }
  49495. // SetProtocol sets the Protocol field's value.
  49496. func (s *ReplaceNetworkAclEntryInput) SetProtocol(v string) *ReplaceNetworkAclEntryInput {
  49497. s.Protocol = &v
  49498. return s
  49499. }
  49500. // SetRuleAction sets the RuleAction field's value.
  49501. func (s *ReplaceNetworkAclEntryInput) SetRuleAction(v string) *ReplaceNetworkAclEntryInput {
  49502. s.RuleAction = &v
  49503. return s
  49504. }
  49505. // SetRuleNumber sets the RuleNumber field's value.
  49506. func (s *ReplaceNetworkAclEntryInput) SetRuleNumber(v int64) *ReplaceNetworkAclEntryInput {
  49507. s.RuleNumber = &v
  49508. return s
  49509. }
  49510. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceNetworkAclEntryOutput
  49511. type ReplaceNetworkAclEntryOutput struct {
  49512. _ struct{} `type:"structure"`
  49513. }
  49514. // String returns the string representation
  49515. func (s ReplaceNetworkAclEntryOutput) String() string {
  49516. return awsutil.Prettify(s)
  49517. }
  49518. // GoString returns the string representation
  49519. func (s ReplaceNetworkAclEntryOutput) GoString() string {
  49520. return s.String()
  49521. }
  49522. // Contains the parameters for ReplaceRoute.
  49523. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteRequest
  49524. type ReplaceRouteInput struct {
  49525. _ struct{} `type:"structure"`
  49526. // The IPv4 CIDR address block used for the destination match. The value you
  49527. // provide must match the CIDR of an existing route in the table.
  49528. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  49529. // The IPv6 CIDR address block used for the destination match. The value you
  49530. // provide must match the CIDR of an existing route in the table.
  49531. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  49532. // Checks whether you have the required permissions for the action, without
  49533. // actually making the request, and provides an error response. If you have
  49534. // the required permissions, the error response is DryRunOperation. Otherwise,
  49535. // it is UnauthorizedOperation.
  49536. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49537. // [IPv6 traffic only] The ID of an egress-only Internet gateway.
  49538. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  49539. // The ID of an Internet gateway or virtual private gateway.
  49540. GatewayId *string `locationName:"gatewayId" type:"string"`
  49541. // The ID of a NAT instance in your VPC.
  49542. InstanceId *string `locationName:"instanceId" type:"string"`
  49543. // [IPv4 traffic only] The ID of a NAT gateway.
  49544. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  49545. // The ID of a network interface.
  49546. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  49547. // The ID of the route table.
  49548. //
  49549. // RouteTableId is a required field
  49550. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  49551. // The ID of a VPC peering connection.
  49552. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  49553. }
  49554. // String returns the string representation
  49555. func (s ReplaceRouteInput) String() string {
  49556. return awsutil.Prettify(s)
  49557. }
  49558. // GoString returns the string representation
  49559. func (s ReplaceRouteInput) GoString() string {
  49560. return s.String()
  49561. }
  49562. // Validate inspects the fields of the type to determine if they are valid.
  49563. func (s *ReplaceRouteInput) Validate() error {
  49564. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteInput"}
  49565. if s.RouteTableId == nil {
  49566. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  49567. }
  49568. if invalidParams.Len() > 0 {
  49569. return invalidParams
  49570. }
  49571. return nil
  49572. }
  49573. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  49574. func (s *ReplaceRouteInput) SetDestinationCidrBlock(v string) *ReplaceRouteInput {
  49575. s.DestinationCidrBlock = &v
  49576. return s
  49577. }
  49578. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  49579. func (s *ReplaceRouteInput) SetDestinationIpv6CidrBlock(v string) *ReplaceRouteInput {
  49580. s.DestinationIpv6CidrBlock = &v
  49581. return s
  49582. }
  49583. // SetDryRun sets the DryRun field's value.
  49584. func (s *ReplaceRouteInput) SetDryRun(v bool) *ReplaceRouteInput {
  49585. s.DryRun = &v
  49586. return s
  49587. }
  49588. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  49589. func (s *ReplaceRouteInput) SetEgressOnlyInternetGatewayId(v string) *ReplaceRouteInput {
  49590. s.EgressOnlyInternetGatewayId = &v
  49591. return s
  49592. }
  49593. // SetGatewayId sets the GatewayId field's value.
  49594. func (s *ReplaceRouteInput) SetGatewayId(v string) *ReplaceRouteInput {
  49595. s.GatewayId = &v
  49596. return s
  49597. }
  49598. // SetInstanceId sets the InstanceId field's value.
  49599. func (s *ReplaceRouteInput) SetInstanceId(v string) *ReplaceRouteInput {
  49600. s.InstanceId = &v
  49601. return s
  49602. }
  49603. // SetNatGatewayId sets the NatGatewayId field's value.
  49604. func (s *ReplaceRouteInput) SetNatGatewayId(v string) *ReplaceRouteInput {
  49605. s.NatGatewayId = &v
  49606. return s
  49607. }
  49608. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  49609. func (s *ReplaceRouteInput) SetNetworkInterfaceId(v string) *ReplaceRouteInput {
  49610. s.NetworkInterfaceId = &v
  49611. return s
  49612. }
  49613. // SetRouteTableId sets the RouteTableId field's value.
  49614. func (s *ReplaceRouteInput) SetRouteTableId(v string) *ReplaceRouteInput {
  49615. s.RouteTableId = &v
  49616. return s
  49617. }
  49618. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  49619. func (s *ReplaceRouteInput) SetVpcPeeringConnectionId(v string) *ReplaceRouteInput {
  49620. s.VpcPeeringConnectionId = &v
  49621. return s
  49622. }
  49623. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteOutput
  49624. type ReplaceRouteOutput struct {
  49625. _ struct{} `type:"structure"`
  49626. }
  49627. // String returns the string representation
  49628. func (s ReplaceRouteOutput) String() string {
  49629. return awsutil.Prettify(s)
  49630. }
  49631. // GoString returns the string representation
  49632. func (s ReplaceRouteOutput) GoString() string {
  49633. return s.String()
  49634. }
  49635. // Contains the parameters for ReplaceRouteTableAssociation.
  49636. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociationRequest
  49637. type ReplaceRouteTableAssociationInput struct {
  49638. _ struct{} `type:"structure"`
  49639. // The association ID.
  49640. //
  49641. // AssociationId is a required field
  49642. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  49643. // Checks whether you have the required permissions for the action, without
  49644. // actually making the request, and provides an error response. If you have
  49645. // the required permissions, the error response is DryRunOperation. Otherwise,
  49646. // it is UnauthorizedOperation.
  49647. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49648. // The ID of the new route table to associate with the subnet.
  49649. //
  49650. // RouteTableId is a required field
  49651. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  49652. }
  49653. // String returns the string representation
  49654. func (s ReplaceRouteTableAssociationInput) String() string {
  49655. return awsutil.Prettify(s)
  49656. }
  49657. // GoString returns the string representation
  49658. func (s ReplaceRouteTableAssociationInput) GoString() string {
  49659. return s.String()
  49660. }
  49661. // Validate inspects the fields of the type to determine if they are valid.
  49662. func (s *ReplaceRouteTableAssociationInput) Validate() error {
  49663. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteTableAssociationInput"}
  49664. if s.AssociationId == nil {
  49665. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  49666. }
  49667. if s.RouteTableId == nil {
  49668. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  49669. }
  49670. if invalidParams.Len() > 0 {
  49671. return invalidParams
  49672. }
  49673. return nil
  49674. }
  49675. // SetAssociationId sets the AssociationId field's value.
  49676. func (s *ReplaceRouteTableAssociationInput) SetAssociationId(v string) *ReplaceRouteTableAssociationInput {
  49677. s.AssociationId = &v
  49678. return s
  49679. }
  49680. // SetDryRun sets the DryRun field's value.
  49681. func (s *ReplaceRouteTableAssociationInput) SetDryRun(v bool) *ReplaceRouteTableAssociationInput {
  49682. s.DryRun = &v
  49683. return s
  49684. }
  49685. // SetRouteTableId sets the RouteTableId field's value.
  49686. func (s *ReplaceRouteTableAssociationInput) SetRouteTableId(v string) *ReplaceRouteTableAssociationInput {
  49687. s.RouteTableId = &v
  49688. return s
  49689. }
  49690. // Contains the output of ReplaceRouteTableAssociation.
  49691. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRouteTableAssociationResult
  49692. type ReplaceRouteTableAssociationOutput struct {
  49693. _ struct{} `type:"structure"`
  49694. // The ID of the new association.
  49695. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  49696. }
  49697. // String returns the string representation
  49698. func (s ReplaceRouteTableAssociationOutput) String() string {
  49699. return awsutil.Prettify(s)
  49700. }
  49701. // GoString returns the string representation
  49702. func (s ReplaceRouteTableAssociationOutput) GoString() string {
  49703. return s.String()
  49704. }
  49705. // SetNewAssociationId sets the NewAssociationId field's value.
  49706. func (s *ReplaceRouteTableAssociationOutput) SetNewAssociationId(v string) *ReplaceRouteTableAssociationOutput {
  49707. s.NewAssociationId = &v
  49708. return s
  49709. }
  49710. // Contains the parameters for ReportInstanceStatus.
  49711. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatusRequest
  49712. type ReportInstanceStatusInput struct {
  49713. _ struct{} `type:"structure"`
  49714. // Descriptive text about the health state of your instance.
  49715. Description *string `locationName:"description" type:"string"`
  49716. // Checks whether you have the required permissions for the action, without
  49717. // actually making the request, and provides an error response. If you have
  49718. // the required permissions, the error response is DryRunOperation. Otherwise,
  49719. // it is UnauthorizedOperation.
  49720. DryRun *bool `locationName:"dryRun" type:"boolean"`
  49721. // The time at which the reported instance health state ended.
  49722. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  49723. // One or more instances.
  49724. //
  49725. // Instances is a required field
  49726. Instances []*string `locationName:"instanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  49727. // One or more reason codes that describe the health state of your instance.
  49728. //
  49729. // * instance-stuck-in-state: My instance is stuck in a state.
  49730. //
  49731. // * unresponsive: My instance is unresponsive.
  49732. //
  49733. // * not-accepting-credentials: My instance is not accepting my credentials.
  49734. //
  49735. // * password-not-available: A password is not available for my instance.
  49736. //
  49737. // * performance-network: My instance is experiencing performance problems
  49738. // that I believe are network related.
  49739. //
  49740. // * performance-instance-store: My instance is experiencing performance
  49741. // problems that I believe are related to the instance stores.
  49742. //
  49743. // * performance-ebs-volume: My instance is experiencing performance problems
  49744. // that I believe are related to an EBS volume.
  49745. //
  49746. // * performance-other: My instance is experiencing performance problems.
  49747. //
  49748. // * other: [explain using the description parameter]
  49749. //
  49750. // ReasonCodes is a required field
  49751. ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"`
  49752. // The time at which the reported instance health state began.
  49753. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  49754. // The status of all instances listed.
  49755. //
  49756. // Status is a required field
  49757. Status *string `locationName:"status" type:"string" required:"true" enum:"ReportStatusType"`
  49758. }
  49759. // String returns the string representation
  49760. func (s ReportInstanceStatusInput) String() string {
  49761. return awsutil.Prettify(s)
  49762. }
  49763. // GoString returns the string representation
  49764. func (s ReportInstanceStatusInput) GoString() string {
  49765. return s.String()
  49766. }
  49767. // Validate inspects the fields of the type to determine if they are valid.
  49768. func (s *ReportInstanceStatusInput) Validate() error {
  49769. invalidParams := request.ErrInvalidParams{Context: "ReportInstanceStatusInput"}
  49770. if s.Instances == nil {
  49771. invalidParams.Add(request.NewErrParamRequired("Instances"))
  49772. }
  49773. if s.ReasonCodes == nil {
  49774. invalidParams.Add(request.NewErrParamRequired("ReasonCodes"))
  49775. }
  49776. if s.Status == nil {
  49777. invalidParams.Add(request.NewErrParamRequired("Status"))
  49778. }
  49779. if invalidParams.Len() > 0 {
  49780. return invalidParams
  49781. }
  49782. return nil
  49783. }
  49784. // SetDescription sets the Description field's value.
  49785. func (s *ReportInstanceStatusInput) SetDescription(v string) *ReportInstanceStatusInput {
  49786. s.Description = &v
  49787. return s
  49788. }
  49789. // SetDryRun sets the DryRun field's value.
  49790. func (s *ReportInstanceStatusInput) SetDryRun(v bool) *ReportInstanceStatusInput {
  49791. s.DryRun = &v
  49792. return s
  49793. }
  49794. // SetEndTime sets the EndTime field's value.
  49795. func (s *ReportInstanceStatusInput) SetEndTime(v time.Time) *ReportInstanceStatusInput {
  49796. s.EndTime = &v
  49797. return s
  49798. }
  49799. // SetInstances sets the Instances field's value.
  49800. func (s *ReportInstanceStatusInput) SetInstances(v []*string) *ReportInstanceStatusInput {
  49801. s.Instances = v
  49802. return s
  49803. }
  49804. // SetReasonCodes sets the ReasonCodes field's value.
  49805. func (s *ReportInstanceStatusInput) SetReasonCodes(v []*string) *ReportInstanceStatusInput {
  49806. s.ReasonCodes = v
  49807. return s
  49808. }
  49809. // SetStartTime sets the StartTime field's value.
  49810. func (s *ReportInstanceStatusInput) SetStartTime(v time.Time) *ReportInstanceStatusInput {
  49811. s.StartTime = &v
  49812. return s
  49813. }
  49814. // SetStatus sets the Status field's value.
  49815. func (s *ReportInstanceStatusInput) SetStatus(v string) *ReportInstanceStatusInput {
  49816. s.Status = &v
  49817. return s
  49818. }
  49819. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReportInstanceStatusOutput
  49820. type ReportInstanceStatusOutput struct {
  49821. _ struct{} `type:"structure"`
  49822. }
  49823. // String returns the string representation
  49824. func (s ReportInstanceStatusOutput) String() string {
  49825. return awsutil.Prettify(s)
  49826. }
  49827. // GoString returns the string representation
  49828. func (s ReportInstanceStatusOutput) GoString() string {
  49829. return s.String()
  49830. }
  49831. // The information to include in the launch template.
  49832. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestLaunchTemplateData
  49833. type RequestLaunchTemplateData struct {
  49834. _ struct{} `type:"structure"`
  49835. // The block device mapping.
  49836. //
  49837. // Supplying both a snapshot ID and an encryption value as arguments for block-device
  49838. // mapping results in an error. This is because only blank volumes can be encrypted
  49839. // on start, and these are not created from a snapshot. If a snapshot is the
  49840. // basis for the volume, it contains data by definition and its encryption status
  49841. // cannot be changed using this action.
  49842. BlockDeviceMappings []*LaunchTemplateBlockDeviceMappingRequest `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  49843. // The credit option for CPU usage of the instance. Valid for T2 instances only.
  49844. CreditSpecification *CreditSpecificationRequest `type:"structure"`
  49845. // If set to true, you can't terminate the instance using the Amazon EC2 console,
  49846. // CLI, or API. To change this attribute to false after launch, use ModifyInstanceAttribute.
  49847. DisableApiTermination *bool `type:"boolean"`
  49848. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  49849. // provides dedicated throughput to Amazon EBS and an optimized configuration
  49850. // stack to provide optimal Amazon EBS I/O performance. This optimization isn't
  49851. // available with all instance types. Additional usage charges apply when using
  49852. // an EBS-optimized instance.
  49853. EbsOptimized *bool `type:"boolean"`
  49854. // An elastic GPU to associate with the instance.
  49855. ElasticGpuSpecifications []*ElasticGpuSpecification `locationName:"ElasticGpuSpecification" locationNameList:"ElasticGpuSpecification" type:"list"`
  49856. // The IAM instance profile.
  49857. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest `type:"structure"`
  49858. // The ID of the AMI, which you can get by using DescribeImages.
  49859. ImageId *string `type:"string"`
  49860. // Indicates whether an instance stops or terminates when you initiate shutdown
  49861. // from the instance (using the operating system command for system shutdown).
  49862. //
  49863. // Default: stop
  49864. InstanceInitiatedShutdownBehavior *string `type:"string" enum:"ShutdownBehavior"`
  49865. // The market (purchasing) option for the instances.
  49866. InstanceMarketOptions *LaunchTemplateInstanceMarketOptionsRequest `type:"structure"`
  49867. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  49868. // in the Amazon Elastic Compute Cloud User Guide.
  49869. InstanceType *string `type:"string" enum:"InstanceType"`
  49870. // The ID of the kernel.
  49871. //
  49872. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  49873. // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  49874. // in the Amazon Elastic Compute Cloud User Guide.
  49875. KernelId *string `type:"string"`
  49876. // The name of the key pair. You can create a key pair using CreateKeyPair or
  49877. // ImportKeyPair.
  49878. //
  49879. // If you do not specify a key pair, you can't connect to the instance unless
  49880. // you choose an AMI that is configured to allow users another way to log in.
  49881. KeyName *string `type:"string"`
  49882. // The monitoring for the instance.
  49883. Monitoring *LaunchTemplatesMonitoringRequest `type:"structure"`
  49884. // One or more network interfaces.
  49885. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest `locationName:"NetworkInterface" locationNameList:"InstanceNetworkInterfaceSpecification" type:"list"`
  49886. // The placement for the instance.
  49887. Placement *LaunchTemplatePlacementRequest `type:"structure"`
  49888. // The ID of the RAM disk.
  49889. //
  49890. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  49891. // information, see User Provided Kernels (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  49892. // in the Amazon Elastic Compute Cloud User Guide.
  49893. RamDiskId *string `type:"string"`
  49894. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  49895. // You cannot specify both a security group ID and security name in the same
  49896. // request.
  49897. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  49898. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  49899. // VPC, you must use security group IDs instead. You cannot specify both a security
  49900. // group ID and security name in the same request.
  49901. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  49902. // The tags to apply to the resources during launch. You can tag instances and
  49903. // volumes. The specified tags are applied to all instances or volumes that
  49904. // are created during launch.
  49905. TagSpecifications []*LaunchTemplateTagSpecificationRequest `locationName:"TagSpecification" locationNameList:"LaunchTemplateTagSpecificationRequest" type:"list"`
  49906. // The user data to make available to the instance. For more information, see
  49907. // Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  49908. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  49909. // (Windows). If you are using a command line tool, base64-encoding is performed
  49910. // for you and you can load the text from a file. Otherwise, you must provide
  49911. // base64-encoded text.
  49912. UserData *string `type:"string"`
  49913. }
  49914. // String returns the string representation
  49915. func (s RequestLaunchTemplateData) String() string {
  49916. return awsutil.Prettify(s)
  49917. }
  49918. // GoString returns the string representation
  49919. func (s RequestLaunchTemplateData) GoString() string {
  49920. return s.String()
  49921. }
  49922. // Validate inspects the fields of the type to determine if they are valid.
  49923. func (s *RequestLaunchTemplateData) Validate() error {
  49924. invalidParams := request.ErrInvalidParams{Context: "RequestLaunchTemplateData"}
  49925. if s.CreditSpecification != nil {
  49926. if err := s.CreditSpecification.Validate(); err != nil {
  49927. invalidParams.AddNested("CreditSpecification", err.(request.ErrInvalidParams))
  49928. }
  49929. }
  49930. if s.ElasticGpuSpecifications != nil {
  49931. for i, v := range s.ElasticGpuSpecifications {
  49932. if v == nil {
  49933. continue
  49934. }
  49935. if err := v.Validate(); err != nil {
  49936. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecifications", i), err.(request.ErrInvalidParams))
  49937. }
  49938. }
  49939. }
  49940. if s.NetworkInterfaces != nil {
  49941. for i, v := range s.NetworkInterfaces {
  49942. if v == nil {
  49943. continue
  49944. }
  49945. if err := v.Validate(); err != nil {
  49946. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  49947. }
  49948. }
  49949. }
  49950. if invalidParams.Len() > 0 {
  49951. return invalidParams
  49952. }
  49953. return nil
  49954. }
  49955. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  49956. func (s *RequestLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMappingRequest) *RequestLaunchTemplateData {
  49957. s.BlockDeviceMappings = v
  49958. return s
  49959. }
  49960. // SetCreditSpecification sets the CreditSpecification field's value.
  49961. func (s *RequestLaunchTemplateData) SetCreditSpecification(v *CreditSpecificationRequest) *RequestLaunchTemplateData {
  49962. s.CreditSpecification = v
  49963. return s
  49964. }
  49965. // SetDisableApiTermination sets the DisableApiTermination field's value.
  49966. func (s *RequestLaunchTemplateData) SetDisableApiTermination(v bool) *RequestLaunchTemplateData {
  49967. s.DisableApiTermination = &v
  49968. return s
  49969. }
  49970. // SetEbsOptimized sets the EbsOptimized field's value.
  49971. func (s *RequestLaunchTemplateData) SetEbsOptimized(v bool) *RequestLaunchTemplateData {
  49972. s.EbsOptimized = &v
  49973. return s
  49974. }
  49975. // SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.
  49976. func (s *RequestLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecification) *RequestLaunchTemplateData {
  49977. s.ElasticGpuSpecifications = v
  49978. return s
  49979. }
  49980. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  49981. func (s *RequestLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecificationRequest) *RequestLaunchTemplateData {
  49982. s.IamInstanceProfile = v
  49983. return s
  49984. }
  49985. // SetImageId sets the ImageId field's value.
  49986. func (s *RequestLaunchTemplateData) SetImageId(v string) *RequestLaunchTemplateData {
  49987. s.ImageId = &v
  49988. return s
  49989. }
  49990. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  49991. func (s *RequestLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *RequestLaunchTemplateData {
  49992. s.InstanceInitiatedShutdownBehavior = &v
  49993. return s
  49994. }
  49995. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  49996. func (s *RequestLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptionsRequest) *RequestLaunchTemplateData {
  49997. s.InstanceMarketOptions = v
  49998. return s
  49999. }
  50000. // SetInstanceType sets the InstanceType field's value.
  50001. func (s *RequestLaunchTemplateData) SetInstanceType(v string) *RequestLaunchTemplateData {
  50002. s.InstanceType = &v
  50003. return s
  50004. }
  50005. // SetKernelId sets the KernelId field's value.
  50006. func (s *RequestLaunchTemplateData) SetKernelId(v string) *RequestLaunchTemplateData {
  50007. s.KernelId = &v
  50008. return s
  50009. }
  50010. // SetKeyName sets the KeyName field's value.
  50011. func (s *RequestLaunchTemplateData) SetKeyName(v string) *RequestLaunchTemplateData {
  50012. s.KeyName = &v
  50013. return s
  50014. }
  50015. // SetMonitoring sets the Monitoring field's value.
  50016. func (s *RequestLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoringRequest) *RequestLaunchTemplateData {
  50017. s.Monitoring = v
  50018. return s
  50019. }
  50020. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  50021. func (s *RequestLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) *RequestLaunchTemplateData {
  50022. s.NetworkInterfaces = v
  50023. return s
  50024. }
  50025. // SetPlacement sets the Placement field's value.
  50026. func (s *RequestLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacementRequest) *RequestLaunchTemplateData {
  50027. s.Placement = v
  50028. return s
  50029. }
  50030. // SetRamDiskId sets the RamDiskId field's value.
  50031. func (s *RequestLaunchTemplateData) SetRamDiskId(v string) *RequestLaunchTemplateData {
  50032. s.RamDiskId = &v
  50033. return s
  50034. }
  50035. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  50036. func (s *RequestLaunchTemplateData) SetSecurityGroupIds(v []*string) *RequestLaunchTemplateData {
  50037. s.SecurityGroupIds = v
  50038. return s
  50039. }
  50040. // SetSecurityGroups sets the SecurityGroups field's value.
  50041. func (s *RequestLaunchTemplateData) SetSecurityGroups(v []*string) *RequestLaunchTemplateData {
  50042. s.SecurityGroups = v
  50043. return s
  50044. }
  50045. // SetTagSpecifications sets the TagSpecifications field's value.
  50046. func (s *RequestLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecificationRequest) *RequestLaunchTemplateData {
  50047. s.TagSpecifications = v
  50048. return s
  50049. }
  50050. // SetUserData sets the UserData field's value.
  50051. func (s *RequestLaunchTemplateData) SetUserData(v string) *RequestLaunchTemplateData {
  50052. s.UserData = &v
  50053. return s
  50054. }
  50055. // Contains the parameters for RequestSpotFleet.
  50056. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleetRequest
  50057. type RequestSpotFleetInput struct {
  50058. _ struct{} `type:"structure"`
  50059. // Checks whether you have the required permissions for the action, without
  50060. // actually making the request, and provides an error response. If you have
  50061. // the required permissions, the error response is DryRunOperation. Otherwise,
  50062. // it is UnauthorizedOperation.
  50063. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50064. // The configuration for the Spot Fleet request.
  50065. //
  50066. // SpotFleetRequestConfig is a required field
  50067. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  50068. }
  50069. // String returns the string representation
  50070. func (s RequestSpotFleetInput) String() string {
  50071. return awsutil.Prettify(s)
  50072. }
  50073. // GoString returns the string representation
  50074. func (s RequestSpotFleetInput) GoString() string {
  50075. return s.String()
  50076. }
  50077. // Validate inspects the fields of the type to determine if they are valid.
  50078. func (s *RequestSpotFleetInput) Validate() error {
  50079. invalidParams := request.ErrInvalidParams{Context: "RequestSpotFleetInput"}
  50080. if s.SpotFleetRequestConfig == nil {
  50081. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestConfig"))
  50082. }
  50083. if s.SpotFleetRequestConfig != nil {
  50084. if err := s.SpotFleetRequestConfig.Validate(); err != nil {
  50085. invalidParams.AddNested("SpotFleetRequestConfig", err.(request.ErrInvalidParams))
  50086. }
  50087. }
  50088. if invalidParams.Len() > 0 {
  50089. return invalidParams
  50090. }
  50091. return nil
  50092. }
  50093. // SetDryRun sets the DryRun field's value.
  50094. func (s *RequestSpotFleetInput) SetDryRun(v bool) *RequestSpotFleetInput {
  50095. s.DryRun = &v
  50096. return s
  50097. }
  50098. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  50099. func (s *RequestSpotFleetInput) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *RequestSpotFleetInput {
  50100. s.SpotFleetRequestConfig = v
  50101. return s
  50102. }
  50103. // Contains the output of RequestSpotFleet.
  50104. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotFleetResponse
  50105. type RequestSpotFleetOutput struct {
  50106. _ struct{} `type:"structure"`
  50107. // The ID of the Spot Fleet request.
  50108. //
  50109. // SpotFleetRequestId is a required field
  50110. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  50111. }
  50112. // String returns the string representation
  50113. func (s RequestSpotFleetOutput) String() string {
  50114. return awsutil.Prettify(s)
  50115. }
  50116. // GoString returns the string representation
  50117. func (s RequestSpotFleetOutput) GoString() string {
  50118. return s.String()
  50119. }
  50120. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  50121. func (s *RequestSpotFleetOutput) SetSpotFleetRequestId(v string) *RequestSpotFleetOutput {
  50122. s.SpotFleetRequestId = &v
  50123. return s
  50124. }
  50125. // Contains the parameters for RequestSpotInstances.
  50126. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstancesRequest
  50127. type RequestSpotInstancesInput struct {
  50128. _ struct{} `type:"structure"`
  50129. // The user-specified name for a logical grouping of requests.
  50130. //
  50131. // When you specify an Availability Zone group in a Spot Instance request, all
  50132. // Spot Instances in the request are launched in the same Availability Zone.
  50133. // Instance proximity is maintained with this parameter, but the choice of Availability
  50134. // Zone is not. The group applies only to requests for Spot Instances of the
  50135. // same instance type. Any additional Spot Instance requests that are specified
  50136. // with the same Availability Zone group name are launched in that same Availability
  50137. // Zone, as long as at least one instance from the group is still active.
  50138. //
  50139. // If there is no active instance running in the Availability Zone group that
  50140. // you specify for a new Spot Instance request (all instances are terminated,
  50141. // the request is expired, or the maximum price you specified falls below current
  50142. // Spot price), then Amazon EC2 launches the instance in any Availability Zone
  50143. // where the constraint can be met. Consequently, the subsequent set of Spot
  50144. // Instances could be placed in a different zone from the original request,
  50145. // even if you specified the same Availability Zone group.
  50146. //
  50147. // Default: Instances are launched in any available Availability Zone.
  50148. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  50149. // The required duration for the Spot Instances (also known as Spot blocks),
  50150. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  50151. // or 360).
  50152. //
  50153. // The duration period starts as soon as your Spot Instance receives its instance
  50154. // ID. At the end of the duration period, Amazon EC2 marks the Spot Instance
  50155. // for termination and provides a Spot Instance termination notice, which gives
  50156. // the instance a two-minute warning before it terminates.
  50157. //
  50158. // Note that you can't specify an Availability Zone group or a launch group
  50159. // if you specify a duration.
  50160. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  50161. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  50162. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  50163. // in the Amazon Elastic Compute Cloud User Guide.
  50164. ClientToken *string `locationName:"clientToken" type:"string"`
  50165. // Checks whether you have the required permissions for the action, without
  50166. // actually making the request, and provides an error response. If you have
  50167. // the required permissions, the error response is DryRunOperation. Otherwise,
  50168. // it is UnauthorizedOperation.
  50169. DryRun *bool `locationName:"dryRun" type:"boolean"`
  50170. // The maximum number of Spot Instances to launch.
  50171. //
  50172. // Default: 1
  50173. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  50174. // The behavior when a Spot Instance is interrupted. The default is terminate.
  50175. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  50176. // The instance launch group. Launch groups are Spot Instances that launch together
  50177. // and terminate together.
  50178. //
  50179. // Default: Instances are launched and terminated individually
  50180. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  50181. // The launch specification.
  50182. LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"`
  50183. // The maximum price per hour that you are willing to pay for a Spot Instance.
  50184. // The default is the On-Demand price.
  50185. SpotPrice *string `locationName:"spotPrice" type:"string"`
  50186. // The Spot Instance request type.
  50187. //
  50188. // Default: one-time
  50189. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  50190. // The start date of the request. If this is a one-time request, the request
  50191. // becomes active at this date and time and remains active until all instances
  50192. // launch, the request expires, or the request is canceled. If the request is
  50193. // persistent, the request becomes active at this date and time and remains
  50194. // active until it expires or is canceled.
  50195. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  50196. // The end date of the request. If this is a one-time request, the request remains
  50197. // active until all instances launch, the request is canceled, or this date
  50198. // is reached. If the request is persistent, it remains active until it is canceled
  50199. // or this date is reached. The default end date is 7 days from the current
  50200. // date.
  50201. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  50202. }
  50203. // String returns the string representation
  50204. func (s RequestSpotInstancesInput) String() string {
  50205. return awsutil.Prettify(s)
  50206. }
  50207. // GoString returns the string representation
  50208. func (s RequestSpotInstancesInput) GoString() string {
  50209. return s.String()
  50210. }
  50211. // Validate inspects the fields of the type to determine if they are valid.
  50212. func (s *RequestSpotInstancesInput) Validate() error {
  50213. invalidParams := request.ErrInvalidParams{Context: "RequestSpotInstancesInput"}
  50214. if s.LaunchSpecification != nil {
  50215. if err := s.LaunchSpecification.Validate(); err != nil {
  50216. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  50217. }
  50218. }
  50219. if invalidParams.Len() > 0 {
  50220. return invalidParams
  50221. }
  50222. return nil
  50223. }
  50224. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  50225. func (s *RequestSpotInstancesInput) SetAvailabilityZoneGroup(v string) *RequestSpotInstancesInput {
  50226. s.AvailabilityZoneGroup = &v
  50227. return s
  50228. }
  50229. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  50230. func (s *RequestSpotInstancesInput) SetBlockDurationMinutes(v int64) *RequestSpotInstancesInput {
  50231. s.BlockDurationMinutes = &v
  50232. return s
  50233. }
  50234. // SetClientToken sets the ClientToken field's value.
  50235. func (s *RequestSpotInstancesInput) SetClientToken(v string) *RequestSpotInstancesInput {
  50236. s.ClientToken = &v
  50237. return s
  50238. }
  50239. // SetDryRun sets the DryRun field's value.
  50240. func (s *RequestSpotInstancesInput) SetDryRun(v bool) *RequestSpotInstancesInput {
  50241. s.DryRun = &v
  50242. return s
  50243. }
  50244. // SetInstanceCount sets the InstanceCount field's value.
  50245. func (s *RequestSpotInstancesInput) SetInstanceCount(v int64) *RequestSpotInstancesInput {
  50246. s.InstanceCount = &v
  50247. return s
  50248. }
  50249. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  50250. func (s *RequestSpotInstancesInput) SetInstanceInterruptionBehavior(v string) *RequestSpotInstancesInput {
  50251. s.InstanceInterruptionBehavior = &v
  50252. return s
  50253. }
  50254. // SetLaunchGroup sets the LaunchGroup field's value.
  50255. func (s *RequestSpotInstancesInput) SetLaunchGroup(v string) *RequestSpotInstancesInput {
  50256. s.LaunchGroup = &v
  50257. return s
  50258. }
  50259. // SetLaunchSpecification sets the LaunchSpecification field's value.
  50260. func (s *RequestSpotInstancesInput) SetLaunchSpecification(v *RequestSpotLaunchSpecification) *RequestSpotInstancesInput {
  50261. s.LaunchSpecification = v
  50262. return s
  50263. }
  50264. // SetSpotPrice sets the SpotPrice field's value.
  50265. func (s *RequestSpotInstancesInput) SetSpotPrice(v string) *RequestSpotInstancesInput {
  50266. s.SpotPrice = &v
  50267. return s
  50268. }
  50269. // SetType sets the Type field's value.
  50270. func (s *RequestSpotInstancesInput) SetType(v string) *RequestSpotInstancesInput {
  50271. s.Type = &v
  50272. return s
  50273. }
  50274. // SetValidFrom sets the ValidFrom field's value.
  50275. func (s *RequestSpotInstancesInput) SetValidFrom(v time.Time) *RequestSpotInstancesInput {
  50276. s.ValidFrom = &v
  50277. return s
  50278. }
  50279. // SetValidUntil sets the ValidUntil field's value.
  50280. func (s *RequestSpotInstancesInput) SetValidUntil(v time.Time) *RequestSpotInstancesInput {
  50281. s.ValidUntil = &v
  50282. return s
  50283. }
  50284. // Contains the output of RequestSpotInstances.
  50285. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotInstancesResult
  50286. type RequestSpotInstancesOutput struct {
  50287. _ struct{} `type:"structure"`
  50288. // One or more Spot Instance requests.
  50289. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  50290. }
  50291. // String returns the string representation
  50292. func (s RequestSpotInstancesOutput) String() string {
  50293. return awsutil.Prettify(s)
  50294. }
  50295. // GoString returns the string representation
  50296. func (s RequestSpotInstancesOutput) GoString() string {
  50297. return s.String()
  50298. }
  50299. // SetSpotInstanceRequests sets the SpotInstanceRequests field's value.
  50300. func (s *RequestSpotInstancesOutput) SetSpotInstanceRequests(v []*SpotInstanceRequest) *RequestSpotInstancesOutput {
  50301. s.SpotInstanceRequests = v
  50302. return s
  50303. }
  50304. // Describes the launch specification for an instance.
  50305. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestSpotLaunchSpecification
  50306. type RequestSpotLaunchSpecification struct {
  50307. _ struct{} `type:"structure"`
  50308. // Deprecated.
  50309. AddressingType *string `locationName:"addressingType" type:"string"`
  50310. // One or more block device mapping entries. You can't specify both a snapshot
  50311. // ID and an encryption value. This is because only blank volumes can be encrypted
  50312. // on creation. If a snapshot is the basis for a volume, it is not blank and
  50313. // its encryption status is used for the volume encryption status.
  50314. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  50315. // Indicates whether the instance is optimized for EBS I/O. This optimization
  50316. // provides dedicated throughput to Amazon EBS and an optimized configuration
  50317. // stack to provide optimal EBS I/O performance. This optimization isn't available
  50318. // with all instance types. Additional usage charges apply when using an EBS
  50319. // Optimized instance.
  50320. //
  50321. // Default: false
  50322. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  50323. // The IAM instance profile.
  50324. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  50325. // The ID of the AMI.
  50326. ImageId *string `locationName:"imageId" type:"string"`
  50327. // The instance type.
  50328. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  50329. // The ID of the kernel.
  50330. KernelId *string `locationName:"kernelId" type:"string"`
  50331. // The name of the key pair.
  50332. KeyName *string `locationName:"keyName" type:"string"`
  50333. // Indicates whether basic or detailed monitoring is enabled for the instance.
  50334. //
  50335. // Default: Disabled
  50336. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  50337. // One or more network interfaces. If you specify a network interface, you must
  50338. // specify subnet IDs and security group IDs using the network interface.
  50339. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"`
  50340. // The placement information for the instance.
  50341. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  50342. // The ID of the RAM disk.
  50343. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  50344. // One or more security group IDs.
  50345. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  50346. // One or more security groups. When requesting instances in a VPC, you must
  50347. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  50348. // you can specify the names or the IDs of the security groups.
  50349. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"item" type:"list"`
  50350. // The ID of the subnet in which to launch the instance.
  50351. SubnetId *string `locationName:"subnetId" type:"string"`
  50352. // The user data to make available to the instances. If you are using an AWS
  50353. // SDK or command line tool, Base64-encoding is performed for you, and you can
  50354. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  50355. UserData *string `locationName:"userData" type:"string"`
  50356. }
  50357. // String returns the string representation
  50358. func (s RequestSpotLaunchSpecification) String() string {
  50359. return awsutil.Prettify(s)
  50360. }
  50361. // GoString returns the string representation
  50362. func (s RequestSpotLaunchSpecification) GoString() string {
  50363. return s.String()
  50364. }
  50365. // Validate inspects the fields of the type to determine if they are valid.
  50366. func (s *RequestSpotLaunchSpecification) Validate() error {
  50367. invalidParams := request.ErrInvalidParams{Context: "RequestSpotLaunchSpecification"}
  50368. if s.Monitoring != nil {
  50369. if err := s.Monitoring.Validate(); err != nil {
  50370. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  50371. }
  50372. }
  50373. if s.NetworkInterfaces != nil {
  50374. for i, v := range s.NetworkInterfaces {
  50375. if v == nil {
  50376. continue
  50377. }
  50378. if err := v.Validate(); err != nil {
  50379. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  50380. }
  50381. }
  50382. }
  50383. if invalidParams.Len() > 0 {
  50384. return invalidParams
  50385. }
  50386. return nil
  50387. }
  50388. // SetAddressingType sets the AddressingType field's value.
  50389. func (s *RequestSpotLaunchSpecification) SetAddressingType(v string) *RequestSpotLaunchSpecification {
  50390. s.AddressingType = &v
  50391. return s
  50392. }
  50393. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  50394. func (s *RequestSpotLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RequestSpotLaunchSpecification {
  50395. s.BlockDeviceMappings = v
  50396. return s
  50397. }
  50398. // SetEbsOptimized sets the EbsOptimized field's value.
  50399. func (s *RequestSpotLaunchSpecification) SetEbsOptimized(v bool) *RequestSpotLaunchSpecification {
  50400. s.EbsOptimized = &v
  50401. return s
  50402. }
  50403. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  50404. func (s *RequestSpotLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RequestSpotLaunchSpecification {
  50405. s.IamInstanceProfile = v
  50406. return s
  50407. }
  50408. // SetImageId sets the ImageId field's value.
  50409. func (s *RequestSpotLaunchSpecification) SetImageId(v string) *RequestSpotLaunchSpecification {
  50410. s.ImageId = &v
  50411. return s
  50412. }
  50413. // SetInstanceType sets the InstanceType field's value.
  50414. func (s *RequestSpotLaunchSpecification) SetInstanceType(v string) *RequestSpotLaunchSpecification {
  50415. s.InstanceType = &v
  50416. return s
  50417. }
  50418. // SetKernelId sets the KernelId field's value.
  50419. func (s *RequestSpotLaunchSpecification) SetKernelId(v string) *RequestSpotLaunchSpecification {
  50420. s.KernelId = &v
  50421. return s
  50422. }
  50423. // SetKeyName sets the KeyName field's value.
  50424. func (s *RequestSpotLaunchSpecification) SetKeyName(v string) *RequestSpotLaunchSpecification {
  50425. s.KeyName = &v
  50426. return s
  50427. }
  50428. // SetMonitoring sets the Monitoring field's value.
  50429. func (s *RequestSpotLaunchSpecification) SetMonitoring(v *RunInstancesMonitoringEnabled) *RequestSpotLaunchSpecification {
  50430. s.Monitoring = v
  50431. return s
  50432. }
  50433. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  50434. func (s *RequestSpotLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RequestSpotLaunchSpecification {
  50435. s.NetworkInterfaces = v
  50436. return s
  50437. }
  50438. // SetPlacement sets the Placement field's value.
  50439. func (s *RequestSpotLaunchSpecification) SetPlacement(v *SpotPlacement) *RequestSpotLaunchSpecification {
  50440. s.Placement = v
  50441. return s
  50442. }
  50443. // SetRamdiskId sets the RamdiskId field's value.
  50444. func (s *RequestSpotLaunchSpecification) SetRamdiskId(v string) *RequestSpotLaunchSpecification {
  50445. s.RamdiskId = &v
  50446. return s
  50447. }
  50448. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  50449. func (s *RequestSpotLaunchSpecification) SetSecurityGroupIds(v []*string) *RequestSpotLaunchSpecification {
  50450. s.SecurityGroupIds = v
  50451. return s
  50452. }
  50453. // SetSecurityGroups sets the SecurityGroups field's value.
  50454. func (s *RequestSpotLaunchSpecification) SetSecurityGroups(v []*string) *RequestSpotLaunchSpecification {
  50455. s.SecurityGroups = v
  50456. return s
  50457. }
  50458. // SetSubnetId sets the SubnetId field's value.
  50459. func (s *RequestSpotLaunchSpecification) SetSubnetId(v string) *RequestSpotLaunchSpecification {
  50460. s.SubnetId = &v
  50461. return s
  50462. }
  50463. // SetUserData sets the UserData field's value.
  50464. func (s *RequestSpotLaunchSpecification) SetUserData(v string) *RequestSpotLaunchSpecification {
  50465. s.UserData = &v
  50466. return s
  50467. }
  50468. // Describes a reservation.
  50469. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Reservation
  50470. type Reservation struct {
  50471. _ struct{} `type:"structure"`
  50472. // [EC2-Classic only] One or more security groups.
  50473. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  50474. // One or more instances.
  50475. Instances []*Instance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  50476. // The ID of the AWS account that owns the reservation.
  50477. OwnerId *string `locationName:"ownerId" type:"string"`
  50478. // The ID of the requester that launched the instances on your behalf (for example,
  50479. // AWS Management Console or Auto Scaling).
  50480. RequesterId *string `locationName:"requesterId" type:"string"`
  50481. // The ID of the reservation.
  50482. ReservationId *string `locationName:"reservationId" type:"string"`
  50483. }
  50484. // String returns the string representation
  50485. func (s Reservation) String() string {
  50486. return awsutil.Prettify(s)
  50487. }
  50488. // GoString returns the string representation
  50489. func (s Reservation) GoString() string {
  50490. return s.String()
  50491. }
  50492. // SetGroups sets the Groups field's value.
  50493. func (s *Reservation) SetGroups(v []*GroupIdentifier) *Reservation {
  50494. s.Groups = v
  50495. return s
  50496. }
  50497. // SetInstances sets the Instances field's value.
  50498. func (s *Reservation) SetInstances(v []*Instance) *Reservation {
  50499. s.Instances = v
  50500. return s
  50501. }
  50502. // SetOwnerId sets the OwnerId field's value.
  50503. func (s *Reservation) SetOwnerId(v string) *Reservation {
  50504. s.OwnerId = &v
  50505. return s
  50506. }
  50507. // SetRequesterId sets the RequesterId field's value.
  50508. func (s *Reservation) SetRequesterId(v string) *Reservation {
  50509. s.RequesterId = &v
  50510. return s
  50511. }
  50512. // SetReservationId sets the ReservationId field's value.
  50513. func (s *Reservation) SetReservationId(v string) *Reservation {
  50514. s.ReservationId = &v
  50515. return s
  50516. }
  50517. // The cost associated with the Reserved Instance.
  50518. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservationValue
  50519. type ReservationValue struct {
  50520. _ struct{} `type:"structure"`
  50521. // The hourly rate of the reservation.
  50522. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  50523. // The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice
  50524. // * number of hours remaining).
  50525. RemainingTotalValue *string `locationName:"remainingTotalValue" type:"string"`
  50526. // The remaining upfront cost of the reservation.
  50527. RemainingUpfrontValue *string `locationName:"remainingUpfrontValue" type:"string"`
  50528. }
  50529. // String returns the string representation
  50530. func (s ReservationValue) String() string {
  50531. return awsutil.Prettify(s)
  50532. }
  50533. // GoString returns the string representation
  50534. func (s ReservationValue) GoString() string {
  50535. return s.String()
  50536. }
  50537. // SetHourlyPrice sets the HourlyPrice field's value.
  50538. func (s *ReservationValue) SetHourlyPrice(v string) *ReservationValue {
  50539. s.HourlyPrice = &v
  50540. return s
  50541. }
  50542. // SetRemainingTotalValue sets the RemainingTotalValue field's value.
  50543. func (s *ReservationValue) SetRemainingTotalValue(v string) *ReservationValue {
  50544. s.RemainingTotalValue = &v
  50545. return s
  50546. }
  50547. // SetRemainingUpfrontValue sets the RemainingUpfrontValue field's value.
  50548. func (s *ReservationValue) SetRemainingUpfrontValue(v string) *ReservationValue {
  50549. s.RemainingUpfrontValue = &v
  50550. return s
  50551. }
  50552. // Describes the limit price of a Reserved Instance offering.
  50553. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstanceLimitPrice
  50554. type ReservedInstanceLimitPrice struct {
  50555. _ struct{} `type:"structure"`
  50556. // Used for Reserved Instance Marketplace offerings. Specifies the limit price
  50557. // on the total order (instanceCount * price).
  50558. Amount *float64 `locationName:"amount" type:"double"`
  50559. // The currency in which the limitPrice amount is specified. At this time, the
  50560. // only supported currency is USD.
  50561. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  50562. }
  50563. // String returns the string representation
  50564. func (s ReservedInstanceLimitPrice) String() string {
  50565. return awsutil.Prettify(s)
  50566. }
  50567. // GoString returns the string representation
  50568. func (s ReservedInstanceLimitPrice) GoString() string {
  50569. return s.String()
  50570. }
  50571. // SetAmount sets the Amount field's value.
  50572. func (s *ReservedInstanceLimitPrice) SetAmount(v float64) *ReservedInstanceLimitPrice {
  50573. s.Amount = &v
  50574. return s
  50575. }
  50576. // SetCurrencyCode sets the CurrencyCode field's value.
  50577. func (s *ReservedInstanceLimitPrice) SetCurrencyCode(v string) *ReservedInstanceLimitPrice {
  50578. s.CurrencyCode = &v
  50579. return s
  50580. }
  50581. // The total value of the Convertible Reserved Instance.
  50582. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstanceReservationValue
  50583. type ReservedInstanceReservationValue struct {
  50584. _ struct{} `type:"structure"`
  50585. // The total value of the Convertible Reserved Instance that you are exchanging.
  50586. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  50587. // The ID of the Convertible Reserved Instance that you are exchanging.
  50588. ReservedInstanceId *string `locationName:"reservedInstanceId" type:"string"`
  50589. }
  50590. // String returns the string representation
  50591. func (s ReservedInstanceReservationValue) String() string {
  50592. return awsutil.Prettify(s)
  50593. }
  50594. // GoString returns the string representation
  50595. func (s ReservedInstanceReservationValue) GoString() string {
  50596. return s.String()
  50597. }
  50598. // SetReservationValue sets the ReservationValue field's value.
  50599. func (s *ReservedInstanceReservationValue) SetReservationValue(v *ReservationValue) *ReservedInstanceReservationValue {
  50600. s.ReservationValue = v
  50601. return s
  50602. }
  50603. // SetReservedInstanceId sets the ReservedInstanceId field's value.
  50604. func (s *ReservedInstanceReservationValue) SetReservedInstanceId(v string) *ReservedInstanceReservationValue {
  50605. s.ReservedInstanceId = &v
  50606. return s
  50607. }
  50608. // Describes a Reserved Instance.
  50609. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstances
  50610. type ReservedInstances struct {
  50611. _ struct{} `type:"structure"`
  50612. // The Availability Zone in which the Reserved Instance can be used.
  50613. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  50614. // The currency of the Reserved Instance. It's specified using ISO 4217 standard
  50615. // currency codes. At this time, the only supported currency is USD.
  50616. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  50617. // The duration of the Reserved Instance, in seconds.
  50618. Duration *int64 `locationName:"duration" type:"long"`
  50619. // The time when the Reserved Instance expires.
  50620. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
  50621. // The purchase price of the Reserved Instance.
  50622. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  50623. // The number of reservations purchased.
  50624. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  50625. // The tenancy of the instance.
  50626. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  50627. // The instance type on which the Reserved Instance can be used.
  50628. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  50629. // The offering class of the Reserved Instance.
  50630. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  50631. // The Reserved Instance offering type.
  50632. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  50633. // The Reserved Instance product platform description.
  50634. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  50635. // The recurring charge tag assigned to the resource.
  50636. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  50637. // The ID of the Reserved Instance.
  50638. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  50639. // The scope of the Reserved Instance.
  50640. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  50641. // The date and time the Reserved Instance started.
  50642. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
  50643. // The state of the Reserved Instance purchase.
  50644. State *string `locationName:"state" type:"string" enum:"ReservedInstanceState"`
  50645. // Any tags assigned to the resource.
  50646. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  50647. // The usage price of the Reserved Instance, per hour.
  50648. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  50649. }
  50650. // String returns the string representation
  50651. func (s ReservedInstances) String() string {
  50652. return awsutil.Prettify(s)
  50653. }
  50654. // GoString returns the string representation
  50655. func (s ReservedInstances) GoString() string {
  50656. return s.String()
  50657. }
  50658. // SetAvailabilityZone sets the AvailabilityZone field's value.
  50659. func (s *ReservedInstances) SetAvailabilityZone(v string) *ReservedInstances {
  50660. s.AvailabilityZone = &v
  50661. return s
  50662. }
  50663. // SetCurrencyCode sets the CurrencyCode field's value.
  50664. func (s *ReservedInstances) SetCurrencyCode(v string) *ReservedInstances {
  50665. s.CurrencyCode = &v
  50666. return s
  50667. }
  50668. // SetDuration sets the Duration field's value.
  50669. func (s *ReservedInstances) SetDuration(v int64) *ReservedInstances {
  50670. s.Duration = &v
  50671. return s
  50672. }
  50673. // SetEnd sets the End field's value.
  50674. func (s *ReservedInstances) SetEnd(v time.Time) *ReservedInstances {
  50675. s.End = &v
  50676. return s
  50677. }
  50678. // SetFixedPrice sets the FixedPrice field's value.
  50679. func (s *ReservedInstances) SetFixedPrice(v float64) *ReservedInstances {
  50680. s.FixedPrice = &v
  50681. return s
  50682. }
  50683. // SetInstanceCount sets the InstanceCount field's value.
  50684. func (s *ReservedInstances) SetInstanceCount(v int64) *ReservedInstances {
  50685. s.InstanceCount = &v
  50686. return s
  50687. }
  50688. // SetInstanceTenancy sets the InstanceTenancy field's value.
  50689. func (s *ReservedInstances) SetInstanceTenancy(v string) *ReservedInstances {
  50690. s.InstanceTenancy = &v
  50691. return s
  50692. }
  50693. // SetInstanceType sets the InstanceType field's value.
  50694. func (s *ReservedInstances) SetInstanceType(v string) *ReservedInstances {
  50695. s.InstanceType = &v
  50696. return s
  50697. }
  50698. // SetOfferingClass sets the OfferingClass field's value.
  50699. func (s *ReservedInstances) SetOfferingClass(v string) *ReservedInstances {
  50700. s.OfferingClass = &v
  50701. return s
  50702. }
  50703. // SetOfferingType sets the OfferingType field's value.
  50704. func (s *ReservedInstances) SetOfferingType(v string) *ReservedInstances {
  50705. s.OfferingType = &v
  50706. return s
  50707. }
  50708. // SetProductDescription sets the ProductDescription field's value.
  50709. func (s *ReservedInstances) SetProductDescription(v string) *ReservedInstances {
  50710. s.ProductDescription = &v
  50711. return s
  50712. }
  50713. // SetRecurringCharges sets the RecurringCharges field's value.
  50714. func (s *ReservedInstances) SetRecurringCharges(v []*RecurringCharge) *ReservedInstances {
  50715. s.RecurringCharges = v
  50716. return s
  50717. }
  50718. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  50719. func (s *ReservedInstances) SetReservedInstancesId(v string) *ReservedInstances {
  50720. s.ReservedInstancesId = &v
  50721. return s
  50722. }
  50723. // SetScope sets the Scope field's value.
  50724. func (s *ReservedInstances) SetScope(v string) *ReservedInstances {
  50725. s.Scope = &v
  50726. return s
  50727. }
  50728. // SetStart sets the Start field's value.
  50729. func (s *ReservedInstances) SetStart(v time.Time) *ReservedInstances {
  50730. s.Start = &v
  50731. return s
  50732. }
  50733. // SetState sets the State field's value.
  50734. func (s *ReservedInstances) SetState(v string) *ReservedInstances {
  50735. s.State = &v
  50736. return s
  50737. }
  50738. // SetTags sets the Tags field's value.
  50739. func (s *ReservedInstances) SetTags(v []*Tag) *ReservedInstances {
  50740. s.Tags = v
  50741. return s
  50742. }
  50743. // SetUsagePrice sets the UsagePrice field's value.
  50744. func (s *ReservedInstances) SetUsagePrice(v float64) *ReservedInstances {
  50745. s.UsagePrice = &v
  50746. return s
  50747. }
  50748. // Describes the configuration settings for the modified Reserved Instances.
  50749. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesConfiguration
  50750. type ReservedInstancesConfiguration struct {
  50751. _ struct{} `type:"structure"`
  50752. // The Availability Zone for the modified Reserved Instances.
  50753. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  50754. // The number of modified Reserved Instances.
  50755. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  50756. // The instance type for the modified Reserved Instances.
  50757. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  50758. // The network platform of the modified Reserved Instances, which is either
  50759. // EC2-Classic or EC2-VPC.
  50760. Platform *string `locationName:"platform" type:"string"`
  50761. // Whether the Reserved Instance is applied to instances in a region or instances
  50762. // in a specific Availability Zone.
  50763. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  50764. }
  50765. // String returns the string representation
  50766. func (s ReservedInstancesConfiguration) String() string {
  50767. return awsutil.Prettify(s)
  50768. }
  50769. // GoString returns the string representation
  50770. func (s ReservedInstancesConfiguration) GoString() string {
  50771. return s.String()
  50772. }
  50773. // SetAvailabilityZone sets the AvailabilityZone field's value.
  50774. func (s *ReservedInstancesConfiguration) SetAvailabilityZone(v string) *ReservedInstancesConfiguration {
  50775. s.AvailabilityZone = &v
  50776. return s
  50777. }
  50778. // SetInstanceCount sets the InstanceCount field's value.
  50779. func (s *ReservedInstancesConfiguration) SetInstanceCount(v int64) *ReservedInstancesConfiguration {
  50780. s.InstanceCount = &v
  50781. return s
  50782. }
  50783. // SetInstanceType sets the InstanceType field's value.
  50784. func (s *ReservedInstancesConfiguration) SetInstanceType(v string) *ReservedInstancesConfiguration {
  50785. s.InstanceType = &v
  50786. return s
  50787. }
  50788. // SetPlatform sets the Platform field's value.
  50789. func (s *ReservedInstancesConfiguration) SetPlatform(v string) *ReservedInstancesConfiguration {
  50790. s.Platform = &v
  50791. return s
  50792. }
  50793. // SetScope sets the Scope field's value.
  50794. func (s *ReservedInstancesConfiguration) SetScope(v string) *ReservedInstancesConfiguration {
  50795. s.Scope = &v
  50796. return s
  50797. }
  50798. // Describes the ID of a Reserved Instance.
  50799. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesId
  50800. type ReservedInstancesId struct {
  50801. _ struct{} `type:"structure"`
  50802. // The ID of the Reserved Instance.
  50803. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  50804. }
  50805. // String returns the string representation
  50806. func (s ReservedInstancesId) String() string {
  50807. return awsutil.Prettify(s)
  50808. }
  50809. // GoString returns the string representation
  50810. func (s ReservedInstancesId) GoString() string {
  50811. return s.String()
  50812. }
  50813. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  50814. func (s *ReservedInstancesId) SetReservedInstancesId(v string) *ReservedInstancesId {
  50815. s.ReservedInstancesId = &v
  50816. return s
  50817. }
  50818. // Describes a Reserved Instance listing.
  50819. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesListing
  50820. type ReservedInstancesListing struct {
  50821. _ struct{} `type:"structure"`
  50822. // A unique, case-sensitive key supplied by the client to ensure that the request
  50823. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  50824. ClientToken *string `locationName:"clientToken" type:"string"`
  50825. // The time the listing was created.
  50826. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  50827. // The number of instances in this state.
  50828. InstanceCounts []*InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"`
  50829. // The price of the Reserved Instance listing.
  50830. PriceSchedules []*PriceSchedule `locationName:"priceSchedules" locationNameList:"item" type:"list"`
  50831. // The ID of the Reserved Instance.
  50832. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  50833. // The ID of the Reserved Instance listing.
  50834. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  50835. // The status of the Reserved Instance listing.
  50836. Status *string `locationName:"status" type:"string" enum:"ListingStatus"`
  50837. // The reason for the current status of the Reserved Instance listing. The response
  50838. // can be blank.
  50839. StatusMessage *string `locationName:"statusMessage" type:"string"`
  50840. // Any tags assigned to the resource.
  50841. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  50842. // The last modified timestamp of the listing.
  50843. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
  50844. }
  50845. // String returns the string representation
  50846. func (s ReservedInstancesListing) String() string {
  50847. return awsutil.Prettify(s)
  50848. }
  50849. // GoString returns the string representation
  50850. func (s ReservedInstancesListing) GoString() string {
  50851. return s.String()
  50852. }
  50853. // SetClientToken sets the ClientToken field's value.
  50854. func (s *ReservedInstancesListing) SetClientToken(v string) *ReservedInstancesListing {
  50855. s.ClientToken = &v
  50856. return s
  50857. }
  50858. // SetCreateDate sets the CreateDate field's value.
  50859. func (s *ReservedInstancesListing) SetCreateDate(v time.Time) *ReservedInstancesListing {
  50860. s.CreateDate = &v
  50861. return s
  50862. }
  50863. // SetInstanceCounts sets the InstanceCounts field's value.
  50864. func (s *ReservedInstancesListing) SetInstanceCounts(v []*InstanceCount) *ReservedInstancesListing {
  50865. s.InstanceCounts = v
  50866. return s
  50867. }
  50868. // SetPriceSchedules sets the PriceSchedules field's value.
  50869. func (s *ReservedInstancesListing) SetPriceSchedules(v []*PriceSchedule) *ReservedInstancesListing {
  50870. s.PriceSchedules = v
  50871. return s
  50872. }
  50873. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  50874. func (s *ReservedInstancesListing) SetReservedInstancesId(v string) *ReservedInstancesListing {
  50875. s.ReservedInstancesId = &v
  50876. return s
  50877. }
  50878. // SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.
  50879. func (s *ReservedInstancesListing) SetReservedInstancesListingId(v string) *ReservedInstancesListing {
  50880. s.ReservedInstancesListingId = &v
  50881. return s
  50882. }
  50883. // SetStatus sets the Status field's value.
  50884. func (s *ReservedInstancesListing) SetStatus(v string) *ReservedInstancesListing {
  50885. s.Status = &v
  50886. return s
  50887. }
  50888. // SetStatusMessage sets the StatusMessage field's value.
  50889. func (s *ReservedInstancesListing) SetStatusMessage(v string) *ReservedInstancesListing {
  50890. s.StatusMessage = &v
  50891. return s
  50892. }
  50893. // SetTags sets the Tags field's value.
  50894. func (s *ReservedInstancesListing) SetTags(v []*Tag) *ReservedInstancesListing {
  50895. s.Tags = v
  50896. return s
  50897. }
  50898. // SetUpdateDate sets the UpdateDate field's value.
  50899. func (s *ReservedInstancesListing) SetUpdateDate(v time.Time) *ReservedInstancesListing {
  50900. s.UpdateDate = &v
  50901. return s
  50902. }
  50903. // Describes a Reserved Instance modification.
  50904. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesModification
  50905. type ReservedInstancesModification struct {
  50906. _ struct{} `type:"structure"`
  50907. // A unique, case-sensitive key supplied by the client to ensure that the request
  50908. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  50909. ClientToken *string `locationName:"clientToken" type:"string"`
  50910. // The time when the modification request was created.
  50911. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  50912. // The time for the modification to become effective.
  50913. EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp" timestampFormat:"iso8601"`
  50914. // Contains target configurations along with their corresponding new Reserved
  50915. // Instance IDs.
  50916. ModificationResults []*ReservedInstancesModificationResult `locationName:"modificationResultSet" locationNameList:"item" type:"list"`
  50917. // The IDs of one or more Reserved Instances.
  50918. ReservedInstancesIds []*ReservedInstancesId `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  50919. // A unique ID for the Reserved Instance modification.
  50920. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  50921. // The status of the Reserved Instances modification request.
  50922. Status *string `locationName:"status" type:"string"`
  50923. // The reason for the status.
  50924. StatusMessage *string `locationName:"statusMessage" type:"string"`
  50925. // The time when the modification request was last updated.
  50926. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
  50927. }
  50928. // String returns the string representation
  50929. func (s ReservedInstancesModification) String() string {
  50930. return awsutil.Prettify(s)
  50931. }
  50932. // GoString returns the string representation
  50933. func (s ReservedInstancesModification) GoString() string {
  50934. return s.String()
  50935. }
  50936. // SetClientToken sets the ClientToken field's value.
  50937. func (s *ReservedInstancesModification) SetClientToken(v string) *ReservedInstancesModification {
  50938. s.ClientToken = &v
  50939. return s
  50940. }
  50941. // SetCreateDate sets the CreateDate field's value.
  50942. func (s *ReservedInstancesModification) SetCreateDate(v time.Time) *ReservedInstancesModification {
  50943. s.CreateDate = &v
  50944. return s
  50945. }
  50946. // SetEffectiveDate sets the EffectiveDate field's value.
  50947. func (s *ReservedInstancesModification) SetEffectiveDate(v time.Time) *ReservedInstancesModification {
  50948. s.EffectiveDate = &v
  50949. return s
  50950. }
  50951. // SetModificationResults sets the ModificationResults field's value.
  50952. func (s *ReservedInstancesModification) SetModificationResults(v []*ReservedInstancesModificationResult) *ReservedInstancesModification {
  50953. s.ModificationResults = v
  50954. return s
  50955. }
  50956. // SetReservedInstancesIds sets the ReservedInstancesIds field's value.
  50957. func (s *ReservedInstancesModification) SetReservedInstancesIds(v []*ReservedInstancesId) *ReservedInstancesModification {
  50958. s.ReservedInstancesIds = v
  50959. return s
  50960. }
  50961. // SetReservedInstancesModificationId sets the ReservedInstancesModificationId field's value.
  50962. func (s *ReservedInstancesModification) SetReservedInstancesModificationId(v string) *ReservedInstancesModification {
  50963. s.ReservedInstancesModificationId = &v
  50964. return s
  50965. }
  50966. // SetStatus sets the Status field's value.
  50967. func (s *ReservedInstancesModification) SetStatus(v string) *ReservedInstancesModification {
  50968. s.Status = &v
  50969. return s
  50970. }
  50971. // SetStatusMessage sets the StatusMessage field's value.
  50972. func (s *ReservedInstancesModification) SetStatusMessage(v string) *ReservedInstancesModification {
  50973. s.StatusMessage = &v
  50974. return s
  50975. }
  50976. // SetUpdateDate sets the UpdateDate field's value.
  50977. func (s *ReservedInstancesModification) SetUpdateDate(v time.Time) *ReservedInstancesModification {
  50978. s.UpdateDate = &v
  50979. return s
  50980. }
  50981. // Describes the modification request/s.
  50982. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesModificationResult
  50983. type ReservedInstancesModificationResult struct {
  50984. _ struct{} `type:"structure"`
  50985. // The ID for the Reserved Instances that were created as part of the modification
  50986. // request. This field is only available when the modification is fulfilled.
  50987. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  50988. // The target Reserved Instances configurations supplied as part of the modification
  50989. // request.
  50990. TargetConfiguration *ReservedInstancesConfiguration `locationName:"targetConfiguration" type:"structure"`
  50991. }
  50992. // String returns the string representation
  50993. func (s ReservedInstancesModificationResult) String() string {
  50994. return awsutil.Prettify(s)
  50995. }
  50996. // GoString returns the string representation
  50997. func (s ReservedInstancesModificationResult) GoString() string {
  50998. return s.String()
  50999. }
  51000. // SetReservedInstancesId sets the ReservedInstancesId field's value.
  51001. func (s *ReservedInstancesModificationResult) SetReservedInstancesId(v string) *ReservedInstancesModificationResult {
  51002. s.ReservedInstancesId = &v
  51003. return s
  51004. }
  51005. // SetTargetConfiguration sets the TargetConfiguration field's value.
  51006. func (s *ReservedInstancesModificationResult) SetTargetConfiguration(v *ReservedInstancesConfiguration) *ReservedInstancesModificationResult {
  51007. s.TargetConfiguration = v
  51008. return s
  51009. }
  51010. // Describes a Reserved Instance offering.
  51011. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedInstancesOffering
  51012. type ReservedInstancesOffering struct {
  51013. _ struct{} `type:"structure"`
  51014. // The Availability Zone in which the Reserved Instance can be used.
  51015. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  51016. // The currency of the Reserved Instance offering you are purchasing. It's specified
  51017. // using ISO 4217 standard currency codes. At this time, the only supported
  51018. // currency is USD.
  51019. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  51020. // The duration of the Reserved Instance, in seconds.
  51021. Duration *int64 `locationName:"duration" type:"long"`
  51022. // The purchase price of the Reserved Instance.
  51023. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  51024. // The tenancy of the instance.
  51025. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  51026. // The instance type on which the Reserved Instance can be used.
  51027. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  51028. // Indicates whether the offering is available through the Reserved Instance
  51029. // Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering,
  51030. // this is true.
  51031. Marketplace *bool `locationName:"marketplace" type:"boolean"`
  51032. // If convertible it can be exchanged for Reserved Instances of the same or
  51033. // higher monetary value, with different configurations. If standard, it is
  51034. // not possible to perform an exchange.
  51035. OfferingClass *string `locationName:"offeringClass" type:"string" enum:"OfferingClassType"`
  51036. // The Reserved Instance offering type.
  51037. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  51038. // The pricing details of the Reserved Instance offering.
  51039. PricingDetails []*PricingDetail `locationName:"pricingDetailsSet" locationNameList:"item" type:"list"`
  51040. // The Reserved Instance product platform description.
  51041. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  51042. // The recurring charge tag assigned to the resource.
  51043. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  51044. // The ID of the Reserved Instance offering. This is the offering ID used in
  51045. // GetReservedInstancesExchangeQuote to confirm that an exchange can be made.
  51046. ReservedInstancesOfferingId *string `locationName:"reservedInstancesOfferingId" type:"string"`
  51047. // Whether the Reserved Instance is applied to instances in a region or an Availability
  51048. // Zone.
  51049. Scope *string `locationName:"scope" type:"string" enum:"scope"`
  51050. // The usage price of the Reserved Instance, per hour.
  51051. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  51052. }
  51053. // String returns the string representation
  51054. func (s ReservedInstancesOffering) String() string {
  51055. return awsutil.Prettify(s)
  51056. }
  51057. // GoString returns the string representation
  51058. func (s ReservedInstancesOffering) GoString() string {
  51059. return s.String()
  51060. }
  51061. // SetAvailabilityZone sets the AvailabilityZone field's value.
  51062. func (s *ReservedInstancesOffering) SetAvailabilityZone(v string) *ReservedInstancesOffering {
  51063. s.AvailabilityZone = &v
  51064. return s
  51065. }
  51066. // SetCurrencyCode sets the CurrencyCode field's value.
  51067. func (s *ReservedInstancesOffering) SetCurrencyCode(v string) *ReservedInstancesOffering {
  51068. s.CurrencyCode = &v
  51069. return s
  51070. }
  51071. // SetDuration sets the Duration field's value.
  51072. func (s *ReservedInstancesOffering) SetDuration(v int64) *ReservedInstancesOffering {
  51073. s.Duration = &v
  51074. return s
  51075. }
  51076. // SetFixedPrice sets the FixedPrice field's value.
  51077. func (s *ReservedInstancesOffering) SetFixedPrice(v float64) *ReservedInstancesOffering {
  51078. s.FixedPrice = &v
  51079. return s
  51080. }
  51081. // SetInstanceTenancy sets the InstanceTenancy field's value.
  51082. func (s *ReservedInstancesOffering) SetInstanceTenancy(v string) *ReservedInstancesOffering {
  51083. s.InstanceTenancy = &v
  51084. return s
  51085. }
  51086. // SetInstanceType sets the InstanceType field's value.
  51087. func (s *ReservedInstancesOffering) SetInstanceType(v string) *ReservedInstancesOffering {
  51088. s.InstanceType = &v
  51089. return s
  51090. }
  51091. // SetMarketplace sets the Marketplace field's value.
  51092. func (s *ReservedInstancesOffering) SetMarketplace(v bool) *ReservedInstancesOffering {
  51093. s.Marketplace = &v
  51094. return s
  51095. }
  51096. // SetOfferingClass sets the OfferingClass field's value.
  51097. func (s *ReservedInstancesOffering) SetOfferingClass(v string) *ReservedInstancesOffering {
  51098. s.OfferingClass = &v
  51099. return s
  51100. }
  51101. // SetOfferingType sets the OfferingType field's value.
  51102. func (s *ReservedInstancesOffering) SetOfferingType(v string) *ReservedInstancesOffering {
  51103. s.OfferingType = &v
  51104. return s
  51105. }
  51106. // SetPricingDetails sets the PricingDetails field's value.
  51107. func (s *ReservedInstancesOffering) SetPricingDetails(v []*PricingDetail) *ReservedInstancesOffering {
  51108. s.PricingDetails = v
  51109. return s
  51110. }
  51111. // SetProductDescription sets the ProductDescription field's value.
  51112. func (s *ReservedInstancesOffering) SetProductDescription(v string) *ReservedInstancesOffering {
  51113. s.ProductDescription = &v
  51114. return s
  51115. }
  51116. // SetRecurringCharges sets the RecurringCharges field's value.
  51117. func (s *ReservedInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedInstancesOffering {
  51118. s.RecurringCharges = v
  51119. return s
  51120. }
  51121. // SetReservedInstancesOfferingId sets the ReservedInstancesOfferingId field's value.
  51122. func (s *ReservedInstancesOffering) SetReservedInstancesOfferingId(v string) *ReservedInstancesOffering {
  51123. s.ReservedInstancesOfferingId = &v
  51124. return s
  51125. }
  51126. // SetScope sets the Scope field's value.
  51127. func (s *ReservedInstancesOffering) SetScope(v string) *ReservedInstancesOffering {
  51128. s.Scope = &v
  51129. return s
  51130. }
  51131. // SetUsagePrice sets the UsagePrice field's value.
  51132. func (s *ReservedInstancesOffering) SetUsagePrice(v float64) *ReservedInstancesOffering {
  51133. s.UsagePrice = &v
  51134. return s
  51135. }
  51136. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttributeRequest
  51137. type ResetFpgaImageAttributeInput struct {
  51138. _ struct{} `type:"structure"`
  51139. // The attribute.
  51140. Attribute *string `type:"string" enum:"ResetFpgaImageAttributeName"`
  51141. // Checks whether you have the required permissions for the action, without
  51142. // actually making the request, and provides an error response. If you have
  51143. // the required permissions, the error response is DryRunOperation. Otherwise,
  51144. // it is UnauthorizedOperation.
  51145. DryRun *bool `type:"boolean"`
  51146. // The ID of the AFI.
  51147. //
  51148. // FpgaImageId is a required field
  51149. FpgaImageId *string `type:"string" required:"true"`
  51150. }
  51151. // String returns the string representation
  51152. func (s ResetFpgaImageAttributeInput) String() string {
  51153. return awsutil.Prettify(s)
  51154. }
  51155. // GoString returns the string representation
  51156. func (s ResetFpgaImageAttributeInput) GoString() string {
  51157. return s.String()
  51158. }
  51159. // Validate inspects the fields of the type to determine if they are valid.
  51160. func (s *ResetFpgaImageAttributeInput) Validate() error {
  51161. invalidParams := request.ErrInvalidParams{Context: "ResetFpgaImageAttributeInput"}
  51162. if s.FpgaImageId == nil {
  51163. invalidParams.Add(request.NewErrParamRequired("FpgaImageId"))
  51164. }
  51165. if invalidParams.Len() > 0 {
  51166. return invalidParams
  51167. }
  51168. return nil
  51169. }
  51170. // SetAttribute sets the Attribute field's value.
  51171. func (s *ResetFpgaImageAttributeInput) SetAttribute(v string) *ResetFpgaImageAttributeInput {
  51172. s.Attribute = &v
  51173. return s
  51174. }
  51175. // SetDryRun sets the DryRun field's value.
  51176. func (s *ResetFpgaImageAttributeInput) SetDryRun(v bool) *ResetFpgaImageAttributeInput {
  51177. s.DryRun = &v
  51178. return s
  51179. }
  51180. // SetFpgaImageId sets the FpgaImageId field's value.
  51181. func (s *ResetFpgaImageAttributeInput) SetFpgaImageId(v string) *ResetFpgaImageAttributeInput {
  51182. s.FpgaImageId = &v
  51183. return s
  51184. }
  51185. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetFpgaImageAttributeResult
  51186. type ResetFpgaImageAttributeOutput struct {
  51187. _ struct{} `type:"structure"`
  51188. // Is true if the request succeeds, and an error otherwise.
  51189. Return *bool `locationName:"return" type:"boolean"`
  51190. }
  51191. // String returns the string representation
  51192. func (s ResetFpgaImageAttributeOutput) String() string {
  51193. return awsutil.Prettify(s)
  51194. }
  51195. // GoString returns the string representation
  51196. func (s ResetFpgaImageAttributeOutput) GoString() string {
  51197. return s.String()
  51198. }
  51199. // SetReturn sets the Return field's value.
  51200. func (s *ResetFpgaImageAttributeOutput) SetReturn(v bool) *ResetFpgaImageAttributeOutput {
  51201. s.Return = &v
  51202. return s
  51203. }
  51204. // Contains the parameters for ResetImageAttribute.
  51205. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttributeRequest
  51206. type ResetImageAttributeInput struct {
  51207. _ struct{} `type:"structure"`
  51208. // The attribute to reset (currently you can only reset the launch permission
  51209. // attribute).
  51210. //
  51211. // Attribute is a required field
  51212. Attribute *string `type:"string" required:"true" enum:"ResetImageAttributeName"`
  51213. // Checks whether you have the required permissions for the action, without
  51214. // actually making the request, and provides an error response. If you have
  51215. // the required permissions, the error response is DryRunOperation. Otherwise,
  51216. // it is UnauthorizedOperation.
  51217. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51218. // The ID of the AMI.
  51219. //
  51220. // ImageId is a required field
  51221. ImageId *string `type:"string" required:"true"`
  51222. }
  51223. // String returns the string representation
  51224. func (s ResetImageAttributeInput) String() string {
  51225. return awsutil.Prettify(s)
  51226. }
  51227. // GoString returns the string representation
  51228. func (s ResetImageAttributeInput) GoString() string {
  51229. return s.String()
  51230. }
  51231. // Validate inspects the fields of the type to determine if they are valid.
  51232. func (s *ResetImageAttributeInput) Validate() error {
  51233. invalidParams := request.ErrInvalidParams{Context: "ResetImageAttributeInput"}
  51234. if s.Attribute == nil {
  51235. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  51236. }
  51237. if s.ImageId == nil {
  51238. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  51239. }
  51240. if invalidParams.Len() > 0 {
  51241. return invalidParams
  51242. }
  51243. return nil
  51244. }
  51245. // SetAttribute sets the Attribute field's value.
  51246. func (s *ResetImageAttributeInput) SetAttribute(v string) *ResetImageAttributeInput {
  51247. s.Attribute = &v
  51248. return s
  51249. }
  51250. // SetDryRun sets the DryRun field's value.
  51251. func (s *ResetImageAttributeInput) SetDryRun(v bool) *ResetImageAttributeInput {
  51252. s.DryRun = &v
  51253. return s
  51254. }
  51255. // SetImageId sets the ImageId field's value.
  51256. func (s *ResetImageAttributeInput) SetImageId(v string) *ResetImageAttributeInput {
  51257. s.ImageId = &v
  51258. return s
  51259. }
  51260. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetImageAttributeOutput
  51261. type ResetImageAttributeOutput struct {
  51262. _ struct{} `type:"structure"`
  51263. }
  51264. // String returns the string representation
  51265. func (s ResetImageAttributeOutput) String() string {
  51266. return awsutil.Prettify(s)
  51267. }
  51268. // GoString returns the string representation
  51269. func (s ResetImageAttributeOutput) GoString() string {
  51270. return s.String()
  51271. }
  51272. // Contains the parameters for ResetInstanceAttribute.
  51273. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttributeRequest
  51274. type ResetInstanceAttributeInput struct {
  51275. _ struct{} `type:"structure"`
  51276. // The attribute to reset.
  51277. //
  51278. // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.
  51279. // To change an instance attribute, use ModifyInstanceAttribute.
  51280. //
  51281. // Attribute is a required field
  51282. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  51283. // Checks whether you have the required permissions for the action, without
  51284. // actually making the request, and provides an error response. If you have
  51285. // the required permissions, the error response is DryRunOperation. Otherwise,
  51286. // it is UnauthorizedOperation.
  51287. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51288. // The ID of the instance.
  51289. //
  51290. // InstanceId is a required field
  51291. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  51292. }
  51293. // String returns the string representation
  51294. func (s ResetInstanceAttributeInput) String() string {
  51295. return awsutil.Prettify(s)
  51296. }
  51297. // GoString returns the string representation
  51298. func (s ResetInstanceAttributeInput) GoString() string {
  51299. return s.String()
  51300. }
  51301. // Validate inspects the fields of the type to determine if they are valid.
  51302. func (s *ResetInstanceAttributeInput) Validate() error {
  51303. invalidParams := request.ErrInvalidParams{Context: "ResetInstanceAttributeInput"}
  51304. if s.Attribute == nil {
  51305. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  51306. }
  51307. if s.InstanceId == nil {
  51308. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  51309. }
  51310. if invalidParams.Len() > 0 {
  51311. return invalidParams
  51312. }
  51313. return nil
  51314. }
  51315. // SetAttribute sets the Attribute field's value.
  51316. func (s *ResetInstanceAttributeInput) SetAttribute(v string) *ResetInstanceAttributeInput {
  51317. s.Attribute = &v
  51318. return s
  51319. }
  51320. // SetDryRun sets the DryRun field's value.
  51321. func (s *ResetInstanceAttributeInput) SetDryRun(v bool) *ResetInstanceAttributeInput {
  51322. s.DryRun = &v
  51323. return s
  51324. }
  51325. // SetInstanceId sets the InstanceId field's value.
  51326. func (s *ResetInstanceAttributeInput) SetInstanceId(v string) *ResetInstanceAttributeInput {
  51327. s.InstanceId = &v
  51328. return s
  51329. }
  51330. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetInstanceAttributeOutput
  51331. type ResetInstanceAttributeOutput struct {
  51332. _ struct{} `type:"structure"`
  51333. }
  51334. // String returns the string representation
  51335. func (s ResetInstanceAttributeOutput) String() string {
  51336. return awsutil.Prettify(s)
  51337. }
  51338. // GoString returns the string representation
  51339. func (s ResetInstanceAttributeOutput) GoString() string {
  51340. return s.String()
  51341. }
  51342. // Contains the parameters for ResetNetworkInterfaceAttribute.
  51343. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttributeRequest
  51344. type ResetNetworkInterfaceAttributeInput struct {
  51345. _ struct{} `type:"structure"`
  51346. // Checks whether you have the required permissions for the action, without
  51347. // actually making the request, and provides an error response. If you have
  51348. // the required permissions, the error response is DryRunOperation. Otherwise,
  51349. // it is UnauthorizedOperation.
  51350. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51351. // The ID of the network interface.
  51352. //
  51353. // NetworkInterfaceId is a required field
  51354. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  51355. // The source/destination checking attribute. Resets the value to true.
  51356. SourceDestCheck *string `locationName:"sourceDestCheck" type:"string"`
  51357. }
  51358. // String returns the string representation
  51359. func (s ResetNetworkInterfaceAttributeInput) String() string {
  51360. return awsutil.Prettify(s)
  51361. }
  51362. // GoString returns the string representation
  51363. func (s ResetNetworkInterfaceAttributeInput) GoString() string {
  51364. return s.String()
  51365. }
  51366. // Validate inspects the fields of the type to determine if they are valid.
  51367. func (s *ResetNetworkInterfaceAttributeInput) Validate() error {
  51368. invalidParams := request.ErrInvalidParams{Context: "ResetNetworkInterfaceAttributeInput"}
  51369. if s.NetworkInterfaceId == nil {
  51370. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  51371. }
  51372. if invalidParams.Len() > 0 {
  51373. return invalidParams
  51374. }
  51375. return nil
  51376. }
  51377. // SetDryRun sets the DryRun field's value.
  51378. func (s *ResetNetworkInterfaceAttributeInput) SetDryRun(v bool) *ResetNetworkInterfaceAttributeInput {
  51379. s.DryRun = &v
  51380. return s
  51381. }
  51382. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  51383. func (s *ResetNetworkInterfaceAttributeInput) SetNetworkInterfaceId(v string) *ResetNetworkInterfaceAttributeInput {
  51384. s.NetworkInterfaceId = &v
  51385. return s
  51386. }
  51387. // SetSourceDestCheck sets the SourceDestCheck field's value.
  51388. func (s *ResetNetworkInterfaceAttributeInput) SetSourceDestCheck(v string) *ResetNetworkInterfaceAttributeInput {
  51389. s.SourceDestCheck = &v
  51390. return s
  51391. }
  51392. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetNetworkInterfaceAttributeOutput
  51393. type ResetNetworkInterfaceAttributeOutput struct {
  51394. _ struct{} `type:"structure"`
  51395. }
  51396. // String returns the string representation
  51397. func (s ResetNetworkInterfaceAttributeOutput) String() string {
  51398. return awsutil.Prettify(s)
  51399. }
  51400. // GoString returns the string representation
  51401. func (s ResetNetworkInterfaceAttributeOutput) GoString() string {
  51402. return s.String()
  51403. }
  51404. // Contains the parameters for ResetSnapshotAttribute.
  51405. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttributeRequest
  51406. type ResetSnapshotAttributeInput struct {
  51407. _ struct{} `type:"structure"`
  51408. // The attribute to reset. Currently, only the attribute for permission to create
  51409. // volumes can be reset.
  51410. //
  51411. // Attribute is a required field
  51412. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  51413. // Checks whether you have the required permissions for the action, without
  51414. // actually making the request, and provides an error response. If you have
  51415. // the required permissions, the error response is DryRunOperation. Otherwise,
  51416. // it is UnauthorizedOperation.
  51417. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51418. // The ID of the snapshot.
  51419. //
  51420. // SnapshotId is a required field
  51421. SnapshotId *string `type:"string" required:"true"`
  51422. }
  51423. // String returns the string representation
  51424. func (s ResetSnapshotAttributeInput) String() string {
  51425. return awsutil.Prettify(s)
  51426. }
  51427. // GoString returns the string representation
  51428. func (s ResetSnapshotAttributeInput) GoString() string {
  51429. return s.String()
  51430. }
  51431. // Validate inspects the fields of the type to determine if they are valid.
  51432. func (s *ResetSnapshotAttributeInput) Validate() error {
  51433. invalidParams := request.ErrInvalidParams{Context: "ResetSnapshotAttributeInput"}
  51434. if s.Attribute == nil {
  51435. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  51436. }
  51437. if s.SnapshotId == nil {
  51438. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  51439. }
  51440. if invalidParams.Len() > 0 {
  51441. return invalidParams
  51442. }
  51443. return nil
  51444. }
  51445. // SetAttribute sets the Attribute field's value.
  51446. func (s *ResetSnapshotAttributeInput) SetAttribute(v string) *ResetSnapshotAttributeInput {
  51447. s.Attribute = &v
  51448. return s
  51449. }
  51450. // SetDryRun sets the DryRun field's value.
  51451. func (s *ResetSnapshotAttributeInput) SetDryRun(v bool) *ResetSnapshotAttributeInput {
  51452. s.DryRun = &v
  51453. return s
  51454. }
  51455. // SetSnapshotId sets the SnapshotId field's value.
  51456. func (s *ResetSnapshotAttributeInput) SetSnapshotId(v string) *ResetSnapshotAttributeInput {
  51457. s.SnapshotId = &v
  51458. return s
  51459. }
  51460. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResetSnapshotAttributeOutput
  51461. type ResetSnapshotAttributeOutput struct {
  51462. _ struct{} `type:"structure"`
  51463. }
  51464. // String returns the string representation
  51465. func (s ResetSnapshotAttributeOutput) String() string {
  51466. return awsutil.Prettify(s)
  51467. }
  51468. // GoString returns the string representation
  51469. func (s ResetSnapshotAttributeOutput) GoString() string {
  51470. return s.String()
  51471. }
  51472. // Describes the error that's returned when you cannot delete a launch template
  51473. // version.
  51474. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResponseError
  51475. type ResponseError struct {
  51476. _ struct{} `type:"structure"`
  51477. // The error code.
  51478. Code *string `locationName:"code" type:"string" enum:"LaunchTemplateErrorCode"`
  51479. // The error message, if applicable.
  51480. Message *string `locationName:"message" type:"string"`
  51481. }
  51482. // String returns the string representation
  51483. func (s ResponseError) String() string {
  51484. return awsutil.Prettify(s)
  51485. }
  51486. // GoString returns the string representation
  51487. func (s ResponseError) GoString() string {
  51488. return s.String()
  51489. }
  51490. // SetCode sets the Code field's value.
  51491. func (s *ResponseError) SetCode(v string) *ResponseError {
  51492. s.Code = &v
  51493. return s
  51494. }
  51495. // SetMessage sets the Message field's value.
  51496. func (s *ResponseError) SetMessage(v string) *ResponseError {
  51497. s.Message = &v
  51498. return s
  51499. }
  51500. // The information for a launch template.
  51501. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResponseLaunchTemplateData
  51502. type ResponseLaunchTemplateData struct {
  51503. _ struct{} `type:"structure"`
  51504. // The block device mappings.
  51505. BlockDeviceMappings []*LaunchTemplateBlockDeviceMapping `locationName:"blockDeviceMappingSet" locationNameList:"item" type:"list"`
  51506. // The credit option for CPU usage of the instance.
  51507. CreditSpecification *CreditSpecification `locationName:"creditSpecification" type:"structure"`
  51508. // If set to true, indicates that the instance cannot be terminated using the
  51509. // Amazon EC2 console, command line tool, or API.
  51510. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  51511. // Indicates whether the instance is optimized for Amazon EBS I/O.
  51512. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  51513. // The elastic GPU specification.
  51514. ElasticGpuSpecifications []*ElasticGpuSpecificationResponse `locationName:"elasticGpuSpecificationSet" locationNameList:"item" type:"list"`
  51515. // The IAM instance profile.
  51516. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  51517. // The ID of the AMI that was used to launch the instance.
  51518. ImageId *string `locationName:"imageId" type:"string"`
  51519. // Indicates whether an instance stops or terminates when you initiate shutdown
  51520. // from the instance (using the operating system command for system shutdown).
  51521. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  51522. // The market (purchasing) option for the instances.
  51523. InstanceMarketOptions *LaunchTemplateInstanceMarketOptions `locationName:"instanceMarketOptions" type:"structure"`
  51524. // The instance type.
  51525. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  51526. // The ID of the kernel, if applicable.
  51527. KernelId *string `locationName:"kernelId" type:"string"`
  51528. // The name of the key pair.
  51529. KeyName *string `locationName:"keyName" type:"string"`
  51530. // The monitoring for the instance.
  51531. Monitoring *LaunchTemplatesMonitoring `locationName:"monitoring" type:"structure"`
  51532. // The network interfaces.
  51533. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  51534. // The placement of the instance.
  51535. Placement *LaunchTemplatePlacement `locationName:"placement" type:"structure"`
  51536. // The ID of the RAM disk, if applicable.
  51537. RamDiskId *string `locationName:"ramDiskId" type:"string"`
  51538. // The security group IDs.
  51539. SecurityGroupIds []*string `locationName:"securityGroupIdSet" locationNameList:"item" type:"list"`
  51540. // The security group names.
  51541. SecurityGroups []*string `locationName:"securityGroupSet" locationNameList:"item" type:"list"`
  51542. // The tags.
  51543. TagSpecifications []*LaunchTemplateTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`
  51544. // The user data for the instance.
  51545. UserData *string `locationName:"userData" type:"string"`
  51546. }
  51547. // String returns the string representation
  51548. func (s ResponseLaunchTemplateData) String() string {
  51549. return awsutil.Prettify(s)
  51550. }
  51551. // GoString returns the string representation
  51552. func (s ResponseLaunchTemplateData) GoString() string {
  51553. return s.String()
  51554. }
  51555. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  51556. func (s *ResponseLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBlockDeviceMapping) *ResponseLaunchTemplateData {
  51557. s.BlockDeviceMappings = v
  51558. return s
  51559. }
  51560. // SetCreditSpecification sets the CreditSpecification field's value.
  51561. func (s *ResponseLaunchTemplateData) SetCreditSpecification(v *CreditSpecification) *ResponseLaunchTemplateData {
  51562. s.CreditSpecification = v
  51563. return s
  51564. }
  51565. // SetDisableApiTermination sets the DisableApiTermination field's value.
  51566. func (s *ResponseLaunchTemplateData) SetDisableApiTermination(v bool) *ResponseLaunchTemplateData {
  51567. s.DisableApiTermination = &v
  51568. return s
  51569. }
  51570. // SetEbsOptimized sets the EbsOptimized field's value.
  51571. func (s *ResponseLaunchTemplateData) SetEbsOptimized(v bool) *ResponseLaunchTemplateData {
  51572. s.EbsOptimized = &v
  51573. return s
  51574. }
  51575. // SetElasticGpuSpecifications sets the ElasticGpuSpecifications field's value.
  51576. func (s *ResponseLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuSpecificationResponse) *ResponseLaunchTemplateData {
  51577. s.ElasticGpuSpecifications = v
  51578. return s
  51579. }
  51580. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  51581. func (s *ResponseLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecification) *ResponseLaunchTemplateData {
  51582. s.IamInstanceProfile = v
  51583. return s
  51584. }
  51585. // SetImageId sets the ImageId field's value.
  51586. func (s *ResponseLaunchTemplateData) SetImageId(v string) *ResponseLaunchTemplateData {
  51587. s.ImageId = &v
  51588. return s
  51589. }
  51590. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  51591. func (s *ResponseLaunchTemplateData) SetInstanceInitiatedShutdownBehavior(v string) *ResponseLaunchTemplateData {
  51592. s.InstanceInitiatedShutdownBehavior = &v
  51593. return s
  51594. }
  51595. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  51596. func (s *ResponseLaunchTemplateData) SetInstanceMarketOptions(v *LaunchTemplateInstanceMarketOptions) *ResponseLaunchTemplateData {
  51597. s.InstanceMarketOptions = v
  51598. return s
  51599. }
  51600. // SetInstanceType sets the InstanceType field's value.
  51601. func (s *ResponseLaunchTemplateData) SetInstanceType(v string) *ResponseLaunchTemplateData {
  51602. s.InstanceType = &v
  51603. return s
  51604. }
  51605. // SetKernelId sets the KernelId field's value.
  51606. func (s *ResponseLaunchTemplateData) SetKernelId(v string) *ResponseLaunchTemplateData {
  51607. s.KernelId = &v
  51608. return s
  51609. }
  51610. // SetKeyName sets the KeyName field's value.
  51611. func (s *ResponseLaunchTemplateData) SetKeyName(v string) *ResponseLaunchTemplateData {
  51612. s.KeyName = &v
  51613. return s
  51614. }
  51615. // SetMonitoring sets the Monitoring field's value.
  51616. func (s *ResponseLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoring) *ResponseLaunchTemplateData {
  51617. s.Monitoring = v
  51618. return s
  51619. }
  51620. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  51621. func (s *ResponseLaunchTemplateData) SetNetworkInterfaces(v []*LaunchTemplateInstanceNetworkInterfaceSpecification) *ResponseLaunchTemplateData {
  51622. s.NetworkInterfaces = v
  51623. return s
  51624. }
  51625. // SetPlacement sets the Placement field's value.
  51626. func (s *ResponseLaunchTemplateData) SetPlacement(v *LaunchTemplatePlacement) *ResponseLaunchTemplateData {
  51627. s.Placement = v
  51628. return s
  51629. }
  51630. // SetRamDiskId sets the RamDiskId field's value.
  51631. func (s *ResponseLaunchTemplateData) SetRamDiskId(v string) *ResponseLaunchTemplateData {
  51632. s.RamDiskId = &v
  51633. return s
  51634. }
  51635. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  51636. func (s *ResponseLaunchTemplateData) SetSecurityGroupIds(v []*string) *ResponseLaunchTemplateData {
  51637. s.SecurityGroupIds = v
  51638. return s
  51639. }
  51640. // SetSecurityGroups sets the SecurityGroups field's value.
  51641. func (s *ResponseLaunchTemplateData) SetSecurityGroups(v []*string) *ResponseLaunchTemplateData {
  51642. s.SecurityGroups = v
  51643. return s
  51644. }
  51645. // SetTagSpecifications sets the TagSpecifications field's value.
  51646. func (s *ResponseLaunchTemplateData) SetTagSpecifications(v []*LaunchTemplateTagSpecification) *ResponseLaunchTemplateData {
  51647. s.TagSpecifications = v
  51648. return s
  51649. }
  51650. // SetUserData sets the UserData field's value.
  51651. func (s *ResponseLaunchTemplateData) SetUserData(v string) *ResponseLaunchTemplateData {
  51652. s.UserData = &v
  51653. return s
  51654. }
  51655. // Contains the parameters for RestoreAddressToClassic.
  51656. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassicRequest
  51657. type RestoreAddressToClassicInput struct {
  51658. _ struct{} `type:"structure"`
  51659. // Checks whether you have the required permissions for the action, without
  51660. // actually making the request, and provides an error response. If you have
  51661. // the required permissions, the error response is DryRunOperation. Otherwise,
  51662. // it is UnauthorizedOperation.
  51663. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51664. // The Elastic IP address.
  51665. //
  51666. // PublicIp is a required field
  51667. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  51668. }
  51669. // String returns the string representation
  51670. func (s RestoreAddressToClassicInput) String() string {
  51671. return awsutil.Prettify(s)
  51672. }
  51673. // GoString returns the string representation
  51674. func (s RestoreAddressToClassicInput) GoString() string {
  51675. return s.String()
  51676. }
  51677. // Validate inspects the fields of the type to determine if they are valid.
  51678. func (s *RestoreAddressToClassicInput) Validate() error {
  51679. invalidParams := request.ErrInvalidParams{Context: "RestoreAddressToClassicInput"}
  51680. if s.PublicIp == nil {
  51681. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  51682. }
  51683. if invalidParams.Len() > 0 {
  51684. return invalidParams
  51685. }
  51686. return nil
  51687. }
  51688. // SetDryRun sets the DryRun field's value.
  51689. func (s *RestoreAddressToClassicInput) SetDryRun(v bool) *RestoreAddressToClassicInput {
  51690. s.DryRun = &v
  51691. return s
  51692. }
  51693. // SetPublicIp sets the PublicIp field's value.
  51694. func (s *RestoreAddressToClassicInput) SetPublicIp(v string) *RestoreAddressToClassicInput {
  51695. s.PublicIp = &v
  51696. return s
  51697. }
  51698. // Contains the output of RestoreAddressToClassic.
  51699. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreAddressToClassicResult
  51700. type RestoreAddressToClassicOutput struct {
  51701. _ struct{} `type:"structure"`
  51702. // The Elastic IP address.
  51703. PublicIp *string `locationName:"publicIp" type:"string"`
  51704. // The move status for the IP address.
  51705. Status *string `locationName:"status" type:"string" enum:"Status"`
  51706. }
  51707. // String returns the string representation
  51708. func (s RestoreAddressToClassicOutput) String() string {
  51709. return awsutil.Prettify(s)
  51710. }
  51711. // GoString returns the string representation
  51712. func (s RestoreAddressToClassicOutput) GoString() string {
  51713. return s.String()
  51714. }
  51715. // SetPublicIp sets the PublicIp field's value.
  51716. func (s *RestoreAddressToClassicOutput) SetPublicIp(v string) *RestoreAddressToClassicOutput {
  51717. s.PublicIp = &v
  51718. return s
  51719. }
  51720. // SetStatus sets the Status field's value.
  51721. func (s *RestoreAddressToClassicOutput) SetStatus(v string) *RestoreAddressToClassicOutput {
  51722. s.Status = &v
  51723. return s
  51724. }
  51725. // Contains the parameters for RevokeSecurityGroupEgress.
  51726. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgressRequest
  51727. type RevokeSecurityGroupEgressInput struct {
  51728. _ struct{} `type:"structure"`
  51729. // Not supported. Use a set of IP permissions to specify the CIDR.
  51730. CidrIp *string `locationName:"cidrIp" type:"string"`
  51731. // Checks whether you have the required permissions for the action, without
  51732. // actually making the request, and provides an error response. If you have
  51733. // the required permissions, the error response is DryRunOperation. Otherwise,
  51734. // it is UnauthorizedOperation.
  51735. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51736. // Not supported. Use a set of IP permissions to specify the port.
  51737. FromPort *int64 `locationName:"fromPort" type:"integer"`
  51738. // The ID of the security group.
  51739. //
  51740. // GroupId is a required field
  51741. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  51742. // One or more sets of IP permissions. You can't specify a destination security
  51743. // group and a CIDR IP address range in the same set of permissions.
  51744. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  51745. // Not supported. Use a set of IP permissions to specify the protocol name or
  51746. // number.
  51747. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  51748. // Not supported. Use a set of IP permissions to specify a destination security
  51749. // group.
  51750. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  51751. // Not supported. Use a set of IP permissions to specify a destination security
  51752. // group.
  51753. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  51754. // Not supported. Use a set of IP permissions to specify the port.
  51755. ToPort *int64 `locationName:"toPort" type:"integer"`
  51756. }
  51757. // String returns the string representation
  51758. func (s RevokeSecurityGroupEgressInput) String() string {
  51759. return awsutil.Prettify(s)
  51760. }
  51761. // GoString returns the string representation
  51762. func (s RevokeSecurityGroupEgressInput) GoString() string {
  51763. return s.String()
  51764. }
  51765. // Validate inspects the fields of the type to determine if they are valid.
  51766. func (s *RevokeSecurityGroupEgressInput) Validate() error {
  51767. invalidParams := request.ErrInvalidParams{Context: "RevokeSecurityGroupEgressInput"}
  51768. if s.GroupId == nil {
  51769. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  51770. }
  51771. if invalidParams.Len() > 0 {
  51772. return invalidParams
  51773. }
  51774. return nil
  51775. }
  51776. // SetCidrIp sets the CidrIp field's value.
  51777. func (s *RevokeSecurityGroupEgressInput) SetCidrIp(v string) *RevokeSecurityGroupEgressInput {
  51778. s.CidrIp = &v
  51779. return s
  51780. }
  51781. // SetDryRun sets the DryRun field's value.
  51782. func (s *RevokeSecurityGroupEgressInput) SetDryRun(v bool) *RevokeSecurityGroupEgressInput {
  51783. s.DryRun = &v
  51784. return s
  51785. }
  51786. // SetFromPort sets the FromPort field's value.
  51787. func (s *RevokeSecurityGroupEgressInput) SetFromPort(v int64) *RevokeSecurityGroupEgressInput {
  51788. s.FromPort = &v
  51789. return s
  51790. }
  51791. // SetGroupId sets the GroupId field's value.
  51792. func (s *RevokeSecurityGroupEgressInput) SetGroupId(v string) *RevokeSecurityGroupEgressInput {
  51793. s.GroupId = &v
  51794. return s
  51795. }
  51796. // SetIpPermissions sets the IpPermissions field's value.
  51797. func (s *RevokeSecurityGroupEgressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupEgressInput {
  51798. s.IpPermissions = v
  51799. return s
  51800. }
  51801. // SetIpProtocol sets the IpProtocol field's value.
  51802. func (s *RevokeSecurityGroupEgressInput) SetIpProtocol(v string) *RevokeSecurityGroupEgressInput {
  51803. s.IpProtocol = &v
  51804. return s
  51805. }
  51806. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  51807. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupEgressInput {
  51808. s.SourceSecurityGroupName = &v
  51809. return s
  51810. }
  51811. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  51812. func (s *RevokeSecurityGroupEgressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupEgressInput {
  51813. s.SourceSecurityGroupOwnerId = &v
  51814. return s
  51815. }
  51816. // SetToPort sets the ToPort field's value.
  51817. func (s *RevokeSecurityGroupEgressInput) SetToPort(v int64) *RevokeSecurityGroupEgressInput {
  51818. s.ToPort = &v
  51819. return s
  51820. }
  51821. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupEgressOutput
  51822. type RevokeSecurityGroupEgressOutput struct {
  51823. _ struct{} `type:"structure"`
  51824. }
  51825. // String returns the string representation
  51826. func (s RevokeSecurityGroupEgressOutput) String() string {
  51827. return awsutil.Prettify(s)
  51828. }
  51829. // GoString returns the string representation
  51830. func (s RevokeSecurityGroupEgressOutput) GoString() string {
  51831. return s.String()
  51832. }
  51833. // Contains the parameters for RevokeSecurityGroupIngress.
  51834. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngressRequest
  51835. type RevokeSecurityGroupIngressInput struct {
  51836. _ struct{} `type:"structure"`
  51837. // The CIDR IP address range. You can't specify this parameter when specifying
  51838. // a source security group.
  51839. CidrIp *string `type:"string"`
  51840. // Checks whether you have the required permissions for the action, without
  51841. // actually making the request, and provides an error response. If you have
  51842. // the required permissions, the error response is DryRunOperation. Otherwise,
  51843. // it is UnauthorizedOperation.
  51844. DryRun *bool `locationName:"dryRun" type:"boolean"`
  51845. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  51846. // For the ICMP type number, use -1 to specify all ICMP types.
  51847. FromPort *int64 `type:"integer"`
  51848. // The ID of the security group. You must specify either the security group
  51849. // ID or the security group name in the request. For security groups in a nondefault
  51850. // VPC, you must specify the security group ID.
  51851. GroupId *string `type:"string"`
  51852. // [EC2-Classic, default VPC] The name of the security group. You must specify
  51853. // either the security group ID or the security group name in the request.
  51854. GroupName *string `type:"string"`
  51855. // One or more sets of IP permissions. You can't specify a source security group
  51856. // and a CIDR IP address range in the same set of permissions.
  51857. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  51858. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  51859. // Use -1 to specify all.
  51860. IpProtocol *string `type:"string"`
  51861. // [EC2-Classic, default VPC] The name of the source security group. You can't
  51862. // specify this parameter in combination with the following parameters: the
  51863. // CIDR IP address range, the start of the port range, the IP protocol, and
  51864. // the end of the port range. For EC2-VPC, the source security group must be
  51865. // in the same VPC. To revoke a specific rule for an IP protocol and port range,
  51866. // use a set of IP permissions instead.
  51867. SourceSecurityGroupName *string `type:"string"`
  51868. // [EC2-Classic] The AWS account ID of the source security group, if the source
  51869. // security group is in a different account. You can't specify this parameter
  51870. // in combination with the following parameters: the CIDR IP address range,
  51871. // the IP protocol, the start of the port range, and the end of the port range.
  51872. // To revoke a specific rule for an IP protocol and port range, use a set of
  51873. // IP permissions instead.
  51874. SourceSecurityGroupOwnerId *string `type:"string"`
  51875. // The end of port range for the TCP and UDP protocols, or an ICMP code number.
  51876. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
  51877. ToPort *int64 `type:"integer"`
  51878. }
  51879. // String returns the string representation
  51880. func (s RevokeSecurityGroupIngressInput) String() string {
  51881. return awsutil.Prettify(s)
  51882. }
  51883. // GoString returns the string representation
  51884. func (s RevokeSecurityGroupIngressInput) GoString() string {
  51885. return s.String()
  51886. }
  51887. // SetCidrIp sets the CidrIp field's value.
  51888. func (s *RevokeSecurityGroupIngressInput) SetCidrIp(v string) *RevokeSecurityGroupIngressInput {
  51889. s.CidrIp = &v
  51890. return s
  51891. }
  51892. // SetDryRun sets the DryRun field's value.
  51893. func (s *RevokeSecurityGroupIngressInput) SetDryRun(v bool) *RevokeSecurityGroupIngressInput {
  51894. s.DryRun = &v
  51895. return s
  51896. }
  51897. // SetFromPort sets the FromPort field's value.
  51898. func (s *RevokeSecurityGroupIngressInput) SetFromPort(v int64) *RevokeSecurityGroupIngressInput {
  51899. s.FromPort = &v
  51900. return s
  51901. }
  51902. // SetGroupId sets the GroupId field's value.
  51903. func (s *RevokeSecurityGroupIngressInput) SetGroupId(v string) *RevokeSecurityGroupIngressInput {
  51904. s.GroupId = &v
  51905. return s
  51906. }
  51907. // SetGroupName sets the GroupName field's value.
  51908. func (s *RevokeSecurityGroupIngressInput) SetGroupName(v string) *RevokeSecurityGroupIngressInput {
  51909. s.GroupName = &v
  51910. return s
  51911. }
  51912. // SetIpPermissions sets the IpPermissions field's value.
  51913. func (s *RevokeSecurityGroupIngressInput) SetIpPermissions(v []*IpPermission) *RevokeSecurityGroupIngressInput {
  51914. s.IpPermissions = v
  51915. return s
  51916. }
  51917. // SetIpProtocol sets the IpProtocol field's value.
  51918. func (s *RevokeSecurityGroupIngressInput) SetIpProtocol(v string) *RevokeSecurityGroupIngressInput {
  51919. s.IpProtocol = &v
  51920. return s
  51921. }
  51922. // SetSourceSecurityGroupName sets the SourceSecurityGroupName field's value.
  51923. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupName(v string) *RevokeSecurityGroupIngressInput {
  51924. s.SourceSecurityGroupName = &v
  51925. return s
  51926. }
  51927. // SetSourceSecurityGroupOwnerId sets the SourceSecurityGroupOwnerId field's value.
  51928. func (s *RevokeSecurityGroupIngressInput) SetSourceSecurityGroupOwnerId(v string) *RevokeSecurityGroupIngressInput {
  51929. s.SourceSecurityGroupOwnerId = &v
  51930. return s
  51931. }
  51932. // SetToPort sets the ToPort field's value.
  51933. func (s *RevokeSecurityGroupIngressInput) SetToPort(v int64) *RevokeSecurityGroupIngressInput {
  51934. s.ToPort = &v
  51935. return s
  51936. }
  51937. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RevokeSecurityGroupIngressOutput
  51938. type RevokeSecurityGroupIngressOutput struct {
  51939. _ struct{} `type:"structure"`
  51940. }
  51941. // String returns the string representation
  51942. func (s RevokeSecurityGroupIngressOutput) String() string {
  51943. return awsutil.Prettify(s)
  51944. }
  51945. // GoString returns the string representation
  51946. func (s RevokeSecurityGroupIngressOutput) GoString() string {
  51947. return s.String()
  51948. }
  51949. // Describes a route in a route table.
  51950. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Route
  51951. type Route struct {
  51952. _ struct{} `type:"structure"`
  51953. // The IPv4 CIDR block used for the destination match.
  51954. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  51955. // The IPv6 CIDR block used for the destination match.
  51956. DestinationIpv6CidrBlock *string `locationName:"destinationIpv6CidrBlock" type:"string"`
  51957. // The prefix of the AWS service.
  51958. DestinationPrefixListId *string `locationName:"destinationPrefixListId" type:"string"`
  51959. // The ID of the egress-only Internet gateway.
  51960. EgressOnlyInternetGatewayId *string `locationName:"egressOnlyInternetGatewayId" type:"string"`
  51961. // The ID of a gateway attached to your VPC.
  51962. GatewayId *string `locationName:"gatewayId" type:"string"`
  51963. // The ID of a NAT instance in your VPC.
  51964. InstanceId *string `locationName:"instanceId" type:"string"`
  51965. // The AWS account ID of the owner of the instance.
  51966. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  51967. // The ID of a NAT gateway.
  51968. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  51969. // The ID of the network interface.
  51970. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  51971. // Describes how the route was created.
  51972. //
  51973. // * CreateRouteTable - The route was automatically created when the route
  51974. // table was created.
  51975. //
  51976. // * CreateRoute - The route was manually added to the route table.
  51977. //
  51978. // * EnableVgwRoutePropagation - The route was propagated by route propagation.
  51979. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"`
  51980. // The state of the route. The blackhole state indicates that the route's target
  51981. // isn't available (for example, the specified gateway isn't attached to the
  51982. // VPC, or the specified NAT instance has been terminated).
  51983. State *string `locationName:"state" type:"string" enum:"RouteState"`
  51984. // The ID of the VPC peering connection.
  51985. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  51986. }
  51987. // String returns the string representation
  51988. func (s Route) String() string {
  51989. return awsutil.Prettify(s)
  51990. }
  51991. // GoString returns the string representation
  51992. func (s Route) GoString() string {
  51993. return s.String()
  51994. }
  51995. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  51996. func (s *Route) SetDestinationCidrBlock(v string) *Route {
  51997. s.DestinationCidrBlock = &v
  51998. return s
  51999. }
  52000. // SetDestinationIpv6CidrBlock sets the DestinationIpv6CidrBlock field's value.
  52001. func (s *Route) SetDestinationIpv6CidrBlock(v string) *Route {
  52002. s.DestinationIpv6CidrBlock = &v
  52003. return s
  52004. }
  52005. // SetDestinationPrefixListId sets the DestinationPrefixListId field's value.
  52006. func (s *Route) SetDestinationPrefixListId(v string) *Route {
  52007. s.DestinationPrefixListId = &v
  52008. return s
  52009. }
  52010. // SetEgressOnlyInternetGatewayId sets the EgressOnlyInternetGatewayId field's value.
  52011. func (s *Route) SetEgressOnlyInternetGatewayId(v string) *Route {
  52012. s.EgressOnlyInternetGatewayId = &v
  52013. return s
  52014. }
  52015. // SetGatewayId sets the GatewayId field's value.
  52016. func (s *Route) SetGatewayId(v string) *Route {
  52017. s.GatewayId = &v
  52018. return s
  52019. }
  52020. // SetInstanceId sets the InstanceId field's value.
  52021. func (s *Route) SetInstanceId(v string) *Route {
  52022. s.InstanceId = &v
  52023. return s
  52024. }
  52025. // SetInstanceOwnerId sets the InstanceOwnerId field's value.
  52026. func (s *Route) SetInstanceOwnerId(v string) *Route {
  52027. s.InstanceOwnerId = &v
  52028. return s
  52029. }
  52030. // SetNatGatewayId sets the NatGatewayId field's value.
  52031. func (s *Route) SetNatGatewayId(v string) *Route {
  52032. s.NatGatewayId = &v
  52033. return s
  52034. }
  52035. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  52036. func (s *Route) SetNetworkInterfaceId(v string) *Route {
  52037. s.NetworkInterfaceId = &v
  52038. return s
  52039. }
  52040. // SetOrigin sets the Origin field's value.
  52041. func (s *Route) SetOrigin(v string) *Route {
  52042. s.Origin = &v
  52043. return s
  52044. }
  52045. // SetState sets the State field's value.
  52046. func (s *Route) SetState(v string) *Route {
  52047. s.State = &v
  52048. return s
  52049. }
  52050. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  52051. func (s *Route) SetVpcPeeringConnectionId(v string) *Route {
  52052. s.VpcPeeringConnectionId = &v
  52053. return s
  52054. }
  52055. // Describes a route table.
  52056. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RouteTable
  52057. type RouteTable struct {
  52058. _ struct{} `type:"structure"`
  52059. // The associations between the route table and one or more subnets.
  52060. Associations []*RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  52061. // Any virtual private gateway (VGW) propagating routes.
  52062. PropagatingVgws []*PropagatingVgw `locationName:"propagatingVgwSet" locationNameList:"item" type:"list"`
  52063. // The ID of the route table.
  52064. RouteTableId *string `locationName:"routeTableId" type:"string"`
  52065. // The routes in the route table.
  52066. Routes []*Route `locationName:"routeSet" locationNameList:"item" type:"list"`
  52067. // Any tags assigned to the route table.
  52068. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  52069. // The ID of the VPC.
  52070. VpcId *string `locationName:"vpcId" type:"string"`
  52071. }
  52072. // String returns the string representation
  52073. func (s RouteTable) String() string {
  52074. return awsutil.Prettify(s)
  52075. }
  52076. // GoString returns the string representation
  52077. func (s RouteTable) GoString() string {
  52078. return s.String()
  52079. }
  52080. // SetAssociations sets the Associations field's value.
  52081. func (s *RouteTable) SetAssociations(v []*RouteTableAssociation) *RouteTable {
  52082. s.Associations = v
  52083. return s
  52084. }
  52085. // SetPropagatingVgws sets the PropagatingVgws field's value.
  52086. func (s *RouteTable) SetPropagatingVgws(v []*PropagatingVgw) *RouteTable {
  52087. s.PropagatingVgws = v
  52088. return s
  52089. }
  52090. // SetRouteTableId sets the RouteTableId field's value.
  52091. func (s *RouteTable) SetRouteTableId(v string) *RouteTable {
  52092. s.RouteTableId = &v
  52093. return s
  52094. }
  52095. // SetRoutes sets the Routes field's value.
  52096. func (s *RouteTable) SetRoutes(v []*Route) *RouteTable {
  52097. s.Routes = v
  52098. return s
  52099. }
  52100. // SetTags sets the Tags field's value.
  52101. func (s *RouteTable) SetTags(v []*Tag) *RouteTable {
  52102. s.Tags = v
  52103. return s
  52104. }
  52105. // SetVpcId sets the VpcId field's value.
  52106. func (s *RouteTable) SetVpcId(v string) *RouteTable {
  52107. s.VpcId = &v
  52108. return s
  52109. }
  52110. // Describes an association between a route table and a subnet.
  52111. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RouteTableAssociation
  52112. type RouteTableAssociation struct {
  52113. _ struct{} `type:"structure"`
  52114. // Indicates whether this is the main route table.
  52115. Main *bool `locationName:"main" type:"boolean"`
  52116. // The ID of the association between a route table and a subnet.
  52117. RouteTableAssociationId *string `locationName:"routeTableAssociationId" type:"string"`
  52118. // The ID of the route table.
  52119. RouteTableId *string `locationName:"routeTableId" type:"string"`
  52120. // The ID of the subnet. A subnet ID is not returned for an implicit association.
  52121. SubnetId *string `locationName:"subnetId" type:"string"`
  52122. }
  52123. // String returns the string representation
  52124. func (s RouteTableAssociation) String() string {
  52125. return awsutil.Prettify(s)
  52126. }
  52127. // GoString returns the string representation
  52128. func (s RouteTableAssociation) GoString() string {
  52129. return s.String()
  52130. }
  52131. // SetMain sets the Main field's value.
  52132. func (s *RouteTableAssociation) SetMain(v bool) *RouteTableAssociation {
  52133. s.Main = &v
  52134. return s
  52135. }
  52136. // SetRouteTableAssociationId sets the RouteTableAssociationId field's value.
  52137. func (s *RouteTableAssociation) SetRouteTableAssociationId(v string) *RouteTableAssociation {
  52138. s.RouteTableAssociationId = &v
  52139. return s
  52140. }
  52141. // SetRouteTableId sets the RouteTableId field's value.
  52142. func (s *RouteTableAssociation) SetRouteTableId(v string) *RouteTableAssociation {
  52143. s.RouteTableId = &v
  52144. return s
  52145. }
  52146. // SetSubnetId sets the SubnetId field's value.
  52147. func (s *RouteTableAssociation) SetSubnetId(v string) *RouteTableAssociation {
  52148. s.SubnetId = &v
  52149. return s
  52150. }
  52151. // Contains the parameters for RunInstances.
  52152. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesRequest
  52153. type RunInstancesInput struct {
  52154. _ struct{} `type:"structure"`
  52155. // Reserved.
  52156. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  52157. // One or more block device mapping entries. You can't specify both a snapshot
  52158. // ID and an encryption value. This is because only blank volumes can be encrypted
  52159. // on creation. If a snapshot is the basis for a volume, it is not blank and
  52160. // its encryption status is used for the volume encryption status.
  52161. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  52162. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  52163. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  52164. //
  52165. // Constraints: Maximum 64 ASCII characters
  52166. ClientToken *string `locationName:"clientToken" type:"string"`
  52167. // The credit option for CPU usage of the instance. Valid values are standard
  52168. // and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification.
  52169. // For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
  52170. // in the Amazon Elastic Compute Cloud User Guide.
  52171. //
  52172. // Default: standard
  52173. CreditSpecification *CreditSpecificationRequest `type:"structure"`
  52174. // If you set this parameter to true, you can't terminate the instance using
  52175. // the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute
  52176. // to false after launch, use ModifyInstanceAttribute. Alternatively, if you
  52177. // set InstanceInitiatedShutdownBehavior to terminate, you can terminate the
  52178. // instance by running the shutdown command from the instance.
  52179. //
  52180. // Default: false
  52181. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  52182. // Checks whether you have the required permissions for the action, without
  52183. // actually making the request, and provides an error response. If you have
  52184. // the required permissions, the error response is DryRunOperation. Otherwise,
  52185. // it is UnauthorizedOperation.
  52186. DryRun *bool `locationName:"dryRun" type:"boolean"`
  52187. // Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
  52188. // provides dedicated throughput to Amazon EBS and an optimized configuration
  52189. // stack to provide optimal Amazon EBS I/O performance. This optimization isn't
  52190. // available with all instance types. Additional usage charges apply when using
  52191. // an EBS-optimized instance.
  52192. //
  52193. // Default: false
  52194. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  52195. // An elastic GPU to associate with the instance.
  52196. ElasticGpuSpecification []*ElasticGpuSpecification `locationNameList:"item" type:"list"`
  52197. // The IAM instance profile.
  52198. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  52199. // The ID of the AMI, which you can get by calling DescribeImages. An AMI is
  52200. // required to launch an instance and must be specified here or in a launch
  52201. // template.
  52202. ImageId *string `type:"string"`
  52203. // Indicates whether an instance stops or terminates when you initiate shutdown
  52204. // from the instance (using the operating system command for system shutdown).
  52205. //
  52206. // Default: stop
  52207. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  52208. // The market (purchasing) option for the instances.
  52209. InstanceMarketOptions *InstanceMarketOptionsRequest `type:"structure"`
  52210. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  52211. // in the Amazon Elastic Compute Cloud User Guide.
  52212. //
  52213. // Default: m1.small
  52214. InstanceType *string `type:"string" enum:"InstanceType"`
  52215. // [EC2-VPC] A number of IPv6 addresses to associate with the primary network
  52216. // interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.
  52217. // You cannot specify this option and the option to assign specific IPv6 addresses
  52218. // in the same request. You can specify this option if you've specified a minimum
  52219. // number of instances to launch.
  52220. Ipv6AddressCount *int64 `type:"integer"`
  52221. // [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet
  52222. // to associate with the primary network interface. You cannot specify this
  52223. // option and the option to assign a number of IPv6 addresses in the same request.
  52224. // You cannot specify this option if you've specified a minimum number of instances
  52225. // to launch.
  52226. Ipv6Addresses []*InstanceIpv6Address `locationName:"Ipv6Address" locationNameList:"item" type:"list"`
  52227. // The ID of the kernel.
  52228. //
  52229. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  52230. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  52231. // in the Amazon Elastic Compute Cloud User Guide.
  52232. KernelId *string `type:"string"`
  52233. // The name of the key pair. You can create a key pair using CreateKeyPair or
  52234. // ImportKeyPair.
  52235. //
  52236. // If you do not specify a key pair, you can't connect to the instance unless
  52237. // you choose an AMI that is configured to allow users another way to log in.
  52238. KeyName *string `type:"string"`
  52239. // The launch template to use to launch the instances. Any parameters that you
  52240. // specify in RunInstances override the same parameters in the launch template.
  52241. LaunchTemplate *LaunchTemplateSpecification `type:"structure"`
  52242. // The maximum number of instances to launch. If you specify more instances
  52243. // than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches
  52244. // the largest possible number of instances above MinCount.
  52245. //
  52246. // Constraints: Between 1 and the maximum number you're allowed for the specified
  52247. // instance type. For more information about the default limits, and how to
  52248. // 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)
  52249. // in the Amazon EC2 FAQ.
  52250. //
  52251. // MaxCount is a required field
  52252. MaxCount *int64 `type:"integer" required:"true"`
  52253. // The minimum number of instances to launch. If you specify a minimum that
  52254. // is more instances than Amazon EC2 can launch in the target Availability Zone,
  52255. // Amazon EC2 launches no instances.
  52256. //
  52257. // Constraints: Between 1 and the maximum number you're allowed for the specified
  52258. // instance type. For more information about the default limits, and how to
  52259. // 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)
  52260. // in the Amazon EC2 General FAQ.
  52261. //
  52262. // MinCount is a required field
  52263. MinCount *int64 `type:"integer" required:"true"`
  52264. // The monitoring for the instance.
  52265. Monitoring *RunInstancesMonitoringEnabled `type:"structure"`
  52266. // One or more network interfaces.
  52267. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterface" locationNameList:"item" type:"list"`
  52268. // The placement for the instance.
  52269. Placement *Placement `type:"structure"`
  52270. // [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4
  52271. // address range of the subnet.
  52272. //
  52273. // Only one private IP address can be designated as primary. You can't specify
  52274. // this option if you've specified the option to designate a private IP address
  52275. // as the primary IP address in a network interface specification. You cannot
  52276. // specify this option if you're launching more than one instance in the request.
  52277. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  52278. // The ID of the RAM disk.
  52279. //
  52280. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For more
  52281. // information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  52282. // in the Amazon Elastic Compute Cloud User Guide.
  52283. RamdiskId *string `type:"string"`
  52284. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  52285. //
  52286. // Default: Amazon EC2 uses the default security group.
  52287. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  52288. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  52289. // VPC, you must use security group IDs instead.
  52290. //
  52291. // Default: Amazon EC2 uses the default security group.
  52292. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  52293. // [EC2-VPC] The ID of the subnet to launch the instance into.
  52294. SubnetId *string `type:"string"`
  52295. // The tags to apply to the resources during launch. You can tag instances and
  52296. // volumes. The specified tags are applied to all instances or volumes that
  52297. // are created during launch.
  52298. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
  52299. // The user data to make available to the instance. For more information, see
  52300. // Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  52301. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  52302. // (Windows). If you are using a command line tool, base64-encoding is performed
  52303. // for you, and you can load the text from a file. Otherwise, you must provide
  52304. // base64-encoded text.
  52305. UserData *string `type:"string"`
  52306. }
  52307. // String returns the string representation
  52308. func (s RunInstancesInput) String() string {
  52309. return awsutil.Prettify(s)
  52310. }
  52311. // GoString returns the string representation
  52312. func (s RunInstancesInput) GoString() string {
  52313. return s.String()
  52314. }
  52315. // Validate inspects the fields of the type to determine if they are valid.
  52316. func (s *RunInstancesInput) Validate() error {
  52317. invalidParams := request.ErrInvalidParams{Context: "RunInstancesInput"}
  52318. if s.MaxCount == nil {
  52319. invalidParams.Add(request.NewErrParamRequired("MaxCount"))
  52320. }
  52321. if s.MinCount == nil {
  52322. invalidParams.Add(request.NewErrParamRequired("MinCount"))
  52323. }
  52324. if s.CreditSpecification != nil {
  52325. if err := s.CreditSpecification.Validate(); err != nil {
  52326. invalidParams.AddNested("CreditSpecification", err.(request.ErrInvalidParams))
  52327. }
  52328. }
  52329. if s.ElasticGpuSpecification != nil {
  52330. for i, v := range s.ElasticGpuSpecification {
  52331. if v == nil {
  52332. continue
  52333. }
  52334. if err := v.Validate(); err != nil {
  52335. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticGpuSpecification", i), err.(request.ErrInvalidParams))
  52336. }
  52337. }
  52338. }
  52339. if s.Monitoring != nil {
  52340. if err := s.Monitoring.Validate(); err != nil {
  52341. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  52342. }
  52343. }
  52344. if s.NetworkInterfaces != nil {
  52345. for i, v := range s.NetworkInterfaces {
  52346. if v == nil {
  52347. continue
  52348. }
  52349. if err := v.Validate(); err != nil {
  52350. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  52351. }
  52352. }
  52353. }
  52354. if invalidParams.Len() > 0 {
  52355. return invalidParams
  52356. }
  52357. return nil
  52358. }
  52359. // SetAdditionalInfo sets the AdditionalInfo field's value.
  52360. func (s *RunInstancesInput) SetAdditionalInfo(v string) *RunInstancesInput {
  52361. s.AdditionalInfo = &v
  52362. return s
  52363. }
  52364. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  52365. func (s *RunInstancesInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *RunInstancesInput {
  52366. s.BlockDeviceMappings = v
  52367. return s
  52368. }
  52369. // SetClientToken sets the ClientToken field's value.
  52370. func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput {
  52371. s.ClientToken = &v
  52372. return s
  52373. }
  52374. // SetCreditSpecification sets the CreditSpecification field's value.
  52375. func (s *RunInstancesInput) SetCreditSpecification(v *CreditSpecificationRequest) *RunInstancesInput {
  52376. s.CreditSpecification = v
  52377. return s
  52378. }
  52379. // SetDisableApiTermination sets the DisableApiTermination field's value.
  52380. func (s *RunInstancesInput) SetDisableApiTermination(v bool) *RunInstancesInput {
  52381. s.DisableApiTermination = &v
  52382. return s
  52383. }
  52384. // SetDryRun sets the DryRun field's value.
  52385. func (s *RunInstancesInput) SetDryRun(v bool) *RunInstancesInput {
  52386. s.DryRun = &v
  52387. return s
  52388. }
  52389. // SetEbsOptimized sets the EbsOptimized field's value.
  52390. func (s *RunInstancesInput) SetEbsOptimized(v bool) *RunInstancesInput {
  52391. s.EbsOptimized = &v
  52392. return s
  52393. }
  52394. // SetElasticGpuSpecification sets the ElasticGpuSpecification field's value.
  52395. func (s *RunInstancesInput) SetElasticGpuSpecification(v []*ElasticGpuSpecification) *RunInstancesInput {
  52396. s.ElasticGpuSpecification = v
  52397. return s
  52398. }
  52399. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  52400. func (s *RunInstancesInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RunInstancesInput {
  52401. s.IamInstanceProfile = v
  52402. return s
  52403. }
  52404. // SetImageId sets the ImageId field's value.
  52405. func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput {
  52406. s.ImageId = &v
  52407. return s
  52408. }
  52409. // SetInstanceInitiatedShutdownBehavior sets the InstanceInitiatedShutdownBehavior field's value.
  52410. func (s *RunInstancesInput) SetInstanceInitiatedShutdownBehavior(v string) *RunInstancesInput {
  52411. s.InstanceInitiatedShutdownBehavior = &v
  52412. return s
  52413. }
  52414. // SetInstanceMarketOptions sets the InstanceMarketOptions field's value.
  52415. func (s *RunInstancesInput) SetInstanceMarketOptions(v *InstanceMarketOptionsRequest) *RunInstancesInput {
  52416. s.InstanceMarketOptions = v
  52417. return s
  52418. }
  52419. // SetInstanceType sets the InstanceType field's value.
  52420. func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput {
  52421. s.InstanceType = &v
  52422. return s
  52423. }
  52424. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  52425. func (s *RunInstancesInput) SetIpv6AddressCount(v int64) *RunInstancesInput {
  52426. s.Ipv6AddressCount = &v
  52427. return s
  52428. }
  52429. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  52430. func (s *RunInstancesInput) SetIpv6Addresses(v []*InstanceIpv6Address) *RunInstancesInput {
  52431. s.Ipv6Addresses = v
  52432. return s
  52433. }
  52434. // SetKernelId sets the KernelId field's value.
  52435. func (s *RunInstancesInput) SetKernelId(v string) *RunInstancesInput {
  52436. s.KernelId = &v
  52437. return s
  52438. }
  52439. // SetKeyName sets the KeyName field's value.
  52440. func (s *RunInstancesInput) SetKeyName(v string) *RunInstancesInput {
  52441. s.KeyName = &v
  52442. return s
  52443. }
  52444. // SetLaunchTemplate sets the LaunchTemplate field's value.
  52445. func (s *RunInstancesInput) SetLaunchTemplate(v *LaunchTemplateSpecification) *RunInstancesInput {
  52446. s.LaunchTemplate = v
  52447. return s
  52448. }
  52449. // SetMaxCount sets the MaxCount field's value.
  52450. func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput {
  52451. s.MaxCount = &v
  52452. return s
  52453. }
  52454. // SetMinCount sets the MinCount field's value.
  52455. func (s *RunInstancesInput) SetMinCount(v int64) *RunInstancesInput {
  52456. s.MinCount = &v
  52457. return s
  52458. }
  52459. // SetMonitoring sets the Monitoring field's value.
  52460. func (s *RunInstancesInput) SetMonitoring(v *RunInstancesMonitoringEnabled) *RunInstancesInput {
  52461. s.Monitoring = v
  52462. return s
  52463. }
  52464. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  52465. func (s *RunInstancesInput) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *RunInstancesInput {
  52466. s.NetworkInterfaces = v
  52467. return s
  52468. }
  52469. // SetPlacement sets the Placement field's value.
  52470. func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput {
  52471. s.Placement = v
  52472. return s
  52473. }
  52474. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  52475. func (s *RunInstancesInput) SetPrivateIpAddress(v string) *RunInstancesInput {
  52476. s.PrivateIpAddress = &v
  52477. return s
  52478. }
  52479. // SetRamdiskId sets the RamdiskId field's value.
  52480. func (s *RunInstancesInput) SetRamdiskId(v string) *RunInstancesInput {
  52481. s.RamdiskId = &v
  52482. return s
  52483. }
  52484. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  52485. func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput {
  52486. s.SecurityGroupIds = v
  52487. return s
  52488. }
  52489. // SetSecurityGroups sets the SecurityGroups field's value.
  52490. func (s *RunInstancesInput) SetSecurityGroups(v []*string) *RunInstancesInput {
  52491. s.SecurityGroups = v
  52492. return s
  52493. }
  52494. // SetSubnetId sets the SubnetId field's value.
  52495. func (s *RunInstancesInput) SetSubnetId(v string) *RunInstancesInput {
  52496. s.SubnetId = &v
  52497. return s
  52498. }
  52499. // SetTagSpecifications sets the TagSpecifications field's value.
  52500. func (s *RunInstancesInput) SetTagSpecifications(v []*TagSpecification) *RunInstancesInput {
  52501. s.TagSpecifications = v
  52502. return s
  52503. }
  52504. // SetUserData sets the UserData field's value.
  52505. func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput {
  52506. s.UserData = &v
  52507. return s
  52508. }
  52509. // Describes the monitoring of an instance.
  52510. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesMonitoringEnabled
  52511. type RunInstancesMonitoringEnabled struct {
  52512. _ struct{} `type:"structure"`
  52513. // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring
  52514. // is enabled.
  52515. //
  52516. // Enabled is a required field
  52517. Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
  52518. }
  52519. // String returns the string representation
  52520. func (s RunInstancesMonitoringEnabled) String() string {
  52521. return awsutil.Prettify(s)
  52522. }
  52523. // GoString returns the string representation
  52524. func (s RunInstancesMonitoringEnabled) GoString() string {
  52525. return s.String()
  52526. }
  52527. // Validate inspects the fields of the type to determine if they are valid.
  52528. func (s *RunInstancesMonitoringEnabled) Validate() error {
  52529. invalidParams := request.ErrInvalidParams{Context: "RunInstancesMonitoringEnabled"}
  52530. if s.Enabled == nil {
  52531. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  52532. }
  52533. if invalidParams.Len() > 0 {
  52534. return invalidParams
  52535. }
  52536. return nil
  52537. }
  52538. // SetEnabled sets the Enabled field's value.
  52539. func (s *RunInstancesMonitoringEnabled) SetEnabled(v bool) *RunInstancesMonitoringEnabled {
  52540. s.Enabled = &v
  52541. return s
  52542. }
  52543. // Contains the parameters for RunScheduledInstances.
  52544. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstancesRequest
  52545. type RunScheduledInstancesInput struct {
  52546. _ struct{} `type:"structure"`
  52547. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  52548. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  52549. ClientToken *string `type:"string" idempotencyToken:"true"`
  52550. // Checks whether you have the required permissions for the action, without
  52551. // actually making the request, and provides an error response. If you have
  52552. // the required permissions, the error response is DryRunOperation. Otherwise,
  52553. // it is UnauthorizedOperation.
  52554. DryRun *bool `type:"boolean"`
  52555. // The number of instances.
  52556. //
  52557. // Default: 1
  52558. InstanceCount *int64 `type:"integer"`
  52559. // The launch specification. You must match the instance type, Availability
  52560. // Zone, network, and platform of the schedule that you purchased.
  52561. //
  52562. // LaunchSpecification is a required field
  52563. LaunchSpecification *ScheduledInstancesLaunchSpecification `type:"structure" required:"true"`
  52564. // The Scheduled Instance ID.
  52565. //
  52566. // ScheduledInstanceId is a required field
  52567. ScheduledInstanceId *string `type:"string" required:"true"`
  52568. }
  52569. // String returns the string representation
  52570. func (s RunScheduledInstancesInput) String() string {
  52571. return awsutil.Prettify(s)
  52572. }
  52573. // GoString returns the string representation
  52574. func (s RunScheduledInstancesInput) GoString() string {
  52575. return s.String()
  52576. }
  52577. // Validate inspects the fields of the type to determine if they are valid.
  52578. func (s *RunScheduledInstancesInput) Validate() error {
  52579. invalidParams := request.ErrInvalidParams{Context: "RunScheduledInstancesInput"}
  52580. if s.LaunchSpecification == nil {
  52581. invalidParams.Add(request.NewErrParamRequired("LaunchSpecification"))
  52582. }
  52583. if s.ScheduledInstanceId == nil {
  52584. invalidParams.Add(request.NewErrParamRequired("ScheduledInstanceId"))
  52585. }
  52586. if s.LaunchSpecification != nil {
  52587. if err := s.LaunchSpecification.Validate(); err != nil {
  52588. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  52589. }
  52590. }
  52591. if invalidParams.Len() > 0 {
  52592. return invalidParams
  52593. }
  52594. return nil
  52595. }
  52596. // SetClientToken sets the ClientToken field's value.
  52597. func (s *RunScheduledInstancesInput) SetClientToken(v string) *RunScheduledInstancesInput {
  52598. s.ClientToken = &v
  52599. return s
  52600. }
  52601. // SetDryRun sets the DryRun field's value.
  52602. func (s *RunScheduledInstancesInput) SetDryRun(v bool) *RunScheduledInstancesInput {
  52603. s.DryRun = &v
  52604. return s
  52605. }
  52606. // SetInstanceCount sets the InstanceCount field's value.
  52607. func (s *RunScheduledInstancesInput) SetInstanceCount(v int64) *RunScheduledInstancesInput {
  52608. s.InstanceCount = &v
  52609. return s
  52610. }
  52611. // SetLaunchSpecification sets the LaunchSpecification field's value.
  52612. func (s *RunScheduledInstancesInput) SetLaunchSpecification(v *ScheduledInstancesLaunchSpecification) *RunScheduledInstancesInput {
  52613. s.LaunchSpecification = v
  52614. return s
  52615. }
  52616. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  52617. func (s *RunScheduledInstancesInput) SetScheduledInstanceId(v string) *RunScheduledInstancesInput {
  52618. s.ScheduledInstanceId = &v
  52619. return s
  52620. }
  52621. // Contains the output of RunScheduledInstances.
  52622. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunScheduledInstancesResult
  52623. type RunScheduledInstancesOutput struct {
  52624. _ struct{} `type:"structure"`
  52625. // The IDs of the newly launched instances.
  52626. InstanceIdSet []*string `locationName:"instanceIdSet" locationNameList:"item" type:"list"`
  52627. }
  52628. // String returns the string representation
  52629. func (s RunScheduledInstancesOutput) String() string {
  52630. return awsutil.Prettify(s)
  52631. }
  52632. // GoString returns the string representation
  52633. func (s RunScheduledInstancesOutput) GoString() string {
  52634. return s.String()
  52635. }
  52636. // SetInstanceIdSet sets the InstanceIdSet field's value.
  52637. func (s *RunScheduledInstancesOutput) SetInstanceIdSet(v []*string) *RunScheduledInstancesOutput {
  52638. s.InstanceIdSet = v
  52639. return s
  52640. }
  52641. // Describes the storage parameters for S3 and S3 buckets for an instance store-backed
  52642. // AMI.
  52643. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/S3Storage
  52644. type S3Storage struct {
  52645. _ struct{} `type:"structure"`
  52646. // The access key ID of the owner of the bucket. Before you specify a value
  52647. // for your access key ID, review and follow the guidance in Best Practices
  52648. // for Managing AWS Access Keys (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
  52649. AWSAccessKeyId *string `type:"string"`
  52650. // The bucket in which to store the AMI. You can specify a bucket that you already
  52651. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  52652. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  52653. Bucket *string `locationName:"bucket" type:"string"`
  52654. // The beginning of the file name of the AMI.
  52655. Prefix *string `locationName:"prefix" type:"string"`
  52656. // An Amazon S3 upload policy that gives Amazon EC2 permission to upload items
  52657. // into Amazon S3 on your behalf.
  52658. //
  52659. // UploadPolicy is automatically base64 encoded/decoded by the SDK.
  52660. UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"`
  52661. // The signature of the JSON document.
  52662. UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"`
  52663. }
  52664. // String returns the string representation
  52665. func (s S3Storage) String() string {
  52666. return awsutil.Prettify(s)
  52667. }
  52668. // GoString returns the string representation
  52669. func (s S3Storage) GoString() string {
  52670. return s.String()
  52671. }
  52672. // SetAWSAccessKeyId sets the AWSAccessKeyId field's value.
  52673. func (s *S3Storage) SetAWSAccessKeyId(v string) *S3Storage {
  52674. s.AWSAccessKeyId = &v
  52675. return s
  52676. }
  52677. // SetBucket sets the Bucket field's value.
  52678. func (s *S3Storage) SetBucket(v string) *S3Storage {
  52679. s.Bucket = &v
  52680. return s
  52681. }
  52682. // SetPrefix sets the Prefix field's value.
  52683. func (s *S3Storage) SetPrefix(v string) *S3Storage {
  52684. s.Prefix = &v
  52685. return s
  52686. }
  52687. // SetUploadPolicy sets the UploadPolicy field's value.
  52688. func (s *S3Storage) SetUploadPolicy(v []byte) *S3Storage {
  52689. s.UploadPolicy = v
  52690. return s
  52691. }
  52692. // SetUploadPolicySignature sets the UploadPolicySignature field's value.
  52693. func (s *S3Storage) SetUploadPolicySignature(v string) *S3Storage {
  52694. s.UploadPolicySignature = &v
  52695. return s
  52696. }
  52697. // Describes a Scheduled Instance.
  52698. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstance
  52699. type ScheduledInstance struct {
  52700. _ struct{} `type:"structure"`
  52701. // The Availability Zone.
  52702. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52703. // The date when the Scheduled Instance was purchased.
  52704. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  52705. // The hourly price for a single instance.
  52706. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  52707. // The number of instances.
  52708. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  52709. // The instance type.
  52710. InstanceType *string `locationName:"instanceType" type:"string"`
  52711. // The network platform (EC2-Classic or EC2-VPC).
  52712. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  52713. // The time for the next schedule to start.
  52714. NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
  52715. // The platform (Linux/UNIX or Windows).
  52716. Platform *string `locationName:"platform" type:"string"`
  52717. // The time that the previous schedule ended or will end.
  52718. PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp" timestampFormat:"iso8601"`
  52719. // The schedule recurrence.
  52720. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  52721. // The Scheduled Instance ID.
  52722. ScheduledInstanceId *string `locationName:"scheduledInstanceId" type:"string"`
  52723. // The number of hours in the schedule.
  52724. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  52725. // The end date for the Scheduled Instance.
  52726. TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp" timestampFormat:"iso8601"`
  52727. // The start date for the Scheduled Instance.
  52728. TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp" timestampFormat:"iso8601"`
  52729. // The total number of hours for a single instance for the entire term.
  52730. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  52731. }
  52732. // String returns the string representation
  52733. func (s ScheduledInstance) String() string {
  52734. return awsutil.Prettify(s)
  52735. }
  52736. // GoString returns the string representation
  52737. func (s ScheduledInstance) GoString() string {
  52738. return s.String()
  52739. }
  52740. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52741. func (s *ScheduledInstance) SetAvailabilityZone(v string) *ScheduledInstance {
  52742. s.AvailabilityZone = &v
  52743. return s
  52744. }
  52745. // SetCreateDate sets the CreateDate field's value.
  52746. func (s *ScheduledInstance) SetCreateDate(v time.Time) *ScheduledInstance {
  52747. s.CreateDate = &v
  52748. return s
  52749. }
  52750. // SetHourlyPrice sets the HourlyPrice field's value.
  52751. func (s *ScheduledInstance) SetHourlyPrice(v string) *ScheduledInstance {
  52752. s.HourlyPrice = &v
  52753. return s
  52754. }
  52755. // SetInstanceCount sets the InstanceCount field's value.
  52756. func (s *ScheduledInstance) SetInstanceCount(v int64) *ScheduledInstance {
  52757. s.InstanceCount = &v
  52758. return s
  52759. }
  52760. // SetInstanceType sets the InstanceType field's value.
  52761. func (s *ScheduledInstance) SetInstanceType(v string) *ScheduledInstance {
  52762. s.InstanceType = &v
  52763. return s
  52764. }
  52765. // SetNetworkPlatform sets the NetworkPlatform field's value.
  52766. func (s *ScheduledInstance) SetNetworkPlatform(v string) *ScheduledInstance {
  52767. s.NetworkPlatform = &v
  52768. return s
  52769. }
  52770. // SetNextSlotStartTime sets the NextSlotStartTime field's value.
  52771. func (s *ScheduledInstance) SetNextSlotStartTime(v time.Time) *ScheduledInstance {
  52772. s.NextSlotStartTime = &v
  52773. return s
  52774. }
  52775. // SetPlatform sets the Platform field's value.
  52776. func (s *ScheduledInstance) SetPlatform(v string) *ScheduledInstance {
  52777. s.Platform = &v
  52778. return s
  52779. }
  52780. // SetPreviousSlotEndTime sets the PreviousSlotEndTime field's value.
  52781. func (s *ScheduledInstance) SetPreviousSlotEndTime(v time.Time) *ScheduledInstance {
  52782. s.PreviousSlotEndTime = &v
  52783. return s
  52784. }
  52785. // SetRecurrence sets the Recurrence field's value.
  52786. func (s *ScheduledInstance) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstance {
  52787. s.Recurrence = v
  52788. return s
  52789. }
  52790. // SetScheduledInstanceId sets the ScheduledInstanceId field's value.
  52791. func (s *ScheduledInstance) SetScheduledInstanceId(v string) *ScheduledInstance {
  52792. s.ScheduledInstanceId = &v
  52793. return s
  52794. }
  52795. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  52796. func (s *ScheduledInstance) SetSlotDurationInHours(v int64) *ScheduledInstance {
  52797. s.SlotDurationInHours = &v
  52798. return s
  52799. }
  52800. // SetTermEndDate sets the TermEndDate field's value.
  52801. func (s *ScheduledInstance) SetTermEndDate(v time.Time) *ScheduledInstance {
  52802. s.TermEndDate = &v
  52803. return s
  52804. }
  52805. // SetTermStartDate sets the TermStartDate field's value.
  52806. func (s *ScheduledInstance) SetTermStartDate(v time.Time) *ScheduledInstance {
  52807. s.TermStartDate = &v
  52808. return s
  52809. }
  52810. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  52811. func (s *ScheduledInstance) SetTotalScheduledInstanceHours(v int64) *ScheduledInstance {
  52812. s.TotalScheduledInstanceHours = &v
  52813. return s
  52814. }
  52815. // Describes a schedule that is available for your Scheduled Instances.
  52816. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceAvailability
  52817. type ScheduledInstanceAvailability struct {
  52818. _ struct{} `type:"structure"`
  52819. // The Availability Zone.
  52820. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  52821. // The number of available instances.
  52822. AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
  52823. // The time period for the first schedule to start.
  52824. FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
  52825. // The hourly price for a single instance.
  52826. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  52827. // The instance type. You can specify one of the C3, C4, M4, or R3 instance
  52828. // types.
  52829. InstanceType *string `locationName:"instanceType" type:"string"`
  52830. // The maximum term. The only possible value is 365 days.
  52831. MaxTermDurationInDays *int64 `locationName:"maxTermDurationInDays" type:"integer"`
  52832. // The minimum term. The only possible value is 365 days.
  52833. MinTermDurationInDays *int64 `locationName:"minTermDurationInDays" type:"integer"`
  52834. // The network platform (EC2-Classic or EC2-VPC).
  52835. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  52836. // The platform (Linux/UNIX or Windows).
  52837. Platform *string `locationName:"platform" type:"string"`
  52838. // The purchase token. This token expires in two hours.
  52839. PurchaseToken *string `locationName:"purchaseToken" type:"string"`
  52840. // The schedule recurrence.
  52841. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  52842. // The number of hours in the schedule.
  52843. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  52844. // The total number of hours for a single instance for the entire term.
  52845. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  52846. }
  52847. // String returns the string representation
  52848. func (s ScheduledInstanceAvailability) String() string {
  52849. return awsutil.Prettify(s)
  52850. }
  52851. // GoString returns the string representation
  52852. func (s ScheduledInstanceAvailability) GoString() string {
  52853. return s.String()
  52854. }
  52855. // SetAvailabilityZone sets the AvailabilityZone field's value.
  52856. func (s *ScheduledInstanceAvailability) SetAvailabilityZone(v string) *ScheduledInstanceAvailability {
  52857. s.AvailabilityZone = &v
  52858. return s
  52859. }
  52860. // SetAvailableInstanceCount sets the AvailableInstanceCount field's value.
  52861. func (s *ScheduledInstanceAvailability) SetAvailableInstanceCount(v int64) *ScheduledInstanceAvailability {
  52862. s.AvailableInstanceCount = &v
  52863. return s
  52864. }
  52865. // SetFirstSlotStartTime sets the FirstSlotStartTime field's value.
  52866. func (s *ScheduledInstanceAvailability) SetFirstSlotStartTime(v time.Time) *ScheduledInstanceAvailability {
  52867. s.FirstSlotStartTime = &v
  52868. return s
  52869. }
  52870. // SetHourlyPrice sets the HourlyPrice field's value.
  52871. func (s *ScheduledInstanceAvailability) SetHourlyPrice(v string) *ScheduledInstanceAvailability {
  52872. s.HourlyPrice = &v
  52873. return s
  52874. }
  52875. // SetInstanceType sets the InstanceType field's value.
  52876. func (s *ScheduledInstanceAvailability) SetInstanceType(v string) *ScheduledInstanceAvailability {
  52877. s.InstanceType = &v
  52878. return s
  52879. }
  52880. // SetMaxTermDurationInDays sets the MaxTermDurationInDays field's value.
  52881. func (s *ScheduledInstanceAvailability) SetMaxTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  52882. s.MaxTermDurationInDays = &v
  52883. return s
  52884. }
  52885. // SetMinTermDurationInDays sets the MinTermDurationInDays field's value.
  52886. func (s *ScheduledInstanceAvailability) SetMinTermDurationInDays(v int64) *ScheduledInstanceAvailability {
  52887. s.MinTermDurationInDays = &v
  52888. return s
  52889. }
  52890. // SetNetworkPlatform sets the NetworkPlatform field's value.
  52891. func (s *ScheduledInstanceAvailability) SetNetworkPlatform(v string) *ScheduledInstanceAvailability {
  52892. s.NetworkPlatform = &v
  52893. return s
  52894. }
  52895. // SetPlatform sets the Platform field's value.
  52896. func (s *ScheduledInstanceAvailability) SetPlatform(v string) *ScheduledInstanceAvailability {
  52897. s.Platform = &v
  52898. return s
  52899. }
  52900. // SetPurchaseToken sets the PurchaseToken field's value.
  52901. func (s *ScheduledInstanceAvailability) SetPurchaseToken(v string) *ScheduledInstanceAvailability {
  52902. s.PurchaseToken = &v
  52903. return s
  52904. }
  52905. // SetRecurrence sets the Recurrence field's value.
  52906. func (s *ScheduledInstanceAvailability) SetRecurrence(v *ScheduledInstanceRecurrence) *ScheduledInstanceAvailability {
  52907. s.Recurrence = v
  52908. return s
  52909. }
  52910. // SetSlotDurationInHours sets the SlotDurationInHours field's value.
  52911. func (s *ScheduledInstanceAvailability) SetSlotDurationInHours(v int64) *ScheduledInstanceAvailability {
  52912. s.SlotDurationInHours = &v
  52913. return s
  52914. }
  52915. // SetTotalScheduledInstanceHours sets the TotalScheduledInstanceHours field's value.
  52916. func (s *ScheduledInstanceAvailability) SetTotalScheduledInstanceHours(v int64) *ScheduledInstanceAvailability {
  52917. s.TotalScheduledInstanceHours = &v
  52918. return s
  52919. }
  52920. // Describes the recurring schedule for a Scheduled Instance.
  52921. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceRecurrence
  52922. type ScheduledInstanceRecurrence struct {
  52923. _ struct{} `type:"structure"`
  52924. // The frequency (Daily, Weekly, or Monthly).
  52925. Frequency *string `locationName:"frequency" type:"string"`
  52926. // The interval quantity. The interval unit depends on the value of frequency.
  52927. // For example, every 2 weeks or every 2 months.
  52928. Interval *int64 `locationName:"interval" type:"integer"`
  52929. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  52930. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  52931. // is Sunday).
  52932. OccurrenceDaySet []*int64 `locationName:"occurrenceDaySet" locationNameList:"item" type:"list"`
  52933. // Indicates whether the occurrence is relative to the end of the specified
  52934. // week or month.
  52935. OccurrenceRelativeToEnd *bool `locationName:"occurrenceRelativeToEnd" type:"boolean"`
  52936. // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).
  52937. OccurrenceUnit *string `locationName:"occurrenceUnit" type:"string"`
  52938. }
  52939. // String returns the string representation
  52940. func (s ScheduledInstanceRecurrence) String() string {
  52941. return awsutil.Prettify(s)
  52942. }
  52943. // GoString returns the string representation
  52944. func (s ScheduledInstanceRecurrence) GoString() string {
  52945. return s.String()
  52946. }
  52947. // SetFrequency sets the Frequency field's value.
  52948. func (s *ScheduledInstanceRecurrence) SetFrequency(v string) *ScheduledInstanceRecurrence {
  52949. s.Frequency = &v
  52950. return s
  52951. }
  52952. // SetInterval sets the Interval field's value.
  52953. func (s *ScheduledInstanceRecurrence) SetInterval(v int64) *ScheduledInstanceRecurrence {
  52954. s.Interval = &v
  52955. return s
  52956. }
  52957. // SetOccurrenceDaySet sets the OccurrenceDaySet field's value.
  52958. func (s *ScheduledInstanceRecurrence) SetOccurrenceDaySet(v []*int64) *ScheduledInstanceRecurrence {
  52959. s.OccurrenceDaySet = v
  52960. return s
  52961. }
  52962. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  52963. func (s *ScheduledInstanceRecurrence) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrence {
  52964. s.OccurrenceRelativeToEnd = &v
  52965. return s
  52966. }
  52967. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  52968. func (s *ScheduledInstanceRecurrence) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrence {
  52969. s.OccurrenceUnit = &v
  52970. return s
  52971. }
  52972. // Describes the recurring schedule for a Scheduled Instance.
  52973. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstanceRecurrenceRequest
  52974. type ScheduledInstanceRecurrenceRequest struct {
  52975. _ struct{} `type:"structure"`
  52976. // The frequency (Daily, Weekly, or Monthly).
  52977. Frequency *string `type:"string"`
  52978. // The interval quantity. The interval unit depends on the value of Frequency.
  52979. // For example, every 2 weeks or every 2 months.
  52980. Interval *int64 `type:"integer"`
  52981. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  52982. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  52983. // is Sunday). You can't specify this value with a daily schedule. If the occurrence
  52984. // is relative to the end of the month, you can specify only a single day.
  52985. OccurrenceDays []*int64 `locationName:"OccurrenceDay" locationNameList:"OccurenceDay" type:"list"`
  52986. // Indicates whether the occurrence is relative to the end of the specified
  52987. // week or month. You can't specify this value with a daily schedule.
  52988. OccurrenceRelativeToEnd *bool `type:"boolean"`
  52989. // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required
  52990. // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule.
  52991. // You can't specify this value with a daily schedule.
  52992. OccurrenceUnit *string `type:"string"`
  52993. }
  52994. // String returns the string representation
  52995. func (s ScheduledInstanceRecurrenceRequest) String() string {
  52996. return awsutil.Prettify(s)
  52997. }
  52998. // GoString returns the string representation
  52999. func (s ScheduledInstanceRecurrenceRequest) GoString() string {
  53000. return s.String()
  53001. }
  53002. // SetFrequency sets the Frequency field's value.
  53003. func (s *ScheduledInstanceRecurrenceRequest) SetFrequency(v string) *ScheduledInstanceRecurrenceRequest {
  53004. s.Frequency = &v
  53005. return s
  53006. }
  53007. // SetInterval sets the Interval field's value.
  53008. func (s *ScheduledInstanceRecurrenceRequest) SetInterval(v int64) *ScheduledInstanceRecurrenceRequest {
  53009. s.Interval = &v
  53010. return s
  53011. }
  53012. // SetOccurrenceDays sets the OccurrenceDays field's value.
  53013. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceDays(v []*int64) *ScheduledInstanceRecurrenceRequest {
  53014. s.OccurrenceDays = v
  53015. return s
  53016. }
  53017. // SetOccurrenceRelativeToEnd sets the OccurrenceRelativeToEnd field's value.
  53018. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceRelativeToEnd(v bool) *ScheduledInstanceRecurrenceRequest {
  53019. s.OccurrenceRelativeToEnd = &v
  53020. return s
  53021. }
  53022. // SetOccurrenceUnit sets the OccurrenceUnit field's value.
  53023. func (s *ScheduledInstanceRecurrenceRequest) SetOccurrenceUnit(v string) *ScheduledInstanceRecurrenceRequest {
  53024. s.OccurrenceUnit = &v
  53025. return s
  53026. }
  53027. // Describes a block device mapping for a Scheduled Instance.
  53028. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesBlockDeviceMapping
  53029. type ScheduledInstancesBlockDeviceMapping struct {
  53030. _ struct{} `type:"structure"`
  53031. // The device name (for example, /dev/sdh or xvdh).
  53032. DeviceName *string `type:"string"`
  53033. // Parameters used to set up EBS volumes automatically when the instance is
  53034. // launched.
  53035. Ebs *ScheduledInstancesEbs `type:"structure"`
  53036. // Suppresses the specified device included in the block device mapping of the
  53037. // AMI.
  53038. NoDevice *string `type:"string"`
  53039. // The virtual device name (ephemeralN). Instance store volumes are numbered
  53040. // starting from 0. An instance type with two available instance store volumes
  53041. // can specify mappings for ephemeral0 and ephemeral1. The number of available
  53042. // instance store volumes depends on the instance type. After you connect to
  53043. // the instance, you must mount the volume.
  53044. //
  53045. // Constraints: For M3 instances, you must specify instance store volumes in
  53046. // the block device mapping for the instance. When you launch an M3 instance,
  53047. // we ignore any instance store volumes specified in the block device mapping
  53048. // for the AMI.
  53049. VirtualName *string `type:"string"`
  53050. }
  53051. // String returns the string representation
  53052. func (s ScheduledInstancesBlockDeviceMapping) String() string {
  53053. return awsutil.Prettify(s)
  53054. }
  53055. // GoString returns the string representation
  53056. func (s ScheduledInstancesBlockDeviceMapping) GoString() string {
  53057. return s.String()
  53058. }
  53059. // SetDeviceName sets the DeviceName field's value.
  53060. func (s *ScheduledInstancesBlockDeviceMapping) SetDeviceName(v string) *ScheduledInstancesBlockDeviceMapping {
  53061. s.DeviceName = &v
  53062. return s
  53063. }
  53064. // SetEbs sets the Ebs field's value.
  53065. func (s *ScheduledInstancesBlockDeviceMapping) SetEbs(v *ScheduledInstancesEbs) *ScheduledInstancesBlockDeviceMapping {
  53066. s.Ebs = v
  53067. return s
  53068. }
  53069. // SetNoDevice sets the NoDevice field's value.
  53070. func (s *ScheduledInstancesBlockDeviceMapping) SetNoDevice(v string) *ScheduledInstancesBlockDeviceMapping {
  53071. s.NoDevice = &v
  53072. return s
  53073. }
  53074. // SetVirtualName sets the VirtualName field's value.
  53075. func (s *ScheduledInstancesBlockDeviceMapping) SetVirtualName(v string) *ScheduledInstancesBlockDeviceMapping {
  53076. s.VirtualName = &v
  53077. return s
  53078. }
  53079. // Describes an EBS volume for a Scheduled Instance.
  53080. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesEbs
  53081. type ScheduledInstancesEbs struct {
  53082. _ struct{} `type:"structure"`
  53083. // Indicates whether the volume is deleted on instance termination.
  53084. DeleteOnTermination *bool `type:"boolean"`
  53085. // Indicates whether the volume is encrypted. You can attached encrypted volumes
  53086. // only to instances that support them.
  53087. Encrypted *bool `type:"boolean"`
  53088. // The number of I/O operations per second (IOPS) that the volume supports.
  53089. // For io1 volumes, this represents the number of IOPS that are provisioned
  53090. // for the volume. For gp2 volumes, this represents the baseline performance
  53091. // of the volume and the rate at which the volume accumulates I/O credits for
  53092. // bursting. For more information about gp2 baseline performance, I/O credits,
  53093. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  53094. // in the Amazon Elastic Compute Cloud User Guide.
  53095. //
  53096. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  53097. // gp2 volumes.
  53098. //
  53099. // Condition: This parameter is required for requests to create io1volumes;
  53100. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  53101. Iops *int64 `type:"integer"`
  53102. // The ID of the snapshot.
  53103. SnapshotId *string `type:"string"`
  53104. // The size of the volume, in GiB.
  53105. //
  53106. // Default: If you're creating the volume from a snapshot and don't specify
  53107. // a volume size, the default is the snapshot size.
  53108. VolumeSize *int64 `type:"integer"`
  53109. // The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD,
  53110. // Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.
  53111. //
  53112. // Default: standard
  53113. VolumeType *string `type:"string"`
  53114. }
  53115. // String returns the string representation
  53116. func (s ScheduledInstancesEbs) String() string {
  53117. return awsutil.Prettify(s)
  53118. }
  53119. // GoString returns the string representation
  53120. func (s ScheduledInstancesEbs) GoString() string {
  53121. return s.String()
  53122. }
  53123. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  53124. func (s *ScheduledInstancesEbs) SetDeleteOnTermination(v bool) *ScheduledInstancesEbs {
  53125. s.DeleteOnTermination = &v
  53126. return s
  53127. }
  53128. // SetEncrypted sets the Encrypted field's value.
  53129. func (s *ScheduledInstancesEbs) SetEncrypted(v bool) *ScheduledInstancesEbs {
  53130. s.Encrypted = &v
  53131. return s
  53132. }
  53133. // SetIops sets the Iops field's value.
  53134. func (s *ScheduledInstancesEbs) SetIops(v int64) *ScheduledInstancesEbs {
  53135. s.Iops = &v
  53136. return s
  53137. }
  53138. // SetSnapshotId sets the SnapshotId field's value.
  53139. func (s *ScheduledInstancesEbs) SetSnapshotId(v string) *ScheduledInstancesEbs {
  53140. s.SnapshotId = &v
  53141. return s
  53142. }
  53143. // SetVolumeSize sets the VolumeSize field's value.
  53144. func (s *ScheduledInstancesEbs) SetVolumeSize(v int64) *ScheduledInstancesEbs {
  53145. s.VolumeSize = &v
  53146. return s
  53147. }
  53148. // SetVolumeType sets the VolumeType field's value.
  53149. func (s *ScheduledInstancesEbs) SetVolumeType(v string) *ScheduledInstancesEbs {
  53150. s.VolumeType = &v
  53151. return s
  53152. }
  53153. // Describes an IAM instance profile for a Scheduled Instance.
  53154. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesIamInstanceProfile
  53155. type ScheduledInstancesIamInstanceProfile struct {
  53156. _ struct{} `type:"structure"`
  53157. // The Amazon Resource Name (ARN).
  53158. Arn *string `type:"string"`
  53159. // The name.
  53160. Name *string `type:"string"`
  53161. }
  53162. // String returns the string representation
  53163. func (s ScheduledInstancesIamInstanceProfile) String() string {
  53164. return awsutil.Prettify(s)
  53165. }
  53166. // GoString returns the string representation
  53167. func (s ScheduledInstancesIamInstanceProfile) GoString() string {
  53168. return s.String()
  53169. }
  53170. // SetArn sets the Arn field's value.
  53171. func (s *ScheduledInstancesIamInstanceProfile) SetArn(v string) *ScheduledInstancesIamInstanceProfile {
  53172. s.Arn = &v
  53173. return s
  53174. }
  53175. // SetName sets the Name field's value.
  53176. func (s *ScheduledInstancesIamInstanceProfile) SetName(v string) *ScheduledInstancesIamInstanceProfile {
  53177. s.Name = &v
  53178. return s
  53179. }
  53180. // Describes an IPv6 address.
  53181. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesIpv6Address
  53182. type ScheduledInstancesIpv6Address struct {
  53183. _ struct{} `type:"structure"`
  53184. // The IPv6 address.
  53185. Ipv6Address *string `type:"string"`
  53186. }
  53187. // String returns the string representation
  53188. func (s ScheduledInstancesIpv6Address) String() string {
  53189. return awsutil.Prettify(s)
  53190. }
  53191. // GoString returns the string representation
  53192. func (s ScheduledInstancesIpv6Address) GoString() string {
  53193. return s.String()
  53194. }
  53195. // SetIpv6Address sets the Ipv6Address field's value.
  53196. func (s *ScheduledInstancesIpv6Address) SetIpv6Address(v string) *ScheduledInstancesIpv6Address {
  53197. s.Ipv6Address = &v
  53198. return s
  53199. }
  53200. // Describes the launch specification for a Scheduled Instance.
  53201. //
  53202. // If you are launching the Scheduled Instance in EC2-VPC, you must specify
  53203. // the ID of the subnet. You can specify the subnet using either SubnetId or
  53204. // NetworkInterface.
  53205. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesLaunchSpecification
  53206. type ScheduledInstancesLaunchSpecification struct {
  53207. _ struct{} `type:"structure"`
  53208. // One or more block device mapping entries.
  53209. BlockDeviceMappings []*ScheduledInstancesBlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  53210. // Indicates whether the instances are optimized for EBS I/O. This optimization
  53211. // provides dedicated throughput to Amazon EBS and an optimized configuration
  53212. // stack to provide optimal EBS I/O performance. This optimization isn't available
  53213. // with all instance types. Additional usage charges apply when using an EBS-optimized
  53214. // instance.
  53215. //
  53216. // Default: false
  53217. EbsOptimized *bool `type:"boolean"`
  53218. // The IAM instance profile.
  53219. IamInstanceProfile *ScheduledInstancesIamInstanceProfile `type:"structure"`
  53220. // The ID of the Amazon Machine Image (AMI).
  53221. //
  53222. // ImageId is a required field
  53223. ImageId *string `type:"string" required:"true"`
  53224. // The instance type.
  53225. InstanceType *string `type:"string"`
  53226. // The ID of the kernel.
  53227. KernelId *string `type:"string"`
  53228. // The name of the key pair.
  53229. KeyName *string `type:"string"`
  53230. // Enable or disable monitoring for the instances.
  53231. Monitoring *ScheduledInstancesMonitoring `type:"structure"`
  53232. // One or more network interfaces.
  53233. NetworkInterfaces []*ScheduledInstancesNetworkInterface `locationName:"NetworkInterface" locationNameList:"NetworkInterface" type:"list"`
  53234. // The placement information.
  53235. Placement *ScheduledInstancesPlacement `type:"structure"`
  53236. // The ID of the RAM disk.
  53237. RamdiskId *string `type:"string"`
  53238. // The IDs of one or more security groups.
  53239. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  53240. // The ID of the subnet in which to launch the instances.
  53241. SubnetId *string `type:"string"`
  53242. // The base64-encoded MIME user data.
  53243. UserData *string `type:"string"`
  53244. }
  53245. // String returns the string representation
  53246. func (s ScheduledInstancesLaunchSpecification) String() string {
  53247. return awsutil.Prettify(s)
  53248. }
  53249. // GoString returns the string representation
  53250. func (s ScheduledInstancesLaunchSpecification) GoString() string {
  53251. return s.String()
  53252. }
  53253. // Validate inspects the fields of the type to determine if they are valid.
  53254. func (s *ScheduledInstancesLaunchSpecification) Validate() error {
  53255. invalidParams := request.ErrInvalidParams{Context: "ScheduledInstancesLaunchSpecification"}
  53256. if s.ImageId == nil {
  53257. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  53258. }
  53259. if invalidParams.Len() > 0 {
  53260. return invalidParams
  53261. }
  53262. return nil
  53263. }
  53264. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  53265. func (s *ScheduledInstancesLaunchSpecification) SetBlockDeviceMappings(v []*ScheduledInstancesBlockDeviceMapping) *ScheduledInstancesLaunchSpecification {
  53266. s.BlockDeviceMappings = v
  53267. return s
  53268. }
  53269. // SetEbsOptimized sets the EbsOptimized field's value.
  53270. func (s *ScheduledInstancesLaunchSpecification) SetEbsOptimized(v bool) *ScheduledInstancesLaunchSpecification {
  53271. s.EbsOptimized = &v
  53272. return s
  53273. }
  53274. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  53275. func (s *ScheduledInstancesLaunchSpecification) SetIamInstanceProfile(v *ScheduledInstancesIamInstanceProfile) *ScheduledInstancesLaunchSpecification {
  53276. s.IamInstanceProfile = v
  53277. return s
  53278. }
  53279. // SetImageId sets the ImageId field's value.
  53280. func (s *ScheduledInstancesLaunchSpecification) SetImageId(v string) *ScheduledInstancesLaunchSpecification {
  53281. s.ImageId = &v
  53282. return s
  53283. }
  53284. // SetInstanceType sets the InstanceType field's value.
  53285. func (s *ScheduledInstancesLaunchSpecification) SetInstanceType(v string) *ScheduledInstancesLaunchSpecification {
  53286. s.InstanceType = &v
  53287. return s
  53288. }
  53289. // SetKernelId sets the KernelId field's value.
  53290. func (s *ScheduledInstancesLaunchSpecification) SetKernelId(v string) *ScheduledInstancesLaunchSpecification {
  53291. s.KernelId = &v
  53292. return s
  53293. }
  53294. // SetKeyName sets the KeyName field's value.
  53295. func (s *ScheduledInstancesLaunchSpecification) SetKeyName(v string) *ScheduledInstancesLaunchSpecification {
  53296. s.KeyName = &v
  53297. return s
  53298. }
  53299. // SetMonitoring sets the Monitoring field's value.
  53300. func (s *ScheduledInstancesLaunchSpecification) SetMonitoring(v *ScheduledInstancesMonitoring) *ScheduledInstancesLaunchSpecification {
  53301. s.Monitoring = v
  53302. return s
  53303. }
  53304. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  53305. func (s *ScheduledInstancesLaunchSpecification) SetNetworkInterfaces(v []*ScheduledInstancesNetworkInterface) *ScheduledInstancesLaunchSpecification {
  53306. s.NetworkInterfaces = v
  53307. return s
  53308. }
  53309. // SetPlacement sets the Placement field's value.
  53310. func (s *ScheduledInstancesLaunchSpecification) SetPlacement(v *ScheduledInstancesPlacement) *ScheduledInstancesLaunchSpecification {
  53311. s.Placement = v
  53312. return s
  53313. }
  53314. // SetRamdiskId sets the RamdiskId field's value.
  53315. func (s *ScheduledInstancesLaunchSpecification) SetRamdiskId(v string) *ScheduledInstancesLaunchSpecification {
  53316. s.RamdiskId = &v
  53317. return s
  53318. }
  53319. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  53320. func (s *ScheduledInstancesLaunchSpecification) SetSecurityGroupIds(v []*string) *ScheduledInstancesLaunchSpecification {
  53321. s.SecurityGroupIds = v
  53322. return s
  53323. }
  53324. // SetSubnetId sets the SubnetId field's value.
  53325. func (s *ScheduledInstancesLaunchSpecification) SetSubnetId(v string) *ScheduledInstancesLaunchSpecification {
  53326. s.SubnetId = &v
  53327. return s
  53328. }
  53329. // SetUserData sets the UserData field's value.
  53330. func (s *ScheduledInstancesLaunchSpecification) SetUserData(v string) *ScheduledInstancesLaunchSpecification {
  53331. s.UserData = &v
  53332. return s
  53333. }
  53334. // Describes whether monitoring is enabled for a Scheduled Instance.
  53335. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesMonitoring
  53336. type ScheduledInstancesMonitoring struct {
  53337. _ struct{} `type:"structure"`
  53338. // Indicates whether monitoring is enabled.
  53339. Enabled *bool `type:"boolean"`
  53340. }
  53341. // String returns the string representation
  53342. func (s ScheduledInstancesMonitoring) String() string {
  53343. return awsutil.Prettify(s)
  53344. }
  53345. // GoString returns the string representation
  53346. func (s ScheduledInstancesMonitoring) GoString() string {
  53347. return s.String()
  53348. }
  53349. // SetEnabled sets the Enabled field's value.
  53350. func (s *ScheduledInstancesMonitoring) SetEnabled(v bool) *ScheduledInstancesMonitoring {
  53351. s.Enabled = &v
  53352. return s
  53353. }
  53354. // Describes a network interface for a Scheduled Instance.
  53355. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesNetworkInterface
  53356. type ScheduledInstancesNetworkInterface struct {
  53357. _ struct{} `type:"structure"`
  53358. // Indicates whether to assign a public IPv4 address to instances launched in
  53359. // a VPC. The public IPv4 address can only be assigned to a network interface
  53360. // for eth0, and can only be assigned to a new network interface, not an existing
  53361. // one. You cannot specify more than one network interface in the request. If
  53362. // launching into a default subnet, the default value is true.
  53363. AssociatePublicIpAddress *bool `type:"boolean"`
  53364. // Indicates whether to delete the interface when the instance is terminated.
  53365. DeleteOnTermination *bool `type:"boolean"`
  53366. // The description.
  53367. Description *string `type:"string"`
  53368. // The index of the device for the network interface attachment.
  53369. DeviceIndex *int64 `type:"integer"`
  53370. // The IDs of one or more security groups.
  53371. Groups []*string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"`
  53372. // The number of IPv6 addresses to assign to the network interface. The IPv6
  53373. // addresses are automatically selected from the subnet range.
  53374. Ipv6AddressCount *int64 `type:"integer"`
  53375. // One or more specific IPv6 addresses from the subnet range.
  53376. Ipv6Addresses []*ScheduledInstancesIpv6Address `locationName:"Ipv6Address" locationNameList:"Ipv6Address" type:"list"`
  53377. // The ID of the network interface.
  53378. NetworkInterfaceId *string `type:"string"`
  53379. // The IPv4 address of the network interface within the subnet.
  53380. PrivateIpAddress *string `type:"string"`
  53381. // The private IPv4 addresses.
  53382. PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"`
  53383. // The number of secondary private IPv4 addresses.
  53384. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  53385. // The ID of the subnet.
  53386. SubnetId *string `type:"string"`
  53387. }
  53388. // String returns the string representation
  53389. func (s ScheduledInstancesNetworkInterface) String() string {
  53390. return awsutil.Prettify(s)
  53391. }
  53392. // GoString returns the string representation
  53393. func (s ScheduledInstancesNetworkInterface) GoString() string {
  53394. return s.String()
  53395. }
  53396. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  53397. func (s *ScheduledInstancesNetworkInterface) SetAssociatePublicIpAddress(v bool) *ScheduledInstancesNetworkInterface {
  53398. s.AssociatePublicIpAddress = &v
  53399. return s
  53400. }
  53401. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  53402. func (s *ScheduledInstancesNetworkInterface) SetDeleteOnTermination(v bool) *ScheduledInstancesNetworkInterface {
  53403. s.DeleteOnTermination = &v
  53404. return s
  53405. }
  53406. // SetDescription sets the Description field's value.
  53407. func (s *ScheduledInstancesNetworkInterface) SetDescription(v string) *ScheduledInstancesNetworkInterface {
  53408. s.Description = &v
  53409. return s
  53410. }
  53411. // SetDeviceIndex sets the DeviceIndex field's value.
  53412. func (s *ScheduledInstancesNetworkInterface) SetDeviceIndex(v int64) *ScheduledInstancesNetworkInterface {
  53413. s.DeviceIndex = &v
  53414. return s
  53415. }
  53416. // SetGroups sets the Groups field's value.
  53417. func (s *ScheduledInstancesNetworkInterface) SetGroups(v []*string) *ScheduledInstancesNetworkInterface {
  53418. s.Groups = v
  53419. return s
  53420. }
  53421. // SetIpv6AddressCount sets the Ipv6AddressCount field's value.
  53422. func (s *ScheduledInstancesNetworkInterface) SetIpv6AddressCount(v int64) *ScheduledInstancesNetworkInterface {
  53423. s.Ipv6AddressCount = &v
  53424. return s
  53425. }
  53426. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  53427. func (s *ScheduledInstancesNetworkInterface) SetIpv6Addresses(v []*ScheduledInstancesIpv6Address) *ScheduledInstancesNetworkInterface {
  53428. s.Ipv6Addresses = v
  53429. return s
  53430. }
  53431. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  53432. func (s *ScheduledInstancesNetworkInterface) SetNetworkInterfaceId(v string) *ScheduledInstancesNetworkInterface {
  53433. s.NetworkInterfaceId = &v
  53434. return s
  53435. }
  53436. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53437. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddress(v string) *ScheduledInstancesNetworkInterface {
  53438. s.PrivateIpAddress = &v
  53439. return s
  53440. }
  53441. // SetPrivateIpAddressConfigs sets the PrivateIpAddressConfigs field's value.
  53442. func (s *ScheduledInstancesNetworkInterface) SetPrivateIpAddressConfigs(v []*ScheduledInstancesPrivateIpAddressConfig) *ScheduledInstancesNetworkInterface {
  53443. s.PrivateIpAddressConfigs = v
  53444. return s
  53445. }
  53446. // SetSecondaryPrivateIpAddressCount sets the SecondaryPrivateIpAddressCount field's value.
  53447. func (s *ScheduledInstancesNetworkInterface) SetSecondaryPrivateIpAddressCount(v int64) *ScheduledInstancesNetworkInterface {
  53448. s.SecondaryPrivateIpAddressCount = &v
  53449. return s
  53450. }
  53451. // SetSubnetId sets the SubnetId field's value.
  53452. func (s *ScheduledInstancesNetworkInterface) SetSubnetId(v string) *ScheduledInstancesNetworkInterface {
  53453. s.SubnetId = &v
  53454. return s
  53455. }
  53456. // Describes the placement for a Scheduled Instance.
  53457. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesPlacement
  53458. type ScheduledInstancesPlacement struct {
  53459. _ struct{} `type:"structure"`
  53460. // The Availability Zone.
  53461. AvailabilityZone *string `type:"string"`
  53462. // The name of the placement group.
  53463. GroupName *string `type:"string"`
  53464. }
  53465. // String returns the string representation
  53466. func (s ScheduledInstancesPlacement) String() string {
  53467. return awsutil.Prettify(s)
  53468. }
  53469. // GoString returns the string representation
  53470. func (s ScheduledInstancesPlacement) GoString() string {
  53471. return s.String()
  53472. }
  53473. // SetAvailabilityZone sets the AvailabilityZone field's value.
  53474. func (s *ScheduledInstancesPlacement) SetAvailabilityZone(v string) *ScheduledInstancesPlacement {
  53475. s.AvailabilityZone = &v
  53476. return s
  53477. }
  53478. // SetGroupName sets the GroupName field's value.
  53479. func (s *ScheduledInstancesPlacement) SetGroupName(v string) *ScheduledInstancesPlacement {
  53480. s.GroupName = &v
  53481. return s
  53482. }
  53483. // Describes a private IPv4 address for a Scheduled Instance.
  53484. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ScheduledInstancesPrivateIpAddressConfig
  53485. type ScheduledInstancesPrivateIpAddressConfig struct {
  53486. _ struct{} `type:"structure"`
  53487. // Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary
  53488. // IPv4 address.
  53489. Primary *bool `type:"boolean"`
  53490. // The IPv4 address.
  53491. PrivateIpAddress *string `type:"string"`
  53492. }
  53493. // String returns the string representation
  53494. func (s ScheduledInstancesPrivateIpAddressConfig) String() string {
  53495. return awsutil.Prettify(s)
  53496. }
  53497. // GoString returns the string representation
  53498. func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string {
  53499. return s.String()
  53500. }
  53501. // SetPrimary sets the Primary field's value.
  53502. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrimary(v bool) *ScheduledInstancesPrivateIpAddressConfig {
  53503. s.Primary = &v
  53504. return s
  53505. }
  53506. // SetPrivateIpAddress sets the PrivateIpAddress field's value.
  53507. func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrivateIpAddress(v string) *ScheduledInstancesPrivateIpAddressConfig {
  53508. s.PrivateIpAddress = &v
  53509. return s
  53510. }
  53511. // Describes a security group
  53512. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroup
  53513. type SecurityGroup struct {
  53514. _ struct{} `type:"structure"`
  53515. // A description of the security group.
  53516. Description *string `locationName:"groupDescription" type:"string"`
  53517. // The ID of the security group.
  53518. GroupId *string `locationName:"groupId" type:"string"`
  53519. // The name of the security group.
  53520. GroupName *string `locationName:"groupName" type:"string"`
  53521. // One or more inbound rules associated with the security group.
  53522. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  53523. // [EC2-VPC] One or more outbound rules associated with the security group.
  53524. IpPermissionsEgress []*IpPermission `locationName:"ipPermissionsEgress" locationNameList:"item" type:"list"`
  53525. // The AWS account ID of the owner of the security group.
  53526. OwnerId *string `locationName:"ownerId" type:"string"`
  53527. // Any tags assigned to the security group.
  53528. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  53529. // [EC2-VPC] The ID of the VPC for the security group.
  53530. VpcId *string `locationName:"vpcId" type:"string"`
  53531. }
  53532. // String returns the string representation
  53533. func (s SecurityGroup) String() string {
  53534. return awsutil.Prettify(s)
  53535. }
  53536. // GoString returns the string representation
  53537. func (s SecurityGroup) GoString() string {
  53538. return s.String()
  53539. }
  53540. // SetDescription sets the Description field's value.
  53541. func (s *SecurityGroup) SetDescription(v string) *SecurityGroup {
  53542. s.Description = &v
  53543. return s
  53544. }
  53545. // SetGroupId sets the GroupId field's value.
  53546. func (s *SecurityGroup) SetGroupId(v string) *SecurityGroup {
  53547. s.GroupId = &v
  53548. return s
  53549. }
  53550. // SetGroupName sets the GroupName field's value.
  53551. func (s *SecurityGroup) SetGroupName(v string) *SecurityGroup {
  53552. s.GroupName = &v
  53553. return s
  53554. }
  53555. // SetIpPermissions sets the IpPermissions field's value.
  53556. func (s *SecurityGroup) SetIpPermissions(v []*IpPermission) *SecurityGroup {
  53557. s.IpPermissions = v
  53558. return s
  53559. }
  53560. // SetIpPermissionsEgress sets the IpPermissionsEgress field's value.
  53561. func (s *SecurityGroup) SetIpPermissionsEgress(v []*IpPermission) *SecurityGroup {
  53562. s.IpPermissionsEgress = v
  53563. return s
  53564. }
  53565. // SetOwnerId sets the OwnerId field's value.
  53566. func (s *SecurityGroup) SetOwnerId(v string) *SecurityGroup {
  53567. s.OwnerId = &v
  53568. return s
  53569. }
  53570. // SetTags sets the Tags field's value.
  53571. func (s *SecurityGroup) SetTags(v []*Tag) *SecurityGroup {
  53572. s.Tags = v
  53573. return s
  53574. }
  53575. // SetVpcId sets the VpcId field's value.
  53576. func (s *SecurityGroup) SetVpcId(v string) *SecurityGroup {
  53577. s.VpcId = &v
  53578. return s
  53579. }
  53580. // Describes a security group.
  53581. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroupIdentifier
  53582. type SecurityGroupIdentifier struct {
  53583. _ struct{} `type:"structure"`
  53584. // The ID of the security group.
  53585. GroupId *string `locationName:"groupId" type:"string"`
  53586. // The name of the security group.
  53587. GroupName *string `locationName:"groupName" type:"string"`
  53588. }
  53589. // String returns the string representation
  53590. func (s SecurityGroupIdentifier) String() string {
  53591. return awsutil.Prettify(s)
  53592. }
  53593. // GoString returns the string representation
  53594. func (s SecurityGroupIdentifier) GoString() string {
  53595. return s.String()
  53596. }
  53597. // SetGroupId sets the GroupId field's value.
  53598. func (s *SecurityGroupIdentifier) SetGroupId(v string) *SecurityGroupIdentifier {
  53599. s.GroupId = &v
  53600. return s
  53601. }
  53602. // SetGroupName sets the GroupName field's value.
  53603. func (s *SecurityGroupIdentifier) SetGroupName(v string) *SecurityGroupIdentifier {
  53604. s.GroupName = &v
  53605. return s
  53606. }
  53607. // Describes a VPC with a security group that references your security group.
  53608. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroupReference
  53609. type SecurityGroupReference struct {
  53610. _ struct{} `type:"structure"`
  53611. // The ID of your security group.
  53612. //
  53613. // GroupId is a required field
  53614. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  53615. // The ID of the VPC with the referencing security group.
  53616. //
  53617. // ReferencingVpcId is a required field
  53618. ReferencingVpcId *string `locationName:"referencingVpcId" type:"string" required:"true"`
  53619. // The ID of the VPC peering connection.
  53620. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  53621. }
  53622. // String returns the string representation
  53623. func (s SecurityGroupReference) String() string {
  53624. return awsutil.Prettify(s)
  53625. }
  53626. // GoString returns the string representation
  53627. func (s SecurityGroupReference) GoString() string {
  53628. return s.String()
  53629. }
  53630. // SetGroupId sets the GroupId field's value.
  53631. func (s *SecurityGroupReference) SetGroupId(v string) *SecurityGroupReference {
  53632. s.GroupId = &v
  53633. return s
  53634. }
  53635. // SetReferencingVpcId sets the ReferencingVpcId field's value.
  53636. func (s *SecurityGroupReference) SetReferencingVpcId(v string) *SecurityGroupReference {
  53637. s.ReferencingVpcId = &v
  53638. return s
  53639. }
  53640. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  53641. func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGroupReference {
  53642. s.VpcPeeringConnectionId = &v
  53643. return s
  53644. }
  53645. // Describes a service configuration for a VPC endpoint service.
  53646. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ServiceConfiguration
  53647. type ServiceConfiguration struct {
  53648. _ struct{} `type:"structure"`
  53649. // Indicates whether requests from other AWS accounts to create an endpoint
  53650. // to the service must first be accepted.
  53651. AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`
  53652. // In the Availability Zones in which the service is available.
  53653. AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`
  53654. // The DNS names for the service.
  53655. BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`
  53656. // The Amazon Resource Names (ARNs) of the Network Load Balancers for the service.
  53657. NetworkLoadBalancerArns []*string `locationName:"networkLoadBalancerArnSet" locationNameList:"item" type:"list"`
  53658. // The private DNS name for the service.
  53659. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  53660. // The ID of the service.
  53661. ServiceId *string `locationName:"serviceId" type:"string"`
  53662. // The name of the service.
  53663. ServiceName *string `locationName:"serviceName" type:"string"`
  53664. // The service state.
  53665. ServiceState *string `locationName:"serviceState" type:"string" enum:"ServiceState"`
  53666. // The type of service.
  53667. ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`
  53668. }
  53669. // String returns the string representation
  53670. func (s ServiceConfiguration) String() string {
  53671. return awsutil.Prettify(s)
  53672. }
  53673. // GoString returns the string representation
  53674. func (s ServiceConfiguration) GoString() string {
  53675. return s.String()
  53676. }
  53677. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  53678. func (s *ServiceConfiguration) SetAcceptanceRequired(v bool) *ServiceConfiguration {
  53679. s.AcceptanceRequired = &v
  53680. return s
  53681. }
  53682. // SetAvailabilityZones sets the AvailabilityZones field's value.
  53683. func (s *ServiceConfiguration) SetAvailabilityZones(v []*string) *ServiceConfiguration {
  53684. s.AvailabilityZones = v
  53685. return s
  53686. }
  53687. // SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value.
  53688. func (s *ServiceConfiguration) SetBaseEndpointDnsNames(v []*string) *ServiceConfiguration {
  53689. s.BaseEndpointDnsNames = v
  53690. return s
  53691. }
  53692. // SetNetworkLoadBalancerArns sets the NetworkLoadBalancerArns field's value.
  53693. func (s *ServiceConfiguration) SetNetworkLoadBalancerArns(v []*string) *ServiceConfiguration {
  53694. s.NetworkLoadBalancerArns = v
  53695. return s
  53696. }
  53697. // SetPrivateDnsName sets the PrivateDnsName field's value.
  53698. func (s *ServiceConfiguration) SetPrivateDnsName(v string) *ServiceConfiguration {
  53699. s.PrivateDnsName = &v
  53700. return s
  53701. }
  53702. // SetServiceId sets the ServiceId field's value.
  53703. func (s *ServiceConfiguration) SetServiceId(v string) *ServiceConfiguration {
  53704. s.ServiceId = &v
  53705. return s
  53706. }
  53707. // SetServiceName sets the ServiceName field's value.
  53708. func (s *ServiceConfiguration) SetServiceName(v string) *ServiceConfiguration {
  53709. s.ServiceName = &v
  53710. return s
  53711. }
  53712. // SetServiceState sets the ServiceState field's value.
  53713. func (s *ServiceConfiguration) SetServiceState(v string) *ServiceConfiguration {
  53714. s.ServiceState = &v
  53715. return s
  53716. }
  53717. // SetServiceType sets the ServiceType field's value.
  53718. func (s *ServiceConfiguration) SetServiceType(v []*ServiceTypeDetail) *ServiceConfiguration {
  53719. s.ServiceType = v
  53720. return s
  53721. }
  53722. // Describes a VPC endpoint service.
  53723. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ServiceDetail
  53724. type ServiceDetail struct {
  53725. _ struct{} `type:"structure"`
  53726. // Indicates whether VPC endpoint connection requests to the service must be
  53727. // accepted by the service owner.
  53728. AcceptanceRequired *bool `locationName:"acceptanceRequired" type:"boolean"`
  53729. // The Availability Zones in which the service is available.
  53730. AvailabilityZones []*string `locationName:"availabilityZoneSet" locationNameList:"item" type:"list"`
  53731. // The DNS names for the service.
  53732. BaseEndpointDnsNames []*string `locationName:"baseEndpointDnsNameSet" locationNameList:"item" type:"list"`
  53733. // The AWS account ID of the service owner.
  53734. Owner *string `locationName:"owner" type:"string"`
  53735. // The private DNS name for the service.
  53736. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  53737. // The Amazon Resource Name (ARN) of the service.
  53738. ServiceName *string `locationName:"serviceName" type:"string"`
  53739. // The type of service.
  53740. ServiceType []*ServiceTypeDetail `locationName:"serviceType" locationNameList:"item" type:"list"`
  53741. // Indicates whether the service supports endpoint policies.
  53742. VpcEndpointPolicySupported *bool `locationName:"vpcEndpointPolicySupported" type:"boolean"`
  53743. }
  53744. // String returns the string representation
  53745. func (s ServiceDetail) String() string {
  53746. return awsutil.Prettify(s)
  53747. }
  53748. // GoString returns the string representation
  53749. func (s ServiceDetail) GoString() string {
  53750. return s.String()
  53751. }
  53752. // SetAcceptanceRequired sets the AcceptanceRequired field's value.
  53753. func (s *ServiceDetail) SetAcceptanceRequired(v bool) *ServiceDetail {
  53754. s.AcceptanceRequired = &v
  53755. return s
  53756. }
  53757. // SetAvailabilityZones sets the AvailabilityZones field's value.
  53758. func (s *ServiceDetail) SetAvailabilityZones(v []*string) *ServiceDetail {
  53759. s.AvailabilityZones = v
  53760. return s
  53761. }
  53762. // SetBaseEndpointDnsNames sets the BaseEndpointDnsNames field's value.
  53763. func (s *ServiceDetail) SetBaseEndpointDnsNames(v []*string) *ServiceDetail {
  53764. s.BaseEndpointDnsNames = v
  53765. return s
  53766. }
  53767. // SetOwner sets the Owner field's value.
  53768. func (s *ServiceDetail) SetOwner(v string) *ServiceDetail {
  53769. s.Owner = &v
  53770. return s
  53771. }
  53772. // SetPrivateDnsName sets the PrivateDnsName field's value.
  53773. func (s *ServiceDetail) SetPrivateDnsName(v string) *ServiceDetail {
  53774. s.PrivateDnsName = &v
  53775. return s
  53776. }
  53777. // SetServiceName sets the ServiceName field's value.
  53778. func (s *ServiceDetail) SetServiceName(v string) *ServiceDetail {
  53779. s.ServiceName = &v
  53780. return s
  53781. }
  53782. // SetServiceType sets the ServiceType field's value.
  53783. func (s *ServiceDetail) SetServiceType(v []*ServiceTypeDetail) *ServiceDetail {
  53784. s.ServiceType = v
  53785. return s
  53786. }
  53787. // SetVpcEndpointPolicySupported sets the VpcEndpointPolicySupported field's value.
  53788. func (s *ServiceDetail) SetVpcEndpointPolicySupported(v bool) *ServiceDetail {
  53789. s.VpcEndpointPolicySupported = &v
  53790. return s
  53791. }
  53792. // Describes the type of service for a VPC endpoint.
  53793. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ServiceTypeDetail
  53794. type ServiceTypeDetail struct {
  53795. _ struct{} `type:"structure"`
  53796. // The type of service.
  53797. ServiceType *string `locationName:"serviceType" type:"string" enum:"ServiceType"`
  53798. }
  53799. // String returns the string representation
  53800. func (s ServiceTypeDetail) String() string {
  53801. return awsutil.Prettify(s)
  53802. }
  53803. // GoString returns the string representation
  53804. func (s ServiceTypeDetail) GoString() string {
  53805. return s.String()
  53806. }
  53807. // SetServiceType sets the ServiceType field's value.
  53808. func (s *ServiceTypeDetail) SetServiceType(v string) *ServiceTypeDetail {
  53809. s.ServiceType = &v
  53810. return s
  53811. }
  53812. // Describes the time period for a Scheduled Instance to start its first schedule.
  53813. // The time period must span less than one day.
  53814. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SlotDateTimeRangeRequest
  53815. type SlotDateTimeRangeRequest struct {
  53816. _ struct{} `type:"structure"`
  53817. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  53818. //
  53819. // EarliestTime is a required field
  53820. EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  53821. // The latest date and time, in UTC, for the Scheduled Instance to start. This
  53822. // value must be later than or equal to the earliest date and at most three
  53823. // months in the future.
  53824. //
  53825. // LatestTime is a required field
  53826. LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  53827. }
  53828. // String returns the string representation
  53829. func (s SlotDateTimeRangeRequest) String() string {
  53830. return awsutil.Prettify(s)
  53831. }
  53832. // GoString returns the string representation
  53833. func (s SlotDateTimeRangeRequest) GoString() string {
  53834. return s.String()
  53835. }
  53836. // Validate inspects the fields of the type to determine if they are valid.
  53837. func (s *SlotDateTimeRangeRequest) Validate() error {
  53838. invalidParams := request.ErrInvalidParams{Context: "SlotDateTimeRangeRequest"}
  53839. if s.EarliestTime == nil {
  53840. invalidParams.Add(request.NewErrParamRequired("EarliestTime"))
  53841. }
  53842. if s.LatestTime == nil {
  53843. invalidParams.Add(request.NewErrParamRequired("LatestTime"))
  53844. }
  53845. if invalidParams.Len() > 0 {
  53846. return invalidParams
  53847. }
  53848. return nil
  53849. }
  53850. // SetEarliestTime sets the EarliestTime field's value.
  53851. func (s *SlotDateTimeRangeRequest) SetEarliestTime(v time.Time) *SlotDateTimeRangeRequest {
  53852. s.EarliestTime = &v
  53853. return s
  53854. }
  53855. // SetLatestTime sets the LatestTime field's value.
  53856. func (s *SlotDateTimeRangeRequest) SetLatestTime(v time.Time) *SlotDateTimeRangeRequest {
  53857. s.LatestTime = &v
  53858. return s
  53859. }
  53860. // Describes the time period for a Scheduled Instance to start its first schedule.
  53861. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SlotStartTimeRangeRequest
  53862. type SlotStartTimeRangeRequest struct {
  53863. _ struct{} `type:"structure"`
  53864. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  53865. EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  53866. // The latest date and time, in UTC, for the Scheduled Instance to start.
  53867. LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  53868. }
  53869. // String returns the string representation
  53870. func (s SlotStartTimeRangeRequest) String() string {
  53871. return awsutil.Prettify(s)
  53872. }
  53873. // GoString returns the string representation
  53874. func (s SlotStartTimeRangeRequest) GoString() string {
  53875. return s.String()
  53876. }
  53877. // SetEarliestTime sets the EarliestTime field's value.
  53878. func (s *SlotStartTimeRangeRequest) SetEarliestTime(v time.Time) *SlotStartTimeRangeRequest {
  53879. s.EarliestTime = &v
  53880. return s
  53881. }
  53882. // SetLatestTime sets the LatestTime field's value.
  53883. func (s *SlotStartTimeRangeRequest) SetLatestTime(v time.Time) *SlotStartTimeRangeRequest {
  53884. s.LatestTime = &v
  53885. return s
  53886. }
  53887. // Describes a snapshot.
  53888. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Snapshot
  53889. type Snapshot struct {
  53890. _ struct{} `type:"structure"`
  53891. // The data encryption key identifier for the snapshot. This value is a unique
  53892. // identifier that corresponds to the data encryption key that was used to encrypt
  53893. // the original volume or snapshot copy. Because data encryption keys are inherited
  53894. // by volumes created from snapshots, and vice versa, if snapshots share the
  53895. // same data encryption key identifier, then they belong to the same volume/snapshot
  53896. // lineage. This parameter is only returned by the DescribeSnapshots API operation.
  53897. DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"`
  53898. // The description for the snapshot.
  53899. Description *string `locationName:"description" type:"string"`
  53900. // Indicates whether the snapshot is encrypted.
  53901. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  53902. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  53903. // key (CMK) that was used to protect the volume encryption key for the parent
  53904. // volume.
  53905. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  53906. // Value from an Amazon-maintained list (amazon | aws-marketplace | microsoft)
  53907. // of snapshot owners. Not to be confused with the user-configured AWS account
  53908. // alias, which is set from the IAM console.
  53909. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  53910. // The AWS account ID of the EBS snapshot owner.
  53911. OwnerId *string `locationName:"ownerId" type:"string"`
  53912. // The progress of the snapshot, as a percentage.
  53913. Progress *string `locationName:"progress" type:"string"`
  53914. // The ID of the snapshot. Each snapshot receives a unique identifier when it
  53915. // is created.
  53916. SnapshotId *string `locationName:"snapshotId" type:"string"`
  53917. // The time stamp when the snapshot was initiated.
  53918. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  53919. // The snapshot state.
  53920. State *string `locationName:"status" type:"string" enum:"SnapshotState"`
  53921. // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
  53922. // operation fails (for example, if the proper AWS Key Management Service (AWS
  53923. // KMS) permissions are not obtained) this field displays error state details
  53924. // to help you diagnose why the error occurred. This parameter is only returned
  53925. // by the DescribeSnapshots API operation.
  53926. StateMessage *string `locationName:"statusMessage" type:"string"`
  53927. // Any tags assigned to the snapshot.
  53928. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  53929. // The ID of the volume that was used to create the snapshot. Snapshots created
  53930. // by the CopySnapshot action have an arbitrary volume ID that should not be
  53931. // used for any purpose.
  53932. VolumeId *string `locationName:"volumeId" type:"string"`
  53933. // The size of the volume, in GiB.
  53934. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  53935. }
  53936. // String returns the string representation
  53937. func (s Snapshot) String() string {
  53938. return awsutil.Prettify(s)
  53939. }
  53940. // GoString returns the string representation
  53941. func (s Snapshot) GoString() string {
  53942. return s.String()
  53943. }
  53944. // SetDataEncryptionKeyId sets the DataEncryptionKeyId field's value.
  53945. func (s *Snapshot) SetDataEncryptionKeyId(v string) *Snapshot {
  53946. s.DataEncryptionKeyId = &v
  53947. return s
  53948. }
  53949. // SetDescription sets the Description field's value.
  53950. func (s *Snapshot) SetDescription(v string) *Snapshot {
  53951. s.Description = &v
  53952. return s
  53953. }
  53954. // SetEncrypted sets the Encrypted field's value.
  53955. func (s *Snapshot) SetEncrypted(v bool) *Snapshot {
  53956. s.Encrypted = &v
  53957. return s
  53958. }
  53959. // SetKmsKeyId sets the KmsKeyId field's value.
  53960. func (s *Snapshot) SetKmsKeyId(v string) *Snapshot {
  53961. s.KmsKeyId = &v
  53962. return s
  53963. }
  53964. // SetOwnerAlias sets the OwnerAlias field's value.
  53965. func (s *Snapshot) SetOwnerAlias(v string) *Snapshot {
  53966. s.OwnerAlias = &v
  53967. return s
  53968. }
  53969. // SetOwnerId sets the OwnerId field's value.
  53970. func (s *Snapshot) SetOwnerId(v string) *Snapshot {
  53971. s.OwnerId = &v
  53972. return s
  53973. }
  53974. // SetProgress sets the Progress field's value.
  53975. func (s *Snapshot) SetProgress(v string) *Snapshot {
  53976. s.Progress = &v
  53977. return s
  53978. }
  53979. // SetSnapshotId sets the SnapshotId field's value.
  53980. func (s *Snapshot) SetSnapshotId(v string) *Snapshot {
  53981. s.SnapshotId = &v
  53982. return s
  53983. }
  53984. // SetStartTime sets the StartTime field's value.
  53985. func (s *Snapshot) SetStartTime(v time.Time) *Snapshot {
  53986. s.StartTime = &v
  53987. return s
  53988. }
  53989. // SetState sets the State field's value.
  53990. func (s *Snapshot) SetState(v string) *Snapshot {
  53991. s.State = &v
  53992. return s
  53993. }
  53994. // SetStateMessage sets the StateMessage field's value.
  53995. func (s *Snapshot) SetStateMessage(v string) *Snapshot {
  53996. s.StateMessage = &v
  53997. return s
  53998. }
  53999. // SetTags sets the Tags field's value.
  54000. func (s *Snapshot) SetTags(v []*Tag) *Snapshot {
  54001. s.Tags = v
  54002. return s
  54003. }
  54004. // SetVolumeId sets the VolumeId field's value.
  54005. func (s *Snapshot) SetVolumeId(v string) *Snapshot {
  54006. s.VolumeId = &v
  54007. return s
  54008. }
  54009. // SetVolumeSize sets the VolumeSize field's value.
  54010. func (s *Snapshot) SetVolumeSize(v int64) *Snapshot {
  54011. s.VolumeSize = &v
  54012. return s
  54013. }
  54014. // Describes the snapshot created from the imported disk.
  54015. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotDetail
  54016. type SnapshotDetail struct {
  54017. _ struct{} `type:"structure"`
  54018. // A description for the snapshot.
  54019. Description *string `locationName:"description" type:"string"`
  54020. // The block device mapping for the snapshot.
  54021. DeviceName *string `locationName:"deviceName" type:"string"`
  54022. // The size of the disk in the snapshot, in GiB.
  54023. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  54024. // The format of the disk image from which the snapshot is created.
  54025. Format *string `locationName:"format" type:"string"`
  54026. // The percentage of progress for the task.
  54027. Progress *string `locationName:"progress" type:"string"`
  54028. // The snapshot ID of the disk being imported.
  54029. SnapshotId *string `locationName:"snapshotId" type:"string"`
  54030. // A brief status of the snapshot creation.
  54031. Status *string `locationName:"status" type:"string"`
  54032. // A detailed status message for the snapshot creation.
  54033. StatusMessage *string `locationName:"statusMessage" type:"string"`
  54034. // The URL used to access the disk image.
  54035. Url *string `locationName:"url" type:"string"`
  54036. // The S3 bucket for the disk image.
  54037. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  54038. }
  54039. // String returns the string representation
  54040. func (s SnapshotDetail) String() string {
  54041. return awsutil.Prettify(s)
  54042. }
  54043. // GoString returns the string representation
  54044. func (s SnapshotDetail) GoString() string {
  54045. return s.String()
  54046. }
  54047. // SetDescription sets the Description field's value.
  54048. func (s *SnapshotDetail) SetDescription(v string) *SnapshotDetail {
  54049. s.Description = &v
  54050. return s
  54051. }
  54052. // SetDeviceName sets the DeviceName field's value.
  54053. func (s *SnapshotDetail) SetDeviceName(v string) *SnapshotDetail {
  54054. s.DeviceName = &v
  54055. return s
  54056. }
  54057. // SetDiskImageSize sets the DiskImageSize field's value.
  54058. func (s *SnapshotDetail) SetDiskImageSize(v float64) *SnapshotDetail {
  54059. s.DiskImageSize = &v
  54060. return s
  54061. }
  54062. // SetFormat sets the Format field's value.
  54063. func (s *SnapshotDetail) SetFormat(v string) *SnapshotDetail {
  54064. s.Format = &v
  54065. return s
  54066. }
  54067. // SetProgress sets the Progress field's value.
  54068. func (s *SnapshotDetail) SetProgress(v string) *SnapshotDetail {
  54069. s.Progress = &v
  54070. return s
  54071. }
  54072. // SetSnapshotId sets the SnapshotId field's value.
  54073. func (s *SnapshotDetail) SetSnapshotId(v string) *SnapshotDetail {
  54074. s.SnapshotId = &v
  54075. return s
  54076. }
  54077. // SetStatus sets the Status field's value.
  54078. func (s *SnapshotDetail) SetStatus(v string) *SnapshotDetail {
  54079. s.Status = &v
  54080. return s
  54081. }
  54082. // SetStatusMessage sets the StatusMessage field's value.
  54083. func (s *SnapshotDetail) SetStatusMessage(v string) *SnapshotDetail {
  54084. s.StatusMessage = &v
  54085. return s
  54086. }
  54087. // SetUrl sets the Url field's value.
  54088. func (s *SnapshotDetail) SetUrl(v string) *SnapshotDetail {
  54089. s.Url = &v
  54090. return s
  54091. }
  54092. // SetUserBucket sets the UserBucket field's value.
  54093. func (s *SnapshotDetail) SetUserBucket(v *UserBucketDetails) *SnapshotDetail {
  54094. s.UserBucket = v
  54095. return s
  54096. }
  54097. // The disk container object for the import snapshot request.
  54098. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotDiskContainer
  54099. type SnapshotDiskContainer struct {
  54100. _ struct{} `type:"structure"`
  54101. // The description of the disk image being imported.
  54102. Description *string `type:"string"`
  54103. // The format of the disk image being imported.
  54104. //
  54105. // Valid values: RAW | VHD | VMDK | OVA
  54106. Format *string `type:"string"`
  54107. // The URL to the Amazon S3-based disk image being imported. It can either be
  54108. // a https URL (https://..) or an Amazon S3 URL (s3://..).
  54109. Url *string `type:"string"`
  54110. // The S3 bucket for the disk image.
  54111. UserBucket *UserBucket `type:"structure"`
  54112. }
  54113. // String returns the string representation
  54114. func (s SnapshotDiskContainer) String() string {
  54115. return awsutil.Prettify(s)
  54116. }
  54117. // GoString returns the string representation
  54118. func (s SnapshotDiskContainer) GoString() string {
  54119. return s.String()
  54120. }
  54121. // SetDescription sets the Description field's value.
  54122. func (s *SnapshotDiskContainer) SetDescription(v string) *SnapshotDiskContainer {
  54123. s.Description = &v
  54124. return s
  54125. }
  54126. // SetFormat sets the Format field's value.
  54127. func (s *SnapshotDiskContainer) SetFormat(v string) *SnapshotDiskContainer {
  54128. s.Format = &v
  54129. return s
  54130. }
  54131. // SetUrl sets the Url field's value.
  54132. func (s *SnapshotDiskContainer) SetUrl(v string) *SnapshotDiskContainer {
  54133. s.Url = &v
  54134. return s
  54135. }
  54136. // SetUserBucket sets the UserBucket field's value.
  54137. func (s *SnapshotDiskContainer) SetUserBucket(v *UserBucket) *SnapshotDiskContainer {
  54138. s.UserBucket = v
  54139. return s
  54140. }
  54141. // Details about the import snapshot task.
  54142. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotTaskDetail
  54143. type SnapshotTaskDetail struct {
  54144. _ struct{} `type:"structure"`
  54145. // The description of the snapshot.
  54146. Description *string `locationName:"description" type:"string"`
  54147. // The size of the disk in the snapshot, in GiB.
  54148. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  54149. // The format of the disk image from which the snapshot is created.
  54150. Format *string `locationName:"format" type:"string"`
  54151. // The percentage of completion for the import snapshot task.
  54152. Progress *string `locationName:"progress" type:"string"`
  54153. // The snapshot ID of the disk being imported.
  54154. SnapshotId *string `locationName:"snapshotId" type:"string"`
  54155. // A brief status for the import snapshot task.
  54156. Status *string `locationName:"status" type:"string"`
  54157. // A detailed status message for the import snapshot task.
  54158. StatusMessage *string `locationName:"statusMessage" type:"string"`
  54159. // The URL of the disk image from which the snapshot is created.
  54160. Url *string `locationName:"url" type:"string"`
  54161. // The S3 bucket for the disk image.
  54162. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  54163. }
  54164. // String returns the string representation
  54165. func (s SnapshotTaskDetail) String() string {
  54166. return awsutil.Prettify(s)
  54167. }
  54168. // GoString returns the string representation
  54169. func (s SnapshotTaskDetail) GoString() string {
  54170. return s.String()
  54171. }
  54172. // SetDescription sets the Description field's value.
  54173. func (s *SnapshotTaskDetail) SetDescription(v string) *SnapshotTaskDetail {
  54174. s.Description = &v
  54175. return s
  54176. }
  54177. // SetDiskImageSize sets the DiskImageSize field's value.
  54178. func (s *SnapshotTaskDetail) SetDiskImageSize(v float64) *SnapshotTaskDetail {
  54179. s.DiskImageSize = &v
  54180. return s
  54181. }
  54182. // SetFormat sets the Format field's value.
  54183. func (s *SnapshotTaskDetail) SetFormat(v string) *SnapshotTaskDetail {
  54184. s.Format = &v
  54185. return s
  54186. }
  54187. // SetProgress sets the Progress field's value.
  54188. func (s *SnapshotTaskDetail) SetProgress(v string) *SnapshotTaskDetail {
  54189. s.Progress = &v
  54190. return s
  54191. }
  54192. // SetSnapshotId sets the SnapshotId field's value.
  54193. func (s *SnapshotTaskDetail) SetSnapshotId(v string) *SnapshotTaskDetail {
  54194. s.SnapshotId = &v
  54195. return s
  54196. }
  54197. // SetStatus sets the Status field's value.
  54198. func (s *SnapshotTaskDetail) SetStatus(v string) *SnapshotTaskDetail {
  54199. s.Status = &v
  54200. return s
  54201. }
  54202. // SetStatusMessage sets the StatusMessage field's value.
  54203. func (s *SnapshotTaskDetail) SetStatusMessage(v string) *SnapshotTaskDetail {
  54204. s.StatusMessage = &v
  54205. return s
  54206. }
  54207. // SetUrl sets the Url field's value.
  54208. func (s *SnapshotTaskDetail) SetUrl(v string) *SnapshotTaskDetail {
  54209. s.Url = &v
  54210. return s
  54211. }
  54212. // SetUserBucket sets the UserBucket field's value.
  54213. func (s *SnapshotTaskDetail) SetUserBucket(v *UserBucketDetails) *SnapshotTaskDetail {
  54214. s.UserBucket = v
  54215. return s
  54216. }
  54217. // Describes the data feed for a Spot Instance.
  54218. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotDatafeedSubscription
  54219. type SpotDatafeedSubscription struct {
  54220. _ struct{} `type:"structure"`
  54221. // The Amazon S3 bucket where the Spot Instance data feed is located.
  54222. Bucket *string `locationName:"bucket" type:"string"`
  54223. // The fault codes for the Spot Instance request, if any.
  54224. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  54225. // The AWS account ID of the account.
  54226. OwnerId *string `locationName:"ownerId" type:"string"`
  54227. // The prefix that is prepended to data feed files.
  54228. Prefix *string `locationName:"prefix" type:"string"`
  54229. // The state of the Spot Instance data feed subscription.
  54230. State *string `locationName:"state" type:"string" enum:"DatafeedSubscriptionState"`
  54231. }
  54232. // String returns the string representation
  54233. func (s SpotDatafeedSubscription) String() string {
  54234. return awsutil.Prettify(s)
  54235. }
  54236. // GoString returns the string representation
  54237. func (s SpotDatafeedSubscription) GoString() string {
  54238. return s.String()
  54239. }
  54240. // SetBucket sets the Bucket field's value.
  54241. func (s *SpotDatafeedSubscription) SetBucket(v string) *SpotDatafeedSubscription {
  54242. s.Bucket = &v
  54243. return s
  54244. }
  54245. // SetFault sets the Fault field's value.
  54246. func (s *SpotDatafeedSubscription) SetFault(v *SpotInstanceStateFault) *SpotDatafeedSubscription {
  54247. s.Fault = v
  54248. return s
  54249. }
  54250. // SetOwnerId sets the OwnerId field's value.
  54251. func (s *SpotDatafeedSubscription) SetOwnerId(v string) *SpotDatafeedSubscription {
  54252. s.OwnerId = &v
  54253. return s
  54254. }
  54255. // SetPrefix sets the Prefix field's value.
  54256. func (s *SpotDatafeedSubscription) SetPrefix(v string) *SpotDatafeedSubscription {
  54257. s.Prefix = &v
  54258. return s
  54259. }
  54260. // SetState sets the State field's value.
  54261. func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription {
  54262. s.State = &v
  54263. return s
  54264. }
  54265. // Describes the launch specification for one or more Spot Instances.
  54266. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetLaunchSpecification
  54267. type SpotFleetLaunchSpecification struct {
  54268. _ struct{} `type:"structure"`
  54269. // Deprecated.
  54270. AddressingType *string `locationName:"addressingType" type:"string"`
  54271. // One or more block device mapping entries. You can't specify both a snapshot
  54272. // ID and an encryption value. This is because only blank volumes can be encrypted
  54273. // on creation. If a snapshot is the basis for a volume, it is not blank and
  54274. // its encryption status is used for the volume encryption status.
  54275. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  54276. // Indicates whether the instances are optimized for EBS I/O. This optimization
  54277. // provides dedicated throughput to Amazon EBS and an optimized configuration
  54278. // stack to provide optimal EBS I/O performance. This optimization isn't available
  54279. // with all instance types. Additional usage charges apply when using an EBS
  54280. // Optimized instance.
  54281. //
  54282. // Default: false
  54283. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  54284. // The IAM instance profile.
  54285. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  54286. // The ID of the AMI.
  54287. ImageId *string `locationName:"imageId" type:"string"`
  54288. // The instance type.
  54289. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  54290. // The ID of the kernel.
  54291. KernelId *string `locationName:"kernelId" type:"string"`
  54292. // The name of the key pair.
  54293. KeyName *string `locationName:"keyName" type:"string"`
  54294. // Enable or disable monitoring for the instances.
  54295. Monitoring *SpotFleetMonitoring `locationName:"monitoring" type:"structure"`
  54296. // One or more network interfaces. If you specify a network interface, you must
  54297. // specify subnet IDs and security group IDs using the network interface.
  54298. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  54299. // The placement information.
  54300. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  54301. // The ID of the RAM disk.
  54302. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  54303. // One or more security groups. When requesting instances in a VPC, you must
  54304. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  54305. // you can specify the names or the IDs of the security groups.
  54306. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  54307. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  54308. // If this value is not specified, the default is the Spot price specified for
  54309. // the fleet. To determine the Spot price per unit hour, divide the Spot price
  54310. // by the value of WeightedCapacity.
  54311. SpotPrice *string `locationName:"spotPrice" type:"string"`
  54312. // The ID of the subnet in which to launch the instances. To specify multiple
  54313. // subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
  54314. SubnetId *string `locationName:"subnetId" type:"string"`
  54315. // The tags to apply during creation.
  54316. TagSpecifications []*SpotFleetTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"`
  54317. // The user data to make available to the instances. If you are using an AWS
  54318. // SDK or command line tool, Base64-encoding is performed for you, and you can
  54319. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  54320. UserData *string `locationName:"userData" type:"string"`
  54321. // The number of units provided by the specified instance type. These are the
  54322. // same units that you chose to set the target capacity in terms (instances
  54323. // or a performance characteristic such as vCPUs, memory, or I/O).
  54324. //
  54325. // If the target capacity divided by this value is not a whole number, we round
  54326. // the number of instances to the next whole number. If this value is not specified,
  54327. // the default is 1.
  54328. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  54329. }
  54330. // String returns the string representation
  54331. func (s SpotFleetLaunchSpecification) String() string {
  54332. return awsutil.Prettify(s)
  54333. }
  54334. // GoString returns the string representation
  54335. func (s SpotFleetLaunchSpecification) GoString() string {
  54336. return s.String()
  54337. }
  54338. // Validate inspects the fields of the type to determine if they are valid.
  54339. func (s *SpotFleetLaunchSpecification) Validate() error {
  54340. invalidParams := request.ErrInvalidParams{Context: "SpotFleetLaunchSpecification"}
  54341. if s.NetworkInterfaces != nil {
  54342. for i, v := range s.NetworkInterfaces {
  54343. if v == nil {
  54344. continue
  54345. }
  54346. if err := v.Validate(); err != nil {
  54347. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  54348. }
  54349. }
  54350. }
  54351. if invalidParams.Len() > 0 {
  54352. return invalidParams
  54353. }
  54354. return nil
  54355. }
  54356. // SetAddressingType sets the AddressingType field's value.
  54357. func (s *SpotFleetLaunchSpecification) SetAddressingType(v string) *SpotFleetLaunchSpecification {
  54358. s.AddressingType = &v
  54359. return s
  54360. }
  54361. // SetBlockDeviceMappings sets the BlockDeviceMappings field's value.
  54362. func (s *SpotFleetLaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *SpotFleetLaunchSpecification {
  54363. s.BlockDeviceMappings = v
  54364. return s
  54365. }
  54366. // SetEbsOptimized sets the EbsOptimized field's value.
  54367. func (s *SpotFleetLaunchSpecification) SetEbsOptimized(v bool) *SpotFleetLaunchSpecification {
  54368. s.EbsOptimized = &v
  54369. return s
  54370. }
  54371. // SetIamInstanceProfile sets the IamInstanceProfile field's value.
  54372. func (s *SpotFleetLaunchSpecification) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *SpotFleetLaunchSpecification {
  54373. s.IamInstanceProfile = v
  54374. return s
  54375. }
  54376. // SetImageId sets the ImageId field's value.
  54377. func (s *SpotFleetLaunchSpecification) SetImageId(v string) *SpotFleetLaunchSpecification {
  54378. s.ImageId = &v
  54379. return s
  54380. }
  54381. // SetInstanceType sets the InstanceType field's value.
  54382. func (s *SpotFleetLaunchSpecification) SetInstanceType(v string) *SpotFleetLaunchSpecification {
  54383. s.InstanceType = &v
  54384. return s
  54385. }
  54386. // SetKernelId sets the KernelId field's value.
  54387. func (s *SpotFleetLaunchSpecification) SetKernelId(v string) *SpotFleetLaunchSpecification {
  54388. s.KernelId = &v
  54389. return s
  54390. }
  54391. // SetKeyName sets the KeyName field's value.
  54392. func (s *SpotFleetLaunchSpecification) SetKeyName(v string) *SpotFleetLaunchSpecification {
  54393. s.KeyName = &v
  54394. return s
  54395. }
  54396. // SetMonitoring sets the Monitoring field's value.
  54397. func (s *SpotFleetLaunchSpecification) SetMonitoring(v *SpotFleetMonitoring) *SpotFleetLaunchSpecification {
  54398. s.Monitoring = v
  54399. return s
  54400. }
  54401. // SetNetworkInterfaces sets the NetworkInterfaces field's value.
  54402. func (s *SpotFleetLaunchSpecification) SetNetworkInterfaces(v []*InstanceNetworkInterfaceSpecification) *SpotFleetLaunchSpecification {
  54403. s.NetworkInterfaces = v
  54404. return s
  54405. }
  54406. // SetPlacement sets the Placement field's value.
  54407. func (s *SpotFleetLaunchSpecification) SetPlacement(v *SpotPlacement) *SpotFleetLaunchSpecification {
  54408. s.Placement = v
  54409. return s
  54410. }
  54411. // SetRamdiskId sets the RamdiskId field's value.
  54412. func (s *SpotFleetLaunchSpecification) SetRamdiskId(v string) *SpotFleetLaunchSpecification {
  54413. s.RamdiskId = &v
  54414. return s
  54415. }
  54416. // SetSecurityGroups sets the SecurityGroups field's value.
  54417. func (s *SpotFleetLaunchSpecification) SetSecurityGroups(v []*GroupIdentifier) *SpotFleetLaunchSpecification {
  54418. s.SecurityGroups = v
  54419. return s
  54420. }
  54421. // SetSpotPrice sets the SpotPrice field's value.
  54422. func (s *SpotFleetLaunchSpecification) SetSpotPrice(v string) *SpotFleetLaunchSpecification {
  54423. s.SpotPrice = &v
  54424. return s
  54425. }
  54426. // SetSubnetId sets the SubnetId field's value.
  54427. func (s *SpotFleetLaunchSpecification) SetSubnetId(v string) *SpotFleetLaunchSpecification {
  54428. s.SubnetId = &v
  54429. return s
  54430. }
  54431. // SetTagSpecifications sets the TagSpecifications field's value.
  54432. func (s *SpotFleetLaunchSpecification) SetTagSpecifications(v []*SpotFleetTagSpecification) *SpotFleetLaunchSpecification {
  54433. s.TagSpecifications = v
  54434. return s
  54435. }
  54436. // SetUserData sets the UserData field's value.
  54437. func (s *SpotFleetLaunchSpecification) SetUserData(v string) *SpotFleetLaunchSpecification {
  54438. s.UserData = &v
  54439. return s
  54440. }
  54441. // SetWeightedCapacity sets the WeightedCapacity field's value.
  54442. func (s *SpotFleetLaunchSpecification) SetWeightedCapacity(v float64) *SpotFleetLaunchSpecification {
  54443. s.WeightedCapacity = &v
  54444. return s
  54445. }
  54446. // Describes whether monitoring is enabled.
  54447. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetMonitoring
  54448. type SpotFleetMonitoring struct {
  54449. _ struct{} `type:"structure"`
  54450. // Enables monitoring for the instance.
  54451. //
  54452. // Default: false
  54453. Enabled *bool `locationName:"enabled" type:"boolean"`
  54454. }
  54455. // String returns the string representation
  54456. func (s SpotFleetMonitoring) String() string {
  54457. return awsutil.Prettify(s)
  54458. }
  54459. // GoString returns the string representation
  54460. func (s SpotFleetMonitoring) GoString() string {
  54461. return s.String()
  54462. }
  54463. // SetEnabled sets the Enabled field's value.
  54464. func (s *SpotFleetMonitoring) SetEnabled(v bool) *SpotFleetMonitoring {
  54465. s.Enabled = &v
  54466. return s
  54467. }
  54468. // Describes a Spot Fleet request.
  54469. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetRequestConfig
  54470. type SpotFleetRequestConfig struct {
  54471. _ struct{} `type:"structure"`
  54472. // The progress of the Spot Fleet request. If there is an error, the status
  54473. // is error. After all requests are placed, the status is pending_fulfillment.
  54474. // If the size of the fleet is equal to or greater than its target capacity,
  54475. // the status is fulfilled. If the size of the fleet is decreased, the status
  54476. // is pending_termination while Spot Instances are terminating.
  54477. ActivityStatus *string `locationName:"activityStatus" type:"string" enum:"ActivityStatus"`
  54478. // The creation date and time of the request.
  54479. //
  54480. // CreateTime is a required field
  54481. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  54482. // The configuration of the Spot Fleet request.
  54483. //
  54484. // SpotFleetRequestConfig is a required field
  54485. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  54486. // The ID of the Spot Fleet request.
  54487. //
  54488. // SpotFleetRequestId is a required field
  54489. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  54490. // The state of the Spot Fleet request.
  54491. //
  54492. // SpotFleetRequestState is a required field
  54493. SpotFleetRequestState *string `locationName:"spotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  54494. }
  54495. // String returns the string representation
  54496. func (s SpotFleetRequestConfig) String() string {
  54497. return awsutil.Prettify(s)
  54498. }
  54499. // GoString returns the string representation
  54500. func (s SpotFleetRequestConfig) GoString() string {
  54501. return s.String()
  54502. }
  54503. // SetActivityStatus sets the ActivityStatus field's value.
  54504. func (s *SpotFleetRequestConfig) SetActivityStatus(v string) *SpotFleetRequestConfig {
  54505. s.ActivityStatus = &v
  54506. return s
  54507. }
  54508. // SetCreateTime sets the CreateTime field's value.
  54509. func (s *SpotFleetRequestConfig) SetCreateTime(v time.Time) *SpotFleetRequestConfig {
  54510. s.CreateTime = &v
  54511. return s
  54512. }
  54513. // SetSpotFleetRequestConfig sets the SpotFleetRequestConfig field's value.
  54514. func (s *SpotFleetRequestConfig) SetSpotFleetRequestConfig(v *SpotFleetRequestConfigData) *SpotFleetRequestConfig {
  54515. s.SpotFleetRequestConfig = v
  54516. return s
  54517. }
  54518. // SetSpotFleetRequestId sets the SpotFleetRequestId field's value.
  54519. func (s *SpotFleetRequestConfig) SetSpotFleetRequestId(v string) *SpotFleetRequestConfig {
  54520. s.SpotFleetRequestId = &v
  54521. return s
  54522. }
  54523. // SetSpotFleetRequestState sets the SpotFleetRequestState field's value.
  54524. func (s *SpotFleetRequestConfig) SetSpotFleetRequestState(v string) *SpotFleetRequestConfig {
  54525. s.SpotFleetRequestState = &v
  54526. return s
  54527. }
  54528. // Describes the configuration of a Spot Fleet request.
  54529. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetRequestConfigData
  54530. type SpotFleetRequestConfigData struct {
  54531. _ struct{} `type:"structure"`
  54532. // Indicates how to allocate the target capacity across the Spot pools specified
  54533. // by the Spot Fleet request. The default is lowestPrice.
  54534. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"`
  54535. // A unique, case-sensitive identifier you provide to ensure idempotency of
  54536. // your listings. This helps avoid duplicate listings. For more information,
  54537. // see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  54538. ClientToken *string `locationName:"clientToken" type:"string"`
  54539. // Indicates whether running Spot Instances should be terminated if the target
  54540. // capacity of the Spot Fleet request is decreased below the current size of
  54541. // the Spot Fleet.
  54542. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  54543. // The number of units fulfilled by this request compared to the set target
  54544. // capacity.
  54545. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  54546. // Grants the Spot Fleet permission to terminate Spot Instances on your behalf
  54547. // when you cancel its Spot Fleet request using CancelSpotFleetRequests or when
  54548. // the Spot Fleet request expires, if you set terminateInstancesWithExpiration.
  54549. //
  54550. // IamFleetRole is a required field
  54551. IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"`
  54552. // The behavior when a Spot Instance is interrupted. The default is terminate.
  54553. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  54554. // The launch specifications for the Spot Fleet request.
  54555. LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" type:"list"`
  54556. // The launch template and overrides.
  54557. LaunchTemplateConfigs []*LaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"`
  54558. // One or more Classic Load Balancers and target groups to attach to the Spot
  54559. // Fleet request. Spot Fleet registers the running Spot Instances with the specified
  54560. // Classic Load Balancers and target groups.
  54561. //
  54562. // With Network Load Balancers, Spot Fleet cannot register instances that have
  54563. // the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1,
  54564. // HS1, M1, M2, M3, and T1.
  54565. LoadBalancersConfig *LoadBalancersConfig `locationName:"loadBalancersConfig" type:"structure"`
  54566. // Indicates whether Spot Fleet should replace unhealthy instances.
  54567. ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
  54568. // The maximum price per unit hour that you are willing to pay for a Spot Instance.
  54569. // The default is the On-Demand price.
  54570. SpotPrice *string `locationName:"spotPrice" type:"string"`
  54571. // The number of units to request. You can choose to set the target capacity
  54572. // in terms of instances or a performance characteristic that is important to
  54573. // your application workload, such as vCPUs, memory, or I/O. If the request
  54574. // type is maintain, you can specify a target capacity of 0 and add capacity
  54575. // later.
  54576. //
  54577. // TargetCapacity is a required field
  54578. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"`
  54579. // Indicates whether running Spot Instances should be terminated when the Spot
  54580. // Fleet request expires.
  54581. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  54582. // The type of request. Indicates whether the fleet will only request the target
  54583. // capacity or also attempt to maintain it. When you request a certain target
  54584. // capacity, the fleet will only place the required requests. It will not attempt
  54585. // to replenish Spot Instances if capacity is diminished, nor will it submit
  54586. // requests in alternative Spot pools if capacity is not available. When you
  54587. // want to maintain a certain target capacity, fleet will place the required
  54588. // requests to meet this target capacity. It will also automatically replenish
  54589. // any interrupted instances. Default: maintain.
  54590. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  54591. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  54592. // The default is to start fulfilling the request immediately.
  54593. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  54594. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  54595. // At this point, no new Spot Instance requests are placed or able to fulfill
  54596. // the request. The default end date is 7 days from the current date.
  54597. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  54598. }
  54599. // String returns the string representation
  54600. func (s SpotFleetRequestConfigData) String() string {
  54601. return awsutil.Prettify(s)
  54602. }
  54603. // GoString returns the string representation
  54604. func (s SpotFleetRequestConfigData) GoString() string {
  54605. return s.String()
  54606. }
  54607. // Validate inspects the fields of the type to determine if they are valid.
  54608. func (s *SpotFleetRequestConfigData) Validate() error {
  54609. invalidParams := request.ErrInvalidParams{Context: "SpotFleetRequestConfigData"}
  54610. if s.IamFleetRole == nil {
  54611. invalidParams.Add(request.NewErrParamRequired("IamFleetRole"))
  54612. }
  54613. if s.TargetCapacity == nil {
  54614. invalidParams.Add(request.NewErrParamRequired("TargetCapacity"))
  54615. }
  54616. if s.LaunchSpecifications != nil {
  54617. for i, v := range s.LaunchSpecifications {
  54618. if v == nil {
  54619. continue
  54620. }
  54621. if err := v.Validate(); err != nil {
  54622. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchSpecifications", i), err.(request.ErrInvalidParams))
  54623. }
  54624. }
  54625. }
  54626. if s.LaunchTemplateConfigs != nil {
  54627. for i, v := range s.LaunchTemplateConfigs {
  54628. if v == nil {
  54629. continue
  54630. }
  54631. if err := v.Validate(); err != nil {
  54632. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchTemplateConfigs", i), err.(request.ErrInvalidParams))
  54633. }
  54634. }
  54635. }
  54636. if s.LoadBalancersConfig != nil {
  54637. if err := s.LoadBalancersConfig.Validate(); err != nil {
  54638. invalidParams.AddNested("LoadBalancersConfig", err.(request.ErrInvalidParams))
  54639. }
  54640. }
  54641. if invalidParams.Len() > 0 {
  54642. return invalidParams
  54643. }
  54644. return nil
  54645. }
  54646. // SetAllocationStrategy sets the AllocationStrategy field's value.
  54647. func (s *SpotFleetRequestConfigData) SetAllocationStrategy(v string) *SpotFleetRequestConfigData {
  54648. s.AllocationStrategy = &v
  54649. return s
  54650. }
  54651. // SetClientToken sets the ClientToken field's value.
  54652. func (s *SpotFleetRequestConfigData) SetClientToken(v string) *SpotFleetRequestConfigData {
  54653. s.ClientToken = &v
  54654. return s
  54655. }
  54656. // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value.
  54657. func (s *SpotFleetRequestConfigData) SetExcessCapacityTerminationPolicy(v string) *SpotFleetRequestConfigData {
  54658. s.ExcessCapacityTerminationPolicy = &v
  54659. return s
  54660. }
  54661. // SetFulfilledCapacity sets the FulfilledCapacity field's value.
  54662. func (s *SpotFleetRequestConfigData) SetFulfilledCapacity(v float64) *SpotFleetRequestConfigData {
  54663. s.FulfilledCapacity = &v
  54664. return s
  54665. }
  54666. // SetIamFleetRole sets the IamFleetRole field's value.
  54667. func (s *SpotFleetRequestConfigData) SetIamFleetRole(v string) *SpotFleetRequestConfigData {
  54668. s.IamFleetRole = &v
  54669. return s
  54670. }
  54671. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  54672. func (s *SpotFleetRequestConfigData) SetInstanceInterruptionBehavior(v string) *SpotFleetRequestConfigData {
  54673. s.InstanceInterruptionBehavior = &v
  54674. return s
  54675. }
  54676. // SetLaunchSpecifications sets the LaunchSpecifications field's value.
  54677. func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunchSpecification) *SpotFleetRequestConfigData {
  54678. s.LaunchSpecifications = v
  54679. return s
  54680. }
  54681. // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value.
  54682. func (s *SpotFleetRequestConfigData) SetLaunchTemplateConfigs(v []*LaunchTemplateConfig) *SpotFleetRequestConfigData {
  54683. s.LaunchTemplateConfigs = v
  54684. return s
  54685. }
  54686. // SetLoadBalancersConfig sets the LoadBalancersConfig field's value.
  54687. func (s *SpotFleetRequestConfigData) SetLoadBalancersConfig(v *LoadBalancersConfig) *SpotFleetRequestConfigData {
  54688. s.LoadBalancersConfig = v
  54689. return s
  54690. }
  54691. // SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
  54692. func (s *SpotFleetRequestConfigData) SetReplaceUnhealthyInstances(v bool) *SpotFleetRequestConfigData {
  54693. s.ReplaceUnhealthyInstances = &v
  54694. return s
  54695. }
  54696. // SetSpotPrice sets the SpotPrice field's value.
  54697. func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData {
  54698. s.SpotPrice = &v
  54699. return s
  54700. }
  54701. // SetTargetCapacity sets the TargetCapacity field's value.
  54702. func (s *SpotFleetRequestConfigData) SetTargetCapacity(v int64) *SpotFleetRequestConfigData {
  54703. s.TargetCapacity = &v
  54704. return s
  54705. }
  54706. // SetTerminateInstancesWithExpiration sets the TerminateInstancesWithExpiration field's value.
  54707. func (s *SpotFleetRequestConfigData) SetTerminateInstancesWithExpiration(v bool) *SpotFleetRequestConfigData {
  54708. s.TerminateInstancesWithExpiration = &v
  54709. return s
  54710. }
  54711. // SetType sets the Type field's value.
  54712. func (s *SpotFleetRequestConfigData) SetType(v string) *SpotFleetRequestConfigData {
  54713. s.Type = &v
  54714. return s
  54715. }
  54716. // SetValidFrom sets the ValidFrom field's value.
  54717. func (s *SpotFleetRequestConfigData) SetValidFrom(v time.Time) *SpotFleetRequestConfigData {
  54718. s.ValidFrom = &v
  54719. return s
  54720. }
  54721. // SetValidUntil sets the ValidUntil field's value.
  54722. func (s *SpotFleetRequestConfigData) SetValidUntil(v time.Time) *SpotFleetRequestConfigData {
  54723. s.ValidUntil = &v
  54724. return s
  54725. }
  54726. // The tags for a Spot Fleet resource.
  54727. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotFleetTagSpecification
  54728. type SpotFleetTagSpecification struct {
  54729. _ struct{} `type:"structure"`
  54730. // The type of resource. Currently, the only resource type that is supported
  54731. // is instance.
  54732. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  54733. // The tags.
  54734. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  54735. }
  54736. // String returns the string representation
  54737. func (s SpotFleetTagSpecification) String() string {
  54738. return awsutil.Prettify(s)
  54739. }
  54740. // GoString returns the string representation
  54741. func (s SpotFleetTagSpecification) GoString() string {
  54742. return s.String()
  54743. }
  54744. // SetResourceType sets the ResourceType field's value.
  54745. func (s *SpotFleetTagSpecification) SetResourceType(v string) *SpotFleetTagSpecification {
  54746. s.ResourceType = &v
  54747. return s
  54748. }
  54749. // SetTags sets the Tags field's value.
  54750. func (s *SpotFleetTagSpecification) SetTags(v []*Tag) *SpotFleetTagSpecification {
  54751. s.Tags = v
  54752. return s
  54753. }
  54754. // Describes a Spot Instance request.
  54755. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceRequest
  54756. type SpotInstanceRequest struct {
  54757. _ struct{} `type:"structure"`
  54758. // If you specified a duration and your Spot Instance request was fulfilled,
  54759. // this is the fixed hourly price in effect for the Spot Instance while it runs.
  54760. ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"`
  54761. // The Availability Zone group. If you specify the same Availability Zone group
  54762. // for all Spot Instance requests, all Spot Instances are launched in the same
  54763. // Availability Zone.
  54764. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  54765. // The duration for the Spot Instance, in minutes.
  54766. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  54767. // The date and time when the Spot Instance request was created, in UTC format
  54768. // (for example, YYYY-MM-DDTHH:MM:SSZ).
  54769. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  54770. // The fault codes for the Spot Instance request, if any.
  54771. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  54772. // The instance ID, if an instance has been launched to fulfill the Spot Instance
  54773. // request.
  54774. InstanceId *string `locationName:"instanceId" type:"string"`
  54775. // The behavior when a Spot Instance is interrupted.
  54776. InstanceInterruptionBehavior *string `locationName:"instanceInterruptionBehavior" type:"string" enum:"InstanceInterruptionBehavior"`
  54777. // The instance launch group. Launch groups are Spot Instances that launch together
  54778. // and terminate together.
  54779. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  54780. // Additional information for launching instances.
  54781. LaunchSpecification *LaunchSpecification `locationName:"launchSpecification" type:"structure"`
  54782. // The Availability Zone in which the request is launched.
  54783. LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"`
  54784. // The product description associated with the Spot Instance.
  54785. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  54786. // The ID of the Spot Instance request.
  54787. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  54788. // The maximum price per hour that you are willing to pay for a Spot Instance.
  54789. SpotPrice *string `locationName:"spotPrice" type:"string"`
  54790. // The state of the Spot Instance request. Spot status information can help
  54791. // you track your Spot Instance requests. For more information, see Spot Status
  54792. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  54793. // in the Amazon Elastic Compute Cloud User Guide.
  54794. State *string `locationName:"state" type:"string" enum:"SpotInstanceState"`
  54795. // The status code and status message describing the Spot Instance request.
  54796. Status *SpotInstanceStatus `locationName:"status" type:"structure"`
  54797. // Any tags assigned to the resource.
  54798. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  54799. // The Spot Instance request type.
  54800. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  54801. // The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  54802. // The request becomes active at this date and time.
  54803. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  54804. // The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  54805. // If this is a one-time request, it remains active until all instances launch,
  54806. // the request is canceled, or this date is reached. If the request is persistent,
  54807. // it remains active until it is canceled or this date is reached. The default
  54808. // end date is 7 days from the current date.
  54809. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  54810. }
  54811. // String returns the string representation
  54812. func (s SpotInstanceRequest) String() string {
  54813. return awsutil.Prettify(s)
  54814. }
  54815. // GoString returns the string representation
  54816. func (s SpotInstanceRequest) GoString() string {
  54817. return s.String()
  54818. }
  54819. // SetActualBlockHourlyPrice sets the ActualBlockHourlyPrice field's value.
  54820. func (s *SpotInstanceRequest) SetActualBlockHourlyPrice(v string) *SpotInstanceRequest {
  54821. s.ActualBlockHourlyPrice = &v
  54822. return s
  54823. }
  54824. // SetAvailabilityZoneGroup sets the AvailabilityZoneGroup field's value.
  54825. func (s *SpotInstanceRequest) SetAvailabilityZoneGroup(v string) *SpotInstanceRequest {
  54826. s.AvailabilityZoneGroup = &v
  54827. return s
  54828. }
  54829. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  54830. func (s *SpotInstanceRequest) SetBlockDurationMinutes(v int64) *SpotInstanceRequest {
  54831. s.BlockDurationMinutes = &v
  54832. return s
  54833. }
  54834. // SetCreateTime sets the CreateTime field's value.
  54835. func (s *SpotInstanceRequest) SetCreateTime(v time.Time) *SpotInstanceRequest {
  54836. s.CreateTime = &v
  54837. return s
  54838. }
  54839. // SetFault sets the Fault field's value.
  54840. func (s *SpotInstanceRequest) SetFault(v *SpotInstanceStateFault) *SpotInstanceRequest {
  54841. s.Fault = v
  54842. return s
  54843. }
  54844. // SetInstanceId sets the InstanceId field's value.
  54845. func (s *SpotInstanceRequest) SetInstanceId(v string) *SpotInstanceRequest {
  54846. s.InstanceId = &v
  54847. return s
  54848. }
  54849. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  54850. func (s *SpotInstanceRequest) SetInstanceInterruptionBehavior(v string) *SpotInstanceRequest {
  54851. s.InstanceInterruptionBehavior = &v
  54852. return s
  54853. }
  54854. // SetLaunchGroup sets the LaunchGroup field's value.
  54855. func (s *SpotInstanceRequest) SetLaunchGroup(v string) *SpotInstanceRequest {
  54856. s.LaunchGroup = &v
  54857. return s
  54858. }
  54859. // SetLaunchSpecification sets the LaunchSpecification field's value.
  54860. func (s *SpotInstanceRequest) SetLaunchSpecification(v *LaunchSpecification) *SpotInstanceRequest {
  54861. s.LaunchSpecification = v
  54862. return s
  54863. }
  54864. // SetLaunchedAvailabilityZone sets the LaunchedAvailabilityZone field's value.
  54865. func (s *SpotInstanceRequest) SetLaunchedAvailabilityZone(v string) *SpotInstanceRequest {
  54866. s.LaunchedAvailabilityZone = &v
  54867. return s
  54868. }
  54869. // SetProductDescription sets the ProductDescription field's value.
  54870. func (s *SpotInstanceRequest) SetProductDescription(v string) *SpotInstanceRequest {
  54871. s.ProductDescription = &v
  54872. return s
  54873. }
  54874. // SetSpotInstanceRequestId sets the SpotInstanceRequestId field's value.
  54875. func (s *SpotInstanceRequest) SetSpotInstanceRequestId(v string) *SpotInstanceRequest {
  54876. s.SpotInstanceRequestId = &v
  54877. return s
  54878. }
  54879. // SetSpotPrice sets the SpotPrice field's value.
  54880. func (s *SpotInstanceRequest) SetSpotPrice(v string) *SpotInstanceRequest {
  54881. s.SpotPrice = &v
  54882. return s
  54883. }
  54884. // SetState sets the State field's value.
  54885. func (s *SpotInstanceRequest) SetState(v string) *SpotInstanceRequest {
  54886. s.State = &v
  54887. return s
  54888. }
  54889. // SetStatus sets the Status field's value.
  54890. func (s *SpotInstanceRequest) SetStatus(v *SpotInstanceStatus) *SpotInstanceRequest {
  54891. s.Status = v
  54892. return s
  54893. }
  54894. // SetTags sets the Tags field's value.
  54895. func (s *SpotInstanceRequest) SetTags(v []*Tag) *SpotInstanceRequest {
  54896. s.Tags = v
  54897. return s
  54898. }
  54899. // SetType sets the Type field's value.
  54900. func (s *SpotInstanceRequest) SetType(v string) *SpotInstanceRequest {
  54901. s.Type = &v
  54902. return s
  54903. }
  54904. // SetValidFrom sets the ValidFrom field's value.
  54905. func (s *SpotInstanceRequest) SetValidFrom(v time.Time) *SpotInstanceRequest {
  54906. s.ValidFrom = &v
  54907. return s
  54908. }
  54909. // SetValidUntil sets the ValidUntil field's value.
  54910. func (s *SpotInstanceRequest) SetValidUntil(v time.Time) *SpotInstanceRequest {
  54911. s.ValidUntil = &v
  54912. return s
  54913. }
  54914. // Describes a Spot Instance state change.
  54915. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceStateFault
  54916. type SpotInstanceStateFault struct {
  54917. _ struct{} `type:"structure"`
  54918. // The reason code for the Spot Instance state change.
  54919. Code *string `locationName:"code" type:"string"`
  54920. // The message for the Spot Instance state change.
  54921. Message *string `locationName:"message" type:"string"`
  54922. }
  54923. // String returns the string representation
  54924. func (s SpotInstanceStateFault) String() string {
  54925. return awsutil.Prettify(s)
  54926. }
  54927. // GoString returns the string representation
  54928. func (s SpotInstanceStateFault) GoString() string {
  54929. return s.String()
  54930. }
  54931. // SetCode sets the Code field's value.
  54932. func (s *SpotInstanceStateFault) SetCode(v string) *SpotInstanceStateFault {
  54933. s.Code = &v
  54934. return s
  54935. }
  54936. // SetMessage sets the Message field's value.
  54937. func (s *SpotInstanceStateFault) SetMessage(v string) *SpotInstanceStateFault {
  54938. s.Message = &v
  54939. return s
  54940. }
  54941. // Describes the status of a Spot Instance request.
  54942. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotInstanceStatus
  54943. type SpotInstanceStatus struct {
  54944. _ struct{} `type:"structure"`
  54945. // The status code. For a list of status codes, see Spot Status Codes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html#spot-instance-bid-status-understand)
  54946. // in the Amazon Elastic Compute Cloud User Guide.
  54947. Code *string `locationName:"code" type:"string"`
  54948. // The description for the status code.
  54949. Message *string `locationName:"message" type:"string"`
  54950. // The date and time of the most recent status update, in UTC format (for example,
  54951. // YYYY-MM-DDTHH:MM:SSZ).
  54952. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  54953. }
  54954. // String returns the string representation
  54955. func (s SpotInstanceStatus) String() string {
  54956. return awsutil.Prettify(s)
  54957. }
  54958. // GoString returns the string representation
  54959. func (s SpotInstanceStatus) GoString() string {
  54960. return s.String()
  54961. }
  54962. // SetCode sets the Code field's value.
  54963. func (s *SpotInstanceStatus) SetCode(v string) *SpotInstanceStatus {
  54964. s.Code = &v
  54965. return s
  54966. }
  54967. // SetMessage sets the Message field's value.
  54968. func (s *SpotInstanceStatus) SetMessage(v string) *SpotInstanceStatus {
  54969. s.Message = &v
  54970. return s
  54971. }
  54972. // SetUpdateTime sets the UpdateTime field's value.
  54973. func (s *SpotInstanceStatus) SetUpdateTime(v time.Time) *SpotInstanceStatus {
  54974. s.UpdateTime = &v
  54975. return s
  54976. }
  54977. // The options for Spot Instances.
  54978. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotMarketOptions
  54979. type SpotMarketOptions struct {
  54980. _ struct{} `type:"structure"`
  54981. // The required duration for the Spot Instances (also known as Spot blocks),
  54982. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  54983. // or 360).
  54984. BlockDurationMinutes *int64 `type:"integer"`
  54985. // The behavior when a Spot Instance is interrupted. The default is terminate.
  54986. InstanceInterruptionBehavior *string `type:"string" enum:"InstanceInterruptionBehavior"`
  54987. // The maximum hourly price you're willing to pay for the Spot Instances. The
  54988. // default is the On-Demand price.
  54989. MaxPrice *string `type:"string"`
  54990. // The Spot Instance request type.
  54991. SpotInstanceType *string `type:"string" enum:"SpotInstanceType"`
  54992. // The end date of the request. For a one-time request, the request remains
  54993. // active until all instances launch, the request is canceled, or this date
  54994. // is reached. If the request is persistent, it remains active until it is canceled
  54995. // or this date and time is reached. The default end date is 7 days from the
  54996. // current date.
  54997. ValidUntil *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  54998. }
  54999. // String returns the string representation
  55000. func (s SpotMarketOptions) String() string {
  55001. return awsutil.Prettify(s)
  55002. }
  55003. // GoString returns the string representation
  55004. func (s SpotMarketOptions) GoString() string {
  55005. return s.String()
  55006. }
  55007. // SetBlockDurationMinutes sets the BlockDurationMinutes field's value.
  55008. func (s *SpotMarketOptions) SetBlockDurationMinutes(v int64) *SpotMarketOptions {
  55009. s.BlockDurationMinutes = &v
  55010. return s
  55011. }
  55012. // SetInstanceInterruptionBehavior sets the InstanceInterruptionBehavior field's value.
  55013. func (s *SpotMarketOptions) SetInstanceInterruptionBehavior(v string) *SpotMarketOptions {
  55014. s.InstanceInterruptionBehavior = &v
  55015. return s
  55016. }
  55017. // SetMaxPrice sets the MaxPrice field's value.
  55018. func (s *SpotMarketOptions) SetMaxPrice(v string) *SpotMarketOptions {
  55019. s.MaxPrice = &v
  55020. return s
  55021. }
  55022. // SetSpotInstanceType sets the SpotInstanceType field's value.
  55023. func (s *SpotMarketOptions) SetSpotInstanceType(v string) *SpotMarketOptions {
  55024. s.SpotInstanceType = &v
  55025. return s
  55026. }
  55027. // SetValidUntil sets the ValidUntil field's value.
  55028. func (s *SpotMarketOptions) SetValidUntil(v time.Time) *SpotMarketOptions {
  55029. s.ValidUntil = &v
  55030. return s
  55031. }
  55032. // Describes Spot Instance placement.
  55033. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPlacement
  55034. type SpotPlacement struct {
  55035. _ struct{} `type:"structure"`
  55036. // The Availability Zone.
  55037. //
  55038. // [Spot Fleet only] To specify multiple Availability Zones, separate them using
  55039. // commas; for example, "us-west-2a, us-west-2b".
  55040. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  55041. // The name of the placement group.
  55042. GroupName *string `locationName:"groupName" type:"string"`
  55043. // The tenancy of the instance (if the instance is running in a VPC). An instance
  55044. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  55045. // is not supported for Spot Instances.
  55046. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  55047. }
  55048. // String returns the string representation
  55049. func (s SpotPlacement) String() string {
  55050. return awsutil.Prettify(s)
  55051. }
  55052. // GoString returns the string representation
  55053. func (s SpotPlacement) GoString() string {
  55054. return s.String()
  55055. }
  55056. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55057. func (s *SpotPlacement) SetAvailabilityZone(v string) *SpotPlacement {
  55058. s.AvailabilityZone = &v
  55059. return s
  55060. }
  55061. // SetGroupName sets the GroupName field's value.
  55062. func (s *SpotPlacement) SetGroupName(v string) *SpotPlacement {
  55063. s.GroupName = &v
  55064. return s
  55065. }
  55066. // SetTenancy sets the Tenancy field's value.
  55067. func (s *SpotPlacement) SetTenancy(v string) *SpotPlacement {
  55068. s.Tenancy = &v
  55069. return s
  55070. }
  55071. // Describes the maximum price per hour that you are willing to pay for a Spot
  55072. // Instance.
  55073. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotPrice
  55074. type SpotPrice struct {
  55075. _ struct{} `type:"structure"`
  55076. // The Availability Zone.
  55077. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  55078. // The instance type.
  55079. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  55080. // A general description of the AMI.
  55081. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  55082. // The maximum price per hour that you are willing to pay for a Spot Instance.
  55083. SpotPrice *string `locationName:"spotPrice" type:"string"`
  55084. // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  55085. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  55086. }
  55087. // String returns the string representation
  55088. func (s SpotPrice) String() string {
  55089. return awsutil.Prettify(s)
  55090. }
  55091. // GoString returns the string representation
  55092. func (s SpotPrice) GoString() string {
  55093. return s.String()
  55094. }
  55095. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55096. func (s *SpotPrice) SetAvailabilityZone(v string) *SpotPrice {
  55097. s.AvailabilityZone = &v
  55098. return s
  55099. }
  55100. // SetInstanceType sets the InstanceType field's value.
  55101. func (s *SpotPrice) SetInstanceType(v string) *SpotPrice {
  55102. s.InstanceType = &v
  55103. return s
  55104. }
  55105. // SetProductDescription sets the ProductDescription field's value.
  55106. func (s *SpotPrice) SetProductDescription(v string) *SpotPrice {
  55107. s.ProductDescription = &v
  55108. return s
  55109. }
  55110. // SetSpotPrice sets the SpotPrice field's value.
  55111. func (s *SpotPrice) SetSpotPrice(v string) *SpotPrice {
  55112. s.SpotPrice = &v
  55113. return s
  55114. }
  55115. // SetTimestamp sets the Timestamp field's value.
  55116. func (s *SpotPrice) SetTimestamp(v time.Time) *SpotPrice {
  55117. s.Timestamp = &v
  55118. return s
  55119. }
  55120. // Describes a stale rule in a security group.
  55121. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StaleIpPermission
  55122. type StaleIpPermission struct {
  55123. _ struct{} `type:"structure"`
  55124. // The start of the port range for the TCP and UDP protocols, or an ICMP type
  55125. // number. A value of -1 indicates all ICMP types.
  55126. FromPort *int64 `locationName:"fromPort" type:"integer"`
  55127. // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers)
  55128. // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
  55129. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  55130. // One or more IP ranges. Not applicable for stale security group rules.
  55131. IpRanges []*string `locationName:"ipRanges" locationNameList:"item" type:"list"`
  55132. // One or more prefix list IDs for an AWS service. Not applicable for stale
  55133. // security group rules.
  55134. PrefixListIds []*string `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  55135. // The end of the port range for the TCP and UDP protocols, or an ICMP type
  55136. // number. A value of -1 indicates all ICMP types.
  55137. ToPort *int64 `locationName:"toPort" type:"integer"`
  55138. // One or more security group pairs. Returns the ID of the referenced security
  55139. // group and VPC, and the ID and status of the VPC peering connection.
  55140. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  55141. }
  55142. // String returns the string representation
  55143. func (s StaleIpPermission) String() string {
  55144. return awsutil.Prettify(s)
  55145. }
  55146. // GoString returns the string representation
  55147. func (s StaleIpPermission) GoString() string {
  55148. return s.String()
  55149. }
  55150. // SetFromPort sets the FromPort field's value.
  55151. func (s *StaleIpPermission) SetFromPort(v int64) *StaleIpPermission {
  55152. s.FromPort = &v
  55153. return s
  55154. }
  55155. // SetIpProtocol sets the IpProtocol field's value.
  55156. func (s *StaleIpPermission) SetIpProtocol(v string) *StaleIpPermission {
  55157. s.IpProtocol = &v
  55158. return s
  55159. }
  55160. // SetIpRanges sets the IpRanges field's value.
  55161. func (s *StaleIpPermission) SetIpRanges(v []*string) *StaleIpPermission {
  55162. s.IpRanges = v
  55163. return s
  55164. }
  55165. // SetPrefixListIds sets the PrefixListIds field's value.
  55166. func (s *StaleIpPermission) SetPrefixListIds(v []*string) *StaleIpPermission {
  55167. s.PrefixListIds = v
  55168. return s
  55169. }
  55170. // SetToPort sets the ToPort field's value.
  55171. func (s *StaleIpPermission) SetToPort(v int64) *StaleIpPermission {
  55172. s.ToPort = &v
  55173. return s
  55174. }
  55175. // SetUserIdGroupPairs sets the UserIdGroupPairs field's value.
  55176. func (s *StaleIpPermission) SetUserIdGroupPairs(v []*UserIdGroupPair) *StaleIpPermission {
  55177. s.UserIdGroupPairs = v
  55178. return s
  55179. }
  55180. // Describes a stale security group (a security group that contains stale rules).
  55181. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StaleSecurityGroup
  55182. type StaleSecurityGroup struct {
  55183. _ struct{} `type:"structure"`
  55184. // The description of the security group.
  55185. Description *string `locationName:"description" type:"string"`
  55186. // The ID of the security group.
  55187. //
  55188. // GroupId is a required field
  55189. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  55190. // The name of the security group.
  55191. GroupName *string `locationName:"groupName" type:"string"`
  55192. // Information about the stale inbound rules in the security group.
  55193. StaleIpPermissions []*StaleIpPermission `locationName:"staleIpPermissions" locationNameList:"item" type:"list"`
  55194. // Information about the stale outbound rules in the security group.
  55195. StaleIpPermissionsEgress []*StaleIpPermission `locationName:"staleIpPermissionsEgress" locationNameList:"item" type:"list"`
  55196. // The ID of the VPC for the security group.
  55197. VpcId *string `locationName:"vpcId" type:"string"`
  55198. }
  55199. // String returns the string representation
  55200. func (s StaleSecurityGroup) String() string {
  55201. return awsutil.Prettify(s)
  55202. }
  55203. // GoString returns the string representation
  55204. func (s StaleSecurityGroup) GoString() string {
  55205. return s.String()
  55206. }
  55207. // SetDescription sets the Description field's value.
  55208. func (s *StaleSecurityGroup) SetDescription(v string) *StaleSecurityGroup {
  55209. s.Description = &v
  55210. return s
  55211. }
  55212. // SetGroupId sets the GroupId field's value.
  55213. func (s *StaleSecurityGroup) SetGroupId(v string) *StaleSecurityGroup {
  55214. s.GroupId = &v
  55215. return s
  55216. }
  55217. // SetGroupName sets the GroupName field's value.
  55218. func (s *StaleSecurityGroup) SetGroupName(v string) *StaleSecurityGroup {
  55219. s.GroupName = &v
  55220. return s
  55221. }
  55222. // SetStaleIpPermissions sets the StaleIpPermissions field's value.
  55223. func (s *StaleSecurityGroup) SetStaleIpPermissions(v []*StaleIpPermission) *StaleSecurityGroup {
  55224. s.StaleIpPermissions = v
  55225. return s
  55226. }
  55227. // SetStaleIpPermissionsEgress sets the StaleIpPermissionsEgress field's value.
  55228. func (s *StaleSecurityGroup) SetStaleIpPermissionsEgress(v []*StaleIpPermission) *StaleSecurityGroup {
  55229. s.StaleIpPermissionsEgress = v
  55230. return s
  55231. }
  55232. // SetVpcId sets the VpcId field's value.
  55233. func (s *StaleSecurityGroup) SetVpcId(v string) *StaleSecurityGroup {
  55234. s.VpcId = &v
  55235. return s
  55236. }
  55237. // Contains the parameters for StartInstances.
  55238. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstancesRequest
  55239. type StartInstancesInput struct {
  55240. _ struct{} `type:"structure"`
  55241. // Reserved.
  55242. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  55243. // Checks whether you have the required permissions for the action, without
  55244. // actually making the request, and provides an error response. If you have
  55245. // the required permissions, the error response is DryRunOperation. Otherwise,
  55246. // it is UnauthorizedOperation.
  55247. DryRun *bool `locationName:"dryRun" type:"boolean"`
  55248. // One or more instance IDs.
  55249. //
  55250. // InstanceIds is a required field
  55251. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  55252. }
  55253. // String returns the string representation
  55254. func (s StartInstancesInput) String() string {
  55255. return awsutil.Prettify(s)
  55256. }
  55257. // GoString returns the string representation
  55258. func (s StartInstancesInput) GoString() string {
  55259. return s.String()
  55260. }
  55261. // Validate inspects the fields of the type to determine if they are valid.
  55262. func (s *StartInstancesInput) Validate() error {
  55263. invalidParams := request.ErrInvalidParams{Context: "StartInstancesInput"}
  55264. if s.InstanceIds == nil {
  55265. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  55266. }
  55267. if invalidParams.Len() > 0 {
  55268. return invalidParams
  55269. }
  55270. return nil
  55271. }
  55272. // SetAdditionalInfo sets the AdditionalInfo field's value.
  55273. func (s *StartInstancesInput) SetAdditionalInfo(v string) *StartInstancesInput {
  55274. s.AdditionalInfo = &v
  55275. return s
  55276. }
  55277. // SetDryRun sets the DryRun field's value.
  55278. func (s *StartInstancesInput) SetDryRun(v bool) *StartInstancesInput {
  55279. s.DryRun = &v
  55280. return s
  55281. }
  55282. // SetInstanceIds sets the InstanceIds field's value.
  55283. func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput {
  55284. s.InstanceIds = v
  55285. return s
  55286. }
  55287. // Contains the output of StartInstances.
  55288. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StartInstancesResult
  55289. type StartInstancesOutput struct {
  55290. _ struct{} `type:"structure"`
  55291. // Information about one or more started instances.
  55292. StartingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  55293. }
  55294. // String returns the string representation
  55295. func (s StartInstancesOutput) String() string {
  55296. return awsutil.Prettify(s)
  55297. }
  55298. // GoString returns the string representation
  55299. func (s StartInstancesOutput) GoString() string {
  55300. return s.String()
  55301. }
  55302. // SetStartingInstances sets the StartingInstances field's value.
  55303. func (s *StartInstancesOutput) SetStartingInstances(v []*InstanceStateChange) *StartInstancesOutput {
  55304. s.StartingInstances = v
  55305. return s
  55306. }
  55307. // Describes a state change.
  55308. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StateReason
  55309. type StateReason struct {
  55310. _ struct{} `type:"structure"`
  55311. // The reason code for the state change.
  55312. Code *string `locationName:"code" type:"string"`
  55313. // The message for the state change.
  55314. //
  55315. // * Server.InsufficientInstanceCapacity: There was insufficient instance
  55316. // capacity to satisfy the launch request.
  55317. //
  55318. // * Server.InternalError: An internal error occurred during instance launch,
  55319. // resulting in termination.
  55320. //
  55321. // * Server.ScheduledStop: The instance was stopped due to a scheduled retirement.
  55322. //
  55323. // * Server.SpotInstanceTermination: A Spot Instance was terminated due to
  55324. // an increase in the Spot price.
  55325. //
  55326. // * Client.InternalError: A client error caused the instance to terminate
  55327. // on launch.
  55328. //
  55329. // * Client.InstanceInitiatedShutdown: The instance was shut down using the
  55330. // shutdown -h command from the instance.
  55331. //
  55332. // * Client.InstanceTerminated: The instance was terminated or rebooted during
  55333. // AMI creation.
  55334. //
  55335. // * Client.UserInitiatedShutdown: The instance was shut down using the Amazon
  55336. // EC2 API.
  55337. //
  55338. // * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or
  55339. // total storage was exceeded. Decrease usage or request an increase in your
  55340. // limits.
  55341. //
  55342. // * Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
  55343. Message *string `locationName:"message" type:"string"`
  55344. }
  55345. // String returns the string representation
  55346. func (s StateReason) String() string {
  55347. return awsutil.Prettify(s)
  55348. }
  55349. // GoString returns the string representation
  55350. func (s StateReason) GoString() string {
  55351. return s.String()
  55352. }
  55353. // SetCode sets the Code field's value.
  55354. func (s *StateReason) SetCode(v string) *StateReason {
  55355. s.Code = &v
  55356. return s
  55357. }
  55358. // SetMessage sets the Message field's value.
  55359. func (s *StateReason) SetMessage(v string) *StateReason {
  55360. s.Message = &v
  55361. return s
  55362. }
  55363. // Contains the parameters for StopInstances.
  55364. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstancesRequest
  55365. type StopInstancesInput struct {
  55366. _ struct{} `type:"structure"`
  55367. // Checks whether you have the required permissions for the action, without
  55368. // actually making the request, and provides an error response. If you have
  55369. // the required permissions, the error response is DryRunOperation. Otherwise,
  55370. // it is UnauthorizedOperation.
  55371. DryRun *bool `locationName:"dryRun" type:"boolean"`
  55372. // Forces the instances to stop. The instances do not have an opportunity to
  55373. // flush file system caches or file system metadata. If you use this option,
  55374. // you must perform file system check and repair procedures. This option is
  55375. // not recommended for Windows instances.
  55376. //
  55377. // Default: false
  55378. Force *bool `locationName:"force" type:"boolean"`
  55379. // One or more instance IDs.
  55380. //
  55381. // InstanceIds is a required field
  55382. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  55383. }
  55384. // String returns the string representation
  55385. func (s StopInstancesInput) String() string {
  55386. return awsutil.Prettify(s)
  55387. }
  55388. // GoString returns the string representation
  55389. func (s StopInstancesInput) GoString() string {
  55390. return s.String()
  55391. }
  55392. // Validate inspects the fields of the type to determine if they are valid.
  55393. func (s *StopInstancesInput) Validate() error {
  55394. invalidParams := request.ErrInvalidParams{Context: "StopInstancesInput"}
  55395. if s.InstanceIds == nil {
  55396. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  55397. }
  55398. if invalidParams.Len() > 0 {
  55399. return invalidParams
  55400. }
  55401. return nil
  55402. }
  55403. // SetDryRun sets the DryRun field's value.
  55404. func (s *StopInstancesInput) SetDryRun(v bool) *StopInstancesInput {
  55405. s.DryRun = &v
  55406. return s
  55407. }
  55408. // SetForce sets the Force field's value.
  55409. func (s *StopInstancesInput) SetForce(v bool) *StopInstancesInput {
  55410. s.Force = &v
  55411. return s
  55412. }
  55413. // SetInstanceIds sets the InstanceIds field's value.
  55414. func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput {
  55415. s.InstanceIds = v
  55416. return s
  55417. }
  55418. // Contains the output of StopInstances.
  55419. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StopInstancesResult
  55420. type StopInstancesOutput struct {
  55421. _ struct{} `type:"structure"`
  55422. // Information about one or more stopped instances.
  55423. StoppingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  55424. }
  55425. // String returns the string representation
  55426. func (s StopInstancesOutput) String() string {
  55427. return awsutil.Prettify(s)
  55428. }
  55429. // GoString returns the string representation
  55430. func (s StopInstancesOutput) GoString() string {
  55431. return s.String()
  55432. }
  55433. // SetStoppingInstances sets the StoppingInstances field's value.
  55434. func (s *StopInstancesOutput) SetStoppingInstances(v []*InstanceStateChange) *StopInstancesOutput {
  55435. s.StoppingInstances = v
  55436. return s
  55437. }
  55438. // Describes the storage location for an instance store-backed AMI.
  55439. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Storage
  55440. type Storage struct {
  55441. _ struct{} `type:"structure"`
  55442. // An Amazon S3 storage location.
  55443. S3 *S3Storage `type:"structure"`
  55444. }
  55445. // String returns the string representation
  55446. func (s Storage) String() string {
  55447. return awsutil.Prettify(s)
  55448. }
  55449. // GoString returns the string representation
  55450. func (s Storage) GoString() string {
  55451. return s.String()
  55452. }
  55453. // SetS3 sets the S3 field's value.
  55454. func (s *Storage) SetS3(v *S3Storage) *Storage {
  55455. s.S3 = v
  55456. return s
  55457. }
  55458. // Describes a storage location in Amazon S3.
  55459. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/StorageLocation
  55460. type StorageLocation struct {
  55461. _ struct{} `type:"structure"`
  55462. // The name of the S3 bucket.
  55463. Bucket *string `type:"string"`
  55464. // The key.
  55465. Key *string `type:"string"`
  55466. }
  55467. // String returns the string representation
  55468. func (s StorageLocation) String() string {
  55469. return awsutil.Prettify(s)
  55470. }
  55471. // GoString returns the string representation
  55472. func (s StorageLocation) GoString() string {
  55473. return s.String()
  55474. }
  55475. // SetBucket sets the Bucket field's value.
  55476. func (s *StorageLocation) SetBucket(v string) *StorageLocation {
  55477. s.Bucket = &v
  55478. return s
  55479. }
  55480. // SetKey sets the Key field's value.
  55481. func (s *StorageLocation) SetKey(v string) *StorageLocation {
  55482. s.Key = &v
  55483. return s
  55484. }
  55485. // Describes a subnet.
  55486. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Subnet
  55487. type Subnet struct {
  55488. _ struct{} `type:"structure"`
  55489. // Indicates whether a network interface created in this subnet (including a
  55490. // network interface created by RunInstances) receives an IPv6 address.
  55491. AssignIpv6AddressOnCreation *bool `locationName:"assignIpv6AddressOnCreation" type:"boolean"`
  55492. // The Availability Zone of the subnet.
  55493. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  55494. // The number of unused private IPv4 addresses in the subnet. Note that the
  55495. // IPv4 addresses for any stopped instances are considered unavailable.
  55496. AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"`
  55497. // The IPv4 CIDR block assigned to the subnet.
  55498. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  55499. // Indicates whether this is the default subnet for the Availability Zone.
  55500. DefaultForAz *bool `locationName:"defaultForAz" type:"boolean"`
  55501. // Information about the IPv6 CIDR blocks associated with the subnet.
  55502. Ipv6CidrBlockAssociationSet []*SubnetIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  55503. // Indicates whether instances launched in this subnet receive a public IPv4
  55504. // address.
  55505. MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"`
  55506. // The current state of the subnet.
  55507. State *string `locationName:"state" type:"string" enum:"SubnetState"`
  55508. // The ID of the subnet.
  55509. SubnetId *string `locationName:"subnetId" type:"string"`
  55510. // Any tags assigned to the subnet.
  55511. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  55512. // The ID of the VPC the subnet is in.
  55513. VpcId *string `locationName:"vpcId" type:"string"`
  55514. }
  55515. // String returns the string representation
  55516. func (s Subnet) String() string {
  55517. return awsutil.Prettify(s)
  55518. }
  55519. // GoString returns the string representation
  55520. func (s Subnet) GoString() string {
  55521. return s.String()
  55522. }
  55523. // SetAssignIpv6AddressOnCreation sets the AssignIpv6AddressOnCreation field's value.
  55524. func (s *Subnet) SetAssignIpv6AddressOnCreation(v bool) *Subnet {
  55525. s.AssignIpv6AddressOnCreation = &v
  55526. return s
  55527. }
  55528. // SetAvailabilityZone sets the AvailabilityZone field's value.
  55529. func (s *Subnet) SetAvailabilityZone(v string) *Subnet {
  55530. s.AvailabilityZone = &v
  55531. return s
  55532. }
  55533. // SetAvailableIpAddressCount sets the AvailableIpAddressCount field's value.
  55534. func (s *Subnet) SetAvailableIpAddressCount(v int64) *Subnet {
  55535. s.AvailableIpAddressCount = &v
  55536. return s
  55537. }
  55538. // SetCidrBlock sets the CidrBlock field's value.
  55539. func (s *Subnet) SetCidrBlock(v string) *Subnet {
  55540. s.CidrBlock = &v
  55541. return s
  55542. }
  55543. // SetDefaultForAz sets the DefaultForAz field's value.
  55544. func (s *Subnet) SetDefaultForAz(v bool) *Subnet {
  55545. s.DefaultForAz = &v
  55546. return s
  55547. }
  55548. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  55549. func (s *Subnet) SetIpv6CidrBlockAssociationSet(v []*SubnetIpv6CidrBlockAssociation) *Subnet {
  55550. s.Ipv6CidrBlockAssociationSet = v
  55551. return s
  55552. }
  55553. // SetMapPublicIpOnLaunch sets the MapPublicIpOnLaunch field's value.
  55554. func (s *Subnet) SetMapPublicIpOnLaunch(v bool) *Subnet {
  55555. s.MapPublicIpOnLaunch = &v
  55556. return s
  55557. }
  55558. // SetState sets the State field's value.
  55559. func (s *Subnet) SetState(v string) *Subnet {
  55560. s.State = &v
  55561. return s
  55562. }
  55563. // SetSubnetId sets the SubnetId field's value.
  55564. func (s *Subnet) SetSubnetId(v string) *Subnet {
  55565. s.SubnetId = &v
  55566. return s
  55567. }
  55568. // SetTags sets the Tags field's value.
  55569. func (s *Subnet) SetTags(v []*Tag) *Subnet {
  55570. s.Tags = v
  55571. return s
  55572. }
  55573. // SetVpcId sets the VpcId field's value.
  55574. func (s *Subnet) SetVpcId(v string) *Subnet {
  55575. s.VpcId = &v
  55576. return s
  55577. }
  55578. // Describes the state of a CIDR block.
  55579. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SubnetCidrBlockState
  55580. type SubnetCidrBlockState struct {
  55581. _ struct{} `type:"structure"`
  55582. // The state of a CIDR block.
  55583. State *string `locationName:"state" type:"string" enum:"SubnetCidrBlockStateCode"`
  55584. // A message about the status of the CIDR block, if applicable.
  55585. StatusMessage *string `locationName:"statusMessage" type:"string"`
  55586. }
  55587. // String returns the string representation
  55588. func (s SubnetCidrBlockState) String() string {
  55589. return awsutil.Prettify(s)
  55590. }
  55591. // GoString returns the string representation
  55592. func (s SubnetCidrBlockState) GoString() string {
  55593. return s.String()
  55594. }
  55595. // SetState sets the State field's value.
  55596. func (s *SubnetCidrBlockState) SetState(v string) *SubnetCidrBlockState {
  55597. s.State = &v
  55598. return s
  55599. }
  55600. // SetStatusMessage sets the StatusMessage field's value.
  55601. func (s *SubnetCidrBlockState) SetStatusMessage(v string) *SubnetCidrBlockState {
  55602. s.StatusMessage = &v
  55603. return s
  55604. }
  55605. // Describes an IPv6 CIDR block associated with a subnet.
  55606. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SubnetIpv6CidrBlockAssociation
  55607. type SubnetIpv6CidrBlockAssociation struct {
  55608. _ struct{} `type:"structure"`
  55609. // The association ID for the CIDR block.
  55610. AssociationId *string `locationName:"associationId" type:"string"`
  55611. // The IPv6 CIDR block.
  55612. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  55613. // Information about the state of the CIDR block.
  55614. Ipv6CidrBlockState *SubnetCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  55615. }
  55616. // String returns the string representation
  55617. func (s SubnetIpv6CidrBlockAssociation) String() string {
  55618. return awsutil.Prettify(s)
  55619. }
  55620. // GoString returns the string representation
  55621. func (s SubnetIpv6CidrBlockAssociation) GoString() string {
  55622. return s.String()
  55623. }
  55624. // SetAssociationId sets the AssociationId field's value.
  55625. func (s *SubnetIpv6CidrBlockAssociation) SetAssociationId(v string) *SubnetIpv6CidrBlockAssociation {
  55626. s.AssociationId = &v
  55627. return s
  55628. }
  55629. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  55630. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *SubnetIpv6CidrBlockAssociation {
  55631. s.Ipv6CidrBlock = &v
  55632. return s
  55633. }
  55634. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  55635. func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *SubnetCidrBlockState) *SubnetIpv6CidrBlockAssociation {
  55636. s.Ipv6CidrBlockState = v
  55637. return s
  55638. }
  55639. // Describes the T2 instance whose credit option for CPU usage was successfully
  55640. // modified.
  55641. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SuccessfulInstanceCreditSpecificationItem
  55642. type SuccessfulInstanceCreditSpecificationItem struct {
  55643. _ struct{} `type:"structure"`
  55644. // The ID of the instance.
  55645. InstanceId *string `locationName:"instanceId" type:"string"`
  55646. }
  55647. // String returns the string representation
  55648. func (s SuccessfulInstanceCreditSpecificationItem) String() string {
  55649. return awsutil.Prettify(s)
  55650. }
  55651. // GoString returns the string representation
  55652. func (s SuccessfulInstanceCreditSpecificationItem) GoString() string {
  55653. return s.String()
  55654. }
  55655. // SetInstanceId sets the InstanceId field's value.
  55656. func (s *SuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *SuccessfulInstanceCreditSpecificationItem {
  55657. s.InstanceId = &v
  55658. return s
  55659. }
  55660. // Describes a tag.
  55661. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Tag
  55662. type Tag struct {
  55663. _ struct{} `type:"structure"`
  55664. // The key of the tag.
  55665. //
  55666. // Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
  55667. // characters. May not begin with aws:
  55668. Key *string `locationName:"key" type:"string"`
  55669. // The value of the tag.
  55670. //
  55671. // Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode
  55672. // characters.
  55673. Value *string `locationName:"value" type:"string"`
  55674. }
  55675. // String returns the string representation
  55676. func (s Tag) String() string {
  55677. return awsutil.Prettify(s)
  55678. }
  55679. // GoString returns the string representation
  55680. func (s Tag) GoString() string {
  55681. return s.String()
  55682. }
  55683. // SetKey sets the Key field's value.
  55684. func (s *Tag) SetKey(v string) *Tag {
  55685. s.Key = &v
  55686. return s
  55687. }
  55688. // SetValue sets the Value field's value.
  55689. func (s *Tag) SetValue(v string) *Tag {
  55690. s.Value = &v
  55691. return s
  55692. }
  55693. // Describes a tag.
  55694. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TagDescription
  55695. type TagDescription struct {
  55696. _ struct{} `type:"structure"`
  55697. // The tag key.
  55698. Key *string `locationName:"key" type:"string"`
  55699. // The ID of the resource. For example, ami-1a2b3c4d.
  55700. ResourceId *string `locationName:"resourceId" type:"string"`
  55701. // The resource type.
  55702. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  55703. // The tag value.
  55704. Value *string `locationName:"value" type:"string"`
  55705. }
  55706. // String returns the string representation
  55707. func (s TagDescription) String() string {
  55708. return awsutil.Prettify(s)
  55709. }
  55710. // GoString returns the string representation
  55711. func (s TagDescription) GoString() string {
  55712. return s.String()
  55713. }
  55714. // SetKey sets the Key field's value.
  55715. func (s *TagDescription) SetKey(v string) *TagDescription {
  55716. s.Key = &v
  55717. return s
  55718. }
  55719. // SetResourceId sets the ResourceId field's value.
  55720. func (s *TagDescription) SetResourceId(v string) *TagDescription {
  55721. s.ResourceId = &v
  55722. return s
  55723. }
  55724. // SetResourceType sets the ResourceType field's value.
  55725. func (s *TagDescription) SetResourceType(v string) *TagDescription {
  55726. s.ResourceType = &v
  55727. return s
  55728. }
  55729. // SetValue sets the Value field's value.
  55730. func (s *TagDescription) SetValue(v string) *TagDescription {
  55731. s.Value = &v
  55732. return s
  55733. }
  55734. // The tags to apply to a resource when the resource is being created.
  55735. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TagSpecification
  55736. type TagSpecification struct {
  55737. _ struct{} `type:"structure"`
  55738. // The type of resource to tag. Currently, the resource types that support tagging
  55739. // on creation are instance and volume.
  55740. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  55741. // The tags to apply to the resource.
  55742. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list"`
  55743. }
  55744. // String returns the string representation
  55745. func (s TagSpecification) String() string {
  55746. return awsutil.Prettify(s)
  55747. }
  55748. // GoString returns the string representation
  55749. func (s TagSpecification) GoString() string {
  55750. return s.String()
  55751. }
  55752. // SetResourceType sets the ResourceType field's value.
  55753. func (s *TagSpecification) SetResourceType(v string) *TagSpecification {
  55754. s.ResourceType = &v
  55755. return s
  55756. }
  55757. // SetTags sets the Tags field's value.
  55758. func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification {
  55759. s.Tags = v
  55760. return s
  55761. }
  55762. // Information about the Convertible Reserved Instance offering.
  55763. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetConfiguration
  55764. type TargetConfiguration struct {
  55765. _ struct{} `type:"structure"`
  55766. // The number of instances the Convertible Reserved Instance offering can be
  55767. // applied to. This parameter is reserved and cannot be specified in a request
  55768. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  55769. // The ID of the Convertible Reserved Instance offering.
  55770. OfferingId *string `locationName:"offeringId" type:"string"`
  55771. }
  55772. // String returns the string representation
  55773. func (s TargetConfiguration) String() string {
  55774. return awsutil.Prettify(s)
  55775. }
  55776. // GoString returns the string representation
  55777. func (s TargetConfiguration) GoString() string {
  55778. return s.String()
  55779. }
  55780. // SetInstanceCount sets the InstanceCount field's value.
  55781. func (s *TargetConfiguration) SetInstanceCount(v int64) *TargetConfiguration {
  55782. s.InstanceCount = &v
  55783. return s
  55784. }
  55785. // SetOfferingId sets the OfferingId field's value.
  55786. func (s *TargetConfiguration) SetOfferingId(v string) *TargetConfiguration {
  55787. s.OfferingId = &v
  55788. return s
  55789. }
  55790. // Details about the target configuration.
  55791. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetConfigurationRequest
  55792. type TargetConfigurationRequest struct {
  55793. _ struct{} `type:"structure"`
  55794. // The number of instances the Covertible Reserved Instance offering can be
  55795. // applied to. This parameter is reserved and cannot be specified in a request
  55796. InstanceCount *int64 `type:"integer"`
  55797. // The Convertible Reserved Instance offering ID.
  55798. //
  55799. // OfferingId is a required field
  55800. OfferingId *string `type:"string" required:"true"`
  55801. }
  55802. // String returns the string representation
  55803. func (s TargetConfigurationRequest) String() string {
  55804. return awsutil.Prettify(s)
  55805. }
  55806. // GoString returns the string representation
  55807. func (s TargetConfigurationRequest) GoString() string {
  55808. return s.String()
  55809. }
  55810. // Validate inspects the fields of the type to determine if they are valid.
  55811. func (s *TargetConfigurationRequest) Validate() error {
  55812. invalidParams := request.ErrInvalidParams{Context: "TargetConfigurationRequest"}
  55813. if s.OfferingId == nil {
  55814. invalidParams.Add(request.NewErrParamRequired("OfferingId"))
  55815. }
  55816. if invalidParams.Len() > 0 {
  55817. return invalidParams
  55818. }
  55819. return nil
  55820. }
  55821. // SetInstanceCount sets the InstanceCount field's value.
  55822. func (s *TargetConfigurationRequest) SetInstanceCount(v int64) *TargetConfigurationRequest {
  55823. s.InstanceCount = &v
  55824. return s
  55825. }
  55826. // SetOfferingId sets the OfferingId field's value.
  55827. func (s *TargetConfigurationRequest) SetOfferingId(v string) *TargetConfigurationRequest {
  55828. s.OfferingId = &v
  55829. return s
  55830. }
  55831. // Describes a load balancer target group.
  55832. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetGroup
  55833. type TargetGroup struct {
  55834. _ struct{} `type:"structure"`
  55835. // The Amazon Resource Name (ARN) of the target group.
  55836. //
  55837. // Arn is a required field
  55838. Arn *string `locationName:"arn" type:"string" required:"true"`
  55839. }
  55840. // String returns the string representation
  55841. func (s TargetGroup) String() string {
  55842. return awsutil.Prettify(s)
  55843. }
  55844. // GoString returns the string representation
  55845. func (s TargetGroup) GoString() string {
  55846. return s.String()
  55847. }
  55848. // Validate inspects the fields of the type to determine if they are valid.
  55849. func (s *TargetGroup) Validate() error {
  55850. invalidParams := request.ErrInvalidParams{Context: "TargetGroup"}
  55851. if s.Arn == nil {
  55852. invalidParams.Add(request.NewErrParamRequired("Arn"))
  55853. }
  55854. if invalidParams.Len() > 0 {
  55855. return invalidParams
  55856. }
  55857. return nil
  55858. }
  55859. // SetArn sets the Arn field's value.
  55860. func (s *TargetGroup) SetArn(v string) *TargetGroup {
  55861. s.Arn = &v
  55862. return s
  55863. }
  55864. // Describes the target groups to attach to a Spot Fleet. Spot Fleet registers
  55865. // the running Spot Instances with these target groups.
  55866. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetGroupsConfig
  55867. type TargetGroupsConfig struct {
  55868. _ struct{} `type:"structure"`
  55869. // One or more target groups.
  55870. //
  55871. // TargetGroups is a required field
  55872. TargetGroups []*TargetGroup `locationName:"targetGroups" locationNameList:"item" min:"1" type:"list" required:"true"`
  55873. }
  55874. // String returns the string representation
  55875. func (s TargetGroupsConfig) String() string {
  55876. return awsutil.Prettify(s)
  55877. }
  55878. // GoString returns the string representation
  55879. func (s TargetGroupsConfig) GoString() string {
  55880. return s.String()
  55881. }
  55882. // Validate inspects the fields of the type to determine if they are valid.
  55883. func (s *TargetGroupsConfig) Validate() error {
  55884. invalidParams := request.ErrInvalidParams{Context: "TargetGroupsConfig"}
  55885. if s.TargetGroups == nil {
  55886. invalidParams.Add(request.NewErrParamRequired("TargetGroups"))
  55887. }
  55888. if s.TargetGroups != nil && len(s.TargetGroups) < 1 {
  55889. invalidParams.Add(request.NewErrParamMinLen("TargetGroups", 1))
  55890. }
  55891. if s.TargetGroups != nil {
  55892. for i, v := range s.TargetGroups {
  55893. if v == nil {
  55894. continue
  55895. }
  55896. if err := v.Validate(); err != nil {
  55897. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetGroups", i), err.(request.ErrInvalidParams))
  55898. }
  55899. }
  55900. }
  55901. if invalidParams.Len() > 0 {
  55902. return invalidParams
  55903. }
  55904. return nil
  55905. }
  55906. // SetTargetGroups sets the TargetGroups field's value.
  55907. func (s *TargetGroupsConfig) SetTargetGroups(v []*TargetGroup) *TargetGroupsConfig {
  55908. s.TargetGroups = v
  55909. return s
  55910. }
  55911. // The total value of the new Convertible Reserved Instances.
  55912. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TargetReservationValue
  55913. type TargetReservationValue struct {
  55914. _ struct{} `type:"structure"`
  55915. // The total value of the Convertible Reserved Instances that make up the exchange.
  55916. // This is the sum of the list value, remaining upfront price, and additional
  55917. // upfront cost of the exchange.
  55918. ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"`
  55919. // The configuration of the Convertible Reserved Instances that make up the
  55920. // exchange.
  55921. TargetConfiguration *TargetConfiguration `locationName:"targetConfiguration" type:"structure"`
  55922. }
  55923. // String returns the string representation
  55924. func (s TargetReservationValue) String() string {
  55925. return awsutil.Prettify(s)
  55926. }
  55927. // GoString returns the string representation
  55928. func (s TargetReservationValue) GoString() string {
  55929. return s.String()
  55930. }
  55931. // SetReservationValue sets the ReservationValue field's value.
  55932. func (s *TargetReservationValue) SetReservationValue(v *ReservationValue) *TargetReservationValue {
  55933. s.ReservationValue = v
  55934. return s
  55935. }
  55936. // SetTargetConfiguration sets the TargetConfiguration field's value.
  55937. func (s *TargetReservationValue) SetTargetConfiguration(v *TargetConfiguration) *TargetReservationValue {
  55938. s.TargetConfiguration = v
  55939. return s
  55940. }
  55941. // Contains the parameters for TerminateInstances.
  55942. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstancesRequest
  55943. type TerminateInstancesInput struct {
  55944. _ struct{} `type:"structure"`
  55945. // Checks whether you have the required permissions for the action, without
  55946. // actually making the request, and provides an error response. If you have
  55947. // the required permissions, the error response is DryRunOperation. Otherwise,
  55948. // it is UnauthorizedOperation.
  55949. DryRun *bool `locationName:"dryRun" type:"boolean"`
  55950. // One or more instance IDs.
  55951. //
  55952. // Constraints: Up to 1000 instance IDs. We recommend breaking up this request
  55953. // into smaller batches.
  55954. //
  55955. // InstanceIds is a required field
  55956. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  55957. }
  55958. // String returns the string representation
  55959. func (s TerminateInstancesInput) String() string {
  55960. return awsutil.Prettify(s)
  55961. }
  55962. // GoString returns the string representation
  55963. func (s TerminateInstancesInput) GoString() string {
  55964. return s.String()
  55965. }
  55966. // Validate inspects the fields of the type to determine if they are valid.
  55967. func (s *TerminateInstancesInput) Validate() error {
  55968. invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"}
  55969. if s.InstanceIds == nil {
  55970. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  55971. }
  55972. if invalidParams.Len() > 0 {
  55973. return invalidParams
  55974. }
  55975. return nil
  55976. }
  55977. // SetDryRun sets the DryRun field's value.
  55978. func (s *TerminateInstancesInput) SetDryRun(v bool) *TerminateInstancesInput {
  55979. s.DryRun = &v
  55980. return s
  55981. }
  55982. // SetInstanceIds sets the InstanceIds field's value.
  55983. func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput {
  55984. s.InstanceIds = v
  55985. return s
  55986. }
  55987. // Contains the output of TerminateInstances.
  55988. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/TerminateInstancesResult
  55989. type TerminateInstancesOutput struct {
  55990. _ struct{} `type:"structure"`
  55991. // Information about one or more terminated instances.
  55992. TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  55993. }
  55994. // String returns the string representation
  55995. func (s TerminateInstancesOutput) String() string {
  55996. return awsutil.Prettify(s)
  55997. }
  55998. // GoString returns the string representation
  55999. func (s TerminateInstancesOutput) GoString() string {
  56000. return s.String()
  56001. }
  56002. // SetTerminatingInstances sets the TerminatingInstances field's value.
  56003. func (s *TerminateInstancesOutput) SetTerminatingInstances(v []*InstanceStateChange) *TerminateInstancesOutput {
  56004. s.TerminatingInstances = v
  56005. return s
  56006. }
  56007. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6AddressesRequest
  56008. type UnassignIpv6AddressesInput struct {
  56009. _ struct{} `type:"structure"`
  56010. // The IPv6 addresses to unassign from the network interface.
  56011. //
  56012. // Ipv6Addresses is a required field
  56013. Ipv6Addresses []*string `locationName:"ipv6Addresses" locationNameList:"item" type:"list" required:"true"`
  56014. // The ID of the network interface.
  56015. //
  56016. // NetworkInterfaceId is a required field
  56017. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  56018. }
  56019. // String returns the string representation
  56020. func (s UnassignIpv6AddressesInput) String() string {
  56021. return awsutil.Prettify(s)
  56022. }
  56023. // GoString returns the string representation
  56024. func (s UnassignIpv6AddressesInput) GoString() string {
  56025. return s.String()
  56026. }
  56027. // Validate inspects the fields of the type to determine if they are valid.
  56028. func (s *UnassignIpv6AddressesInput) Validate() error {
  56029. invalidParams := request.ErrInvalidParams{Context: "UnassignIpv6AddressesInput"}
  56030. if s.Ipv6Addresses == nil {
  56031. invalidParams.Add(request.NewErrParamRequired("Ipv6Addresses"))
  56032. }
  56033. if s.NetworkInterfaceId == nil {
  56034. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  56035. }
  56036. if invalidParams.Len() > 0 {
  56037. return invalidParams
  56038. }
  56039. return nil
  56040. }
  56041. // SetIpv6Addresses sets the Ipv6Addresses field's value.
  56042. func (s *UnassignIpv6AddressesInput) SetIpv6Addresses(v []*string) *UnassignIpv6AddressesInput {
  56043. s.Ipv6Addresses = v
  56044. return s
  56045. }
  56046. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  56047. func (s *UnassignIpv6AddressesInput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesInput {
  56048. s.NetworkInterfaceId = &v
  56049. return s
  56050. }
  56051. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignIpv6AddressesResult
  56052. type UnassignIpv6AddressesOutput struct {
  56053. _ struct{} `type:"structure"`
  56054. // The ID of the network interface.
  56055. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  56056. // The IPv6 addresses that have been unassigned from the network interface.
  56057. UnassignedIpv6Addresses []*string `locationName:"unassignedIpv6Addresses" locationNameList:"item" type:"list"`
  56058. }
  56059. // String returns the string representation
  56060. func (s UnassignIpv6AddressesOutput) String() string {
  56061. return awsutil.Prettify(s)
  56062. }
  56063. // GoString returns the string representation
  56064. func (s UnassignIpv6AddressesOutput) GoString() string {
  56065. return s.String()
  56066. }
  56067. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  56068. func (s *UnassignIpv6AddressesOutput) SetNetworkInterfaceId(v string) *UnassignIpv6AddressesOutput {
  56069. s.NetworkInterfaceId = &v
  56070. return s
  56071. }
  56072. // SetUnassignedIpv6Addresses sets the UnassignedIpv6Addresses field's value.
  56073. func (s *UnassignIpv6AddressesOutput) SetUnassignedIpv6Addresses(v []*string) *UnassignIpv6AddressesOutput {
  56074. s.UnassignedIpv6Addresses = v
  56075. return s
  56076. }
  56077. // Contains the parameters for UnassignPrivateIpAddresses.
  56078. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddressesRequest
  56079. type UnassignPrivateIpAddressesInput struct {
  56080. _ struct{} `type:"structure"`
  56081. // The ID of the network interface.
  56082. //
  56083. // NetworkInterfaceId is a required field
  56084. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  56085. // The secondary private IP addresses to unassign from the network interface.
  56086. // You can specify this option multiple times to unassign more than one IP address.
  56087. //
  56088. // PrivateIpAddresses is a required field
  56089. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list" required:"true"`
  56090. }
  56091. // String returns the string representation
  56092. func (s UnassignPrivateIpAddressesInput) String() string {
  56093. return awsutil.Prettify(s)
  56094. }
  56095. // GoString returns the string representation
  56096. func (s UnassignPrivateIpAddressesInput) GoString() string {
  56097. return s.String()
  56098. }
  56099. // Validate inspects the fields of the type to determine if they are valid.
  56100. func (s *UnassignPrivateIpAddressesInput) Validate() error {
  56101. invalidParams := request.ErrInvalidParams{Context: "UnassignPrivateIpAddressesInput"}
  56102. if s.NetworkInterfaceId == nil {
  56103. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  56104. }
  56105. if s.PrivateIpAddresses == nil {
  56106. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses"))
  56107. }
  56108. if invalidParams.Len() > 0 {
  56109. return invalidParams
  56110. }
  56111. return nil
  56112. }
  56113. // SetNetworkInterfaceId sets the NetworkInterfaceId field's value.
  56114. func (s *UnassignPrivateIpAddressesInput) SetNetworkInterfaceId(v string) *UnassignPrivateIpAddressesInput {
  56115. s.NetworkInterfaceId = &v
  56116. return s
  56117. }
  56118. // SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
  56119. func (s *UnassignPrivateIpAddressesInput) SetPrivateIpAddresses(v []*string) *UnassignPrivateIpAddressesInput {
  56120. s.PrivateIpAddresses = v
  56121. return s
  56122. }
  56123. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnassignPrivateIpAddressesOutput
  56124. type UnassignPrivateIpAddressesOutput struct {
  56125. _ struct{} `type:"structure"`
  56126. }
  56127. // String returns the string representation
  56128. func (s UnassignPrivateIpAddressesOutput) String() string {
  56129. return awsutil.Prettify(s)
  56130. }
  56131. // GoString returns the string representation
  56132. func (s UnassignPrivateIpAddressesOutput) GoString() string {
  56133. return s.String()
  56134. }
  56135. // Contains the parameters for UnmonitorInstances.
  56136. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstancesRequest
  56137. type UnmonitorInstancesInput struct {
  56138. _ struct{} `type:"structure"`
  56139. // Checks whether you have the required permissions for the action, without
  56140. // actually making the request, and provides an error response. If you have
  56141. // the required permissions, the error response is DryRunOperation. Otherwise,
  56142. // it is UnauthorizedOperation.
  56143. DryRun *bool `locationName:"dryRun" type:"boolean"`
  56144. // One or more instance IDs.
  56145. //
  56146. // InstanceIds is a required field
  56147. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  56148. }
  56149. // String returns the string representation
  56150. func (s UnmonitorInstancesInput) String() string {
  56151. return awsutil.Prettify(s)
  56152. }
  56153. // GoString returns the string representation
  56154. func (s UnmonitorInstancesInput) GoString() string {
  56155. return s.String()
  56156. }
  56157. // Validate inspects the fields of the type to determine if they are valid.
  56158. func (s *UnmonitorInstancesInput) Validate() error {
  56159. invalidParams := request.ErrInvalidParams{Context: "UnmonitorInstancesInput"}
  56160. if s.InstanceIds == nil {
  56161. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  56162. }
  56163. if invalidParams.Len() > 0 {
  56164. return invalidParams
  56165. }
  56166. return nil
  56167. }
  56168. // SetDryRun sets the DryRun field's value.
  56169. func (s *UnmonitorInstancesInput) SetDryRun(v bool) *UnmonitorInstancesInput {
  56170. s.DryRun = &v
  56171. return s
  56172. }
  56173. // SetInstanceIds sets the InstanceIds field's value.
  56174. func (s *UnmonitorInstancesInput) SetInstanceIds(v []*string) *UnmonitorInstancesInput {
  56175. s.InstanceIds = v
  56176. return s
  56177. }
  56178. // Contains the output of UnmonitorInstances.
  56179. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnmonitorInstancesResult
  56180. type UnmonitorInstancesOutput struct {
  56181. _ struct{} `type:"structure"`
  56182. // The monitoring information.
  56183. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  56184. }
  56185. // String returns the string representation
  56186. func (s UnmonitorInstancesOutput) String() string {
  56187. return awsutil.Prettify(s)
  56188. }
  56189. // GoString returns the string representation
  56190. func (s UnmonitorInstancesOutput) GoString() string {
  56191. return s.String()
  56192. }
  56193. // SetInstanceMonitorings sets the InstanceMonitorings field's value.
  56194. func (s *UnmonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitoring) *UnmonitorInstancesOutput {
  56195. s.InstanceMonitorings = v
  56196. return s
  56197. }
  56198. // Describes the T2 instance whose credit option for CPU usage was not modified.
  56199. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnsuccessfulInstanceCreditSpecificationItem
  56200. type UnsuccessfulInstanceCreditSpecificationItem struct {
  56201. _ struct{} `type:"structure"`
  56202. // The applicable error for the T2 instance whose credit option for CPU usage
  56203. // was not modified.
  56204. Error *UnsuccessfulInstanceCreditSpecificationItemError `locationName:"error" type:"structure"`
  56205. // The ID of the instance.
  56206. InstanceId *string `locationName:"instanceId" type:"string"`
  56207. }
  56208. // String returns the string representation
  56209. func (s UnsuccessfulInstanceCreditSpecificationItem) String() string {
  56210. return awsutil.Prettify(s)
  56211. }
  56212. // GoString returns the string representation
  56213. func (s UnsuccessfulInstanceCreditSpecificationItem) GoString() string {
  56214. return s.String()
  56215. }
  56216. // SetError sets the Error field's value.
  56217. func (s *UnsuccessfulInstanceCreditSpecificationItem) SetError(v *UnsuccessfulInstanceCreditSpecificationItemError) *UnsuccessfulInstanceCreditSpecificationItem {
  56218. s.Error = v
  56219. return s
  56220. }
  56221. // SetInstanceId sets the InstanceId field's value.
  56222. func (s *UnsuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *UnsuccessfulInstanceCreditSpecificationItem {
  56223. s.InstanceId = &v
  56224. return s
  56225. }
  56226. // Information about the error for the T2 instance whose credit option for CPU
  56227. // usage was not modified.
  56228. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnsuccessfulInstanceCreditSpecificationItemError
  56229. type UnsuccessfulInstanceCreditSpecificationItemError struct {
  56230. _ struct{} `type:"structure"`
  56231. // The error code.
  56232. Code *string `locationName:"code" type:"string" enum:"UnsuccessfulInstanceCreditSpecificationErrorCode"`
  56233. // The applicable error message.
  56234. Message *string `locationName:"message" type:"string"`
  56235. }
  56236. // String returns the string representation
  56237. func (s UnsuccessfulInstanceCreditSpecificationItemError) String() string {
  56238. return awsutil.Prettify(s)
  56239. }
  56240. // GoString returns the string representation
  56241. func (s UnsuccessfulInstanceCreditSpecificationItemError) GoString() string {
  56242. return s.String()
  56243. }
  56244. // SetCode sets the Code field's value.
  56245. func (s *UnsuccessfulInstanceCreditSpecificationItemError) SetCode(v string) *UnsuccessfulInstanceCreditSpecificationItemError {
  56246. s.Code = &v
  56247. return s
  56248. }
  56249. // SetMessage sets the Message field's value.
  56250. func (s *UnsuccessfulInstanceCreditSpecificationItemError) SetMessage(v string) *UnsuccessfulInstanceCreditSpecificationItemError {
  56251. s.Message = &v
  56252. return s
  56253. }
  56254. // Information about items that were not successfully processed in a batch call.
  56255. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnsuccessfulItem
  56256. type UnsuccessfulItem struct {
  56257. _ struct{} `type:"structure"`
  56258. // Information about the error.
  56259. //
  56260. // Error is a required field
  56261. Error *UnsuccessfulItemError `locationName:"error" type:"structure" required:"true"`
  56262. // The ID of the resource.
  56263. ResourceId *string `locationName:"resourceId" type:"string"`
  56264. }
  56265. // String returns the string representation
  56266. func (s UnsuccessfulItem) String() string {
  56267. return awsutil.Prettify(s)
  56268. }
  56269. // GoString returns the string representation
  56270. func (s UnsuccessfulItem) GoString() string {
  56271. return s.String()
  56272. }
  56273. // SetError sets the Error field's value.
  56274. func (s *UnsuccessfulItem) SetError(v *UnsuccessfulItemError) *UnsuccessfulItem {
  56275. s.Error = v
  56276. return s
  56277. }
  56278. // SetResourceId sets the ResourceId field's value.
  56279. func (s *UnsuccessfulItem) SetResourceId(v string) *UnsuccessfulItem {
  56280. s.ResourceId = &v
  56281. return s
  56282. }
  56283. // Information about the error that occurred. For more information about errors,
  56284. // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
  56285. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UnsuccessfulItemError
  56286. type UnsuccessfulItemError struct {
  56287. _ struct{} `type:"structure"`
  56288. // The error code.
  56289. //
  56290. // Code is a required field
  56291. Code *string `locationName:"code" type:"string" required:"true"`
  56292. // The error message accompanying the error code.
  56293. //
  56294. // Message is a required field
  56295. Message *string `locationName:"message" type:"string" required:"true"`
  56296. }
  56297. // String returns the string representation
  56298. func (s UnsuccessfulItemError) String() string {
  56299. return awsutil.Prettify(s)
  56300. }
  56301. // GoString returns the string representation
  56302. func (s UnsuccessfulItemError) GoString() string {
  56303. return s.String()
  56304. }
  56305. // SetCode sets the Code field's value.
  56306. func (s *UnsuccessfulItemError) SetCode(v string) *UnsuccessfulItemError {
  56307. s.Code = &v
  56308. return s
  56309. }
  56310. // SetMessage sets the Message field's value.
  56311. func (s *UnsuccessfulItemError) SetMessage(v string) *UnsuccessfulItemError {
  56312. s.Message = &v
  56313. return s
  56314. }
  56315. // Contains the parameters for UpdateSecurityGroupRuleDescriptionsEgress.
  56316. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgressRequest
  56317. type UpdateSecurityGroupRuleDescriptionsEgressInput struct {
  56318. _ struct{} `type:"structure"`
  56319. // Checks whether you have the required permissions for the action, without
  56320. // actually making the request, and provides an error response. If you have
  56321. // the required permissions, the error response is DryRunOperation. Otherwise,
  56322. // it is UnauthorizedOperation.
  56323. DryRun *bool `type:"boolean"`
  56324. // The ID of the security group. You must specify either the security group
  56325. // ID or the security group name in the request. For security groups in a nondefault
  56326. // VPC, you must specify the security group ID.
  56327. GroupId *string `type:"string"`
  56328. // [Default VPC] The name of the security group. You must specify either the
  56329. // security group ID or the security group name in the request.
  56330. GroupName *string `type:"string"`
  56331. // The IP permissions for the security group rule.
  56332. //
  56333. // IpPermissions is a required field
  56334. IpPermissions []*IpPermission `locationNameList:"item" type:"list" required:"true"`
  56335. }
  56336. // String returns the string representation
  56337. func (s UpdateSecurityGroupRuleDescriptionsEgressInput) String() string {
  56338. return awsutil.Prettify(s)
  56339. }
  56340. // GoString returns the string representation
  56341. func (s UpdateSecurityGroupRuleDescriptionsEgressInput) GoString() string {
  56342. return s.String()
  56343. }
  56344. // Validate inspects the fields of the type to determine if they are valid.
  56345. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) Validate() error {
  56346. invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityGroupRuleDescriptionsEgressInput"}
  56347. if s.IpPermissions == nil {
  56348. invalidParams.Add(request.NewErrParamRequired("IpPermissions"))
  56349. }
  56350. if invalidParams.Len() > 0 {
  56351. return invalidParams
  56352. }
  56353. return nil
  56354. }
  56355. // SetDryRun sets the DryRun field's value.
  56356. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetDryRun(v bool) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  56357. s.DryRun = &v
  56358. return s
  56359. }
  56360. // SetGroupId sets the GroupId field's value.
  56361. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetGroupId(v string) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  56362. s.GroupId = &v
  56363. return s
  56364. }
  56365. // SetGroupName sets the GroupName field's value.
  56366. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetGroupName(v string) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  56367. s.GroupName = &v
  56368. return s
  56369. }
  56370. // SetIpPermissions sets the IpPermissions field's value.
  56371. func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetIpPermissions(v []*IpPermission) *UpdateSecurityGroupRuleDescriptionsEgressInput {
  56372. s.IpPermissions = v
  56373. return s
  56374. }
  56375. // Contains the output of UpdateSecurityGroupRuleDescriptionsEgress.
  56376. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsEgressResult
  56377. type UpdateSecurityGroupRuleDescriptionsEgressOutput struct {
  56378. _ struct{} `type:"structure"`
  56379. // Returns true if the request succeeds; otherwise, returns an error.
  56380. Return *bool `locationName:"return" type:"boolean"`
  56381. }
  56382. // String returns the string representation
  56383. func (s UpdateSecurityGroupRuleDescriptionsEgressOutput) String() string {
  56384. return awsutil.Prettify(s)
  56385. }
  56386. // GoString returns the string representation
  56387. func (s UpdateSecurityGroupRuleDescriptionsEgressOutput) GoString() string {
  56388. return s.String()
  56389. }
  56390. // SetReturn sets the Return field's value.
  56391. func (s *UpdateSecurityGroupRuleDescriptionsEgressOutput) SetReturn(v bool) *UpdateSecurityGroupRuleDescriptionsEgressOutput {
  56392. s.Return = &v
  56393. return s
  56394. }
  56395. // Contains the parameters for UpdateSecurityGroupRuleDescriptionsIngress.
  56396. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngressRequest
  56397. type UpdateSecurityGroupRuleDescriptionsIngressInput struct {
  56398. _ struct{} `type:"structure"`
  56399. // Checks whether you have the required permissions for the action, without
  56400. // actually making the request, and provides an error response. If you have
  56401. // the required permissions, the error response is DryRunOperation. Otherwise,
  56402. // it is UnauthorizedOperation.
  56403. DryRun *bool `type:"boolean"`
  56404. // The ID of the security group. You must specify either the security group
  56405. // ID or the security group name in the request. For security groups in a nondefault
  56406. // VPC, you must specify the security group ID.
  56407. GroupId *string `type:"string"`
  56408. // [EC2-Classic, default VPC] The name of the security group. You must specify
  56409. // either the security group ID or the security group name in the request.
  56410. GroupName *string `type:"string"`
  56411. // The IP permissions for the security group rule.
  56412. //
  56413. // IpPermissions is a required field
  56414. IpPermissions []*IpPermission `locationNameList:"item" type:"list" required:"true"`
  56415. }
  56416. // String returns the string representation
  56417. func (s UpdateSecurityGroupRuleDescriptionsIngressInput) String() string {
  56418. return awsutil.Prettify(s)
  56419. }
  56420. // GoString returns the string representation
  56421. func (s UpdateSecurityGroupRuleDescriptionsIngressInput) GoString() string {
  56422. return s.String()
  56423. }
  56424. // Validate inspects the fields of the type to determine if they are valid.
  56425. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) Validate() error {
  56426. invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityGroupRuleDescriptionsIngressInput"}
  56427. if s.IpPermissions == nil {
  56428. invalidParams.Add(request.NewErrParamRequired("IpPermissions"))
  56429. }
  56430. if invalidParams.Len() > 0 {
  56431. return invalidParams
  56432. }
  56433. return nil
  56434. }
  56435. // SetDryRun sets the DryRun field's value.
  56436. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetDryRun(v bool) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  56437. s.DryRun = &v
  56438. return s
  56439. }
  56440. // SetGroupId sets the GroupId field's value.
  56441. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetGroupId(v string) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  56442. s.GroupId = &v
  56443. return s
  56444. }
  56445. // SetGroupName sets the GroupName field's value.
  56446. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetGroupName(v string) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  56447. s.GroupName = &v
  56448. return s
  56449. }
  56450. // SetIpPermissions sets the IpPermissions field's value.
  56451. func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetIpPermissions(v []*IpPermission) *UpdateSecurityGroupRuleDescriptionsIngressInput {
  56452. s.IpPermissions = v
  56453. return s
  56454. }
  56455. // Contains the output of UpdateSecurityGroupRuleDescriptionsIngress.
  56456. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UpdateSecurityGroupRuleDescriptionsIngressResult
  56457. type UpdateSecurityGroupRuleDescriptionsIngressOutput struct {
  56458. _ struct{} `type:"structure"`
  56459. // Returns true if the request succeeds; otherwise, returns an error.
  56460. Return *bool `locationName:"return" type:"boolean"`
  56461. }
  56462. // String returns the string representation
  56463. func (s UpdateSecurityGroupRuleDescriptionsIngressOutput) String() string {
  56464. return awsutil.Prettify(s)
  56465. }
  56466. // GoString returns the string representation
  56467. func (s UpdateSecurityGroupRuleDescriptionsIngressOutput) GoString() string {
  56468. return s.String()
  56469. }
  56470. // SetReturn sets the Return field's value.
  56471. func (s *UpdateSecurityGroupRuleDescriptionsIngressOutput) SetReturn(v bool) *UpdateSecurityGroupRuleDescriptionsIngressOutput {
  56472. s.Return = &v
  56473. return s
  56474. }
  56475. // Describes the S3 bucket for the disk image.
  56476. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserBucket
  56477. type UserBucket struct {
  56478. _ struct{} `type:"structure"`
  56479. // The name of the S3 bucket where the disk image is located.
  56480. S3Bucket *string `type:"string"`
  56481. // The file name of the disk image.
  56482. S3Key *string `type:"string"`
  56483. }
  56484. // String returns the string representation
  56485. func (s UserBucket) String() string {
  56486. return awsutil.Prettify(s)
  56487. }
  56488. // GoString returns the string representation
  56489. func (s UserBucket) GoString() string {
  56490. return s.String()
  56491. }
  56492. // SetS3Bucket sets the S3Bucket field's value.
  56493. func (s *UserBucket) SetS3Bucket(v string) *UserBucket {
  56494. s.S3Bucket = &v
  56495. return s
  56496. }
  56497. // SetS3Key sets the S3Key field's value.
  56498. func (s *UserBucket) SetS3Key(v string) *UserBucket {
  56499. s.S3Key = &v
  56500. return s
  56501. }
  56502. // Describes the S3 bucket for the disk image.
  56503. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserBucketDetails
  56504. type UserBucketDetails struct {
  56505. _ struct{} `type:"structure"`
  56506. // The S3 bucket from which the disk image was created.
  56507. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  56508. // The file name of the disk image.
  56509. S3Key *string `locationName:"s3Key" type:"string"`
  56510. }
  56511. // String returns the string representation
  56512. func (s UserBucketDetails) String() string {
  56513. return awsutil.Prettify(s)
  56514. }
  56515. // GoString returns the string representation
  56516. func (s UserBucketDetails) GoString() string {
  56517. return s.String()
  56518. }
  56519. // SetS3Bucket sets the S3Bucket field's value.
  56520. func (s *UserBucketDetails) SetS3Bucket(v string) *UserBucketDetails {
  56521. s.S3Bucket = &v
  56522. return s
  56523. }
  56524. // SetS3Key sets the S3Key field's value.
  56525. func (s *UserBucketDetails) SetS3Key(v string) *UserBucketDetails {
  56526. s.S3Key = &v
  56527. return s
  56528. }
  56529. // Describes the user data for an instance.
  56530. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserData
  56531. type UserData struct {
  56532. _ struct{} `type:"structure"`
  56533. // The user data. If you are using an AWS SDK or command line tool, Base64-encoding
  56534. // is performed for you, and you can load the text from a file. Otherwise, you
  56535. // must provide Base64-encoded text.
  56536. Data *string `locationName:"data" type:"string"`
  56537. }
  56538. // String returns the string representation
  56539. func (s UserData) String() string {
  56540. return awsutil.Prettify(s)
  56541. }
  56542. // GoString returns the string representation
  56543. func (s UserData) GoString() string {
  56544. return s.String()
  56545. }
  56546. // SetData sets the Data field's value.
  56547. func (s *UserData) SetData(v string) *UserData {
  56548. s.Data = &v
  56549. return s
  56550. }
  56551. // Describes a security group and AWS account ID pair.
  56552. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/UserIdGroupPair
  56553. type UserIdGroupPair struct {
  56554. _ struct{} `type:"structure"`
  56555. // A description for the security group rule that references this user ID group
  56556. // pair.
  56557. //
  56558. // Constraints: Up to 255 characters in length. Allowed characters are a-z,
  56559. // A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
  56560. Description *string `locationName:"description" type:"string"`
  56561. // The ID of the security group.
  56562. GroupId *string `locationName:"groupId" type:"string"`
  56563. // The name of the security group. In a request, use this parameter for a security
  56564. // group in EC2-Classic or a default VPC only. For a security group in a nondefault
  56565. // VPC, use the security group ID.
  56566. //
  56567. // For a referenced security group in another VPC, this value is not returned
  56568. // if the referenced security group is deleted.
  56569. GroupName *string `locationName:"groupName" type:"string"`
  56570. // The status of a VPC peering connection, if applicable.
  56571. PeeringStatus *string `locationName:"peeringStatus" type:"string"`
  56572. // The ID of an AWS account.
  56573. //
  56574. // For a referenced security group in another VPC, the account ID of the referenced
  56575. // security group is returned in the response. If the referenced security group
  56576. // is deleted, this value is not returned.
  56577. //
  56578. // [EC2-Classic] Required when adding or removing rules that reference a security
  56579. // group in another AWS account.
  56580. UserId *string `locationName:"userId" type:"string"`
  56581. // The ID of the VPC for the referenced security group, if applicable.
  56582. VpcId *string `locationName:"vpcId" type:"string"`
  56583. // The ID of the VPC peering connection, if applicable.
  56584. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  56585. }
  56586. // String returns the string representation
  56587. func (s UserIdGroupPair) String() string {
  56588. return awsutil.Prettify(s)
  56589. }
  56590. // GoString returns the string representation
  56591. func (s UserIdGroupPair) GoString() string {
  56592. return s.String()
  56593. }
  56594. // SetDescription sets the Description field's value.
  56595. func (s *UserIdGroupPair) SetDescription(v string) *UserIdGroupPair {
  56596. s.Description = &v
  56597. return s
  56598. }
  56599. // SetGroupId sets the GroupId field's value.
  56600. func (s *UserIdGroupPair) SetGroupId(v string) *UserIdGroupPair {
  56601. s.GroupId = &v
  56602. return s
  56603. }
  56604. // SetGroupName sets the GroupName field's value.
  56605. func (s *UserIdGroupPair) SetGroupName(v string) *UserIdGroupPair {
  56606. s.GroupName = &v
  56607. return s
  56608. }
  56609. // SetPeeringStatus sets the PeeringStatus field's value.
  56610. func (s *UserIdGroupPair) SetPeeringStatus(v string) *UserIdGroupPair {
  56611. s.PeeringStatus = &v
  56612. return s
  56613. }
  56614. // SetUserId sets the UserId field's value.
  56615. func (s *UserIdGroupPair) SetUserId(v string) *UserIdGroupPair {
  56616. s.UserId = &v
  56617. return s
  56618. }
  56619. // SetVpcId sets the VpcId field's value.
  56620. func (s *UserIdGroupPair) SetVpcId(v string) *UserIdGroupPair {
  56621. s.VpcId = &v
  56622. return s
  56623. }
  56624. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  56625. func (s *UserIdGroupPair) SetVpcPeeringConnectionId(v string) *UserIdGroupPair {
  56626. s.VpcPeeringConnectionId = &v
  56627. return s
  56628. }
  56629. // Describes telemetry for a VPN tunnel.
  56630. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VgwTelemetry
  56631. type VgwTelemetry struct {
  56632. _ struct{} `type:"structure"`
  56633. // The number of accepted routes.
  56634. AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"`
  56635. // The date and time of the last change in status.
  56636. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"iso8601"`
  56637. // The Internet-routable IP address of the virtual private gateway's outside
  56638. // interface.
  56639. OutsideIpAddress *string `locationName:"outsideIpAddress" type:"string"`
  56640. // The status of the VPN tunnel.
  56641. Status *string `locationName:"status" type:"string" enum:"TelemetryStatus"`
  56642. // If an error occurs, a description of the error.
  56643. StatusMessage *string `locationName:"statusMessage" type:"string"`
  56644. }
  56645. // String returns the string representation
  56646. func (s VgwTelemetry) String() string {
  56647. return awsutil.Prettify(s)
  56648. }
  56649. // GoString returns the string representation
  56650. func (s VgwTelemetry) GoString() string {
  56651. return s.String()
  56652. }
  56653. // SetAcceptedRouteCount sets the AcceptedRouteCount field's value.
  56654. func (s *VgwTelemetry) SetAcceptedRouteCount(v int64) *VgwTelemetry {
  56655. s.AcceptedRouteCount = &v
  56656. return s
  56657. }
  56658. // SetLastStatusChange sets the LastStatusChange field's value.
  56659. func (s *VgwTelemetry) SetLastStatusChange(v time.Time) *VgwTelemetry {
  56660. s.LastStatusChange = &v
  56661. return s
  56662. }
  56663. // SetOutsideIpAddress sets the OutsideIpAddress field's value.
  56664. func (s *VgwTelemetry) SetOutsideIpAddress(v string) *VgwTelemetry {
  56665. s.OutsideIpAddress = &v
  56666. return s
  56667. }
  56668. // SetStatus sets the Status field's value.
  56669. func (s *VgwTelemetry) SetStatus(v string) *VgwTelemetry {
  56670. s.Status = &v
  56671. return s
  56672. }
  56673. // SetStatusMessage sets the StatusMessage field's value.
  56674. func (s *VgwTelemetry) SetStatusMessage(v string) *VgwTelemetry {
  56675. s.StatusMessage = &v
  56676. return s
  56677. }
  56678. // Describes a volume.
  56679. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Volume
  56680. type Volume struct {
  56681. _ struct{} `type:"structure"`
  56682. // Information about the volume attachments.
  56683. Attachments []*VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  56684. // The Availability Zone for the volume.
  56685. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  56686. // The time stamp when volume creation was initiated.
  56687. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  56688. // Indicates whether the volume will be encrypted.
  56689. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  56690. // The number of I/O operations per second (IOPS) that the volume supports.
  56691. // For Provisioned IOPS SSD volumes, this represents the number of IOPS that
  56692. // are provisioned for the volume. For General Purpose SSD volumes, this represents
  56693. // the baseline performance of the volume and the rate at which the volume accumulates
  56694. // I/O credits for bursting. For more information on General Purpose SSD baseline
  56695. // performance, I/O credits, and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  56696. // in the Amazon Elastic Compute Cloud User Guide.
  56697. //
  56698. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  56699. // gp2 volumes.
  56700. //
  56701. // Condition: This parameter is required for requests to create io1 volumes;
  56702. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  56703. Iops *int64 `locationName:"iops" type:"integer"`
  56704. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  56705. // key (CMK) that was used to protect the volume encryption key for the volume.
  56706. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  56707. // The size of the volume, in GiBs.
  56708. Size *int64 `locationName:"size" type:"integer"`
  56709. // The snapshot from which the volume was created, if applicable.
  56710. SnapshotId *string `locationName:"snapshotId" type:"string"`
  56711. // The volume state.
  56712. State *string `locationName:"status" type:"string" enum:"VolumeState"`
  56713. // Any tags assigned to the volume.
  56714. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  56715. // The ID of the volume.
  56716. VolumeId *string `locationName:"volumeId" type:"string"`
  56717. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  56718. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  56719. // for Magnetic volumes.
  56720. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  56721. }
  56722. // String returns the string representation
  56723. func (s Volume) String() string {
  56724. return awsutil.Prettify(s)
  56725. }
  56726. // GoString returns the string representation
  56727. func (s Volume) GoString() string {
  56728. return s.String()
  56729. }
  56730. // SetAttachments sets the Attachments field's value.
  56731. func (s *Volume) SetAttachments(v []*VolumeAttachment) *Volume {
  56732. s.Attachments = v
  56733. return s
  56734. }
  56735. // SetAvailabilityZone sets the AvailabilityZone field's value.
  56736. func (s *Volume) SetAvailabilityZone(v string) *Volume {
  56737. s.AvailabilityZone = &v
  56738. return s
  56739. }
  56740. // SetCreateTime sets the CreateTime field's value.
  56741. func (s *Volume) SetCreateTime(v time.Time) *Volume {
  56742. s.CreateTime = &v
  56743. return s
  56744. }
  56745. // SetEncrypted sets the Encrypted field's value.
  56746. func (s *Volume) SetEncrypted(v bool) *Volume {
  56747. s.Encrypted = &v
  56748. return s
  56749. }
  56750. // SetIops sets the Iops field's value.
  56751. func (s *Volume) SetIops(v int64) *Volume {
  56752. s.Iops = &v
  56753. return s
  56754. }
  56755. // SetKmsKeyId sets the KmsKeyId field's value.
  56756. func (s *Volume) SetKmsKeyId(v string) *Volume {
  56757. s.KmsKeyId = &v
  56758. return s
  56759. }
  56760. // SetSize sets the Size field's value.
  56761. func (s *Volume) SetSize(v int64) *Volume {
  56762. s.Size = &v
  56763. return s
  56764. }
  56765. // SetSnapshotId sets the SnapshotId field's value.
  56766. func (s *Volume) SetSnapshotId(v string) *Volume {
  56767. s.SnapshotId = &v
  56768. return s
  56769. }
  56770. // SetState sets the State field's value.
  56771. func (s *Volume) SetState(v string) *Volume {
  56772. s.State = &v
  56773. return s
  56774. }
  56775. // SetTags sets the Tags field's value.
  56776. func (s *Volume) SetTags(v []*Tag) *Volume {
  56777. s.Tags = v
  56778. return s
  56779. }
  56780. // SetVolumeId sets the VolumeId field's value.
  56781. func (s *Volume) SetVolumeId(v string) *Volume {
  56782. s.VolumeId = &v
  56783. return s
  56784. }
  56785. // SetVolumeType sets the VolumeType field's value.
  56786. func (s *Volume) SetVolumeType(v string) *Volume {
  56787. s.VolumeType = &v
  56788. return s
  56789. }
  56790. // Describes volume attachment details.
  56791. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeAttachment
  56792. type VolumeAttachment struct {
  56793. _ struct{} `type:"structure"`
  56794. // The time stamp when the attachment initiated.
  56795. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  56796. // Indicates whether the EBS volume is deleted on instance termination.
  56797. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  56798. // The device name.
  56799. Device *string `locationName:"device" type:"string"`
  56800. // The ID of the instance.
  56801. InstanceId *string `locationName:"instanceId" type:"string"`
  56802. // The attachment state of the volume.
  56803. State *string `locationName:"status" type:"string" enum:"VolumeAttachmentState"`
  56804. // The ID of the volume.
  56805. VolumeId *string `locationName:"volumeId" type:"string"`
  56806. }
  56807. // String returns the string representation
  56808. func (s VolumeAttachment) String() string {
  56809. return awsutil.Prettify(s)
  56810. }
  56811. // GoString returns the string representation
  56812. func (s VolumeAttachment) GoString() string {
  56813. return s.String()
  56814. }
  56815. // SetAttachTime sets the AttachTime field's value.
  56816. func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment {
  56817. s.AttachTime = &v
  56818. return s
  56819. }
  56820. // SetDeleteOnTermination sets the DeleteOnTermination field's value.
  56821. func (s *VolumeAttachment) SetDeleteOnTermination(v bool) *VolumeAttachment {
  56822. s.DeleteOnTermination = &v
  56823. return s
  56824. }
  56825. // SetDevice sets the Device field's value.
  56826. func (s *VolumeAttachment) SetDevice(v string) *VolumeAttachment {
  56827. s.Device = &v
  56828. return s
  56829. }
  56830. // SetInstanceId sets the InstanceId field's value.
  56831. func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment {
  56832. s.InstanceId = &v
  56833. return s
  56834. }
  56835. // SetState sets the State field's value.
  56836. func (s *VolumeAttachment) SetState(v string) *VolumeAttachment {
  56837. s.State = &v
  56838. return s
  56839. }
  56840. // SetVolumeId sets the VolumeId field's value.
  56841. func (s *VolumeAttachment) SetVolumeId(v string) *VolumeAttachment {
  56842. s.VolumeId = &v
  56843. return s
  56844. }
  56845. // Describes an EBS volume.
  56846. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeDetail
  56847. type VolumeDetail struct {
  56848. _ struct{} `type:"structure"`
  56849. // The size of the volume, in GiB.
  56850. //
  56851. // Size is a required field
  56852. Size *int64 `locationName:"size" type:"long" required:"true"`
  56853. }
  56854. // String returns the string representation
  56855. func (s VolumeDetail) String() string {
  56856. return awsutil.Prettify(s)
  56857. }
  56858. // GoString returns the string representation
  56859. func (s VolumeDetail) GoString() string {
  56860. return s.String()
  56861. }
  56862. // Validate inspects the fields of the type to determine if they are valid.
  56863. func (s *VolumeDetail) Validate() error {
  56864. invalidParams := request.ErrInvalidParams{Context: "VolumeDetail"}
  56865. if s.Size == nil {
  56866. invalidParams.Add(request.NewErrParamRequired("Size"))
  56867. }
  56868. if invalidParams.Len() > 0 {
  56869. return invalidParams
  56870. }
  56871. return nil
  56872. }
  56873. // SetSize sets the Size field's value.
  56874. func (s *VolumeDetail) SetSize(v int64) *VolumeDetail {
  56875. s.Size = &v
  56876. return s
  56877. }
  56878. // Describes the modification status of an EBS volume.
  56879. //
  56880. // If the volume has never been modified, some element values will be null.
  56881. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeModification
  56882. type VolumeModification struct {
  56883. _ struct{} `type:"structure"`
  56884. // Modification completion or failure time.
  56885. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  56886. // Current state of modification. Modification state is null for unmodified
  56887. // volumes.
  56888. ModificationState *string `locationName:"modificationState" type:"string" enum:"VolumeModificationState"`
  56889. // Original IOPS rate of the volume being modified.
  56890. OriginalIops *int64 `locationName:"originalIops" type:"integer"`
  56891. // Original size of the volume being modified.
  56892. OriginalSize *int64 `locationName:"originalSize" type:"integer"`
  56893. // Original EBS volume type of the volume being modified.
  56894. OriginalVolumeType *string `locationName:"originalVolumeType" type:"string" enum:"VolumeType"`
  56895. // Modification progress from 0 to 100%.
  56896. Progress *int64 `locationName:"progress" type:"long"`
  56897. // Modification start time
  56898. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  56899. // Generic status message on modification progress or failure.
  56900. StatusMessage *string `locationName:"statusMessage" type:"string"`
  56901. // Target IOPS rate of the volume being modified.
  56902. TargetIops *int64 `locationName:"targetIops" type:"integer"`
  56903. // Target size of the volume being modified.
  56904. TargetSize *int64 `locationName:"targetSize" type:"integer"`
  56905. // Target EBS volume type of the volume being modified.
  56906. TargetVolumeType *string `locationName:"targetVolumeType" type:"string" enum:"VolumeType"`
  56907. // ID of the volume being modified.
  56908. VolumeId *string `locationName:"volumeId" type:"string"`
  56909. }
  56910. // String returns the string representation
  56911. func (s VolumeModification) String() string {
  56912. return awsutil.Prettify(s)
  56913. }
  56914. // GoString returns the string representation
  56915. func (s VolumeModification) GoString() string {
  56916. return s.String()
  56917. }
  56918. // SetEndTime sets the EndTime field's value.
  56919. func (s *VolumeModification) SetEndTime(v time.Time) *VolumeModification {
  56920. s.EndTime = &v
  56921. return s
  56922. }
  56923. // SetModificationState sets the ModificationState field's value.
  56924. func (s *VolumeModification) SetModificationState(v string) *VolumeModification {
  56925. s.ModificationState = &v
  56926. return s
  56927. }
  56928. // SetOriginalIops sets the OriginalIops field's value.
  56929. func (s *VolumeModification) SetOriginalIops(v int64) *VolumeModification {
  56930. s.OriginalIops = &v
  56931. return s
  56932. }
  56933. // SetOriginalSize sets the OriginalSize field's value.
  56934. func (s *VolumeModification) SetOriginalSize(v int64) *VolumeModification {
  56935. s.OriginalSize = &v
  56936. return s
  56937. }
  56938. // SetOriginalVolumeType sets the OriginalVolumeType field's value.
  56939. func (s *VolumeModification) SetOriginalVolumeType(v string) *VolumeModification {
  56940. s.OriginalVolumeType = &v
  56941. return s
  56942. }
  56943. // SetProgress sets the Progress field's value.
  56944. func (s *VolumeModification) SetProgress(v int64) *VolumeModification {
  56945. s.Progress = &v
  56946. return s
  56947. }
  56948. // SetStartTime sets the StartTime field's value.
  56949. func (s *VolumeModification) SetStartTime(v time.Time) *VolumeModification {
  56950. s.StartTime = &v
  56951. return s
  56952. }
  56953. // SetStatusMessage sets the StatusMessage field's value.
  56954. func (s *VolumeModification) SetStatusMessage(v string) *VolumeModification {
  56955. s.StatusMessage = &v
  56956. return s
  56957. }
  56958. // SetTargetIops sets the TargetIops field's value.
  56959. func (s *VolumeModification) SetTargetIops(v int64) *VolumeModification {
  56960. s.TargetIops = &v
  56961. return s
  56962. }
  56963. // SetTargetSize sets the TargetSize field's value.
  56964. func (s *VolumeModification) SetTargetSize(v int64) *VolumeModification {
  56965. s.TargetSize = &v
  56966. return s
  56967. }
  56968. // SetTargetVolumeType sets the TargetVolumeType field's value.
  56969. func (s *VolumeModification) SetTargetVolumeType(v string) *VolumeModification {
  56970. s.TargetVolumeType = &v
  56971. return s
  56972. }
  56973. // SetVolumeId sets the VolumeId field's value.
  56974. func (s *VolumeModification) SetVolumeId(v string) *VolumeModification {
  56975. s.VolumeId = &v
  56976. return s
  56977. }
  56978. // Describes a volume status operation code.
  56979. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusAction
  56980. type VolumeStatusAction struct {
  56981. _ struct{} `type:"structure"`
  56982. // The code identifying the operation, for example, enable-volume-io.
  56983. Code *string `locationName:"code" type:"string"`
  56984. // A description of the operation.
  56985. Description *string `locationName:"description" type:"string"`
  56986. // The ID of the event associated with this operation.
  56987. EventId *string `locationName:"eventId" type:"string"`
  56988. // The event type associated with this operation.
  56989. EventType *string `locationName:"eventType" type:"string"`
  56990. }
  56991. // String returns the string representation
  56992. func (s VolumeStatusAction) String() string {
  56993. return awsutil.Prettify(s)
  56994. }
  56995. // GoString returns the string representation
  56996. func (s VolumeStatusAction) GoString() string {
  56997. return s.String()
  56998. }
  56999. // SetCode sets the Code field's value.
  57000. func (s *VolumeStatusAction) SetCode(v string) *VolumeStatusAction {
  57001. s.Code = &v
  57002. return s
  57003. }
  57004. // SetDescription sets the Description field's value.
  57005. func (s *VolumeStatusAction) SetDescription(v string) *VolumeStatusAction {
  57006. s.Description = &v
  57007. return s
  57008. }
  57009. // SetEventId sets the EventId field's value.
  57010. func (s *VolumeStatusAction) SetEventId(v string) *VolumeStatusAction {
  57011. s.EventId = &v
  57012. return s
  57013. }
  57014. // SetEventType sets the EventType field's value.
  57015. func (s *VolumeStatusAction) SetEventType(v string) *VolumeStatusAction {
  57016. s.EventType = &v
  57017. return s
  57018. }
  57019. // Describes a volume status.
  57020. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusDetails
  57021. type VolumeStatusDetails struct {
  57022. _ struct{} `type:"structure"`
  57023. // The name of the volume status.
  57024. Name *string `locationName:"name" type:"string" enum:"VolumeStatusName"`
  57025. // The intended status of the volume status.
  57026. Status *string `locationName:"status" type:"string"`
  57027. }
  57028. // String returns the string representation
  57029. func (s VolumeStatusDetails) String() string {
  57030. return awsutil.Prettify(s)
  57031. }
  57032. // GoString returns the string representation
  57033. func (s VolumeStatusDetails) GoString() string {
  57034. return s.String()
  57035. }
  57036. // SetName sets the Name field's value.
  57037. func (s *VolumeStatusDetails) SetName(v string) *VolumeStatusDetails {
  57038. s.Name = &v
  57039. return s
  57040. }
  57041. // SetStatus sets the Status field's value.
  57042. func (s *VolumeStatusDetails) SetStatus(v string) *VolumeStatusDetails {
  57043. s.Status = &v
  57044. return s
  57045. }
  57046. // Describes a volume status event.
  57047. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusEvent
  57048. type VolumeStatusEvent struct {
  57049. _ struct{} `type:"structure"`
  57050. // A description of the event.
  57051. Description *string `locationName:"description" type:"string"`
  57052. // The ID of this event.
  57053. EventId *string `locationName:"eventId" type:"string"`
  57054. // The type of this event.
  57055. EventType *string `locationName:"eventType" type:"string"`
  57056. // The latest end time of the event.
  57057. NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
  57058. // The earliest start time of the event.
  57059. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
  57060. }
  57061. // String returns the string representation
  57062. func (s VolumeStatusEvent) String() string {
  57063. return awsutil.Prettify(s)
  57064. }
  57065. // GoString returns the string representation
  57066. func (s VolumeStatusEvent) GoString() string {
  57067. return s.String()
  57068. }
  57069. // SetDescription sets the Description field's value.
  57070. func (s *VolumeStatusEvent) SetDescription(v string) *VolumeStatusEvent {
  57071. s.Description = &v
  57072. return s
  57073. }
  57074. // SetEventId sets the EventId field's value.
  57075. func (s *VolumeStatusEvent) SetEventId(v string) *VolumeStatusEvent {
  57076. s.EventId = &v
  57077. return s
  57078. }
  57079. // SetEventType sets the EventType field's value.
  57080. func (s *VolumeStatusEvent) SetEventType(v string) *VolumeStatusEvent {
  57081. s.EventType = &v
  57082. return s
  57083. }
  57084. // SetNotAfter sets the NotAfter field's value.
  57085. func (s *VolumeStatusEvent) SetNotAfter(v time.Time) *VolumeStatusEvent {
  57086. s.NotAfter = &v
  57087. return s
  57088. }
  57089. // SetNotBefore sets the NotBefore field's value.
  57090. func (s *VolumeStatusEvent) SetNotBefore(v time.Time) *VolumeStatusEvent {
  57091. s.NotBefore = &v
  57092. return s
  57093. }
  57094. // Describes the status of a volume.
  57095. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusInfo
  57096. type VolumeStatusInfo struct {
  57097. _ struct{} `type:"structure"`
  57098. // The details of the volume status.
  57099. Details []*VolumeStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  57100. // The status of the volume.
  57101. Status *string `locationName:"status" type:"string" enum:"VolumeStatusInfoStatus"`
  57102. }
  57103. // String returns the string representation
  57104. func (s VolumeStatusInfo) String() string {
  57105. return awsutil.Prettify(s)
  57106. }
  57107. // GoString returns the string representation
  57108. func (s VolumeStatusInfo) GoString() string {
  57109. return s.String()
  57110. }
  57111. // SetDetails sets the Details field's value.
  57112. func (s *VolumeStatusInfo) SetDetails(v []*VolumeStatusDetails) *VolumeStatusInfo {
  57113. s.Details = v
  57114. return s
  57115. }
  57116. // SetStatus sets the Status field's value.
  57117. func (s *VolumeStatusInfo) SetStatus(v string) *VolumeStatusInfo {
  57118. s.Status = &v
  57119. return s
  57120. }
  57121. // Describes the volume status.
  57122. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusItem
  57123. type VolumeStatusItem struct {
  57124. _ struct{} `type:"structure"`
  57125. // The details of the operation.
  57126. Actions []*VolumeStatusAction `locationName:"actionsSet" locationNameList:"item" type:"list"`
  57127. // The Availability Zone of the volume.
  57128. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  57129. // A list of events associated with the volume.
  57130. Events []*VolumeStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  57131. // The volume ID.
  57132. VolumeId *string `locationName:"volumeId" type:"string"`
  57133. // The volume status.
  57134. VolumeStatus *VolumeStatusInfo `locationName:"volumeStatus" type:"structure"`
  57135. }
  57136. // String returns the string representation
  57137. func (s VolumeStatusItem) String() string {
  57138. return awsutil.Prettify(s)
  57139. }
  57140. // GoString returns the string representation
  57141. func (s VolumeStatusItem) GoString() string {
  57142. return s.String()
  57143. }
  57144. // SetActions sets the Actions field's value.
  57145. func (s *VolumeStatusItem) SetActions(v []*VolumeStatusAction) *VolumeStatusItem {
  57146. s.Actions = v
  57147. return s
  57148. }
  57149. // SetAvailabilityZone sets the AvailabilityZone field's value.
  57150. func (s *VolumeStatusItem) SetAvailabilityZone(v string) *VolumeStatusItem {
  57151. s.AvailabilityZone = &v
  57152. return s
  57153. }
  57154. // SetEvents sets the Events field's value.
  57155. func (s *VolumeStatusItem) SetEvents(v []*VolumeStatusEvent) *VolumeStatusItem {
  57156. s.Events = v
  57157. return s
  57158. }
  57159. // SetVolumeId sets the VolumeId field's value.
  57160. func (s *VolumeStatusItem) SetVolumeId(v string) *VolumeStatusItem {
  57161. s.VolumeId = &v
  57162. return s
  57163. }
  57164. // SetVolumeStatus sets the VolumeStatus field's value.
  57165. func (s *VolumeStatusItem) SetVolumeStatus(v *VolumeStatusInfo) *VolumeStatusItem {
  57166. s.VolumeStatus = v
  57167. return s
  57168. }
  57169. // Describes a VPC.
  57170. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Vpc
  57171. type Vpc struct {
  57172. _ struct{} `type:"structure"`
  57173. // The primary IPv4 CIDR block for the VPC.
  57174. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  57175. // Information about the IPv4 CIDR blocks associated with the VPC.
  57176. CidrBlockAssociationSet []*VpcCidrBlockAssociation `locationName:"cidrBlockAssociationSet" locationNameList:"item" type:"list"`
  57177. // The ID of the set of DHCP options you've associated with the VPC (or default
  57178. // if the default options are associated with the VPC).
  57179. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  57180. // The allowed tenancy of instances launched into the VPC.
  57181. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  57182. // Information about the IPv6 CIDR blocks associated with the VPC.
  57183. Ipv6CidrBlockAssociationSet []*VpcIpv6CidrBlockAssociation `locationName:"ipv6CidrBlockAssociationSet" locationNameList:"item" type:"list"`
  57184. // Indicates whether the VPC is the default VPC.
  57185. IsDefault *bool `locationName:"isDefault" type:"boolean"`
  57186. // The current state of the VPC.
  57187. State *string `locationName:"state" type:"string" enum:"VpcState"`
  57188. // Any tags assigned to the VPC.
  57189. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  57190. // The ID of the VPC.
  57191. VpcId *string `locationName:"vpcId" type:"string"`
  57192. }
  57193. // String returns the string representation
  57194. func (s Vpc) String() string {
  57195. return awsutil.Prettify(s)
  57196. }
  57197. // GoString returns the string representation
  57198. func (s Vpc) GoString() string {
  57199. return s.String()
  57200. }
  57201. // SetCidrBlock sets the CidrBlock field's value.
  57202. func (s *Vpc) SetCidrBlock(v string) *Vpc {
  57203. s.CidrBlock = &v
  57204. return s
  57205. }
  57206. // SetCidrBlockAssociationSet sets the CidrBlockAssociationSet field's value.
  57207. func (s *Vpc) SetCidrBlockAssociationSet(v []*VpcCidrBlockAssociation) *Vpc {
  57208. s.CidrBlockAssociationSet = v
  57209. return s
  57210. }
  57211. // SetDhcpOptionsId sets the DhcpOptionsId field's value.
  57212. func (s *Vpc) SetDhcpOptionsId(v string) *Vpc {
  57213. s.DhcpOptionsId = &v
  57214. return s
  57215. }
  57216. // SetInstanceTenancy sets the InstanceTenancy field's value.
  57217. func (s *Vpc) SetInstanceTenancy(v string) *Vpc {
  57218. s.InstanceTenancy = &v
  57219. return s
  57220. }
  57221. // SetIpv6CidrBlockAssociationSet sets the Ipv6CidrBlockAssociationSet field's value.
  57222. func (s *Vpc) SetIpv6CidrBlockAssociationSet(v []*VpcIpv6CidrBlockAssociation) *Vpc {
  57223. s.Ipv6CidrBlockAssociationSet = v
  57224. return s
  57225. }
  57226. // SetIsDefault sets the IsDefault field's value.
  57227. func (s *Vpc) SetIsDefault(v bool) *Vpc {
  57228. s.IsDefault = &v
  57229. return s
  57230. }
  57231. // SetState sets the State field's value.
  57232. func (s *Vpc) SetState(v string) *Vpc {
  57233. s.State = &v
  57234. return s
  57235. }
  57236. // SetTags sets the Tags field's value.
  57237. func (s *Vpc) SetTags(v []*Tag) *Vpc {
  57238. s.Tags = v
  57239. return s
  57240. }
  57241. // SetVpcId sets the VpcId field's value.
  57242. func (s *Vpc) SetVpcId(v string) *Vpc {
  57243. s.VpcId = &v
  57244. return s
  57245. }
  57246. // Describes an attachment between a virtual private gateway and a VPC.
  57247. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcAttachment
  57248. type VpcAttachment struct {
  57249. _ struct{} `type:"structure"`
  57250. // The current state of the attachment.
  57251. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  57252. // The ID of the VPC.
  57253. VpcId *string `locationName:"vpcId" type:"string"`
  57254. }
  57255. // String returns the string representation
  57256. func (s VpcAttachment) String() string {
  57257. return awsutil.Prettify(s)
  57258. }
  57259. // GoString returns the string representation
  57260. func (s VpcAttachment) GoString() string {
  57261. return s.String()
  57262. }
  57263. // SetState sets the State field's value.
  57264. func (s *VpcAttachment) SetState(v string) *VpcAttachment {
  57265. s.State = &v
  57266. return s
  57267. }
  57268. // SetVpcId sets the VpcId field's value.
  57269. func (s *VpcAttachment) SetVpcId(v string) *VpcAttachment {
  57270. s.VpcId = &v
  57271. return s
  57272. }
  57273. // Describes an IPv4 CIDR block associated with a VPC.
  57274. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcCidrBlockAssociation
  57275. type VpcCidrBlockAssociation struct {
  57276. _ struct{} `type:"structure"`
  57277. // The association ID for the IPv4 CIDR block.
  57278. AssociationId *string `locationName:"associationId" type:"string"`
  57279. // The IPv4 CIDR block.
  57280. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  57281. // Information about the state of the CIDR block.
  57282. CidrBlockState *VpcCidrBlockState `locationName:"cidrBlockState" type:"structure"`
  57283. }
  57284. // String returns the string representation
  57285. func (s VpcCidrBlockAssociation) String() string {
  57286. return awsutil.Prettify(s)
  57287. }
  57288. // GoString returns the string representation
  57289. func (s VpcCidrBlockAssociation) GoString() string {
  57290. return s.String()
  57291. }
  57292. // SetAssociationId sets the AssociationId field's value.
  57293. func (s *VpcCidrBlockAssociation) SetAssociationId(v string) *VpcCidrBlockAssociation {
  57294. s.AssociationId = &v
  57295. return s
  57296. }
  57297. // SetCidrBlock sets the CidrBlock field's value.
  57298. func (s *VpcCidrBlockAssociation) SetCidrBlock(v string) *VpcCidrBlockAssociation {
  57299. s.CidrBlock = &v
  57300. return s
  57301. }
  57302. // SetCidrBlockState sets the CidrBlockState field's value.
  57303. func (s *VpcCidrBlockAssociation) SetCidrBlockState(v *VpcCidrBlockState) *VpcCidrBlockAssociation {
  57304. s.CidrBlockState = v
  57305. return s
  57306. }
  57307. // Describes the state of a CIDR block.
  57308. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcCidrBlockState
  57309. type VpcCidrBlockState struct {
  57310. _ struct{} `type:"structure"`
  57311. // The state of the CIDR block.
  57312. State *string `locationName:"state" type:"string" enum:"VpcCidrBlockStateCode"`
  57313. // A message about the status of the CIDR block, if applicable.
  57314. StatusMessage *string `locationName:"statusMessage" type:"string"`
  57315. }
  57316. // String returns the string representation
  57317. func (s VpcCidrBlockState) String() string {
  57318. return awsutil.Prettify(s)
  57319. }
  57320. // GoString returns the string representation
  57321. func (s VpcCidrBlockState) GoString() string {
  57322. return s.String()
  57323. }
  57324. // SetState sets the State field's value.
  57325. func (s *VpcCidrBlockState) SetState(v string) *VpcCidrBlockState {
  57326. s.State = &v
  57327. return s
  57328. }
  57329. // SetStatusMessage sets the StatusMessage field's value.
  57330. func (s *VpcCidrBlockState) SetStatusMessage(v string) *VpcCidrBlockState {
  57331. s.StatusMessage = &v
  57332. return s
  57333. }
  57334. // Describes whether a VPC is enabled for ClassicLink.
  57335. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcClassicLink
  57336. type VpcClassicLink struct {
  57337. _ struct{} `type:"structure"`
  57338. // Indicates whether the VPC is enabled for ClassicLink.
  57339. ClassicLinkEnabled *bool `locationName:"classicLinkEnabled" type:"boolean"`
  57340. // Any tags assigned to the VPC.
  57341. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  57342. // The ID of the VPC.
  57343. VpcId *string `locationName:"vpcId" type:"string"`
  57344. }
  57345. // String returns the string representation
  57346. func (s VpcClassicLink) String() string {
  57347. return awsutil.Prettify(s)
  57348. }
  57349. // GoString returns the string representation
  57350. func (s VpcClassicLink) GoString() string {
  57351. return s.String()
  57352. }
  57353. // SetClassicLinkEnabled sets the ClassicLinkEnabled field's value.
  57354. func (s *VpcClassicLink) SetClassicLinkEnabled(v bool) *VpcClassicLink {
  57355. s.ClassicLinkEnabled = &v
  57356. return s
  57357. }
  57358. // SetTags sets the Tags field's value.
  57359. func (s *VpcClassicLink) SetTags(v []*Tag) *VpcClassicLink {
  57360. s.Tags = v
  57361. return s
  57362. }
  57363. // SetVpcId sets the VpcId field's value.
  57364. func (s *VpcClassicLink) SetVpcId(v string) *VpcClassicLink {
  57365. s.VpcId = &v
  57366. return s
  57367. }
  57368. // Describes a VPC endpoint.
  57369. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcEndpoint
  57370. type VpcEndpoint struct {
  57371. _ struct{} `type:"structure"`
  57372. // The date and time the VPC endpoint was created.
  57373. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"`
  57374. // (Interface endpoint) The DNS entries for the endpoint.
  57375. DnsEntries []*DnsEntry `locationName:"dnsEntrySet" locationNameList:"item" type:"list"`
  57376. // (Interface endpoint) Information about the security groups associated with
  57377. // the network interface.
  57378. Groups []*SecurityGroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  57379. // (Interface endpoint) One or more network interfaces for the endpoint.
  57380. NetworkInterfaceIds []*string `locationName:"networkInterfaceIdSet" locationNameList:"item" type:"list"`
  57381. // The policy document associated with the endpoint, if applicable.
  57382. PolicyDocument *string `locationName:"policyDocument" type:"string"`
  57383. // (Interface endpoint) Indicates whether the VPC is associated with a private
  57384. // hosted zone.
  57385. PrivateDnsEnabled *bool `locationName:"privateDnsEnabled" type:"boolean"`
  57386. // (Gateway endpoint) One or more route tables associated with the endpoint.
  57387. RouteTableIds []*string `locationName:"routeTableIdSet" locationNameList:"item" type:"list"`
  57388. // The name of the service to which the endpoint is associated.
  57389. ServiceName *string `locationName:"serviceName" type:"string"`
  57390. // The state of the VPC endpoint.
  57391. State *string `locationName:"state" type:"string" enum:"State"`
  57392. // (Interface endpoint) One or more subnets in which the endpoint is located.
  57393. SubnetIds []*string `locationName:"subnetIdSet" locationNameList:"item" type:"list"`
  57394. // The ID of the VPC endpoint.
  57395. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  57396. // The type of endpoint.
  57397. VpcEndpointType *string `locationName:"vpcEndpointType" type:"string" enum:"VpcEndpointType"`
  57398. // The ID of the VPC to which the endpoint is associated.
  57399. VpcId *string `locationName:"vpcId" type:"string"`
  57400. }
  57401. // String returns the string representation
  57402. func (s VpcEndpoint) String() string {
  57403. return awsutil.Prettify(s)
  57404. }
  57405. // GoString returns the string representation
  57406. func (s VpcEndpoint) GoString() string {
  57407. return s.String()
  57408. }
  57409. // SetCreationTimestamp sets the CreationTimestamp field's value.
  57410. func (s *VpcEndpoint) SetCreationTimestamp(v time.Time) *VpcEndpoint {
  57411. s.CreationTimestamp = &v
  57412. return s
  57413. }
  57414. // SetDnsEntries sets the DnsEntries field's value.
  57415. func (s *VpcEndpoint) SetDnsEntries(v []*DnsEntry) *VpcEndpoint {
  57416. s.DnsEntries = v
  57417. return s
  57418. }
  57419. // SetGroups sets the Groups field's value.
  57420. func (s *VpcEndpoint) SetGroups(v []*SecurityGroupIdentifier) *VpcEndpoint {
  57421. s.Groups = v
  57422. return s
  57423. }
  57424. // SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
  57425. func (s *VpcEndpoint) SetNetworkInterfaceIds(v []*string) *VpcEndpoint {
  57426. s.NetworkInterfaceIds = v
  57427. return s
  57428. }
  57429. // SetPolicyDocument sets the PolicyDocument field's value.
  57430. func (s *VpcEndpoint) SetPolicyDocument(v string) *VpcEndpoint {
  57431. s.PolicyDocument = &v
  57432. return s
  57433. }
  57434. // SetPrivateDnsEnabled sets the PrivateDnsEnabled field's value.
  57435. func (s *VpcEndpoint) SetPrivateDnsEnabled(v bool) *VpcEndpoint {
  57436. s.PrivateDnsEnabled = &v
  57437. return s
  57438. }
  57439. // SetRouteTableIds sets the RouteTableIds field's value.
  57440. func (s *VpcEndpoint) SetRouteTableIds(v []*string) *VpcEndpoint {
  57441. s.RouteTableIds = v
  57442. return s
  57443. }
  57444. // SetServiceName sets the ServiceName field's value.
  57445. func (s *VpcEndpoint) SetServiceName(v string) *VpcEndpoint {
  57446. s.ServiceName = &v
  57447. return s
  57448. }
  57449. // SetState sets the State field's value.
  57450. func (s *VpcEndpoint) SetState(v string) *VpcEndpoint {
  57451. s.State = &v
  57452. return s
  57453. }
  57454. // SetSubnetIds sets the SubnetIds field's value.
  57455. func (s *VpcEndpoint) SetSubnetIds(v []*string) *VpcEndpoint {
  57456. s.SubnetIds = v
  57457. return s
  57458. }
  57459. // SetVpcEndpointId sets the VpcEndpointId field's value.
  57460. func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint {
  57461. s.VpcEndpointId = &v
  57462. return s
  57463. }
  57464. // SetVpcEndpointType sets the VpcEndpointType field's value.
  57465. func (s *VpcEndpoint) SetVpcEndpointType(v string) *VpcEndpoint {
  57466. s.VpcEndpointType = &v
  57467. return s
  57468. }
  57469. // SetVpcId sets the VpcId field's value.
  57470. func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint {
  57471. s.VpcId = &v
  57472. return s
  57473. }
  57474. // Describes a VPC endpoint connection to a service.
  57475. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcEndpointConnection
  57476. type VpcEndpointConnection struct {
  57477. _ struct{} `type:"structure"`
  57478. // The date and time the VPC endpoint was created.
  57479. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"`
  57480. // The ID of the service to which the endpoint is connected.
  57481. ServiceId *string `locationName:"serviceId" type:"string"`
  57482. // The ID of the VPC endpoint.
  57483. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  57484. // The AWS account ID of the owner of the VPC endpoint.
  57485. VpcEndpointOwner *string `locationName:"vpcEndpointOwner" type:"string"`
  57486. // The state of the VPC endpoint.
  57487. VpcEndpointState *string `locationName:"vpcEndpointState" type:"string" enum:"State"`
  57488. }
  57489. // String returns the string representation
  57490. func (s VpcEndpointConnection) String() string {
  57491. return awsutil.Prettify(s)
  57492. }
  57493. // GoString returns the string representation
  57494. func (s VpcEndpointConnection) GoString() string {
  57495. return s.String()
  57496. }
  57497. // SetCreationTimestamp sets the CreationTimestamp field's value.
  57498. func (s *VpcEndpointConnection) SetCreationTimestamp(v time.Time) *VpcEndpointConnection {
  57499. s.CreationTimestamp = &v
  57500. return s
  57501. }
  57502. // SetServiceId sets the ServiceId field's value.
  57503. func (s *VpcEndpointConnection) SetServiceId(v string) *VpcEndpointConnection {
  57504. s.ServiceId = &v
  57505. return s
  57506. }
  57507. // SetVpcEndpointId sets the VpcEndpointId field's value.
  57508. func (s *VpcEndpointConnection) SetVpcEndpointId(v string) *VpcEndpointConnection {
  57509. s.VpcEndpointId = &v
  57510. return s
  57511. }
  57512. // SetVpcEndpointOwner sets the VpcEndpointOwner field's value.
  57513. func (s *VpcEndpointConnection) SetVpcEndpointOwner(v string) *VpcEndpointConnection {
  57514. s.VpcEndpointOwner = &v
  57515. return s
  57516. }
  57517. // SetVpcEndpointState sets the VpcEndpointState field's value.
  57518. func (s *VpcEndpointConnection) SetVpcEndpointState(v string) *VpcEndpointConnection {
  57519. s.VpcEndpointState = &v
  57520. return s
  57521. }
  57522. // Describes an IPv6 CIDR block associated with a VPC.
  57523. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcIpv6CidrBlockAssociation
  57524. type VpcIpv6CidrBlockAssociation struct {
  57525. _ struct{} `type:"structure"`
  57526. // The association ID for the IPv6 CIDR block.
  57527. AssociationId *string `locationName:"associationId" type:"string"`
  57528. // The IPv6 CIDR block.
  57529. Ipv6CidrBlock *string `locationName:"ipv6CidrBlock" type:"string"`
  57530. // Information about the state of the CIDR block.
  57531. Ipv6CidrBlockState *VpcCidrBlockState `locationName:"ipv6CidrBlockState" type:"structure"`
  57532. }
  57533. // String returns the string representation
  57534. func (s VpcIpv6CidrBlockAssociation) String() string {
  57535. return awsutil.Prettify(s)
  57536. }
  57537. // GoString returns the string representation
  57538. func (s VpcIpv6CidrBlockAssociation) GoString() string {
  57539. return s.String()
  57540. }
  57541. // SetAssociationId sets the AssociationId field's value.
  57542. func (s *VpcIpv6CidrBlockAssociation) SetAssociationId(v string) *VpcIpv6CidrBlockAssociation {
  57543. s.AssociationId = &v
  57544. return s
  57545. }
  57546. // SetIpv6CidrBlock sets the Ipv6CidrBlock field's value.
  57547. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlock(v string) *VpcIpv6CidrBlockAssociation {
  57548. s.Ipv6CidrBlock = &v
  57549. return s
  57550. }
  57551. // SetIpv6CidrBlockState sets the Ipv6CidrBlockState field's value.
  57552. func (s *VpcIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *VpcCidrBlockState) *VpcIpv6CidrBlockAssociation {
  57553. s.Ipv6CidrBlockState = v
  57554. return s
  57555. }
  57556. // Describes a VPC peering connection.
  57557. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnection
  57558. type VpcPeeringConnection struct {
  57559. _ struct{} `type:"structure"`
  57560. // Information about the accepter VPC. CIDR block information is only returned
  57561. // when describing an active VPC peering connection.
  57562. AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"`
  57563. // The time that an unaccepted VPC peering connection will expire.
  57564. ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp" timestampFormat:"iso8601"`
  57565. // Information about the requester VPC. CIDR block information is only returned
  57566. // when describing an active VPC peering connection.
  57567. RequesterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"requesterVpcInfo" type:"structure"`
  57568. // The status of the VPC peering connection.
  57569. Status *VpcPeeringConnectionStateReason `locationName:"status" type:"structure"`
  57570. // Any tags assigned to the resource.
  57571. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  57572. // The ID of the VPC peering connection.
  57573. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  57574. }
  57575. // String returns the string representation
  57576. func (s VpcPeeringConnection) String() string {
  57577. return awsutil.Prettify(s)
  57578. }
  57579. // GoString returns the string representation
  57580. func (s VpcPeeringConnection) GoString() string {
  57581. return s.String()
  57582. }
  57583. // SetAccepterVpcInfo sets the AccepterVpcInfo field's value.
  57584. func (s *VpcPeeringConnection) SetAccepterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  57585. s.AccepterVpcInfo = v
  57586. return s
  57587. }
  57588. // SetExpirationTime sets the ExpirationTime field's value.
  57589. func (s *VpcPeeringConnection) SetExpirationTime(v time.Time) *VpcPeeringConnection {
  57590. s.ExpirationTime = &v
  57591. return s
  57592. }
  57593. // SetRequesterVpcInfo sets the RequesterVpcInfo field's value.
  57594. func (s *VpcPeeringConnection) SetRequesterVpcInfo(v *VpcPeeringConnectionVpcInfo) *VpcPeeringConnection {
  57595. s.RequesterVpcInfo = v
  57596. return s
  57597. }
  57598. // SetStatus sets the Status field's value.
  57599. func (s *VpcPeeringConnection) SetStatus(v *VpcPeeringConnectionStateReason) *VpcPeeringConnection {
  57600. s.Status = v
  57601. return s
  57602. }
  57603. // SetTags sets the Tags field's value.
  57604. func (s *VpcPeeringConnection) SetTags(v []*Tag) *VpcPeeringConnection {
  57605. s.Tags = v
  57606. return s
  57607. }
  57608. // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value.
  57609. func (s *VpcPeeringConnection) SetVpcPeeringConnectionId(v string) *VpcPeeringConnection {
  57610. s.VpcPeeringConnectionId = &v
  57611. return s
  57612. }
  57613. // Describes the VPC peering connection options.
  57614. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionOptionsDescription
  57615. type VpcPeeringConnectionOptionsDescription struct {
  57616. _ struct{} `type:"structure"`
  57617. // Indicates whether a local VPC can resolve public DNS hostnames to private
  57618. // IP addresses when queried from instances in a peer VPC.
  57619. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  57620. // Indicates whether a local ClassicLink connection can communicate with the
  57621. // peer VPC over the VPC peering connection.
  57622. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  57623. // Indicates whether a local VPC can communicate with a ClassicLink connection
  57624. // in the peer VPC over the VPC peering connection.
  57625. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  57626. }
  57627. // String returns the string representation
  57628. func (s VpcPeeringConnectionOptionsDescription) String() string {
  57629. return awsutil.Prettify(s)
  57630. }
  57631. // GoString returns the string representation
  57632. func (s VpcPeeringConnectionOptionsDescription) GoString() string {
  57633. return s.String()
  57634. }
  57635. // SetAllowDnsResolutionFromRemoteVpc sets the AllowDnsResolutionFromRemoteVpc field's value.
  57636. func (s *VpcPeeringConnectionOptionsDescription) SetAllowDnsResolutionFromRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  57637. s.AllowDnsResolutionFromRemoteVpc = &v
  57638. return s
  57639. }
  57640. // SetAllowEgressFromLocalClassicLinkToRemoteVpc sets the AllowEgressFromLocalClassicLinkToRemoteVpc field's value.
  57641. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalClassicLinkToRemoteVpc(v bool) *VpcPeeringConnectionOptionsDescription {
  57642. s.AllowEgressFromLocalClassicLinkToRemoteVpc = &v
  57643. return s
  57644. }
  57645. // SetAllowEgressFromLocalVpcToRemoteClassicLink sets the AllowEgressFromLocalVpcToRemoteClassicLink field's value.
  57646. func (s *VpcPeeringConnectionOptionsDescription) SetAllowEgressFromLocalVpcToRemoteClassicLink(v bool) *VpcPeeringConnectionOptionsDescription {
  57647. s.AllowEgressFromLocalVpcToRemoteClassicLink = &v
  57648. return s
  57649. }
  57650. // Describes the status of a VPC peering connection.
  57651. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionStateReason
  57652. type VpcPeeringConnectionStateReason struct {
  57653. _ struct{} `type:"structure"`
  57654. // The status of the VPC peering connection.
  57655. Code *string `locationName:"code" type:"string" enum:"VpcPeeringConnectionStateReasonCode"`
  57656. // A message that provides more information about the status, if applicable.
  57657. Message *string `locationName:"message" type:"string"`
  57658. }
  57659. // String returns the string representation
  57660. func (s VpcPeeringConnectionStateReason) String() string {
  57661. return awsutil.Prettify(s)
  57662. }
  57663. // GoString returns the string representation
  57664. func (s VpcPeeringConnectionStateReason) GoString() string {
  57665. return s.String()
  57666. }
  57667. // SetCode sets the Code field's value.
  57668. func (s *VpcPeeringConnectionStateReason) SetCode(v string) *VpcPeeringConnectionStateReason {
  57669. s.Code = &v
  57670. return s
  57671. }
  57672. // SetMessage sets the Message field's value.
  57673. func (s *VpcPeeringConnectionStateReason) SetMessage(v string) *VpcPeeringConnectionStateReason {
  57674. s.Message = &v
  57675. return s
  57676. }
  57677. // Describes a VPC in a VPC peering connection.
  57678. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpcPeeringConnectionVpcInfo
  57679. type VpcPeeringConnectionVpcInfo struct {
  57680. _ struct{} `type:"structure"`
  57681. // The IPv4 CIDR block for the VPC.
  57682. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  57683. // Information about the IPv4 CIDR blocks for the VPC.
  57684. CidrBlockSet []*CidrBlock `locationName:"cidrBlockSet" locationNameList:"item" type:"list"`
  57685. // The IPv6 CIDR block for the VPC.
  57686. Ipv6CidrBlockSet []*Ipv6CidrBlock `locationName:"ipv6CidrBlockSet" locationNameList:"item" type:"list"`
  57687. // The AWS account ID of the VPC owner.
  57688. OwnerId *string `locationName:"ownerId" type:"string"`
  57689. // Information about the VPC peering connection options for the accepter or
  57690. // requester VPC.
  57691. PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"`
  57692. // The region in which the VPC is located.
  57693. Region *string `locationName:"region" type:"string"`
  57694. // The ID of the VPC.
  57695. VpcId *string `locationName:"vpcId" type:"string"`
  57696. }
  57697. // String returns the string representation
  57698. func (s VpcPeeringConnectionVpcInfo) String() string {
  57699. return awsutil.Prettify(s)
  57700. }
  57701. // GoString returns the string representation
  57702. func (s VpcPeeringConnectionVpcInfo) GoString() string {
  57703. return s.String()
  57704. }
  57705. // SetCidrBlock sets the CidrBlock field's value.
  57706. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlock(v string) *VpcPeeringConnectionVpcInfo {
  57707. s.CidrBlock = &v
  57708. return s
  57709. }
  57710. // SetCidrBlockSet sets the CidrBlockSet field's value.
  57711. func (s *VpcPeeringConnectionVpcInfo) SetCidrBlockSet(v []*CidrBlock) *VpcPeeringConnectionVpcInfo {
  57712. s.CidrBlockSet = v
  57713. return s
  57714. }
  57715. // SetIpv6CidrBlockSet sets the Ipv6CidrBlockSet field's value.
  57716. func (s *VpcPeeringConnectionVpcInfo) SetIpv6CidrBlockSet(v []*Ipv6CidrBlock) *VpcPeeringConnectionVpcInfo {
  57717. s.Ipv6CidrBlockSet = v
  57718. return s
  57719. }
  57720. // SetOwnerId sets the OwnerId field's value.
  57721. func (s *VpcPeeringConnectionVpcInfo) SetOwnerId(v string) *VpcPeeringConnectionVpcInfo {
  57722. s.OwnerId = &v
  57723. return s
  57724. }
  57725. // SetPeeringOptions sets the PeeringOptions field's value.
  57726. func (s *VpcPeeringConnectionVpcInfo) SetPeeringOptions(v *VpcPeeringConnectionOptionsDescription) *VpcPeeringConnectionVpcInfo {
  57727. s.PeeringOptions = v
  57728. return s
  57729. }
  57730. // SetRegion sets the Region field's value.
  57731. func (s *VpcPeeringConnectionVpcInfo) SetRegion(v string) *VpcPeeringConnectionVpcInfo {
  57732. s.Region = &v
  57733. return s
  57734. }
  57735. // SetVpcId sets the VpcId field's value.
  57736. func (s *VpcPeeringConnectionVpcInfo) SetVpcId(v string) *VpcPeeringConnectionVpcInfo {
  57737. s.VpcId = &v
  57738. return s
  57739. }
  57740. // Describes a VPN connection.
  57741. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnection
  57742. type VpnConnection struct {
  57743. _ struct{} `type:"structure"`
  57744. // The category of the VPN connection. A value of VPN indicates an AWS VPN connection.
  57745. // A value of VPN-Classic indicates an AWS Classic VPN connection. For more
  57746. // information, see AWS Managed VPN Categories (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html#vpn-categories)
  57747. // in the Amazon Virtual Private Cloud User Guide.
  57748. Category *string `locationName:"category" type:"string"`
  57749. // The configuration information for the VPN connection's customer gateway (in
  57750. // the native XML format). This element is always present in the CreateVpnConnection
  57751. // response; however, it's present in the DescribeVpnConnections response only
  57752. // if the VPN connection is in the pending or available state.
  57753. CustomerGatewayConfiguration *string `locationName:"customerGatewayConfiguration" type:"string"`
  57754. // The ID of the customer gateway at your end of the VPN connection.
  57755. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  57756. // The VPN connection options.
  57757. Options *VpnConnectionOptions `locationName:"options" type:"structure"`
  57758. // The static routes associated with the VPN connection.
  57759. Routes []*VpnStaticRoute `locationName:"routes" locationNameList:"item" type:"list"`
  57760. // The current state of the VPN connection.
  57761. State *string `locationName:"state" type:"string" enum:"VpnState"`
  57762. // Any tags assigned to the VPN connection.
  57763. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  57764. // The type of VPN connection.
  57765. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  57766. // Information about the VPN tunnel.
  57767. VgwTelemetry []*VgwTelemetry `locationName:"vgwTelemetry" locationNameList:"item" type:"list"`
  57768. // The ID of the VPN connection.
  57769. VpnConnectionId *string `locationName:"vpnConnectionId" type:"string"`
  57770. // The ID of the virtual private gateway at the AWS side of the VPN connection.
  57771. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  57772. }
  57773. // String returns the string representation
  57774. func (s VpnConnection) String() string {
  57775. return awsutil.Prettify(s)
  57776. }
  57777. // GoString returns the string representation
  57778. func (s VpnConnection) GoString() string {
  57779. return s.String()
  57780. }
  57781. // SetCategory sets the Category field's value.
  57782. func (s *VpnConnection) SetCategory(v string) *VpnConnection {
  57783. s.Category = &v
  57784. return s
  57785. }
  57786. // SetCustomerGatewayConfiguration sets the CustomerGatewayConfiguration field's value.
  57787. func (s *VpnConnection) SetCustomerGatewayConfiguration(v string) *VpnConnection {
  57788. s.CustomerGatewayConfiguration = &v
  57789. return s
  57790. }
  57791. // SetCustomerGatewayId sets the CustomerGatewayId field's value.
  57792. func (s *VpnConnection) SetCustomerGatewayId(v string) *VpnConnection {
  57793. s.CustomerGatewayId = &v
  57794. return s
  57795. }
  57796. // SetOptions sets the Options field's value.
  57797. func (s *VpnConnection) SetOptions(v *VpnConnectionOptions) *VpnConnection {
  57798. s.Options = v
  57799. return s
  57800. }
  57801. // SetRoutes sets the Routes field's value.
  57802. func (s *VpnConnection) SetRoutes(v []*VpnStaticRoute) *VpnConnection {
  57803. s.Routes = v
  57804. return s
  57805. }
  57806. // SetState sets the State field's value.
  57807. func (s *VpnConnection) SetState(v string) *VpnConnection {
  57808. s.State = &v
  57809. return s
  57810. }
  57811. // SetTags sets the Tags field's value.
  57812. func (s *VpnConnection) SetTags(v []*Tag) *VpnConnection {
  57813. s.Tags = v
  57814. return s
  57815. }
  57816. // SetType sets the Type field's value.
  57817. func (s *VpnConnection) SetType(v string) *VpnConnection {
  57818. s.Type = &v
  57819. return s
  57820. }
  57821. // SetVgwTelemetry sets the VgwTelemetry field's value.
  57822. func (s *VpnConnection) SetVgwTelemetry(v []*VgwTelemetry) *VpnConnection {
  57823. s.VgwTelemetry = v
  57824. return s
  57825. }
  57826. // SetVpnConnectionId sets the VpnConnectionId field's value.
  57827. func (s *VpnConnection) SetVpnConnectionId(v string) *VpnConnection {
  57828. s.VpnConnectionId = &v
  57829. return s
  57830. }
  57831. // SetVpnGatewayId sets the VpnGatewayId field's value.
  57832. func (s *VpnConnection) SetVpnGatewayId(v string) *VpnConnection {
  57833. s.VpnGatewayId = &v
  57834. return s
  57835. }
  57836. // Describes VPN connection options.
  57837. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnectionOptions
  57838. type VpnConnectionOptions struct {
  57839. _ struct{} `type:"structure"`
  57840. // Indicates whether the VPN connection uses static routes only. Static routes
  57841. // must be used for devices that don't support BGP.
  57842. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  57843. }
  57844. // String returns the string representation
  57845. func (s VpnConnectionOptions) String() string {
  57846. return awsutil.Prettify(s)
  57847. }
  57848. // GoString returns the string representation
  57849. func (s VpnConnectionOptions) GoString() string {
  57850. return s.String()
  57851. }
  57852. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  57853. func (s *VpnConnectionOptions) SetStaticRoutesOnly(v bool) *VpnConnectionOptions {
  57854. s.StaticRoutesOnly = &v
  57855. return s
  57856. }
  57857. // Describes VPN connection options.
  57858. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnConnectionOptionsSpecification
  57859. type VpnConnectionOptionsSpecification struct {
  57860. _ struct{} `type:"structure"`
  57861. // Indicate whether the VPN connection uses static routes only. If you are creating
  57862. // a VPN connection for a device that does not support BGP, you must specify
  57863. // true.
  57864. //
  57865. // Default: false
  57866. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  57867. // The tunnel options for the VPN connection.
  57868. TunnelOptions []*VpnTunnelOptionsSpecification `locationNameList:"item" type:"list"`
  57869. }
  57870. // String returns the string representation
  57871. func (s VpnConnectionOptionsSpecification) String() string {
  57872. return awsutil.Prettify(s)
  57873. }
  57874. // GoString returns the string representation
  57875. func (s VpnConnectionOptionsSpecification) GoString() string {
  57876. return s.String()
  57877. }
  57878. // SetStaticRoutesOnly sets the StaticRoutesOnly field's value.
  57879. func (s *VpnConnectionOptionsSpecification) SetStaticRoutesOnly(v bool) *VpnConnectionOptionsSpecification {
  57880. s.StaticRoutesOnly = &v
  57881. return s
  57882. }
  57883. // SetTunnelOptions sets the TunnelOptions field's value.
  57884. func (s *VpnConnectionOptionsSpecification) SetTunnelOptions(v []*VpnTunnelOptionsSpecification) *VpnConnectionOptionsSpecification {
  57885. s.TunnelOptions = v
  57886. return s
  57887. }
  57888. // Describes a virtual private gateway.
  57889. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnGateway
  57890. type VpnGateway struct {
  57891. _ struct{} `type:"structure"`
  57892. // The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
  57893. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"`
  57894. // The Availability Zone where the virtual private gateway was created, if applicable.
  57895. // This field may be empty or not returned.
  57896. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  57897. // The current state of the virtual private gateway.
  57898. State *string `locationName:"state" type:"string" enum:"VpnState"`
  57899. // Any tags assigned to the virtual private gateway.
  57900. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  57901. // The type of VPN connection the virtual private gateway supports.
  57902. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  57903. // Any VPCs attached to the virtual private gateway.
  57904. VpcAttachments []*VpcAttachment `locationName:"attachments" locationNameList:"item" type:"list"`
  57905. // The ID of the virtual private gateway.
  57906. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  57907. }
  57908. // String returns the string representation
  57909. func (s VpnGateway) String() string {
  57910. return awsutil.Prettify(s)
  57911. }
  57912. // GoString returns the string representation
  57913. func (s VpnGateway) GoString() string {
  57914. return s.String()
  57915. }
  57916. // SetAmazonSideAsn sets the AmazonSideAsn field's value.
  57917. func (s *VpnGateway) SetAmazonSideAsn(v int64) *VpnGateway {
  57918. s.AmazonSideAsn = &v
  57919. return s
  57920. }
  57921. // SetAvailabilityZone sets the AvailabilityZone field's value.
  57922. func (s *VpnGateway) SetAvailabilityZone(v string) *VpnGateway {
  57923. s.AvailabilityZone = &v
  57924. return s
  57925. }
  57926. // SetState sets the State field's value.
  57927. func (s *VpnGateway) SetState(v string) *VpnGateway {
  57928. s.State = &v
  57929. return s
  57930. }
  57931. // SetTags sets the Tags field's value.
  57932. func (s *VpnGateway) SetTags(v []*Tag) *VpnGateway {
  57933. s.Tags = v
  57934. return s
  57935. }
  57936. // SetType sets the Type field's value.
  57937. func (s *VpnGateway) SetType(v string) *VpnGateway {
  57938. s.Type = &v
  57939. return s
  57940. }
  57941. // SetVpcAttachments sets the VpcAttachments field's value.
  57942. func (s *VpnGateway) SetVpcAttachments(v []*VpcAttachment) *VpnGateway {
  57943. s.VpcAttachments = v
  57944. return s
  57945. }
  57946. // SetVpnGatewayId sets the VpnGatewayId field's value.
  57947. func (s *VpnGateway) SetVpnGatewayId(v string) *VpnGateway {
  57948. s.VpnGatewayId = &v
  57949. return s
  57950. }
  57951. // Describes a static route for a VPN connection.
  57952. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnStaticRoute
  57953. type VpnStaticRoute struct {
  57954. _ struct{} `type:"structure"`
  57955. // The CIDR block associated with the local subnet of the customer data center.
  57956. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  57957. // Indicates how the routes were provided.
  57958. Source *string `locationName:"source" type:"string" enum:"VpnStaticRouteSource"`
  57959. // The current state of the static route.
  57960. State *string `locationName:"state" type:"string" enum:"VpnState"`
  57961. }
  57962. // String returns the string representation
  57963. func (s VpnStaticRoute) String() string {
  57964. return awsutil.Prettify(s)
  57965. }
  57966. // GoString returns the string representation
  57967. func (s VpnStaticRoute) GoString() string {
  57968. return s.String()
  57969. }
  57970. // SetDestinationCidrBlock sets the DestinationCidrBlock field's value.
  57971. func (s *VpnStaticRoute) SetDestinationCidrBlock(v string) *VpnStaticRoute {
  57972. s.DestinationCidrBlock = &v
  57973. return s
  57974. }
  57975. // SetSource sets the Source field's value.
  57976. func (s *VpnStaticRoute) SetSource(v string) *VpnStaticRoute {
  57977. s.Source = &v
  57978. return s
  57979. }
  57980. // SetState sets the State field's value.
  57981. func (s *VpnStaticRoute) SetState(v string) *VpnStaticRoute {
  57982. s.State = &v
  57983. return s
  57984. }
  57985. // The tunnel options for a VPN connection.
  57986. // See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VpnTunnelOptionsSpecification
  57987. type VpnTunnelOptionsSpecification struct {
  57988. _ struct{} `type:"structure"`
  57989. // The pre-shared key (PSK) to establish initial authentication between the
  57990. // virtual private gateway and customer gateway.
  57991. //
  57992. // Constraints: Allowed characters are alphanumeric characters and ._. Must
  57993. // be between 8 and 64 characters in length and cannot start with zero (0).
  57994. PreSharedKey *string `type:"string"`
  57995. // The range of inside IP addresses for the tunnel. Any specified CIDR blocks
  57996. // must be unique across all VPN connections that use the same virtual private
  57997. // gateway.
  57998. //
  57999. // Constraints: A size /30 CIDR block from the 169.254.0.0/16 range. The following
  58000. // CIDR blocks are reserved and cannot be used:
  58001. //
  58002. // * 169.254.0.0/30
  58003. //
  58004. // * 169.254.1.0/30
  58005. //
  58006. // * 169.254.2.0/30
  58007. //
  58008. // * 169.254.3.0/30
  58009. //
  58010. // * 169.254.4.0/30
  58011. //
  58012. // * 169.254.5.0/30
  58013. //
  58014. // * 169.254.169.252/30
  58015. TunnelInsideCidr *string `type:"string"`
  58016. }
  58017. // String returns the string representation
  58018. func (s VpnTunnelOptionsSpecification) String() string {
  58019. return awsutil.Prettify(s)
  58020. }
  58021. // GoString returns the string representation
  58022. func (s VpnTunnelOptionsSpecification) GoString() string {
  58023. return s.String()
  58024. }
  58025. // SetPreSharedKey sets the PreSharedKey field's value.
  58026. func (s *VpnTunnelOptionsSpecification) SetPreSharedKey(v string) *VpnTunnelOptionsSpecification {
  58027. s.PreSharedKey = &v
  58028. return s
  58029. }
  58030. // SetTunnelInsideCidr sets the TunnelInsideCidr field's value.
  58031. func (s *VpnTunnelOptionsSpecification) SetTunnelInsideCidr(v string) *VpnTunnelOptionsSpecification {
  58032. s.TunnelInsideCidr = &v
  58033. return s
  58034. }
  58035. const (
  58036. // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value
  58037. AccountAttributeNameSupportedPlatforms = "supported-platforms"
  58038. // AccountAttributeNameDefaultVpc is a AccountAttributeName enum value
  58039. AccountAttributeNameDefaultVpc = "default-vpc"
  58040. )
  58041. const (
  58042. // ActivityStatusError is a ActivityStatus enum value
  58043. ActivityStatusError = "error"
  58044. // ActivityStatusPendingFulfillment is a ActivityStatus enum value
  58045. ActivityStatusPendingFulfillment = "pending_fulfillment"
  58046. // ActivityStatusPendingTermination is a ActivityStatus enum value
  58047. ActivityStatusPendingTermination = "pending_termination"
  58048. // ActivityStatusFulfilled is a ActivityStatus enum value
  58049. ActivityStatusFulfilled = "fulfilled"
  58050. )
  58051. const (
  58052. // AffinityDefault is a Affinity enum value
  58053. AffinityDefault = "default"
  58054. // AffinityHost is a Affinity enum value
  58055. AffinityHost = "host"
  58056. )
  58057. const (
  58058. // AllocationStateAvailable is a AllocationState enum value
  58059. AllocationStateAvailable = "available"
  58060. // AllocationStateUnderAssessment is a AllocationState enum value
  58061. AllocationStateUnderAssessment = "under-assessment"
  58062. // AllocationStatePermanentFailure is a AllocationState enum value
  58063. AllocationStatePermanentFailure = "permanent-failure"
  58064. // AllocationStateReleased is a AllocationState enum value
  58065. AllocationStateReleased = "released"
  58066. // AllocationStateReleasedPermanentFailure is a AllocationState enum value
  58067. AllocationStateReleasedPermanentFailure = "released-permanent-failure"
  58068. )
  58069. const (
  58070. // AllocationStrategyLowestPrice is a AllocationStrategy enum value
  58071. AllocationStrategyLowestPrice = "lowestPrice"
  58072. // AllocationStrategyDiversified is a AllocationStrategy enum value
  58073. AllocationStrategyDiversified = "diversified"
  58074. )
  58075. const (
  58076. // ArchitectureValuesI386 is a ArchitectureValues enum value
  58077. ArchitectureValuesI386 = "i386"
  58078. // ArchitectureValuesX8664 is a ArchitectureValues enum value
  58079. ArchitectureValuesX8664 = "x86_64"
  58080. )
  58081. const (
  58082. // AttachmentStatusAttaching is a AttachmentStatus enum value
  58083. AttachmentStatusAttaching = "attaching"
  58084. // AttachmentStatusAttached is a AttachmentStatus enum value
  58085. AttachmentStatusAttached = "attached"
  58086. // AttachmentStatusDetaching is a AttachmentStatus enum value
  58087. AttachmentStatusDetaching = "detaching"
  58088. // AttachmentStatusDetached is a AttachmentStatus enum value
  58089. AttachmentStatusDetached = "detached"
  58090. )
  58091. const (
  58092. // AutoPlacementOn is a AutoPlacement enum value
  58093. AutoPlacementOn = "on"
  58094. // AutoPlacementOff is a AutoPlacement enum value
  58095. AutoPlacementOff = "off"
  58096. )
  58097. const (
  58098. // AvailabilityZoneStateAvailable is a AvailabilityZoneState enum value
  58099. AvailabilityZoneStateAvailable = "available"
  58100. // AvailabilityZoneStateInformation is a AvailabilityZoneState enum value
  58101. AvailabilityZoneStateInformation = "information"
  58102. // AvailabilityZoneStateImpaired is a AvailabilityZoneState enum value
  58103. AvailabilityZoneStateImpaired = "impaired"
  58104. // AvailabilityZoneStateUnavailable is a AvailabilityZoneState enum value
  58105. AvailabilityZoneStateUnavailable = "unavailable"
  58106. )
  58107. const (
  58108. // BatchStateSubmitted is a BatchState enum value
  58109. BatchStateSubmitted = "submitted"
  58110. // BatchStateActive is a BatchState enum value
  58111. BatchStateActive = "active"
  58112. // BatchStateCancelled is a BatchState enum value
  58113. BatchStateCancelled = "cancelled"
  58114. // BatchStateFailed is a BatchState enum value
  58115. BatchStateFailed = "failed"
  58116. // BatchStateCancelledRunning is a BatchState enum value
  58117. BatchStateCancelledRunning = "cancelled_running"
  58118. // BatchStateCancelledTerminating is a BatchState enum value
  58119. BatchStateCancelledTerminating = "cancelled_terminating"
  58120. // BatchStateModifying is a BatchState enum value
  58121. BatchStateModifying = "modifying"
  58122. )
  58123. const (
  58124. // BundleTaskStatePending is a BundleTaskState enum value
  58125. BundleTaskStatePending = "pending"
  58126. // BundleTaskStateWaitingForShutdown is a BundleTaskState enum value
  58127. BundleTaskStateWaitingForShutdown = "waiting-for-shutdown"
  58128. // BundleTaskStateBundling is a BundleTaskState enum value
  58129. BundleTaskStateBundling = "bundling"
  58130. // BundleTaskStateStoring is a BundleTaskState enum value
  58131. BundleTaskStateStoring = "storing"
  58132. // BundleTaskStateCancelling is a BundleTaskState enum value
  58133. BundleTaskStateCancelling = "cancelling"
  58134. // BundleTaskStateComplete is a BundleTaskState enum value
  58135. BundleTaskStateComplete = "complete"
  58136. // BundleTaskStateFailed is a BundleTaskState enum value
  58137. BundleTaskStateFailed = "failed"
  58138. )
  58139. const (
  58140. // CancelBatchErrorCodeFleetRequestIdDoesNotExist is a CancelBatchErrorCode enum value
  58141. CancelBatchErrorCodeFleetRequestIdDoesNotExist = "fleetRequestIdDoesNotExist"
  58142. // CancelBatchErrorCodeFleetRequestIdMalformed is a CancelBatchErrorCode enum value
  58143. CancelBatchErrorCodeFleetRequestIdMalformed = "fleetRequestIdMalformed"
  58144. // CancelBatchErrorCodeFleetRequestNotInCancellableState is a CancelBatchErrorCode enum value
  58145. CancelBatchErrorCodeFleetRequestNotInCancellableState = "fleetRequestNotInCancellableState"
  58146. // CancelBatchErrorCodeUnexpectedError is a CancelBatchErrorCode enum value
  58147. CancelBatchErrorCodeUnexpectedError = "unexpectedError"
  58148. )
  58149. const (
  58150. // CancelSpotInstanceRequestStateActive is a CancelSpotInstanceRequestState enum value
  58151. CancelSpotInstanceRequestStateActive = "active"
  58152. // CancelSpotInstanceRequestStateOpen is a CancelSpotInstanceRequestState enum value
  58153. CancelSpotInstanceRequestStateOpen = "open"
  58154. // CancelSpotInstanceRequestStateClosed is a CancelSpotInstanceRequestState enum value
  58155. CancelSpotInstanceRequestStateClosed = "closed"
  58156. // CancelSpotInstanceRequestStateCancelled is a CancelSpotInstanceRequestState enum value
  58157. CancelSpotInstanceRequestStateCancelled = "cancelled"
  58158. // CancelSpotInstanceRequestStateCompleted is a CancelSpotInstanceRequestState enum value
  58159. CancelSpotInstanceRequestStateCompleted = "completed"
  58160. )
  58161. const (
  58162. // ConnectionNotificationStateEnabled is a ConnectionNotificationState enum value
  58163. ConnectionNotificationStateEnabled = "Enabled"
  58164. // ConnectionNotificationStateDisabled is a ConnectionNotificationState enum value
  58165. ConnectionNotificationStateDisabled = "Disabled"
  58166. )
  58167. const (
  58168. // ConnectionNotificationTypeTopic is a ConnectionNotificationType enum value
  58169. ConnectionNotificationTypeTopic = "Topic"
  58170. )
  58171. const (
  58172. // ContainerFormatOva is a ContainerFormat enum value
  58173. ContainerFormatOva = "ova"
  58174. )
  58175. const (
  58176. // ConversionTaskStateActive is a ConversionTaskState enum value
  58177. ConversionTaskStateActive = "active"
  58178. // ConversionTaskStateCancelling is a ConversionTaskState enum value
  58179. ConversionTaskStateCancelling = "cancelling"
  58180. // ConversionTaskStateCancelled is a ConversionTaskState enum value
  58181. ConversionTaskStateCancelled = "cancelled"
  58182. // ConversionTaskStateCompleted is a ConversionTaskState enum value
  58183. ConversionTaskStateCompleted = "completed"
  58184. )
  58185. const (
  58186. // CurrencyCodeValuesUsd is a CurrencyCodeValues enum value
  58187. CurrencyCodeValuesUsd = "USD"
  58188. )
  58189. const (
  58190. // DatafeedSubscriptionStateActive is a DatafeedSubscriptionState enum value
  58191. DatafeedSubscriptionStateActive = "Active"
  58192. // DatafeedSubscriptionStateInactive is a DatafeedSubscriptionState enum value
  58193. DatafeedSubscriptionStateInactive = "Inactive"
  58194. )
  58195. const (
  58196. // DeviceTypeEbs is a DeviceType enum value
  58197. DeviceTypeEbs = "ebs"
  58198. // DeviceTypeInstanceStore is a DeviceType enum value
  58199. DeviceTypeInstanceStore = "instance-store"
  58200. )
  58201. const (
  58202. // DiskImageFormatVmdk is a DiskImageFormat enum value
  58203. DiskImageFormatVmdk = "VMDK"
  58204. // DiskImageFormatRaw is a DiskImageFormat enum value
  58205. DiskImageFormatRaw = "RAW"
  58206. // DiskImageFormatVhd is a DiskImageFormat enum value
  58207. DiskImageFormatVhd = "VHD"
  58208. )
  58209. const (
  58210. // DomainTypeVpc is a DomainType enum value
  58211. DomainTypeVpc = "vpc"
  58212. // DomainTypeStandard is a DomainType enum value
  58213. DomainTypeStandard = "standard"
  58214. )
  58215. const (
  58216. // ElasticGpuStateAttached is a ElasticGpuState enum value
  58217. ElasticGpuStateAttached = "ATTACHED"
  58218. )
  58219. const (
  58220. // ElasticGpuStatusOk is a ElasticGpuStatus enum value
  58221. ElasticGpuStatusOk = "OK"
  58222. // ElasticGpuStatusImpaired is a ElasticGpuStatus enum value
  58223. ElasticGpuStatusImpaired = "IMPAIRED"
  58224. )
  58225. const (
  58226. // EventCodeInstanceReboot is a EventCode enum value
  58227. EventCodeInstanceReboot = "instance-reboot"
  58228. // EventCodeSystemReboot is a EventCode enum value
  58229. EventCodeSystemReboot = "system-reboot"
  58230. // EventCodeSystemMaintenance is a EventCode enum value
  58231. EventCodeSystemMaintenance = "system-maintenance"
  58232. // EventCodeInstanceRetirement is a EventCode enum value
  58233. EventCodeInstanceRetirement = "instance-retirement"
  58234. // EventCodeInstanceStop is a EventCode enum value
  58235. EventCodeInstanceStop = "instance-stop"
  58236. )
  58237. const (
  58238. // EventTypeInstanceChange is a EventType enum value
  58239. EventTypeInstanceChange = "instanceChange"
  58240. // EventTypeFleetRequestChange is a EventType enum value
  58241. EventTypeFleetRequestChange = "fleetRequestChange"
  58242. // EventTypeError is a EventType enum value
  58243. EventTypeError = "error"
  58244. )
  58245. const (
  58246. // ExcessCapacityTerminationPolicyNoTermination is a ExcessCapacityTerminationPolicy enum value
  58247. ExcessCapacityTerminationPolicyNoTermination = "noTermination"
  58248. // ExcessCapacityTerminationPolicyDefault is a ExcessCapacityTerminationPolicy enum value
  58249. ExcessCapacityTerminationPolicyDefault = "default"
  58250. )
  58251. const (
  58252. // ExportEnvironmentCitrix is a ExportEnvironment enum value
  58253. ExportEnvironmentCitrix = "citrix"
  58254. // ExportEnvironmentVmware is a ExportEnvironment enum value
  58255. ExportEnvironmentVmware = "vmware"
  58256. // ExportEnvironmentMicrosoft is a ExportEnvironment enum value
  58257. ExportEnvironmentMicrosoft = "microsoft"
  58258. )
  58259. const (
  58260. // ExportTaskStateActive is a ExportTaskState enum value
  58261. ExportTaskStateActive = "active"
  58262. // ExportTaskStateCancelling is a ExportTaskState enum value
  58263. ExportTaskStateCancelling = "cancelling"
  58264. // ExportTaskStateCancelled is a ExportTaskState enum value
  58265. ExportTaskStateCancelled = "cancelled"
  58266. // ExportTaskStateCompleted is a ExportTaskState enum value
  58267. ExportTaskStateCompleted = "completed"
  58268. )
  58269. const (
  58270. // FleetTypeRequest is a FleetType enum value
  58271. FleetTypeRequest = "request"
  58272. // FleetTypeMaintain is a FleetType enum value
  58273. FleetTypeMaintain = "maintain"
  58274. )
  58275. const (
  58276. // FlowLogsResourceTypeVpc is a FlowLogsResourceType enum value
  58277. FlowLogsResourceTypeVpc = "VPC"
  58278. // FlowLogsResourceTypeSubnet is a FlowLogsResourceType enum value
  58279. FlowLogsResourceTypeSubnet = "Subnet"
  58280. // FlowLogsResourceTypeNetworkInterface is a FlowLogsResourceType enum value
  58281. FlowLogsResourceTypeNetworkInterface = "NetworkInterface"
  58282. )
  58283. const (
  58284. // FpgaImageAttributeNameDescription is a FpgaImageAttributeName enum value
  58285. FpgaImageAttributeNameDescription = "description"
  58286. // FpgaImageAttributeNameName is a FpgaImageAttributeName enum value
  58287. FpgaImageAttributeNameName = "name"
  58288. // FpgaImageAttributeNameLoadPermission is a FpgaImageAttributeName enum value
  58289. FpgaImageAttributeNameLoadPermission = "loadPermission"
  58290. // FpgaImageAttributeNameProductCodes is a FpgaImageAttributeName enum value
  58291. FpgaImageAttributeNameProductCodes = "productCodes"
  58292. )
  58293. const (
  58294. // FpgaImageStateCodePending is a FpgaImageStateCode enum value
  58295. FpgaImageStateCodePending = "pending"
  58296. // FpgaImageStateCodeFailed is a FpgaImageStateCode enum value
  58297. FpgaImageStateCodeFailed = "failed"
  58298. // FpgaImageStateCodeAvailable is a FpgaImageStateCode enum value
  58299. FpgaImageStateCodeAvailable = "available"
  58300. // FpgaImageStateCodeUnavailable is a FpgaImageStateCode enum value
  58301. FpgaImageStateCodeUnavailable = "unavailable"
  58302. )
  58303. const (
  58304. // GatewayTypeIpsec1 is a GatewayType enum value
  58305. GatewayTypeIpsec1 = "ipsec.1"
  58306. )
  58307. const (
  58308. // HostTenancyDedicated is a HostTenancy enum value
  58309. HostTenancyDedicated = "dedicated"
  58310. // HostTenancyHost is a HostTenancy enum value
  58311. HostTenancyHost = "host"
  58312. )
  58313. const (
  58314. // HypervisorTypeOvm is a HypervisorType enum value
  58315. HypervisorTypeOvm = "ovm"
  58316. // HypervisorTypeXen is a HypervisorType enum value
  58317. HypervisorTypeXen = "xen"
  58318. )
  58319. const (
  58320. // IamInstanceProfileAssociationStateAssociating is a IamInstanceProfileAssociationState enum value
  58321. IamInstanceProfileAssociationStateAssociating = "associating"
  58322. // IamInstanceProfileAssociationStateAssociated is a IamInstanceProfileAssociationState enum value
  58323. IamInstanceProfileAssociationStateAssociated = "associated"
  58324. // IamInstanceProfileAssociationStateDisassociating is a IamInstanceProfileAssociationState enum value
  58325. IamInstanceProfileAssociationStateDisassociating = "disassociating"
  58326. // IamInstanceProfileAssociationStateDisassociated is a IamInstanceProfileAssociationState enum value
  58327. IamInstanceProfileAssociationStateDisassociated = "disassociated"
  58328. )
  58329. const (
  58330. // ImageAttributeNameDescription is a ImageAttributeName enum value
  58331. ImageAttributeNameDescription = "description"
  58332. // ImageAttributeNameKernel is a ImageAttributeName enum value
  58333. ImageAttributeNameKernel = "kernel"
  58334. // ImageAttributeNameRamdisk is a ImageAttributeName enum value
  58335. ImageAttributeNameRamdisk = "ramdisk"
  58336. // ImageAttributeNameLaunchPermission is a ImageAttributeName enum value
  58337. ImageAttributeNameLaunchPermission = "launchPermission"
  58338. // ImageAttributeNameProductCodes is a ImageAttributeName enum value
  58339. ImageAttributeNameProductCodes = "productCodes"
  58340. // ImageAttributeNameBlockDeviceMapping is a ImageAttributeName enum value
  58341. ImageAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  58342. // ImageAttributeNameSriovNetSupport is a ImageAttributeName enum value
  58343. ImageAttributeNameSriovNetSupport = "sriovNetSupport"
  58344. )
  58345. const (
  58346. // ImageStatePending is a ImageState enum value
  58347. ImageStatePending = "pending"
  58348. // ImageStateAvailable is a ImageState enum value
  58349. ImageStateAvailable = "available"
  58350. // ImageStateInvalid is a ImageState enum value
  58351. ImageStateInvalid = "invalid"
  58352. // ImageStateDeregistered is a ImageState enum value
  58353. ImageStateDeregistered = "deregistered"
  58354. // ImageStateTransient is a ImageState enum value
  58355. ImageStateTransient = "transient"
  58356. // ImageStateFailed is a ImageState enum value
  58357. ImageStateFailed = "failed"
  58358. // ImageStateError is a ImageState enum value
  58359. ImageStateError = "error"
  58360. )
  58361. const (
  58362. // ImageTypeValuesMachine is a ImageTypeValues enum value
  58363. ImageTypeValuesMachine = "machine"
  58364. // ImageTypeValuesKernel is a ImageTypeValues enum value
  58365. ImageTypeValuesKernel = "kernel"
  58366. // ImageTypeValuesRamdisk is a ImageTypeValues enum value
  58367. ImageTypeValuesRamdisk = "ramdisk"
  58368. )
  58369. const (
  58370. // InstanceAttributeNameInstanceType is a InstanceAttributeName enum value
  58371. InstanceAttributeNameInstanceType = "instanceType"
  58372. // InstanceAttributeNameKernel is a InstanceAttributeName enum value
  58373. InstanceAttributeNameKernel = "kernel"
  58374. // InstanceAttributeNameRamdisk is a InstanceAttributeName enum value
  58375. InstanceAttributeNameRamdisk = "ramdisk"
  58376. // InstanceAttributeNameUserData is a InstanceAttributeName enum value
  58377. InstanceAttributeNameUserData = "userData"
  58378. // InstanceAttributeNameDisableApiTermination is a InstanceAttributeName enum value
  58379. InstanceAttributeNameDisableApiTermination = "disableApiTermination"
  58380. // InstanceAttributeNameInstanceInitiatedShutdownBehavior is a InstanceAttributeName enum value
  58381. InstanceAttributeNameInstanceInitiatedShutdownBehavior = "instanceInitiatedShutdownBehavior"
  58382. // InstanceAttributeNameRootDeviceName is a InstanceAttributeName enum value
  58383. InstanceAttributeNameRootDeviceName = "rootDeviceName"
  58384. // InstanceAttributeNameBlockDeviceMapping is a InstanceAttributeName enum value
  58385. InstanceAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  58386. // InstanceAttributeNameProductCodes is a InstanceAttributeName enum value
  58387. InstanceAttributeNameProductCodes = "productCodes"
  58388. // InstanceAttributeNameSourceDestCheck is a InstanceAttributeName enum value
  58389. InstanceAttributeNameSourceDestCheck = "sourceDestCheck"
  58390. // InstanceAttributeNameGroupSet is a InstanceAttributeName enum value
  58391. InstanceAttributeNameGroupSet = "groupSet"
  58392. // InstanceAttributeNameEbsOptimized is a InstanceAttributeName enum value
  58393. InstanceAttributeNameEbsOptimized = "ebsOptimized"
  58394. // InstanceAttributeNameSriovNetSupport is a InstanceAttributeName enum value
  58395. InstanceAttributeNameSriovNetSupport = "sriovNetSupport"
  58396. // InstanceAttributeNameEnaSupport is a InstanceAttributeName enum value
  58397. InstanceAttributeNameEnaSupport = "enaSupport"
  58398. )
  58399. const (
  58400. // InstanceHealthStatusHealthy is a InstanceHealthStatus enum value
  58401. InstanceHealthStatusHealthy = "healthy"
  58402. // InstanceHealthStatusUnhealthy is a InstanceHealthStatus enum value
  58403. InstanceHealthStatusUnhealthy = "unhealthy"
  58404. )
  58405. const (
  58406. // InstanceInterruptionBehaviorHibernate is a InstanceInterruptionBehavior enum value
  58407. InstanceInterruptionBehaviorHibernate = "hibernate"
  58408. // InstanceInterruptionBehaviorStop is a InstanceInterruptionBehavior enum value
  58409. InstanceInterruptionBehaviorStop = "stop"
  58410. // InstanceInterruptionBehaviorTerminate is a InstanceInterruptionBehavior enum value
  58411. InstanceInterruptionBehaviorTerminate = "terminate"
  58412. )
  58413. const (
  58414. // InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value
  58415. InstanceLifecycleTypeSpot = "spot"
  58416. // InstanceLifecycleTypeScheduled is a InstanceLifecycleType enum value
  58417. InstanceLifecycleTypeScheduled = "scheduled"
  58418. )
  58419. const (
  58420. // InstanceStateNamePending is a InstanceStateName enum value
  58421. InstanceStateNamePending = "pending"
  58422. // InstanceStateNameRunning is a InstanceStateName enum value
  58423. InstanceStateNameRunning = "running"
  58424. // InstanceStateNameShuttingDown is a InstanceStateName enum value
  58425. InstanceStateNameShuttingDown = "shutting-down"
  58426. // InstanceStateNameTerminated is a InstanceStateName enum value
  58427. InstanceStateNameTerminated = "terminated"
  58428. // InstanceStateNameStopping is a InstanceStateName enum value
  58429. InstanceStateNameStopping = "stopping"
  58430. // InstanceStateNameStopped is a InstanceStateName enum value
  58431. InstanceStateNameStopped = "stopped"
  58432. )
  58433. const (
  58434. // InstanceTypeT1Micro is a InstanceType enum value
  58435. InstanceTypeT1Micro = "t1.micro"
  58436. // InstanceTypeT2Nano is a InstanceType enum value
  58437. InstanceTypeT2Nano = "t2.nano"
  58438. // InstanceTypeT2Micro is a InstanceType enum value
  58439. InstanceTypeT2Micro = "t2.micro"
  58440. // InstanceTypeT2Small is a InstanceType enum value
  58441. InstanceTypeT2Small = "t2.small"
  58442. // InstanceTypeT2Medium is a InstanceType enum value
  58443. InstanceTypeT2Medium = "t2.medium"
  58444. // InstanceTypeT2Large is a InstanceType enum value
  58445. InstanceTypeT2Large = "t2.large"
  58446. // InstanceTypeT2Xlarge is a InstanceType enum value
  58447. InstanceTypeT2Xlarge = "t2.xlarge"
  58448. // InstanceTypeT22xlarge is a InstanceType enum value
  58449. InstanceTypeT22xlarge = "t2.2xlarge"
  58450. // InstanceTypeM1Small is a InstanceType enum value
  58451. InstanceTypeM1Small = "m1.small"
  58452. // InstanceTypeM1Medium is a InstanceType enum value
  58453. InstanceTypeM1Medium = "m1.medium"
  58454. // InstanceTypeM1Large is a InstanceType enum value
  58455. InstanceTypeM1Large = "m1.large"
  58456. // InstanceTypeM1Xlarge is a InstanceType enum value
  58457. InstanceTypeM1Xlarge = "m1.xlarge"
  58458. // InstanceTypeM3Medium is a InstanceType enum value
  58459. InstanceTypeM3Medium = "m3.medium"
  58460. // InstanceTypeM3Large is a InstanceType enum value
  58461. InstanceTypeM3Large = "m3.large"
  58462. // InstanceTypeM3Xlarge is a InstanceType enum value
  58463. InstanceTypeM3Xlarge = "m3.xlarge"
  58464. // InstanceTypeM32xlarge is a InstanceType enum value
  58465. InstanceTypeM32xlarge = "m3.2xlarge"
  58466. // InstanceTypeM4Large is a InstanceType enum value
  58467. InstanceTypeM4Large = "m4.large"
  58468. // InstanceTypeM4Xlarge is a InstanceType enum value
  58469. InstanceTypeM4Xlarge = "m4.xlarge"
  58470. // InstanceTypeM42xlarge is a InstanceType enum value
  58471. InstanceTypeM42xlarge = "m4.2xlarge"
  58472. // InstanceTypeM44xlarge is a InstanceType enum value
  58473. InstanceTypeM44xlarge = "m4.4xlarge"
  58474. // InstanceTypeM410xlarge is a InstanceType enum value
  58475. InstanceTypeM410xlarge = "m4.10xlarge"
  58476. // InstanceTypeM416xlarge is a InstanceType enum value
  58477. InstanceTypeM416xlarge = "m4.16xlarge"
  58478. // InstanceTypeM2Xlarge is a InstanceType enum value
  58479. InstanceTypeM2Xlarge = "m2.xlarge"
  58480. // InstanceTypeM22xlarge is a InstanceType enum value
  58481. InstanceTypeM22xlarge = "m2.2xlarge"
  58482. // InstanceTypeM24xlarge is a InstanceType enum value
  58483. InstanceTypeM24xlarge = "m2.4xlarge"
  58484. // InstanceTypeCr18xlarge is a InstanceType enum value
  58485. InstanceTypeCr18xlarge = "cr1.8xlarge"
  58486. // InstanceTypeR3Large is a InstanceType enum value
  58487. InstanceTypeR3Large = "r3.large"
  58488. // InstanceTypeR3Xlarge is a InstanceType enum value
  58489. InstanceTypeR3Xlarge = "r3.xlarge"
  58490. // InstanceTypeR32xlarge is a InstanceType enum value
  58491. InstanceTypeR32xlarge = "r3.2xlarge"
  58492. // InstanceTypeR34xlarge is a InstanceType enum value
  58493. InstanceTypeR34xlarge = "r3.4xlarge"
  58494. // InstanceTypeR38xlarge is a InstanceType enum value
  58495. InstanceTypeR38xlarge = "r3.8xlarge"
  58496. // InstanceTypeR4Large is a InstanceType enum value
  58497. InstanceTypeR4Large = "r4.large"
  58498. // InstanceTypeR4Xlarge is a InstanceType enum value
  58499. InstanceTypeR4Xlarge = "r4.xlarge"
  58500. // InstanceTypeR42xlarge is a InstanceType enum value
  58501. InstanceTypeR42xlarge = "r4.2xlarge"
  58502. // InstanceTypeR44xlarge is a InstanceType enum value
  58503. InstanceTypeR44xlarge = "r4.4xlarge"
  58504. // InstanceTypeR48xlarge is a InstanceType enum value
  58505. InstanceTypeR48xlarge = "r4.8xlarge"
  58506. // InstanceTypeR416xlarge is a InstanceType enum value
  58507. InstanceTypeR416xlarge = "r4.16xlarge"
  58508. // InstanceTypeX116xlarge is a InstanceType enum value
  58509. InstanceTypeX116xlarge = "x1.16xlarge"
  58510. // InstanceTypeX132xlarge is a InstanceType enum value
  58511. InstanceTypeX132xlarge = "x1.32xlarge"
  58512. // InstanceTypeX1eXlarge is a InstanceType enum value
  58513. InstanceTypeX1eXlarge = "x1e.xlarge"
  58514. // InstanceTypeX1e2xlarge is a InstanceType enum value
  58515. InstanceTypeX1e2xlarge = "x1e.2xlarge"
  58516. // InstanceTypeX1e4xlarge is a InstanceType enum value
  58517. InstanceTypeX1e4xlarge = "x1e.4xlarge"
  58518. // InstanceTypeX1e8xlarge is a InstanceType enum value
  58519. InstanceTypeX1e8xlarge = "x1e.8xlarge"
  58520. // InstanceTypeX1e16xlarge is a InstanceType enum value
  58521. InstanceTypeX1e16xlarge = "x1e.16xlarge"
  58522. // InstanceTypeX1e32xlarge is a InstanceType enum value
  58523. InstanceTypeX1e32xlarge = "x1e.32xlarge"
  58524. // InstanceTypeI2Xlarge is a InstanceType enum value
  58525. InstanceTypeI2Xlarge = "i2.xlarge"
  58526. // InstanceTypeI22xlarge is a InstanceType enum value
  58527. InstanceTypeI22xlarge = "i2.2xlarge"
  58528. // InstanceTypeI24xlarge is a InstanceType enum value
  58529. InstanceTypeI24xlarge = "i2.4xlarge"
  58530. // InstanceTypeI28xlarge is a InstanceType enum value
  58531. InstanceTypeI28xlarge = "i2.8xlarge"
  58532. // InstanceTypeI3Large is a InstanceType enum value
  58533. InstanceTypeI3Large = "i3.large"
  58534. // InstanceTypeI3Xlarge is a InstanceType enum value
  58535. InstanceTypeI3Xlarge = "i3.xlarge"
  58536. // InstanceTypeI32xlarge is a InstanceType enum value
  58537. InstanceTypeI32xlarge = "i3.2xlarge"
  58538. // InstanceTypeI34xlarge is a InstanceType enum value
  58539. InstanceTypeI34xlarge = "i3.4xlarge"
  58540. // InstanceTypeI38xlarge is a InstanceType enum value
  58541. InstanceTypeI38xlarge = "i3.8xlarge"
  58542. // InstanceTypeI316xlarge is a InstanceType enum value
  58543. InstanceTypeI316xlarge = "i3.16xlarge"
  58544. // InstanceTypeHi14xlarge is a InstanceType enum value
  58545. InstanceTypeHi14xlarge = "hi1.4xlarge"
  58546. // InstanceTypeHs18xlarge is a InstanceType enum value
  58547. InstanceTypeHs18xlarge = "hs1.8xlarge"
  58548. // InstanceTypeC1Medium is a InstanceType enum value
  58549. InstanceTypeC1Medium = "c1.medium"
  58550. // InstanceTypeC1Xlarge is a InstanceType enum value
  58551. InstanceTypeC1Xlarge = "c1.xlarge"
  58552. // InstanceTypeC3Large is a InstanceType enum value
  58553. InstanceTypeC3Large = "c3.large"
  58554. // InstanceTypeC3Xlarge is a InstanceType enum value
  58555. InstanceTypeC3Xlarge = "c3.xlarge"
  58556. // InstanceTypeC32xlarge is a InstanceType enum value
  58557. InstanceTypeC32xlarge = "c3.2xlarge"
  58558. // InstanceTypeC34xlarge is a InstanceType enum value
  58559. InstanceTypeC34xlarge = "c3.4xlarge"
  58560. // InstanceTypeC38xlarge is a InstanceType enum value
  58561. InstanceTypeC38xlarge = "c3.8xlarge"
  58562. // InstanceTypeC4Large is a InstanceType enum value
  58563. InstanceTypeC4Large = "c4.large"
  58564. // InstanceTypeC4Xlarge is a InstanceType enum value
  58565. InstanceTypeC4Xlarge = "c4.xlarge"
  58566. // InstanceTypeC42xlarge is a InstanceType enum value
  58567. InstanceTypeC42xlarge = "c4.2xlarge"
  58568. // InstanceTypeC44xlarge is a InstanceType enum value
  58569. InstanceTypeC44xlarge = "c4.4xlarge"
  58570. // InstanceTypeC48xlarge is a InstanceType enum value
  58571. InstanceTypeC48xlarge = "c4.8xlarge"
  58572. // InstanceTypeC5Large is a InstanceType enum value
  58573. InstanceTypeC5Large = "c5.large"
  58574. // InstanceTypeC5Xlarge is a InstanceType enum value
  58575. InstanceTypeC5Xlarge = "c5.xlarge"
  58576. // InstanceTypeC52xlarge is a InstanceType enum value
  58577. InstanceTypeC52xlarge = "c5.2xlarge"
  58578. // InstanceTypeC54xlarge is a InstanceType enum value
  58579. InstanceTypeC54xlarge = "c5.4xlarge"
  58580. // InstanceTypeC59xlarge is a InstanceType enum value
  58581. InstanceTypeC59xlarge = "c5.9xlarge"
  58582. // InstanceTypeC518xlarge is a InstanceType enum value
  58583. InstanceTypeC518xlarge = "c5.18xlarge"
  58584. // InstanceTypeCc14xlarge is a InstanceType enum value
  58585. InstanceTypeCc14xlarge = "cc1.4xlarge"
  58586. // InstanceTypeCc28xlarge is a InstanceType enum value
  58587. InstanceTypeCc28xlarge = "cc2.8xlarge"
  58588. // InstanceTypeG22xlarge is a InstanceType enum value
  58589. InstanceTypeG22xlarge = "g2.2xlarge"
  58590. // InstanceTypeG28xlarge is a InstanceType enum value
  58591. InstanceTypeG28xlarge = "g2.8xlarge"
  58592. // InstanceTypeG34xlarge is a InstanceType enum value
  58593. InstanceTypeG34xlarge = "g3.4xlarge"
  58594. // InstanceTypeG38xlarge is a InstanceType enum value
  58595. InstanceTypeG38xlarge = "g3.8xlarge"
  58596. // InstanceTypeG316xlarge is a InstanceType enum value
  58597. InstanceTypeG316xlarge = "g3.16xlarge"
  58598. // InstanceTypeCg14xlarge is a InstanceType enum value
  58599. InstanceTypeCg14xlarge = "cg1.4xlarge"
  58600. // InstanceTypeP2Xlarge is a InstanceType enum value
  58601. InstanceTypeP2Xlarge = "p2.xlarge"
  58602. // InstanceTypeP28xlarge is a InstanceType enum value
  58603. InstanceTypeP28xlarge = "p2.8xlarge"
  58604. // InstanceTypeP216xlarge is a InstanceType enum value
  58605. InstanceTypeP216xlarge = "p2.16xlarge"
  58606. // InstanceTypeP32xlarge is a InstanceType enum value
  58607. InstanceTypeP32xlarge = "p3.2xlarge"
  58608. // InstanceTypeP38xlarge is a InstanceType enum value
  58609. InstanceTypeP38xlarge = "p3.8xlarge"
  58610. // InstanceTypeP316xlarge is a InstanceType enum value
  58611. InstanceTypeP316xlarge = "p3.16xlarge"
  58612. // InstanceTypeD2Xlarge is a InstanceType enum value
  58613. InstanceTypeD2Xlarge = "d2.xlarge"
  58614. // InstanceTypeD22xlarge is a InstanceType enum value
  58615. InstanceTypeD22xlarge = "d2.2xlarge"
  58616. // InstanceTypeD24xlarge is a InstanceType enum value
  58617. InstanceTypeD24xlarge = "d2.4xlarge"
  58618. // InstanceTypeD28xlarge is a InstanceType enum value
  58619. InstanceTypeD28xlarge = "d2.8xlarge"
  58620. // InstanceTypeF12xlarge is a InstanceType enum value
  58621. InstanceTypeF12xlarge = "f1.2xlarge"
  58622. // InstanceTypeF116xlarge is a InstanceType enum value
  58623. InstanceTypeF116xlarge = "f1.16xlarge"
  58624. // InstanceTypeM5Large is a InstanceType enum value
  58625. InstanceTypeM5Large = "m5.large"
  58626. // InstanceTypeM5Xlarge is a InstanceType enum value
  58627. InstanceTypeM5Xlarge = "m5.xlarge"
  58628. // InstanceTypeM52xlarge is a InstanceType enum value
  58629. InstanceTypeM52xlarge = "m5.2xlarge"
  58630. // InstanceTypeM54xlarge is a InstanceType enum value
  58631. InstanceTypeM54xlarge = "m5.4xlarge"
  58632. // InstanceTypeM512xlarge is a InstanceType enum value
  58633. InstanceTypeM512xlarge = "m5.12xlarge"
  58634. // InstanceTypeM524xlarge is a InstanceType enum value
  58635. InstanceTypeM524xlarge = "m5.24xlarge"
  58636. // InstanceTypeH12xlarge is a InstanceType enum value
  58637. InstanceTypeH12xlarge = "h1.2xlarge"
  58638. // InstanceTypeH14xlarge is a InstanceType enum value
  58639. InstanceTypeH14xlarge = "h1.4xlarge"
  58640. // InstanceTypeH18xlarge is a InstanceType enum value
  58641. InstanceTypeH18xlarge = "h1.8xlarge"
  58642. // InstanceTypeH116xlarge is a InstanceType enum value
  58643. InstanceTypeH116xlarge = "h1.16xlarge"
  58644. )
  58645. const (
  58646. // InterfacePermissionTypeInstanceAttach is a InterfacePermissionType enum value
  58647. InterfacePermissionTypeInstanceAttach = "INSTANCE-ATTACH"
  58648. // InterfacePermissionTypeEipAssociate is a InterfacePermissionType enum value
  58649. InterfacePermissionTypeEipAssociate = "EIP-ASSOCIATE"
  58650. )
  58651. const (
  58652. // LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist is a LaunchTemplateErrorCode enum value
  58653. LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist = "launchTemplateIdDoesNotExist"
  58654. // LaunchTemplateErrorCodeLaunchTemplateIdMalformed is a LaunchTemplateErrorCode enum value
  58655. LaunchTemplateErrorCodeLaunchTemplateIdMalformed = "launchTemplateIdMalformed"
  58656. // LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist is a LaunchTemplateErrorCode enum value
  58657. LaunchTemplateErrorCodeLaunchTemplateNameDoesNotExist = "launchTemplateNameDoesNotExist"
  58658. // LaunchTemplateErrorCodeLaunchTemplateNameMalformed is a LaunchTemplateErrorCode enum value
  58659. LaunchTemplateErrorCodeLaunchTemplateNameMalformed = "launchTemplateNameMalformed"
  58660. // LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist is a LaunchTemplateErrorCode enum value
  58661. LaunchTemplateErrorCodeLaunchTemplateVersionDoesNotExist = "launchTemplateVersionDoesNotExist"
  58662. // LaunchTemplateErrorCodeUnexpectedError is a LaunchTemplateErrorCode enum value
  58663. LaunchTemplateErrorCodeUnexpectedError = "unexpectedError"
  58664. )
  58665. const (
  58666. // ListingStateAvailable is a ListingState enum value
  58667. ListingStateAvailable = "available"
  58668. // ListingStateSold is a ListingState enum value
  58669. ListingStateSold = "sold"
  58670. // ListingStateCancelled is a ListingState enum value
  58671. ListingStateCancelled = "cancelled"
  58672. // ListingStatePending is a ListingState enum value
  58673. ListingStatePending = "pending"
  58674. )
  58675. const (
  58676. // ListingStatusActive is a ListingStatus enum value
  58677. ListingStatusActive = "active"
  58678. // ListingStatusPending is a ListingStatus enum value
  58679. ListingStatusPending = "pending"
  58680. // ListingStatusCancelled is a ListingStatus enum value
  58681. ListingStatusCancelled = "cancelled"
  58682. // ListingStatusClosed is a ListingStatus enum value
  58683. ListingStatusClosed = "closed"
  58684. )
  58685. const (
  58686. // MarketTypeSpot is a MarketType enum value
  58687. MarketTypeSpot = "spot"
  58688. )
  58689. const (
  58690. // MonitoringStateDisabled is a MonitoringState enum value
  58691. MonitoringStateDisabled = "disabled"
  58692. // MonitoringStateDisabling is a MonitoringState enum value
  58693. MonitoringStateDisabling = "disabling"
  58694. // MonitoringStateEnabled is a MonitoringState enum value
  58695. MonitoringStateEnabled = "enabled"
  58696. // MonitoringStatePending is a MonitoringState enum value
  58697. MonitoringStatePending = "pending"
  58698. )
  58699. const (
  58700. // MoveStatusMovingToVpc is a MoveStatus enum value
  58701. MoveStatusMovingToVpc = "movingToVpc"
  58702. // MoveStatusRestoringToClassic is a MoveStatus enum value
  58703. MoveStatusRestoringToClassic = "restoringToClassic"
  58704. )
  58705. const (
  58706. // NatGatewayStatePending is a NatGatewayState enum value
  58707. NatGatewayStatePending = "pending"
  58708. // NatGatewayStateFailed is a NatGatewayState enum value
  58709. NatGatewayStateFailed = "failed"
  58710. // NatGatewayStateAvailable is a NatGatewayState enum value
  58711. NatGatewayStateAvailable = "available"
  58712. // NatGatewayStateDeleting is a NatGatewayState enum value
  58713. NatGatewayStateDeleting = "deleting"
  58714. // NatGatewayStateDeleted is a NatGatewayState enum value
  58715. NatGatewayStateDeleted = "deleted"
  58716. )
  58717. const (
  58718. // NetworkInterfaceAttributeDescription is a NetworkInterfaceAttribute enum value
  58719. NetworkInterfaceAttributeDescription = "description"
  58720. // NetworkInterfaceAttributeGroupSet is a NetworkInterfaceAttribute enum value
  58721. NetworkInterfaceAttributeGroupSet = "groupSet"
  58722. // NetworkInterfaceAttributeSourceDestCheck is a NetworkInterfaceAttribute enum value
  58723. NetworkInterfaceAttributeSourceDestCheck = "sourceDestCheck"
  58724. // NetworkInterfaceAttributeAttachment is a NetworkInterfaceAttribute enum value
  58725. NetworkInterfaceAttributeAttachment = "attachment"
  58726. )
  58727. const (
  58728. // NetworkInterfacePermissionStateCodePending is a NetworkInterfacePermissionStateCode enum value
  58729. NetworkInterfacePermissionStateCodePending = "pending"
  58730. // NetworkInterfacePermissionStateCodeGranted is a NetworkInterfacePermissionStateCode enum value
  58731. NetworkInterfacePermissionStateCodeGranted = "granted"
  58732. // NetworkInterfacePermissionStateCodeRevoking is a NetworkInterfacePermissionStateCode enum value
  58733. NetworkInterfacePermissionStateCodeRevoking = "revoking"
  58734. // NetworkInterfacePermissionStateCodeRevoked is a NetworkInterfacePermissionStateCode enum value
  58735. NetworkInterfacePermissionStateCodeRevoked = "revoked"
  58736. )
  58737. const (
  58738. // NetworkInterfaceStatusAvailable is a NetworkInterfaceStatus enum value
  58739. NetworkInterfaceStatusAvailable = "available"
  58740. // NetworkInterfaceStatusAttaching is a NetworkInterfaceStatus enum value
  58741. NetworkInterfaceStatusAttaching = "attaching"
  58742. // NetworkInterfaceStatusInUse is a NetworkInterfaceStatus enum value
  58743. NetworkInterfaceStatusInUse = "in-use"
  58744. // NetworkInterfaceStatusDetaching is a NetworkInterfaceStatus enum value
  58745. NetworkInterfaceStatusDetaching = "detaching"
  58746. )
  58747. const (
  58748. // NetworkInterfaceTypeInterface is a NetworkInterfaceType enum value
  58749. NetworkInterfaceTypeInterface = "interface"
  58750. // NetworkInterfaceTypeNatGateway is a NetworkInterfaceType enum value
  58751. NetworkInterfaceTypeNatGateway = "natGateway"
  58752. )
  58753. const (
  58754. // OfferingClassTypeStandard is a OfferingClassType enum value
  58755. OfferingClassTypeStandard = "standard"
  58756. // OfferingClassTypeConvertible is a OfferingClassType enum value
  58757. OfferingClassTypeConvertible = "convertible"
  58758. )
  58759. const (
  58760. // OfferingTypeValuesHeavyUtilization is a OfferingTypeValues enum value
  58761. OfferingTypeValuesHeavyUtilization = "Heavy Utilization"
  58762. // OfferingTypeValuesMediumUtilization is a OfferingTypeValues enum value
  58763. OfferingTypeValuesMediumUtilization = "Medium Utilization"
  58764. // OfferingTypeValuesLightUtilization is a OfferingTypeValues enum value
  58765. OfferingTypeValuesLightUtilization = "Light Utilization"
  58766. // OfferingTypeValuesNoUpfront is a OfferingTypeValues enum value
  58767. OfferingTypeValuesNoUpfront = "No Upfront"
  58768. // OfferingTypeValuesPartialUpfront is a OfferingTypeValues enum value
  58769. OfferingTypeValuesPartialUpfront = "Partial Upfront"
  58770. // OfferingTypeValuesAllUpfront is a OfferingTypeValues enum value
  58771. OfferingTypeValuesAllUpfront = "All Upfront"
  58772. )
  58773. const (
  58774. // OperationTypeAdd is a OperationType enum value
  58775. OperationTypeAdd = "add"
  58776. // OperationTypeRemove is a OperationType enum value
  58777. OperationTypeRemove = "remove"
  58778. )
  58779. const (
  58780. // PaymentOptionAllUpfront is a PaymentOption enum value
  58781. PaymentOptionAllUpfront = "AllUpfront"
  58782. // PaymentOptionPartialUpfront is a PaymentOption enum value
  58783. PaymentOptionPartialUpfront = "PartialUpfront"
  58784. // PaymentOptionNoUpfront is a PaymentOption enum value
  58785. PaymentOptionNoUpfront = "NoUpfront"
  58786. )
  58787. const (
  58788. // PermissionGroupAll is a PermissionGroup enum value
  58789. PermissionGroupAll = "all"
  58790. )
  58791. const (
  58792. // PlacementGroupStatePending is a PlacementGroupState enum value
  58793. PlacementGroupStatePending = "pending"
  58794. // PlacementGroupStateAvailable is a PlacementGroupState enum value
  58795. PlacementGroupStateAvailable = "available"
  58796. // PlacementGroupStateDeleting is a PlacementGroupState enum value
  58797. PlacementGroupStateDeleting = "deleting"
  58798. // PlacementGroupStateDeleted is a PlacementGroupState enum value
  58799. PlacementGroupStateDeleted = "deleted"
  58800. )
  58801. const (
  58802. // PlacementStrategyCluster is a PlacementStrategy enum value
  58803. PlacementStrategyCluster = "cluster"
  58804. // PlacementStrategySpread is a PlacementStrategy enum value
  58805. PlacementStrategySpread = "spread"
  58806. )
  58807. const (
  58808. // PlatformValuesWindows is a PlatformValues enum value
  58809. PlatformValuesWindows = "Windows"
  58810. )
  58811. const (
  58812. // PrincipalTypeAll is a PrincipalType enum value
  58813. PrincipalTypeAll = "All"
  58814. // PrincipalTypeService is a PrincipalType enum value
  58815. PrincipalTypeService = "Service"
  58816. // PrincipalTypeOrganizationUnit is a PrincipalType enum value
  58817. PrincipalTypeOrganizationUnit = "OrganizationUnit"
  58818. // PrincipalTypeAccount is a PrincipalType enum value
  58819. PrincipalTypeAccount = "Account"
  58820. // PrincipalTypeUser is a PrincipalType enum value
  58821. PrincipalTypeUser = "User"
  58822. // PrincipalTypeRole is a PrincipalType enum value
  58823. PrincipalTypeRole = "Role"
  58824. )
  58825. const (
  58826. // ProductCodeValuesDevpay is a ProductCodeValues enum value
  58827. ProductCodeValuesDevpay = "devpay"
  58828. // ProductCodeValuesMarketplace is a ProductCodeValues enum value
  58829. ProductCodeValuesMarketplace = "marketplace"
  58830. )
  58831. const (
  58832. // RIProductDescriptionLinuxUnix is a RIProductDescription enum value
  58833. RIProductDescriptionLinuxUnix = "Linux/UNIX"
  58834. // RIProductDescriptionLinuxUnixamazonVpc is a RIProductDescription enum value
  58835. RIProductDescriptionLinuxUnixamazonVpc = "Linux/UNIX (Amazon VPC)"
  58836. // RIProductDescriptionWindows is a RIProductDescription enum value
  58837. RIProductDescriptionWindows = "Windows"
  58838. // RIProductDescriptionWindowsAmazonVpc is a RIProductDescription enum value
  58839. RIProductDescriptionWindowsAmazonVpc = "Windows (Amazon VPC)"
  58840. )
  58841. const (
  58842. // RecurringChargeFrequencyHourly is a RecurringChargeFrequency enum value
  58843. RecurringChargeFrequencyHourly = "Hourly"
  58844. )
  58845. const (
  58846. // ReportInstanceReasonCodesInstanceStuckInState is a ReportInstanceReasonCodes enum value
  58847. ReportInstanceReasonCodesInstanceStuckInState = "instance-stuck-in-state"
  58848. // ReportInstanceReasonCodesUnresponsive is a ReportInstanceReasonCodes enum value
  58849. ReportInstanceReasonCodesUnresponsive = "unresponsive"
  58850. // ReportInstanceReasonCodesNotAcceptingCredentials is a ReportInstanceReasonCodes enum value
  58851. ReportInstanceReasonCodesNotAcceptingCredentials = "not-accepting-credentials"
  58852. // ReportInstanceReasonCodesPasswordNotAvailable is a ReportInstanceReasonCodes enum value
  58853. ReportInstanceReasonCodesPasswordNotAvailable = "password-not-available"
  58854. // ReportInstanceReasonCodesPerformanceNetwork is a ReportInstanceReasonCodes enum value
  58855. ReportInstanceReasonCodesPerformanceNetwork = "performance-network"
  58856. // ReportInstanceReasonCodesPerformanceInstanceStore is a ReportInstanceReasonCodes enum value
  58857. ReportInstanceReasonCodesPerformanceInstanceStore = "performance-instance-store"
  58858. // ReportInstanceReasonCodesPerformanceEbsVolume is a ReportInstanceReasonCodes enum value
  58859. ReportInstanceReasonCodesPerformanceEbsVolume = "performance-ebs-volume"
  58860. // ReportInstanceReasonCodesPerformanceOther is a ReportInstanceReasonCodes enum value
  58861. ReportInstanceReasonCodesPerformanceOther = "performance-other"
  58862. // ReportInstanceReasonCodesOther is a ReportInstanceReasonCodes enum value
  58863. ReportInstanceReasonCodesOther = "other"
  58864. )
  58865. const (
  58866. // ReportStatusTypeOk is a ReportStatusType enum value
  58867. ReportStatusTypeOk = "ok"
  58868. // ReportStatusTypeImpaired is a ReportStatusType enum value
  58869. ReportStatusTypeImpaired = "impaired"
  58870. )
  58871. const (
  58872. // ReservationStatePaymentPending is a ReservationState enum value
  58873. ReservationStatePaymentPending = "payment-pending"
  58874. // ReservationStatePaymentFailed is a ReservationState enum value
  58875. ReservationStatePaymentFailed = "payment-failed"
  58876. // ReservationStateActive is a ReservationState enum value
  58877. ReservationStateActive = "active"
  58878. // ReservationStateRetired is a ReservationState enum value
  58879. ReservationStateRetired = "retired"
  58880. )
  58881. const (
  58882. // ReservedInstanceStatePaymentPending is a ReservedInstanceState enum value
  58883. ReservedInstanceStatePaymentPending = "payment-pending"
  58884. // ReservedInstanceStateActive is a ReservedInstanceState enum value
  58885. ReservedInstanceStateActive = "active"
  58886. // ReservedInstanceStatePaymentFailed is a ReservedInstanceState enum value
  58887. ReservedInstanceStatePaymentFailed = "payment-failed"
  58888. // ReservedInstanceStateRetired is a ReservedInstanceState enum value
  58889. ReservedInstanceStateRetired = "retired"
  58890. )
  58891. const (
  58892. // ResetFpgaImageAttributeNameLoadPermission is a ResetFpgaImageAttributeName enum value
  58893. ResetFpgaImageAttributeNameLoadPermission = "loadPermission"
  58894. )
  58895. const (
  58896. // ResetImageAttributeNameLaunchPermission is a ResetImageAttributeName enum value
  58897. ResetImageAttributeNameLaunchPermission = "launchPermission"
  58898. )
  58899. const (
  58900. // ResourceTypeCustomerGateway is a ResourceType enum value
  58901. ResourceTypeCustomerGateway = "customer-gateway"
  58902. // ResourceTypeDhcpOptions is a ResourceType enum value
  58903. ResourceTypeDhcpOptions = "dhcp-options"
  58904. // ResourceTypeImage is a ResourceType enum value
  58905. ResourceTypeImage = "image"
  58906. // ResourceTypeInstance is a ResourceType enum value
  58907. ResourceTypeInstance = "instance"
  58908. // ResourceTypeInternetGateway is a ResourceType enum value
  58909. ResourceTypeInternetGateway = "internet-gateway"
  58910. // ResourceTypeNetworkAcl is a ResourceType enum value
  58911. ResourceTypeNetworkAcl = "network-acl"
  58912. // ResourceTypeNetworkInterface is a ResourceType enum value
  58913. ResourceTypeNetworkInterface = "network-interface"
  58914. // ResourceTypeReservedInstances is a ResourceType enum value
  58915. ResourceTypeReservedInstances = "reserved-instances"
  58916. // ResourceTypeRouteTable is a ResourceType enum value
  58917. ResourceTypeRouteTable = "route-table"
  58918. // ResourceTypeSnapshot is a ResourceType enum value
  58919. ResourceTypeSnapshot = "snapshot"
  58920. // ResourceTypeSpotInstancesRequest is a ResourceType enum value
  58921. ResourceTypeSpotInstancesRequest = "spot-instances-request"
  58922. // ResourceTypeSubnet is a ResourceType enum value
  58923. ResourceTypeSubnet = "subnet"
  58924. // ResourceTypeSecurityGroup is a ResourceType enum value
  58925. ResourceTypeSecurityGroup = "security-group"
  58926. // ResourceTypeVolume is a ResourceType enum value
  58927. ResourceTypeVolume = "volume"
  58928. // ResourceTypeVpc is a ResourceType enum value
  58929. ResourceTypeVpc = "vpc"
  58930. // ResourceTypeVpnConnection is a ResourceType enum value
  58931. ResourceTypeVpnConnection = "vpn-connection"
  58932. // ResourceTypeVpnGateway is a ResourceType enum value
  58933. ResourceTypeVpnGateway = "vpn-gateway"
  58934. )
  58935. const (
  58936. // RouteOriginCreateRouteTable is a RouteOrigin enum value
  58937. RouteOriginCreateRouteTable = "CreateRouteTable"
  58938. // RouteOriginCreateRoute is a RouteOrigin enum value
  58939. RouteOriginCreateRoute = "CreateRoute"
  58940. // RouteOriginEnableVgwRoutePropagation is a RouteOrigin enum value
  58941. RouteOriginEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  58942. )
  58943. const (
  58944. // RouteStateActive is a RouteState enum value
  58945. RouteStateActive = "active"
  58946. // RouteStateBlackhole is a RouteState enum value
  58947. RouteStateBlackhole = "blackhole"
  58948. )
  58949. const (
  58950. // RuleActionAllow is a RuleAction enum value
  58951. RuleActionAllow = "allow"
  58952. // RuleActionDeny is a RuleAction enum value
  58953. RuleActionDeny = "deny"
  58954. )
  58955. const (
  58956. // ServiceStatePending is a ServiceState enum value
  58957. ServiceStatePending = "Pending"
  58958. // ServiceStateAvailable is a ServiceState enum value
  58959. ServiceStateAvailable = "Available"
  58960. // ServiceStateDeleting is a ServiceState enum value
  58961. ServiceStateDeleting = "Deleting"
  58962. // ServiceStateDeleted is a ServiceState enum value
  58963. ServiceStateDeleted = "Deleted"
  58964. // ServiceStateFailed is a ServiceState enum value
  58965. ServiceStateFailed = "Failed"
  58966. )
  58967. const (
  58968. // ServiceTypeInterface is a ServiceType enum value
  58969. ServiceTypeInterface = "Interface"
  58970. // ServiceTypeGateway is a ServiceType enum value
  58971. ServiceTypeGateway = "Gateway"
  58972. )
  58973. const (
  58974. // ShutdownBehaviorStop is a ShutdownBehavior enum value
  58975. ShutdownBehaviorStop = "stop"
  58976. // ShutdownBehaviorTerminate is a ShutdownBehavior enum value
  58977. ShutdownBehaviorTerminate = "terminate"
  58978. )
  58979. const (
  58980. // SnapshotAttributeNameProductCodes is a SnapshotAttributeName enum value
  58981. SnapshotAttributeNameProductCodes = "productCodes"
  58982. // SnapshotAttributeNameCreateVolumePermission is a SnapshotAttributeName enum value
  58983. SnapshotAttributeNameCreateVolumePermission = "createVolumePermission"
  58984. )
  58985. const (
  58986. // SnapshotStatePending is a SnapshotState enum value
  58987. SnapshotStatePending = "pending"
  58988. // SnapshotStateCompleted is a SnapshotState enum value
  58989. SnapshotStateCompleted = "completed"
  58990. // SnapshotStateError is a SnapshotState enum value
  58991. SnapshotStateError = "error"
  58992. )
  58993. const (
  58994. // SpotInstanceStateOpen is a SpotInstanceState enum value
  58995. SpotInstanceStateOpen = "open"
  58996. // SpotInstanceStateActive is a SpotInstanceState enum value
  58997. SpotInstanceStateActive = "active"
  58998. // SpotInstanceStateClosed is a SpotInstanceState enum value
  58999. SpotInstanceStateClosed = "closed"
  59000. // SpotInstanceStateCancelled is a SpotInstanceState enum value
  59001. SpotInstanceStateCancelled = "cancelled"
  59002. // SpotInstanceStateFailed is a SpotInstanceState enum value
  59003. SpotInstanceStateFailed = "failed"
  59004. )
  59005. const (
  59006. // SpotInstanceTypeOneTime is a SpotInstanceType enum value
  59007. SpotInstanceTypeOneTime = "one-time"
  59008. // SpotInstanceTypePersistent is a SpotInstanceType enum value
  59009. SpotInstanceTypePersistent = "persistent"
  59010. )
  59011. const (
  59012. // StatePendingAcceptance is a State enum value
  59013. StatePendingAcceptance = "PendingAcceptance"
  59014. // StatePending is a State enum value
  59015. StatePending = "Pending"
  59016. // StateAvailable is a State enum value
  59017. StateAvailable = "Available"
  59018. // StateDeleting is a State enum value
  59019. StateDeleting = "Deleting"
  59020. // StateDeleted is a State enum value
  59021. StateDeleted = "Deleted"
  59022. // StateRejected is a State enum value
  59023. StateRejected = "Rejected"
  59024. // StateFailed is a State enum value
  59025. StateFailed = "Failed"
  59026. // StateExpired is a State enum value
  59027. StateExpired = "Expired"
  59028. )
  59029. const (
  59030. // StatusMoveInProgress is a Status enum value
  59031. StatusMoveInProgress = "MoveInProgress"
  59032. // StatusInVpc is a Status enum value
  59033. StatusInVpc = "InVpc"
  59034. // StatusInClassic is a Status enum value
  59035. StatusInClassic = "InClassic"
  59036. )
  59037. const (
  59038. // StatusNameReachability is a StatusName enum value
  59039. StatusNameReachability = "reachability"
  59040. )
  59041. const (
  59042. // StatusTypePassed is a StatusType enum value
  59043. StatusTypePassed = "passed"
  59044. // StatusTypeFailed is a StatusType enum value
  59045. StatusTypeFailed = "failed"
  59046. // StatusTypeInsufficientData is a StatusType enum value
  59047. StatusTypeInsufficientData = "insufficient-data"
  59048. // StatusTypeInitializing is a StatusType enum value
  59049. StatusTypeInitializing = "initializing"
  59050. )
  59051. const (
  59052. // SubnetCidrBlockStateCodeAssociating is a SubnetCidrBlockStateCode enum value
  59053. SubnetCidrBlockStateCodeAssociating = "associating"
  59054. // SubnetCidrBlockStateCodeAssociated is a SubnetCidrBlockStateCode enum value
  59055. SubnetCidrBlockStateCodeAssociated = "associated"
  59056. // SubnetCidrBlockStateCodeDisassociating is a SubnetCidrBlockStateCode enum value
  59057. SubnetCidrBlockStateCodeDisassociating = "disassociating"
  59058. // SubnetCidrBlockStateCodeDisassociated is a SubnetCidrBlockStateCode enum value
  59059. SubnetCidrBlockStateCodeDisassociated = "disassociated"
  59060. // SubnetCidrBlockStateCodeFailing is a SubnetCidrBlockStateCode enum value
  59061. SubnetCidrBlockStateCodeFailing = "failing"
  59062. // SubnetCidrBlockStateCodeFailed is a SubnetCidrBlockStateCode enum value
  59063. SubnetCidrBlockStateCodeFailed = "failed"
  59064. )
  59065. const (
  59066. // SubnetStatePending is a SubnetState enum value
  59067. SubnetStatePending = "pending"
  59068. // SubnetStateAvailable is a SubnetState enum value
  59069. SubnetStateAvailable = "available"
  59070. )
  59071. const (
  59072. // SummaryStatusOk is a SummaryStatus enum value
  59073. SummaryStatusOk = "ok"
  59074. // SummaryStatusImpaired is a SummaryStatus enum value
  59075. SummaryStatusImpaired = "impaired"
  59076. // SummaryStatusInsufficientData is a SummaryStatus enum value
  59077. SummaryStatusInsufficientData = "insufficient-data"
  59078. // SummaryStatusNotApplicable is a SummaryStatus enum value
  59079. SummaryStatusNotApplicable = "not-applicable"
  59080. // SummaryStatusInitializing is a SummaryStatus enum value
  59081. SummaryStatusInitializing = "initializing"
  59082. )
  59083. const (
  59084. // TelemetryStatusUp is a TelemetryStatus enum value
  59085. TelemetryStatusUp = "UP"
  59086. // TelemetryStatusDown is a TelemetryStatus enum value
  59087. TelemetryStatusDown = "DOWN"
  59088. )
  59089. const (
  59090. // TenancyDefault is a Tenancy enum value
  59091. TenancyDefault = "default"
  59092. // TenancyDedicated is a Tenancy enum value
  59093. TenancyDedicated = "dedicated"
  59094. // TenancyHost is a Tenancy enum value
  59095. TenancyHost = "host"
  59096. )
  59097. const (
  59098. // TrafficTypeAccept is a TrafficType enum value
  59099. TrafficTypeAccept = "ACCEPT"
  59100. // TrafficTypeReject is a TrafficType enum value
  59101. TrafficTypeReject = "REJECT"
  59102. // TrafficTypeAll is a TrafficType enum value
  59103. TrafficTypeAll = "ALL"
  59104. )
  59105. const (
  59106. // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  59107. UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed = "InvalidInstanceID.Malformed"
  59108. // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  59109. UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdNotFound = "InvalidInstanceID.NotFound"
  59110. // UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  59111. UnsuccessfulInstanceCreditSpecificationErrorCodeIncorrectInstanceState = "IncorrectInstanceState"
  59112. // UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value
  59113. UnsuccessfulInstanceCreditSpecificationErrorCodeInstanceCreditSpecificationNotSupported = "InstanceCreditSpecification.NotSupported"
  59114. )
  59115. const (
  59116. // VirtualizationTypeHvm is a VirtualizationType enum value
  59117. VirtualizationTypeHvm = "hvm"
  59118. // VirtualizationTypeParavirtual is a VirtualizationType enum value
  59119. VirtualizationTypeParavirtual = "paravirtual"
  59120. )
  59121. const (
  59122. // VolumeAttachmentStateAttaching is a VolumeAttachmentState enum value
  59123. VolumeAttachmentStateAttaching = "attaching"
  59124. // VolumeAttachmentStateAttached is a VolumeAttachmentState enum value
  59125. VolumeAttachmentStateAttached = "attached"
  59126. // VolumeAttachmentStateDetaching is a VolumeAttachmentState enum value
  59127. VolumeAttachmentStateDetaching = "detaching"
  59128. // VolumeAttachmentStateDetached is a VolumeAttachmentState enum value
  59129. VolumeAttachmentStateDetached = "detached"
  59130. // VolumeAttachmentStateBusy is a VolumeAttachmentState enum value
  59131. VolumeAttachmentStateBusy = "busy"
  59132. )
  59133. const (
  59134. // VolumeAttributeNameAutoEnableIo is a VolumeAttributeName enum value
  59135. VolumeAttributeNameAutoEnableIo = "autoEnableIO"
  59136. // VolumeAttributeNameProductCodes is a VolumeAttributeName enum value
  59137. VolumeAttributeNameProductCodes = "productCodes"
  59138. )
  59139. const (
  59140. // VolumeModificationStateModifying is a VolumeModificationState enum value
  59141. VolumeModificationStateModifying = "modifying"
  59142. // VolumeModificationStateOptimizing is a VolumeModificationState enum value
  59143. VolumeModificationStateOptimizing = "optimizing"
  59144. // VolumeModificationStateCompleted is a VolumeModificationState enum value
  59145. VolumeModificationStateCompleted = "completed"
  59146. // VolumeModificationStateFailed is a VolumeModificationState enum value
  59147. VolumeModificationStateFailed = "failed"
  59148. )
  59149. const (
  59150. // VolumeStateCreating is a VolumeState enum value
  59151. VolumeStateCreating = "creating"
  59152. // VolumeStateAvailable is a VolumeState enum value
  59153. VolumeStateAvailable = "available"
  59154. // VolumeStateInUse is a VolumeState enum value
  59155. VolumeStateInUse = "in-use"
  59156. // VolumeStateDeleting is a VolumeState enum value
  59157. VolumeStateDeleting = "deleting"
  59158. // VolumeStateDeleted is a VolumeState enum value
  59159. VolumeStateDeleted = "deleted"
  59160. // VolumeStateError is a VolumeState enum value
  59161. VolumeStateError = "error"
  59162. )
  59163. const (
  59164. // VolumeStatusInfoStatusOk is a VolumeStatusInfoStatus enum value
  59165. VolumeStatusInfoStatusOk = "ok"
  59166. // VolumeStatusInfoStatusImpaired is a VolumeStatusInfoStatus enum value
  59167. VolumeStatusInfoStatusImpaired = "impaired"
  59168. // VolumeStatusInfoStatusInsufficientData is a VolumeStatusInfoStatus enum value
  59169. VolumeStatusInfoStatusInsufficientData = "insufficient-data"
  59170. )
  59171. const (
  59172. // VolumeStatusNameIoEnabled is a VolumeStatusName enum value
  59173. VolumeStatusNameIoEnabled = "io-enabled"
  59174. // VolumeStatusNameIoPerformance is a VolumeStatusName enum value
  59175. VolumeStatusNameIoPerformance = "io-performance"
  59176. )
  59177. const (
  59178. // VolumeTypeStandard is a VolumeType enum value
  59179. VolumeTypeStandard = "standard"
  59180. // VolumeTypeIo1 is a VolumeType enum value
  59181. VolumeTypeIo1 = "io1"
  59182. // VolumeTypeGp2 is a VolumeType enum value
  59183. VolumeTypeGp2 = "gp2"
  59184. // VolumeTypeSc1 is a VolumeType enum value
  59185. VolumeTypeSc1 = "sc1"
  59186. // VolumeTypeSt1 is a VolumeType enum value
  59187. VolumeTypeSt1 = "st1"
  59188. )
  59189. const (
  59190. // VpcAttributeNameEnableDnsSupport is a VpcAttributeName enum value
  59191. VpcAttributeNameEnableDnsSupport = "enableDnsSupport"
  59192. // VpcAttributeNameEnableDnsHostnames is a VpcAttributeName enum value
  59193. VpcAttributeNameEnableDnsHostnames = "enableDnsHostnames"
  59194. )
  59195. const (
  59196. // VpcCidrBlockStateCodeAssociating is a VpcCidrBlockStateCode enum value
  59197. VpcCidrBlockStateCodeAssociating = "associating"
  59198. // VpcCidrBlockStateCodeAssociated is a VpcCidrBlockStateCode enum value
  59199. VpcCidrBlockStateCodeAssociated = "associated"
  59200. // VpcCidrBlockStateCodeDisassociating is a VpcCidrBlockStateCode enum value
  59201. VpcCidrBlockStateCodeDisassociating = "disassociating"
  59202. // VpcCidrBlockStateCodeDisassociated is a VpcCidrBlockStateCode enum value
  59203. VpcCidrBlockStateCodeDisassociated = "disassociated"
  59204. // VpcCidrBlockStateCodeFailing is a VpcCidrBlockStateCode enum value
  59205. VpcCidrBlockStateCodeFailing = "failing"
  59206. // VpcCidrBlockStateCodeFailed is a VpcCidrBlockStateCode enum value
  59207. VpcCidrBlockStateCodeFailed = "failed"
  59208. )
  59209. const (
  59210. // VpcEndpointTypeInterface is a VpcEndpointType enum value
  59211. VpcEndpointTypeInterface = "Interface"
  59212. // VpcEndpointTypeGateway is a VpcEndpointType enum value
  59213. VpcEndpointTypeGateway = "Gateway"
  59214. )
  59215. const (
  59216. // VpcPeeringConnectionStateReasonCodeInitiatingRequest is a VpcPeeringConnectionStateReasonCode enum value
  59217. VpcPeeringConnectionStateReasonCodeInitiatingRequest = "initiating-request"
  59218. // VpcPeeringConnectionStateReasonCodePendingAcceptance is a VpcPeeringConnectionStateReasonCode enum value
  59219. VpcPeeringConnectionStateReasonCodePendingAcceptance = "pending-acceptance"
  59220. // VpcPeeringConnectionStateReasonCodeActive is a VpcPeeringConnectionStateReasonCode enum value
  59221. VpcPeeringConnectionStateReasonCodeActive = "active"
  59222. // VpcPeeringConnectionStateReasonCodeDeleted is a VpcPeeringConnectionStateReasonCode enum value
  59223. VpcPeeringConnectionStateReasonCodeDeleted = "deleted"
  59224. // VpcPeeringConnectionStateReasonCodeRejected is a VpcPeeringConnectionStateReasonCode enum value
  59225. VpcPeeringConnectionStateReasonCodeRejected = "rejected"
  59226. // VpcPeeringConnectionStateReasonCodeFailed is a VpcPeeringConnectionStateReasonCode enum value
  59227. VpcPeeringConnectionStateReasonCodeFailed = "failed"
  59228. // VpcPeeringConnectionStateReasonCodeExpired is a VpcPeeringConnectionStateReasonCode enum value
  59229. VpcPeeringConnectionStateReasonCodeExpired = "expired"
  59230. // VpcPeeringConnectionStateReasonCodeProvisioning is a VpcPeeringConnectionStateReasonCode enum value
  59231. VpcPeeringConnectionStateReasonCodeProvisioning = "provisioning"
  59232. // VpcPeeringConnectionStateReasonCodeDeleting is a VpcPeeringConnectionStateReasonCode enum value
  59233. VpcPeeringConnectionStateReasonCodeDeleting = "deleting"
  59234. )
  59235. const (
  59236. // VpcStatePending is a VpcState enum value
  59237. VpcStatePending = "pending"
  59238. // VpcStateAvailable is a VpcState enum value
  59239. VpcStateAvailable = "available"
  59240. )
  59241. const (
  59242. // VpcTenancyDefault is a VpcTenancy enum value
  59243. VpcTenancyDefault = "default"
  59244. )
  59245. const (
  59246. // VpnStatePending is a VpnState enum value
  59247. VpnStatePending = "pending"
  59248. // VpnStateAvailable is a VpnState enum value
  59249. VpnStateAvailable = "available"
  59250. // VpnStateDeleting is a VpnState enum value
  59251. VpnStateDeleting = "deleting"
  59252. // VpnStateDeleted is a VpnState enum value
  59253. VpnStateDeleted = "deleted"
  59254. )
  59255. const (
  59256. // VpnStaticRouteSourceStatic is a VpnStaticRouteSource enum value
  59257. VpnStaticRouteSourceStatic = "Static"
  59258. )
  59259. const (
  59260. // ScopeAvailabilityZone is a scope enum value
  59261. ScopeAvailabilityZone = "Availability Zone"
  59262. // ScopeRegion is a scope enum value
  59263. ScopeRegion = "Region"
  59264. )